Edit

Share via


Raw8BitEncoding Class

Definition

An encoding that converts 8-Bit data to unicode, by just interpreting the input values as the lower part of a char. This works for all ASCII characters as well as if the input and output devices use the same code page.

public class Raw8BitEncoding : System.Text.Encoding
type Raw8BitEncoding = class
    inherit Encoding
Public Class Raw8BitEncoding
Inherits Encoding
Inheritance
Raw8BitEncoding

Constructors

Raw8BitEncoding()

Methods

GetByteCount(Char[], Int32, Int32)

When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.

GetBytes(Char[], Int32, Int32, Byte[], Int32)

When overridden in a derived class, encodes a set of characters from the specified character array into the specified byte array.

GetCharCount(Byte[], Int32, Int32)

When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.

GetChars(Byte[], Int32, Int32, Char[], Int32)

When overridden in a derived class, decodes a sequence of bytes from the specified byte array into the specified character array.

GetMaxByteCount(Int32)

When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters.

GetMaxCharCount(Int32)

When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes.

Applies to