Writes a 4 byte int using the current endian format.
void writeInt(int v) { final d = ByteData(4)..setInt32(0, v, endian); _dest.add(d.buffer.asUint8List(d.offsetInBytes, 4)); }