write16 method

BcsWriter write16(
  1. int value
)

Write a U16 value into a buffer and shift cursor position by 2.

Implementation

BcsWriter write16(int value) {
  ensureSizeOrGrow(2);
  _dataView.setUint16(_bytePosition, value, Endian.little);
  return shift(2);
}