Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
Interface provides an interface for wrapping memcall functions.
var Default Interface = &wrapper{}
Default is a default implementation of Interface that directly wraps functions exported by the memcall package.
type MemoryProtectionFlag ¶
type MemoryProtectionFlag = memcall.MemoryProtectionFlag
MemoryProtectionFlag specifies some particular memory protection flag.
func NoAccess ¶
func NoAccess() MemoryProtectionFlag
NoAccess specifies that the memory should be marked unreadable and immutable.
func ReadOnly ¶
func ReadOnly() MemoryProtectionFlag
ReadOnly specifies that the memory should be marked read-only (immutable).
func ReadWrite ¶
func ReadWrite() MemoryProtectionFlag
ReadWrite specifies that the memory should be made readable and writable.
type Protector ¶
type Protector interface {
Protect([]byte, MemoryProtectionFlag) error
}
Click to show internal directories.
Click to hide internal directories.