raw accessor function
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
This commit is contained in:
parent
3970061ca1
commit
42d3487c19
@ -431,6 +431,10 @@ impl<'slice> PusTc<'slice> {
|
|||||||
verify_crc16_from_raw(raw_data, pus_tc.crc16.expect("CRC16 invalid"))?;
|
verify_crc16_from_raw(raw_data, pus_tc.crc16.expect("CRC16 invalid"))?;
|
||||||
Ok((pus_tc, total_len))
|
Ok((pus_tc, total_len))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn raw(&self) -> Option<&'slice [u8]> {
|
||||||
|
self.raw_data
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//noinspection RsTraitImplementation
|
//noinspection RsTraitImplementation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user