Lines Matching refs:key_datum
50 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode) { in flatfile_store() argument
52 if (flatfile_findkey(dba, key_datum)) { in flatfile_store()
56 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize); in flatfile_store()
58 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
67 flatfile_delete(dba, key_datum); in flatfile_store()
68 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize); in flatfile_store()
70 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
86 datum flatfile_fetch(flatfile *dba, datum key_datum) { in flatfile_fetch() argument
90 if (flatfile_findkey(dba, key_datum)) { in flatfile_fetch()
106 int flatfile_delete(flatfile *dba, datum key_datum) { in flatfile_delete() argument
107 char *key = key_datum.dptr; in flatfile_delete()
108 size_t size = key_datum.dsize; in flatfile_delete()
158 int flatfile_findkey(flatfile *dba, datum key_datum) { in flatfile_findkey() argument
163 void *key = key_datum.dptr; in flatfile_findkey()
164 size_t size = key_datum.dsize; in flatfile_findkey()