MCPcopy Index your code
hub / github.com/php/frankenphp / pinCString

Method pinCString

phpthread.go:205–207  ·  view source on GitHub ↗

C strings must be null-terminated

(s string)

Source from the content-addressed store, hash-verified

203
204// C strings must be null-terminated
205func (thread *phpThread) pinCString(s string) *C.char {
206 return thread.pinString(s + "\x00")
207}
208
209func (*phpThread) updateContext(isWorker bool) {
210 C.frankenphp_update_local_thread_context(C.bool(isWorker))

Callers 2

go_update_request_infoFunction · 0.80

Calls 1

pinStringMethod · 0.95

Tested by

no test coverage detected