writeInt32 method
Writes an Int32.
Implementation
int writeInt32(int n, [Endian endian = Endian.big]) {
final pos = bytesIO.position;
bytesIO.ensureCapacity(pos + 4);
_bytesData.setInt32(pos, n, endian);
bytesIO.incrementPosition(4);
return 4;
}