abi

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = &MethodProviderList{}
)

Functions

func AddMethodProvider

func AddMethodProvider(mp MethodProvider)

Types

type MethodInfo

type MethodInfo struct {
	Name     string
	Func     reflect.Value
	Type     reflect.Type
	InTyp    reflect.Type
	OutTyp   reflect.Type
	InSize   uintptr
	OutSize  uintptr
	Pointer  bool
	Indirect bool
	Variadic bool
	OnePtr   bool
}

type MethodProvider

type MethodProvider interface {
	Insert(info *MethodInfo) (ifn unsafe.Pointer, index int) // insert method info
	Remove(index []int)                                      // remove method info
	Available() int                                          // available count
	Used() int                                               // methods used
	Cap() int                                                // methods capacity
	Clear()                                                  // clear all methods
}

type MethodProviderList

type MethodProviderList struct {
	// contains filtered or unexported fields
}

func (*MethodProviderList) Add

func (*MethodProviderList) Available

func (p *MethodProviderList) Available() int

func (*MethodProviderList) Cap

func (p *MethodProviderList) Cap() int

func (*MethodProviderList) Clear

func (p *MethodProviderList) Clear()

func (*MethodProviderList) List

func (p *MethodProviderList) List() []MethodProvider

func (*MethodProviderList) Used

func (p *MethodProviderList) Used() int

Jump to

Keyboard shortcuts

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