decodeFromBytes method

int decodeFromBytes(
  1. Uint8List bytes
)

Implementation

int decodeFromBytes(Uint8List bytes) {
  if (byteSize == 1) {
    return Int8.decodeFromBytes(bytes);
  }
  int opType = byteSize == 2
      ? Int16.decodeFromBytes(bytes)
      : Int32.decodeFromBytes(bytes);
  return opType;
}