using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Cpp2IlInjected; namespace System.IO { /// Implements a for writing characters to a stream in a particular encoding. // Token: 0x0200029E RID: 670 [Token(Token = "0x200029E")] [ComVisible(true)] [Serializable] public class StreamWriter : TextWriter { // Token: 0x0600187B RID: 6267 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600187B")] [Address(RVA = "0x260C240", Offset = "0x260B040", VA = "0x18260C240")] private void CheckAsyncTaskInProgress() { } // Token: 0x170002EE RID: 750 // (get) Token: 0x0600187C RID: 6268 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170002EE")] internal static Encoding UTF8NoBOM { [Token(Token = "0x600187C")] [Address(RVA = "0x260D420", Offset = "0x260C220", VA = "0x18260D420")] [FriendAccessAllowed] get { return null; } } // Token: 0x0600187D RID: 6269 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600187D")] [Address(RVA = "0x260CD70", Offset = "0x260BB70", VA = "0x18260CD70")] internal StreamWriter() { } /// Initializes a new instance of the class for the specified stream by using UTF-8 encoding and the default buffer size. /// The stream to write to. /// /// is not writable. /// /// is . // Token: 0x0600187E RID: 6270 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600187E")] [Address(RVA = "0x260D140", Offset = "0x260BF40", VA = "0x18260D140")] public StreamWriter(Stream stream) { } /// Initializes a new instance of the class for the specified stream by using the specified encoding and the default buffer size. /// The stream to write to. /// The character encoding to use. /// /// or is . /// /// is not writable. // Token: 0x0600187F RID: 6271 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600187F")] [Address(RVA = "0x260D3E0", Offset = "0x260C1E0", VA = "0x18260D3E0")] public StreamWriter(Stream stream, Encoding encoding) { } /// Initializes a new instance of the class for the specified stream by using the specified encoding and buffer size, and optionally leaves the stream open. /// The stream to write to. /// The character encoding to use. /// The buffer size, in bytes. /// /// to leave the stream open after the object is disposed; otherwise, . /// /// or is . /// /// is negative. /// /// is not writable. // Token: 0x06001880 RID: 6272 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001880")] [Address(RVA = "0x260D250", Offset = "0x260C050", VA = "0x18260D250")] public StreamWriter(Stream stream, Encoding encoding, int bufferSize, bool leaveOpen) { } /// Initializes a new instance of the class for the specified file by using the default encoding and buffer size. /// The complete file path to write to. can be a file name. /// Access is denied. /// /// is an empty string (""). /// -or- /// contains the name of a system device (com1, com2, and so on). /// /// is . /// The specified path is invalid (for example, it is on an unmapped drive). /// The specified path, file name, or both exceed the system-defined maximum length. /// /// includes an incorrect or invalid syntax for file name, directory name, or volume label syntax. /// The caller does not have the required permission. // Token: 0x06001881 RID: 6273 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001881")] [Address(RVA = "0x260D1C0", Offset = "0x260BFC0", VA = "0x18260D1C0")] public StreamWriter(string path) { } /// Initializes a new instance of the class for the specified file by using the default encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. /// The complete file path to write to. /// /// to append data to the file; to overwrite the file. If the specified file does not exist, this parameter has no effect, and the constructor creates a new file. /// Access is denied. /// /// is empty. /// -or- /// contains the name of a system device (com1, com2, and so on). /// /// is . /// The specified path is invalid (for example, it is on an unmapped drive). /// /// includes an incorrect or invalid syntax for file name, directory name, or volume label syntax. /// The specified path, file name, or both exceed the system-defined maximum length. /// The caller does not have the required permission. // Token: 0x06001882 RID: 6274 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001882")] [Address(RVA = "0x260CE00", Offset = "0x260BC00", VA = "0x18260CE00")] public StreamWriter(string path, bool append) { } /// Initializes a new instance of the class for the specified file by using the specified encoding and default buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. /// The complete file path to write to. /// /// to append data to the file; to overwrite the file. If the specified file does not exist, this parameter has no effect, and the constructor creates a new file. /// The character encoding to use. /// Access is denied. /// /// is empty. /// -or- /// contains the name of a system device (com1, com2, and so on). /// /// is . /// The specified path is invalid (for example, it is on an unmapped drive). /// /// includes an incorrect or invalid syntax for file name, directory name, or volume label syntax. /// The specified path, file name, or both exceed the system-defined maximum length. /// The caller does not have the required permission. // Token: 0x06001883 RID: 6275 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001883")] [Address(RVA = "0x260CDD0", Offset = "0x260BBD0", VA = "0x18260CDD0")] public StreamWriter(string path, bool append, Encoding encoding) { } /// Initializes a new instance of the class for the specified file on the specified path, using the specified encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. /// The complete file path to write to. /// /// to append data to the file; to overwrite the file. If the specified file does not exist, this parameter has no effect, and the constructor creates a new file. /// The character encoding to use. /// The buffer size, in bytes. /// /// is an empty string (""). /// -or- /// contains the name of a system device (com1, com2, and so on). /// /// or is . /// /// is negative. /// /// includes an incorrect or invalid syntax for file name, directory name, or volume label syntax. /// The caller does not have the required permission. /// Access is denied. /// The specified path is invalid (for example, it is on an unmapped drive). /// The specified path, file name, or both exceed the system-defined maximum length. // Token: 0x06001884 RID: 6276 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001884")] [Address(RVA = "0x260CD40", Offset = "0x260BB40", VA = "0x18260CD40")] public StreamWriter(string path, bool append, Encoding encoding, int bufferSize) { } // Token: 0x06001885 RID: 6277 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001885")] [Address(RVA = "0x260CEA0", Offset = "0x260BCA0", VA = "0x18260CEA0")] internal StreamWriter(string path, bool append, Encoding encoding, int bufferSize, bool checkHost) { } // Token: 0x06001886 RID: 6278 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001886")] [Address(RVA = "0x260C720", Offset = "0x260B520", VA = "0x18260C720")] private void Init(Stream streamArg, Encoding encodingArg, int bufferSize, bool shouldLeaveOpen) { } // Token: 0x06001887 RID: 6279 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001887")] [Address(RVA = "0x260C340", Offset = "0x260B140", VA = "0x18260C340")] private static Stream CreateFile(string path, bool append, bool checkHost) { return null; } /// Closes the current object and the underlying stream. /// The current encoding does not support displaying half of a Unicode surrogate pair. // Token: 0x06001888 RID: 6280 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001888")] [Address(RVA = "0x260C2D0", Offset = "0x260B0D0", VA = "0x18260C2D0", Slot = "8")] public override 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. /// The current encoding does not support displaying half of a Unicode surrogate pair. // Token: 0x06001889 RID: 6281 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001889")] [Address(RVA = "0x260C430", Offset = "0x260B230", VA = "0x18260C430", Slot = "9")] protected override void Dispose(bool disposing) { } /// Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream. /// The current writer is closed. /// An I/O error has occurred. /// The current encoding does not support displaying half of a Unicode surrogate pair. // Token: 0x0600188A RID: 6282 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600188A")] [Address(RVA = "0x260C570", Offset = "0x260B370", VA = "0x18260C570", Slot = "10")] public override void Flush() { } // Token: 0x0600188B RID: 6283 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600188B")] [Address(RVA = "0x260C5A0", Offset = "0x260B3A0", VA = "0x18260C5A0")] private void Flush(bool flushStream, bool flushEncoder) { } /// Gets or sets a value indicating whether the will flush its buffer to the underlying stream after every call to . /// /// to force to flush its buffer; otherwise, . // Token: 0x170002EF RID: 751 // (set) Token: 0x0600188C RID: 6284 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170002EF")] public virtual bool AutoFlush { [Token(Token = "0x600188C")] [Address(RVA = "0x260D520", Offset = "0x260C320", VA = "0x18260D520", Slot = "26")] set { } } /// Gets the underlying stream that interfaces with a backing store. /// The stream this is writing to. // Token: 0x170002F0 RID: 752 // (get) Token: 0x0600188D RID: 6285 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170002F0")] public virtual Stream BaseStream { [Token(Token = "0x600188D")] [Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "27")] get { return null; } } // Token: 0x170002F1 RID: 753 // (get) Token: 0x0600188E RID: 6286 RVA: 0x00010788 File Offset: 0x0000E988 [Token(Token = "0x170002F1")] internal bool LeaveOpen { [Token(Token = "0x600188E")] [Address(RVA = "0x260D410", Offset = "0x260C210", VA = "0x18260D410")] get { return default(bool); } } /// Gets the in which the output is written. /// The specified in the constructor for the current instance, or if an encoding was not specified. // Token: 0x170002F2 RID: 754 // (get) Token: 0x0600188F RID: 6287 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170002F2")] public override Encoding Encoding { [Token(Token = "0x600188F")] [Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "11")] get { return null; } } /// Writes a character to the stream. /// The character to write to the stream. /// An I/O error occurs. /// /// is true or the buffer is full, and current writer is closed. /// /// is true or the buffer is full, and the contents of the buffer cannot be written to the underlying fixed size stream because the is at the end the stream. // Token: 0x06001890 RID: 6288 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001890")] [Address(RVA = "0x260CBF0", Offset = "0x260B9F0", VA = "0x18260CBF0", Slot = "12")] public override void Write(char value) { } /// Writes a character array to the stream. /// A character array containing the data to write. If is , nothing is written. /// An I/O error occurs. /// /// is true or the buffer is full, and current writer is closed. /// /// is true or the buffer is full, and the contents of the buffer cannot be written to the underlying fixed size stream because the is at the end the stream. // Token: 0x06001891 RID: 6289 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001891")] [Address(RVA = "0x260C840", Offset = "0x260B640", VA = "0x18260C840", Slot = "13")] public override void Write(char[] buffer) { } /// Writes a subarray of characters to the stream. /// A character array that contains the data to write. /// The character position in the buffer at which to start reading data. /// The maximum number of characters to write. /// /// is . /// The buffer length minus is less than . /// /// or is negative. /// An I/O error occurs. /// /// is true or the buffer is full, and current writer is closed. /// /// is true or the buffer is full, and the contents of the buffer cannot be written to the underlying fixed size stream because the is at the end the stream. // Token: 0x06001892 RID: 6290 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001892")] [Address(RVA = "0x260C910", Offset = "0x260B710", VA = "0x18260C910", Slot = "14")] public override void Write(char[] buffer, int index, int count) { } /// Writes a string to the stream. /// The string to write to the stream. If is null, nothing is written. /// /// is true or the buffer is full, and current writer is closed. /// /// is true or the buffer is full, and the contents of the buffer cannot be written to the underlying fixed size stream because the is at the end the stream. /// An I/O error occurs. // Token: 0x06001893 RID: 6291 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001893")] [Address(RVA = "0x260CB20", Offset = "0x260B920", VA = "0x18260CB20", Slot = "17")] public override void Write(string value) { } // Token: 0x04000D1B RID: 3355 [Token(Token = "0x4000D1B")] internal const int DefaultBufferSize = 1024; // Token: 0x04000D1C RID: 3356 [Token(Token = "0x4000D1C")] private const int DefaultFileStreamBufferSize = 4096; // Token: 0x04000D1D RID: 3357 [Token(Token = "0x4000D1D")] private const int MinBufferSize = 128; // Token: 0x04000D1E RID: 3358 [Token(Token = "0x4000D1E")] private const int DontCopyOnWriteLineThreshold = 512; /// Provides a with no backing store that can be written to, but not read from. // Token: 0x04000D1F RID: 3359 [Token(Token = "0x4000D1F")] public new static readonly StreamWriter Null; // Token: 0x04000D20 RID: 3360 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4000D20")] private Stream stream; // Token: 0x04000D21 RID: 3361 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000D21")] private Encoding encoding; // Token: 0x04000D22 RID: 3362 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000D22")] private Encoder encoder; // Token: 0x04000D23 RID: 3363 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4000D23")] private byte[] byteBuffer; // Token: 0x04000D24 RID: 3364 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x4000D24")] private char[] charBuffer; // Token: 0x04000D25 RID: 3365 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x4000D25")] private int charPos; // Token: 0x04000D26 RID: 3366 [global::Cpp2IlInjected.FieldOffset(Offset = "0x54")] [Token(Token = "0x4000D26")] private int charLen; // Token: 0x04000D27 RID: 3367 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x4000D27")] private bool autoFlush; // Token: 0x04000D28 RID: 3368 [global::Cpp2IlInjected.FieldOffset(Offset = "0x59")] [Token(Token = "0x4000D28")] private bool haveWrittenPreamble; // Token: 0x04000D29 RID: 3369 [global::Cpp2IlInjected.FieldOffset(Offset = "0x5A")] [Token(Token = "0x4000D29")] private bool closable; // Token: 0x04000D2A RID: 3370 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x4000D2A")] [NonSerialized] private Task _asyncWriteTask; // Token: 0x04000D2B RID: 3371 [Token(Token = "0x4000D2B")] private static Encoding _UTF8NoBOM; } }