appendUInt2 method

void appendUInt2(
  1. int value
)

Converts four bytes from the read buffer to a signed int.

The byte order is big-endian.

@return the int value.

Implementation

void appendUInt2(int value) {
  this._bufferPosition += 2;
  _ensureBuffer();
  _bufferData.add((value >> 8) & 0xff);
  _bufferData.add((value) & 0xff);
}