MCPcopy Create free account
hub / github.com/apache/tvm / updateViews

Method updateViews

web/src/memory.ts:258–266  ·  view source on GitHub ↗

* Update memory view after the memory growth.

()

Source from the content-addressed store, hash-verified

256 * Update memory view after the memory growth.
257 */
258 private updateViews(): void {
259 this.buffer = this.memory.buffer;
260 this.viewU8 = new Uint8Array(this.buffer);
261 this.viewU16 = new Uint16Array(this.buffer);
262 this.viewI32 = new Int32Array(this.buffer);
263 this.viewU32 = new Uint32Array(this.buffer);
264 this.viewF32 = new Float32Array(this.buffer);
265 this.viewF64 = new Float64Array(this.buffer);
266 }
267}
268
269/**

Callers 15

loadU8Method · 0.95
loadU16Method · 0.95
loadU32Method · 0.95
loadI32Method · 0.95
loadI64Method · 0.95
loadF32Method · 0.95
loadF64Method · 0.95
loadPointerMethod · 0.95
loadUSizeMethod · 0.95
loadRawBytesMethod · 0.95
loadCStringMethod · 0.95
storeRawBytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected