INNER CODE UNIT · Rust

entry

TheMaxMur/RS-Key · crates/rsk-devconf/src/lib.rs:327

            let entry = 2 + merged[i + 1] as usize;
            if i + entry > stored {
                break None;
            }
            if merged[i] != TAG_USB_ENABLED {
                break Some((i, entry));
            }
            i += entry;
        };
        // Only the policy (or a half entry) left to give: refusing the write beats
        // dropping it, and `persist_dev_conf` turns the over-cap length into 6A80.
        let Some((at, entry)) = victim else { break };
        merged.copy_within(at + entry..m, at);
        m -= entry;
    }
    m
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…