MCPcopy Create free account
hub / github.com/Niko1221/Strata / FileSource

Method FileSource

engine/src/core/conversation_file.cpp:591–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589class FileSource {
590public:
591 explicit FileSource(RawFile& f) : buf_(aligned_block()), f_(f) {}
592 bool ok() const { return buf_ != nullptr; }
593 std::string error() const { return buf_ ? f_.error() : std::string("out of memory for the read buffer"); }
594 SessionError kind() const { return buf_ ? f_.kind() : SessionError::memory; }

Callers

nothing calls this directly

Calls 1

aligned_blockFunction · 0.85

Tested by

no test coverage detected