(s string)
| 1050 | } |
| 1051 | |
| 1052 | func stringToBytes(s string) []byte { |
| 1053 | return *(*[]byte)(unsafe.Pointer(&sliceHeader{ |
| 1054 | Data: *(*unsafe.Pointer)(unsafe.Pointer(&s)), |
| 1055 | Len: len(s), |
| 1056 | Cap: len(s), |
| 1057 | })) |
| 1058 | } |
| 1059 | |
| 1060 | type sliceHeader struct { |
| 1061 | Data unsafe.Pointer |
no outgoing calls
no test coverage detected
searching dependent graphs…