Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Reset()

virtual void System.Text.Encoder.Reset ( )
inlinevirtualinherited

Reimplemented in System.Text.OSEncoder, System.Text.OSEncoder, System.Text.EncoderNLS, System.Text.UTF7Encoding.Encoder, System.Text.EncoderNLS, System.Text.ISCIIEncoding.ISCIIEncoder, and System.Text.ISO2022Encoding.ISO2022Encoder.

Definition at line 53 of file Encoder.cs.

54 {
55 char[] chars = Array.Empty<char>();
56 byte[] bytes = new byte[GetByteCount(chars, 0, 0, flush: true)];
57 GetBytes(chars, 0, 0, bytes, 0, flush: true);
58 if (_fallbackBuffer != null)
59 {
61 }
62 }
int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, bool flush)
EncoderFallbackBuffer _fallbackBuffer
Definition Encoder.cs:9
int GetByteCount(char[] chars, int index, int count, bool flush)

References System.Text.Encoder._fallbackBuffer, System.bytes, System.chars, System.Text.Encoder.GetByteCount(), System.Text.Encoder.GetBytes(), and System.Text.EncoderFallbackBuffer.Reset().