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

Method put_digest_kind

atomic-core/src/operation/codec.rs:824–832  ·  view source on GitHub ↗
(&mut self, kind: DigestKind)

Source from the content-addressed store, hash-verified

822 }
823
824 fn put_digest_kind(&mut self, kind: DigestKind) -> Result<(), OperationCodecError> {
825 self.put_u8(match kind {
826 DigestKind::Bytes => 0,
827 DigestKind::Manifest => 1,
828 DigestKind::Checkpoint => 2,
829 DigestKind::Shelf => 3,
830 DigestKind::Refs => 4,
831 })
832 }
833
834 fn put_file_state(&mut self, state: &FileState) -> Result<(), OperationCodecError> {
835 self.put_u8(match state.kind {

Callers 1

put_effect_valueMethod · 0.80

Calls 1

put_u8Method · 0.80

Tested by

no test coverage detected