Method Write
Write<U>(U, BlobBuilder, int)
Reads bytes from a buffer, validates the expected serialized version, and deserializes them into a new blob asset. The returned blob reuses the data from the passed in pointer and is only valid as long as the buffer stays allocated. Also the returned blob asset reference can not be disposed.
Declaration
public static void Write<U>(U writer, BlobBuilder builder, int version) where U : BinaryWriter
Parameters
| Type | Name | Description |
|---|---|---|
| U | writer | The binary writer to write the blob with. |
| BlobBuilder | builder | The BlobBuilder containing the blob to write. |
| int | version | Expected version number of the blob data. |
Type Parameters
| Name | Description |
|---|---|
| U | The type of binary writer |
Write(BlobBuilder, string, int)
Writes the blob data to a path with serialized version.
Declaration
public static void Write(BlobBuilder builder, string path, int version)
Parameters
| Type | Name | Description |
|---|---|---|
| BlobBuilder | builder | The BlobBuilder containing the blob to write. |
| string | path | The path to write the blob data. |
| int | version | Serialized version number of the blob data. |