* Load the object type index from the object handle. * @param objectHandle The handle of the object. * @returns The object type index.
(objectHandle: Pointer)
| 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. |