Struct BlobStringText
Simple Unity.
Inherited Members
Namespace: Unity.NetCode .LowLevel
Assembly: Unity.NetCode.dll
Syntax
public struct BlobStringText : INativeList<byte>, IIndexable<byte>, IUTF8Bytes
Constructors
BlobStringText(ref BlobString)
Construct the text from a Unity.
Declaration
public BlobStringText(ref BlobString blob)
Parameters
Type | Name | Description |
---|---|---|
Blob |
blob | Unity. |
Properties
Capacity
The number of elements that fit in the current allocation.
Declaration
public int Capacity { get; set; }
Property Value
Type | Description |
---|---|
int | The number of elements that fit in the current allocation. |
Remarks
Always throw NotImplementedException
Exceptions
Type | Condition |
---|---|
Not |
Always throw NotImplementedException |
IsEmpty
Whether this IUTF8Bytes is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool | True if this IUTF8Bytes is empty. |
this[int]
The element at an index.
Declaration
public byte this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | An index. |
Property Value
Type | Description |
---|---|
byte | The element at the index. |
Remarks
Always throw NotImplementedException
Exceptions
Type | Condition |
---|---|
Index |
Thrown if index is out of bounds. |
Not |
Always throw NotImplementedException |
Length
Declaration
public int Length { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
Always throw NotImplementedException
Exceptions
Type | Condition |
---|---|
Not |
Always throw NotImplementedException |
Methods
Clear()
Sets the length to 0.
Declaration
public void Clear()
Remarks
Does not change the capacity.
Exceptions
Type | Condition |
---|---|
Not |
Always throw NotImplementedException |
ElementAt(int)
Declaration
public ref byte ElementAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
byte |
Remarks
Always throw NotImplementedException
Exceptions
Type | Condition |
---|---|
Not |
Always throw NotImplementedException |
GetUnsafePtr()
Returns a pointer to the content of this IUTF8Bytes.
Declaration
public byte* GetUnsafePtr()
Returns
Type | Description |
---|---|
byte* | A pointer to the content of this IUTF8Bytes. |
Remarks
The pointer may point to stack memory.
TryResize(int, NativeArrayOptions)
Attempt to set the length in bytes of this IUTF8Bytes's content buffer.
Declaration
public bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)
Parameters
Type | Name | Description |
---|---|---|
int | newLength | The new length in bytes of the IUTF8Bytes's content buffer. |
Native |
clearOptions | Whether any bytes added should be zeroed out. |
Returns
Type | Description |
---|---|
bool | True if the new length is valid. |
Remarks
Always throw NotImplementedException
Exceptions
Type | Condition |
---|---|
Not |
Always throw NotImplementedException |