@param {Uint8Array} buffer
(buffer)
| 358 | |
| 359 | /** @param {Uint8Array} buffer */ |
| 360 | writeBytes(buffer) { |
| 361 | const len = buffer.length; |
| 362 | this.writeVarint(len); |
| 363 | this.realloc(len); |
| 364 | this.buf.set(buffer, this.pos); |
| 365 | this.pos += len; |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * @template T |
no test coverage detected