Lines Matching refs:key_datum
47 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode) { in flatfile_store() argument
49 if (flatfile_findkey(dba, key_datum)) { in flatfile_store()
53 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize); in flatfile_store()
55 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
64 flatfile_delete(dba, key_datum); in flatfile_store()
65 php_stream_printf(dba->fp, "%zu\n", key_datum.dsize); in flatfile_store()
67 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
82 datum flatfile_fetch(flatfile *dba, datum key_datum) { in flatfile_fetch() argument
86 if (flatfile_findkey(dba, key_datum)) { in flatfile_fetch()
101 int flatfile_delete(flatfile *dba, datum key_datum) { in flatfile_delete() argument
102 char *key = key_datum.dptr; in flatfile_delete()
103 size_t size = key_datum.dsize; in flatfile_delete()
152 int flatfile_findkey(flatfile *dba, datum key_datum) { in flatfile_findkey() argument
157 void *key = key_datum.dptr; in flatfile_findkey()
158 size_t size = key_datum.dsize; in flatfile_findkey()