Struct UnsafeAppendBuffer
Syntax
public struct UnsafeAppendBuffer : IDisposable
Constructors
UnsafeAppendBuffer(Int32, Int32, Allocator)
Declaration
public UnsafeAppendBuffer(int initialCapacity, int alignment, Allocator allocator)
Parameters
Type |
Name |
Description |
System.Int32 |
initialCapacity |
|
System.Int32 |
alignment |
|
Allocator |
allocator |
|
Fields
Alignment
Declaration
public readonly int Alignment
Field Value
Type |
Description |
System.Int32 |
|
Allocator
Declaration
public readonly Allocator Allocator
Field Value
Type |
Description |
Allocator |
|
Capacity
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Ptr
Declaration
Field Value
Type |
Description |
System.Void* |
|
Size
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Add(Void*, Int32)
Declaration
public void Add(void *t, int structSize)
Parameters
Type |
Name |
Description |
System.Void* |
t |
|
System.Int32 |
structSize |
|
Add<T>(T)
Declaration
public void Add<T>(T t)
where T : struct
Parameters
Type |
Name |
Description |
T |
t |
|
Type Parameters
AsReader()
Declaration
public UnsafeAppendBuffer.Reader AsReader()
Returns
Dispose()
Declaration
Pop(Void*, Int32)
Declaration
public void Pop(void *t, int structSize)
Parameters
Type |
Name |
Description |
System.Void* |
t |
|
System.Int32 |
structSize |
|
Pop<T>()
Declaration
public T Pop<T>()
where T : struct
Returns
Type Parameters
Reset()
Declaration
SetCapacity(Int32)
Declaration
public void SetCapacity(int targetCapacity)
Parameters
Type |
Name |
Description |
System.Int32 |
targetCapacity |
|
Extension Methods