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

Method loadObjectTypeIndex

web/src/memory.ts:177–180  ·  view source on GitHub ↗

* Load the object type index from the object handle. * @param objectHandle The handle of the object. * @returns The object type index.

(objectHandle: Pointer)

Source from the content-addressed store, hash-verified

175 * @returns The object type index.
176 */
177 loadObjectTypeIndex(objectHandle: Pointer): number {
178 // The object layout is [ref_counter (i64), type_index (i32), ...].
179 return this.loadI32(objectHandle + SizeOf.I64);
180 }
181 /**
182 * Load the type key from the type info pointer.
183 * @param typeInfoPtr The pointer to the type info.

Callers 1

typeIndexMethod · 0.80

Calls 1

loadI32Method · 0.95

Tested by

no test coverage detected