func unsafe.Slice
25 uses
unsafe (current package)
unsafe.go#L243: func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType
crypto/internal/boring/bbig
big.go#L21: return unsafe.Slice((*uint)(&x[0]), len(x))
big.go#L31: x := unsafe.Slice((*big.Word)(&b[0]), len(b))
internal/abi
type.go#L209: return unsafe.Slice(t.GCData, int(end))[begin:]
net
cgo_unix.go#L323: memSlice := unsafe.Slice((*byte)(mem), resStateSize)
cgo_unix.go#L366: if _, err := p.Start(unsafe.Slice((*byte)(unsafe.Pointer(buf)), size)); err != nil {
os
file.go#L300: b := unsafe.Slice(unsafe.StringData(s), len(s))
reflect
type.go#L1928: args := unsafe.Slice((**rtype)(unsafe.Pointer(o.Field(1).Addr().Pointer())), n)[0:0:n]
value.go#L323: return unsafe.Slice(p, n)
value.go#L891: fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
value.go#L1602: return isZero(unsafe.Slice(((*byte)(v.ptr)), typ.Size()))
value.go#L1628: return isZero(unsafe.Slice(((*byte)(v.ptr)), typ.Size()))
value.go#L1671: w := unsafe.Slice((*uint64)(unsafe.Pointer(&b[0])), len(b)/8)
runtime
iface.go#L508: oldEntries := unsafe.Slice(&oldC.Entries[0], oldC.Mask+1)
iface.go#L528: newEntries := unsafe.Slice(&newC.Entries[0], newN)
iface.go#L562: cases := unsafe.Slice(&s.Cases[0], s.NCases)
iface.go#L614: oldEntries := unsafe.Slice(&oldC.Entries[0], oldC.Mask+1)
iface.go#L634: newEntries := unsafe.Slice(&newC.Entries[0], newN)
pinner.go#L308: for _, x := range unsafe.Slice((*uint64)(unsafe.Pointer(&p.x)), bytes/8) {
slice.go#L400: return unsafe.Slice((*byte)(mallocgc(uintptr(cap), nil, false)), cap)[:len]
stkframe.go#L250: objs = unsafe.Slice(r0, int(n))
string.go#L278: return unsafe.String((*byte)(p), size), unsafe.Slice((*byte)(p), size)
tracestack.go#L160: stack := unsafe.Slice((*uintptr)(unsafe.Pointer(&node.data[0])), uintptr(len(node.data))/unsafe.Sizeof(uintptr(0)))
syscall
syscall_linux.go#L662: sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
syscall_unix.go#L62: b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |