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

Method needsField

gen/decode.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25func (d *decodeGen) Method() Method { return Decode }
26
27func (d *decodeGen) needsField() {
28 if d.hasfield {
29 return
30 }
31 d.p.print("\nvar field []byte; _ = field")
32 d.hasfield = true
33}
34
35func (d *decodeGen) Execute(p Elem, ctx Context) error {
36 d.ctx = &ctx

Callers 2

structAsMapMethod · 0.95
gMapMethod · 0.95

Calls 1

printMethod · 0.80

Tested by

no test coverage detected