| Parameter | Description |
|---|---|
| ptr | A pointer to the buffer containing the data to store in the blob asset. |
| length | The length of the buffer in bytes. |
BlobAssetReference<T> A reference to newly created blob asset.
Creates a blob asset from a pointer to data and a specified size.
The blob asset is created in unmanaged memory. Call BlobAssetReference<T0>.Dispose to free the asset memory
when it is no longer needed. This function can only be used in an [unsafe context].
[unsafe context]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code
Additional resources: BlobBuilder
| Parameter | Description |
|---|---|
| data | The byte array containing the data to store in the blob asset. |
BlobAssetReference<T> A reference to newly created blob asset.
Creates a blob asset from a byte array.
The blob asset is created in unmanaged memory. Call BlobAssetReference<T0>.Dispose to free the asset memory
when it is no longer needed. This function can only be used in an [unsafe context].
[unsafe context]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code
Additional resources: BlobBuilder
| Parameter | Description |
|---|---|
| value | An instance of T. |
BlobAssetReference<T> A reference to newly created blob asset.
Creates a blob asset from an instance of a struct.
The struct must only contain blittable fields (primitive types, fixed-length arrays, or other structs
meeting these same criteria). The blob asset is created in unmanaged memory. Call BlobAssetReference<T0>.Dispose to
free the asset memory when it is no longer needed. This function can only be used in an [unsafe context].
[unsafe context]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/unsafe-code
Additional resources: BlobBuilder