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 | 
| Int32 | 
initialCapacity | 
 | 
| Int32 | 
alignment | 
 | 
| Allocator | 
allocator | 
 | 
UnsafeAppendBuffer(Void*, Int32)
Declaration
public UnsafeAppendBuffer(void *externalBuffer, int capacity)
 
Parameters
| Type | 
Name | 
Description | 
| Void* | 
externalBuffer | 
 | 
| Int32 | 
capacity | 
 | 
Fields
  
Alignment
Declaration
public readonly int Alignment
 
Field Value
Allocator
Declaration
public readonly Allocator Allocator
 
Field Value
| Type | 
Description | 
| Allocator | 
 | 
Capacity
Declaration
Field Value
Ptr
Declaration
Field Value
Size
Declaration
Field Value
Properties
  
IsEmpty
Declaration
public bool IsEmpty { get; }
 
Property Value
Methods
  
Add(String)
Declaration
public void Add(string value)
 
Parameters
| Type | 
Name | 
Description | 
| String | 
value | 
 | 
Add(Void*, Int32)
Declaration
public void Add(void *t, int structSize)
 
Parameters
| Type | 
Name | 
Description | 
| Void* | 
t | 
 | 
| Int32 | 
structSize | 
 | 
Add<T>(T)
Declaration
public void Add<T>(T t)
    where T : struct
 
Parameters
| Type | 
Name | 
Description | 
| T | 
t | 
 | 
Type Parameters
Add<T>(NativeArray<T>)
Declaration
public void Add<T>(NativeArray<T> value)
    where T : struct
 
Parameters
| Type | 
Name | 
Description | 
| NativeArray<T> | 
value | 
 | 
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 | 
| Void* | 
t | 
 | 
| Int32 | 
structSize | 
 | 
Pop<T>()
Declaration
public T Pop<T>()
    where T : struct
 
Returns
Type Parameters
Reset()
Declaration
ResizeUninitialized(Int32)
Declaration
public void ResizeUninitialized(int requestedSize)
 
Parameters
| Type | 
Name | 
Description | 
| Int32 | 
requestedSize | 
 | 
SetCapacity(Int32)
Declaration
public void SetCapacity(int targetCapacity)
 
Parameters
| Type | 
Name | 
Description | 
| Int32 | 
targetCapacity | 
 | 
ToBytes()
Declaration
Returns
Extension Methods