14 : storage_batch_{std::move(storage_batch)},
45 prefixed_key.
put(key);
Class represents arbitrary (including empty) byte buffer.
void clear() override
Clear batch.
TrieStorageBackendBatch(std::unique_ptr< face::WriteBatch< common::BufferView, common::Buffer >> storage_batch, common::Buffer node_prefix)
SLBuffer & put(std::string_view view)
Put a string into byte buffer.
outcome::result< void > commit() override
Writes batch.
outcome::result< void > put(const common::BufferView &key, const common::Buffer &value) override
Store value by key.
outcome::result< void > remove(const common::BufferView &key) override
Remove value by key.
common::Buffer prefixKey(const common::BufferView &key) const
std::unique_ptr< face::WriteBatch< common::BufferView, common::Buffer > > storage_batch_
common::Buffer node_prefix_