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

Method optional_bytes

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

Source from the content-addressed store, hash-verified

1660 self.raw(bytes);
1661 }
1662 fn optional_bytes(&mut self, bytes: Option<&[u8]>) {
1663 match bytes {
1664 Some(bytes) => {
1665 self.u8(1);
1666 self.bytes(bytes);
1667 }
1668 None => self.u8(0),
1669 }
1670 }
1671 fn git_oid(&mut self, oid: Option<&GitObjectId>) {
1672 match oid {
1673 Some(oid) => {

Callers 1

canonical_bytesMethod · 0.80

Calls 2

u8Method · 0.80
bytesMethod · 0.45

Tested by

no test coverage detected