Example #1
0
File: wke.go Project: 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))
}
Example #2
0
File: wke.go Project: 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)
}