Lines Matching refs:key_datum
51 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC) { in flatfile_store() argument
53 if (flatfile_findkey(dba, key_datum TSRMLS_CC)) { in flatfile_store()
57 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize); in flatfile_store()
59 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
68 flatfile_delete(dba, key_datum TSRMLS_CC); in flatfile_store()
69 php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize); in flatfile_store()
71 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
87 datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) { in flatfile_fetch()
91 if (flatfile_findkey(dba, key_datum TSRMLS_CC)) { in flatfile_fetch()
107 int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) { in flatfile_delete()
108 char *key = key_datum.dptr; in flatfile_delete()
109 size_t size = key_datum.dsize; in flatfile_delete()
165 int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) { in flatfile_findkey()
170 void *key = key_datum.dptr; in flatfile_findkey()
171 size_t size = key_datum.dsize; in flatfile_findkey()