Struct ExecutionEncodingStringMarshaller.ManagedToUnmanagedIn
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
Custom marshaller to marshal a managed string as an unmanaged string using the Encoding property for encoding the native string.
public ref struct ExecutionEncodingStringMarshaller.ManagedToUnmanagedIn
- Inherited Members
Properties
- BufferSize
Gets the default buffer size for optimized marshalling.
Methods
- Free()
Frees any allocated unmanaged string memory.
- FromManaged(string?, Span<byte>)
Initializes the marshaller with a managed string and requested buffer.
- ToUnmanaged()
Converts the current managed string to an unmanaged string.