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()