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: 0x02000281 RID: 641 [Token(Token = "0x2000281")] [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: 0x06001721 RID: 5921 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001721")] [Address(RVA = "0x2BA3A30", Offset = "0x2BA2A30", VA = "0x182BA3A30")] 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: 0x06001722 RID: 5922 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001722")] [Address(RVA = "0x2BA3800", Offset = "0x2BA2800", VA = "0x182BA3800")] 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: 0x06001723 RID: 5923 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001723")] [Address(RVA = "0x2BA3820", Offset = "0x2BA2820", VA = "0x182BA3820")] public BinaryReader(Stream input, Encoding encoding, bool leaveOpen) { } /// Exposes access to the underlying stream of the . /// The underlying stream associated with the . // Token: 0x170002BF RID: 703 // (get) Token: 0x06001724 RID: 5924 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170002BF")] public virtual Stream BaseStream { [Token(Token = "0x6001724")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")] get { return null; } } /// Closes the current reader and the underlying stream. // Token: 0x06001725 RID: 5925 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001725")] [Address(RVA = "0x2BA20A0", Offset = "0x2BA10A0", VA = "0x182BA20A0", 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: 0x06001726 RID: 5926 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001726")] [Address(RVA = "0x2BA20C0", Offset = "0x2BA10C0", VA = "0x182BA20C0", Slot = "7")] protected virtual void Dispose(bool disposing) { } /// Releases all resources used by the current instance of the class. // Token: 0x06001727 RID: 5927 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001727")] [Address(RVA = "0x2BA20A0", Offset = "0x2BA10A0", VA = "0x182BA20A0", 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: 0x06001728 RID: 5928 RVA: 0x00010278 File Offset: 0x0000E478 [Token(Token = "0x6001728")] [Address(RVA = "0x2BA37D0", Offset = "0x2BA27D0", VA = "0x182BA37D0", 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: 0x06001729 RID: 5929 RVA: 0x00010290 File Offset: 0x0000E490 [Token(Token = "0x6001729")] [Address(RVA = "0x2BA2910", Offset = "0x2BA1910", VA = "0x182BA2910", 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: 0x0600172A RID: 5930 RVA: 0x000102A8 File Offset: 0x0000E4A8 [Token(Token = "0x600172A")] [Address(RVA = "0x2BA2960", Offset = "0x2BA1960", VA = "0x182BA2960", 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: 0x0600172B RID: 5931 RVA: 0x000102C0 File Offset: 0x0000E4C0 [Token(Token = "0x600172B")] [Address(RVA = "0x2BA31C0", Offset = "0x2BA21C0", VA = "0x182BA31C0", 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: 0x0600172C RID: 5932 RVA: 0x000102D8 File Offset: 0x0000E4D8 [Token(Token = "0x600172C")] [Address(RVA = "0x2BA2B40", Offset = "0x2BA1B40", VA = "0x182BA2B40", 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: 0x0600172D RID: 5933 RVA: 0x000102F0 File Offset: 0x0000E4F0 [Token(Token = "0x600172D")] [Address(RVA = "0x2BA2DF0", Offset = "0x2BA1DF0", VA = "0x182BA2DF0", 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: 0x0600172E RID: 5934 RVA: 0x00010308 File Offset: 0x0000E508 [Token(Token = "0x600172E")] [Address(RVA = "0x2BA2DF0", Offset = "0x2BA1DF0", VA = "0x182BA2DF0", 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: 0x0600172F RID: 5935 RVA: 0x00010320 File Offset: 0x0000E520 [Token(Token = "0x600172F")] [Address(RVA = "0x2BA2E70", Offset = "0x2BA1E70", VA = "0x182BA2E70", 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: 0x06001730 RID: 5936 RVA: 0x00010338 File Offset: 0x0000E538 [Token(Token = "0x6001730")] [Address(RVA = "0x2BA3540", Offset = "0x2BA2540", VA = "0x182BA3540", 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: 0x06001731 RID: 5937 RVA: 0x00010350 File Offset: 0x0000E550 [Token(Token = "0x6001731")] [Address(RVA = "0x2BA3010", Offset = "0x2BA2010", VA = "0x182BA3010", 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: 0x06001732 RID: 5938 RVA: 0x00010368 File Offset: 0x0000E568 [Token(Token = "0x6001732")] [Address(RVA = "0x2BA3010", Offset = "0x2BA2010", VA = "0x182BA3010", 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: 0x06001733 RID: 5939 RVA: 0x00010380 File Offset: 0x0000E580 [Token(Token = "0x6001733")] [Address(RVA = "0x2BA3210", Offset = "0x2BA2210", VA = "0x182BA3210", 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: 0x06001734 RID: 5940 RVA: 0x00010398 File Offset: 0x0000E598 [Token(Token = "0x6001734")] [Address(RVA = "0x2BA2DB0", Offset = "0x2BA1DB0", VA = "0x182BA2DB0", 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: 0x06001735 RID: 5941 RVA: 0x000103B0 File Offset: 0x0000E5B0 [Token(Token = "0x6001735")] [Address(RVA = "0x2BA2CC0", Offset = "0x2BA1CC0", VA = "0x182BA2CC0", 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: 0x06001736 RID: 5942 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001736")] [Address(RVA = "0x2BA3250", Offset = "0x2BA2250", VA = "0x182BA3250", Slot = "22")] public virtual string ReadString() { return null; } // Token: 0x06001737 RID: 5943 RVA: 0x000103C8 File Offset: 0x0000E5C8 [Token(Token = "0x6001737")] [Address(RVA = "0x2BA2270", Offset = "0x2BA1270", VA = "0x182BA2270")] private int InternalReadChars(char[] buffer, int index, int count) { return 0; } // Token: 0x06001738 RID: 5944 RVA: 0x000103E0 File Offset: 0x0000E5E0 [Token(Token = "0x6001738")] [Address(RVA = "0x2BA2570", Offset = "0x2BA1570", VA = "0x182BA2570")] 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: 0x06001739 RID: 5945 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001739")] [Address(RVA = "0x2BA2B70", Offset = "0x2BA1B70", VA = "0x182BA2B70", 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: 0x0600173A RID: 5946 RVA: 0x000103F8 File Offset: 0x0000E5F8 [Token(Token = "0x600173A")] [Address(RVA = "0x2BA3610", Offset = "0x2BA2610", VA = "0x182BA3610", 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: 0x0600173B RID: 5947 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x600173B")] [Address(RVA = "0x2BA29B0", Offset = "0x2BA19B0", VA = "0x182BA29B0", 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: 0x0600173C RID: 5948 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600173C")] [Address(RVA = "0x2BA2120", Offset = "0x2BA1120", VA = "0x182BA2120", 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: 0x0600173D RID: 5949 RVA: 0x00010410 File Offset: 0x0000E610 [Token(Token = "0x600173D")] [Address(RVA = "0x2BA2860", Offset = "0x2BA1860", VA = "0x182BA2860")] protected internal int Read7BitEncodedInt() { return 0; } // Token: 0x04000C79 RID: 3193 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4000C79")] private Stream m_stream; // Token: 0x04000C7A RID: 3194 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4000C7A")] private byte[] m_buffer; // Token: 0x04000C7B RID: 3195 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4000C7B")] private Decoder m_decoder; // Token: 0x04000C7C RID: 3196 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4000C7C")] private byte[] m_charBytes; // Token: 0x04000C7D RID: 3197 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000C7D")] private char[] m_singleChar; // Token: 0x04000C7E RID: 3198 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000C7E")] private char[] m_charBuffer; // Token: 0x04000C7F RID: 3199 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4000C7F")] private int m_maxCharsSize; // Token: 0x04000C80 RID: 3200 [global::Cpp2IlInjected.FieldOffset(Offset = "0x44")] [Token(Token = "0x4000C80")] private bool m_2BytesPerChar; // Token: 0x04000C81 RID: 3201 [global::Cpp2IlInjected.FieldOffset(Offset = "0x45")] [Token(Token = "0x4000C81")] private bool m_isMemoryStream; // Token: 0x04000C82 RID: 3202 [global::Cpp2IlInjected.FieldOffset(Offset = "0x46")] [Token(Token = "0x4000C82")] private bool m_leaveOpen; } }