WYRDTEK Home Features Reference Downloads About



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


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

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_FAILTOSAVE Failed to save. Check errno for any system errors.


es_mbd_savefile is a wrapper function over es_mbd_save() for serializing a database definition to a file.

bufsize is the size of the internal buffer used by es_mbd_savefile in serializing the database.

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