using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Text; using Cpp2IlInjected; namespace System.IO { /// Writes primitive types in binary to a stream and supports writing strings in a specific encoding. // Token: 0x0200027B RID: 635 [Token(Token = "0x200027B")] [ComVisible(true)] [Serializable] public class BinaryWriter : IDisposable { /// Initializes a new instance of the class that writes to a stream. // Token: 0x060016FF RID: 5887 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60016FF")] [Address(RVA = "0x2886DC0", Offset = "0x2885BC0", VA = "0x182886DC0")] protected BinaryWriter() { } /// Initializes a new instance of the class based on the specified stream and using UTF-8 encoding. /// The output stream. /// The stream does not support writing or is already closed. /// /// is . // Token: 0x06001700 RID: 5888 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001700")] [Address(RVA = "0x2886D40", Offset = "0x2885B40", VA = "0x182886D40")] public BinaryWriter(Stream output) { } /// Initializes a new instance of the class based on the specified stream and character encoding. /// The output stream. /// The character encoding to use. /// The stream does not support writing or is already closed. /// /// or is . // Token: 0x06001701 RID: 5889 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001701")] [Address(RVA = "0x2886D20", Offset = "0x2885B20", VA = "0x182886D20")] public BinaryWriter(Stream output, Encoding encoding) { } /// Initializes a new instance of the class based on the specified stream and character encoding, and optionally leaves the stream open. /// The output stream. /// The character encoding to use. /// /// to leave the stream open after the object is disposed; otherwise, . /// The stream does not support writing or is already closed. /// /// or is . // Token: 0x06001702 RID: 5890 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001702")] [Address(RVA = "0x2886BC0", Offset = "0x28859C0", VA = "0x182886BC0")] public BinaryWriter(Stream output, Encoding encoding, bool leaveOpen) { } /// Closes the current and the underlying stream. // Token: 0x06001703 RID: 5891 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001703")] [Address(RVA = "0x2382280", Offset = "0x2381080", VA = "0x182382280", Slot = "5")] public virtual void Close() { } /// Releases the unmanaged resources used by the and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // Token: 0x06001704 RID: 5892 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001704")] [Address(RVA = "0x2885C60", Offset = "0x2884A60", VA = "0x182885C60", Slot = "6")] protected virtual void Dispose(bool disposing) { } /// Releases all resources used by the current instance of the class. // Token: 0x06001705 RID: 5893 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001705")] [Address(RVA = "0x2382280", Offset = "0x2381080", VA = "0x182382280", Slot = "4")] public void Dispose() { } /// Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. // Token: 0x06001706 RID: 5894 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001706")] [Address(RVA = "0x5F5AF0", Offset = "0x5F48F0", VA = "0x1805F5AF0", Slot = "7")] public virtual void Flush() { } /// Writes a one-byte value to the current stream, with 0 representing and 1 representing . /// The value to write (0 or 1). /// An I/O error occurs. /// The stream is closed. // Token: 0x06001707 RID: 5895 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001707")] [Address(RVA = "0x2886180", Offset = "0x2884F80", VA = "0x182886180", Slot = "8")] public virtual void Write(bool value) { } /// Writes an unsigned byte to the current stream and advances the stream position by one byte. /// The unsigned byte to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001708 RID: 5896 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001708")] [Address(RVA = "0x18956C0", Offset = "0x18944C0", VA = "0x1818956C0", Slot = "9")] public virtual void Write(byte value) { } /// Writes a signed byte to the current stream and advances the stream position by one byte. /// The signed byte to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001709 RID: 5897 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001709")] [Address(RVA = "0x18956C0", Offset = "0x18944C0", VA = "0x1818956C0", Slot = "10")] [CLSCompliant(false)] public virtual void Write(sbyte value) { } /// Writes a byte array to the underlying stream. /// A byte array containing the data to write. /// An I/O error occurs. /// The stream is closed. /// /// is . // Token: 0x0600170A RID: 5898 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170A")] [Address(RVA = "0x2886A10", Offset = "0x2885810", VA = "0x182886A10", Slot = "11")] public virtual void Write(byte[] buffer) { } /// Writes a region of a byte array to the current stream. /// A byte array containing the data to write. /// The index of the first byte to read from and to write to the stream. /// The number of bytes to read from and to write to the stream. /// The buffer length minus is less than . /// /// is . /// /// or is negative. /// An I/O error occurs. /// The stream is closed. // Token: 0x0600170B RID: 5899 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170B")] [Address(RVA = "0x1895510", Offset = "0x1894310", VA = "0x181895510", Slot = "12")] public virtual void Write(byte[] buffer, int index, int count) { } /// Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the used and the specific characters being written to the stream. /// The non-surrogate, Unicode character to write. /// An I/O error occurs. /// The stream is closed. /// /// is a single surrogate character. // Token: 0x0600170C RID: 5900 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170C")] [Address(RVA = "0x28868D0", Offset = "0x28856D0", VA = "0x1828868D0", Slot = "13")] public virtual void Write(char ch) { } /// Writes a character array to the current stream and advances the current position of the stream in accordance with the used and the specific characters being written to the stream. /// A character array containing the data to write. /// /// is . /// The stream is closed. /// An I/O error occurs. // Token: 0x0600170D RID: 5901 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170D")] [Address(RVA = "0x2886010", Offset = "0x2884E10", VA = "0x182886010", Slot = "14")] public virtual void Write(char[] chars) { } /// Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes. /// The eight-byte floating-point value to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x0600170E RID: 5902 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170E")] [Address(RVA = "0x2886130", Offset = "0x2884F30", VA = "0x182886130", Slot = "15")] public virtual void Write(double value) { } /// Writes a two-byte signed integer to the current stream and advances the stream position by two bytes. /// The two-byte signed integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x0600170F RID: 5903 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600170F")] [Address(RVA = "0x2885DC0", Offset = "0x2884BC0", VA = "0x182885DC0", Slot = "16")] public virtual void Write(short value) { } /// Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes. /// The two-byte unsigned integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001710 RID: 5904 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001710")] [Address(RVA = "0x2885D30", Offset = "0x2884B30", VA = "0x182885D30", Slot = "17")] [CLSCompliant(false)] public virtual void Write(ushort value) { } /// Writes a four-byte signed integer to the current stream and advances the stream position by four bytes. /// The four-byte signed integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001711 RID: 5905 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001711")] [Address(RVA = "0x28861F0", Offset = "0x2884FF0", VA = "0x1828861F0", Slot = "18")] public virtual void Write(int value) { } /// Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes. /// The four-byte unsigned integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001712 RID: 5906 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001712")] [Address(RVA = "0x28864A0", Offset = "0x28852A0", VA = "0x1828864A0", Slot = "19")] [CLSCompliant(false)] public virtual void Write(uint value) { } /// Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes. /// The eight-byte signed integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001713 RID: 5907 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001713")] [Address(RVA = "0x2885E50", Offset = "0x2884C50", VA = "0x182885E50", Slot = "20")] public virtual void Write(long value) { } /// Writes an eight-byte unsigned integer to the current stream and advances the stream position by eight bytes. /// The eight-byte unsigned integer to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001714 RID: 5908 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001714")] [Address(RVA = "0x28862E0", Offset = "0x28850E0", VA = "0x1828862E0", Slot = "21")] [CLSCompliant(false)] public virtual void Write(ulong value) { } /// Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes. /// The four-byte floating-point value to write. /// An I/O error occurs. /// The stream is closed. // Token: 0x06001715 RID: 5909 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001715")] [Address(RVA = "0x28860E0", Offset = "0x2884EE0", VA = "0x1828860E0", Slot = "22")] public virtual void Write(float value) { } /// Writes a length-prefixed string to this stream in the current encoding of the , and advances the current position of the stream in accordance with the encoding used and the specific characters being written to the stream. /// The value to write. /// An I/O error occurs. /// /// is . /// The stream is closed. // Token: 0x06001716 RID: 5910 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001716")] [Address(RVA = "0x2886590", Offset = "0x2885390", VA = "0x182886590", Slot = "23")] public virtual void Write(string value) { } /// Writes a 32-bit integer in a compressed format. /// The 32-bit integer to be written. /// The end of the stream is reached. /// The stream is closed. /// The stream is closed. // Token: 0x06001717 RID: 5911 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001717")] [Address(RVA = "0x2885CC0", Offset = "0x2884AC0", VA = "0x182885CC0")] protected void Write7BitEncodedInt(int value) { } /// Specifies a with no backing store. // Token: 0x04000C79 RID: 3193 [Token(Token = "0x4000C79")] public static readonly BinaryWriter Null; /// Holds the underlying stream. // Token: 0x04000C7A RID: 3194 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4000C7A")] protected Stream OutStream; // Token: 0x04000C7B RID: 3195 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4000C7B")] private byte[] _buffer; // Token: 0x04000C7C RID: 3196 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4000C7C")] private Encoding _encoding; // Token: 0x04000C7D RID: 3197 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4000C7D")] private Encoder _encoder; // Token: 0x04000C7E RID: 3198 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000C7E")] [OptionalField] private bool _leaveOpen; // Token: 0x04000C7F RID: 3199 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000C7F")] [OptionalField] private char[] _tmpOneCharBuffer; // Token: 0x04000C80 RID: 3200 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4000C80")] private byte[] _largeByteBuffer; // Token: 0x04000C81 RID: 3201 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x4000C81")] private int _maxChars; // Token: 0x04000C82 RID: 3202 [Token(Token = "0x4000C82")] private const int LargeByteBufferSize = 256; } }