parse

Function parse 

Source
pub fn parse(data: &[u8]) -> Result<GpsLog, SdCardError>
Expand description

Parse an NMEA GPS log file from raw bytes.

Parses all $GPRMC and $GPGGA sentences. Unrecognised sentence types and malformed lines are silently skipped (counted in GpsLog::errors).

ยงErrors

Returns SdCardError::FileTooSmall only if the input is completely empty. Individual malformed sentences are skipped, not fatal.