Home
last modified time | relevance | path

Searched refs:length (Results 1 – 17 of 17) sorted by relevance

/memcached-1.6.32/
Dstats_prefix.c40 size_t length; in stats_prefix_find() local
45 for (length = 0; length < nkey && key[length] != '\0'; length++) { in stats_prefix_find()
46 if (key[length] == prefix_delimiter) { in stats_prefix_find()
56 hashval = hash(key, length) % PREFIX_HASH_SIZE; in stats_prefix_find()
59 if (strncmp(pfs->prefix, key, length) == 0) in stats_prefix_find()
69 pfs->prefix = malloc(length + 1); in stats_prefix_find()
76 strncpy(pfs->prefix, key, length); in stats_prefix_find()
78 pfs->prefix_len = length; in stats_prefix_find()
84 total_prefix_size += length; in stats_prefix_find()
125 char *stats_prefix_dump(int *length) { in stats_prefix_dump() argument
[all …]
Djenkins_hash.c144 while (length > 12) in jenkins_hash()
150 length -= 12; in jenkins_hash()
166 switch(length) in jenkins_hash()
186 switch(length) in jenkins_hash()
210 while (length > 12) in jenkins_hash()
216 length -= 12; in jenkins_hash()
222 switch(length) in jenkins_hash()
271 length -= 12; in jenkins_hash()
328 length -= 12; in jenkins_hash()
344 switch(length) in jenkins_hash()
[all …]
Dmurmur3_hash.c71 uint32_t MurmurHash3_x86_32 ( const void * key, size_t length) in MurmurHash3_x86_32() argument
74 const int nblocks = length / 4; in MurmurHash3_x86_32()
106 switch(length & 3) in MurmurHash3_x86_32()
117 h1 ^= length; in MurmurHash3_x86_32()
Dproto_text.c49 size_t length; member
327 tokens[ntokens].length = 0; in tokenize_command()
572 nkey = key_token->length; in process_get_command()
1118 nkey = tokens[KEY_TOKEN].length; in process_mget_command()
1451 nkey = tokens[KEY_TOKEN].length; in process_mset_command()
1647 nkey = tokens[KEY_TOKEN].length; in process_mdelete_command()
1804 nkey = tokens[KEY_TOKEN].length; in process_marithmetic_command()
2013 nkey = tokens[KEY_TOKEN].length; in process_update_command()
2112 nkey = tokens[KEY_TOKEN].length; in process_touch_command()
2155 nkey = tokens[KEY_TOKEN].length; in process_arithmetic_command()
[all …]
Dhash.c11 static uint32_t XXH3_hash(const void *key, size_t length) { in XXH3_hash() argument
12 return (uint32_t)XXH3_64bits(key, length); in XXH3_hash()
Dmurmur3_hash.h15 uint32_t MurmurHash3_x86_32(const void *key, size_t length);
Djenkins_hash.h8 uint32_t jenkins_hash(const void *key, size_t length);
Dhash.h4 typedef uint32_t (*hash_func)(const void *key, size_t length);
Dstats_prefix.h37 char *stats_prefix_dump(int *length);
Dtestapp.c313 int length; in test_stats_prefix_dump() local
318 assert(5 == length); in test_stats_prefix_dump()
322 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
323 assert(strlen(expected) == length); in test_stats_prefix_dump()
327 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
328 assert(strlen(expected) == length); in test_stats_prefix_dump()
332 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
333 assert(strlen(expected) == length); in test_stats_prefix_dump()
338 assert(strlen(expected) == length); in test_stats_prefix_dump()
344 buf = stats_prefix_dump(&length); in test_stats_prefix_dump()
[all …]
Dxxhash.h358 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed);
476 …_PUBLIC_API XXH_errorcode XXH32_update (XXH32_state_t* statePtr, const void* input, size_t length);
617 XXH_PUBLIC_API XXH64_hash_t XXH64(const void* input, size_t length, XXH64_hash_t seed);
631 …_PUBLIC_API XXH_errorcode XXH64_update (XXH64_state_t* statePtr, const void* input, size_t length);
768 …IC_API XXH_errorcode XXH3_64bits_update (XXH3_state_t* statePtr, const void* input, size_t length);
811 …C_API XXH_errorcode XXH3_128bits_update (XXH3_state_t* statePtr, const void* input, size_t length);
DChangeLog94 * Handle negative length items properly (Dormando)
/memcached-1.6.32/doc/
Dprotocol-binary.txt143 +/ (note length in the extras length header field) /
146 +/ (note length in key length header field) /
149 +/ (note length is total body length header field, minus /
428 Extra length (4) : 0x00
538 Extra length (4) : 0x00
597 Extra length (4) : 0x04
656 Extra length (4) : 0x04
770 Extra length (4) : 0x08
820 Extra length (4) : 0x00
878 Extra length (4) : 0x00
[all …]
Dprotocol-binary-range.txt157 allowed length of a UDP packet, less the space required by the
160 4. The Total value length field of the response extras MUST be the
161 actual length of the complete value.
244 20| Total value length |
Dprotocol.txt30 preceding text line, the exact length of the data block being
36 data from a server, it must use the length of the data block (which it
47 length limit of a key is set at 250 characters (of course, normally
195 key, flags, and exptime are ignored for authentication. Bytes is the length
269 - <data block> is a chunk of arbitrary 8-bit data of length <bytes>
315 - <bytes> is the length of the data block to follow, *not* including
394 Note also that decrementing a number such that it loses length isn't
395 guaranteed to decrement its returned length. The number MAY be
455 - <bytes> is the length of the data block to follow, *not* including
696 - <datalen> is the length of the payload data.
[all …]
/memcached-1.6.32/t/
Dmaxconns.t38 my $length = 31;
39 my $res = recv($sock, $buffer, $length, 0);
/memcached-1.6.32/m4/
Dc99-backport.m410 # variable length arrays.