WYRDTEK Home Features Reference Downloads About



int es_mbd_loadbuffer( struct es_mbd *def, const char *filen, unsigned bufsize );


struct es_mbd *def Database definition to be loaded.
const char *filen File path name prefix.
unsigned bufsize Buffer size used in de-serializing database.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_FAILTOLOAD Failed to load. Check errno for any system errors.


es_mbd_loadfile is a wrapper function over es_mbd_load() for de-serializing a database definition from a file. The definition must have been previously saved via es_mbd_savefile().

bufsize is the size of the internal buffer used by es_mbd_loadfile in de-serializing the database.

[Back To Reference] [Back To Reference/es_mbd]