Class StringBuffer | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class StringBuffer

    Based on https://pastebin.com/HqAw2pTG

    Inheritance
    System.Object
    StringBuffer
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Unity.Properties.Serialization
    Syntax
    public class StringBuffer

    Constructors

    StringBuffer(Char[])

    Declaration
    public StringBuffer(char[] buffer)
    Parameters
    Type Name Description
    System.Char[] buffer

    StringBuffer(Int32)

    Declaration
    public StringBuffer(int initialCapacity = 32)
    Parameters
    Type Name Description
    System.Int32 initialCapacity

    Properties

    Buffer

    Declaration
    public char[] Buffer { get; }
    Property Value
    Type Description
    System.Char[]

    Item[Int32]

    Declaration
    public char this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    System.Char

    Length

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

    Methods

    Append(Char, Int32)

    Appends a char

    Declaration
    public void Append(char value, int repeatCount = 1)
    Parameters
    Type Name Description
    System.Char value
    System.Int32 repeatCount

    Append(Int32)

    Append an int

    Declaration
    public void Append(int value)
    Parameters
    Type Name Description
    System.Int32 value

    Append(Object)

    Append an object.ToString()

    Declaration
    public void Append(object value)
    Parameters
    Type Name Description
    System.Object value

    Append(Single)

    Append a float value

    Declaration
    public void Append(float valueF)
    Parameters
    Type Name Description
    System.Single valueF

    Append(String)

    Append a string

    Declaration
    public void Append(string value)
    Parameters
    Type Name Description
    System.String value

    Clear()

    Reset the m_char array

    Declaration
    public void Clear()

    EnsureCapacity(Int32)

    Ensures the capacity of the underlying buffer

    Declaration
    public void EnsureCapacity(int count)
    Parameters
    Type Name Description
    System.Int32 count

    Number of characters being added

    IsEmpty()

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    System.Boolean

    ToString()

    Return the string

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023