putUint16 method

void putUint16 (
  1. int value,
  2. {Endian endian}
)

Write a Uint16 into the buffer.

Implementation

void putUint16(int value, {Endian endian}) {
  _eightBytes.setUint16(0, value, endian ?? Endian.host);
  _buffer.addAll(_eightBytesAsList, 0, 2);
}