serializeTo4bytes function

Uint8List serializeTo4bytes(
  1. int i
)

AKA 'ser_32(i)' in the specification

Implementation

Uint8List serializeTo4bytes(int i) {
  var bytes = ByteData(4);
  bytes.setInt32(0, i, Endian.big);

  return bytes.buffer.asUint8List();
}