AuroraRuntime/Source/Process/AuProcessSectionAllocations.hpp
Reece 4e6f116925 [*] Refactor
[+] IProcessSectionView::GetStart
[+] IProcessSectionView::GetEnd
2022-12-17 20:14:19 +00:00

22 lines
581 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuProcessSectionAllocations.hpp
Date: 2022-09-30
Author: Reece
***/
#pragma once
namespace Aurora::Process
{
struct ProcessSectionAllocations
{
AuThreadPrimitives::SpinLock spinlock;
AuList<AuPair<AuUInt, AuUInt>> allocations;
AuUInt uMaxLength {};
bool GetAddress(AuUInt uOffset, AuUInt uLength, AuUInt &uAddressOut, bool &bCompleteBlock);
void ReleaseAddress(AuUInt uOffset);
bool IsAddressValid(AuUInt uOffset);
};
}