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

Method finish

atomic-core/src/operation/codec.rs:280–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

278 }
279
280 fn finish(self) -> Result<Vec<u8>, OperationCodecError> {
281 if self.bytes.len() > MAX_OPERATION_OBJECT_BYTES {
282 return Err(OperationCodecError::new(format!(
283 "canonical operation object exceeds {MAX_OPERATION_OBJECT_BYTES} bytes"
284 )));
285 }
286 Ok(self.bytes)
287 }
288
289 fn reserve(&self, additional: usize) -> Result<(), OperationCodecError> {
290 let total = self

Callers 7

fmtMethod · 0.45
encode_operation_payloadFunction · 0.45
decode_operationFunction · 0.45
decode_effect_receiptFunction · 0.45
encode_operation_headsFunction · 0.45
decode_operation_headsFunction · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected