writeInt method

void writeInt(
  1. int v
)

Writes a 4 byte int using the current endian format.

Implementation

void writeInt(int v) {
  final d = ByteData(4)..setInt32(0, v, endian);
  _dest.add(d.buffer.asUint8List(d.offsetInBytes, 4));
}