Struct BlobBuilder
Syntax
public struct BlobBuilder : IDisposable
Constructors
BlobBuilder(Allocator, Int32)
Declaration
public BlobBuilder(Allocator allocator, int chunkSize = 65536)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
System.Int32 |
chunkSize |
|
Methods
Allocate<T>(ref BlobArray<T>, Int32)
Declaration
public BlobBuilderArray<T> Allocate<T>(ref BlobArray<T> ptr, int length)
where T : struct
Parameters
Type |
Name |
Description |
BlobArray<T> |
ptr |
|
System.Int32 |
length |
|
Returns
Type Parameters
Allocate<T>(ref BlobPtr<T>)
Declaration
public T Allocate<T>(ref BlobPtr<T> ptr)
where T : struct
Parameters
Type |
Name |
Description |
BlobPtr<T> |
ptr |
|
Returns
Type Parameters
Construct<T>(ref BlobArray<T>, T[])
Declaration
public BlobBuilderArray<T> Construct<T>(ref BlobArray<T> blobArray, params T[] data)
where T : struct
Parameters
Type |
Name |
Description |
BlobArray<T> |
blobArray |
|
T[] |
data |
|
Returns
Type Parameters
ConstructRoot<T>()
Declaration
public T ConstructRoot<T>()
where T : struct
Returns
Type Parameters
CreateBlobAssetReference<T>(Allocator)
Declaration
public BlobAssetReference<T> CreateBlobAssetReference<T>(Allocator allocator)
where T : struct
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Returns
Type Parameters
Dispose()
Declaration
Extension Methods