Method Add
Add<T>(T)
Appends an element to the end of this append buffer.
Declaration
public void Add<T>(T value) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to be appended. |
Type Parameters
Name | Description |
---|---|
T | The type of the element. |
Add(void*, int)
Appends an element to the end of this append buffer.
Declaration
public void Add(void* ptr, int structSize)
Parameters
Type | Name | Description |
---|---|---|
void* | ptr | A pointer to the value to be appended. |
int | structSize | The size in bytes of the value to be appended. |
Remarks
The value itself is stored, not the pointer.
Add<T>(NativeArray<T>)
Appends all elements of an array to the end of this append buffer.
Declaration
public void Add<T>(NativeArray<T> value) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
NativeArray<T> | value | The array whose elements will all be appended. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements. |