| 11 | using namespace common; |
| 12 | |
| 13 | MemoryInputStream::MemoryInputStream(const void *buffer, size_t buffer_size) |
| 14 | : buffer(static_cast<const char *>(buffer)), buffer_size(buffer_size), in_position(0) {} |
| 15 | |
| 16 | size_t MemoryInputStream::read_some(void *data, size_t size) { |
| 17 | invariant(in_position <= buffer_size, "jump over the end of buffer"); |
nothing calls this directly
no outgoing calls
no test coverage detected