func unsafe.StringData

30 uses

	unsafe (current package)
		unsafe.go#L271: func StringData(str string) *byte

	golang.org/x/tools/internal/event/label
		label.go#L104: 		untyped: stringptr(unsafe.StringData(v)),

	google.golang.org/grpc/binarylog/grpc_binarylog_v1
		binarylog.pb.go#L931: 		file_grpc_binlog_v1_binarylog_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_binlog_v1_binarylog_proto_rawDesc), len(file_grpc_binlog_v1_binarylog_proto_rawDesc)))
		binarylog.pb.go#L990: 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_binlog_v1_binarylog_proto_rawDesc), len(file_grpc_binlog_v1_binarylog_proto_rawDesc)),

	google.golang.org/protobuf/internal/strs
		strings_unsafe.go#L27: 	return unsafe.Slice(unsafe.StringData(s), len(s))

	google.golang.org/protobuf/reflect/protoreflect
		value_unsafe.go#L65: 	return Value{typ: stringType, ptr: unsafe.Pointer(unsafe.StringData(v)), num: uint64(len(v))}

	google.golang.org/protobuf/types/known/anypb
		any.pb.go#L430: 		file_google_protobuf_any_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_protobuf_any_proto_rawDesc), len(file_google_protobuf_any_proto_rawDesc)))
		any.pb.go#L456: 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_any_proto_rawDesc), len(file_google_protobuf_any_proto_rawDesc)),

	google.golang.org/protobuf/types/known/durationpb
		duration.pb.go#L307: 		file_google_protobuf_duration_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_protobuf_duration_proto_rawDesc), len(file_google_protobuf_duration_proto_rawDesc)))
		duration.pb.go#L333: 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_duration_proto_rawDesc), len(file_google_protobuf_duration_proto_rawDesc)),

	google.golang.org/protobuf/types/known/timestamppb
		timestamp.pb.go#L317: 		file_google_protobuf_timestamp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_protobuf_timestamp_proto_rawDesc), len(file_google_protobuf_timestamp_proto_rawDesc)))
		timestamp.pb.go#L343: 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_timestamp_proto_rawDesc), len(file_google_protobuf_timestamp_proto_rawDesc)),

	hash/maphash
		maphash.go#L342: 	buf := unsafe.Slice(unsafe.StringData(s), len(s))

	internal/runtime/maps
		memhash_aes.go#L37: 	return MemHash(unsafe.Pointer(unsafe.StringData(s)), h, uintptr(len(s)))
		runtime_faststr.go#L70: 		hash = memHashAES(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))
		runtime_faststr.go#L72: 		hash = memHashFallback(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))
		runtime_faststr.go#L99: 	x, y := unsafe.Pointer(unsafe.StringData(a)), unsafe.Pointer(unsafe.StringData(b))
		runtime_faststr.go#L147: 		hash = memHashAES(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))
		runtime_faststr.go#L149: 		hash = memHashFallback(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))
		runtime_faststr.go#L277: 		hash = memHashAES(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))
		runtime_faststr.go#L279: 		hash = memHashFallback(unsafe.Pointer(unsafe.StringData(key)), m.seed, uintptr(len(key)))

	log/slog
		value.go#L110: 	return Value{num: uint64(len(value)), any: stringptr(unsafe.StringData(value))}

	os
		file.go#L320: 	b := unsafe.Slice(unsafe.StringData(s), len(s))

	runtime
		debuglog.go#L346: 	strData := unsafe.StringData(x)
		heapdump.go#L161: 	dumpmemrange(unsafe.Pointer(unsafe.StringData(s)), uintptr(len(s)))
		heapdump.go#L205: 		dwrite(unsafe.Pointer(unsafe.StringData(pkgpath)), uintptr(len(pkgpath)))
		heapdump.go#L207: 		dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name)))
		runtime.go#L226: 	writeErrData(unsafe.StringData(s), int32(len(s)))
		string.go#L180: 	ptr := uintptr(unsafe.Pointer(unsafe.StringData(s)))