Lines Matching refs:keylen

1043     response->message.header.response.keylen = ntohs(response->message.header.response.keylen);  in safe_recv_packet()
1078 size_t keylen, in storage_command() argument
1085 assert(bufsz > sizeof(*request) + keylen + dtalen); in storage_command()
1090 request->message.header.request.keylen = htons(keylen); in storage_command()
1092 request->message.header.request.bodylen = htonl(keylen + 8 + dtalen); in storage_command()
1099 memcpy(buf + key_offset, key, keylen); in storage_command()
1101 memcpy(buf + key_offset + keylen, dta, dtalen); in storage_command()
1104 return key_offset + keylen + dtalen; in storage_command()
1113 size_t keylen, in ext_command() argument
1117 assert(bufsz > sizeof(*request) + extlen + keylen + dtalen); in ext_command()
1123 request->message.header.request.keylen = htons(keylen); in ext_command()
1124 request->message.header.request.bodylen = htonl(extlen + keylen + dtalen); in ext_command()
1129 off_t dta_offset = key_offset + keylen; in ext_command()
1135 memcpy(buf + key_offset, key, keylen); in ext_command()
1141 return sizeof(*request) + extlen + keylen + dtalen; in ext_command()
1148 size_t keylen, in raw_command() argument
1152 return ext_command(buf, bufsz, cmd, NULL, 0, key, keylen, dta, dtalen); in raw_command()
1181 size_t keylen, in touch_command() argument
1190 request->message.header.request.keylen = htons(keylen); in touch_command()
1193 request->message.header.request.bodylen = htonl(keylen + 4); in touch_command()
1199 memcpy(buf + key_offset, key, keylen); in touch_command()
1200 return sizeof(protocol_binary_request_no_extras) + 4 + keylen; in touch_command()
1207 size_t keylen, in arithmetic_command() argument
1212 assert(bufsz > sizeof(*request) + keylen); in arithmetic_command()
1217 request->message.header.request.keylen = htons(keylen); in arithmetic_command()
1219 request->message.header.request.bodylen = htonl(keylen + 20); in arithmetic_command()
1227 memcpy(buf + key_offset, key, keylen); in arithmetic_command()
1228 return key_offset + keylen; in arithmetic_command()
1263 assert(response->message.header.response.keylen == 0); in validate_response_header()
1272 assert(response->message.header.response.keylen == 0); in validate_response_header()
1280 assert(response->message.header.response.keylen == 0); in validate_response_header()
1293 assert(response->message.header.response.keylen == 0); in validate_response_header()
1303 assert(response->message.header.response.keylen == 0); in validate_response_header()
1312 assert(response->message.header.response.keylen != 0); in validate_response_header()
1326 assert(response->message.header.response.keylen == 0); in validate_response_header()
1930 assert(receive.response.message.header.response.keylen == strlen(key)); in test_binary_concat_impl()
1982 } while (buffer.response.message.header.response.keylen != 0); in test_binary_stat()
2038 size_t keylen = (rand() % 250) + 1; in test_binary_pipeline_hickup_chunk() local
2048 key, keylen , &value, sizeof(value), in test_binary_pipeline_hickup_chunk()
2056 key, keylen, &value, sizeof(value)); in test_binary_pipeline_hickup_chunk()
2070 key, keylen, NULL, 0); in test_binary_pipeline_hickup_chunk()
2077 key, keylen, 1, 0, 0); in test_binary_pipeline_hickup_chunk()
2089 key, keylen, NULL, 0); in test_binary_pipeline_hickup_chunk()
2098 key, keylen, 10); in test_binary_pipeline_hickup_chunk()