func unsafe.Slice
14 uses
unsafe (current package)
unsafe.go#L241: 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
unsafestring_go120.go#L17: return unsafe.Slice(b, l)
net
cgo_unix.go#L361: if _, err := p.Start(unsafe.Slice((*byte)(unsafe.Pointer(buf)), size)); err != nil {
os
file.go#L254: b := unsafe.Slice(unsafe.StringData(s), len(s))
reflect
type.go#L1767: args := unsafe.Slice((**rtype)(unsafe.Pointer(o.Field(1).Addr().Pointer())), n)[0:0:n]
value.go#L335: return unsafe.Slice(p, n)
runtime
pinner.go#L305: for _, x := range unsafe.Slice((*uint64)(unsafe.Pointer(&p.x)), bytes/8) {
slice.go#L354: return unsafe.Slice((*byte)(mallocgc(uintptr(len), nil, false)), len)
stkframe.go#L250: objs = unsafe.Slice(r0, int(n))
string.go#L268: return unsafe.String((*byte)(p), size), unsafe.Slice((*byte)(p), size)
syscall
syscall_linux.go#L649: sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
syscall_unix.go#L60: b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length)
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |