decodeBool method
bool decodeBool (int offset)
Implementation
bool decodeBool(int offset) {
switch (data.getUint8(offset)) {
case 0:
return false;
case 1:
return true;
default:
throw FidlError('Invalid boolean', FidlErrorCode.fidlInvalidBoolean);
}
}