constructor() {
    this.buf = new Uint8Array(16)
    this.offset = 0
  }
Wrapper around an Uint8Array that allows values to be appended to the buffer,
and that automatically grows the buffer when space runs out.