Lines Matching refs:num
106 size_t num; in flatfile_delete() local
115 num = atoi(buf); in flatfile_delete()
116 if (num >= buf_size) { in flatfile_delete()
117 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_delete()
123 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
125 if (size == num && !memcmp(buf, key, size)) { in flatfile_delete()
138 num = atoi(buf); in flatfile_delete()
139 if (num >= buf_size) { in flatfile_delete()
140 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_delete()
144 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
155 size_t num; in flatfile_findkey() local
165 num = atoi(buf); in flatfile_findkey()
166 if (num >= buf_size) { in flatfile_findkey()
167 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_findkey()
170 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
172 if (size == num) { in flatfile_findkey()
181 num = atoi(buf); in flatfile_findkey()
182 if (num >= buf_size) { in flatfile_findkey()
183 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_findkey()
186 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
196 size_t num; in flatfile_firstkey() local
205 num = atoi(buf); in flatfile_firstkey()
206 if (num >= buf_size) { in flatfile_firstkey()
207 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_firstkey()
210 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
215 res.dsize = num; in flatfile_firstkey()
221 num = atoi(buf); in flatfile_firstkey()
222 if (num >= buf_size) { in flatfile_firstkey()
223 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_firstkey()
226 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
238 size_t num; in flatfile_nextkey() local
247 num = atoi(buf); in flatfile_nextkey()
248 if (num >= buf_size) { in flatfile_nextkey()
249 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_nextkey()
252 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey()
257 num = atoi(buf); in flatfile_nextkey()
258 if (num >= buf_size) { in flatfile_nextkey()
259 buf_size = num + FLATFILE_BLOCK_SIZE; in flatfile_nextkey()
262 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey()
267 res.dsize = num; in flatfile_nextkey()