()
| 62 | } |
| 63 | |
| 64 | readByteArray(): Uint8Array { |
| 65 | const len = this.readU64(); |
| 66 | assert(this.offset + len <= this.bytes.byteLength); |
| 67 | const ret = new Uint8Array(len); |
| 68 | ret.set(this.bytes.slice(this.offset, this.offset + len)); |
| 69 | this.offset += len; |
| 70 | return ret; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /** |
no test coverage detected