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

Method ptrFromOffset

web/src/memory.ts:394–396  ·  view source on GitHub ↗

* Get the real pointer from offset values. * Note that the returned value becomes obsolete if alloc is called on the stack. * @param offset The allocated offset.

(offset: PtrOffset)

Source from the content-addressed store, hash-verified

392 * @param offset The allocated offset.
393 */
394 ptrFromOffset(offset: PtrOffset): Pointer {
395 return this.basePtr + offset;
396 }
397
398 // Store APIs
399 storePtr(offset: PtrOffset, value: Pointer): void {

Callers 7

commitToWasmMemoryMethod · 0.95
registerFuncMethod · 0.80
getGlobalFuncInternalMethod · 0.80
typeKey2IndexMethod · 0.80
packedFuncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected