utils

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SigDecodeMap = map[string]string{
	"I": "int",
	"Z": "boolean",
	"B": "byte",
	"C": "char",
	"S": "short",
	"J": "long",
	"F": "float",
	"D": "double",
	"V": "void",

	"[I": "int[]",
	"[Z": "boolean[]",
	"[B": "byte[]",
	"[C": "char[]",
	"[S": "short[]",
	"[J": "long[]",
	"[F": "float[]",
	"[D": "double[]",
}
View Source
var SigEncodeMap = map[string]string{
	"int":     "I",
	"boolean": "Z",
	"byte":    "B",
	"char":    "C",
	"short":   "S",
	"long":    "J",
	"float":   "F",
	"double":  "D",
	"void":    "V",

	"int[]":     "[I",
	"boolean[]": "[Z",
	"byte[]":    "[B",
	"char[]":    "[C",
	"short[]":   "[S",
	"long[]":    "[J",
	"float[]":   "[F",
	"double[]":  "[D",
}

jni sig

Functions

func CallJni

func CallJni(format string, args ...interface{}) reflect.Value

func GetFormatCallFunc

func GetFormatCallFunc(format string, siged string) string

func GetJNIMethods

func GetJNIMethods() map[string]reflect.Method

func GetMethodWithName

func GetMethodWithName(name string) *reflect.Method

func JabValueToUint

func JabValueToUint(r reflect.Value) uintptr

JabValueToUint return convert

func MatchingNextSymbol

func MatchingNextSymbol(s byte, str string) int

func SigToJavaNative

func SigToJavaNative(name string, sig string)

stop ()V args ([I)V nice ([Ljava/lang/String;)V bb ([B)V llll ([J)V fff ([F)V ddd ([D)V

func Wp

func Wp(s string, limit int) string

Types

type SybHeap

type SybHeap []uint8

#####################################################################################

func (*SybHeap) Len

func (h *SybHeap) Len() int

func (*SybHeap) Less

func (h *SybHeap) Less(i, j int) bool

func (*SybHeap) Pop

func (h *SybHeap) Pop() (v interface{})

func (*SybHeap) Push

func (h *SybHeap) Push(v interface{})

func (*SybHeap) Swap

func (h *SybHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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