Lines Matching defs:uint8_t

70 const uint8_t PROTOCOL_BINARY_REQ = uint8_t(cb::mcbp::Magic::ClientRequest);
71 const uint8_t PROTOCOL_BINARY_RES = uint8_t(cb::mcbp::Magic::ClientResponse);
169 using protocol_binary_command = uint8_t;
171 const uint8_t PROTOCOL_BINARY_CMD_GET = uint8_t(cb::mcbp::ClientOpcode::Get);
172 const uint8_t PROTOCOL_BINARY_CMD_SET = uint8_t(cb::mcbp::ClientOpcode::Set);
173 const uint8_t PROTOCOL_BINARY_CMD_ADD = uint8_t(cb::mcbp::ClientOpcode::Add);
174 const uint8_t PROTOCOL_BINARY_CMD_REPLACE =
175 uint8_t(cb::mcbp::ClientOpcode::Replace);
176 const uint8_t PROTOCOL_BINARY_CMD_DELETE =
177 uint8_t(cb::mcbp::ClientOpcode::Delete);
178 const uint8_t PROTOCOL_BINARY_CMD_INCREMENT =
179 uint8_t(cb::mcbp::ClientOpcode::Increment);
180 const uint8_t PROTOCOL_BINARY_CMD_DECREMENT =
181 uint8_t(cb::mcbp::ClientOpcode::Decrement);
182 const uint8_t PROTOCOL_BINARY_CMD_QUIT = uint8_t(cb::mcbp::ClientOpcode::Quit);
183 const uint8_t PROTOCOL_BINARY_CMD_FLUSH =
184 uint8_t(cb::mcbp::ClientOpcode::Flush);
185 const uint8_t PROTOCOL_BINARY_CMD_GETQ = uint8_t(cb::mcbp::ClientOpcode::Getq);
186 const uint8_t PROTOCOL_BINARY_CMD_NOOP = uint8_t(cb::mcbp::ClientOpcode::Noop);
187 const uint8_t PROTOCOL_BINARY_CMD_VERSION =
188 uint8_t(cb::mcbp::ClientOpcode::Version);
189 const uint8_t PROTOCOL_BINARY_CMD_GETK = uint8_t(cb::mcbp::ClientOpcode::Getk);
190 const uint8_t PROTOCOL_BINARY_CMD_GETKQ =
191 uint8_t(cb::mcbp::ClientOpcode::Getkq);
192 const uint8_t PROTOCOL_BINARY_CMD_APPEND =
193 uint8_t(cb::mcbp::ClientOpcode::Append);
194 const uint8_t PROTOCOL_BINARY_CMD_PREPEND =
195 uint8_t(cb::mcbp::ClientOpcode::Prepend);
196 const uint8_t PROTOCOL_BINARY_CMD_STAT = uint8_t(cb::mcbp::ClientOpcode::Stat);
197 const uint8_t PROTOCOL_BINARY_CMD_SETQ = uint8_t(cb::mcbp::ClientOpcode::Setq);
198 const uint8_t PROTOCOL_BINARY_CMD_ADDQ = uint8_t(cb::mcbp::ClientOpcode::Addq);
199 const uint8_t PROTOCOL_BINARY_CMD_REPLACEQ =
200 uint8_t(cb::mcbp::ClientOpcode::Replaceq);
201 const uint8_t PROTOCOL_BINARY_CMD_DELETEQ =
202 uint8_t(cb::mcbp::ClientOpcode::Deleteq);
203 const uint8_t PROTOCOL_BINARY_CMD_INCREMENTQ =
204 uint8_t(cb::mcbp::ClientOpcode::Incrementq);
205 const uint8_t PROTOCOL_BINARY_CMD_DECREMENTQ =
206 uint8_t(cb::mcbp::ClientOpcode::Decrementq);
207 const uint8_t PROTOCOL_BINARY_CMD_QUITQ =
208 uint8_t(cb::mcbp::ClientOpcode::Quitq);
209 const uint8_t PROTOCOL_BINARY_CMD_FLUSHQ =
210 uint8_t(cb::mcbp::ClientOpcode::Flushq);
211 const uint8_t PROTOCOL_BINARY_CMD_APPENDQ =
212 uint8_t(cb::mcbp::ClientOpcode::Appendq);
213 const uint8_t PROTOCOL_BINARY_CMD_PREPENDQ =
214 uint8_t(cb::mcbp::ClientOpcode::Prependq);
215 const uint8_t PROTOCOL_BINARY_CMD_VERBOSITY =
216 uint8_t(cb::mcbp::ClientOpcode::Verbosity);
217 const uint8_t PROTOCOL_BINARY_CMD_TOUCH =
218 uint8_t(cb::mcbp::ClientOpcode::Touch);
219 const uint8_t PROTOCOL_BINARY_CMD_GAT = uint8_t(cb::mcbp::ClientOpcode::Gat);
220 const uint8_t PROTOCOL_BINARY_CMD_GATQ = uint8_t(cb::mcbp::ClientOpcode::Gatq);
221 const uint8_t PROTOCOL_BINARY_CMD_HELLO =
222 uint8_t(cb::mcbp::ClientOpcode::Hello);
223 const uint8_t PROTOCOL_BINARY_CMD_SASL_LIST_MECHS =
224 uint8_t(cb::mcbp::ClientOpcode::SaslListMechs);
225 const uint8_t PROTOCOL_BINARY_CMD_SASL_AUTH =
226 uint8_t(cb::mcbp::ClientOpcode::SaslAuth);
227 const uint8_t PROTOCOL_BINARY_CMD_SASL_STEP =
228 uint8_t(cb::mcbp::ClientOpcode::SaslStep);
229 const uint8_t PROTOCOL_BINARY_CMD_IOCTL_GET =
230 uint8_t(cb::mcbp::ClientOpcode::IoctlGet);
231 const uint8_t PROTOCOL_BINARY_CMD_IOCTL_SET =
232 uint8_t(cb::mcbp::ClientOpcode::IoctlSet);
233 const uint8_t PROTOCOL_BINARY_CMD_CONFIG_VALIDATE =
234 uint8_t(cb::mcbp::ClientOpcode::ConfigValidate);
235 const uint8_t PROTOCOL_BINARY_CMD_CONFIG_RELOAD =
236 uint8_t(cb::mcbp::ClientOpcode::ConfigReload);
237 const uint8_t PROTOCOL_BINARY_CMD_AUDIT_PUT =
238 uint8_t(cb::mcbp::ClientOpcode::AuditPut);
239 const uint8_t PROTOCOL_BINARY_CMD_AUDIT_CONFIG_RELOAD =
240 uint8_t(cb::mcbp::ClientOpcode::AuditConfigReload);
241 const uint8_t PROTOCOL_BINARY_CMD_SHUTDOWN =
242 uint8_t(cb::mcbp::ClientOpcode::Shutdown);
243 const uint8_t PROTOCOL_BINARY_CMD_RGET = uint8_t(cb::mcbp::ClientOpcode::Rget);
244 const uint8_t PROTOCOL_BINARY_CMD_RSET = uint8_t(cb::mcbp::ClientOpcode::Rset);
245 const uint8_t PROTOCOL_BINARY_CMD_RSETQ =
246 uint8_t(cb::mcbp::ClientOpcode::Rsetq);
247 const uint8_t PROTOCOL_BINARY_CMD_RAPPEND =
248 uint8_t(cb::mcbp::ClientOpcode::Rappend);
249 const uint8_t PROTOCOL_BINARY_CMD_RAPPENDQ =
250 uint8_t(cb::mcbp::ClientOpcode::Rappendq);
251 const uint8_t PROTOCOL_BINARY_CMD_RPREPEND =
252 uint8_t(cb::mcbp::ClientOpcode::Rprepend);
253 const uint8_t PROTOCOL_BINARY_CMD_RPREPENDQ =
254 uint8_t(cb::mcbp::ClientOpcode::Rprependq);
255 const uint8_t PROTOCOL_BINARY_CMD_RDELETE =
256 uint8_t(cb::mcbp::ClientOpcode::Rdelete);
257 const uint8_t PROTOCOL_BINARY_CMD_RDELETEQ =
258 uint8_t(cb::mcbp::ClientOpcode::Rdeleteq);
259 const uint8_t PROTOCOL_BINARY_CMD_RINCR =
260 uint8_t(cb::mcbp::ClientOpcode::Rincr);
261 const uint8_t PROTOCOL_BINARY_CMD_RINCRQ =
262 uint8_t(cb::mcbp::ClientOpcode::Rincrq);
263 const uint8_t PROTOCOL_BINARY_CMD_RDECR =
264 uint8_t(cb::mcbp::ClientOpcode::Rdecr);
265 const uint8_t PROTOCOL_BINARY_CMD_RDECRQ =
266 uint8_t(cb::mcbp::ClientOpcode::Rdecrq);
267 const uint8_t PROTOCOL_BINARY_CMD_SET_VBUCKET =
268 uint8_t(cb::mcbp::ClientOpcode::SetVbucket);
269 const uint8_t PROTOCOL_BINARY_CMD_GET_VBUCKET =
270 uint8_t(cb::mcbp::ClientOpcode::GetVbucket);
271 const uint8_t PROTOCOL_BINARY_CMD_DEL_VBUCKET =
272 uint8_t(cb::mcbp::ClientOpcode::DelVbucket);
273 const uint8_t PROTOCOL_BINARY_CMD_TAP_CONNECT =
274 uint8_t(cb::mcbp::ClientOpcode::TapConnect);
275 const uint8_t PROTOCOL_BINARY_CMD_TAP_MUTATION =
276 uint8_t(cb::mcbp::ClientOpcode::TapMutation);
277 const uint8_t PROTOCOL_BINARY_CMD_TAP_DELETE =
278 uint8_t(cb::mcbp::ClientOpcode::TapDelete);
279 const uint8_t PROTOCOL_BINARY_CMD_TAP_FLUSH =
280 uint8_t(cb::mcbp::ClientOpcode::TapFlush);
281 const uint8_t PROTOCOL_BINARY_CMD_TAP_OPAQUE =
282 uint8_t(cb::mcbp::ClientOpcode::TapOpaque);
283 const uint8_t PROTOCOL_BINARY_CMD_TAP_VBUCKET_SET =
284 uint8_t(cb::mcbp::ClientOpcode::TapVbucketSet);
285 const uint8_t PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_START =
286 uint8_t(cb::mcbp::ClientOpcode::TapCheckpointStart);
287 const uint8_t PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_END =
288 uint8_t(cb::mcbp::ClientOpcode::TapCheckpointEnd);
289 const uint8_t PROTOCOL_BINARY_CMD_GET_ALL_VB_SEQNOS =
290 uint8_t(cb::mcbp::ClientOpcode::GetAllVbSeqnos);
291 const uint8_t PROTOCOL_BINARY_CMD_DCP_OPEN =
292 uint8_t(cb::mcbp::ClientOpcode::DcpOpen);
293 const uint8_t PROTOCOL_BINARY_CMD_DCP_ADD_STREAM =
294 uint8_t(cb::mcbp::ClientOpcode::DcpAddStream);
295 const uint8_t PROTOCOL_BINARY_CMD_DCP_CLOSE_STREAM =
296 uint8_t(cb::mcbp::ClientOpcode::DcpCloseStream);
297 const uint8_t PROTOCOL_BINARY_CMD_DCP_STREAM_REQ =
298 uint8_t(cb::mcbp::ClientOpcode::DcpStreamReq);
299 const uint8_t PROTOCOL_BINARY_CMD_DCP_GET_FAILOVER_LOG =
300 uint8_t(cb::mcbp::ClientOpcode::DcpGetFailoverLog);
301 const uint8_t PROTOCOL_BINARY_CMD_DCP_STREAM_END =
302 uint8_t(cb::mcbp::ClientOpcode::DcpStreamEnd);
303 const uint8_t PROTOCOL_BINARY_CMD_DCP_SNAPSHOT_MARKER =
304 uint8_t(cb::mcbp::ClientOpcode::DcpSnapshotMarker);
305 const uint8_t PROTOCOL_BINARY_CMD_DCP_MUTATION =
306 uint8_t(cb::mcbp::ClientOpcode::DcpMutation);
307 const uint8_t PROTOCOL_BINARY_CMD_DCP_DELETION =
308 uint8_t(cb::mcbp::ClientOpcode::DcpDeletion);
309 const uint8_t PROTOCOL_BINARY_CMD_DCP_EXPIRATION =
310 uint8_t(cb::mcbp::ClientOpcode::DcpExpiration);
311 const uint8_t PROTOCOL_BINARY_CMD_DCP_FLUSH =
312 uint8_t(cb::mcbp::ClientOpcode::DcpFlush);
313 const uint8_t PROTOCOL_BINARY_CMD_DCP_SET_VBUCKET_STATE =
314 uint8_t(cb::mcbp::ClientOpcode::DcpSetVbucketState);
315 const uint8_t PROTOCOL_BINARY_CMD_DCP_NOOP =
316 uint8_t(cb::mcbp::ClientOpcode::DcpNoop);
317 const uint8_t PROTOCOL_BINARY_CMD_DCP_BUFFER_ACKNOWLEDGEMENT =
318 uint8_t(cb::mcbp::ClientOpcode::DcpBufferAcknowledgement);
319 const uint8_t PROTOCOL_BINARY_CMD_DCP_CONTROL =
320 uint8_t(cb::mcbp::ClientOpcode::DcpControl);
321 const uint8_t PROTOCOL_BINARY_CMD_DCP_SYSTEM_EVENT =
322 uint8_t(cb::mcbp::ClientOpcode::DcpSystemEvent);
323 const uint8_t PROTOCOL_BINARY_CMD_STOP_PERSISTENCE =
324 uint8_t(cb::mcbp::ClientOpcode::StopPersistence);
325 const uint8_t PROTOCOL_BINARY_CMD_START_PERSISTENCE =
326 uint8_t(cb::mcbp::ClientOpcode::StartPersistence);
327 const uint8_t PROTOCOL_BINARY_CMD_SET_PARAM =
328 uint8_t(cb::mcbp::ClientOpcode::SetParam);
329 const uint8_t PROTOCOL_BINARY_CMD_GET_REPLICA =
330 uint8_t(cb::mcbp::ClientOpcode::GetReplica);
331 const uint8_t PROTOCOL_BINARY_CMD_CREATE_BUCKET =
332 uint8_t(cb::mcbp::ClientOpcode::CreateBucket);
333 const uint8_t PROTOCOL_BINARY_CMD_DELETE_BUCKET =
334 uint8_t(cb::mcbp::ClientOpcode::DeleteBucket);
335 const uint8_t PROTOCOL_BINARY_CMD_LIST_BUCKETS =
336 uint8_t(cb::mcbp::ClientOpcode::ListBuckets);
337 const uint8_t PROTOCOL_BINARY_CMD_SELECT_BUCKET =
338 uint8_t(cb::mcbp::ClientOpcode::SelectBucket);
339 const uint8_t PROTOCOL_BINARY_CMD_OBSERVE_SEQNO =
340 uint8_t(cb::mcbp::ClientOpcode::ObserveSeqno);
341 const uint8_t PROTOCOL_BINARY_CMD_OBSERVE =
342 uint8_t(cb::mcbp::ClientOpcode::Observe);
343 const uint8_t PROTOCOL_BINARY_CMD_EVICT_KEY =
344 uint8_t(cb::mcbp::ClientOpcode::EvictKey);
345 const uint8_t PROTOCOL_BINARY_CMD_GET_LOCKED =
346 uint8_t(cb::mcbp::ClientOpcode::GetLocked);
347 const uint8_t PROTOCOL_BINARY_CMD_UNLOCK_KEY =
348 uint8_t(cb::mcbp::ClientOpcode::UnlockKey);
349 const uint8_t PROTOCOL_BINARY_CMD_GET_FAILOVER_LOG =
350 uint8_t(cb::mcbp::ClientOpcode::GetFailoverLog);
351 const uint8_t PROTOCOL_BINARY_CMD_LAST_CLOSED_CHECKPOINT =
352 uint8_t(cb::mcbp::ClientOpcode::LastClosedCheckpoint);
353 const uint8_t PROTOCOL_BINARY_CMD_GET_META =
354 uint8_t(cb::mcbp::ClientOpcode::GetMeta);
355 const uint8_t PROTOCOL_BINARY_CMD_GETQ_META =
356 uint8_t(cb::mcbp::ClientOpcode::GetqMeta);
357 const uint8_t PROTOCOL_BINARY_CMD_SET_WITH_META =
358 uint8_t(cb::mcbp::ClientOpcode::SetWithMeta);
359 const uint8_t PROTOCOL_BINARY_CMD_SETQ_WITH_META =
360 uint8_t(cb::mcbp::ClientOpcode::SetqWithMeta);
361 const uint8_t PROTOCOL_BINARY_CMD_ADD_WITH_META =
362 uint8_t(cb::mcbp::ClientOpcode::AddWithMeta);
363 const uint8_t PROTOCOL_BINARY_CMD_ADDQ_WITH_META =
364 uint8_t(cb::mcbp::ClientOpcode::AddqWithMeta);
365 const uint8_t PROTOCOL_BINARY_CMD_SNAPSHOT_VB_STATES =
366 uint8_t(cb::mcbp::ClientOpcode::SnapshotVbStates);
367 const uint8_t PROTOCOL_BINARY_CMD_VBUCKET_BATCH_COUNT =
368 uint8_t(cb::mcbp::ClientOpcode::VbucketBatchCount);
369 const uint8_t PROTOCOL_BINARY_CMD_DEL_WITH_META =
370 uint8_t(cb::mcbp::ClientOpcode::DelWithMeta);
371 const uint8_t PROTOCOL_BINARY_CMD_DELQ_WITH_META =
372 uint8_t(cb::mcbp::ClientOpcode::DelqWithMeta);
373 const uint8_t PROTOCOL_BINARY_CMD_CREATE_CHECKPOINT =
374 uint8_t(cb::mcbp::ClientOpcode::CreateCheckpoint);
375 const uint8_t PROTOCOL_BINARY_CMD_NOTIFY_VBUCKET_UPDATE =
376 uint8_t(cb::mcbp::ClientOpcode::NotifyVbucketUpdate);
377 const uint8_t PROTOCOL_BINARY_CMD_ENABLE_TRAFFIC =
378 uint8_t(cb::mcbp::ClientOpcode::EnableTraffic);
379 const uint8_t PROTOCOL_BINARY_CMD_DISABLE_TRAFFIC =
380 uint8_t(cb::mcbp::ClientOpcode::DisableTraffic);
381 const uint8_t PROTOCOL_BINARY_CMD_CHECKPOINT_PERSISTENCE =
382 uint8_t(cb::mcbp::ClientOpcode::CheckpointPersistence);
383 const uint8_t PROTOCOL_BINARY_CMD_RETURN_META =
384 uint8_t(cb::mcbp::ClientOpcode::ReturnMeta);
385 const uint8_t PROTOCOL_BINARY_CMD_COMPACT_DB =
386 uint8_t(cb::mcbp::ClientOpcode::CompactDb);
387 const uint8_t PROTOCOL_BINARY_CMD_SET_CLUSTER_CONFIG =
388 uint8_t(cb::mcbp::ClientOpcode::SetClusterConfig);
389 const uint8_t PROTOCOL_BINARY_CMD_GET_CLUSTER_CONFIG =
390 uint8_t(cb::mcbp::ClientOpcode::GetClusterConfig);
391 const uint8_t PROTOCOL_BINARY_CMD_GET_RANDOM_KEY =
392 uint8_t(cb::mcbp::ClientOpcode::GetRandomKey);
393 const uint8_t PROTOCOL_BINARY_CMD_SEQNO_PERSISTENCE =
394 uint8_t(cb::mcbp::ClientOpcode::SeqnoPersistence);
395 const uint8_t PROTOCOL_BINARY_CMD_GET_KEYS =
396 uint8_t(cb::mcbp::ClientOpcode::GetKeys);
397 const uint8_t PROTOCOL_BINARY_CMD_COLLECTIONS_SET_MANIFEST =
398 uint8_t(cb::mcbp::ClientOpcode::CollectionsSetManifest);
399 const uint8_t PROTOCOL_BINARY_CMD_COLLECTIONS_GET_MANIFEST =
400 uint8_t(cb::mcbp::ClientOpcode::CollectionsGetManifest);
401 const uint8_t PROTOCOL_BINARY_CMD_SET_DRIFT_COUNTER_STATE =
402 uint8_t(cb::mcbp::ClientOpcode::SetDriftCounterState);
403 const uint8_t PROTOCOL_BINARY_CMD_GET_ADJUSTED_TIME =
404 uint8_t(cb::mcbp::ClientOpcode::GetAdjustedTime);
405 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_GET =
406 uint8_t(cb::mcbp::ClientOpcode::SubdocGet);
407 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_EXISTS =
408 uint8_t(cb::mcbp::ClientOpcode::SubdocExists);
409 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_DICT_ADD =
410 uint8_t(cb::mcbp::ClientOpcode::SubdocDictAdd);
411 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_DICT_UPSERT =
412 uint8_t(cb::mcbp::ClientOpcode::SubdocDictUpsert);
413 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_DELETE =
414 uint8_t(cb::mcbp::ClientOpcode::SubdocDelete);
415 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_REPLACE =
416 uint8_t(cb::mcbp::ClientOpcode::SubdocReplace);
417 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_ARRAY_PUSH_LAST =
418 uint8_t(cb::mcbp::ClientOpcode::SubdocArrayPushLast);
419 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_ARRAY_PUSH_FIRST =
420 uint8_t(cb::mcbp::ClientOpcode::SubdocArrayPushFirst);
421 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_ARRAY_INSERT =
422 uint8_t(cb::mcbp::ClientOpcode::SubdocArrayInsert);
423 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_ARRAY_ADD_UNIQUE =
424 uint8_t(cb::mcbp::ClientOpcode::SubdocArrayAddUnique);
425 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_COUNTER =
426 uint8_t(cb::mcbp::ClientOpcode::SubdocCounter);
427 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_MULTI_LOOKUP =
428 uint8_t(cb::mcbp::ClientOpcode::SubdocMultiLookup);
429 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_MULTI_MUTATION =
430 uint8_t(cb::mcbp::ClientOpcode::SubdocMultiMutation);
431 const uint8_t PROTOCOL_BINARY_CMD_SUBDOC_GET_COUNT =
432 uint8_t(cb::mcbp::ClientOpcode::SubdocGetCount);
433 const uint8_t PROTOCOL_BINARY_CMD_SCRUB =
434 uint8_t(cb::mcbp::ClientOpcode::Scrub);
435 const uint8_t PROTOCOL_BINARY_CMD_ISASL_REFRESH =
436 uint8_t(cb::mcbp::ClientOpcode::IsaslRefresh);
437 const uint8_t PROTOCOL_BINARY_CMD_SSL_CERTS_REFRESH =
438 uint8_t(cb::mcbp::ClientOpcode::SslCertsRefresh);
439 const uint8_t PROTOCOL_BINARY_CMD_GET_CMD_TIMER =
440 uint8_t(cb::mcbp::ClientOpcode::GetCmdTimer);
441 const uint8_t PROTOCOL_BINARY_CMD_SET_CTRL_TOKEN =
442 uint8_t(cb::mcbp::ClientOpcode::SetCtrlToken);
443 const uint8_t PROTOCOL_BINARY_CMD_GET_CTRL_TOKEN =
444 uint8_t(cb::mcbp::ClientOpcode::GetCtrlToken);
445 const uint8_t PROTOCOL_BINARY_CMD_RBAC_REFRESH =
446 uint8_t(cb::mcbp::ClientOpcode::RbacRefresh);
447 const uint8_t PROTOCOL_BINARY_CMD_ADJUST_TIMEOFDAY =
448 uint8_t(cb::mcbp::ClientOpcode::AdjustTimeofday);
449 const uint8_t PROTOCOL_BINARY_CMD_EWOULDBLOCK_CTL =
450 uint8_t(cb::mcbp::ClientOpcode::EwouldblockCtl);
451 const uint8_t PROTOCOL_BINARY_CMD_GET_ERROR_MAP =
452 uint8_t(cb::mcbp::ClientOpcode::GetErrorMap);
453 const uint8_t PROTOCOL_BINARY_CMD_DROP_PRIVILEGE =
454 uint8_t(cb::mcbp::ClientOpcode::DropPrivilege);
455 const uint8_t PROTOCOL_BINARY_CMD_INVALID =
456 uint8_t(cb::mcbp::ClientOpcode::Invalid);
458 using protocol_binary_datatype_t = uint8_t;
459 #define PROTOCOL_BINARY_RAW_BYTES uint8_t(cb::mcbp::Datatype::Raw)
460 #define PROTOCOL_BINARY_DATATYPE_JSON uint8_t(cb::mcbp::Datatype::JSON)
461 #define PROTOCOL_BINARY_DATATYPE_SNAPPY uint8_t(cb::mcbp::Datatype::Snappy)
462 #define PROTOCOL_BINARY_DATATYPE_XATTR uint8_t(cb::mcbp::Datatype::Xattr)
469 uint8_t(PROTOCOL_BINARY_DATATYPE_JSON | PROTOCOL_BINARY_DATATYPE_SNAPPY);
477 #define RESIDENT_DATATYPE_MASK uint8_t(5);
486 uint8_t bytes[24];
495 uint8_t bytes[24];
505 uint8_t bytes[sizeof(protocol_binary_request_header)];
515 uint8_t bytes[sizeof(protocol_binary_response_header)];
539 uint8_t bytes[sizeof(protocol_binary_response_header) + 4];
583 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
604 uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
643 uint8_t bytes[sizeof(protocol_binary_request_header) + 20];
726 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
744 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
762 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
790 typedef enum : uint8_t {
826 enum class doc_flag : uint8_t {
881 uint8_t subdoc_flags; // See protocol_binary_subdoc_flag
884 /* uint8_t doc_flags (optional - present if extlen == 4 or
890 uint8_t bytes[sizeof(protocol_binary_request_header) + 3];
899 uint8_t bytes[sizeof(protocol_binary_response_header)];
939 uint8_t opcode;
940 uint8_t flags;
942 /* uint8_t path[pathlen] */
969 uint8_t opcode;
970 uint8_t flags;
973 /* uint8_t path[pathlen] */
974 /* uint8_t value[valuelen] */
1038 uint8_t bytes[sizeof(protocol_binary_response_header)];
1054 uint8_t reserved;
1055 uint8_t flags;
1059 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
1166 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
1194 uint8_t ttl;
1195 uint8_t res1;
1196 uint8_t res2;
1197 uint8_t res3;
1205 uint8_t bytes[sizeof(protocol_binary_request_header) + 16];
1220 uint8_t ttl;
1221 uint8_t res1;
1222 uint8_t res2;
1223 uint8_t res3;
1227 uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
1270 uint8_t bytes[sizeof(protocol_binary_request_header) +
1301 uint8_t bytes[sizeof(protocol_binary_response_header) +
1361 uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
1444 uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
1481 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
1491 uint8_t bytes[sizeof(protocol_binary_response_header) + 4];
1513 uint8_t bytes[sizeof(protocol_binary_request_header) + 48];
1524 uint8_t bytes[sizeof(protocol_binary_request_header)];
1545 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
1559 uint8_t bytes[sizeof(protocol_binary_request_header) + 20];
1579 uint8_t nru,
1580 uint8_t collectionLen) {
1582 req.magic = (uint8_t)PROTOCOL_BINARY_REQ;
1583 req.opcode = (uint8_t)PROTOCOL_BINARY_CMD_DCP_MUTATION;
1588 req.extlen = gsl::narrow<uint8_t>(getExtrasLength(collectionsAware));
1612 uint8_t nru;
1613 uint8_t collection_len;
1616 uint8_t bytes[sizeof(protocol_binary_request_header) + 32];
1618 static uint8_t getExtrasLength(bool collectionAware) {
1621 sizeof(uint16_t) + (2 * sizeof(uint8_t));
1624 sizeof(uint16_t) + sizeof(uint8_t);
1646 req.magic = (uint8_t)PROTOCOL_BINARY_REQ;
1647 req.opcode = (uint8_t)PROTOCOL_BINARY_CMD_DCP_DELETION;
1669 uint8_t bytes[sizeof(protocol_binary_request_header) + extlen];
1683 uint8_t collectionLen) {
1685 req.magic = (uint8_t)PROTOCOL_BINARY_REQ;
1686 req.opcode = (uint8_t)PROTOCOL_BINARY_CMD_DCP_DELETION;
1708 uint8_t collection_len;
1711 uint8_t bytes[sizeof(protocol_binary_request_header) + extlen];
1725 uint8_t collectionLen) {
1727 req.magic = (uint8_t)PROTOCOL_BINARY_REQ;
1728 req.opcode = (uint8_t)PROTOCOL_BINARY_CMD_DCP_EXPIRATION;
1733 req.extlen = gsl::narrow<uint8_t>(getExtrasLength(collectionsAware));
1750 uint8_t collection_len;
1753 uint8_t bytes[sizeof(protocol_binary_request_header) + 19];
1758 (1 * sizeof(uint8_t));
1787 uint8_t state;
1790 uint8_t bytes[sizeof(protocol_binary_request_header) + 1];
1805 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
1853 req.magic = (uint8_t)PROTOCOL_BINARY_REQ;
1854 req.opcode = (uint8_t)PROTOCOL_BINARY_CMD_DCP_SYSTEM_EVENT;
1872 uint8_t bytes[sizeof(protocol_binary_request_header) + 12];
1877 static inline uint8_t getExtrasLength() {
1912 uint8_t opcode;
1915 uint8_t bytes[sizeof(protocol_binary_request_header) + 1];
1949 uint8_t bytes[sizeof(protocol_binary_request_header) +
1960 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
2017 uint8_t bytes[sizeof(protocol_binary_request_header) + 24];
2030 uint8_t bytes[sizeof(protocol_binary_request_header) + 24];
2054 uint8_t datatype;
2063 uint8_t datatype)
2077 enum class GetMetaVersion : uint8_t {
2100 uint8_t bytes[sizeof(protocol_binary_request_header) + 32];
2117 uint8_t bytes[sizeof(protocol_binary_request_header) + 12];
2181 uint8_t time_sync;
2184 uint8_t bytes[sizeof(protocol_binary_request_header) + 9];
2220 uint8_t drop_deletes;
2221 uint8_t align_pad1;
2226 uint8_t bytes[sizeof(protocol_binary_request_header) + 24];
2246 uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
2301 uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
2310 * - format_type is of type uint8_t and it describes whether
2357 uint8_t bytes[sizeof(protocol_binary_request_header) +
2397 enum class TimeType : uint8_t {
2412 uint8_t bytes[sizeof(protocol_binary_request_header) + sizeof(uint64_t) + sizeof(TimeType)];
2434 uint8_t bytes[sizeof(protocol_binary_request_header) + sizeof(uint32_t) +
2457 uint8_t bytes[sizeof(protocol_binary_request_header) + 2];
2472 uint8_t bytes[sizeof(protocol_binary_request_header)];
2483 return protocol_binary_subdoc_flag(static_cast<uint8_t>(a) |
2484 static_cast<uint8_t>(b));
2491 return mcbp::subdoc::doc_flag(static_cast<uint8_t>(a) |
2492 static_cast<uint8_t>(b));
2497 return mcbp::subdoc::doc_flag(static_cast<uint8_t>(a) &
2498 static_cast<uint8_t>(b));
2502 return mcbp::subdoc::doc_flag(~static_cast<uint8_t>(a));
2516 return std::to_string(static_cast<uint8_t>(a));
2544 const uint8_t highest = PROTOCOL_BINARY_DATATYPE_XATTR |