fromBytes static method
Implementation
static StatusWord fromBytes(Uint8List data, [int offset = 0]) {
if(data.length < 2 ) {
throw ArgumentError.value(data, "data", "Argument length too small");
}
if(data.length - offset < 2) {
throw ArgumentError.value(offset, "offset", "Argument out of bounds");
}
return StatusWord(sw1: data[offset], sw2: data[offset + 1]);
}