writeUint16BE function

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

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

Implementation

void writeUint16BE(int value, List<int> out, [int offset = 0]) {
  out[offset] = (value >> 8) & mask8;
  out[offset + 1] = value & mask8;
}