MCPcopy Create free account
hub / github.com/apple/foundationdb / Subspace

Method Subspace

fdbclient/Subspace.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "fdbclient/Subspace.h"
22
23Subspace::Subspace(Tuple const& tuple, StringRef const& rawPrefix) {
24 StringRef packed = tuple.pack();
25
26 this->rawPrefix.reserve(this->rawPrefix.arena(), rawPrefix.size() + packed.size());
27 this->rawPrefix.append(this->rawPrefix.arena(), rawPrefix.begin(), rawPrefix.size());
28 this->rawPrefix.append(this->rawPrefix.arena(), packed.begin(), packed.size());
29}
30
31Subspace::Subspace(Tuple const& tuple, Standalone<VectorRef<uint8_t>> const& rawPrefix) {
32 this->rawPrefix.reserve(this->rawPrefix.arena(), rawPrefix.size() + tuple.pack().size());

Callers 7

micro_table.pyFile · 0.45
micro_blob.pyFile · 0.45
micro_queue.pyFile · 0.45
micro_multi.pyFile · 0.45
micro_graph.pyFile · 0.45
micro_priority.pyFile · 0.45
micro_doc.pyFile · 0.45

Calls 5

packMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected