| 1 | // Licensed to the .NET Foundation under one or more agreements. |
| 2 | // The .NET Foundation licenses this file to you under the MIT license. |
| 3 | // See the LICENSE file in the project root for more information. |
| 4 | // |
| 5 | // File: HotMetaData.h |
| 6 | // |
| 7 | |
| 8 | // |
| 9 | // Class code:MetaData::HotMetaData represents a reader of hot data in MetaData hot stream. |
| 10 | // |
| 11 | // ====================================================================================== |
| 12 | |
| 13 | #pragma once |
| 14 | |
| 15 | #include "external.h" |
| 16 | |
| 17 | namespace MetaData |
| 18 | { |
| 19 | |
| 20 | // Forward declaration |
| 21 | class HotHeapsDirectoryIterator; |
| 22 | |
| 23 | // -------------------------------------------------------------------------------------- |
| 24 | // |
| 25 | // This class represents a reader of hot data in MetaData hot stream. |
| 26 | // |
| 27 | class HotMetaData |
| 28 | { |
| 29 | private: |
| 30 | DataBuffer m_Data; |
| 31 | |
| 32 | public: |
| 33 | // Creates reader for MetaData hot stream of format file:HotDataFormat.h. |
| 34 | __checkReturn |
| 35 | HRESULT Initialize(DataBuffer data); |
| 36 | |
| 37 | // Returns iterator of stored hot heaps (code:HotHeap). |
| 38 | __checkReturn |
| 39 | HRESULT GetHeapsDirectoryIterator(HotHeapsDirectoryIterator *pHeapsDirectoryIterator); |
| 40 | |
| 41 | }; // class HotMetaData |
| 42 | |
| 43 | }; // namespace MetaData |
| 44 | |