Lines Matching refs:value_datum
47 int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode) { in flatfile_store() argument
58 php_stream_printf(dba->fp, "%zu\n", value_datum.dsize); in flatfile_store()
60 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
70 php_stream_printf(dba->fp, "%zu\n", value_datum.dsize); in flatfile_store()
71 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
83 datum value_datum = {NULL, 0}; in flatfile_fetch() local
88 value_datum.dsize = atoi(buf); in flatfile_fetch()
89 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()
90 value_datum.dsize = php_stream_read(dba->fp, value_datum.dptr, value_datum.dsize); in flatfile_fetch()
92 value_datum.dptr = NULL; in flatfile_fetch()
93 value_datum.dsize = 0; in flatfile_fetch()
96 return value_datum; in flatfile_fetch()