DS
Size: a a a
DS
IK
IK
git reset --hard HEAD^
IK
IK
IK
DS
IK
IK
DS
IK
IK
BT
МП
func utf16PtrToString(pStr uintptr) string {
strLen := getUTF16StrLen(pStr)
pp := unsafe.Pointer(&reflect.SliceHeader{Data: pStr, Len: strLen, Cap: strLen})
p := *(*[]uint16)(pp)
return syscall.UTF16ToString(p)
}
func getUTF16StrLen(pStr uintptr) int {
n := 0
p := (*uint16)(unsafe.Pointer( pStr ))
for pStr != 0 && *p != 0 {
n++
pStr += 2
p = (*uint16)(unsafe.Pointer( pStr ))
}
return n
}
D
R:\Dev\godev\src\projects\androt>R:\Dev\godev\bin\gomobile.exe build -target=android golang.org/x/mobile/example/basic
R:\Dev\godev\bin\gomobile.exe: go build -buildmode=c-shared -o A:\temp\gomobile-work-628173547\lib\armeabi-v7a\libbasic.so golang.org/x/mobile/example/basic failed: exit status 2
# golang.org/x/mobile/gl
clang: error: no such file or directory: 'work.c'
clang: error: no input files
D
IK
МП
R:\Dev\godev\src\projects\androt>R:\Dev\godev\bin\gomobile.exe build -target=android golang.org/x/mobile/example/basic
R:\Dev\godev\bin\gomobile.exe: go build -buildmode=c-shared -o A:\temp\gomobile-work-628173547\lib\armeabi-v7a\libbasic.so golang.org/x/mobile/example/basic failed: exit status 2
# golang.org/x/mobile/gl
clang: error: no such file or directory: 'work.c'
clang: error: no input files
D
D