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

Method encode_head

crates/ixon/src/tag.rs:64–70  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

62/// * `L = 1, M = 1`: the low `r - 2` bits are a code `c`; `c = 0, 1, 2, 3`
63/// select 2, 3, 4, 8 following bytes holding `value - R2`, `value - R3`,
64/// `value - R4`, `value - R5` (`R3 = R2 + 2^16`, `R4 = R3 + 2^24`,
65/// `R5 = R4 + 2^32`); every other code is invalid (none for `f = 4`).
66///
67/// Each rung starts where the previous one ends, so a value has exactly one
68/// encoding (the code is bijective and needs no canonicality check). Widths
69/// 1, 2, 3, 4, 5, 9; rung ends:
70///
71/// | f | R1 | R2 | R3 | R4 | R5 |
72/// |---|---|---|---|---|---|
73/// | 0 | 128 | 16512 | 82048 | 16859264 | 4311826560 |

Callers 1

putMethod · 0.80

Calls 1

u64_byte_countFunction · 0.85

Tested by

no test coverage detected