Lines Matching refs:klen
248 uint32 klen, dlen; in DBA_FIRSTKEY_FUNC() local
268 uint32_unpack(buf, &klen); in DBA_FIRSTKEY_FUNC()
271 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
272 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_FIRSTKEY_FUNC()
276 key[klen] = '\0'; in DBA_FIRSTKEY_FUNC()
277 if (newlen) *newlen = klen; in DBA_FIRSTKEY_FUNC()
281 cdb->pos = 2048 + 4 + 4 + klen + dlen; in DBA_FIRSTKEY_FUNC()
289 uint32 klen, dlen; in DBA_NEXTKEY_FUNC() local
300 uint32_unpack(buf, &klen); in DBA_NEXTKEY_FUNC()
303 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
304 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_NEXTKEY_FUNC()
308 key[klen] = '\0'; in DBA_NEXTKEY_FUNC()
309 if (newlen) *newlen = klen; in DBA_NEXTKEY_FUNC()
312 cdb->pos += 8 + klen + dlen; in DBA_NEXTKEY_FUNC()