syspack

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2018 License: MIT Imports: 3 Imported by: 2

README

Published under MIT license with the permission of NX Studio.

Documentation

Index

Constants

View Source
const (
	MaxDword   = Dword(math.MaxUint32)
	MaxInt     = int(MaxUint >> 1)
	MaxOffset  = Offset(math.MaxInt64)
	MaxQword   = Qword(math.MaxUint64)
	MaxSize    = ^Size(0)
	MaxUint    = ^uint(0)
	MaxUintptr = ^uintptr(0)
	MinDword   = Dword(0)
	MinInt     = -MaxInt - 1
	MinOffset  = Offset(math.MinInt64)
	MinQword   = Qword(0)
	MinSize    = Size(0)
	MinUint    = uint(0)
	MinUintptr = uintptr(0)
)
View Source
const (
	SymbolMlock   = "mlock"
	SymbolMmap    = "mmap"
	SymbolMsync   = "msync"
	SymbolMunlock = "munlock"
	SymbolMunmap  = "munmap"
)

Variables

This section is empty.

Functions

func Errno

func Errno(err error) error

Get system call error number.

func Mlock

func Mlock(addr uintptr, length Size) error

func MlockE

func MlockE(addr uintptr, length Size) error

func Mmap

func Mmap(addr uintptr, length Size, prot, flags int, fd uintptr, offset Offset) (uintptr, error)

func MmapE

func MmapE(addr uintptr, length Size, prot, flags int, fd uintptr, offset Offset) (uintptr, error)

func Msync

func Msync(addr uintptr, length Size) error

func MsyncE

func MsyncE(addr uintptr, length Size) error

func Munlock

func Munlock(addr uintptr, length Size) error

func MunlockE

func MunlockE(addr uintptr, length Size) error

func Munmap

func Munmap(addr uintptr, length Size) error

func MunmapE

func MunmapE(addr uintptr, length Size) error

Types

type Dword

type Dword = uint32

func HighLow

func HighLow(value Qword) (high, low Dword)

Get high and low bits.

type Offset

type Offset = int64

func Off

func Off(value []byte) Offset

type Qword

type Qword = uint64

type Size

type Size = uintptr

func Len

func Len(value []byte) Size

Get length of byte array.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL