         } else if (value) {
                    const b = new Uint8Array(buf.length + value.length);
                    b.set(buf);
                    b.set(value, buf.length);
                    buf = b;
                }
                if (done) {
                    if (!buf || buf.length < 4) throw 'unexpected EOF';
                    dbg.debug('received `bucket.get` response: ' + toHex(buf));
                    if (buf[0] != 0) throw 'unexpected path'
                    if (buf[1] > 127) throw 