Lines Matching refs:num
111 size_t num; in flatfile_delete() local
120 num = atoi(buf); in flatfile_delete()
121 if (num >= buf_size) { in flatfile_delete()
122 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_delete()
128 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
130 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete()
143 num = atoi(buf); in flatfile_delete()
144 if (num >= buf_size) { in flatfile_delete()
145 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_delete()
149 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
161 size_t num; in flatfile_findkey() local
171 num = atoi(buf); in flatfile_findkey()
172 if (num >= buf_size) { in flatfile_findkey()
173 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_findkey()
176 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
178 if (size == num) { in flatfile_findkey()
187 num = atoi(buf); in flatfile_findkey()
188 if (num >= buf_size) { in flatfile_findkey()
189 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_findkey()
192 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
203 size_t num; in flatfile_firstkey() local
212 num = atoi(buf); in flatfile_firstkey()
213 if (num >= buf_size) { in flatfile_firstkey()
214 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_firstkey()
217 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
222 res.dsize = num; in flatfile_firstkey()
228 num = atoi(buf); in flatfile_firstkey()
229 if (num >= buf_size) { in flatfile_firstkey()
230 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_firstkey()
233 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
246 size_t num; in flatfile_nextkey() local
255 num = atoi(buf); in flatfile_nextkey()
256 if (num >= buf_size) { in flatfile_nextkey()
257 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_nextkey()
260 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey()
265 num = atoi(buf); in flatfile_nextkey()
266 if (num >= buf_size) { in flatfile_nextkey()
267 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_nextkey()
270 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey()
275 res.dsize = num; in flatfile_nextkey()