dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
serial.h File Reference

Functions for (de)serializing engine structs to save states. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SERIAL_ERROR   -1
 
#define serial_asn_write_seq_start(p_asn_buffer_h, p_mark, desc, idx, cleanup)
 
#define serial_asn_write_seq_end(p_asn_buffer_h, p_mark, desc, idx, cleanup)
 
#define serial_asn_write_int(p_asn_buffer_h, val, x_val_sz, desc, idx, cleanup)
 
#define serial_asn_write_string(p_asn_buffer_h, str, str_sz, desc, idx, cleanup)
 
#define serial_asn_read_seq(asn_buffer, p_type, p_sz, desc, idx, read_sz, cleanup)
 
#define serial_asn_read_int(asn_buffer, p_val, val_sz, flags, desc, idx, read_sz, cleanup)
 
#define serial_asn_read_string(asn_buffer, str_buffer, str_buffer_sz, desc, idx, read_sz, cleanup)
 

Functions

int32_t serial_save (const char *save_name, struct DSEKAI_STATE *state) SECTION_ASN
 Serialize the engine struct to a save state and call the unilayer_save to write that save state to storage.
 
int32_t serial_load (const char *save_name, struct DSEKAI_STATE *state) SECTION_ASN
 Call the unilayer_save to provide the save state with the given name and deserialize it into the given engine struct.
 

Detailed Description

Functions for (de)serializing engine structs to save states.