pushUint16Be method

void pushUint16Be(
  1. int val
)

Append a 16-bit integer value in big-endian format to the byte sequence in the buffer.

Implementation

void pushUint16Be(int val) {
  final result = List<int>.filled(2, 0);
  writeUint16BE(val, result);
  pushBytes(result);
}