MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / rows_to_bytes

Method rows_to_bytes

atomic-repository/src/repository/remote_cache.rs:104–106  ·  view source on GitHub ↗

The slice's graph rows as bytes ([`SANDBOX_GRAPH_SLICE_SCHEMA`]). The spans travel beside them, one by one.

(&self)

Source from the content-addressed store, hash-verified

102 /// The slice's graph rows as bytes ([`SANDBOX_GRAPH_SLICE_SCHEMA`]). The
103 /// spans travel beside them, one by one.
104 pub fn rows_to_bytes(&self) -> Result<Vec<u8>, RepositoryError> {
105 encode(&self.rows)
106 }
107
108 /// A slice from its encoded rows and its spans.
109 pub fn from_parts(rows: &[u8], spans: Vec<SpanBytes>) -> Result<Self, RepositoryError> {

Callers 2

slice_protoFunction · 0.80

Calls 1

encodeFunction · 0.70