Sebastian Thielrefactora929bcf4 years agoHistory
11 lines · 387 B · Rust
RawDownload
use crate::extension::Signature; /// The signature of the sparse index extension, nothing more than an indicator at this time.pub const SIGNATURE: Signature = *b"sdir"; /// Serialize the sparse index extension to `out`pub fn write_to(mut out: impl std::io::Write) -> Result<(), std::io::Error> {    out.write_all(&SIGNATURE)?;    out.write_all(&0_u32.to_be_bytes())?;    Ok(())}

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