Lines Matching refs:value_datum
50 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode) { in flatfile_store() argument
61 php_stream_printf(dba->fp, "%zu\n", value_datum.dsize); in flatfile_store()
63 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
73 php_stream_printf(dba->fp, "%zu\n", value_datum.dsize); in flatfile_store()
74 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
87 datum value_datum = {NULL, 0}; in flatfile_fetch() local
92 value_datum.dsize = atoi(buf); in flatfile_fetch()
93 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()
94 value_datum.dsize = php_stream_read(dba->fp, value_datum.dptr, value_datum.dsize); in flatfile_fetch()
96 value_datum.dptr = NULL; in flatfile_fetch()
97 value_datum.dsize = 0; in flatfile_fetch()
100 return value_datum; in flatfile_fetch()