Interface IMarshalable<Managed, Native>
Represents an object that can be marshaled to and from a native representation.
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public interface IMarshalable<Managed, Native> where Managed : class, new() where Native : struct
Type Parameters
Name | Description |
---|---|
Managed | Managed object type |
Native | Native value type |
Properties
| Edit this page View SourceIsNativeBlittable
Gets if the native value type is blittable (that is, does not require marshaling by the runtime, e.g. has MarshalAs attributes).
Declaration
bool IsNativeBlittable { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceFromNative(in Native)
Reads the unmanaged data from the native value.
Declaration
void FromNative(in Native nativeValue)
Parameters
Type | Name | Description |
---|---|---|
Native | nativeValue | Input native value |
ToNative(nint, out Native)
Writes the managed data to the native value.
Declaration
void ToNative(nint thisPtr, out Native nativeValue)
Parameters
Type | Name | Description |
---|---|---|
nint | thisPtr | Optional pointer to the memory that will hold the native value. |
Native | nativeValue | Output native value |