using System; using System.Runtime.InteropServices; using System.Text; using Cpp2IlInjected; namespace System.IO { /// Reads primitive data types as binary values in a specific encoding. // Token: 0x0200027A RID: 634 [Token(Token = "0x200027A")] [ComVisible(true)] public class BinaryReader : IDisposable { /// Initializes a new instance of the class based on the specified stream and using UTF-8 encoding. /// The input stream. /// The stream does not support reading, is , or is already closed. // Token: 0x060016E2 RID: 5858 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E2")] [Address(RVA = "0x2885BE0", Offset = "0x28849E0", VA = "0x182885BE0")] public BinaryReader(Stream input) { } /// Initializes a new instance of the class based on the specified stream and character encoding. /// The input stream. /// The character encoding to use. /// The stream does not support reading, is , or is already closed. /// /// is . // Token: 0x060016E3 RID: 5859 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E3")] [Address(RVA = "0x28859B0", Offset = "0x28847B0", VA = "0x1828859B0")] public BinaryReader(Stream input, Encoding encoding) { } /// Initializes a new instance of the class based on the specified stream and character encoding, and optionally leaves the stream open. /// The input stream. /// The character encoding to use. /// /// to leave the stream open after the object is disposed; otherwise, . /// The stream does not support reading, is , or is already closed. /// /// or is . // Token: 0x060016E4 RID: 5860 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E4")] [Address(RVA = "0x28859D0", Offset = "0x28847D0", VA = "0x1828859D0")] public BinaryReader(Stream input, Encoding encoding, bool leaveOpen) { } /// Exposes access to the underlying stream of the . /// The underlying stream associated with the . // Token: 0x170002B4 RID: 692 // (get) Token: 0x060016E5 RID: 5861 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170002B4")] public virtual Stream BaseStream { [Token(Token = "0x60016E5")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")] get { return null; } } /// Closes the current reader and the underlying stream. // Token: 0x060016E6 RID: 5862 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E6")] [Address(RVA = "0x2884250", Offset = "0x2883050", VA = "0x182884250", Slot = "6")] public virtual void Close() { } /// Releases the unmanaged resources used by the class and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // Token: 0x060016E7 RID: 5863 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E7")] [Address(RVA = "0x2884270", Offset = "0x2883070", VA = "0x182884270", Slot = "7")] protected virtual void Dispose(bool disposing) { } /// Releases all resources used by the current instance of the class. // Token: 0x060016E8 RID: 5864 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016E8")] [Address(RVA = "0x2884250", Offset = "0x2883050", VA = "0x182884250", Slot = "4")] public void Dispose() { } /// Reads characters from the underlying stream and advances the current position of the stream in accordance with the used and the specific character being read from the stream. /// The next character from the input stream, or -1 if no characters are currently available. /// An I/O error occurs. /// The stream is closed. // Token: 0x060016E9 RID: 5865 RVA: 0x0000FF18 File Offset: 0x0000E118 [Token(Token = "0x60016E9")] [Address(RVA = "0x2885980", Offset = "0x2884780", VA = "0x182885980", Slot = "8")] public virtual int Read() { return 0; } /// Reads a value from the current stream and advances the current position of the stream by one byte. /// /// if the byte is nonzero; otherwise, . /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016EA RID: 5866 RVA: 0x0000FF30 File Offset: 0x0000E130 [Token(Token = "0x60016EA")] [Address(RVA = "0x2884AC0", Offset = "0x28838C0", VA = "0x182884AC0", Slot = "9")] public virtual bool ReadBoolean() { return default(bool); } /// Reads the next byte from the current stream and advances the current position of the stream by one byte. /// The next byte read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016EB RID: 5867 RVA: 0x0000FF48 File Offset: 0x0000E148 [Token(Token = "0x60016EB")] [Address(RVA = "0x2884B10", Offset = "0x2883910", VA = "0x182884B10", Slot = "10")] public virtual byte ReadByte() { return 0; } /// Reads a signed byte from this stream and advances the current position of the stream by one byte. /// A signed byte read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016EC RID: 5868 RVA: 0x0000FF60 File Offset: 0x0000E160 [Token(Token = "0x60016EC")] [Address(RVA = "0x2885370", Offset = "0x2884170", VA = "0x182885370", Slot = "11")] [CLSCompliant(false)] public virtual sbyte ReadSByte() { return 0; } /// Reads the next character from the current stream and advances the current position of the stream in accordance with the used and the specific character being read from the stream. /// A character read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. /// A surrogate character was read. // Token: 0x060016ED RID: 5869 RVA: 0x0000FF78 File Offset: 0x0000E178 [Token(Token = "0x60016ED")] [Address(RVA = "0x2884CF0", Offset = "0x2883AF0", VA = "0x182884CF0", Slot = "12")] public virtual char ReadChar() { return '\0'; } /// Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes. /// A 2-byte signed integer read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016EE RID: 5870 RVA: 0x0000FF90 File Offset: 0x0000E190 [Token(Token = "0x60016EE")] [Address(RVA = "0x2884FA0", Offset = "0x2883DA0", VA = "0x182884FA0", Slot = "13")] public virtual short ReadInt16() { return 0; } /// Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes. /// A 2-byte unsigned integer read from this stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016EF RID: 5871 RVA: 0x0000FFA8 File Offset: 0x0000E1A8 [Token(Token = "0x60016EF")] [Address(RVA = "0x2884FA0", Offset = "0x2883DA0", VA = "0x182884FA0", Slot = "14")] [CLSCompliant(false)] public virtual ushort ReadUInt16() { return 0; } /// Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes. /// A 4-byte signed integer read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F0 RID: 5872 RVA: 0x0000FFC0 File Offset: 0x0000E1C0 [Token(Token = "0x60016F0")] [Address(RVA = "0x2885020", Offset = "0x2883E20", VA = "0x182885020", Slot = "15")] public virtual int ReadInt32() { return 0; } /// Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes. /// A 4-byte unsigned integer read from this stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F1 RID: 5873 RVA: 0x0000FFD8 File Offset: 0x0000E1D8 [Token(Token = "0x60016F1")] [Address(RVA = "0x28856F0", Offset = "0x28844F0", VA = "0x1828856F0", Slot = "16")] [CLSCompliant(false)] public virtual uint ReadUInt32() { return 0U; } /// Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes. /// An 8-byte signed integer read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F2 RID: 5874 RVA: 0x0000FFF0 File Offset: 0x0000E1F0 [Token(Token = "0x60016F2")] [Address(RVA = "0x28851C0", Offset = "0x2883FC0", VA = "0x1828851C0", Slot = "17")] public virtual long ReadInt64() { return 0L; } /// Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes. /// An 8-byte unsigned integer read from this stream. /// The end of the stream is reached. /// An I/O error occurs. /// The stream is closed. // Token: 0x060016F3 RID: 5875 RVA: 0x00010008 File Offset: 0x0000E208 [Token(Token = "0x60016F3")] [Address(RVA = "0x28851C0", Offset = "0x2883FC0", VA = "0x1828851C0", Slot = "18")] [CLSCompliant(false)] public virtual ulong ReadUInt64() { return 0UL; } /// Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes. /// A 4-byte floating point value read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F4 RID: 5876 RVA: 0x00010020 File Offset: 0x0000E220 [Token(Token = "0x60016F4")] [Address(RVA = "0x28853C0", Offset = "0x28841C0", VA = "0x1828853C0", Slot = "19")] public virtual float ReadSingle() { return 0f; } /// Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes. /// An 8-byte floating point value read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F5 RID: 5877 RVA: 0x00010038 File Offset: 0x0000E238 [Token(Token = "0x60016F5")] [Address(RVA = "0x2884F60", Offset = "0x2883D60", VA = "0x182884F60", Slot = "20")] public virtual double ReadDouble() { return 0.0; } /// Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes. /// A decimal value read from the current stream. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F6 RID: 5878 RVA: 0x00010050 File Offset: 0x0000E250 [Token(Token = "0x60016F6")] [Address(RVA = "0x2884E70", Offset = "0x2883C70", VA = "0x182884E70", Slot = "21")] public virtual decimal ReadDecimal() { return 0m; } /// Reads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time. /// The string being read. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016F7 RID: 5879 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60016F7")] [Address(RVA = "0x2885400", Offset = "0x2884200", VA = "0x182885400", Slot = "22")] public virtual string ReadString() { return null; } // Token: 0x060016F8 RID: 5880 RVA: 0x00010068 File Offset: 0x0000E268 [Token(Token = "0x60016F8")] [Address(RVA = "0x2884420", Offset = "0x2883220", VA = "0x182884420")] private int InternalReadChars(char[] buffer, int index, int count) { return 0; } // Token: 0x060016F9 RID: 5881 RVA: 0x00010080 File Offset: 0x0000E280 [Token(Token = "0x60016F9")] [Address(RVA = "0x2884720", Offset = "0x2883520", VA = "0x182884720")] private int InternalReadOneChar() { return 0; } /// Reads the specified number of characters from the current stream, returns the data in a character array, and advances the current position in accordance with the used and the specific character being read from the stream. /// The number of characters to read. /// A character array containing data read from the underlying stream. This might be less than the number of characters requested if the end of the stream is reached. /// The number of decoded characters to read is greater than . This can happen if a Unicode decoder returns fallback characters or a surrogate pair. /// The stream is closed. /// An I/O error occurs. /// /// is negative. // Token: 0x060016FA RID: 5882 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60016FA")] [Address(RVA = "0x2884D20", Offset = "0x2883B20", VA = "0x182884D20", Slot = "23")] public virtual char[] ReadChars(int count) { return null; } /// Reads the specified number of bytes from the stream, starting from a specified point in the byte array. /// The buffer to read data into. /// The starting point in the buffer at which to begin reading into the buffer. /// The number of bytes to read. /// The number of bytes read into . This might be less than the number of bytes requested if that many bytes are not available, or it might be zero if the end of the stream is reached. /// The buffer length minus is less than . /// -or- /// The number of decoded characters to read is greater than . This can happen if a Unicode decoder returns fallback characters or a surrogate pair. /// /// is . /// /// or is negative. /// The stream is closed. /// An I/O error occurs. // Token: 0x060016FB RID: 5883 RVA: 0x00010098 File Offset: 0x0000E298 [Token(Token = "0x60016FB")] [Address(RVA = "0x28857C0", Offset = "0x28845C0", VA = "0x1828857C0", Slot = "24")] public virtual int Read(byte[] buffer, int index, int count) { return 0; } /// Reads the specified number of bytes from the current stream into a byte array and advances the current position by that number of bytes. /// The number of bytes to read. This value must be 0 or a non-negative number or an exception will occur. /// A byte array containing data read from the underlying stream. This might be less than the number of bytes requested if the end of the stream is reached. /// The number of decoded characters to read is greater than . This can happen if a Unicode decoder returns fallback characters or a surrogate pair. /// An I/O error occurs. /// The stream is closed. /// /// is negative. // Token: 0x060016FC RID: 5884 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60016FC")] [Address(RVA = "0x2884B60", Offset = "0x2883960", VA = "0x182884B60", Slot = "25")] public virtual byte[] ReadBytes(int count) { return null; } /// Fills the internal buffer with the specified number of bytes read from the stream. /// The number of bytes to be read. /// The end of the stream is reached before could be read. /// An I/O error occurs. /// Requested is larger than the internal buffer size. // Token: 0x060016FD RID: 5885 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016FD")] [Address(RVA = "0x28842D0", Offset = "0x28830D0", VA = "0x1828842D0", Slot = "26")] protected virtual void FillBuffer(int numBytes) { } /// Reads in a 32-bit integer in compressed format. /// A 32-bit integer in compressed format. /// The end of the stream is reached. /// The stream is closed. /// An I/O error occurs. /// The stream is corrupted. // Token: 0x060016FE RID: 5886 RVA: 0x000100B0 File Offset: 0x0000E2B0 [Token(Token = "0x60016FE")] [Address(RVA = "0x2884A10", Offset = "0x2883810", VA = "0x182884A10")] protected internal int Read7BitEncodedInt() { return 0; } // Token: 0x04000C6F RID: 3183 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4000C6F")] private Stream m_stream; // Token: 0x04000C70 RID: 3184 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4000C70")] private byte[] m_buffer; // Token: 0x04000C71 RID: 3185 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4000C71")] private Decoder m_decoder; // Token: 0x04000C72 RID: 3186 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4000C72")] private byte[] m_charBytes; // Token: 0x04000C73 RID: 3187 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000C73")] private char[] m_singleChar; // Token: 0x04000C74 RID: 3188 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000C74")] private char[] m_charBuffer; // Token: 0x04000C75 RID: 3189 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4000C75")] private int m_maxCharsSize; // Token: 0x04000C76 RID: 3190 [global::Cpp2IlInjected.FieldOffset(Offset = "0x44")] [Token(Token = "0x4000C76")] private bool m_2BytesPerChar; // Token: 0x04000C77 RID: 3191 [global::Cpp2IlInjected.FieldOffset(Offset = "0x45")] [Token(Token = "0x4000C77")] private bool m_isMemoryStream; // Token: 0x04000C78 RID: 3192 [global::Cpp2IlInjected.FieldOffset(Offset = "0x46")] [Token(Token = "0x4000C78")] private bool m_leaveOpen; } }