Property Capacity
Capacity
The current capacity in bytes of this string.
Declaration
public int Capacity { readonly get; set; }
Property Value
Type | Description |
---|---|
int | The current capacity in bytes of the string. |
Implements
Remarks
The null-terminator byte is not included in the capacity, so the string's character buffer is Capacity + 1
in size.
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown if ENABLE_UNITY_COLLECTIONS_CHECKS is defined and a write is attempted. |