pub unsafe fn get_function_unchecked(data: &[u8]) -> (ModbusFunction, &[u8])
Expand description
Gets the function code of the given modbus data.
ยงSafety
Providing data with less than one byte is undefined behavior
pub unsafe fn get_function_unchecked(data: &[u8]) -> (ModbusFunction, &[u8])
Gets the function code of the given modbus data.
Providing data with less than one byte is undefined behavior