AuroraRuntime/Source/Process/AuProcessSectionAllocations.hpp

22 lines
560 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
{
AuMutex 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);
};
}