pub fn check_buffer(buffer: &[u8]) -> boolExpand description
Check a buffer to see if the content looks like arxml data
The function returns true if the buffer starts with a valid arxml header (after skipping whitespace and comments). This function does not check anything after the header.
§Parameters
- buffer: u8 slice containing the data to check
§Example
if autosar_data::check_buffer(&buffer) {
// it looks like arxml data
}