44 uint8_t *key_data, *value_data;
45 size_t key_length, value_length;
51 memcpy(key_data, key.
ptr, key_length);
53 value_length = value.
length();
55 memcpy(value_data, value.
ptr, value_length);
KeyValueVectorT m_cells
Buffer (array) of cells to be returned.
STL Strict Weak Ordering for KeyValueT.
Declarations for CellListScannerBuffer.
CharT * alloc(size_t sz)
Allocate sz bytes.
A class managing one or more serializable ByteStrings.
void initialize_for_scan()
Sorts cells in preparation for scan.
ByteArena m_arena
Memory arena to hold serialized keys and values.
void add(const SerializedKey key, const ByteString value)
Adds a key/value pair to the buffer.
Compatibility Macros for C/C++.
bool load(const SerializedKey &key)
Parses the opaque key and loads the components into the member variables.
T get(const String &name)
Retrieves a configuration value.
size_t length() const
Retrieves the length of the serialized string.
const uint8_t * ptr
The pointer to the serialized data.
bool m_initialized_for_scan
Flag indicating if initialize_for_scan has been called.
CellListScannerBuffer(ScanContextPtr &scan_ctx)
Constructor.
Provides access to internal components of opaque key.
virtual bool get(Key &key, ByteString &value)
KeyValueVectorT::iterator m_iter
Iterator pointing to next cell in m_cells to be returned.
std::shared_ptr< ScanContext > ScanContextPtr