Skip to main content

honzo_chunks/data/
mod.rs

1pub mod chap;
2pub mod covr;
3pub mod css;
4pub mod font;
5pub mod img;
6pub mod math;
7pub mod sidx;
8
9/// Returns true if the tag is one of the known chunk types.
10pub fn is_known_chunk(tag: &[u8; 4]) -> bool {
11    matches!(
12        tag,
13        b"CHAP" | b"IMG_" | b"CSS_" | b"FONT" | b"COVR" | b"COVT" | b"NOTE" | b"SIDX" | b"MATH"
14    )
15}