Click or drag to resize

BinaryTextEncoding Methods

The BinaryTextEncoding type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCode exampleFixedLength Returns an encoder that will encode and decode fixed length string given a character encoding.
Public methodGetByteCount(BinaryString) Calculates the number of bytes produced by encoding the characters in the specified string.
Public methodGetByteCount(String) Calculates the number of bytes produced by encoding the characters in the specified string.
Public methodGetBytes(BinaryString) Encodes a string into a byte array.
Public methodGetBytes(BinaryString, IDataWriter) Encodes a string into a byte array.
Public methodGetBytes(BinaryString, ArraySegmentByte) Encodes a string into a byte array.
Public methodGetBytes(BinaryString, Byte, Int32, Int32) Encodes a string into a byte array.
Protected methodGetBytesInternal Encodes a string into a byte array.
Public methodGetString(ArraySegmentByte) Decodes a string from a byte array.
Public methodGetString(IDataReader) Decodes a string from a byte array.
Public methodGetString(Byte, Int32, Int32) Decodes a string from a byte array.
Public methodGetStringAsync Decodes a string from a byte array.
Protected methodGetStringInternal Decodes a string from a byte array.
Protected methodGetStringInternalAsync Decodes a string from a byte array.
Public methodStatic memberCode exampleLengthEncoded Returns an encoder that will encode and decode length encoded string.
Public methodStatic memberCode exampleNullTerminated Returns an encoder that will encode and decode null terminated string given a character encoding.
Public methodStatic memberCode exampleStringDelimited Returns an encoder that will encode and decode string-delimited strings given a character encoding.
Top
See Also