Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
class | Latin1EncodingSealed |
Public Member Functions | |
Latin1Encoding () | |
unsafe override int | GetByteCount (char *chars, int count) |
unsafe override int | GetByteCount (char[] chars, int index, int count) |
unsafe override int | GetByteCount (ReadOnlySpan< char > chars) |
unsafe override int | GetByteCount (string s) |
override int | GetMaxByteCount (int charCount) |
unsafe override int | GetBytes (char *chars, int charCount, byte *bytes, int byteCount) |
unsafe override int | GetBytes (char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) |
unsafe override int | GetBytes (ReadOnlySpan< char > chars, Span< byte > bytes) |
unsafe override int | GetBytes (string s, int charIndex, int charCount, byte[] bytes, int byteIndex) |
unsafe override int | GetCharCount (byte *bytes, int count) |
override int | GetCharCount (byte[] bytes) |
override int | GetCharCount (byte[] bytes, int index, int count) |
override int | GetCharCount (ReadOnlySpan< byte > bytes) |
override int | GetMaxCharCount (int byteCount) |
unsafe override int | GetChars (byte *bytes, int byteCount, char *chars, int charCount) |
unsafe override char[] | GetChars (byte[] bytes) |
unsafe override int | GetChars (byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) |
unsafe override char[] | GetChars (byte[] bytes, int index, int count) |
unsafe override int | GetChars (ReadOnlySpan< byte > bytes, Span< char > chars) |
unsafe override string | GetString (byte[] bytes) |
unsafe override string | GetString (byte[] bytes, int index, int count) |
override Decoder | GetDecoder () |
override Encoder | GetEncoder () |
override bool | IsAlwaysNormalized (NormalizationForm form) |
virtual byte[] | GetPreamble () |
virtual object | Clone () |
virtual int | GetByteCount (char[] chars) |
unsafe int | GetByteCount (string s, int index, int count) |
virtual byte[] | GetBytes (char[] chars) |
virtual byte[] | GetBytes (char[] chars, int index, int count) |
virtual byte[] | GetBytes (string s) |
unsafe byte[] | GetBytes (string s, int index, int count) |
unsafe string | GetString (byte *bytes, int byteCount) |
unsafe string | GetString (ReadOnlySpan< byte > bytes) |
bool | IsAlwaysNormalized () |
override bool | Equals ([NotNullWhen(true)] object? value) |
override int | GetHashCode () |
Static Public Member Functions | |
static byte[] | Convert (Encoding srcEncoding, Encoding dstEncoding, byte[] bytes) |
static byte[] | Convert (Encoding srcEncoding, Encoding dstEncoding, byte[] bytes, int index, int count) |
static void | RegisterProvider (EncodingProvider provider) |
static Encoding | GetEncoding (int codepage) |
static Encoding | GetEncoding (int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback) |
static Encoding | GetEncoding (string name) |
static Encoding | GetEncoding (string name, EncoderFallback encoderFallback, DecoderFallback decoderFallback) |
static EncodingInfo[] | GetEncodings () |
static Stream | CreateTranscodingStream (Stream innerStream, Encoding innerStreamEncoding, Encoding outerStreamEncoding, bool leaveOpen=false) |
Protected Member Functions | |
unsafe override int | GetByteCountFast (char *pChars, int charsLength, EncoderFallback fallback, out int charsConsumed) |
unsafe override int | GetBytesFast (char *pChars, int charsLength, byte *pBytes, int bytesLength, out int charsConsumed) |
unsafe override int | GetCharCountFast (byte *pBytes, int bytesLength, DecoderFallback fallback, out int bytesConsumed) |
unsafe override int | GetCharsFast (byte *pBytes, int bytesLength, char *pChars, int charsLength, out int bytesConsumed) |
unsafe int | GetByteCountWithFallback (char *pCharsOriginal, int originalCharCount, int charsConsumedSoFar) |
virtual unsafe int | GetByteCountWithFallback (ReadOnlySpan< char > chars, int originalCharsLength, EncoderNLS encoder) |
unsafe int | GetBytesWithFallback (char *pOriginalChars, int originalCharCount, byte *pOriginalBytes, int originalByteCount, int charsConsumedSoFar, int bytesWrittenSoFar) |
virtual unsafe int | GetBytesWithFallback (ReadOnlySpan< char > chars, int originalCharsLength, Span< byte > bytes, int originalBytesLength, EncoderNLS encoder) |
unsafe int | GetCharCountWithFallback (byte *pBytesOriginal, int originalByteCount, int bytesConsumedSoFar) |
unsafe int | GetCharsWithFallback (byte *pOriginalBytes, int originalByteCount, char *pOriginalChars, int originalCharCount, int bytesConsumedSoFar, int charsWrittenSoFar) |
unsafe int | GetCharsWithFallback (byte *pOriginalBytes, int originalByteCount, char *pOriginalChars, int originalCharCount, int bytesConsumedSoFar, int charsWrittenSoFar, DecoderNLS decoder) |
virtual unsafe int | GetCharsWithFallback (ReadOnlySpan< byte > bytes, int originalBytesLength, Span< char > chars, int originalCharsLength, DecoderNLS decoder) |
Package Functions | |
override void | SetDefaultFallbacks () |
override bool | TryGetByteCount (Rune value, out int byteCount) |
override OperationStatus | EncodeRune (Rune value, Span< byte > bytes, out int bytesWritten) |
override OperationStatus | DecodeFirstRune (ReadOnlySpan< byte > bytes, out Rune value, out int bytesConsumed) |
virtual unsafe int | GetByteCount (char *pChars, int charCount, EncoderNLS encoder) |
virtual unsafe int | GetBytes (char *pChars, int charCount, byte *pBytes, int byteCount, EncoderNLS encoder) |
virtual unsafe int | GetCharCount (byte *pBytes, int byteCount, DecoderNLS decoder) |
virtual unsafe int | GetChars (byte *pBytes, int byteCount, char *pChars, int charCount, DecoderNLS decoder) |
void | ThrowBytesOverflow () |
void | ThrowBytesOverflow (EncoderNLS encoder, bool nothingEncoded) |
void | ThrowCharsOverflow () |
void | ThrowCharsOverflow (DecoderNLS decoder, bool nothingDecoded) |
Static Package Functions | |
static void | ThrowConversionOverflow () |
Package Attributes | |
int | _codePage |
CodePageDataItem | _dataItem |
EncoderFallback | encoderFallback |
DecoderFallback | decoderFallback |
Static Package Attributes | |
static readonly Latin1EncodingSealed | s_default = new Latin1EncodingSealed() |
Properties | |
override ReadOnlySpan< byte > | Preamble [get] |
override bool | IsSingleByte [get] |
static Encoding | Default [get] |
virtual string | BodyName [get] |
virtual string | EncodingName [get] |
virtual string | HeaderName [get] |
virtual string | WebName [get] |
virtual int | WindowsCodePage [get] |
virtual bool | IsBrowserDisplay [get] |
virtual bool | IsBrowserSave [get] |
virtual bool | IsMailNewsDisplay [get] |
virtual bool | IsMailNewsSave [get] |
EncoderFallback | EncoderFallback [get, set] |
DecoderFallback | DecoderFallback [get, set] |
bool | IsReadOnly [get, protected set] |
static Encoding | ASCII [get] |
static Encoding | Latin1 [get] |
virtual int | CodePage [get] |
bool | IsUTF8CodePage [get] |
static Encoding | Unicode [get] |
static Encoding | BigEndianUnicode [get] |
static Encoding | UTF7 [get] |
static Encoding | UTF8 [get] |
static Encoding | UTF32 [get] |
static Encoding | BigEndianUTF32 [get] |
Private Member Functions | |
unsafe int | GetByteCountCommon (char *pChars, int charCount) |
unsafe int | GetBytesCommon (char *pChars, int charCount, byte *pBytes, int byteCount) |
unsafe int | GetCharsCommon (byte *pBytes, int byteCount, char *pChars, int charCount) |
void | GetDataItem () |
unsafe int | GetByteCountWithFallback (char *pOriginalChars, int originalCharCount, int charsConsumedSoFar, EncoderNLS encoder) |
unsafe int | GetBytesWithFallback (char *pOriginalChars, int originalCharCount, byte *pOriginalBytes, int originalByteCount, int charsConsumedSoFar, int bytesWrittenSoFar, EncoderNLS encoder) |
unsafe int | GetCharCountWithFallback (byte *pOriginalBytes, int originalByteCount, int bytesConsumedSoFar, DecoderNLS decoder) |
unsafe int | GetCharCountWithFallback (ReadOnlySpan< byte > bytes, int originalBytesLength, DecoderNLS decoder) |
Static Private Member Functions | |
static bool | FallbackSupportsFastGetByteCount (EncoderFallback fallback) |
static Encoding | FilterDisallowedEncodings (Encoding encoding) |
Private Attributes | |
bool | _isReadOnly = true |
Static Private Attributes | |
static readonly UTF8Encoding.UTF8EncodingSealed | s_defaultEncoding = new UTF8Encoding.UTF8EncodingSealed(encoderShouldEmitUTF8Identifier: false) |
Definition at line 7 of file Latin1Encoding.cs.