yoloBuf will return an unsafe pointer to a string, as the name yolo.yoloBuf implies use at your own risk.
(s string)
| 44 | |
| 45 | // yoloBuf will return an unsafe pointer to a string, as the name yolo.yoloBuf implies use at your own risk. |
| 46 | func yoloBuf(s string) []byte { |
| 47 | return unsafe.Slice(unsafe.StringData(s), len(s)) |
| 48 | } |
no outgoing calls