copy() {
        const buf = new DroppingBuffer<T>(1);
        buf.buf = this.buf.slice();
        buf.rpos = this.rpos;
        buf.wpos = this.wpos;