Table of Contents

Class LazyEncodedStringMarshaller

Namespace
Ubiquity.NET.InteropHelpers
Assembly
Ubiquity.NET.InteropHelpers.dll

Represents a marshaller for LazyEncodedString.

[CustomMarshaller(typeof(LazyEncodedString), MarshalMode.ManagedToUnmanagedIn, typeof(LazyEncodedStringMarshaller.ManagedToUnmanagedIn))]
[CustomMarshaller(typeof(LazyEncodedString), MarshalMode.Default, typeof(LazyEncodedStringMarshaller))]
public static class LazyEncodedStringMarshaller
Inheritance
LazyEncodedStringMarshaller
Inherited Members

Remarks

This will handle marshalling of LazyEncodedStrings to/from native code. This will use any pre-existing native representation in the string so that there is as little overhead as possible. If conversion has not yet occurred it is done once here.

Methods

ConvertToManaged(byte*)

Converts a native string to a LazyEncodedString using the default (UTF8) encoding

ConvertToUnmanaged(LazyEncodedString?)

Converts a LazyEncodedString to a managed form