| 156 | } |
| 157 | |
| 158 | void octetStream::get_bytes(octet* ans, size_t& length) |
| 159 | { |
| 160 | auto rec_length = get_int(4); |
| 161 | if (rec_length != length) |
| 162 | throw runtime_error("unexpected length"); |
| 163 | memcpy(ans, consume(length), length * sizeof(octet)); |
| 164 | } |
| 165 | |
| 166 | void octetStream::store(int l) |
| 167 | { |
no test coverage detected