BufferedWriter Class

Definition

A buffered writer for a Stream

public class BufferedWriter : IDisposable
Inheritance
BufferedWriter
Implements

Constructors

BufferedWriter(Stream, Int32)

Creates a new BufferedWriter instance

Fields

MaxStringLength

Max length for a String

OutputStream

Output Stream

Properties

HasDisposed

Has this object been disposed

Length

The length of the buffer

OutputStreamPosition

You may need to override this if your 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 Dispose() on the underlying OutputStream

Finalize()

Destructor for this object

Reset()

Reset position

WriteByte(Byte)

Writes a Byte

WriteBytes(Byte[], Int32, Int32)

Writes an array of Bytes

WriteString(String)

Writes a String

Extension Methods

WriteBytesMemory(BufferedWriter, ReadOnlyMemory<Byte>)

Writes a Memory<T>Byte to a BufferedWriter

WriteBytesSpan(BufferedWriter, ReadOnlySpan<Byte>)

Writes a Span<T>Byte to a BufferedWriter

WriteMatrix3X2(BufferedWriter, Matrix3x2)

Writes a Matrix3x2

WriteMatrix4X4(BufferedWriter, Matrix4x4)

Writes a Matrix4x4

WritePlane(BufferedWriter, Plane)

Writes a Plane

WriteQuaternion(BufferedWriter, Quaternion)

Writes a Quaternion

WriteVector2(BufferedWriter, Vector2)

Writes a Vector2

WriteVector3(BufferedWriter, Vector3)

Writes a Vector3

WriteVector4(BufferedWriter, Vector4)

Writes a Vector4

WriteBool(BufferedWriter, Boolean)

Writes a Boolean

WriteChar(BufferedWriter, Char)

Writes a Char

WriteDecimal(BufferedWriter, Decimal)

Writes a Decimal

WriteDouble(BufferedWriter, Double)

Writes a Double

WriteFloat(BufferedWriter, Single)

Writes a Single

WriteInt(BufferedWriter, Int32)

Writes a Int32

WriteLong(BufferedWriter, Int64)

Writes a Int64

WriteSByte(BufferedWriter, SByte)

Writes a SByte

WriteShort(BufferedWriter, Int16)

Writes a Int16

WriteUInt(BufferedWriter, UInt32)

Writes a UInt32

WriteULong(BufferedWriter, UInt64)

Writes a UInt64

WriteUShort(BufferedWriter, UInt16)

Writes a UInt16

Applies to