writeUint32 method

  1. @override
void writeUint32(
  1. int value
)
override

Write a 32-bit word to the end of the buffer.

Implementation

@override
void writeUint32(int value) {
  if (byteOrder == BIG_ENDIAN) {
    writeByte((value >> 24) & 0xff);
    writeByte((value >> 16) & 0xff);
    writeByte((value >> 8) & 0xff);
    writeByte((value) & 0xff);
    return;
  }
  writeByte((value) & 0xff);
  writeByte((value >> 8) & 0xff);
  writeByte((value >> 16) & 0xff);
  writeByte((value >> 24) & 0xff);
}