Utf8StringMarshaller Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Important

This API is not CLS-compliant.

A marshaller for UTF-8 strings.

[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.String), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller+ManagedToUnmanagedIn))]
public static class Utf8StringMarshaller
Inheritance
Utf8StringMarshaller
Attributes

Methods

ConvertToManaged(Byte*)

Converts an unmanaged string to a managed version.

ConvertToUnmanaged(String)

Converts a string to an unmanaged version.

Free(Byte*)

Free the memory for a specified unmanaged string.

Applies to

Proizvod Verzije
.NET 7, 8, 9