33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: ProcessSectionView.hpp
|
||
|
Date: 2022-08-09
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Process
|
||
|
{
|
||
|
struct ProcessSectionView : IProcessSectionView
|
||
|
{
|
||
|
AuSPtr<IProcessSectionMapView> Allocate(AuUInt length) override;
|
||
|
|
||
|
AuSPtr<IProcessSectionMapView> MapFileByPath(const AuString &str,
|
||
|
AuUInt64 offset,
|
||
|
AuUInt length,
|
||
|
AuFS::EFileOpenMode mode,
|
||
|
AuFS::EFileAdvisoryLockLevel sectionLock) override;
|
||
|
|
||
|
AuSPtr<IProcessSectionMapView> MapFileByObject(const AuSPtr<Aurora::IO::FS::IFileStream> &stream,
|
||
|
AuUInt64 offset,
|
||
|
AuUInt length,
|
||
|
Aurora::IO::FS::EFileOpenMode mode,
|
||
|
AuFS::EFileAdvisoryLockLevel processLockLevel) override;
|
||
|
|
||
|
AuSPtr<IProcessSectionMapView> MapIPCMemory(const AuString &handle,
|
||
|
AuUInt64 offset,
|
||
|
AuFS::EFileOpenMode mode) override;
|
||
|
|
||
|
};
|
||
|
}
|