writeInt method

void writeInt(
  1. int value, {
  2. bool signed = false,
})
inherited

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