StringUtilities.GetString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- data
- ReadOnlySpan<Byte>
- 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
- data
- ReadOnlySpan<Byte>
- index
- Int32
- count
- Int32
- encoding
- SKTextEncoding
Returns
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour