writeUint16 = (encoder, num) => {
  write(encoder, num & binary.BITS8);
  write(encoder, num >>> 8 & binary.BITS8);
}
Write two bytes as an unsigned integer.

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