3 // Copyright 2023 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
12 func f(x []byte) bool {
13 return unsafe.SliceData(x) != nil
17 func g(x string) bool {
18 return unsafe.StringData(x) != nil