EncodingExtensions Class
In this article
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.
public ref class EncodingExtensions abstract sealed
public static class EncodingExtensions
type EncodingExtensions = class
Public Module EncodingExtensions
Inheritance
Methods
Convert(Decoder, ReadOnlySequence<Byte>, IBufferWriter<Char>, Boolean, Int64, Boolean)
Converts a ReadOnlySequence<T> to UTF-16 encoded characters and writes the result to writer
.
Convert(Decoder, ReadOnlySpan<Byte>, IBufferWriter<Char>, Boolean, Int64, Boolean)
Converts a ReadOnlySpan<T> to chars using decoder
and writes the result to writer
.
Convert(Encoder, ReadOnlySequence<Char>, IBufferWriter<Byte>, Boolean, Int64, Boolean)
Converts a ReadOnlySequence<T> to encoded bytes and writes the result to writer
.
Convert(Encoder, ReadOnlySpan<Char>, IBufferWriter<Byte>, Boolean, Int64, Boolean)
Converts a ReadOnlySpan<T> to bytes using encoder
and writes the result to writer
.
GetBytes(Encoding, ReadOnlySequence<Char>)
Encodes the specified ReadOnlySequence<T> into a Byte array using the specified Encoding .
GetBytes(Encoding, ReadOnlySequence<Char>, IBufferWriter<Byte>)
Decodes the specified ReadOnlySequence<T> to byte
s using the specified Encoding and writes the result to writer
.
GetBytes(Encoding, ReadOnlySequence<Char>, Span<Byte>)
Encodes the specified ReadOnlySequence<T> to byte
s using the specified Encoding and outputs the result to bytes
.
GetBytes(Encoding, ReadOnlySpan<Char>, IBufferWriter<Byte>)
Encodes the specified ReadOnlySpan<T> to byte
s using the specified Encoding and writes the result to writer
.
GetChars(Encoding, ReadOnlySequence<Byte>, IBufferWriter<Char>)
Decodes the specified ReadOnlySequence<T> to char
s using the specified Encoding and writes the result to writer
.
GetChars(Encoding, ReadOnlySequence<Byte>, Span<Char>)
Decodes the specified ReadOnlySequence<T> to char
s using the specified Encoding and outputs the result to chars
.
GetChars(Encoding, ReadOnlySpan<Byte>, IBufferWriter<Char>)
Decodes the specified ReadOnlySpan<T> to char
s using the specified Encoding and writes the result to writer
.
GetString(Encoding, ReadOnlySequence<Byte>)
Decodes the specified ReadOnlySequence<T> into a String using the specified Encoding .
Applies to