91 if (cdb_posplus(c,8) == -1)
93 if (cdb_posplus(c, keylen) == -1)
95 if (cdb_posplus(c, datalen) == -1)
106 if (keylen > 0xffffffff) {
110 if (datalen > 0xffffffff) {
117 if (cdb_make_write(c,
buf, 8) != 0)
127 if (cdb_make_write(c,
key, keylen) != 0)
129 if (cdb_make_write(c,
data, datalen) != 0)
148 for (i = 0;i < 256;++i)
158 for (i = 0;i < 256;++i) {
179 for (i = 0;i < 256;++i) {
190 for (i = 0;i < 256;++i) {
202 where = (hp->
h >> 8) %
len;
203 while (c->
hash[where].
p)
206 c->
hash[where] = *hp++;
212 if (cdb_make_write(c,
buf, 8) != 0)
214 if (cdb_posplus(c, 8) == -1)
232 if (cdb_make_write(c, c->
final,
sizeof(c->
final)) != 0)
241 return "0.75, $Id: 570e3625b0cea5c29455cecf40fdfd491c0eb3c6 $";
count(Countable|array $value, int $mode=COUNT_NORMAL)
uint32 cdb_hash(char *buf, unsigned int len)
const char * cdb_make_version(void)
int cdb_make_finish(struct cdb_make *c)
int cdb_make_start(struct cdb_make *c, php_stream *f)
int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen)
int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h)
int cdb_make_add(struct cdb_make *c, char *key, unsigned int keylen, char *data, unsigned int datalen)
zend_ffi_ctype_name_buf buf
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format,...)
struct php_pcntl_pending_signal * head
unsigned char key[REFLECTION_KEY_LEN]
struct _php_stream php_stream
#define php_stream_rewind(stream)
#define php_stream_seek(stream, offset, whence)
#define php_stream_flush(stream)
#define php_stream_tell(stream)
#define php_stream_write(stream, buf, count)
struct cdb_hp hp[CDB_HPLIST]
void uint32_pack(char *out, uint32 in)
#define safe_emalloc(nmemb, size, offset)