CodeArray

Undocumented in source.

Constructors

this
this(size_t maxSize, void* userPtr, Allocator allocator)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

AddrInfoList
alias AddrInfoList = AddrInfo[]
Undocumented in source.

Enums

ProtectMode
enum ProtectMode
Undocumented in source.
Type
enum Type
Undocumented in source.

Functions

calcJmpAddress
void calcJmpAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
db
void db(int code)
Undocumented in source. Be warned that the author may not have intended to support it.
db
void db(uint8* code, size_t codeSize)
Undocumented in source. Be warned that the author may not have intended to support it.
db
void db(uint64 code, size_t codeSize)
Undocumented in source. Be warned that the author may not have intended to support it.
dd
void dd(uint32 code)
Undocumented in source. Be warned that the author may not have intended to support it.
dq
void dq(uint64 code)
Undocumented in source. Be warned that the author may not have intended to support it.
dump
void dump()
Undocumented in source. Be warned that the author may not have intended to support it.
dw
void dw(uint32 code)
Undocumented in source. Be warned that the author may not have intended to support it.
getAlignedAddress
uint8* getAlignedAddress(uint8* addr, size_t alignedSize)
Undocumented in source. Be warned that the author may not have intended to support it.
getCode
uint8* getCode()
Undocumented in source. Be warned that the author may not have intended to support it.
getCode
F getCode()
Undocumented in source. Be warned that the author may not have intended to support it.
getCurr
uint8* getCurr()
Undocumented in source. Be warned that the author may not have intended to support it.
getCurr
F getCurr()
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
size_t getSize()
Undocumented in source. Be warned that the author may not have intended to support it.
growMemory
void growMemory()
Undocumented in source. Be warned that the author may not have intended to support it.
isAllocType
bool isAllocType()
Undocumented in source. Be warned that the author may not have intended to support it.
isAutoGrow
bool isAutoGrow()
Undocumented in source. Be warned that the author may not have intended to support it.
isCalledCalcJmpAddress
bool isCalledCalcJmpAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
resetSize
void resetSize()
Undocumented in source. Be warned that the author may not have intended to support it.
rewrite
void rewrite(size_t offset, uint64 disp, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save(size_t offset, size_t val, int size, inner.LabelMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
setProtectMode
bool setProtectMode(ProtectMode mode, bool throwException)
Undocumented in source. Be warned that the author may not have intended to support it.
setProtectModeRE
bool setProtectModeRE(bool throwException)
Undocumented in source. Be warned that the author may not have intended to support it.
setProtectModeRW
bool setProtectModeRW(bool throwException)
Undocumented in source. Be warned that the author may not have intended to support it.
setSize
void setSize(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
useProtect
bool useProtect()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

protect
bool protect(void* addr, size_t size, ProtectMode protectMode_)

change exec permission of memory @param addr in buffer address @param size in buffer size @param protectMode in mode(RW/RWE/RE) @return true(success), false(failure)

Structs

AddrInfo
struct AddrInfo
Undocumented in source.

Variables

addrInfoList_
AddrInfoList addrInfoList_;
Undocumented in source.
alloc_
Allocator alloc_;
Undocumented in source.
defaultAllocator_
Allocator defaultAllocator_;
Undocumented in source.
isCalledCalcJmpAddress_
bool isCalledCalcJmpAddress_;
Undocumented in source.
maxSize_
size_t maxSize_;
Undocumented in source.
size_
size_t size_;
Undocumented in source.
top_
uint8* top_;
Undocumented in source.
type_
Type type_;
Undocumented in source.

Meta