writeInt method
Write a single 4 byte integer.
Implementation
void writeInt(int value, {bool signed = false}) {
flush(4);
signed
? writeByteData.setInt32(writePosition, value, _endianness)
: writeByteData.setUint32(writePosition, value, _endianness);
writePosition += 4;
}