Skip to main content

read_file_header

Function read_file_header 

Source
pub fn read_file_header(bytes: &[u8]) -> MidiResult<(FileHeader, &[u8])>
Expand description

A file’s header off the front of bytes, and what follows it. A format past 1 is refused, after it is read: the error carries it.