Documentation ¶
Index ¶
- Constants
- Variables
- func ArrayIndexOf[T any](array []T, a interface{}) int
- func BoolToByte(b bool) byte
- func ByteToBool(b byte) bool
- func ByteToInt8(b byte) int8
- func BytesToFloat32(bytes []byte) float32
- func BytesToFloat64(bytes []byte) float64
- func BytesToInt(b []byte) int
- func BytesToInt16(b []byte) int16
- func BytesToInt32(b []byte) int32
- func BytesToInt64(b []byte) int64
- func BytesToString(data []byte) string
- func CopyBytePtr(bytePtr uintptr, low, high int) []byte
- func DDateTimeToGoDateTime(dateTime float64) time.Time
- func Float32ToBytes(float float32) []byte
- func Float64ToBytes(float float64) []byte
- func FuncParamGoTypeStr(jsValue GO_VALUE_TYPE) string
- func FuncParamJsTypeStr(jsValue V8_JS_VALUE_TYPE) string
- func GOValueAssertType(v interface{}) GO_VALUE_TYPE
- func GOValueReflectType(v interface{}) GO_VALUE_TYPE
- func GOValueType(v string) GO_VALUE_TYPE
- func GetInstancePtr(ptr uintptr) unsafe.Pointer
- func GetParamOf(index int, ptr uintptr) uintptr
- func GetParamPtr(ptr uintptr, offset int) unsafe.Pointer
- func GoDateTimeToDDateTime(dateTime time.Time) float64
- func GoroutineID() (id uint64)
- func Int16ToBytes(i int16) []byte
- func Int32ToBytes(i int32) []byte
- func Int64ToBytes(i int64) []byte
- func Int8ToBytes(i int8) []byte
- func IntToBytes(i int) []byte
- func InterfaceToString(value interface{}) string
- func IsDarwin() bool
- func IsLinux() bool
- func IsPlan9() bool
- func IsWindows() bool
- func JSValueAssertType(v interface{}) V8_JS_VALUE_TYPE
- func JSValueType(v string) V8_JS_VALUE_TYPE
- func NumberPtrToFloat(value unsafe.Pointer, gov GO_VALUE_TYPE) interface{}
- func NumberUintPtrToInt(value uintptr, gov GO_VALUE_TYPE) interface{}
- func ParamType(t string) (V8_JS_VALUE_TYPE, GO_VALUE_TYPE)
- func StrToFloat32(value string) float32
- func StrToFloat64(value string) float64
- func StrToInt32(value string) int32
- func StrToInt64(value string) int64
- func StringToBytes(s string, isDStr ...bool) []byte
- func ValueToBool(v interface{}) (bool, error)
- func ValueToBytes(v interface{}) []byte
- func ValueToFloat32(v interface{}) (float32, error)
- func ValueToFloat64(v interface{}) (float64, error)
- func ValueToInt32(v interface{}) (int32, error)
- func ValueToInt64(v interface{}) (int64, error)
- func ValueToString(v interface{}) (string, error)
- type CliID
- type IPCIDGen
- type MsgID
- type PRCESS_TYPE
Constants ¶
View Source
const ( IntSize = strconv.IntSize //bit IntSize32 = 32 // )
View Source
const ( PT_MAIN PRCESS_TYPE = "" PT_GPU = "gpu-process" PT_UTILITY = "utility" PT_RENDERER = "renderer" PT_DEVTOOLS = "devtools" )
Variables ¶
View Source
var Args = argsParse()
Functions ¶
func ArrayIndexOf ¶
func BoolToByte ¶
func ByteToBool ¶
func ByteToInt8 ¶
func BytesToInt ¶
func BytesToInt16 ¶
func BytesToInt32 ¶
func BytesToInt64 ¶
func BytesToString ¶
func CopyBytePtr ¶
func DDateTimeToGoDateTime ¶
func FuncParamGoTypeStr ¶
func FuncParamGoTypeStr(jsValue GO_VALUE_TYPE) string
func FuncParamJsTypeStr ¶
func FuncParamJsTypeStr(jsValue V8_JS_VALUE_TYPE) string
func GOValueAssertType ¶
func GOValueAssertType(v interface{}) GO_VALUE_TYPE
func GOValueReflectType ¶
func GOValueReflectType(v interface{}) GO_VALUE_TYPE
func GOValueType ¶
func GOValueType(v string) GO_VALUE_TYPE
func GoDateTimeToDDateTime ¶
func Int16ToBytes ¶
func Int32ToBytes ¶
func Int64ToBytes ¶
func Int8ToBytes ¶
func IntToBytes ¶
func InterfaceToString ¶
func InterfaceToString(value interface{}) string
func JSValueAssertType ¶
func JSValueAssertType(v interface{}) V8_JS_VALUE_TYPE
func JSValueType ¶
func JSValueType(v string) V8_JS_VALUE_TYPE
func NumberPtrToFloat ¶
func NumberUintPtrToInt ¶
func NumberUintPtrToInt(value uintptr, gov GO_VALUE_TYPE) interface{}
func StrToFloat32 ¶
func StrToFloat64 ¶
func StrToInt32 ¶
func StrToInt64 ¶
func StringToBytes ¶
String转换Bytes数组,isDStr转换DString 默认GoString
func ValueToBool ¶
func ValueToBytes ¶
func ValueToBytes(v interface{}) []byte
func ValueToFloat32 ¶
func ValueToFloat64 ¶
func ValueToInt32 ¶
func ValueToInt64 ¶
func ValueToString ¶
Types ¶
type PRCESS_TYPE ¶
type PRCESS_TYPE string
Click to show internal directories.
Click to hide internal directories.