pub fn decode_bool(data: &[u8]) -> Result<bool, DriverError>
Decode a boolean from binary format (1 byte: 0x00 = false, 0x01 = true).
Returns DriverError::Protocol if the data is not exactly 1 byte.
DriverError::Protocol