Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 5 of 5) sorted by relevance

/memcached-1.4.29/
H A Ditems.c156 return sizeof(item) + nkey + *nsuffix + nbytes; in item_make_header()
251 it->nbytes = nbytes; in do_item_alloc()
297 size_t ntotal = item_make_header(nkey + 1, flags, nbytes, in item_size_ok()
320 sizes_bytes[it->slabs_clsid] += it->nbytes; in do_item_link_q()
349 sizes_bytes[it->slabs_clsid] -= it->nbytes; in do_item_unlink_q()
360 MEMCACHED_ITEM_LINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_link()
494 if (it->nbytes == 0 && it->nkey == 0) { in item_cachedump()
502 key_temp, it->nbytes - 2, in item_cachedump()
1200 assert(it->nbytes == 0); in crawler_link_q()
1244 assert(it->nbytes == 0); in crawler_crawl_q()
[all …]
H A Ditems.h5 …har *key, const size_t nkey, const unsigned int flags, const rel_time_t exptime, const int nbytes);
7 bool item_size_ok(const size_t nkey, const int flags, const int nbytes);
H A Dmemcached.h113 + (item)->nsuffix + (item)->nbytes \
404 int nbytes; /* size of data */ member
428 int nbytes; /* size of data */ member
444 int nbytes; /* used. */ member
633 item *item_alloc(char *key, size_t nkey, int flags, rel_time_t exptime, int nbytes);
H A Dmemcached.c1358 *(ITEM_data(it) + it->nbytes - 2) = '\r'; in complete_update_bin()
1359 *(ITEM_data(it) + it->nbytes - 1) = '\n'; in complete_update_bin()
1487 bodylen -= it->nbytes - 2; in process_bin_get_or_touch()
1590 uint32_t nbytes = 0; in append_ascii_stats() local
1595 nbytes = snprintf(pos, room, "END\r\n"); in append_ascii_stats()
1597 nbytes = snprintf(pos, room, "STAT %s\r\n", key); in append_ascii_stats()
1602 c->stats.offset += nbytes; in append_ascii_stats()
2539 … memcpy(ITEM_data(new_it) + old_it->nbytes - 2 /* CRLF */, ITEM_data(add_it), add_it->nbytes); in _store_item_copy_data()
2548 … memcpy(ITEM_data(new_it) + add_it->nbytes - 2 /* CRLF */, ITEM_data(old_it), old_it->nbytes); in _store_item_copy_data()
2628 …ew_it = do_item_alloc(key, it->nkey, flags, old_it->exptime, it->nbytes + old_it->nbytes - 2 /* CR… in do_store_item()
[all …]
H A Dthread.c537 item *item_alloc(char *key, size_t nkey, int flags, rel_time_t exptime, int nbytes) { in item_alloc() argument
540 it = do_item_alloc(key, nkey, flags, exptime, nbytes); in item_alloc()