writeUint32 = (encoder, num) => {
  for (let i = 0; i < 4; i++) {
    write(encoder, num & binary.BITS8);
    num >>>= 8;
  }
}
Write two bytes as an unsigned integer

@function
@param {Encoder} encoder
@param {number} num The number that is to be encoded.