mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 14:09:29 +00:00
37 lines
702 B
C
37 lines
702 B
C
|
/*
|
||
|
CodeSegment.h
|
||
|
(c) 2018 Jakcron
|
||
|
*/
|
||
|
#pragma once
|
||
|
#include <fnd/types.h>
|
||
|
|
||
|
namespace nn
|
||
|
{
|
||
|
namespace ctr
|
||
|
{
|
||
|
class CodeSegment
|
||
|
{
|
||
|
public:
|
||
|
CodeSegment();
|
||
|
CodeSegment(const CodeSegment& other);
|
||
|
CodeSegment(uint32_t address, uint32_t size, uint32_t page_num);
|
||
|
|
||
|
void operator=(const CodeSegment& other);
|
||
|
bool operator==(const CodeSegment& other) const;
|
||
|
bool operator!=(const CodeSegment& other) const;
|
||
|
|
||
|
void setAddress(uint32_t address);
|
||
|
uint32_t getAddress() const;
|
||
|
|
||
|
void setSize(uint32_t size);
|
||
|
uint32_t getSize() const;
|
||
|
|
||
|
void setPageNum(uint32_t num);
|
||
|
uint32_t getPageNum() const;
|
||
|
private:
|
||
|
uint32_t mAddress;
|
||
|
uint32_t mSize;
|
||
|
uint32_t mPageNum;
|
||
|
};
|
||
|
}
|
||
|
}
|