Search Results for

    Show / Hide Table of Contents

    Class BufferedWriter

    A buffered writer for a Stream

    Inheritance
    Object
    BufferedWriter
    Implements
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: VoltRpc.IO
    Assembly: VoltRpc.dll
    Syntax
    public class BufferedWriter : IDisposable

    Constructors

    | Improve this Doc View Source

    BufferedWriter(Stream, Int32)

    Creates a new BufferedWriter instance

    Declaration
    public BufferedWriter(Stream output, int bufferSize = 8000)
    Parameters
    Type Name Description
    Stream output
    Int32 bufferSize

    Fields

    | Improve this Doc View Source

    MaxStringLength

    Max length for a String

    Declaration
    public const int MaxStringLength = 32768
    Field Value
    Type Description
    Int32
    | Improve this Doc View Source

    OutputStream

    Output Stream

    Declaration
    protected readonly Stream OutputStream
    Field Value
    Type Description
    Stream

    Properties

    | Improve this Doc View Source

    Length

    The length of the buffer

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    OutputStreamPosition

    You may need to override this if your Stream requires it

    Declaration
    protected virtual long OutputStreamPosition { get; set; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    Position

    The current position of the buffer

    Declaration
    public int Position { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Flush()

    Writes the buffer to the out Stream

    Declaration
    public void Flush()
    | Improve this Doc View Source

    Reset()

    Reset position

    Declaration
    public void Reset()
    | Improve this Doc View Source

    WriteByte(Byte)

    Writes a Byte

    Declaration
    public void WriteByte(byte value)
    Parameters
    Type Name Description
    Byte value

    The value to write

    | Improve this Doc View Source

    WriteBytes(Byte[], Int32, Int32)

    Writes an array of Bytes

    Declaration
    public void WriteBytes(byte[] bytesBuffer, int offset, int count)
    Parameters
    Type Name Description
    Byte[] bytesBuffer
    Int32 offset
    Int32 count
    | Improve this Doc View Source

    WriteString(String)

    Writes a String

    Declaration
    public void WriteString(string value)
    Parameters
    Type Name Description
    String value
    Exceptions
    Type Condition
    IndexOutOfRangeException

    Implements

    System.IDisposable

    Extension Methods

    BufferedWriterExtensions.WriteSByte(BufferedWriter, SByte)
    BufferedWriterExtensions.WriteBool(BufferedWriter, Boolean)
    BufferedWriterExtensions.WriteUShort(BufferedWriter, UInt16)
    BufferedWriterExtensions.WriteShort(BufferedWriter, Int16)
    BufferedWriterExtensions.WriteChar(BufferedWriter, Char)
    BufferedWriterExtensions.WriteUInt(BufferedWriter, UInt32)
    BufferedWriterExtensions.WriteInt(BufferedWriter, Int32)
    BufferedWriterExtensions.WriteULong(BufferedWriter, UInt64)
    BufferedWriterExtensions.WriteLong(BufferedWriter, Int64)
    BufferedWriterExtensions.WriteFloat(BufferedWriter, Single)
    BufferedWriterExtensions.WriteDouble(BufferedWriter, Double)
    BufferedWriterExtensions.WriteDecimal(BufferedWriter, Decimal)
    BufferedWriterVectorsExtensions.WriteMatrix3X2(BufferedWriter, Matrix3x2)
    BufferedWriterVectorsExtensions.WriteMatrix4X4(BufferedWriter, Matrix4x4)
    BufferedWriterVectorsExtensions.WritePlane(BufferedWriter, Plane)
    BufferedWriterVectorsExtensions.WriteQuaternion(BufferedWriter, Quaternion)
    BufferedWriterVectorsExtensions.WriteVector2(BufferedWriter, Vector2)
    BufferedWriterVectorsExtensions.WriteVector3(BufferedWriter, Vector3)
    BufferedWriterVectorsExtensions.WriteVector4(BufferedWriter, Vector4)
    BufferedWriterMemoryExtensions.WriteBytesSpan(BufferedWriter, ReadOnlySpan<Byte>)
    BufferedWriterMemoryExtensions.WriteBytesMemory(BufferedWriter, ReadOnlyMemory<Byte>)
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    Voltstro-Studios (c) 2021-2022
    ☀
    ☾