decode

Function decode 

Source
pub fn decode(format: &Format, buf: &[u8]) -> Result<Epoch>
Expand description

Decode buf into hifitime::Epoch in either TAI or UTC timescale as appropriate.

Note, that for both TAI and UTC TimeScales the reference epoch will be Jan 1, 1900.

ยงErrors

Error::NotEnoughData if there is not enough data for the provided format, or [Error::TimecodeConfig] if a timecode cannot be constructected for the provided format. This will usually be due to providing unsupported timecode values in a format field.