MCPcopy Create free account
hub / github.com/kataras/iris / stringToBytes

Function stringToBytes

context/context.go:4250–4252  ·  view source on GitHub ↗

See https://golang.org/src/strings/builder.go#L45 func bytesToString(b []byte) string { return unsafe.String(unsafe.SliceData(b), len(b)) }

(s string)

Source from the content-addressed store, hash-verified

4248// }
4249
4250func stringToBytes(s string) []byte {
4251 return unsafe.Slice(unsafe.StringData(s), len(s))
4252}
4253
4254type (
4255 // ErrorHandler describes a context error handler which applies on

Callers 1

context.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…