Lines Matching refs:keylen
739 response->message.header.response.keylen = ntohs(response->message.header.response.keylen); in safe_recv_packet()
774 size_t keylen, in storage_command() argument
781 assert(bufsz > sizeof(*request) + keylen + dtalen); in storage_command()
786 request->message.header.request.keylen = htons(keylen); in storage_command()
788 request->message.header.request.bodylen = htonl(keylen + 8 + dtalen); in storage_command()
795 memcpy(buf + key_offset, key, keylen); in storage_command()
797 memcpy(buf + key_offset + keylen, dta, dtalen); in storage_command()
800 return key_offset + keylen + dtalen; in storage_command()
809 size_t keylen, in ext_command() argument
813 assert(bufsz > sizeof(*request) + extlen + keylen + dtalen); in ext_command()
819 request->message.header.request.keylen = htons(keylen); in ext_command()
820 request->message.header.request.bodylen = htonl(extlen + keylen + dtalen); in ext_command()
825 off_t dta_offset = key_offset + keylen; in ext_command()
831 memcpy(buf + key_offset, key, keylen); in ext_command()
837 return sizeof(*request) + extlen + keylen + dtalen; in ext_command()
844 size_t keylen, in raw_command() argument
848 return ext_command(buf, bufsz, cmd, NULL, 0, key, keylen, dta, dtalen); in raw_command()
877 size_t keylen, in touch_command() argument
886 request->message.header.request.keylen = htons(keylen); in touch_command()
889 request->message.header.request.bodylen = htonl(keylen + 4); in touch_command()
895 memcpy(buf + key_offset, key, keylen); in touch_command()
896 return sizeof(protocol_binary_request_no_extras) + 4 + keylen; in touch_command()
903 size_t keylen, in arithmetic_command() argument
908 assert(bufsz > sizeof(*request) + keylen); in arithmetic_command()
913 request->message.header.request.keylen = htons(keylen); in arithmetic_command()
915 request->message.header.request.bodylen = htonl(keylen + 20); in arithmetic_command()
923 memcpy(buf + key_offset, key, keylen); in arithmetic_command()
924 return key_offset + keylen; in arithmetic_command()
959 assert(response->message.header.response.keylen == 0); in validate_response_header()
968 assert(response->message.header.response.keylen == 0); in validate_response_header()
976 assert(response->message.header.response.keylen == 0); in validate_response_header()
989 assert(response->message.header.response.keylen == 0); in validate_response_header()
999 assert(response->message.header.response.keylen == 0); in validate_response_header()
1008 assert(response->message.header.response.keylen != 0); in validate_response_header()
1022 assert(response->message.header.response.keylen == 0); in validate_response_header()
1625 assert(receive.response.message.header.response.keylen == strlen(key)); in test_binary_concat_impl()
1677 } while (buffer.response.message.header.response.keylen != 0); in test_binary_stat()
1733 size_t keylen = (rand() % 250) + 1; in test_binary_pipeline_hickup_chunk() local
1743 key, keylen , &value, sizeof(value), in test_binary_pipeline_hickup_chunk()
1751 key, keylen, &value, sizeof(value)); in test_binary_pipeline_hickup_chunk()
1765 key, keylen, NULL, 0); in test_binary_pipeline_hickup_chunk()
1772 key, keylen, 1, 0, 0); in test_binary_pipeline_hickup_chunk()
1784 key, keylen, NULL, 0); in test_binary_pipeline_hickup_chunk()
1793 key, keylen, 10); in test_binary_pipeline_hickup_chunk()