raw accessor function
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-08-28 00:25:22 +02:00
parent 3970061ca1
commit 42d3487c19
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -431,6 +431,10 @@ impl<'slice> PusTc<'slice> {
verify_crc16_from_raw(raw_data, pus_tc.crc16.expect("CRC16 invalid"))?;
Ok((pus_tc, total_len))
}
pub fn raw(&self) -> Option<&'slice [u8]> {
self.raw_data
}
}
//noinspection RsTraitImplementation