mirror of
https://github.com/eiskasten/wc-beacon.git
synced 2026-09-08 12:25:08 -05:00
Return header
This commit is contained in:
@@ -48,6 +48,12 @@ impl<'a> TryFrom<&'a [u8]> for PCD<Raw> {
|
||||
}
|
||||
}
|
||||
|
||||
impl PCD<Partitioned> {
|
||||
pub fn header(&self) -> PCDHeader {
|
||||
self.state.header
|
||||
}
|
||||
}
|
||||
|
||||
impl From<PCD<Raw>> for PCD<Partitioned> {
|
||||
fn from(value: PCD<Raw>) -> Self {
|
||||
let sized_value = value.state.data;
|
||||
|
||||
Reference in New Issue
Block a user