Lines Matching refs:nbytes
1346 uint32_t nbytes = 0; in append_ascii_stats() local
1351 nbytes = snprintf(pos, room, "END\r\n"); in append_ascii_stats()
1353 nbytes = snprintf(pos, room, "STAT %s\r\n", key); in append_ascii_stats()
1355 nbytes = snprintf(pos, room, "STAT %s %s\r\n", key, val); in append_ascii_stats()
1358 c->stats.offset += nbytes; in append_ascii_stats()
1541 if (_store_item_copy_chunks(new_it, old_it, old_it->nbytes - 2) == -1 || in _store_item_copy_data()
1542 _store_item_copy_chunks(new_it, add_it, add_it->nbytes) == -1) { in _store_item_copy_data()
1546 memcpy(ITEM_data(new_it), ITEM_data(old_it), old_it->nbytes); in _store_item_copy_data()
1547 … memcpy(ITEM_data(new_it) + old_it->nbytes - 2 /* CRLF */, ITEM_data(add_it), add_it->nbytes); in _store_item_copy_data()
1552 if (_store_item_copy_chunks(new_it, add_it, add_it->nbytes - 2) == -1 || in _store_item_copy_data()
1553 _store_item_copy_chunks(new_it, old_it, old_it->nbytes) == -1) { in _store_item_copy_data()
1557 memcpy(ITEM_data(new_it), ITEM_data(add_it), add_it->nbytes); in _store_item_copy_data()
1558 … memcpy(ITEM_data(new_it) + add_it->nbytes - 2 /* CRLF */, ITEM_data(old_it), old_it->nbytes); in _store_item_copy_data()
1570 …ore_item(item *it, int comm, LIBEVENT_THREAD *t, const uint32_t hv, int *nbytes, uint64_t *cas, ui… in do_store_item() argument
1658 …ew_it = do_item_alloc(key, it->nkey, flags, old_it->exptime, it->nbytes + old_it->nbytes - 2 /* CR… in do_store_item()
1673 if (nbytes != NULL) { in do_store_item()
1674 *nbytes = it->nbytes; in do_store_item()
1733 stored, comm, ITEM_key(it), it->nkey, it->nbytes, it->exptime, in do_store_item()
2283 if (it->nbytes <= 2 || (it->it_flags & (ITEM_CHUNKED|ITEM_HDR)) != 0) {
2285 if (it->nbytes <= 2 || (it->it_flags & (ITEM_CHUNKED)) != 0) {
2328 if (res + 2 <= it->nbytes && it->refcount == 2) { /* replace in-place */
2338 memset(ITEM_data(it) + res, ' ', it->nbytes - res - 2);