writeUint32 method
Writes the value
as a 4 byte long unsigned integer
at the current writerIndex (inclusive).
endian
the endianness of the number, defaults to kEndianness which is initialized with Endian.big.
Exceptions:
-
WriteIndexOutOfRangeException if the current writer index is outside of the bounds of the buffer
-
BufferOverflowException if the length of the resulting bytes would overflow the buffer
Implementation
void writeUint32(int value, [Endian? endian]) =>
writeByteData(4).setUint32(0, value, endian ?? kEndianness);