Documentation ¶
Index ¶
Constants ¶
View Source
const ErrInvalidFlag = "<memcall> memory protection flag is undefined"
ErrInvalidFlag indicates that a given memory protection flag is undefined.
Variables ¶
This section is empty.
Functions ¶
func DisableCoreDumps ¶
func DisableCoreDumps() error
DisableCoreDumps disables core dumps on Unix systems.
func Protect ¶
func Protect(b []byte, mpf MemoryProtectionFlag) error
Protect modifies the protection state for a specified byte slice.
Types ¶
type MemoryProtectionFlag ¶
type MemoryProtectionFlag struct {
// contains filtered or unexported fields
}
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.
Click to show internal directories.
Click to hide internal directories.