writeShort method

void writeShort(
  1. int v
)

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

Implementation

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