Edit

StringUtilities.GetEncodedText Method

Definition

Overloads

Name Description
GetEncodedText(ReadOnlySpan<Char>, SKTextEncoding)

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

GetEncodedText(String, SKTextEncoding)

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

GetEncodedText(ReadOnlySpan<Char>, SKTextEncoding)

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

public static byte[] GetEncodedText(ReadOnlySpan<char> text, SkiaSharp.SKTextEncoding encoding);

Parameters

text
ReadOnlySpan<Char>

The text to encode.

encoding
SKTextEncoding

The encoding to use.

Returns

Byte[]

Returns the encoded text as a byte array.

Applies to

GetEncodedText(String, SKTextEncoding)

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

public static byte[] GetEncodedText(string text, SkiaSharp.SKTextEncoding encoding);

Parameters

text
String

The text to encode.

encoding
SKTextEncoding

The encoding to use.

Returns

Byte[]

Returns the encoded text as a byte array.

Applies to