mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
32 bit integration
This commit is contained in:
@@ -102,6 +102,7 @@ typedef struct _MIHP_AllocationCustomMetadata
|
||||
uint8_t AsU8 [sizeof(size_t) * 2];
|
||||
uint16_t AsU16 [sizeof(size_t) * 1];
|
||||
uint32_t AsU32 [sizeof(size_t) / 2];
|
||||
void* AsPtr [sizeof(size_t) / 2];
|
||||
uint64_t AsU64 [sizeof(size_t) / 4];
|
||||
};
|
||||
} MIHP_AllocationCustomMetadata;
|
||||
@@ -111,11 +112,12 @@ typedef struct _MIHP_HeapSegmentHeader
|
||||
size_t SegmentSize;
|
||||
size_t OccupiedSize;
|
||||
|
||||
struct _MIHP_AllocationCustomMetadata CustomMetadata;
|
||||
|
||||
struct _MIHP_HeapSegmentHeader* NextSegment;
|
||||
struct _MIHP_HeapSegmentHeader* PreviousSegment;
|
||||
struct _MIHP_HeapMemoryAreaHeader* OwningMemoryArea;
|
||||
|
||||
struct _MIHP_AllocationCustomMetadata CustomMetadata;
|
||||
|
||||
uint32_t Checksum; // Checksum must be the last member !
|
||||
} MIHP_HeapSegmentHeader;
|
||||
|
||||
Reference in New Issue
Block a user