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

Method read_optional_u32

atomic-core/src/operation/codec.rs:997–1003  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

995 }
996
997 fn read_optional_u32(&mut self) -> Result<Option<u32>, OperationCodecError> {
998 if self.read_optional_tag("u32")? {
999 Ok(Some(self.read_u32()?))
1000 } else {
1001 Ok(None)
1002 }
1003 }
1004
1005 fn read_optional_hash(&mut self, field: &str) -> Result<Option<Hash>, OperationCodecError> {
1006 if self.read_optional_tag(field)? {

Callers 1

decode_effect_receiptFunction · 0.80

Calls 2

read_optional_tagMethod · 0.80
read_u32Method · 0.80

Tested by

no test coverage detected