BufferedWriter Class

Definition

A buffered writer for a System.IO.Stream

public class BufferedWriter : IDisposable
Inheritance
System.Object
BufferedWriter
Implements
System.IDisposable

Constructors

BufferedWriter(Stream, Int32)

Creates a new BufferedWriter instance

Fields

MaxStringLength

Max length for a System.String

OutputStream

Output System.IO.Stream

Properties

HasDisposed

Has this object been disposed

Length

The length of the buffer

OutputStreamPosition

You may need to override this if your System.IO.Stream requires it

Position

The current position of the buffer

Methods

Dispose()

Disposes of this BufferedWriter instance

This method SHOULD NOT be used! VoltRpc will dispose of this object when it is done with it!

NOTE: This disposal method will NOT call System.IO.Stream.Dispose on the underlying OutputStream

Finalize()

Destructor for this object

Reset()

Reset position

WriteByte(Byte)

Writes a System.Byte

WriteBytes(Byte[], Int32, Int32)

Writes an array of System.Bytes

WriteString(String)

Writes a System.String

Extension Methods

WriteBytesMemory(BufferedWriter, ReadOnlyMemory<Byte>)

Writes a System.Memory`1System.Byte to a BufferedWriter

WriteBytesSpan(BufferedWriter, ReadOnlySpan<Byte>)

Writes a System.Span`1System.Byte to a BufferedWriter

WriteMatrix3X2(BufferedWriter, Matrix3x2)

Writes a System.Numerics.Matrix3x2

WriteMatrix4X4(BufferedWriter, Matrix4x4)

Writes a System.Numerics.Matrix4x4

WritePlane(BufferedWriter, Plane)

Writes a System.Numerics.Plane

WriteQuaternion(BufferedWriter, Quaternion)

Writes a System.Numerics.Quaternion

WriteVector2(BufferedWriter, Vector2)

Writes a System.Numerics.Vector2

WriteVector3(BufferedWriter, Vector3)

Writes a System.Numerics.Vector3

WriteVector4(BufferedWriter, Vector4)

Writes a System.Numerics.Vector4

WriteBool(BufferedWriter, Boolean)

Writes a System.Boolean

WriteChar(BufferedWriter, Char)

Writes a System.Char

WriteDecimal(BufferedWriter, Decimal)

Writes a System.Decimal

WriteDouble(BufferedWriter, Double)

Writes a System.Double

WriteFloat(BufferedWriter, Single)

Writes a System.Single

WriteInt(BufferedWriter, Int32)

Writes a System.Int32

WriteLong(BufferedWriter, Int64)

Writes a System.Int64

WriteSByte(BufferedWriter, SByte)

Writes a System.SByte

WriteShort(BufferedWriter, Int16)

Writes a System.Int16

WriteUInt(BufferedWriter, UInt32)

Writes a System.UInt32

WriteULong(BufferedWriter, UInt64)

Writes a System.UInt64

WriteUShort(BufferedWriter, UInt16)

Writes a System.UInt16