Skip to main content

split_preserved

Function split_preserved 

Source
pub fn split_preserved(
    blocks: &[MetadataBlock],
) -> (Vec<(String, Vec<u8>)>, Vec<EmbeddedBinaryTag>)
Expand description

Split a FLAC file’s preserved metadata blocks into the read-only structural store (STREAMINFO/SEEKTABLE, as (kind, body) pairs in file order) and the editable binary tags (APPLICATION/CUESHEET, as EmbeddedBinaryTags keyed by block name; payload is the full block body, including APPLICATION’s 4-byte app id). Blocks of any other type are ignored (PICTURE/VORBIS_COMMENT are handled by their own paths and are never in preserved).