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

Method gStruct

gen/decode.go:59–68  ·  view source on GitHub ↗
(s *Struct)

Source from the content-addressed store, hash-verified

57}
58
59func (d *decodeGen) gStruct(s *Struct) {
60 if !d.p.ok() {
61 return
62 }
63 if s.AsTuple {
64 d.structAsTuple(s)
65 } else {
66 d.structAsMap(s)
67 }
68}
69
70func (d *decodeGen) assignAndCheck(name string, typ string) {
71 if !d.p.ok() {

Callers

nothing calls this directly

Calls 3

structAsTupleMethod · 0.95
structAsMapMethod · 0.95
okMethod · 0.80

Tested by

no test coverage detected