added sp header getter function
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-12-21 22:09:45 +01:00
parent 4410ee7eec
commit 2758699601
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -279,6 +279,10 @@ impl<'slice> PusTc<'slice> {
)
}
pub fn sp_header(&self) -> &SpHeader {
&self.sp_header
}
pub fn len_packed(&self) -> usize {
let mut length = PUS_TC_MIN_LEN_WITHOUT_APP_DATA;
if let Some(app_data) = self.app_data {