/prebuilts/go/darwin-x86/src/syscall/ |
route_freebsd_64bit.go | 9 import "unsafe" 12 p := (*RouteMessage)(unsafe.Pointer(any)) 13 return &RouteMessage{Header: p.Header, Data: b[rsaAlignOf(int(unsafe.Offsetof(p.Header.Rmx))+SizeofRtMetrics):any.Msglen]} 17 p := (*InterfaceMessage)(unsafe.Pointer(any)) 18 return &InterfaceMessage{Header: p.Header, Data: b[int(unsafe.Offsetof(p.Header.Data))+int(p.Header.Data.Datalen) : any.Msglen]}
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug279.go | 11 import "unsafe" 14 n := unsafe.Sizeof(0) 19 n = unsafe.Alignof(0) 25 n = unsafe.Sizeof("") 30 n = unsafe.Alignof("")
|
issue9076.go | 11 import "unsafe" 14 var _ int32 = 100/unsafe.Sizeof(int(0)) + 1 // GC_ERROR "100 \/ unsafe.Sizeof\(int\(0\)\) \+ 1" 15 var _ int32 = Hundred/unsafe.Sizeof(int(0)) + 1 // GC_ERROR "Hundred \/ unsafe.Sizeof\(int\(0\)\) \+ 1"
|
issue15329.go | 9 // check(unsafe.Pointer(testMeth(1).Pointer()), unsafe.Pointer(testMeth(2).Pointer())) 15 // check(unsafe.Pointer(autotmp_1), unsafe.Pointer(autotmp_2)) 20 // testMeth(2).Pointer(), even though package unsafe's documentation 25 // var autotmp_1 unsafe.Pointer = unsafe.Pointer(testMeth(1).Pointer()) 26 // var autotmp_2 unsafe.Pointer = unsafe.Pointer(testMeth(2).Pointer()) 37 "unsafe" [all...] |
bug328.go | 9 import "unsafe" 12 var p unsafe.Pointer
|
issue12944.go | 9 import "unsafe" 12 _ = unsafe.Sizeof([0]byte{}[0]) // ERROR "out of bounds"
|
issue17270.go | 9 import "unsafe" 11 const _ = (unsafe.Sizeof)(0)
|
/prebuilts/go/linux-x86/src/syscall/ |
route_freebsd_64bit.go | 9 import "unsafe" 12 p := (*RouteMessage)(unsafe.Pointer(any)) 13 return &RouteMessage{Header: p.Header, Data: b[rsaAlignOf(int(unsafe.Offsetof(p.Header.Rmx))+SizeofRtMetrics):any.Msglen]} 17 p := (*InterfaceMessage)(unsafe.Pointer(any)) 18 return &InterfaceMessage{Header: p.Header, Data: b[int(unsafe.Offsetof(p.Header.Data))+int(p.Header.Data.Datalen) : any.Msglen]}
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug279.go | 11 import "unsafe" 14 n := unsafe.Sizeof(0) 19 n = unsafe.Alignof(0) 25 n = unsafe.Sizeof("") 30 n = unsafe.Alignof("")
|
issue9076.go | 11 import "unsafe" 14 var _ int32 = 100/unsafe.Sizeof(int(0)) + 1 // GC_ERROR "100 \/ unsafe.Sizeof\(int\(0\)\) \+ 1" 15 var _ int32 = Hundred/unsafe.Sizeof(int(0)) + 1 // GC_ERROR "Hundred \/ unsafe.Sizeof\(int\(0\)\) \+ 1"
|
issue15329.go | 9 // check(unsafe.Pointer(testMeth(1).Pointer()), unsafe.Pointer(testMeth(2).Pointer())) 15 // check(unsafe.Pointer(autotmp_1), unsafe.Pointer(autotmp_2)) 20 // testMeth(2).Pointer(), even though package unsafe's documentation 25 // var autotmp_1 unsafe.Pointer = unsafe.Pointer(testMeth(1).Pointer()) 26 // var autotmp_2 unsafe.Pointer = unsafe.Pointer(testMeth(2).Pointer()) 37 "unsafe" [all...] |
/prebuilts/go/darwin-x86/src/runtime/ |
hashmap_fast.go | 9 "unsafe" 12 func mapaccess1_fast32(t *maptype, h *hmap, key uint32) unsafe.Pointer { 14 callerpc := getcallerpc(unsafe.Pointer(&t)) 15 racereadpc(unsafe.Pointer(h), callerpc, funcPC(mapaccess1_fast32)) 18 return unsafe.Pointer(&zeroVal[0]) 28 hash := t.key.alg.hash(noescape(unsafe.Pointer(&key)), uintptr(h.hash0)) 44 k := *((*uint32)(add(unsafe.Pointer(b), dataOffset+i*4))) 48 x := *((*uint8)(add(unsafe.Pointer(b), i))) // b.topbits[i] without the bounds check 52 return add(unsafe.Pointer(b), dataOffset+bucketCnt*4+i*uintptr(t.valuesize)) 56 return unsafe.Pointer(&zeroVal[0] [all...] |
env_posix.go | 9 import "unsafe" 24 var _cgo_setenv unsafe.Pointer // pointer to C function 25 var _cgo_unsetenv unsafe.Pointer // pointer to C function 34 arg := [2]unsafe.Pointer{cstring(k), cstring(v)} 35 asmcgocall(_cgo_setenv, unsafe.Pointer(&arg)) 45 arg := [1]unsafe.Pointer{cstring(k)} 46 asmcgocall(_cgo_unsetenv, unsafe.Pointer(&arg)) 49 func cstring(s string) unsafe.Pointer { 52 return unsafe.Pointer(&p[0])
|
alg.go | 9 "unsafe" 41 hash func(unsafe.Pointer, uintptr) uintptr 44 equal func(unsafe.Pointer, unsafe.Pointer) bool 47 func memhash0(p unsafe.Pointer, h uintptr) uintptr { 50 func memhash8(p unsafe.Pointer, h uintptr) uintptr { 53 func memhash16(p unsafe.Pointer, h uintptr) uintptr { 56 func memhash32(p unsafe.Pointer, h uintptr) uintptr { 59 func memhash64(p unsafe.Pointer, h uintptr) uintptr { 62 func memhash128(p unsafe.Pointer, h uintptr) uintptr [all...] |
write_err.go | 9 import "unsafe" 12 write(2, unsafe.Pointer(&b[0]), int32(len(b)))
|
/prebuilts/go/linux-x86/src/runtime/ |
hashmap_fast.go | 9 "unsafe" 12 func mapaccess1_fast32(t *maptype, h *hmap, key uint32) unsafe.Pointer { 14 callerpc := getcallerpc(unsafe.Pointer(&t)) 15 racereadpc(unsafe.Pointer(h), callerpc, funcPC(mapaccess1_fast32)) 18 return unsafe.Pointer(&zeroVal[0]) 28 hash := t.key.alg.hash(noescape(unsafe.Pointer(&key)), uintptr(h.hash0)) 44 k := *((*uint32)(add(unsafe.Pointer(b), dataOffset+i*4))) 48 x := *((*uint8)(add(unsafe.Pointer(b), i))) // b.topbits[i] without the bounds check 52 return add(unsafe.Pointer(b), dataOffset+bucketCnt*4+i*uintptr(t.valuesize)) 56 return unsafe.Pointer(&zeroVal[0] [all...] |
env_posix.go | 9 import "unsafe" 24 var _cgo_setenv unsafe.Pointer // pointer to C function 25 var _cgo_unsetenv unsafe.Pointer // pointer to C function 34 arg := [2]unsafe.Pointer{cstring(k), cstring(v)} 35 asmcgocall(_cgo_setenv, unsafe.Pointer(&arg)) 45 arg := [1]unsafe.Pointer{cstring(k)} 46 asmcgocall(_cgo_unsetenv, unsafe.Pointer(&arg)) 49 func cstring(s string) unsafe.Pointer { 52 return unsafe.Pointer(&p[0])
|
alg.go | 9 "unsafe" 41 hash func(unsafe.Pointer, uintptr) uintptr 44 equal func(unsafe.Pointer, unsafe.Pointer) bool 47 func memhash0(p unsafe.Pointer, h uintptr) uintptr { 50 func memhash8(p unsafe.Pointer, h uintptr) uintptr { 53 func memhash16(p unsafe.Pointer, h uintptr) uintptr { 56 func memhash32(p unsafe.Pointer, h uintptr) uintptr { 59 func memhash64(p unsafe.Pointer, h uintptr) uintptr { 62 func memhash128(p unsafe.Pointer, h uintptr) uintptr [all...] |
/art/test/528-long-hint/src/ |
Main.java | 17 import sun.misc.Unsafe; 27 Unsafe unsafe = getUnsafe(); local 29 long offset = unsafe.objectFieldOffset(Main.class.getDeclaredField("instanceField")); 36 unsafe.compareAndSwapLong(f, offset, a, b); 40 private static Unsafe getUnsafe() throws Exception { 41 Field f = Unsafe.class.getDeclaredField("theUnsafe"); 43 return (Unsafe) f.get(null);
|
/prebuilts/go/darwin-x86/src/os/ |
executable_freebsd.go | 9 "unsafe" 17 _, _, err := syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, 0, uintptr(unsafe.Pointer(&n)), 0, 0) 25 _, _, err = syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, uintptr(unsafe.Pointer(&buf[0])), uintptr(unsafe.Pointer(&n)), 0, 0)
|
/prebuilts/go/linux-x86/src/os/ |
executable_freebsd.go | 9 "unsafe" 17 _, _, err := syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, 0, uintptr(unsafe.Pointer(&n)), 0, 0) 25 _, _, err = syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(unsafe.Pointer(&mib[0])), 4, uintptr(unsafe.Pointer(&buf[0])), uintptr(unsafe.Pointer(&n)), 0, 0)
|
/prebuilts/go/darwin-x86/src/internal/syscall/windows/registry/ |
zsyscall_windows.go | 8 "unsafe" 11 var _ unsafe.Pointer 52 r0, _, _ := syscall.Syscall9(procRegCreateKeyExW.Addr(), 9, uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(reserved), uintptr(unsafe.Pointer(class)), uintptr(options), uintptr(desired), uintptr(unsafe.Pointer(sa)), uintptr(unsafe.Pointer(result)), uintptr(unsafe.Pointer(disposition))) 60 r0, _, _ := syscall.Syscall(procRegDeleteKeyW.Addr(), 2, uintptr(key), uintptr(unsafe.Pointer(subkey)), 0) 68 r0, _, _ := syscall.Syscall6(procRegSetValueExW.Addr(), 6, uintptr(key), uintptr(unsafe.Pointer(valueName)), uintptr(reserved), uintptr(vtype), uintptr(unsafe.Pointer(buf)), uintptr(bufsize) [all...] |
/prebuilts/go/linux-x86/src/internal/syscall/windows/registry/ |
zsyscall_windows.go | 8 "unsafe" 11 var _ unsafe.Pointer 52 r0, _, _ := syscall.Syscall9(procRegCreateKeyExW.Addr(), 9, uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(reserved), uintptr(unsafe.Pointer(class)), uintptr(options), uintptr(desired), uintptr(unsafe.Pointer(sa)), uintptr(unsafe.Pointer(result)), uintptr(unsafe.Pointer(disposition))) 60 r0, _, _ := syscall.Syscall(procRegDeleteKeyW.Addr(), 2, uintptr(key), uintptr(unsafe.Pointer(subkey)), 0) 68 r0, _, _ := syscall.Syscall6(procRegSetValueExW.Addr(), 6, uintptr(key), uintptr(unsafe.Pointer(valueName)), uintptr(reserved), uintptr(vtype), uintptr(unsafe.Pointer(buf)), uintptr(bufsize) [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
AllocatedNativeObject.java | 61 unsafe.freeMemory(allocationAddress);
|
/prebuilts/go/darwin-x86/test/fixedbugs/bug479.dir/ |
a.go | 7 import "unsafe" 11 const C = unsafe.Sizeof(S2{})
|