46#define LCB_KV_HEADER_AND_KEY LCB_KV_CONTIG
74#define LCB_KEYBUF_IS_EMPTY(k) (k)->contig.nbytes == 0
83#define LCB_KREQ_SIMPLE(req, k, nk) \
85 (req)->type = LCB_KV_COPY; \
86 (req)->contig.bytes = k; \
87 (req)->contig.nbytes = nk; \
structure indicating a buffer and its size
Definition iops.h:78
unsigned int total_length
Total length of the items.
Definition kvbuf.h:105
lcb_KVBUFTYPE
Flags indicating the storage policy for a buffer.
Definition kvbuf.h:32
@ LCB_KV_VBID
Indicates that the precomputed vBucket ID should be used.
Definition kvbuf.h:37
@ LCB_KV_IOVCOPY
The buffers are not contiguous (multi-part buffers) but should be copied.
Definition kvbuf.h:43
@ LCB_KV_CONTIG
The buffer is contiguous and should not be copied.
Definition kvbuf.h:34
@ LCB_KV_COPY
The buffer should be copied.
Definition kvbuf.h:33
@ LCB_KV_IOV
The buffer is not contiguous and should not be copied.
Definition kvbuf.h:35
lcb_KVBUFTYPE vtype
Value request type.
Definition kvbuf.h:121
size_t nbytes
Number of total bytes.
Definition kvbuf.h:54
lcb_KVBUFTYPE type
The type of key to provide.
Definition kvbuf.h:68
unsigned int niov
Number of elements in iov array.
Definition kvbuf.h:99
lcb_U16 vbid
precomputed vbucket id
Definition kvbuf.h:70
lcb_IOV * iov
An IOV array.
Definition kvbuf.h:96
simple buf/length structure for a contiguous series of bytes
Definition kvbuf.h:51
Structure for an IOV buffer to be supplied as a buffer.
Definition kvbuf.h:94
Common request header for all keys.
Definition kvbuf.h:58
Structure representing a value to be stored.
Definition kvbuf.h:109