MCPcopy Create free account
hub / github.com/LUX-Core/lux / pushCount

Method pushCount

src/cpp-ethereum/libdevcore/RLP.cpp:342–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void RLPStream::pushCount(size_t _count, byte _base)
343{
344 auto br = bytesRequired(_count);
345 if (int(br) + _base > 0xff)
346 BOOST_THROW_EXCEPTION(RLPException() << errinfo_comment("Count too large for RLP"));
347 m_out.push_back((byte)(br + _base)); // max 8 bytes.
348 pushInt(_count, br);
349}
350
351static void streamOut(std::ostream& _out, dev::RLP const& _d, unsigned _depth = 0)
352{

Callers

nothing calls this directly

Calls 3

bytesRequiredFunction · 0.85
RLPExceptionClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected