MCPcopy Create free account
hub / github.com/argumentcomputer/ix / raw_bytes

Method raw_bytes

crates/ixon/src/lazy.rs:219–221  ·  view source on GitHub ↗

Raw serialized bytes (the Tag4 constant body, no length prefix).

(&self)

Source from the content-addressed store, hash-verified

217 // Memoized: hash only until the first success. `Relaxed` suffices —
218 // the flag guards recomputation of a pure function of immutable
219 // bytes, so a race just means both threads hash once.
220 if let Some(expected) = &self.pending_addr
221 && !self.verified.load(Ordering::Relaxed)
222 {
223 let computed = Address::hash(self.bytes.as_slice());
224 if computed != *expected {

Callers 5

item_cost_bytesFunction · 0.80
add_entries_parallelFunction · 0.80
get_const_bytesMethod · 0.80
putMethod · 0.80

Calls 1

as_sliceMethod · 0.80

Tested by

no test coverage detected