This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
+357
View File
@@ -0,0 +1,357 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Text;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Writes primitive types in binary to a stream and supports writing strings in a specific encoding.</summary>
// Token: 0x0200027B RID: 635
[Token(Token = "0x200027B")]
[ComVisible(true)]
[Serializable]
public class BinaryWriter : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BinaryWriter" /> class that writes to a stream.</summary>
// Token: 0x060016FF RID: 5887 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60016FF")]
[Address(RVA = "0x2886DC0", Offset = "0x2885BC0", VA = "0x182886DC0")]
protected BinaryWriter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BinaryWriter" /> class based on the specified stream and using UTF-8 encoding.</summary>
/// <param name="output">The output stream.</param>
/// <exception cref="T:System.ArgumentException">The stream does not support writing or is already closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="output" /> is <see langword="null" />.</exception>
// Token: 0x06001700 RID: 5888 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001700")]
[Address(RVA = "0x2886D40", Offset = "0x2885B40", VA = "0x182886D40")]
public BinaryWriter(Stream output)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BinaryWriter" /> class based on the specified stream and character encoding.</summary>
/// <param name="output">The output stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <exception cref="T:System.ArgumentException">The stream does not support writing or is already closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="output" /> or <paramref name="encoding" /> is <see langword="null" />.</exception>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BinaryWriter" /> class based on the specified stream and character encoding, and optionally leaves the stream open.</summary>
/// <param name="output">The output stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="leaveOpen">
/// <see langword="true" /> to leave the stream open after the <see cref="T:System.IO.BinaryWriter" /> object is disposed; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentException">The stream does not support writing or is already closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="output" /> or <paramref name="encoding" /> is <see langword="null" />.</exception>
// 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)
{
}
/// <summary>Closes the current <see cref="T:System.IO.BinaryWriter" /> and the underlying stream.</summary>
// 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()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.BinaryWriter" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// 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)
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.IO.BinaryWriter" /> class.</summary>
// Token: 0x06001705 RID: 5893 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001705")]
[Address(RVA = "0x2382280", Offset = "0x2381080", VA = "0x182382280", Slot = "4")]
public void Dispose()
{
}
/// <summary>Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.</summary>
// 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()
{
}
/// <summary>Writes a one-byte <see langword="Boolean" /> value to the current stream, with 0 representing <see langword="false" /> and 1 representing <see langword="true" />.</summary>
/// <param name="value">The <see langword="Boolean" /> value to write (0 or 1).</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes an unsigned byte to the current stream and advances the stream position by one byte.</summary>
/// <param name="value">The unsigned byte to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a signed byte to the current stream and advances the stream position by one byte.</summary>
/// <param name="value">The signed byte to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a byte array to the underlying stream.</summary>
/// <param name="buffer">A byte array containing the data to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
// 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)
{
}
/// <summary>Writes a region of a byte array to the current stream.</summary>
/// <param name="buffer">A byte array containing the data to write.</param>
/// <param name="index">The index of the first byte to read from <paramref name="buffer" /> and to write to the stream.</param>
/// <param name="count">The number of bytes to read from <paramref name="buffer" /> and to write to the stream.</param>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="index" /> is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the <see langword="Encoding" /> used and the specific characters being written to the stream.</summary>
/// <param name="ch">The non-surrogate, Unicode character to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="ch" /> is a single surrogate character.</exception>
// 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)
{
}
/// <summary>Writes a character array to the current stream and advances the current position of the stream in accordance with the <see langword="Encoding" /> used and the specific characters being written to the stream.</summary>
/// <param name="chars">A character array containing the data to write.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="chars" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
// 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)
{
}
/// <summary>Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes.</summary>
/// <param name="value">The eight-byte floating-point value to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a two-byte signed integer to the current stream and advances the stream position by two bytes.</summary>
/// <param name="value">The two-byte signed integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.</summary>
/// <param name="value">The two-byte unsigned integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a four-byte signed integer to the current stream and advances the stream position by four bytes.</summary>
/// <param name="value">The four-byte signed integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes.</summary>
/// <param name="value">The four-byte unsigned integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes.</summary>
/// <param name="value">The eight-byte signed integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes an eight-byte unsigned integer to the current stream and advances the stream position by eight bytes.</summary>
/// <param name="value">The eight-byte unsigned integer to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes.</summary>
/// <param name="value">The four-byte floating-point value to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a length-prefixed string to this stream in the current encoding of the <see cref="T:System.IO.BinaryWriter" />, and advances the current position of the stream in accordance with the encoding used and the specific characters being written to the stream.</summary>
/// <param name="value">The value to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="value" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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)
{
}
/// <summary>Writes a 32-bit integer in a compressed format.</summary>
/// <param name="value">The 32-bit integer to be written.</param>
/// <exception cref="T:System.IO.EndOfStreamException">The end of the stream is reached.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
/// <exception cref="T:System.IO.IOException">The stream is closed.</exception>
// Token: 0x06001717 RID: 5911 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001717")]
[Address(RVA = "0x2885CC0", Offset = "0x2884AC0", VA = "0x182885CC0")]
protected void Write7BitEncodedInt(int value)
{
}
/// <summary>Specifies a <see cref="T:System.IO.BinaryWriter" /> with no backing store.</summary>
// Token: 0x04000C79 RID: 3193
[Token(Token = "0x4000C79")]
public static readonly BinaryWriter Null;
/// <summary>Holds the underlying stream.</summary>
// 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;
}
}