Skip to main content

read_dump

Function read_dump 

Source
pub fn read_dump(bytes: &[u8]) -> Result<Vec<FlightLog>, LogError>
Expand description

Reads an AIM raw dump: each recording in it as a record of its own, in the dump’s order. A recording that holds no record, one opening straight after another, is a record with no channel, so that the records keep the dump’s count.

§Errors

LogError::NotThisFormat when it doesn’t open with a recording’s type, or a recording’s first pressure isn’t a pad’s; LogError::Binary, naming the byte, when a type isn’t the sample’s, a bit held to the sample is set, the dump ends inside a record, or data follows erased memory; LogError::NoData when it holds no record.