MCPcopy Create free account
hub / github.com/bcndev/bytecoin / StringInputStream

Method StringInputStream

src/common/MemoryStreams.hpp:30–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class StringInputStream : public IInputStream, private common::Nocopy {
29public:
30 explicit StringInputStream(const std::string &in) : in(&in), in_position(0) {}
31 size_t read_some(void *data, size_t size) override;
32 size_t size() const { return in->size() - in_position; }
33 bool empty() const { return size() == 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected