(b: Uint8Array)
| 1382 | this.buf[this.start + this.len++] = b |
| 1383 | } |
| 1384 | bytes(b: Uint8Array) { |
| 1385 | if (b.length >= DEFERRED_BYTES_MIN) { |
| 1386 | this.deferred.push({ bytes: b, length: b.length, at: this.len }) |
| 1387 | return |
| 1388 | } |
| 1389 | this.ensure(b.length) |
| 1390 | this.buf.set(b, this.start + this.len) |
| 1391 | this.len += b.length |
| 1392 | } |
| 1393 | uvarint(n: number) { |
| 1394 | this.ensure(10) |
| 1395 | const buf = this.buf |