MCPcopy Create free account
hub / github.com/buger/jsonparser / codecDecodeSelfFromMap

Method codecDecodeSelfFromMap

benchmark/benchmark_codecgen.go:980–1010  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

(l int, d *codec1978.Decoder)

Source from the content-addressed store, hash-verified

978
979// Benchmark harness support for STK-REQ-004.
980func (x *CBGithub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
981 var h codecSelfer6617
982 z, r := codec1978.GenHelperDecoder(d)
983 _, _, _ = h, z, r
984 var yyhl3 bool = l >= 0
985 for yyj3 := 0; ; yyj3++ {
986 if yyhl3 {
987 if yyj3 >= l {
988 break
989 }
990 } else {
991 if r.CheckBreak() {
992 break
993 }
994 }
995 r.ReadMapElemKey()
996 yys3 := z.StringView(r.DecodeStringAsBytes())
997 r.ReadMapElemValue()
998 switch yys3 {
999 case "Followers":
1000 if r.TryDecodeAsNil() {
1001 x.Followers = 0
1002 } else {
1003 x.Followers = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize6617))
1004 }
1005 default:
1006 z.DecStructFieldNotFound(-1, yys3)
1007 } // end switch yys3
1008 } // end for yyj3
1009 r.ReadMapEnd()
1010}
1011
1012// Benchmark harness support for STK-REQ-004.
1013func (x *CBGithub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {

Callers 1

CodecDecodeSelfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected