UnsafeAppendBuffer
An unmanaged, untyped, heterogeneous buffer.
Read time 1 minuteLast updated 12 days ago
Definition
public struct UnsafeAppendBuffer : INativeDisposable, IDisposable
The values written to an individual append buffer can be of different types.
Fields
Value | Description |
|---|
| Alignment | The byte alignment used when allocating the internal buffer. |
| Allocator | The allocator used to create the internal buffer. |
| Capacity | The size in bytes of the internal buffer. |
| Length | The size in bytes of the currently-used portion of the internal buffer. |
| Ptr | The internal buffer where the content is stored. |
Constructors
Properties
Property | Description |
|---|
| IsCreated | Whether this append buffer has been allocated (and not yet deallocated). |
| IsEmpty | Whether the append buffer is empty. |
Methods
Method | Description |
|---|
| Add | Appends an element to the end of this append buffer. |
| AddArray | Appends the elements of a buffer to the end of this append buffer. |
| AsReader | Returns a reader for this append buffer. |
| Dispose | Releases all resources (memory and safety handles). |
| Pop | Removes and copies the last element of this append buffer. |
| Reset | Sets the length to 0. |
| ResizeUninitialized | Sets the length in bytes. |
| SetCapacity | Sets the size in bytes of the internal buffer. |
Structs