MCPcopy Create free account
hub / github.com/ElementsProject/elements / Compact

Method Compact

src/streams.h:247–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 const value_type* data() const { return vch.data() + m_read_pos; }
246
247 inline void Compact()
248 {
249 vch.erase(vch.begin(), vch.begin() + m_read_pos);
250 m_read_pos = 0;
251 }
252
253 bool Rewind(std::optional<size_type> n = std::nullopt)
254 {

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected