gix_index/extension/end_of_index_entry/mod.rs
1use crate::{extension, extension::Signature};
2
3/// The signature of the end-of-index-entry extension
4pub const SIGNATURE: Signature = *b"EOIE";
5/// The minimal size of the extension, depending on the shortest hash.
6pub 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.
8pub const MIN_SIZE_WITH_HEADER: usize = extension::MIN_SIZE + MIN_SIZE;
9
10mod decode;
11pub use decode::decode;
12
13mod write;
14pub use write::write_to;