func unsafe.Slice
37 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))
crypto/internal/fips140/check
check.go#L88: w.Write(unsafe.Slice((*byte)(sect.Start), n))
go.opentelemetry.io/otel/trace/internal/telemetry
value.go#L200: return unsafe.Slice((*byte)(sp), v.num)
value.go#L209: return unsafe.Slice((*byte)(v.any.(bytesptr)), v.num)
value.go#L215: return unsafe.Slice((*Value)(sp), v.num)
value.go#L224: return unsafe.Slice((*Value)(v.any.(sliceptr)), v.num)
value.go#L230: return unsafe.Slice((*Attr)(sp), v.num)
value.go#L239: return unsafe.Slice((*Attr)(v.any.(mapptr)), v.num)
internal/abi
type.go#L214: return unsafe.Slice(t.GCData, int(end))[begin:]
internal/runtime/gc/scan
filter.go#L13: buf := unsafe.Slice(bufp, int(n))
scan_reference.go#L22: buf := unsafe.Slice(bufp, gc.PageWords)
internal/runtime/maps
map.go#L806: oldDir := unsafe.Slice((**table)(m.dirPtr), m.dirLen)
net
cgo_unix.go#L326: memSlice := unsafe.Slice((*byte)(mem), resStateSize)
cgo_unix.go#L372: if _, err := p.Start(unsafe.Slice((*byte)(unsafe.Pointer(buf)), size)); err != nil {
os
file.go#L320: b := unsafe.Slice(unsafe.StringData(s), len(s))
reflect
type.go#L1207: f.Index = unsafe.Slice((*int)(p), 1)
type.go#L1950: 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#L893: fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
value.go#L1693: return isZero(unsafe.Slice(((*byte)(v.ptr)), typ.Size()))
value.go#L1722: return isZero(unsafe.Slice(((*byte)(v.ptr)), typ.Size()))
value.go#L1765: w := unsafe.Slice((*uint64)(unsafe.Pointer(&b[0])), len(b)/8)
runtime
hexdump.go#L34: h.write(unsafe.Slice((*byte)(unsafe.Pointer(p)), len))
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#L328: for _, x := range unsafe.Slice((*uint64)(unsafe.Pointer(&p.x)), bytes/8) {
slice.go#L437: return unsafe.Slice((*byte)(mallocgc(cap, nil, false)), cap)[:len]
stkframe.go#L250: objs = unsafe.Slice(r0, int(n))
string.go#L326: return unsafe.String((*byte)(p), size), unsafe.Slice((*byte)(p), size)
tracestack.go#L172: stack := unsafe.Slice((*uintptr)(unsafe.Pointer(&node.data[0])), uintptr(len(node.data))/unsafe.Sizeof(uintptr(0)))
syscall
syscall_linux.go#L664: 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.8.4. (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. |