constructor(initialSize = 511) {
    this.buf = Buffer.alloc(Encoder.nextPowerOfTwo(initialSize))
    this.offset = 0
  }
Construct a new encoder with the given initial size

@param {number} [initialSize] initial size