MCPcopy
hub / github.com/tinylib/msgp / gSlice

Method gSlice

gen/encode.go:333–341  ·  view source on GitHub ↗
(s *Slice)

Source from the content-addressed store, hash-verified

331}
332
333func (e *encodeGen) gSlice(s *Slice) {
334 if !e.p.ok() {
335 return
336 }
337 e.fuseHook()
338 e.writeAndCheckWithArrayLimit(arrayHeader, lenAsUint32, s.Varname())
339 setTypeParams(s.Els, s.typeParams)
340 e.p.rangeBlock(e.ctx, s.Index, s.Varname(), e, s.Els)
341}
342
343func (e *encodeGen) gArray(a *Array) {
344 if !e.p.ok() {

Callers

nothing calls this directly

Calls 6

fuseHookMethod · 0.95
setTypeParamsFunction · 0.85
okMethod · 0.80
rangeBlockMethod · 0.80
VarnameMethod · 0.65

Tested by

no test coverage detected