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

Method clear

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

Source from the content-addressed store, hash-verified

241 const_reference operator[](size_type pos) const { return vch[pos + m_read_pos]; }
242 reference operator[](size_type pos) { return vch[pos + m_read_pos]; }
243 void clear() { vch.clear(); m_read_pos = 0; }
244 value_type* data() { return vch.data() + m_read_pos; }
245 const value_type* data() const { return vch.data() + m_read_pos; }
246

Callers 2

readMethod · 0.45
ignoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected