Skip to main content

read_by_layout

Function read_by_layout 

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

Reads binary records by a layout (records::read), or a serial console’s capture of them, the block the layout names (capture::read).

§Errors

LogError::Layout for a capture read by a layout that names no block, or a block named for a file that isn’t a capture; otherwise as records::read or capture::read.