func unsafe.StringData
8 uses
unsafe (current package)
unsafe.go#L269: func StringData(str string) *byte
os
file.go#L254: b := unsafe.Slice(unsafe.StringData(s), len(s))
runtime
debuglog.go#L296: strData := unsafe.StringData(x)
heapdump.go#L160: dumpmemrange(unsafe.Pointer(unsafe.StringData(s)), uintptr(len(s)))
heapdump.go#L204: dwrite(unsafe.Pointer(unsafe.StringData(pkgpath)), uintptr(len(pkgpath)))
heapdump.go#L206: dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name)))
runtime.go#L152: write(2, unsafe.Pointer(unsafe.StringData(s)), int32(len(s)))
string.go#L121: ptr := uintptr(unsafe.Pointer(unsafe.StringData(s)))
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. |