Lines Matching refs:key
773 const void* key, in storage_command() argument
795 memcpy(buf + key_offset, key, keylen); in storage_command()
808 const void* key, in ext_command() argument
830 if (key != NULL) { in ext_command()
831 memcpy(buf + key_offset, key, keylen); in ext_command()
843 const void* key, in raw_command() argument
848 return ext_command(buf, bufsz, cmd, NULL, 0, key, keylen, dta, dtalen); in raw_command()
876 const void* key, in touch_command() argument
895 memcpy(buf + key_offset, key, keylen); in touch_command()
902 const void* key, in arithmetic_command() argument
923 memcpy(buf + key_offset, key, keylen); in arithmetic_command()
1078 static enum test_return test_binary_set_impl(const char *key, uint8_t cmd) { in test_binary_set_impl() argument
1086 key, strlen(key), &value, sizeof(value), in test_binary_set_impl()
1127 static enum test_return test_binary_add_impl(const char *key, uint8_t cmd) { in test_binary_add_impl() argument
1134 size_t len = storage_command(send.bytes, sizeof(send.bytes), cmd, key, in test_binary_add_impl()
1135 strlen(key), &value, sizeof(value), in test_binary_add_impl()
1166 static enum test_return test_binary_replace_impl(const char* key, uint8_t cmd) { in test_binary_replace_impl() argument
1174 key, strlen(key), &value, sizeof(value), in test_binary_replace_impl()
1182 key, strlen(key), &value, sizeof(value), 0, 0); in test_binary_replace_impl()
1189 key, strlen(key), &value, sizeof(value), 0, 0); in test_binary_replace_impl()
1218 static enum test_return test_binary_delete_impl(const char *key, uint8_t cmd) { in test_binary_delete_impl() argument
1225 key, strlen(key), NULL, 0); in test_binary_delete_impl()
1233 key, strlen(key), NULL, 0, 0, 0); in test_binary_delete_impl()
1240 cmd, key, strlen(key), NULL, 0); in test_binary_delete_impl()
1267 static enum test_return test_binary_get_impl(const char *key, uint8_t cmd) { in test_binary_get_impl() argument
1281 key, strlen(key), NULL, 0); in test_binary_get_impl()
1290 key, strlen(key), NULL, 0, in test_binary_get_impl()
1307 key, strlen(key), NULL, 0); in test_binary_get_impl()
1338 static enum test_return test_binary_getq_impl(const char *key, uint8_t cmd) { in test_binary_getq_impl() argument
1353 key, strlen(key), NULL, 0, in test_binary_getq_impl()
1366 key, strlen(key), NULL, 0); in test_binary_getq_impl()
1398 static enum test_return test_binary_incr_impl(const char* key, uint8_t cmd) { in test_binary_incr_impl() argument
1406 key, strlen(key), 1, 0, 0); in test_binary_incr_impl()
1435 static enum test_return test_binary_decr_impl(const char* key, uint8_t cmd) { in test_binary_decr_impl() argument
1443 key, strlen(key), 1, 9, 0); in test_binary_decr_impl()
1499 static enum test_return test_binary_flush_impl(const char *key, uint8_t cmd) { in test_binary_flush_impl() argument
1508 key, strlen(key), NULL, 0, 0, 0); in test_binary_flush_impl()
1523 key, strlen(key), NULL, 0); in test_binary_flush_impl()
1539 key, strlen(key), NULL, 0, 0, 0); in test_binary_flush_impl()
1555 key, strlen(key), NULL, 0); in test_binary_flush_impl()
1575 static enum test_return test_binary_concat_impl(const char *key, uint8_t cmd) { in test_binary_concat_impl() argument
1584 key, strlen(key), value, strlen(value)); in test_binary_concat_impl()
1594 key, strlen(key), value, strlen(value), 0, 0); in test_binary_concat_impl()
1601 key, strlen(key), value, strlen(value)); in test_binary_concat_impl()
1618 key, strlen(key), NULL, 0); in test_binary_concat_impl()
1625 assert(receive.response.message.header.response.keylen == strlen(key)); in test_binary_concat_impl()
1626 assert(receive.response.message.header.response.bodylen == (strlen(key) + 2*strlen(value) + 4)); in test_binary_concat_impl()
1632 assert(memcmp(ptr, key, strlen(key)) == 0); in test_binary_concat_impl()
1633 ptr += strlen(key); in test_binary_concat_impl()
1722 char *key[256]; 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()