Go to the source code of this file.
◆ kasset_audio_deserialize()
Attempts to deserialize the given block of memory into an audio 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_audio_serialize()
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. |
- Returns
- A block of memory containing the serialized asset on success; 0 on failure.