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

Method optional_bytes

atomic-repository/src/repository/project_tree.rs:1680–1688  ·  view source on GitHub ↗
(&mut self, bytes: Option<&[u8]>)

Source from the content-addressed store, hash-verified

1678 self.raw(bytes);
1679 }
1680 fn optional_bytes(&mut self, bytes: Option<&[u8]>) {
1681 match bytes {
1682 Some(bytes) => {
1683 self.u8(1);
1684 self.bytes(bytes);
1685 }
1686 None => self.u8(0),
1687 }
1688 }
1689 fn git_oid(&mut self, oid: Option<&GitObjectId>) {
1690 match oid {
1691 Some(oid) => {

Callers 1

canonical_bytesMethod · 0.80

Calls 2

u8Method · 0.80
bytesMethod · 0.45

Tested by

no test coverage detected