| 340 | } |
| 341 | |
| 342 | void 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 | |
| 351 | static void streamOut(std::ostream& _out, dev::RLP const& _d, unsigned _depth = 0) |
| 352 | { |
nothing calls this directly
no test coverage detected