MCPcopy
hub / github.com/valyala/fasthttp / allocArg

Function allocArg

args.go:478–488  ·  view source on GitHub ↗
(h []argsKV)

Source from the content-addressed store, hash-verified

476}
477
478func allocArg(h []argsKV) ([]argsKV, *argsKV) {
479 n := len(h)
480 if cap(h) > n {
481 h = h[:n+1]
482 } else {
483 h = append(h, argsKV{
484 value: []byte{},
485 })
486 }
487 return h, &h[n]
488}
489
490func releaseArg(h []argsKV) []argsKV {
491 return h[:len(h)-1]

Callers 5

setSpecialHeaderMethod · 0.85
parseHeadersMethod · 0.85
ParseBytesMethod · 0.85
appendArgFunction · 0.85
parseRequestCookiesFunction · 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…