native

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClassMeta

func NewClassMeta(jclass jni.Jclass, cls string) classMeta

Types

type Class

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

func LoadClass

func LoadClass(name string) Class

func LoadClassBytes

func LoadClassBytes(name string, bytes []byte) Class

func (Class) New

func (cls Class) New(args ...string) Object

func (Class) StaticInvoke

func (cls Class) StaticInvoke(name string, sig string, args ...interface{}) Value

type MethodSig

type MethodSig struct {
	RetTyp   Sig
	ParamTyp []Sig
	Sig      string
}

func EncodeToSig

func EncodeToSig(oSig string) *MethodSig

example void()

func (MethodSig) String

func (a MethodSig) String() string

type Object

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

func (Object) Invoke

func (obj Object) Invoke(name string, sig string, args ...interface{}) Value

func (Object) ToUintPtr

func (obj Object) ToUintPtr() uintptr

type Sig

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

func NewSig

func NewSig(typeName string) *Sig

func SigOf

func SigOf(siged string) *Sig

SigOf Lcom/android/thread;

func (*Sig) GetSigType

func (g *Sig) GetSigType() string

func (*Sig) GetType

func (g *Sig) GetType() string

func (*Sig) String

func (a *Sig) String() string

type Value

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

func NewValue

func NewValue(vSig Sig, v reflect.Value) Value

func (Value) AsBytes

func (v Value) AsBytes() []byte

func (Value) AsInt

func (v Value) AsInt() int

func (Value) AsInt64

func (v Value) AsInt64() int64

func (Value) AsObject

func (v Value) AsObject() Object

func (Value) AsString

func (v Value) AsString() string

Jump to

Keyboard shortcuts

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