Documentation ¶
Index ¶
- Constants
- func CloseStringMap() error
- func IsEnableStringMap() bool
- func Mmap(size int) ([]byte, error)
- func Munmap(b []byte) (err error)
- func OpenStringMap() bool
- func Parse(f *os.File, pkgpath *string) ([]string, error)
- func RegSymbol(symPtr map[string]uintptr) error
- func RegSymbolWithSo(symPtr map[string]uintptr, path string) error
- func RegTypes(symPtr map[string]uintptr, interfaces ...interface{})
- func SetStringContainerSize(size int) bool
- type CodeModule
- type Linker
Constants ¶
View Source
const ( PtrSize = 4 << (^uintptr(0) >> 63) Uint32Size = int(unsafe.Sizeof(uint32(0))) IntSize = int(unsafe.Sizeof(int(0))) UInt64Size = int(unsafe.Sizeof(uint64(0))) FindFuncBucketSize = int(unsafe.Sizeof(findfuncbucket{})) InvalidHandleValue = ^uintptr(0) InvalidOffset = int(-1) PageSize = 1 << 12 //4096 )
size
View Source
const ( EmptyString = "" DefaultPkgPath = "main" EmptyPkgPath = `""` ZeroByte = byte(0x00) )
View Source
const ( FileSymPrefix = "gofile.." MainPkgPrefix = "main." TypeImportPathPrefix = "type..importpath." TypeDoubleDotPrefix = "type.." TypePrefix = "type." ItabPrefix = "go.itab." StkobjSuffix = ".stkobj" OsStdout = "os.Stdout" TypeStringPerfix = "go.string." DefaultStringContainerSize = 1024 * 1024 * 16 )
string match prefix/suffix
View Source
const (
KindGCProg = 1 << 6
)
View Source
const (
RuntimeDeferReturn = "runtime.deferreturn"
)
runtime symbol
View Source
const (
TLSNAME = "(TLS)"
)
Variables ¶
This section is empty.
Functions ¶
func CloseStringMap ¶ added in v0.0.14
func CloseStringMap() error
func IsEnableStringMap ¶ added in v0.0.14
func IsEnableStringMap() bool
func OpenStringMap ¶ added in v0.0.14
func OpenStringMap() bool
func RegSymbolWithSo ¶ added in v0.0.13
func SetStringContainerSize ¶ added in v0.0.14
Types ¶
type CodeModule ¶
func Load ¶
func Load(linker *Linker, symPtr map[string]uintptr) (codeModule *CodeModule, err error)
func (*CodeModule) Unload ¶
func (cm *CodeModule) Unload()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.