Beef Corlib
|
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, EncodeError > | Encode (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, DecodeError > | DecodeToUTF8 (Span< uint8 > inBytes, StringView outChars) |
Decodes from bytes to UTF8. | |
virtual Result< int, DecodeError > | DecodeToUTF8 (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 _ |