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

Function encode

atomic-core/src/change/format_v3/semantic/encode.rs:212–214  ·  view source on GitHub ↗

Encode exact operations into an uncompressed versioned payload. The outer change section supplies compression, authentication and framing.

(ops: &[FileOps], content: &[u8])

Source from the content-addressed store, hash-verified

210/// Encode exact operations into an uncompressed versioned payload. The outer
211/// change section supplies compression, authentication and framing.
212pub fn encode(ops: &[FileOps], content: &[u8]) -> FormatResult<Vec<u8>> {
213 encode_layout(ops, content, true)
214}
215
216pub(super) fn encode_layout(
217 ops: &[FileOps],

Calls 1

encode_layoutFunction · 0.85