Utf8StringMarshaller Класс

Определение

Важно!

Этот API несовместим с CLS.

Маршализатор для строк UTF-8.

public ref class Utf8StringMarshaller abstract sealed
[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
[<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))>]
type Utf8StringMarshaller = class
Public Class Utf8StringMarshaller
Наследование
Utf8StringMarshaller
Атрибуты

Методы

ConvertToManaged(Byte*)

Преобразует неуправляемую строку в управляемую версию.

ConvertToUnmanaged(String)

Преобразует строку в неуправляемую версию.

Free(Byte*)

Освободите память для указанной неуправляемой строки.

Применяется к