StringUtilities.GetEncodedText Method

Definition

Overloads

GetEncodedText(ReadOnlySpan<Char>, SKTextEncoding)
GetEncodedText(String, SKEncoding)
Obsolete.

Encodes the specified string 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)

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

Parameters

encoding
SKTextEncoding

Returns

Byte[]

Applies to

GetEncodedText(String, SKEncoding)

Caution

Use GetEncodedText(string, SKTextEncoding) instead.

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

[System.Obsolete("Use GetEncodedText(string, SKTextEncoding) instead.")]
public static byte[] GetEncodedText (string text, SkiaSharp.SKEncoding encoding);

Parameters

text
String

The text to encode.

encoding
SKEncoding

The encoding to use.

Returns

Byte[]

Returns the encoded text as a byte array.

Attributes

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