writeUint32 method
Write a 32-bit word to the end of the buffer.
Implementation
void writeUint32(int value) {
if (byteOrder == ByteOrder.bigEndian) {
writeByte((value >> 24) & 0xff);
writeByte((value >> 16) & 0xff);
writeByte((value >> 8) & 0xff);
writeByte(value & 0xff);
} else {
writeByte(value & 0xff);
writeByte((value >> 8) & 0xff);
writeByte((value >> 16) & 0xff);
writeByte((value >> 24) & 0xff);
}
}