Kohi Game Engine
kasset_bitmap_font_serializer.h File Reference

Go to the source code of this file.

Functions

KAPI void * kasset_bitmap_font_serialize (const kasset_bitmap_font *asset, u64 *out_size)
 Attempts to serialize the asset into a binary blob. NOTE: allocates memory that should be freed by the caller. More...
 
KAPI b8 kasset_bitmap_font_deserialize (u64 size, const void *data, kasset_bitmap_font *out_asset)
 

Function Documentation

◆ kasset_bitmap_font_deserialize()

KAPI b8 kasset_bitmap_font_deserialize ( u64  size,
const void *  data,
kasset_bitmap_font out_asset 
)

◆ kasset_bitmap_font_serialize()

KAPI void* kasset_bitmap_font_serialize ( const kasset_bitmap_font asset,
u64 out_size 
)

Attempts to serialize the asset into a binary blob. NOTE: allocates memory that should be freed by the caller.

Parameters
assetA constant pointer to the asset to be serialized. Required.
out_sizeA 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.