15 lines · 570 B · Rust
RawDownload
//! An implementation of the shared parts of git bitmaps used in `gix-pack`, `gix-index` and `gix-worktree`.//!//! Note that many tests are performed indirectly by tests in the aforementioned consumer crates.#![deny(rust_2018_idioms, unsafe_code, missing_docs)] /// Bitmap utilities for the advanced word-aligned hybrid bitmappub mod ewah; pub(crate) mod decode {    #[inline]    pub(crate) fn u32(data: &[u8]) -> Option<(u32, &[u8])> {        data.split_at_checked(4)            .map(|(num, data)| (u32::from_be_bytes(num.try_into().unwrap()), data))    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t