(s string)
| 256 | } |
| 257 | |
| 258 | func unsafeFastStringToReadOnlyBytes(s string) (bs []byte) { |
| 259 | sh := (*reflect.StringHeader)(unsafe.Pointer(&s)) |
| 260 | bh := (*reflect.SliceHeader)(unsafe.Pointer(&bs)) |
| 261 | bh.Data = sh.Data |
| 262 | bh.Cap = sh.Len |
| 263 | bh.Len = sh.Len |
| 264 | return |
| 265 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…