Make raw_data public.

This commit is contained in:
Corey Schuhen 2025-04-18 14:41:56 +01:00
parent 17d3adac4b
commit eaec6c8165

View File

@ -212,8 +212,8 @@ impl Frame {
&self.data.raw()[..self.can_header.len as usize] &self.data.raw()[..self.can_header.len as usize]
} }
/// Get reference to underlying 8-byte raw data buffer /// Get reference to underlying 8-byte raw data buffer, some bytes on the tail might be undefined.
pub(crate) fn raw_data(&self) -> &[u8] { pub fn raw_data(&self) -> &[u8] {
self.data.raw() self.data.raw()
} }