setInt32 method
Writes a signed integer to 4-bytes.
The offset must satisy the relations 0 ≤ offset ≤ offset+4 ≤ this.length.
final Buffer buffer = Buffer(4);
buffer.setInt32(1075843080, 0);
print(buffer); // [8, 16, 32, 64]
Implementation
void setInt32(final int value, final int offset, [final Endian endian = Endian.little]) {
return asByteData().setInt32(offset, value, endian);
}