MCPcopy Index your code
hub / github.com/apache/tvm / readByteArray

Method readByteArray

web/src/rpc_server.ts:64–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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/**

Callers 1

onPacketReadyMethod · 0.95

Calls 3

readU64Method · 0.95
assertFunction · 0.90
sliceMethod · 0.45

Tested by

no test coverage detected