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

Method assignAndCheck

gen/decode.go:70–76  ·  view source on GitHub ↗
(name string, typ string)

Source from the content-addressed store, hash-verified

68}
69
70func (d *decodeGen) assignAndCheck(name string, typ string) {
71 if !d.p.ok() {
72 return
73 }
74 d.p.printf("\n%s, err = dc.Read%s()", name, typ)
75 d.p.wrapErrCheck(d.ctx.ArgsStr())
76}
77
78func (d *decodeGen) assignArray(name string, typ string, fieldLimit uint32) {
79 if !d.p.ok() {

Callers 2

structAsMapMethod · 0.95
gArrayMethod · 0.95

Calls 4

okMethod · 0.80
printfMethod · 0.80
wrapErrCheckMethod · 0.80
ArgsStrMethod · 0.80

Tested by

no test coverage detected