Show / Hide Table of Contents

    Struct StringBuffer

    Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Bayat.Json.Utilities
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public struct StringBuffer

    Constructors

    | Improve this Doc View Source

    StringBuffer(IArrayPool<Char>, Int32)

    Declaration
    public StringBuffer(IArrayPool<char> bufferPool, int initalSize)
    Parameters
    Type Name Description
    IArrayPool<System.Char> bufferPool
    System.Int32 initalSize

    Properties

    | Improve this Doc View Source

    InternalBuffer

    Declaration
    public readonly char[] InternalBuffer { get; }
    Property Value
    Type Description
    System.Char[]
    | Improve this Doc View Source

    IsEmpty

    Declaration
    public readonly bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Position

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

    Methods

    | Improve this Doc View Source

    Append(IArrayPool<Char>, Char)

    Declaration
    public void Append(IArrayPool<char> bufferPool, char value)
    Parameters
    Type Name Description
    IArrayPool<System.Char> bufferPool
    System.Char value
    | Improve this Doc View Source

    Append(IArrayPool<Char>, Char[], Int32, Int32)

    Declaration
    public void Append(IArrayPool<char> bufferPool, char[] buffer, int startIndex, int count)
    Parameters
    Type Name Description
    IArrayPool<System.Char> bufferPool
    System.Char[] buffer
    System.Int32 startIndex
    System.Int32 count
    | Improve this Doc View Source

    Clear(IArrayPool<Char>)

    Declaration
    public void Clear(IArrayPool<char> bufferPool)
    Parameters
    Type Name Description
    IArrayPool<System.Char> bufferPool
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    | Improve this Doc View Source

    ToString(Int32, Int32)

    Declaration
    public string ToString(int start, int length)
    Parameters
    Type Name Description
    System.Int32 start
    System.Int32 length
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    • 0 Comments