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