Search Results for

    Show / Hide Table of Contents

    Class BufferedReaderMemoryExtensions

    Provides extensions to BufferedReader

    Inheritance
    Object
    BufferedReaderMemoryExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: VoltRpc.Extension.Memory
    Assembly: VoltRpc.Extension.Memory.dll
    Syntax
    public static class BufferedReaderMemoryExtensions

    Methods

    | Improve this Doc View Source

    ReadBytesSpanCopy(BufferedReader, Int32)

    Reads from BufferedReader and returns a Span<T> copy of it

    This method does allocate

    Declaration
    public static ReadOnlySpan<byte> ReadBytesSpanCopy(this BufferedReader reader, int size)
    Parameters
    Type Name Description
    BufferedReader reader
    Int32 size
    Returns
    Type Description
    ReadOnlySpan<Byte>
    | Improve this Doc View Source

    ReadBytesSpanSlice(BufferedReader, Int32)

    Reads from BufferedReader and returns a Span<T> slice of the buffer

    Declaration
    public static ReadOnlySpan<byte> ReadBytesSpanSlice(this BufferedReader reader, int size)
    Parameters
    Type Name Description
    BufferedReader reader
    Int32 size
    Returns
    Type Description
    ReadOnlySpan<Byte>
    | Improve this Doc View Source

    ReadStringSpan(BufferedReader)

    Reads a String, but is using ReadBytesSpanSlice(BufferedReader, Int32) instead

    Declaration
    public static string ReadStringSpan(this BufferedReader reader)
    Parameters
    Type Name Description
    BufferedReader reader
    Returns
    Type Description
    String
    Exceptions
    Type Condition
    EndOfStreamException
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    Voltstro-Studios (c) 2021-2022
    ☀
    ☾