]> git.proxmox.com Git - rustc.git/blob - vendor/gix-index/src/extension/end_of_index_entry/mod.rs
New upstream version 1.70.0+dfsg2
[rustc.git] / vendor / gix-index / src / extension / end_of_index_entry / mod.rs
1 use crate::{extension, extension::Signature};
2
3 /// The signature of the end-of-index-entry extension
4 pub const SIGNATURE: Signature = *b"EOIE";
5 /// The minimal size of the extension, depending on the shortest hash.
6 pub const MIN_SIZE: usize = 4 /* offset to extensions */ + gix_hash::Kind::shortest().len_in_bytes();
7 /// The smallest size of the extension varying by hash kind, along with the standard extension header.
8 pub const MIN_SIZE_WITH_HEADER: usize = extension::MIN_SIZE + MIN_SIZE;
9
10 mod decode;
11 pub use decode::decode;
12
13 mod write;
14 pub use write::write_to;