Lluvia
MemoryAllocationInfo.h
Go to the documentation of this file.
1 
8 #ifndef LLUVIA_CORE_MEMORY_MEMORY_ALLOCATION_INFO_H_
9 #define LLUVIA_CORE_MEMORY_MEMORY_ALLOCATION_INFO_H_
10 
11 #include <cstdint>
12 #include <ostream>
13 
14 namespace ll {
15 
20 
22  uint64_t offset;
23 
25  uint64_t size;
26 
28  uint64_t leftPadding;
29 
31  uint32_t page;
32 };
33 
34 } // namespace ll
35 
36 // \brief print memory allocation using "[offset, size, leftPadding, page]" format.
37 
48 std::ostream& operator<<(std::ostream& out, const ll::MemoryAllocationInfo& allocInfo);
49 
50 #endif // LLUVIA_CORE_MEMORY_MEMORY_ALLOCATION_INFO_H_
std::ostream & operator<<(std::ostream &out, const ll::MemoryAllocationInfo &allocInfo)
prints the memory allocation in a output stream.
Definition: Buffer.h:28
Structure to hold the allocation information of objects in memory.
Definition: MemoryAllocationInfo.h:19
uint64_t size
requested size
Definition: MemoryAllocationInfo.h:25
uint64_t leftPadding
left padding required to align offset
Definition: MemoryAllocationInfo.h:28
uint32_t page
page number within memory
Definition: MemoryAllocationInfo.h:31
uint64_t offset
aligned offset
Definition: MemoryAllocationInfo.h:22