writeUint32 method

void writeUint32(
  1. int value,
  2. [Endian endian = Endian.big]
)

Writes a 32-bit unsigned integer.

Implementation

void writeUint32(int value, [Endian endian = Endian.big]) {
  ensureAvailableLength(4);

  final length = this._length;
  _byteData.setUint32(length, value, endian);
  this._length = length + 4;
}