Modifier

Partager via


StringUtilities.GetString Method

Definition

Overloads

GetString(Byte[], SKTextEncoding)

Decodes the specified bytes as a string.

GetString(ReadOnlySpan<Byte>, SKTextEncoding)
GetString(IntPtr, Int32, SKTextEncoding)

Decodes the specified bytes as a string.

GetString(Byte[], Int32, Int32, SKTextEncoding)

Encodes the specified string using the encoding as a byte array.

GetString(ReadOnlySpan<Byte>, Int32, Int32, SKTextEncoding)

GetString(Byte[], SKTextEncoding)

Decodes the specified bytes as a string.

public static string GetString (byte[] data, SkiaSharp.SKTextEncoding encoding);

Parameters

data
Byte[]

The bytes representing text.

encoding
SKTextEncoding

The encoding to use.

Returns

Returns the decoded text.

Applies to

GetString(ReadOnlySpan<Byte>, SKTextEncoding)

public static string GetString (ReadOnlySpan<byte> data, SkiaSharp.SKTextEncoding encoding);

Parameters

encoding
SKTextEncoding

Returns

Applies to

GetString(IntPtr, Int32, SKTextEncoding)

Decodes the specified bytes as a string.

public static string GetString (IntPtr data, int dataLength, SkiaSharp.SKTextEncoding encoding);

Parameters

data
IntPtr

The pointer to the bytes representing text.

dataLength
Int32

The number of bytes to decode.

encoding
SKTextEncoding

The encoding to use.

Returns

Returns the decoded text.

Applies to

GetString(Byte[], Int32, Int32, SKTextEncoding)

Encodes the specified string using the encoding as a byte array.

public static string GetString (byte[] data, int index, int count, SkiaSharp.SKTextEncoding encoding);

Parameters

data
Byte[]

The bytes representing text.

index
Int32

The index to start decoding.

count
Int32

The number of bytes to decode.

encoding
SKTextEncoding

The encoding to use.

Returns

Returns the decoded text.

Applies to

GetString(ReadOnlySpan<Byte>, Int32, Int32, SKTextEncoding)

public static string GetString (ReadOnlySpan<byte> data, int index, int count, SkiaSharp.SKTextEncoding encoding);

Parameters

index
Int32
count
Int32
encoding
SKTextEncoding

Returns

Applies to