Go to the source code of this file.
◆ kasset_model_deserialize()
Attempts to deserialize the given block of memory into an model asset.
- Parameters
-
| size | The size of the serialized block in bytes. Required. |
| block | A constant pointer to the block of memory to deserialize. Required. |
| out_asset | A pointer to the asset to deserialize to. Required. |
- Returns
- True on success; otherwise false.
◆ kasset_model_serialize()
| KAPI void* kasset_model_serialize |
( |
const kasset_model * |
asset, |
|
|
u32 |
exporter_type, |
|
|
u8 |
exporter_version, |
|
|
u64 * |
out_size |
|
) |
| |
Attempts to serialize the asset into a binary blob. NOTE: allocates memory that should be freed by the caller.
- Parameters
-
| asset | A constant pointer to the asset to be serialized. Required. |
| out_size | A pointer to hold the size of the serialized block of memory. Required. |
| exporter_type | Specifies the type of the exporter for debugging purposes. |
| exporter_version | Specifies the version of the exporter for debugging purposes. |
- Returns
- A block of memory containing the serialized asset on success; 0 on failure.