Beef Corlib
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
System.Text.Encoding Class Referenceabstract
Inheritance diagram for System.Text.Encoding:
System.Text.ASCIIEncoding System.Text.UTF16Encoding System.Text.UTF8Encoding System.Text.UTF16EncodingWithBOM System.Text.UTF8EncodingWithBOM

Classes

struct  DecodeError
 
struct  EncodeError
 

Public Member Functions

abstract int GetCharUnitSize ()
 
abstract int GetEncodedLength (char32 c)
 
abstract int Encode (char32 c, Span< uint8 > dest)
 
abstract int GetMaxCharCount (int size)
 
virtual int GetEncodedSize (StringView str)
 
virtual Result< int, EncodeErrorEncode (StringView str, Span< uint8 > dest)
 
abstract int GetDecodedUTF8Size (Span< uint8 > bytes)
 Returns number of UTF8 characters required to hold the decoded result.
 
abstract Result< int, DecodeErrorDecodeToUTF8 (Span< uint8 > inBytes, StringView outChars)
 Decodes from bytes to UTF8.
 
virtual Result< int, DecodeErrorDecodeToUTF8 (Span< uint8 > inBytes, String outStr)
 Decodes from bytes to UTF8.
 

Static Public Member Functions

static Encoding DetectEncoding (Span< uint8 > data, out int bomSize)
 

Static Public Attributes

static readonly ASCIIEncoding ASCII = new ASCIIEncoding() ~ delete _
 
static readonly UTF8Encoding UTF8 = new UTF8Encoding() ~ delete _
 
static readonly UTF8EncodingWithBOM UTF8WithBOM = new UTF8EncodingWithBOM() ~ delete _
 
static readonly UTF16Encoding UTF16 = new UTF16Encoding() ~ delete _
 
static readonly UTF16EncodingWithBOM UTF16WithBOM = new UTF16EncodingWithBOM() ~ delete _