writeInt32 method Null safety

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

Writes a int32 i into the buffer

  • i: The value to write
  • endian: The endianess, Endian.big by default

Implementation

void writeInt32(int i, [Endian endian = Endian.big]) {
  _ensureSize(int32Size);
  _scratchData!.setInt32(_scratchOffset, i, endian);
  _scratchOffset += int32Size;
}