AuroraRuntime/Source/Process/AuProcessSectionAllocations.hpp

22 lines
581 B
C++
Raw Normal View History

/***
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);
};
}