readSize method
Implementation
int readSize() {
int b = readUint8(); // this should be Uint8
if (b == 255) {
final v = readInt();
if (v < 0) {
throw UnmarshalOutOfBoundsException();
}
return v;
} else {
return b;
}
}