Aracılığıyla paylaş


Utf8StringMarshaller Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

UTF-8 dizeleri için bir marshaller.

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
Devralma
Utf8StringMarshaller
Öznitelikler

Yöntemler

ConvertToManaged(Byte*)

Yönetilmeyen bir dizeyi yönetilen sürüme dönüştürür.

ConvertToUnmanaged(String)

Dizeyi yönetilmeyen bir sürüme dönüştürür.

Free(Byte*)

Belirtilen yönetilmeyen dize için belleği serbest bırakın.

Şunlara uygulanır