writeInt32 method

int writeInt32(
  1. int n, [
  2. Endian endian = Endian.big
])

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;
}