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

Method Write

crates/bindings-csharp/Runtime/Internal/Module.cs:503–513  ·  view source on GitHub ↗
(this BytesSink sink, byte[] bytes)

Source from the content-addressed store, hash-verified

501 }
502
503 private static void Write(this BytesSink sink, byte[] bytes)
504 {
505 var start = 0U;
506 while (start != bytes.Length)
507 {
508 var written = (uint)bytes.Length;
509 var buffer = bytes.AsSpan((int)start);
510 FFI.bytes_sink_write(sink, buffer, ref written);
511 start += written;
512 }
513 }
514
515#pragma warning disable IDE1006 // Naming Styles - methods below are meant for FFI.
516

Callers 15

DeleteMethod · 0.45
FindSingleMethod · 0.45
DeleteMethod · 0.45
FindSingleMethod · 0.45
FindSingleMethod · 0.45
FindSingleMethod · 0.45
__describe_module__Method · 0.45
__call_reducer__Method · 0.45
__call_procedure__Method · 0.45
__call_http_handler__Method · 0.45
__call_view__Method · 0.45
__call_view_anon__Method · 0.45

Calls 1

bytes_sink_writeMethod · 0.45

Tested by

no test coverage detected