/// <summary> /// Get the index from the heap id, [MS-PST] 2.3.1.1/hidIndex /// </summary> /// <param name="id">The heap id</param> /// <returns>The index</returns> public static HeapID get_heap_index(HeapID id) { return(((id >> 5) - 1) & 0x7FF); }
/// <summary> /// Get the heap page from the heap id, [MS-PST] 2.3.1.1/hidBlockIndex /// </summary> /// <param name="id">The heap id</param> /// <returns>The heap page</returns> public static HeapID get_heap_page(HeapID id) { return(id >> 16); }