writeUint32BE function

void writeUint32BE(
  1. int value,
  2. List<int> out, [
  3. int offset = 0
])

Writes a 32-bit unsigned integer value in big-endian byte order to a list.

Implementation

void writeUint32BE(int value, List<int> out, [int offset = 0]) {
  out[offset + 0] = (value >> 24) & mask8;
  out[offset + 1] = (value >> 16) & mask8;
  out[offset + 2] = (value >> 8) & mask8;
  out[offset + 3] = value & mask8;
}