2022-09-30 22:47:18 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2022-12-17 20:14:19 +00:00
|
|
|
File: AuProcessSectionAllocations.hpp
|
2022-09-30 22:47:18 +00:00
|
|
|
Date: 2022-09-30
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::Process
|
|
|
|
{
|
|
|
|
struct ProcessSectionAllocations
|
|
|
|
{
|
2023-12-26 21:01:29 +00:00
|
|
|
AuMutex spinlock;
|
2022-09-30 22:47:18 +00:00
|
|
|
AuList<AuPair<AuUInt, AuUInt>> allocations;
|
|
|
|
AuUInt uMaxLength {};
|
|
|
|
|
|
|
|
bool GetAddress(AuUInt uOffset, AuUInt uLength, AuUInt &uAddressOut, bool &bCompleteBlock);
|
|
|
|
void ReleaseAddress(AuUInt uOffset);
|
2022-12-16 00:41:01 +00:00
|
|
|
bool IsAddressValid(AuUInt uOffset);
|
2022-09-30 22:47:18 +00:00
|
|
|
};
|
|
|
|
}
|