decode method Null safety
- XdrDataInputStream stream
Implementation
static XdrSCValType decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return SCV_U63;
case 1:
return SCV_U32;
case 2:
return SCV_I32;
case 3:
return SCV_STATIC;
case 4:
return SCV_OBJECT;
case 5:
return SCV_SYMBOL;
case 6:
return SCV_BITSET;
case 7:
return SCV_STATUS;
default:
throw Exception("Unknown enum value: $value");
}
}