示例#1
0
文件: wke.go 项目: CodyGuo/xcgui
/*
http://baike.baidu.com/link?url=gFiwJdUF0mAgY-pLBvflyvwAdr5mXESqBBj7S_pTg2UDaB_w6Ees6O8fQJ3pUQwktt4ADu80z5eW9G4t5eHV4_
*/
func XWeb_SetStringA(stringA uintptr, str string, lenA int) {
	strA := xc.StringToBytePtr(str)
	xWeb_SetStringA.Call(
		stringA,
		uintptr(unsafe.Pointer(strA)),
		uintptr(lenA))
}
示例#2
0
文件: wke.go 项目: CodyGuo/xcgui
func XWeb_JsStringA(es uintptr, str string) int64 {
	strA := xc.StringToBytePtr(str)
	ret, _, _ := xWeb_JsStringA.Call(
		es,
		uintptr(unsafe.Pointer(strA)))

	return int64(ret)
}