portable-network-archive 0.32.2

Portable-Network-Archive cli
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use pna::{ChunkType, RawChunk};

/// Private chunk type for file flags (fflags).
/// Name follows PNA chunk naming convention where case has semantic meaning:
/// - lowercase first letter: ancillary (not critical)
/// - lowercase second letter: private (not public)
/// - uppercase third letter: reserved
/// - lowercase fourth letter: safe to copy
#[allow(non_upper_case_globals)]
pub const ffLg: ChunkType = unsafe { ChunkType::from_unchecked(*b"ffLg") };

pub fn fflag_chunk(flag: &str) -> RawChunk {
    RawChunk::from_data(ffLg, flag.as_bytes())
}