writeUnsignedShort method

void writeUnsignedShort(
  1. int v
)

Writes a 2 byte unsigned short using the current endian format.

Implementation

void writeUnsignedShort(int v) {
  final d = ByteData(2)..setUint16(0, v, endian);
  _dest.add(d.buffer.asUint8List(d.offsetInBytes, 2));
}