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

Method commit

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

Source from the content-addressed store, hash-verified

537 // room in the block for in-place production (avoids a staging copy)
538 uint8_t* span(size_t& room) { room = kBlock - used_; return buf_.get() + used_; }
539 bool commit(size_t n) { used_ += n; total_ += n; return used_ < kBlock || drain(); }
540 bool write(const void* p, size_t n) {
541 const uint8_t* s = static_cast<const uint8_t*>(p);
542 while (n) {

Callers 1

sourceMethod · 0.45

Calls 1

drainFunction · 0.50

Tested by

no test coverage detected