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

Method resize

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

Source from the content-addressed store, hash-verified

237 size_type size() const { return vch.size() - m_read_pos; }
238 bool empty() const { return vch.size() == m_read_pos; }
239 void resize(size_type n, value_type c = value_type{}) { vch.resize(n + m_read_pos, c); }
240 void reserve(size_type n) { vch.reserve(n + m_read_pos); }
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]; }

Callers 15

CKeyMethod · 0.45
ExpandHRPFunction · 0.45
CreateChecksumFunction · 0.45
SwapBase64Function · 0.45
rest_getutxosFunction · 0.45
setupMethod · 0.45
GetValidFedpegScriptsFunction · 0.45
ExpandHRPFunction · 0.45
CreateChecksumFunction · 0.45
LocateErrorsFunction · 0.45
UnserMethod · 0.45
UnserializeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected