MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / WriteBytes

Function WriteBytes

crates/bindings-cpp/src/internal/Module.cpp:452–459  ·  view source on GitHub ↗

Helper to write bytes to a BytesSink

Source from the content-addressed store, hash-verified

450
451// Helper to write bytes to a BytesSink
452void WriteBytes(BytesSink sink, const std::vector<uint8_t>& bytes) {
453 if (sink.inner == 0 || bytes.empty()) {
454 return;
455 }
456
457 size_t bytes_to_write = bytes.size();
458 FFI::bytes_sink_write(sink, bytes.data(), &bytes_to_write);
459}
460
461Status Module::__call_reducer__(
462 uint32_t id,

Callers 5

__call_reducer__Method · 0.85
__call_view__Method · 0.85
__call_view_anon__Method · 0.85
__call_procedure__Method · 0.85
__call_http_handler__Method · 0.85

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…