values_codecgen_generated_test.go 320 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856
  1. // +build codecgen generated
  2. // Code generated by codecgen - DO NOT EDIT.
  3. package codec
  4. import (
  5. "errors"
  6. "runtime"
  7. "strconv"
  8. "time"
  9. )
  10. const (
  11. // ----- content types ----
  12. codecSelferCcUTF819780 = 1
  13. codecSelferCcRAW19780 = 255
  14. // ----- value types used ----
  15. codecSelferValueTypeArray19780 = 10
  16. codecSelferValueTypeMap19780 = 9
  17. codecSelferValueTypeString19780 = 6
  18. codecSelferValueTypeInt19780 = 2
  19. codecSelferValueTypeUint19780 = 3
  20. codecSelferValueTypeFloat19780 = 4
  21. codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
  22. )
  23. var (
  24. errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
  25. )
  26. type codecSelfer19780 struct{}
  27. func codecSelfer19780False() bool { return false }
  28. func init() {
  29. if GenVersion != 13 {
  30. _, file, _, _ := runtime.Caller(0)
  31. ver := strconv.FormatInt(int64(GenVersion), 10)
  32. panic("codecgen version mismatch: current: 13, need " + ver + ". Re-generate file: " + file)
  33. }
  34. if false { // reference the types, but skip this branch at build/run time
  35. var _ byte
  36. var _ time.Time
  37. }
  38. }
  39. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  40. var h codecSelfer19780
  41. z, r := GenHelperEncoder(e)
  42. _, _, _ = h, z, r
  43. if x == nil {
  44. r.EncodeNil()
  45. } else {
  46. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  47. }
  48. }
  49. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  50. var h codecSelfer19780
  51. z, r := GenHelperDecoder(d)
  52. _, _, _ = h, z, r
  53. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  54. }
  55. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  56. var h codecSelfer19780
  57. z, r := GenHelperEncoder(e)
  58. _, _, _ = h, z, r
  59. if x == nil {
  60. r.EncodeNil()
  61. } else {
  62. h.encwrapSliceString((wrapSliceString)(x), e)
  63. }
  64. }
  65. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  66. var h codecSelfer19780
  67. z, r := GenHelperDecoder(d)
  68. _, _, _ = h, z, r
  69. h.decwrapSliceString((*wrapSliceString)(x), d)
  70. }
  71. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  72. var h codecSelfer19780
  73. z, r := GenHelperEncoder(e)
  74. _, _, _ = h, z, r
  75. r.EncodeUint(uint64(x))
  76. }
  77. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  78. var h codecSelfer19780
  79. z, r := GenHelperDecoder(d)
  80. _, _, _ = h, z, r
  81. *x = (wrapUint64)(r.DecodeUint64())
  82. }
  83. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  84. var h codecSelfer19780
  85. z, r := GenHelperEncoder(e)
  86. _, _, _ = h, z, r
  87. if z.EncBasicHandle().StringToRaw {
  88. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  89. } else {
  90. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  91. }
  92. }
  93. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  94. var h codecSelfer19780
  95. z, r := GenHelperDecoder(d)
  96. _, _, _ = h, z, r
  97. *x = (wrapString)(string(r.DecodeStringAsBytes()))
  98. }
  99. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  100. var h codecSelfer19780
  101. z, r := GenHelperEncoder(e)
  102. _, _, _ = h, z, r
  103. if x == nil {
  104. r.EncodeNil()
  105. } else {
  106. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  107. }
  108. }
  109. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  110. var h codecSelfer19780
  111. z, r := GenHelperDecoder(d)
  112. _, _, _ = h, z, r
  113. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  114. }
  115. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  116. var h codecSelfer19780
  117. z, r := GenHelperEncoder(e)
  118. _, _, _ = h, z, r
  119. if x == nil {
  120. r.EncodeNil()
  121. } else {
  122. h.encwrapStringSlice((wrapStringSlice)(x), e)
  123. }
  124. }
  125. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  126. var h codecSelfer19780
  127. z, r := GenHelperDecoder(d)
  128. _, _, _ = h, z, r
  129. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  130. }
  131. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  132. var h codecSelfer19780
  133. z, r := GenHelperEncoder(e)
  134. _, _, _ = h, z, r
  135. if x == nil {
  136. r.EncodeNil()
  137. } else {
  138. yysep2 := !z.EncBinary()
  139. yy2arr2 := z.EncBasicHandle().StructToArray
  140. _, _ = yysep2, yy2arr2
  141. const yyr2 bool = false // struct tag has 'toArray'
  142. if yyr2 || yy2arr2 {
  143. z.EncWriteArrayStart(2)
  144. z.EncWriteArrayElem()
  145. if z.EncBasicHandle().StringToRaw {
  146. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  147. } else {
  148. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  149. }
  150. z.EncWriteArrayElem()
  151. r.EncodeUint(uint64(x.U))
  152. z.EncWriteArrayEnd()
  153. } else {
  154. z.EncWriteMapStart(2)
  155. z.EncWriteMapElemKey()
  156. if z.IsJSONHandle() {
  157. z.WriteStr("\"S\"")
  158. } else {
  159. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  160. }
  161. z.EncWriteMapElemValue()
  162. if z.EncBasicHandle().StringToRaw {
  163. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  164. } else {
  165. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  166. }
  167. z.EncWriteMapElemKey()
  168. if z.IsJSONHandle() {
  169. z.WriteStr("\"U\"")
  170. } else {
  171. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  172. }
  173. z.EncWriteMapElemValue()
  174. r.EncodeUint(uint64(x.U))
  175. z.EncWriteMapEnd()
  176. }
  177. }
  178. }
  179. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  180. var h codecSelfer19780
  181. z, r := GenHelperDecoder(d)
  182. _, _, _ = h, z, r
  183. yyct2 := r.ContainerType()
  184. if yyct2 == codecSelferValueTypeMap19780 {
  185. yyl2 := z.DecReadMapStart()
  186. if yyl2 == 0 {
  187. z.DecReadMapEnd()
  188. } else {
  189. x.codecDecodeSelfFromMap(yyl2, d)
  190. }
  191. } else if yyct2 == codecSelferValueTypeArray19780 {
  192. yyl2 := z.DecReadArrayStart()
  193. if yyl2 == 0 {
  194. z.DecReadArrayEnd()
  195. } else {
  196. x.codecDecodeSelfFromArray(yyl2, d)
  197. }
  198. } else {
  199. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  200. }
  201. }
  202. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  203. var h codecSelfer19780
  204. z, r := GenHelperDecoder(d)
  205. _, _, _ = h, z, r
  206. var yyhl3 bool = l >= 0
  207. for yyj3 := 0; ; yyj3++ {
  208. if yyhl3 {
  209. if yyj3 >= l {
  210. break
  211. }
  212. } else {
  213. if r.CheckBreak() {
  214. break
  215. }
  216. }
  217. z.DecReadMapElemKey()
  218. yys3 := z.StringView(r.DecodeStringAsBytes())
  219. z.DecReadMapElemValue()
  220. switch yys3 {
  221. case "S":
  222. if r.TryDecodeAsNil() {
  223. x.S = ""
  224. } else {
  225. x.S = (string)(string(r.DecodeStringAsBytes()))
  226. }
  227. case "U":
  228. if r.TryDecodeAsNil() {
  229. x.U = 0
  230. } else {
  231. x.U = (uint64)(r.DecodeUint64())
  232. }
  233. default:
  234. z.DecStructFieldNotFound(-1, yys3)
  235. } // end switch yys3
  236. } // end for yyj3
  237. z.DecReadMapEnd()
  238. }
  239. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  240. var h codecSelfer19780
  241. z, r := GenHelperDecoder(d)
  242. _, _, _ = h, z, r
  243. var yyj6 int
  244. var yyb6 bool
  245. var yyhl6 bool = l >= 0
  246. yyj6++
  247. if yyhl6 {
  248. yyb6 = yyj6 > l
  249. } else {
  250. yyb6 = r.CheckBreak()
  251. }
  252. if yyb6 {
  253. z.DecReadArrayEnd()
  254. return
  255. }
  256. z.DecReadArrayElem()
  257. if r.TryDecodeAsNil() {
  258. x.S = ""
  259. } else {
  260. x.S = (string)(string(r.DecodeStringAsBytes()))
  261. }
  262. yyj6++
  263. if yyhl6 {
  264. yyb6 = yyj6 > l
  265. } else {
  266. yyb6 = r.CheckBreak()
  267. }
  268. if yyb6 {
  269. z.DecReadArrayEnd()
  270. return
  271. }
  272. z.DecReadArrayElem()
  273. if r.TryDecodeAsNil() {
  274. x.U = 0
  275. } else {
  276. x.U = (uint64)(r.DecodeUint64())
  277. }
  278. for {
  279. yyj6++
  280. if yyhl6 {
  281. yyb6 = yyj6 > l
  282. } else {
  283. yyb6 = r.CheckBreak()
  284. }
  285. if yyb6 {
  286. break
  287. }
  288. z.DecReadArrayElem()
  289. z.DecStructFieldNotFound(yyj6-1, "")
  290. }
  291. z.DecReadArrayEnd()
  292. }
  293. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  294. var h codecSelfer19780
  295. z, r := GenHelperEncoder(e)
  296. _, _, _ = h, z, r
  297. if x == nil {
  298. r.EncodeNil()
  299. } else {
  300. yysep2 := !z.EncBinary()
  301. yy2arr2 := z.EncBasicHandle().StructToArray
  302. _, _ = yysep2, yy2arr2
  303. const yyr2 bool = false // struct tag has 'toArray'
  304. if yyr2 || yy2arr2 {
  305. z.EncWriteArrayStart(15)
  306. z.EncWriteArrayElem()
  307. if z.EncBasicHandle().StringToRaw {
  308. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  309. } else {
  310. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  311. }
  312. z.EncWriteArrayElem()
  313. r.EncodeInt(int64(x.AI64))
  314. z.EncWriteArrayElem()
  315. r.EncodeInt(int64(x.AI16))
  316. z.EncWriteArrayElem()
  317. r.EncodeUint(uint64(x.AUi64))
  318. z.EncWriteArrayElem()
  319. z.F.EncSliceStringV(x.ASslice, e)
  320. z.EncWriteArrayElem()
  321. z.F.EncSliceInt64V(x.AI64slice, e)
  322. z.EncWriteArrayElem()
  323. z.F.EncSliceUint64V(x.AUi64slice, e)
  324. z.EncWriteArrayElem()
  325. z.F.EncSliceFloat64V(x.AF64slice, e)
  326. z.EncWriteArrayElem()
  327. z.F.EncSliceFloat32V(x.AF32slice, e)
  328. z.EncWriteArrayElem()
  329. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  330. z.EncWriteArrayElem()
  331. yy28 := &x.AI64arr0
  332. h.encArray0int64((*[0]int64)(yy28), e)
  333. z.EncWriteArrayElem()
  334. z.F.EncSliceInt64V(x.AI64slice0, e)
  335. z.EncWriteArrayElem()
  336. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  337. z.EncWriteArrayElem()
  338. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  339. z.EncWriteArrayElem()
  340. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  341. z.EncWriteArrayEnd()
  342. } else {
  343. z.EncWriteMapStart(15)
  344. z.EncWriteMapElemKey()
  345. if z.IsJSONHandle() {
  346. z.WriteStr("\"AS\"")
  347. } else {
  348. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  349. }
  350. z.EncWriteMapElemValue()
  351. if z.EncBasicHandle().StringToRaw {
  352. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  353. } else {
  354. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  355. }
  356. z.EncWriteMapElemKey()
  357. if z.IsJSONHandle() {
  358. z.WriteStr("\"AI64\"")
  359. } else {
  360. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  361. }
  362. z.EncWriteMapElemValue()
  363. r.EncodeInt(int64(x.AI64))
  364. z.EncWriteMapElemKey()
  365. if z.IsJSONHandle() {
  366. z.WriteStr("\"AI16\"")
  367. } else {
  368. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  369. }
  370. z.EncWriteMapElemValue()
  371. r.EncodeInt(int64(x.AI16))
  372. z.EncWriteMapElemKey()
  373. if z.IsJSONHandle() {
  374. z.WriteStr("\"AUi64\"")
  375. } else {
  376. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  377. }
  378. z.EncWriteMapElemValue()
  379. r.EncodeUint(uint64(x.AUi64))
  380. z.EncWriteMapElemKey()
  381. if z.IsJSONHandle() {
  382. z.WriteStr("\"ASslice\"")
  383. } else {
  384. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  385. }
  386. z.EncWriteMapElemValue()
  387. z.F.EncSliceStringV(x.ASslice, e)
  388. z.EncWriteMapElemKey()
  389. if z.IsJSONHandle() {
  390. z.WriteStr("\"AI64slice\"")
  391. } else {
  392. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  393. }
  394. z.EncWriteMapElemValue()
  395. z.F.EncSliceInt64V(x.AI64slice, e)
  396. z.EncWriteMapElemKey()
  397. if z.IsJSONHandle() {
  398. z.WriteStr("\"AUi64slice\"")
  399. } else {
  400. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  401. }
  402. z.EncWriteMapElemValue()
  403. z.F.EncSliceUint64V(x.AUi64slice, e)
  404. z.EncWriteMapElemKey()
  405. if z.IsJSONHandle() {
  406. z.WriteStr("\"AF64slice\"")
  407. } else {
  408. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  409. }
  410. z.EncWriteMapElemValue()
  411. z.F.EncSliceFloat64V(x.AF64slice, e)
  412. z.EncWriteMapElemKey()
  413. if z.IsJSONHandle() {
  414. z.WriteStr("\"AF32slice\"")
  415. } else {
  416. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  417. }
  418. z.EncWriteMapElemValue()
  419. z.F.EncSliceFloat32V(x.AF32slice, e)
  420. z.EncWriteMapElemKey()
  421. if z.IsJSONHandle() {
  422. z.WriteStr("\"AMSU16\"")
  423. } else {
  424. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  425. }
  426. z.EncWriteMapElemValue()
  427. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  428. z.EncWriteMapElemKey()
  429. if z.IsJSONHandle() {
  430. z.WriteStr("\"AI64arr0\"")
  431. } else {
  432. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  433. }
  434. z.EncWriteMapElemValue()
  435. yy44 := &x.AI64arr0
  436. h.encArray0int64((*[0]int64)(yy44), e)
  437. z.EncWriteMapElemKey()
  438. if z.IsJSONHandle() {
  439. z.WriteStr("\"AI64slice0\"")
  440. } else {
  441. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  442. }
  443. z.EncWriteMapElemValue()
  444. z.F.EncSliceInt64V(x.AI64slice0, e)
  445. z.EncWriteMapElemKey()
  446. if z.IsJSONHandle() {
  447. z.WriteStr("\"AUi64sliceN\"")
  448. } else {
  449. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  450. }
  451. z.EncWriteMapElemValue()
  452. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  453. z.EncWriteMapElemKey()
  454. if z.IsJSONHandle() {
  455. z.WriteStr("\"AMSU16N\"")
  456. } else {
  457. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  458. }
  459. z.EncWriteMapElemValue()
  460. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  461. z.EncWriteMapElemKey()
  462. if z.IsJSONHandle() {
  463. z.WriteStr("\"AMSU16E\"")
  464. } else {
  465. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  466. }
  467. z.EncWriteMapElemValue()
  468. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  469. z.EncWriteMapEnd()
  470. }
  471. }
  472. }
  473. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  474. var h codecSelfer19780
  475. z, r := GenHelperDecoder(d)
  476. _, _, _ = h, z, r
  477. yyct2 := r.ContainerType()
  478. if yyct2 == codecSelferValueTypeMap19780 {
  479. yyl2 := z.DecReadMapStart()
  480. if yyl2 == 0 {
  481. z.DecReadMapEnd()
  482. } else {
  483. x.codecDecodeSelfFromMap(yyl2, d)
  484. }
  485. } else if yyct2 == codecSelferValueTypeArray19780 {
  486. yyl2 := z.DecReadArrayStart()
  487. if yyl2 == 0 {
  488. z.DecReadArrayEnd()
  489. } else {
  490. x.codecDecodeSelfFromArray(yyl2, d)
  491. }
  492. } else {
  493. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  494. }
  495. }
  496. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  497. var h codecSelfer19780
  498. z, r := GenHelperDecoder(d)
  499. _, _, _ = h, z, r
  500. var yyhl3 bool = l >= 0
  501. for yyj3 := 0; ; yyj3++ {
  502. if yyhl3 {
  503. if yyj3 >= l {
  504. break
  505. }
  506. } else {
  507. if r.CheckBreak() {
  508. break
  509. }
  510. }
  511. z.DecReadMapElemKey()
  512. yys3 := z.StringView(r.DecodeStringAsBytes())
  513. z.DecReadMapElemValue()
  514. switch yys3 {
  515. case "AS":
  516. if r.TryDecodeAsNil() {
  517. x.AS = ""
  518. } else {
  519. x.AS = (string)(string(r.DecodeStringAsBytes()))
  520. }
  521. case "AI64":
  522. if r.TryDecodeAsNil() {
  523. x.AI64 = 0
  524. } else {
  525. x.AI64 = (int64)(r.DecodeInt64())
  526. }
  527. case "AI16":
  528. if r.TryDecodeAsNil() {
  529. x.AI16 = 0
  530. } else {
  531. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  532. }
  533. case "AUi64":
  534. if r.TryDecodeAsNil() {
  535. x.AUi64 = 0
  536. } else {
  537. x.AUi64 = (uint64)(r.DecodeUint64())
  538. }
  539. case "ASslice":
  540. if r.TryDecodeAsNil() {
  541. x.ASslice = nil
  542. } else {
  543. z.F.DecSliceStringX(&x.ASslice, d)
  544. }
  545. case "AI64slice":
  546. if r.TryDecodeAsNil() {
  547. x.AI64slice = nil
  548. } else {
  549. z.F.DecSliceInt64X(&x.AI64slice, d)
  550. }
  551. case "AUi64slice":
  552. if r.TryDecodeAsNil() {
  553. x.AUi64slice = nil
  554. } else {
  555. z.F.DecSliceUint64X(&x.AUi64slice, d)
  556. }
  557. case "AF64slice":
  558. if r.TryDecodeAsNil() {
  559. x.AF64slice = nil
  560. } else {
  561. z.F.DecSliceFloat64X(&x.AF64slice, d)
  562. }
  563. case "AF32slice":
  564. if r.TryDecodeAsNil() {
  565. x.AF32slice = nil
  566. } else {
  567. z.F.DecSliceFloat32X(&x.AF32slice, d)
  568. }
  569. case "AMSU16":
  570. if r.TryDecodeAsNil() {
  571. x.AMSU16 = nil
  572. } else {
  573. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  574. }
  575. case "AI64arr0":
  576. if r.TryDecodeAsNil() {
  577. x.AI64arr0 = [0]int64{}
  578. } else {
  579. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  580. }
  581. case "AI64slice0":
  582. if r.TryDecodeAsNil() {
  583. x.AI64slice0 = nil
  584. } else {
  585. z.F.DecSliceInt64X(&x.AI64slice0, d)
  586. }
  587. case "AUi64sliceN":
  588. if r.TryDecodeAsNil() {
  589. x.AUi64sliceN = nil
  590. } else {
  591. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  592. }
  593. case "AMSU16N":
  594. if r.TryDecodeAsNil() {
  595. x.AMSU16N = nil
  596. } else {
  597. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  598. }
  599. case "AMSU16E":
  600. if r.TryDecodeAsNil() {
  601. x.AMSU16E = nil
  602. } else {
  603. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  604. }
  605. default:
  606. z.DecStructFieldNotFound(-1, yys3)
  607. } // end switch yys3
  608. } // end for yyj3
  609. z.DecReadMapEnd()
  610. }
  611. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  612. var h codecSelfer19780
  613. z, r := GenHelperDecoder(d)
  614. _, _, _ = h, z, r
  615. var yyj30 int
  616. var yyb30 bool
  617. var yyhl30 bool = l >= 0
  618. yyj30++
  619. if yyhl30 {
  620. yyb30 = yyj30 > l
  621. } else {
  622. yyb30 = r.CheckBreak()
  623. }
  624. if yyb30 {
  625. z.DecReadArrayEnd()
  626. return
  627. }
  628. z.DecReadArrayElem()
  629. if r.TryDecodeAsNil() {
  630. x.AS = ""
  631. } else {
  632. x.AS = (string)(string(r.DecodeStringAsBytes()))
  633. }
  634. yyj30++
  635. if yyhl30 {
  636. yyb30 = yyj30 > l
  637. } else {
  638. yyb30 = r.CheckBreak()
  639. }
  640. if yyb30 {
  641. z.DecReadArrayEnd()
  642. return
  643. }
  644. z.DecReadArrayElem()
  645. if r.TryDecodeAsNil() {
  646. x.AI64 = 0
  647. } else {
  648. x.AI64 = (int64)(r.DecodeInt64())
  649. }
  650. yyj30++
  651. if yyhl30 {
  652. yyb30 = yyj30 > l
  653. } else {
  654. yyb30 = r.CheckBreak()
  655. }
  656. if yyb30 {
  657. z.DecReadArrayEnd()
  658. return
  659. }
  660. z.DecReadArrayElem()
  661. if r.TryDecodeAsNil() {
  662. x.AI16 = 0
  663. } else {
  664. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  665. }
  666. yyj30++
  667. if yyhl30 {
  668. yyb30 = yyj30 > l
  669. } else {
  670. yyb30 = r.CheckBreak()
  671. }
  672. if yyb30 {
  673. z.DecReadArrayEnd()
  674. return
  675. }
  676. z.DecReadArrayElem()
  677. if r.TryDecodeAsNil() {
  678. x.AUi64 = 0
  679. } else {
  680. x.AUi64 = (uint64)(r.DecodeUint64())
  681. }
  682. yyj30++
  683. if yyhl30 {
  684. yyb30 = yyj30 > l
  685. } else {
  686. yyb30 = r.CheckBreak()
  687. }
  688. if yyb30 {
  689. z.DecReadArrayEnd()
  690. return
  691. }
  692. z.DecReadArrayElem()
  693. if r.TryDecodeAsNil() {
  694. x.ASslice = nil
  695. } else {
  696. z.F.DecSliceStringX(&x.ASslice, d)
  697. }
  698. yyj30++
  699. if yyhl30 {
  700. yyb30 = yyj30 > l
  701. } else {
  702. yyb30 = r.CheckBreak()
  703. }
  704. if yyb30 {
  705. z.DecReadArrayEnd()
  706. return
  707. }
  708. z.DecReadArrayElem()
  709. if r.TryDecodeAsNil() {
  710. x.AI64slice = nil
  711. } else {
  712. z.F.DecSliceInt64X(&x.AI64slice, d)
  713. }
  714. yyj30++
  715. if yyhl30 {
  716. yyb30 = yyj30 > l
  717. } else {
  718. yyb30 = r.CheckBreak()
  719. }
  720. if yyb30 {
  721. z.DecReadArrayEnd()
  722. return
  723. }
  724. z.DecReadArrayElem()
  725. if r.TryDecodeAsNil() {
  726. x.AUi64slice = nil
  727. } else {
  728. z.F.DecSliceUint64X(&x.AUi64slice, d)
  729. }
  730. yyj30++
  731. if yyhl30 {
  732. yyb30 = yyj30 > l
  733. } else {
  734. yyb30 = r.CheckBreak()
  735. }
  736. if yyb30 {
  737. z.DecReadArrayEnd()
  738. return
  739. }
  740. z.DecReadArrayElem()
  741. if r.TryDecodeAsNil() {
  742. x.AF64slice = nil
  743. } else {
  744. z.F.DecSliceFloat64X(&x.AF64slice, d)
  745. }
  746. yyj30++
  747. if yyhl30 {
  748. yyb30 = yyj30 > l
  749. } else {
  750. yyb30 = r.CheckBreak()
  751. }
  752. if yyb30 {
  753. z.DecReadArrayEnd()
  754. return
  755. }
  756. z.DecReadArrayElem()
  757. if r.TryDecodeAsNil() {
  758. x.AF32slice = nil
  759. } else {
  760. z.F.DecSliceFloat32X(&x.AF32slice, d)
  761. }
  762. yyj30++
  763. if yyhl30 {
  764. yyb30 = yyj30 > l
  765. } else {
  766. yyb30 = r.CheckBreak()
  767. }
  768. if yyb30 {
  769. z.DecReadArrayEnd()
  770. return
  771. }
  772. z.DecReadArrayElem()
  773. if r.TryDecodeAsNil() {
  774. x.AMSU16 = nil
  775. } else {
  776. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  777. }
  778. yyj30++
  779. if yyhl30 {
  780. yyb30 = yyj30 > l
  781. } else {
  782. yyb30 = r.CheckBreak()
  783. }
  784. if yyb30 {
  785. z.DecReadArrayEnd()
  786. return
  787. }
  788. z.DecReadArrayElem()
  789. if r.TryDecodeAsNil() {
  790. x.AI64arr0 = [0]int64{}
  791. } else {
  792. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  793. }
  794. yyj30++
  795. if yyhl30 {
  796. yyb30 = yyj30 > l
  797. } else {
  798. yyb30 = r.CheckBreak()
  799. }
  800. if yyb30 {
  801. z.DecReadArrayEnd()
  802. return
  803. }
  804. z.DecReadArrayElem()
  805. if r.TryDecodeAsNil() {
  806. x.AI64slice0 = nil
  807. } else {
  808. z.F.DecSliceInt64X(&x.AI64slice0, d)
  809. }
  810. yyj30++
  811. if yyhl30 {
  812. yyb30 = yyj30 > l
  813. } else {
  814. yyb30 = r.CheckBreak()
  815. }
  816. if yyb30 {
  817. z.DecReadArrayEnd()
  818. return
  819. }
  820. z.DecReadArrayElem()
  821. if r.TryDecodeAsNil() {
  822. x.AUi64sliceN = nil
  823. } else {
  824. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  825. }
  826. yyj30++
  827. if yyhl30 {
  828. yyb30 = yyj30 > l
  829. } else {
  830. yyb30 = r.CheckBreak()
  831. }
  832. if yyb30 {
  833. z.DecReadArrayEnd()
  834. return
  835. }
  836. z.DecReadArrayElem()
  837. if r.TryDecodeAsNil() {
  838. x.AMSU16N = nil
  839. } else {
  840. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  841. }
  842. yyj30++
  843. if yyhl30 {
  844. yyb30 = yyj30 > l
  845. } else {
  846. yyb30 = r.CheckBreak()
  847. }
  848. if yyb30 {
  849. z.DecReadArrayEnd()
  850. return
  851. }
  852. z.DecReadArrayElem()
  853. if r.TryDecodeAsNil() {
  854. x.AMSU16E = nil
  855. } else {
  856. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  857. }
  858. for {
  859. yyj30++
  860. if yyhl30 {
  861. yyb30 = yyj30 > l
  862. } else {
  863. yyb30 = r.CheckBreak()
  864. }
  865. if yyb30 {
  866. break
  867. }
  868. z.DecReadArrayElem()
  869. z.DecStructFieldNotFound(yyj30-1, "")
  870. }
  871. z.DecReadArrayEnd()
  872. }
  873. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  874. var h codecSelfer19780
  875. z, r := GenHelperEncoder(e)
  876. _, _, _ = h, z, r
  877. if x == nil {
  878. r.EncodeNil()
  879. } else {
  880. yysep2 := !z.EncBinary()
  881. yy2arr2 := z.EncBasicHandle().StructToArray
  882. _, _ = yysep2, yy2arr2
  883. const yyr2 bool = false // struct tag has 'toArray'
  884. if yyr2 || yy2arr2 {
  885. z.EncWriteArrayStart(17)
  886. z.EncWriteArrayElem()
  887. if z.EncBasicHandle().StringToRaw {
  888. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  889. } else {
  890. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  891. }
  892. z.EncWriteArrayElem()
  893. r.EncodeInt(int64(x.I64))
  894. z.EncWriteArrayElem()
  895. r.EncodeInt(int64(x.I8))
  896. z.EncWriteArrayElem()
  897. r.EncodeUint(uint64(x.Ui64))
  898. z.EncWriteArrayElem()
  899. r.EncodeUint(uint64(x.Ui8))
  900. z.EncWriteArrayElem()
  901. r.EncodeFloat64(float64(x.F64))
  902. z.EncWriteArrayElem()
  903. r.EncodeFloat32(float32(x.F32))
  904. z.EncWriteArrayElem()
  905. r.EncodeBool(bool(x.B))
  906. z.EncWriteArrayElem()
  907. z.F.EncSliceStringV(x.Sslice, e)
  908. z.EncWriteArrayElem()
  909. z.F.EncSliceInt16V(x.I16slice, e)
  910. z.EncWriteArrayElem()
  911. z.F.EncSliceUint64V(x.Ui64slice, e)
  912. z.EncWriteArrayElem()
  913. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  914. z.EncWriteArrayElem()
  915. z.F.EncSliceBoolV(x.Bslice, e)
  916. z.EncWriteArrayElem()
  917. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  918. z.EncWriteArrayElem()
  919. x.WrapSliceInt64.CodecEncodeSelf(e)
  920. z.EncWriteArrayElem()
  921. x.WrapSliceString.CodecEncodeSelf(e)
  922. z.EncWriteArrayElem()
  923. z.F.EncMapStringInt64V(x.Msi64, e)
  924. z.EncWriteArrayEnd()
  925. } else {
  926. z.EncWriteMapStart(17)
  927. z.EncWriteMapElemKey()
  928. if z.IsJSONHandle() {
  929. z.WriteStr("\"S\"")
  930. } else {
  931. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  932. }
  933. z.EncWriteMapElemValue()
  934. if z.EncBasicHandle().StringToRaw {
  935. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  936. } else {
  937. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  938. }
  939. z.EncWriteMapElemKey()
  940. if z.IsJSONHandle() {
  941. z.WriteStr("\"I64\"")
  942. } else {
  943. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  944. }
  945. z.EncWriteMapElemValue()
  946. r.EncodeInt(int64(x.I64))
  947. z.EncWriteMapElemKey()
  948. if z.IsJSONHandle() {
  949. z.WriteStr("\"I8\"")
  950. } else {
  951. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  952. }
  953. z.EncWriteMapElemValue()
  954. r.EncodeInt(int64(x.I8))
  955. z.EncWriteMapElemKey()
  956. if z.IsJSONHandle() {
  957. z.WriteStr("\"Ui64\"")
  958. } else {
  959. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  960. }
  961. z.EncWriteMapElemValue()
  962. r.EncodeUint(uint64(x.Ui64))
  963. z.EncWriteMapElemKey()
  964. if z.IsJSONHandle() {
  965. z.WriteStr("\"Ui8\"")
  966. } else {
  967. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  968. }
  969. z.EncWriteMapElemValue()
  970. r.EncodeUint(uint64(x.Ui8))
  971. z.EncWriteMapElemKey()
  972. if z.IsJSONHandle() {
  973. z.WriteStr("\"F64\"")
  974. } else {
  975. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  976. }
  977. z.EncWriteMapElemValue()
  978. r.EncodeFloat64(float64(x.F64))
  979. z.EncWriteMapElemKey()
  980. if z.IsJSONHandle() {
  981. z.WriteStr("\"F32\"")
  982. } else {
  983. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  984. }
  985. z.EncWriteMapElemValue()
  986. r.EncodeFloat32(float32(x.F32))
  987. z.EncWriteMapElemKey()
  988. if z.IsJSONHandle() {
  989. z.WriteStr("\"B\"")
  990. } else {
  991. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  992. }
  993. z.EncWriteMapElemValue()
  994. r.EncodeBool(bool(x.B))
  995. z.EncWriteMapElemKey()
  996. if z.IsJSONHandle() {
  997. z.WriteStr("\"Sslice\"")
  998. } else {
  999. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1000. }
  1001. z.EncWriteMapElemValue()
  1002. z.F.EncSliceStringV(x.Sslice, e)
  1003. z.EncWriteMapElemKey()
  1004. if z.IsJSONHandle() {
  1005. z.WriteStr("\"I16slice\"")
  1006. } else {
  1007. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1008. }
  1009. z.EncWriteMapElemValue()
  1010. z.F.EncSliceInt16V(x.I16slice, e)
  1011. z.EncWriteMapElemKey()
  1012. if z.IsJSONHandle() {
  1013. z.WriteStr("\"Ui64slice\"")
  1014. } else {
  1015. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1016. }
  1017. z.EncWriteMapElemValue()
  1018. z.F.EncSliceUint64V(x.Ui64slice, e)
  1019. z.EncWriteMapElemKey()
  1020. if z.IsJSONHandle() {
  1021. z.WriteStr("\"Ui8slice\"")
  1022. } else {
  1023. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1024. }
  1025. z.EncWriteMapElemValue()
  1026. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1027. z.EncWriteMapElemKey()
  1028. if z.IsJSONHandle() {
  1029. z.WriteStr("\"Bslice\"")
  1030. } else {
  1031. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1032. }
  1033. z.EncWriteMapElemValue()
  1034. z.F.EncSliceBoolV(x.Bslice, e)
  1035. z.EncWriteMapElemKey()
  1036. if z.IsJSONHandle() {
  1037. z.WriteStr("\"Iptrslice\"")
  1038. } else {
  1039. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1040. }
  1041. z.EncWriteMapElemValue()
  1042. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1043. z.EncWriteMapElemKey()
  1044. if z.IsJSONHandle() {
  1045. z.WriteStr("\"WrapSliceInt64\"")
  1046. } else {
  1047. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1048. }
  1049. z.EncWriteMapElemValue()
  1050. x.WrapSliceInt64.CodecEncodeSelf(e)
  1051. z.EncWriteMapElemKey()
  1052. if z.IsJSONHandle() {
  1053. z.WriteStr("\"WrapSliceString\"")
  1054. } else {
  1055. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1056. }
  1057. z.EncWriteMapElemValue()
  1058. x.WrapSliceString.CodecEncodeSelf(e)
  1059. z.EncWriteMapElemKey()
  1060. if z.IsJSONHandle() {
  1061. z.WriteStr("\"Msi64\"")
  1062. } else {
  1063. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1064. }
  1065. z.EncWriteMapElemValue()
  1066. z.F.EncMapStringInt64V(x.Msi64, e)
  1067. z.EncWriteMapEnd()
  1068. }
  1069. }
  1070. }
  1071. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1072. var h codecSelfer19780
  1073. z, r := GenHelperDecoder(d)
  1074. _, _, _ = h, z, r
  1075. yyct2 := r.ContainerType()
  1076. if yyct2 == codecSelferValueTypeMap19780 {
  1077. yyl2 := z.DecReadMapStart()
  1078. if yyl2 == 0 {
  1079. z.DecReadMapEnd()
  1080. } else {
  1081. x.codecDecodeSelfFromMap(yyl2, d)
  1082. }
  1083. } else if yyct2 == codecSelferValueTypeArray19780 {
  1084. yyl2 := z.DecReadArrayStart()
  1085. if yyl2 == 0 {
  1086. z.DecReadArrayEnd()
  1087. } else {
  1088. x.codecDecodeSelfFromArray(yyl2, d)
  1089. }
  1090. } else {
  1091. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1092. }
  1093. }
  1094. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1095. var h codecSelfer19780
  1096. z, r := GenHelperDecoder(d)
  1097. _, _, _ = h, z, r
  1098. var yyhl3 bool = l >= 0
  1099. for yyj3 := 0; ; yyj3++ {
  1100. if yyhl3 {
  1101. if yyj3 >= l {
  1102. break
  1103. }
  1104. } else {
  1105. if r.CheckBreak() {
  1106. break
  1107. }
  1108. }
  1109. z.DecReadMapElemKey()
  1110. yys3 := z.StringView(r.DecodeStringAsBytes())
  1111. z.DecReadMapElemValue()
  1112. switch yys3 {
  1113. case "S":
  1114. if r.TryDecodeAsNil() {
  1115. x.S = ""
  1116. } else {
  1117. x.S = (string)(string(r.DecodeStringAsBytes()))
  1118. }
  1119. case "I64":
  1120. if r.TryDecodeAsNil() {
  1121. x.I64 = 0
  1122. } else {
  1123. x.I64 = (int64)(r.DecodeInt64())
  1124. }
  1125. case "I8":
  1126. if r.TryDecodeAsNil() {
  1127. x.I8 = 0
  1128. } else {
  1129. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1130. }
  1131. case "Ui64":
  1132. if r.TryDecodeAsNil() {
  1133. x.Ui64 = 0
  1134. } else {
  1135. x.Ui64 = (uint64)(r.DecodeUint64())
  1136. }
  1137. case "Ui8":
  1138. if r.TryDecodeAsNil() {
  1139. x.Ui8 = 0
  1140. } else {
  1141. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1142. }
  1143. case "F64":
  1144. if r.TryDecodeAsNil() {
  1145. x.F64 = 0
  1146. } else {
  1147. x.F64 = (float64)(r.DecodeFloat64())
  1148. }
  1149. case "F32":
  1150. if r.TryDecodeAsNil() {
  1151. x.F32 = 0
  1152. } else {
  1153. x.F32 = (float32)(z.DecDecodeFloat32())
  1154. }
  1155. case "B":
  1156. if r.TryDecodeAsNil() {
  1157. x.B = false
  1158. } else {
  1159. x.B = (bool)(r.DecodeBool())
  1160. }
  1161. case "Sslice":
  1162. if r.TryDecodeAsNil() {
  1163. x.Sslice = nil
  1164. } else {
  1165. z.F.DecSliceStringX(&x.Sslice, d)
  1166. }
  1167. case "I16slice":
  1168. if r.TryDecodeAsNil() {
  1169. x.I16slice = nil
  1170. } else {
  1171. z.F.DecSliceInt16X(&x.I16slice, d)
  1172. }
  1173. case "Ui64slice":
  1174. if r.TryDecodeAsNil() {
  1175. x.Ui64slice = nil
  1176. } else {
  1177. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1178. }
  1179. case "Ui8slice":
  1180. if r.TryDecodeAsNil() {
  1181. x.Ui8slice = nil
  1182. } else {
  1183. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1184. }
  1185. case "Bslice":
  1186. if r.TryDecodeAsNil() {
  1187. x.Bslice = nil
  1188. } else {
  1189. z.F.DecSliceBoolX(&x.Bslice, d)
  1190. }
  1191. case "Iptrslice":
  1192. if r.TryDecodeAsNil() {
  1193. x.Iptrslice = nil
  1194. } else {
  1195. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1196. }
  1197. case "WrapSliceInt64":
  1198. if r.TryDecodeAsNil() {
  1199. x.WrapSliceInt64 = nil
  1200. } else {
  1201. x.WrapSliceInt64.CodecDecodeSelf(d)
  1202. }
  1203. case "WrapSliceString":
  1204. if r.TryDecodeAsNil() {
  1205. x.WrapSliceString = nil
  1206. } else {
  1207. x.WrapSliceString.CodecDecodeSelf(d)
  1208. }
  1209. case "Msi64":
  1210. if r.TryDecodeAsNil() {
  1211. x.Msi64 = nil
  1212. } else {
  1213. z.F.DecMapStringInt64X(&x.Msi64, d)
  1214. }
  1215. default:
  1216. z.DecStructFieldNotFound(-1, yys3)
  1217. } // end switch yys3
  1218. } // end for yyj3
  1219. z.DecReadMapEnd()
  1220. }
  1221. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1222. var h codecSelfer19780
  1223. z, r := GenHelperDecoder(d)
  1224. _, _, _ = h, z, r
  1225. var yyj28 int
  1226. var yyb28 bool
  1227. var yyhl28 bool = l >= 0
  1228. yyj28++
  1229. if yyhl28 {
  1230. yyb28 = yyj28 > l
  1231. } else {
  1232. yyb28 = r.CheckBreak()
  1233. }
  1234. if yyb28 {
  1235. z.DecReadArrayEnd()
  1236. return
  1237. }
  1238. z.DecReadArrayElem()
  1239. if r.TryDecodeAsNil() {
  1240. x.S = ""
  1241. } else {
  1242. x.S = (string)(string(r.DecodeStringAsBytes()))
  1243. }
  1244. yyj28++
  1245. if yyhl28 {
  1246. yyb28 = yyj28 > l
  1247. } else {
  1248. yyb28 = r.CheckBreak()
  1249. }
  1250. if yyb28 {
  1251. z.DecReadArrayEnd()
  1252. return
  1253. }
  1254. z.DecReadArrayElem()
  1255. if r.TryDecodeAsNil() {
  1256. x.I64 = 0
  1257. } else {
  1258. x.I64 = (int64)(r.DecodeInt64())
  1259. }
  1260. yyj28++
  1261. if yyhl28 {
  1262. yyb28 = yyj28 > l
  1263. } else {
  1264. yyb28 = r.CheckBreak()
  1265. }
  1266. if yyb28 {
  1267. z.DecReadArrayEnd()
  1268. return
  1269. }
  1270. z.DecReadArrayElem()
  1271. if r.TryDecodeAsNil() {
  1272. x.I8 = 0
  1273. } else {
  1274. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1275. }
  1276. yyj28++
  1277. if yyhl28 {
  1278. yyb28 = yyj28 > l
  1279. } else {
  1280. yyb28 = r.CheckBreak()
  1281. }
  1282. if yyb28 {
  1283. z.DecReadArrayEnd()
  1284. return
  1285. }
  1286. z.DecReadArrayElem()
  1287. if r.TryDecodeAsNil() {
  1288. x.Ui64 = 0
  1289. } else {
  1290. x.Ui64 = (uint64)(r.DecodeUint64())
  1291. }
  1292. yyj28++
  1293. if yyhl28 {
  1294. yyb28 = yyj28 > l
  1295. } else {
  1296. yyb28 = r.CheckBreak()
  1297. }
  1298. if yyb28 {
  1299. z.DecReadArrayEnd()
  1300. return
  1301. }
  1302. z.DecReadArrayElem()
  1303. if r.TryDecodeAsNil() {
  1304. x.Ui8 = 0
  1305. } else {
  1306. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1307. }
  1308. yyj28++
  1309. if yyhl28 {
  1310. yyb28 = yyj28 > l
  1311. } else {
  1312. yyb28 = r.CheckBreak()
  1313. }
  1314. if yyb28 {
  1315. z.DecReadArrayEnd()
  1316. return
  1317. }
  1318. z.DecReadArrayElem()
  1319. if r.TryDecodeAsNil() {
  1320. x.F64 = 0
  1321. } else {
  1322. x.F64 = (float64)(r.DecodeFloat64())
  1323. }
  1324. yyj28++
  1325. if yyhl28 {
  1326. yyb28 = yyj28 > l
  1327. } else {
  1328. yyb28 = r.CheckBreak()
  1329. }
  1330. if yyb28 {
  1331. z.DecReadArrayEnd()
  1332. return
  1333. }
  1334. z.DecReadArrayElem()
  1335. if r.TryDecodeAsNil() {
  1336. x.F32 = 0
  1337. } else {
  1338. x.F32 = (float32)(z.DecDecodeFloat32())
  1339. }
  1340. yyj28++
  1341. if yyhl28 {
  1342. yyb28 = yyj28 > l
  1343. } else {
  1344. yyb28 = r.CheckBreak()
  1345. }
  1346. if yyb28 {
  1347. z.DecReadArrayEnd()
  1348. return
  1349. }
  1350. z.DecReadArrayElem()
  1351. if r.TryDecodeAsNil() {
  1352. x.B = false
  1353. } else {
  1354. x.B = (bool)(r.DecodeBool())
  1355. }
  1356. yyj28++
  1357. if yyhl28 {
  1358. yyb28 = yyj28 > l
  1359. } else {
  1360. yyb28 = r.CheckBreak()
  1361. }
  1362. if yyb28 {
  1363. z.DecReadArrayEnd()
  1364. return
  1365. }
  1366. z.DecReadArrayElem()
  1367. if r.TryDecodeAsNil() {
  1368. x.Sslice = nil
  1369. } else {
  1370. z.F.DecSliceStringX(&x.Sslice, d)
  1371. }
  1372. yyj28++
  1373. if yyhl28 {
  1374. yyb28 = yyj28 > l
  1375. } else {
  1376. yyb28 = r.CheckBreak()
  1377. }
  1378. if yyb28 {
  1379. z.DecReadArrayEnd()
  1380. return
  1381. }
  1382. z.DecReadArrayElem()
  1383. if r.TryDecodeAsNil() {
  1384. x.I16slice = nil
  1385. } else {
  1386. z.F.DecSliceInt16X(&x.I16slice, d)
  1387. }
  1388. yyj28++
  1389. if yyhl28 {
  1390. yyb28 = yyj28 > l
  1391. } else {
  1392. yyb28 = r.CheckBreak()
  1393. }
  1394. if yyb28 {
  1395. z.DecReadArrayEnd()
  1396. return
  1397. }
  1398. z.DecReadArrayElem()
  1399. if r.TryDecodeAsNil() {
  1400. x.Ui64slice = nil
  1401. } else {
  1402. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1403. }
  1404. yyj28++
  1405. if yyhl28 {
  1406. yyb28 = yyj28 > l
  1407. } else {
  1408. yyb28 = r.CheckBreak()
  1409. }
  1410. if yyb28 {
  1411. z.DecReadArrayEnd()
  1412. return
  1413. }
  1414. z.DecReadArrayElem()
  1415. if r.TryDecodeAsNil() {
  1416. x.Ui8slice = nil
  1417. } else {
  1418. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1419. }
  1420. yyj28++
  1421. if yyhl28 {
  1422. yyb28 = yyj28 > l
  1423. } else {
  1424. yyb28 = r.CheckBreak()
  1425. }
  1426. if yyb28 {
  1427. z.DecReadArrayEnd()
  1428. return
  1429. }
  1430. z.DecReadArrayElem()
  1431. if r.TryDecodeAsNil() {
  1432. x.Bslice = nil
  1433. } else {
  1434. z.F.DecSliceBoolX(&x.Bslice, d)
  1435. }
  1436. yyj28++
  1437. if yyhl28 {
  1438. yyb28 = yyj28 > l
  1439. } else {
  1440. yyb28 = r.CheckBreak()
  1441. }
  1442. if yyb28 {
  1443. z.DecReadArrayEnd()
  1444. return
  1445. }
  1446. z.DecReadArrayElem()
  1447. if r.TryDecodeAsNil() {
  1448. x.Iptrslice = nil
  1449. } else {
  1450. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1451. }
  1452. yyj28++
  1453. if yyhl28 {
  1454. yyb28 = yyj28 > l
  1455. } else {
  1456. yyb28 = r.CheckBreak()
  1457. }
  1458. if yyb28 {
  1459. z.DecReadArrayEnd()
  1460. return
  1461. }
  1462. z.DecReadArrayElem()
  1463. if r.TryDecodeAsNil() {
  1464. x.WrapSliceInt64 = nil
  1465. } else {
  1466. x.WrapSliceInt64.CodecDecodeSelf(d)
  1467. }
  1468. yyj28++
  1469. if yyhl28 {
  1470. yyb28 = yyj28 > l
  1471. } else {
  1472. yyb28 = r.CheckBreak()
  1473. }
  1474. if yyb28 {
  1475. z.DecReadArrayEnd()
  1476. return
  1477. }
  1478. z.DecReadArrayElem()
  1479. if r.TryDecodeAsNil() {
  1480. x.WrapSliceString = nil
  1481. } else {
  1482. x.WrapSliceString.CodecDecodeSelf(d)
  1483. }
  1484. yyj28++
  1485. if yyhl28 {
  1486. yyb28 = yyj28 > l
  1487. } else {
  1488. yyb28 = r.CheckBreak()
  1489. }
  1490. if yyb28 {
  1491. z.DecReadArrayEnd()
  1492. return
  1493. }
  1494. z.DecReadArrayElem()
  1495. if r.TryDecodeAsNil() {
  1496. x.Msi64 = nil
  1497. } else {
  1498. z.F.DecMapStringInt64X(&x.Msi64, d)
  1499. }
  1500. for {
  1501. yyj28++
  1502. if yyhl28 {
  1503. yyb28 = yyj28 > l
  1504. } else {
  1505. yyb28 = r.CheckBreak()
  1506. }
  1507. if yyb28 {
  1508. break
  1509. }
  1510. z.DecReadArrayElem()
  1511. z.DecStructFieldNotFound(yyj28-1, "")
  1512. }
  1513. z.DecReadArrayEnd()
  1514. }
  1515. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  1516. var h codecSelfer19780
  1517. z, r := GenHelperEncoder(e)
  1518. _, _, _ = h, z, r
  1519. if x == nil {
  1520. r.EncodeNil()
  1521. } else {
  1522. yysep2 := !z.EncBinary()
  1523. yy2arr2 := z.EncBasicHandle().StructToArray
  1524. _, _ = yysep2, yy2arr2
  1525. const yyr2 bool = false // struct tag has 'toArray'
  1526. var yyn54 bool = x.Nint64 == nil
  1527. if yyr2 || yy2arr2 {
  1528. z.EncWriteArrayStart(52)
  1529. z.EncWriteArrayElem()
  1530. if z.EncBasicHandle().StringToRaw {
  1531. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1532. } else {
  1533. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1534. }
  1535. z.EncWriteArrayElem()
  1536. r.EncodeInt(int64(x.I64))
  1537. z.EncWriteArrayElem()
  1538. r.EncodeInt(int64(x.I32))
  1539. z.EncWriteArrayElem()
  1540. r.EncodeInt(int64(x.I16))
  1541. z.EncWriteArrayElem()
  1542. r.EncodeInt(int64(x.I8))
  1543. z.EncWriteArrayElem()
  1544. r.EncodeInt(int64(x.I64n))
  1545. z.EncWriteArrayElem()
  1546. r.EncodeInt(int64(x.I32n))
  1547. z.EncWriteArrayElem()
  1548. r.EncodeInt(int64(x.I16n))
  1549. z.EncWriteArrayElem()
  1550. r.EncodeInt(int64(x.I8n))
  1551. z.EncWriteArrayElem()
  1552. r.EncodeUint(uint64(x.Ui64))
  1553. z.EncWriteArrayElem()
  1554. r.EncodeUint(uint64(x.Ui32))
  1555. z.EncWriteArrayElem()
  1556. r.EncodeUint(uint64(x.Ui16))
  1557. z.EncWriteArrayElem()
  1558. r.EncodeUint(uint64(x.Ui8))
  1559. z.EncWriteArrayElem()
  1560. r.EncodeFloat64(float64(x.F64))
  1561. z.EncWriteArrayElem()
  1562. r.EncodeFloat32(float32(x.F32))
  1563. z.EncWriteArrayElem()
  1564. r.EncodeBool(bool(x.B))
  1565. z.EncWriteArrayElem()
  1566. r.EncodeUint(uint64(x.By))
  1567. z.EncWriteArrayElem()
  1568. z.F.EncSliceStringV(x.Sslice, e)
  1569. z.EncWriteArrayElem()
  1570. z.F.EncSliceInt64V(x.I64slice, e)
  1571. z.EncWriteArrayElem()
  1572. z.F.EncSliceInt16V(x.I16slice, e)
  1573. z.EncWriteArrayElem()
  1574. z.F.EncSliceUint64V(x.Ui64slice, e)
  1575. z.EncWriteArrayElem()
  1576. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1577. z.EncWriteArrayElem()
  1578. z.F.EncSliceBoolV(x.Bslice, e)
  1579. z.EncWriteArrayElem()
  1580. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1581. z.EncWriteArrayElem()
  1582. z.F.EncSliceBytesV(x.BytesSlice, e)
  1583. z.EncWriteArrayElem()
  1584. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1585. z.EncWriteArrayElem()
  1586. x.WrapSliceInt64.CodecEncodeSelf(e)
  1587. z.EncWriteArrayElem()
  1588. x.WrapSliceString.CodecEncodeSelf(e)
  1589. z.EncWriteArrayElem()
  1590. z.F.EncMapStringInt64V(x.Msi64, e)
  1591. z.EncWriteArrayElem()
  1592. z.F.EncMapStringBytesV(x.Msbytes, e)
  1593. z.EncWriteArrayElem()
  1594. yy85 := &x.Simplef
  1595. yy85.CodecEncodeSelf(e)
  1596. z.EncWriteArrayElem()
  1597. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1598. z.EncWriteArrayElem()
  1599. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1600. z.EncWriteArrayElem()
  1601. if z.EncBasicHandle().StringToRaw {
  1602. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1603. } else {
  1604. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1605. }
  1606. z.EncWriteArrayElem()
  1607. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1608. z.EncWriteArrayElem()
  1609. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1610. z.EncWriteArrayElem()
  1611. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1612. z.EncWriteArrayElem()
  1613. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1614. z.EncWriteArrayElem()
  1615. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1616. z.EncWriteArrayElem()
  1617. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1618. z.EncWriteArrayElem()
  1619. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1620. z.EncWriteArrayElem()
  1621. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1622. z.EncWriteArrayElem()
  1623. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1624. z.EncWriteArrayElem()
  1625. yy99 := &x.AnonInTestStruc.AI64arr0
  1626. h.encArray0int64((*[0]int64)(yy99), e)
  1627. z.EncWriteArrayElem()
  1628. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  1629. z.EncWriteArrayElem()
  1630. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  1631. z.EncWriteArrayElem()
  1632. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  1633. z.EncWriteArrayElem()
  1634. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  1635. z.EncWriteArrayElem()
  1636. yy105 := &x.NotAnon
  1637. yy105.CodecEncodeSelf(e)
  1638. z.EncWriteArrayElem()
  1639. z.F.EncMapStringBoolV(x.Nmap, e)
  1640. z.EncWriteArrayElem()
  1641. r.EncodeStringBytesRaw([]byte(x.Nslice))
  1642. if yyn54 {
  1643. z.EncWriteArrayElem()
  1644. r.EncodeNil()
  1645. } else {
  1646. z.EncWriteArrayElem()
  1647. yy109 := *x.Nint64
  1648. r.EncodeInt(int64(yy109))
  1649. }
  1650. z.EncWriteArrayEnd()
  1651. } else {
  1652. z.EncWriteMapStart(52)
  1653. z.EncWriteMapElemKey()
  1654. if z.IsJSONHandle() {
  1655. z.WriteStr("\"S\"")
  1656. } else {
  1657. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1658. }
  1659. z.EncWriteMapElemValue()
  1660. if z.EncBasicHandle().StringToRaw {
  1661. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1662. } else {
  1663. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1664. }
  1665. z.EncWriteMapElemKey()
  1666. if z.IsJSONHandle() {
  1667. z.WriteStr("\"I64\"")
  1668. } else {
  1669. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1670. }
  1671. z.EncWriteMapElemValue()
  1672. r.EncodeInt(int64(x.I64))
  1673. z.EncWriteMapElemKey()
  1674. if z.IsJSONHandle() {
  1675. z.WriteStr("\"I32\"")
  1676. } else {
  1677. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  1678. }
  1679. z.EncWriteMapElemValue()
  1680. r.EncodeInt(int64(x.I32))
  1681. z.EncWriteMapElemKey()
  1682. if z.IsJSONHandle() {
  1683. z.WriteStr("\"I16\"")
  1684. } else {
  1685. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  1686. }
  1687. z.EncWriteMapElemValue()
  1688. r.EncodeInt(int64(x.I16))
  1689. z.EncWriteMapElemKey()
  1690. if z.IsJSONHandle() {
  1691. z.WriteStr("\"I8\"")
  1692. } else {
  1693. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1694. }
  1695. z.EncWriteMapElemValue()
  1696. r.EncodeInt(int64(x.I8))
  1697. z.EncWriteMapElemKey()
  1698. if z.IsJSONHandle() {
  1699. z.WriteStr("\"I64n\"")
  1700. } else {
  1701. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  1702. }
  1703. z.EncWriteMapElemValue()
  1704. r.EncodeInt(int64(x.I64n))
  1705. z.EncWriteMapElemKey()
  1706. if z.IsJSONHandle() {
  1707. z.WriteStr("\"I32n\"")
  1708. } else {
  1709. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  1710. }
  1711. z.EncWriteMapElemValue()
  1712. r.EncodeInt(int64(x.I32n))
  1713. z.EncWriteMapElemKey()
  1714. if z.IsJSONHandle() {
  1715. z.WriteStr("\"I16n\"")
  1716. } else {
  1717. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  1718. }
  1719. z.EncWriteMapElemValue()
  1720. r.EncodeInt(int64(x.I16n))
  1721. z.EncWriteMapElemKey()
  1722. if z.IsJSONHandle() {
  1723. z.WriteStr("\"I8n\"")
  1724. } else {
  1725. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  1726. }
  1727. z.EncWriteMapElemValue()
  1728. r.EncodeInt(int64(x.I8n))
  1729. z.EncWriteMapElemKey()
  1730. if z.IsJSONHandle() {
  1731. z.WriteStr("\"Ui64\"")
  1732. } else {
  1733. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1734. }
  1735. z.EncWriteMapElemValue()
  1736. r.EncodeUint(uint64(x.Ui64))
  1737. z.EncWriteMapElemKey()
  1738. if z.IsJSONHandle() {
  1739. z.WriteStr("\"Ui32\"")
  1740. } else {
  1741. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  1742. }
  1743. z.EncWriteMapElemValue()
  1744. r.EncodeUint(uint64(x.Ui32))
  1745. z.EncWriteMapElemKey()
  1746. if z.IsJSONHandle() {
  1747. z.WriteStr("\"Ui16\"")
  1748. } else {
  1749. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  1750. }
  1751. z.EncWriteMapElemValue()
  1752. r.EncodeUint(uint64(x.Ui16))
  1753. z.EncWriteMapElemKey()
  1754. if z.IsJSONHandle() {
  1755. z.WriteStr("\"Ui8\"")
  1756. } else {
  1757. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1758. }
  1759. z.EncWriteMapElemValue()
  1760. r.EncodeUint(uint64(x.Ui8))
  1761. z.EncWriteMapElemKey()
  1762. if z.IsJSONHandle() {
  1763. z.WriteStr("\"F64\"")
  1764. } else {
  1765. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1766. }
  1767. z.EncWriteMapElemValue()
  1768. r.EncodeFloat64(float64(x.F64))
  1769. z.EncWriteMapElemKey()
  1770. if z.IsJSONHandle() {
  1771. z.WriteStr("\"F32\"")
  1772. } else {
  1773. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1774. }
  1775. z.EncWriteMapElemValue()
  1776. r.EncodeFloat32(float32(x.F32))
  1777. z.EncWriteMapElemKey()
  1778. if z.IsJSONHandle() {
  1779. z.WriteStr("\"B\"")
  1780. } else {
  1781. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1782. }
  1783. z.EncWriteMapElemValue()
  1784. r.EncodeBool(bool(x.B))
  1785. z.EncWriteMapElemKey()
  1786. if z.IsJSONHandle() {
  1787. z.WriteStr("\"By\"")
  1788. } else {
  1789. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  1790. }
  1791. z.EncWriteMapElemValue()
  1792. r.EncodeUint(uint64(x.By))
  1793. z.EncWriteMapElemKey()
  1794. if z.IsJSONHandle() {
  1795. z.WriteStr("\"Sslice\"")
  1796. } else {
  1797. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1798. }
  1799. z.EncWriteMapElemValue()
  1800. z.F.EncSliceStringV(x.Sslice, e)
  1801. z.EncWriteMapElemKey()
  1802. if z.IsJSONHandle() {
  1803. z.WriteStr("\"I64slice\"")
  1804. } else {
  1805. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  1806. }
  1807. z.EncWriteMapElemValue()
  1808. z.F.EncSliceInt64V(x.I64slice, e)
  1809. z.EncWriteMapElemKey()
  1810. if z.IsJSONHandle() {
  1811. z.WriteStr("\"I16slice\"")
  1812. } else {
  1813. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1814. }
  1815. z.EncWriteMapElemValue()
  1816. z.F.EncSliceInt16V(x.I16slice, e)
  1817. z.EncWriteMapElemKey()
  1818. if z.IsJSONHandle() {
  1819. z.WriteStr("\"Ui64slice\"")
  1820. } else {
  1821. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1822. }
  1823. z.EncWriteMapElemValue()
  1824. z.F.EncSliceUint64V(x.Ui64slice, e)
  1825. z.EncWriteMapElemKey()
  1826. if z.IsJSONHandle() {
  1827. z.WriteStr("\"Ui8slice\"")
  1828. } else {
  1829. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1830. }
  1831. z.EncWriteMapElemValue()
  1832. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1833. z.EncWriteMapElemKey()
  1834. if z.IsJSONHandle() {
  1835. z.WriteStr("\"Bslice\"")
  1836. } else {
  1837. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1838. }
  1839. z.EncWriteMapElemValue()
  1840. z.F.EncSliceBoolV(x.Bslice, e)
  1841. z.EncWriteMapElemKey()
  1842. if z.IsJSONHandle() {
  1843. z.WriteStr("\"Byslice\"")
  1844. } else {
  1845. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  1846. }
  1847. z.EncWriteMapElemValue()
  1848. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1849. z.EncWriteMapElemKey()
  1850. if z.IsJSONHandle() {
  1851. z.WriteStr("\"BytesSlice\"")
  1852. } else {
  1853. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  1854. }
  1855. z.EncWriteMapElemValue()
  1856. z.F.EncSliceBytesV(x.BytesSlice, e)
  1857. z.EncWriteMapElemKey()
  1858. if z.IsJSONHandle() {
  1859. z.WriteStr("\"Iptrslice\"")
  1860. } else {
  1861. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1862. }
  1863. z.EncWriteMapElemValue()
  1864. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1865. z.EncWriteMapElemKey()
  1866. if z.IsJSONHandle() {
  1867. z.WriteStr("\"WrapSliceInt64\"")
  1868. } else {
  1869. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1870. }
  1871. z.EncWriteMapElemValue()
  1872. x.WrapSliceInt64.CodecEncodeSelf(e)
  1873. z.EncWriteMapElemKey()
  1874. if z.IsJSONHandle() {
  1875. z.WriteStr("\"WrapSliceString\"")
  1876. } else {
  1877. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1878. }
  1879. z.EncWriteMapElemValue()
  1880. x.WrapSliceString.CodecEncodeSelf(e)
  1881. z.EncWriteMapElemKey()
  1882. if z.IsJSONHandle() {
  1883. z.WriteStr("\"Msi64\"")
  1884. } else {
  1885. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1886. }
  1887. z.EncWriteMapElemValue()
  1888. z.F.EncMapStringInt64V(x.Msi64, e)
  1889. z.EncWriteMapElemKey()
  1890. if z.IsJSONHandle() {
  1891. z.WriteStr("\"Msbytes\"")
  1892. } else {
  1893. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  1894. }
  1895. z.EncWriteMapElemValue()
  1896. z.F.EncMapStringBytesV(x.Msbytes, e)
  1897. z.EncWriteMapElemKey()
  1898. if z.IsJSONHandle() {
  1899. z.WriteStr("\"Simplef\"")
  1900. } else {
  1901. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  1902. }
  1903. z.EncWriteMapElemValue()
  1904. yy141 := &x.Simplef
  1905. yy141.CodecEncodeSelf(e)
  1906. z.EncWriteMapElemKey()
  1907. if z.IsJSONHandle() {
  1908. z.WriteStr("\"SstrUi64T\"")
  1909. } else {
  1910. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  1911. }
  1912. z.EncWriteMapElemValue()
  1913. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1914. z.EncWriteMapElemKey()
  1915. if z.IsJSONHandle() {
  1916. z.WriteStr("\"MstrUi64T\"")
  1917. } else {
  1918. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  1919. }
  1920. z.EncWriteMapElemValue()
  1921. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1922. z.EncWriteMapElemKey()
  1923. if z.IsJSONHandle() {
  1924. z.WriteStr("\"AS\"")
  1925. } else {
  1926. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  1927. }
  1928. z.EncWriteMapElemValue()
  1929. if z.EncBasicHandle().StringToRaw {
  1930. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1931. } else {
  1932. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1933. }
  1934. z.EncWriteMapElemKey()
  1935. if z.IsJSONHandle() {
  1936. z.WriteStr("\"AI64\"")
  1937. } else {
  1938. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  1939. }
  1940. z.EncWriteMapElemValue()
  1941. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1942. z.EncWriteMapElemKey()
  1943. if z.IsJSONHandle() {
  1944. z.WriteStr("\"AI16\"")
  1945. } else {
  1946. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  1947. }
  1948. z.EncWriteMapElemValue()
  1949. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1950. z.EncWriteMapElemKey()
  1951. if z.IsJSONHandle() {
  1952. z.WriteStr("\"AUi64\"")
  1953. } else {
  1954. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  1955. }
  1956. z.EncWriteMapElemValue()
  1957. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1958. z.EncWriteMapElemKey()
  1959. if z.IsJSONHandle() {
  1960. z.WriteStr("\"ASslice\"")
  1961. } else {
  1962. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  1963. }
  1964. z.EncWriteMapElemValue()
  1965. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1966. z.EncWriteMapElemKey()
  1967. if z.IsJSONHandle() {
  1968. z.WriteStr("\"AI64slice\"")
  1969. } else {
  1970. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  1971. }
  1972. z.EncWriteMapElemValue()
  1973. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1974. z.EncWriteMapElemKey()
  1975. if z.IsJSONHandle() {
  1976. z.WriteStr("\"AUi64slice\"")
  1977. } else {
  1978. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  1979. }
  1980. z.EncWriteMapElemValue()
  1981. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1982. z.EncWriteMapElemKey()
  1983. if z.IsJSONHandle() {
  1984. z.WriteStr("\"AF64slice\"")
  1985. } else {
  1986. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  1987. }
  1988. z.EncWriteMapElemValue()
  1989. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1990. z.EncWriteMapElemKey()
  1991. if z.IsJSONHandle() {
  1992. z.WriteStr("\"AF32slice\"")
  1993. } else {
  1994. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  1995. }
  1996. z.EncWriteMapElemValue()
  1997. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1998. z.EncWriteMapElemKey()
  1999. if z.IsJSONHandle() {
  2000. z.WriteStr("\"AMSU16\"")
  2001. } else {
  2002. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  2003. }
  2004. z.EncWriteMapElemValue()
  2005. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  2006. z.EncWriteMapElemKey()
  2007. if z.IsJSONHandle() {
  2008. z.WriteStr("\"AI64arr0\"")
  2009. } else {
  2010. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  2011. }
  2012. z.EncWriteMapElemValue()
  2013. yy155 := &x.AnonInTestStruc.AI64arr0
  2014. h.encArray0int64((*[0]int64)(yy155), e)
  2015. z.EncWriteMapElemKey()
  2016. if z.IsJSONHandle() {
  2017. z.WriteStr("\"AI64slice0\"")
  2018. } else {
  2019. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  2020. }
  2021. z.EncWriteMapElemValue()
  2022. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  2023. z.EncWriteMapElemKey()
  2024. if z.IsJSONHandle() {
  2025. z.WriteStr("\"AUi64sliceN\"")
  2026. } else {
  2027. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  2028. }
  2029. z.EncWriteMapElemValue()
  2030. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  2031. z.EncWriteMapElemKey()
  2032. if z.IsJSONHandle() {
  2033. z.WriteStr("\"AMSU16N\"")
  2034. } else {
  2035. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  2036. }
  2037. z.EncWriteMapElemValue()
  2038. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  2039. z.EncWriteMapElemKey()
  2040. if z.IsJSONHandle() {
  2041. z.WriteStr("\"AMSU16E\"")
  2042. } else {
  2043. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  2044. }
  2045. z.EncWriteMapElemValue()
  2046. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  2047. z.EncWriteMapElemKey()
  2048. if z.IsJSONHandle() {
  2049. z.WriteStr("\"NotAnon\"")
  2050. } else {
  2051. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  2052. }
  2053. z.EncWriteMapElemValue()
  2054. yy161 := &x.NotAnon
  2055. yy161.CodecEncodeSelf(e)
  2056. z.EncWriteMapElemKey()
  2057. if z.IsJSONHandle() {
  2058. z.WriteStr("\"Nmap\"")
  2059. } else {
  2060. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  2061. }
  2062. z.EncWriteMapElemValue()
  2063. z.F.EncMapStringBoolV(x.Nmap, e)
  2064. z.EncWriteMapElemKey()
  2065. if z.IsJSONHandle() {
  2066. z.WriteStr("\"Nslice\"")
  2067. } else {
  2068. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  2069. }
  2070. z.EncWriteMapElemValue()
  2071. r.EncodeStringBytesRaw([]byte(x.Nslice))
  2072. z.EncWriteMapElemKey()
  2073. if z.IsJSONHandle() {
  2074. z.WriteStr("\"Nint64\"")
  2075. } else {
  2076. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  2077. }
  2078. z.EncWriteMapElemValue()
  2079. if yyn54 {
  2080. r.EncodeNil()
  2081. } else {
  2082. yy165 := *x.Nint64
  2083. r.EncodeInt(int64(yy165))
  2084. }
  2085. z.EncWriteMapEnd()
  2086. }
  2087. }
  2088. }
  2089. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  2090. var h codecSelfer19780
  2091. z, r := GenHelperDecoder(d)
  2092. _, _, _ = h, z, r
  2093. yyct2 := r.ContainerType()
  2094. if yyct2 == codecSelferValueTypeMap19780 {
  2095. yyl2 := z.DecReadMapStart()
  2096. if yyl2 == 0 {
  2097. z.DecReadMapEnd()
  2098. } else {
  2099. x.codecDecodeSelfFromMap(yyl2, d)
  2100. }
  2101. } else if yyct2 == codecSelferValueTypeArray19780 {
  2102. yyl2 := z.DecReadArrayStart()
  2103. if yyl2 == 0 {
  2104. z.DecReadArrayEnd()
  2105. } else {
  2106. x.codecDecodeSelfFromArray(yyl2, d)
  2107. }
  2108. } else {
  2109. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2110. }
  2111. }
  2112. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  2113. var h codecSelfer19780
  2114. z, r := GenHelperDecoder(d)
  2115. _, _, _ = h, z, r
  2116. var yyhl3 bool = l >= 0
  2117. for yyj3 := 0; ; yyj3++ {
  2118. if yyhl3 {
  2119. if yyj3 >= l {
  2120. break
  2121. }
  2122. } else {
  2123. if r.CheckBreak() {
  2124. break
  2125. }
  2126. }
  2127. z.DecReadMapElemKey()
  2128. yys3 := z.StringView(r.DecodeStringAsBytes())
  2129. z.DecReadMapElemValue()
  2130. switch yys3 {
  2131. case "S":
  2132. if r.TryDecodeAsNil() {
  2133. x.S = ""
  2134. } else {
  2135. x.S = (string)(string(r.DecodeStringAsBytes()))
  2136. }
  2137. case "I64":
  2138. if r.TryDecodeAsNil() {
  2139. x.I64 = 0
  2140. } else {
  2141. x.I64 = (int64)(r.DecodeInt64())
  2142. }
  2143. case "I32":
  2144. if r.TryDecodeAsNil() {
  2145. x.I32 = 0
  2146. } else {
  2147. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2148. }
  2149. case "I16":
  2150. if r.TryDecodeAsNil() {
  2151. x.I16 = 0
  2152. } else {
  2153. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2154. }
  2155. case "I8":
  2156. if r.TryDecodeAsNil() {
  2157. x.I8 = 0
  2158. } else {
  2159. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2160. }
  2161. case "I64n":
  2162. if r.TryDecodeAsNil() {
  2163. x.I64n = 0
  2164. } else {
  2165. x.I64n = (int64)(r.DecodeInt64())
  2166. }
  2167. case "I32n":
  2168. if r.TryDecodeAsNil() {
  2169. x.I32n = 0
  2170. } else {
  2171. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2172. }
  2173. case "I16n":
  2174. if r.TryDecodeAsNil() {
  2175. x.I16n = 0
  2176. } else {
  2177. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2178. }
  2179. case "I8n":
  2180. if r.TryDecodeAsNil() {
  2181. x.I8n = 0
  2182. } else {
  2183. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2184. }
  2185. case "Ui64":
  2186. if r.TryDecodeAsNil() {
  2187. x.Ui64 = 0
  2188. } else {
  2189. x.Ui64 = (uint64)(r.DecodeUint64())
  2190. }
  2191. case "Ui32":
  2192. if r.TryDecodeAsNil() {
  2193. x.Ui32 = 0
  2194. } else {
  2195. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2196. }
  2197. case "Ui16":
  2198. if r.TryDecodeAsNil() {
  2199. x.Ui16 = 0
  2200. } else {
  2201. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2202. }
  2203. case "Ui8":
  2204. if r.TryDecodeAsNil() {
  2205. x.Ui8 = 0
  2206. } else {
  2207. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2208. }
  2209. case "F64":
  2210. if r.TryDecodeAsNil() {
  2211. x.F64 = 0
  2212. } else {
  2213. x.F64 = (float64)(r.DecodeFloat64())
  2214. }
  2215. case "F32":
  2216. if r.TryDecodeAsNil() {
  2217. x.F32 = 0
  2218. } else {
  2219. x.F32 = (float32)(z.DecDecodeFloat32())
  2220. }
  2221. case "B":
  2222. if r.TryDecodeAsNil() {
  2223. x.B = false
  2224. } else {
  2225. x.B = (bool)(r.DecodeBool())
  2226. }
  2227. case "By":
  2228. if r.TryDecodeAsNil() {
  2229. x.By = 0
  2230. } else {
  2231. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2232. }
  2233. case "Sslice":
  2234. if r.TryDecodeAsNil() {
  2235. x.Sslice = nil
  2236. } else {
  2237. z.F.DecSliceStringX(&x.Sslice, d)
  2238. }
  2239. case "I64slice":
  2240. if r.TryDecodeAsNil() {
  2241. x.I64slice = nil
  2242. } else {
  2243. z.F.DecSliceInt64X(&x.I64slice, d)
  2244. }
  2245. case "I16slice":
  2246. if r.TryDecodeAsNil() {
  2247. x.I16slice = nil
  2248. } else {
  2249. z.F.DecSliceInt16X(&x.I16slice, d)
  2250. }
  2251. case "Ui64slice":
  2252. if r.TryDecodeAsNil() {
  2253. x.Ui64slice = nil
  2254. } else {
  2255. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2256. }
  2257. case "Ui8slice":
  2258. if r.TryDecodeAsNil() {
  2259. x.Ui8slice = nil
  2260. } else {
  2261. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2262. }
  2263. case "Bslice":
  2264. if r.TryDecodeAsNil() {
  2265. x.Bslice = nil
  2266. } else {
  2267. z.F.DecSliceBoolX(&x.Bslice, d)
  2268. }
  2269. case "Byslice":
  2270. if r.TryDecodeAsNil() {
  2271. x.Byslice = nil
  2272. } else {
  2273. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2274. }
  2275. case "BytesSlice":
  2276. if r.TryDecodeAsNil() {
  2277. x.BytesSlice = nil
  2278. } else {
  2279. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2280. }
  2281. case "Iptrslice":
  2282. if r.TryDecodeAsNil() {
  2283. x.Iptrslice = nil
  2284. } else {
  2285. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2286. }
  2287. case "WrapSliceInt64":
  2288. if r.TryDecodeAsNil() {
  2289. x.WrapSliceInt64 = nil
  2290. } else {
  2291. x.WrapSliceInt64.CodecDecodeSelf(d)
  2292. }
  2293. case "WrapSliceString":
  2294. if r.TryDecodeAsNil() {
  2295. x.WrapSliceString = nil
  2296. } else {
  2297. x.WrapSliceString.CodecDecodeSelf(d)
  2298. }
  2299. case "Msi64":
  2300. if r.TryDecodeAsNil() {
  2301. x.Msi64 = nil
  2302. } else {
  2303. z.F.DecMapStringInt64X(&x.Msi64, d)
  2304. }
  2305. case "Msbytes":
  2306. if r.TryDecodeAsNil() {
  2307. x.Msbytes = nil
  2308. } else {
  2309. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2310. }
  2311. case "Simplef":
  2312. if r.TryDecodeAsNil() {
  2313. x.Simplef = testSimpleFields{}
  2314. } else {
  2315. x.Simplef.CodecDecodeSelf(d)
  2316. }
  2317. case "SstrUi64T":
  2318. if r.TryDecodeAsNil() {
  2319. x.SstrUi64T = nil
  2320. } else {
  2321. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2322. }
  2323. case "MstrUi64T":
  2324. if r.TryDecodeAsNil() {
  2325. x.MstrUi64T = nil
  2326. } else {
  2327. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2328. }
  2329. case "AS":
  2330. if r.TryDecodeAsNil() {
  2331. x.AnonInTestStruc.AS = ""
  2332. } else {
  2333. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2334. }
  2335. case "AI64":
  2336. if r.TryDecodeAsNil() {
  2337. x.AnonInTestStruc.AI64 = 0
  2338. } else {
  2339. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2340. }
  2341. case "AI16":
  2342. if r.TryDecodeAsNil() {
  2343. x.AnonInTestStruc.AI16 = 0
  2344. } else {
  2345. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2346. }
  2347. case "AUi64":
  2348. if r.TryDecodeAsNil() {
  2349. x.AnonInTestStruc.AUi64 = 0
  2350. } else {
  2351. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2352. }
  2353. case "ASslice":
  2354. if r.TryDecodeAsNil() {
  2355. x.AnonInTestStruc.ASslice = nil
  2356. } else {
  2357. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2358. }
  2359. case "AI64slice":
  2360. if r.TryDecodeAsNil() {
  2361. x.AnonInTestStruc.AI64slice = nil
  2362. } else {
  2363. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2364. }
  2365. case "AUi64slice":
  2366. if r.TryDecodeAsNil() {
  2367. x.AnonInTestStruc.AUi64slice = nil
  2368. } else {
  2369. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2370. }
  2371. case "AF64slice":
  2372. if r.TryDecodeAsNil() {
  2373. x.AnonInTestStruc.AF64slice = nil
  2374. } else {
  2375. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2376. }
  2377. case "AF32slice":
  2378. if r.TryDecodeAsNil() {
  2379. x.AnonInTestStruc.AF32slice = nil
  2380. } else {
  2381. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2382. }
  2383. case "AMSU16":
  2384. if r.TryDecodeAsNil() {
  2385. x.AnonInTestStruc.AMSU16 = nil
  2386. } else {
  2387. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2388. }
  2389. case "AI64arr0":
  2390. if r.TryDecodeAsNil() {
  2391. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  2392. } else {
  2393. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2394. }
  2395. case "AI64slice0":
  2396. if r.TryDecodeAsNil() {
  2397. x.AnonInTestStruc.AI64slice0 = nil
  2398. } else {
  2399. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2400. }
  2401. case "AUi64sliceN":
  2402. if r.TryDecodeAsNil() {
  2403. x.AnonInTestStruc.AUi64sliceN = nil
  2404. } else {
  2405. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2406. }
  2407. case "AMSU16N":
  2408. if r.TryDecodeAsNil() {
  2409. x.AnonInTestStruc.AMSU16N = nil
  2410. } else {
  2411. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2412. }
  2413. case "AMSU16E":
  2414. if r.TryDecodeAsNil() {
  2415. x.AnonInTestStruc.AMSU16E = nil
  2416. } else {
  2417. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2418. }
  2419. case "NotAnon":
  2420. if r.TryDecodeAsNil() {
  2421. x.NotAnon = AnonInTestStruc{}
  2422. } else {
  2423. x.NotAnon.CodecDecodeSelf(d)
  2424. }
  2425. case "Nmap":
  2426. if r.TryDecodeAsNil() {
  2427. x.Nmap = nil
  2428. } else {
  2429. z.F.DecMapStringBoolX(&x.Nmap, d)
  2430. }
  2431. case "Nslice":
  2432. if r.TryDecodeAsNil() {
  2433. x.Nslice = nil
  2434. } else {
  2435. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2436. }
  2437. case "Nint64":
  2438. if r.TryDecodeAsNil() {
  2439. if x.Nint64 != nil { // remove the if-true
  2440. x.Nint64 = nil
  2441. }
  2442. } else {
  2443. if x.Nint64 == nil {
  2444. x.Nint64 = new(int64)
  2445. }
  2446. *x.Nint64 = (int64)(r.DecodeInt64())
  2447. }
  2448. default:
  2449. z.DecStructFieldNotFound(-1, yys3)
  2450. } // end switch yys3
  2451. } // end for yyj3
  2452. z.DecReadMapEnd()
  2453. }
  2454. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  2455. var h codecSelfer19780
  2456. z, r := GenHelperDecoder(d)
  2457. _, _, _ = h, z, r
  2458. var yyj83 int
  2459. var yyb83 bool
  2460. var yyhl83 bool = l >= 0
  2461. yyj83++
  2462. if yyhl83 {
  2463. yyb83 = yyj83 > l
  2464. } else {
  2465. yyb83 = r.CheckBreak()
  2466. }
  2467. if yyb83 {
  2468. z.DecReadArrayEnd()
  2469. return
  2470. }
  2471. z.DecReadArrayElem()
  2472. if r.TryDecodeAsNil() {
  2473. x.S = ""
  2474. } else {
  2475. x.S = (string)(string(r.DecodeStringAsBytes()))
  2476. }
  2477. yyj83++
  2478. if yyhl83 {
  2479. yyb83 = yyj83 > l
  2480. } else {
  2481. yyb83 = r.CheckBreak()
  2482. }
  2483. if yyb83 {
  2484. z.DecReadArrayEnd()
  2485. return
  2486. }
  2487. z.DecReadArrayElem()
  2488. if r.TryDecodeAsNil() {
  2489. x.I64 = 0
  2490. } else {
  2491. x.I64 = (int64)(r.DecodeInt64())
  2492. }
  2493. yyj83++
  2494. if yyhl83 {
  2495. yyb83 = yyj83 > l
  2496. } else {
  2497. yyb83 = r.CheckBreak()
  2498. }
  2499. if yyb83 {
  2500. z.DecReadArrayEnd()
  2501. return
  2502. }
  2503. z.DecReadArrayElem()
  2504. if r.TryDecodeAsNil() {
  2505. x.I32 = 0
  2506. } else {
  2507. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2508. }
  2509. yyj83++
  2510. if yyhl83 {
  2511. yyb83 = yyj83 > l
  2512. } else {
  2513. yyb83 = r.CheckBreak()
  2514. }
  2515. if yyb83 {
  2516. z.DecReadArrayEnd()
  2517. return
  2518. }
  2519. z.DecReadArrayElem()
  2520. if r.TryDecodeAsNil() {
  2521. x.I16 = 0
  2522. } else {
  2523. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2524. }
  2525. yyj83++
  2526. if yyhl83 {
  2527. yyb83 = yyj83 > l
  2528. } else {
  2529. yyb83 = r.CheckBreak()
  2530. }
  2531. if yyb83 {
  2532. z.DecReadArrayEnd()
  2533. return
  2534. }
  2535. z.DecReadArrayElem()
  2536. if r.TryDecodeAsNil() {
  2537. x.I8 = 0
  2538. } else {
  2539. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2540. }
  2541. yyj83++
  2542. if yyhl83 {
  2543. yyb83 = yyj83 > l
  2544. } else {
  2545. yyb83 = r.CheckBreak()
  2546. }
  2547. if yyb83 {
  2548. z.DecReadArrayEnd()
  2549. return
  2550. }
  2551. z.DecReadArrayElem()
  2552. if r.TryDecodeAsNil() {
  2553. x.I64n = 0
  2554. } else {
  2555. x.I64n = (int64)(r.DecodeInt64())
  2556. }
  2557. yyj83++
  2558. if yyhl83 {
  2559. yyb83 = yyj83 > l
  2560. } else {
  2561. yyb83 = r.CheckBreak()
  2562. }
  2563. if yyb83 {
  2564. z.DecReadArrayEnd()
  2565. return
  2566. }
  2567. z.DecReadArrayElem()
  2568. if r.TryDecodeAsNil() {
  2569. x.I32n = 0
  2570. } else {
  2571. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2572. }
  2573. yyj83++
  2574. if yyhl83 {
  2575. yyb83 = yyj83 > l
  2576. } else {
  2577. yyb83 = r.CheckBreak()
  2578. }
  2579. if yyb83 {
  2580. z.DecReadArrayEnd()
  2581. return
  2582. }
  2583. z.DecReadArrayElem()
  2584. if r.TryDecodeAsNil() {
  2585. x.I16n = 0
  2586. } else {
  2587. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2588. }
  2589. yyj83++
  2590. if yyhl83 {
  2591. yyb83 = yyj83 > l
  2592. } else {
  2593. yyb83 = r.CheckBreak()
  2594. }
  2595. if yyb83 {
  2596. z.DecReadArrayEnd()
  2597. return
  2598. }
  2599. z.DecReadArrayElem()
  2600. if r.TryDecodeAsNil() {
  2601. x.I8n = 0
  2602. } else {
  2603. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2604. }
  2605. yyj83++
  2606. if yyhl83 {
  2607. yyb83 = yyj83 > l
  2608. } else {
  2609. yyb83 = r.CheckBreak()
  2610. }
  2611. if yyb83 {
  2612. z.DecReadArrayEnd()
  2613. return
  2614. }
  2615. z.DecReadArrayElem()
  2616. if r.TryDecodeAsNil() {
  2617. x.Ui64 = 0
  2618. } else {
  2619. x.Ui64 = (uint64)(r.DecodeUint64())
  2620. }
  2621. yyj83++
  2622. if yyhl83 {
  2623. yyb83 = yyj83 > l
  2624. } else {
  2625. yyb83 = r.CheckBreak()
  2626. }
  2627. if yyb83 {
  2628. z.DecReadArrayEnd()
  2629. return
  2630. }
  2631. z.DecReadArrayElem()
  2632. if r.TryDecodeAsNil() {
  2633. x.Ui32 = 0
  2634. } else {
  2635. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2636. }
  2637. yyj83++
  2638. if yyhl83 {
  2639. yyb83 = yyj83 > l
  2640. } else {
  2641. yyb83 = r.CheckBreak()
  2642. }
  2643. if yyb83 {
  2644. z.DecReadArrayEnd()
  2645. return
  2646. }
  2647. z.DecReadArrayElem()
  2648. if r.TryDecodeAsNil() {
  2649. x.Ui16 = 0
  2650. } else {
  2651. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2652. }
  2653. yyj83++
  2654. if yyhl83 {
  2655. yyb83 = yyj83 > l
  2656. } else {
  2657. yyb83 = r.CheckBreak()
  2658. }
  2659. if yyb83 {
  2660. z.DecReadArrayEnd()
  2661. return
  2662. }
  2663. z.DecReadArrayElem()
  2664. if r.TryDecodeAsNil() {
  2665. x.Ui8 = 0
  2666. } else {
  2667. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2668. }
  2669. yyj83++
  2670. if yyhl83 {
  2671. yyb83 = yyj83 > l
  2672. } else {
  2673. yyb83 = r.CheckBreak()
  2674. }
  2675. if yyb83 {
  2676. z.DecReadArrayEnd()
  2677. return
  2678. }
  2679. z.DecReadArrayElem()
  2680. if r.TryDecodeAsNil() {
  2681. x.F64 = 0
  2682. } else {
  2683. x.F64 = (float64)(r.DecodeFloat64())
  2684. }
  2685. yyj83++
  2686. if yyhl83 {
  2687. yyb83 = yyj83 > l
  2688. } else {
  2689. yyb83 = r.CheckBreak()
  2690. }
  2691. if yyb83 {
  2692. z.DecReadArrayEnd()
  2693. return
  2694. }
  2695. z.DecReadArrayElem()
  2696. if r.TryDecodeAsNil() {
  2697. x.F32 = 0
  2698. } else {
  2699. x.F32 = (float32)(z.DecDecodeFloat32())
  2700. }
  2701. yyj83++
  2702. if yyhl83 {
  2703. yyb83 = yyj83 > l
  2704. } else {
  2705. yyb83 = r.CheckBreak()
  2706. }
  2707. if yyb83 {
  2708. z.DecReadArrayEnd()
  2709. return
  2710. }
  2711. z.DecReadArrayElem()
  2712. if r.TryDecodeAsNil() {
  2713. x.B = false
  2714. } else {
  2715. x.B = (bool)(r.DecodeBool())
  2716. }
  2717. yyj83++
  2718. if yyhl83 {
  2719. yyb83 = yyj83 > l
  2720. } else {
  2721. yyb83 = r.CheckBreak()
  2722. }
  2723. if yyb83 {
  2724. z.DecReadArrayEnd()
  2725. return
  2726. }
  2727. z.DecReadArrayElem()
  2728. if r.TryDecodeAsNil() {
  2729. x.By = 0
  2730. } else {
  2731. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2732. }
  2733. yyj83++
  2734. if yyhl83 {
  2735. yyb83 = yyj83 > l
  2736. } else {
  2737. yyb83 = r.CheckBreak()
  2738. }
  2739. if yyb83 {
  2740. z.DecReadArrayEnd()
  2741. return
  2742. }
  2743. z.DecReadArrayElem()
  2744. if r.TryDecodeAsNil() {
  2745. x.Sslice = nil
  2746. } else {
  2747. z.F.DecSliceStringX(&x.Sslice, d)
  2748. }
  2749. yyj83++
  2750. if yyhl83 {
  2751. yyb83 = yyj83 > l
  2752. } else {
  2753. yyb83 = r.CheckBreak()
  2754. }
  2755. if yyb83 {
  2756. z.DecReadArrayEnd()
  2757. return
  2758. }
  2759. z.DecReadArrayElem()
  2760. if r.TryDecodeAsNil() {
  2761. x.I64slice = nil
  2762. } else {
  2763. z.F.DecSliceInt64X(&x.I64slice, d)
  2764. }
  2765. yyj83++
  2766. if yyhl83 {
  2767. yyb83 = yyj83 > l
  2768. } else {
  2769. yyb83 = r.CheckBreak()
  2770. }
  2771. if yyb83 {
  2772. z.DecReadArrayEnd()
  2773. return
  2774. }
  2775. z.DecReadArrayElem()
  2776. if r.TryDecodeAsNil() {
  2777. x.I16slice = nil
  2778. } else {
  2779. z.F.DecSliceInt16X(&x.I16slice, d)
  2780. }
  2781. yyj83++
  2782. if yyhl83 {
  2783. yyb83 = yyj83 > l
  2784. } else {
  2785. yyb83 = r.CheckBreak()
  2786. }
  2787. if yyb83 {
  2788. z.DecReadArrayEnd()
  2789. return
  2790. }
  2791. z.DecReadArrayElem()
  2792. if r.TryDecodeAsNil() {
  2793. x.Ui64slice = nil
  2794. } else {
  2795. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2796. }
  2797. yyj83++
  2798. if yyhl83 {
  2799. yyb83 = yyj83 > l
  2800. } else {
  2801. yyb83 = r.CheckBreak()
  2802. }
  2803. if yyb83 {
  2804. z.DecReadArrayEnd()
  2805. return
  2806. }
  2807. z.DecReadArrayElem()
  2808. if r.TryDecodeAsNil() {
  2809. x.Ui8slice = nil
  2810. } else {
  2811. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2812. }
  2813. yyj83++
  2814. if yyhl83 {
  2815. yyb83 = yyj83 > l
  2816. } else {
  2817. yyb83 = r.CheckBreak()
  2818. }
  2819. if yyb83 {
  2820. z.DecReadArrayEnd()
  2821. return
  2822. }
  2823. z.DecReadArrayElem()
  2824. if r.TryDecodeAsNil() {
  2825. x.Bslice = nil
  2826. } else {
  2827. z.F.DecSliceBoolX(&x.Bslice, d)
  2828. }
  2829. yyj83++
  2830. if yyhl83 {
  2831. yyb83 = yyj83 > l
  2832. } else {
  2833. yyb83 = r.CheckBreak()
  2834. }
  2835. if yyb83 {
  2836. z.DecReadArrayEnd()
  2837. return
  2838. }
  2839. z.DecReadArrayElem()
  2840. if r.TryDecodeAsNil() {
  2841. x.Byslice = nil
  2842. } else {
  2843. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2844. }
  2845. yyj83++
  2846. if yyhl83 {
  2847. yyb83 = yyj83 > l
  2848. } else {
  2849. yyb83 = r.CheckBreak()
  2850. }
  2851. if yyb83 {
  2852. z.DecReadArrayEnd()
  2853. return
  2854. }
  2855. z.DecReadArrayElem()
  2856. if r.TryDecodeAsNil() {
  2857. x.BytesSlice = nil
  2858. } else {
  2859. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2860. }
  2861. yyj83++
  2862. if yyhl83 {
  2863. yyb83 = yyj83 > l
  2864. } else {
  2865. yyb83 = r.CheckBreak()
  2866. }
  2867. if yyb83 {
  2868. z.DecReadArrayEnd()
  2869. return
  2870. }
  2871. z.DecReadArrayElem()
  2872. if r.TryDecodeAsNil() {
  2873. x.Iptrslice = nil
  2874. } else {
  2875. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2876. }
  2877. yyj83++
  2878. if yyhl83 {
  2879. yyb83 = yyj83 > l
  2880. } else {
  2881. yyb83 = r.CheckBreak()
  2882. }
  2883. if yyb83 {
  2884. z.DecReadArrayEnd()
  2885. return
  2886. }
  2887. z.DecReadArrayElem()
  2888. if r.TryDecodeAsNil() {
  2889. x.WrapSliceInt64 = nil
  2890. } else {
  2891. x.WrapSliceInt64.CodecDecodeSelf(d)
  2892. }
  2893. yyj83++
  2894. if yyhl83 {
  2895. yyb83 = yyj83 > l
  2896. } else {
  2897. yyb83 = r.CheckBreak()
  2898. }
  2899. if yyb83 {
  2900. z.DecReadArrayEnd()
  2901. return
  2902. }
  2903. z.DecReadArrayElem()
  2904. if r.TryDecodeAsNil() {
  2905. x.WrapSliceString = nil
  2906. } else {
  2907. x.WrapSliceString.CodecDecodeSelf(d)
  2908. }
  2909. yyj83++
  2910. if yyhl83 {
  2911. yyb83 = yyj83 > l
  2912. } else {
  2913. yyb83 = r.CheckBreak()
  2914. }
  2915. if yyb83 {
  2916. z.DecReadArrayEnd()
  2917. return
  2918. }
  2919. z.DecReadArrayElem()
  2920. if r.TryDecodeAsNil() {
  2921. x.Msi64 = nil
  2922. } else {
  2923. z.F.DecMapStringInt64X(&x.Msi64, d)
  2924. }
  2925. yyj83++
  2926. if yyhl83 {
  2927. yyb83 = yyj83 > l
  2928. } else {
  2929. yyb83 = r.CheckBreak()
  2930. }
  2931. if yyb83 {
  2932. z.DecReadArrayEnd()
  2933. return
  2934. }
  2935. z.DecReadArrayElem()
  2936. if r.TryDecodeAsNil() {
  2937. x.Msbytes = nil
  2938. } else {
  2939. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2940. }
  2941. yyj83++
  2942. if yyhl83 {
  2943. yyb83 = yyj83 > l
  2944. } else {
  2945. yyb83 = r.CheckBreak()
  2946. }
  2947. if yyb83 {
  2948. z.DecReadArrayEnd()
  2949. return
  2950. }
  2951. z.DecReadArrayElem()
  2952. if r.TryDecodeAsNil() {
  2953. x.Simplef = testSimpleFields{}
  2954. } else {
  2955. x.Simplef.CodecDecodeSelf(d)
  2956. }
  2957. yyj83++
  2958. if yyhl83 {
  2959. yyb83 = yyj83 > l
  2960. } else {
  2961. yyb83 = r.CheckBreak()
  2962. }
  2963. if yyb83 {
  2964. z.DecReadArrayEnd()
  2965. return
  2966. }
  2967. z.DecReadArrayElem()
  2968. if r.TryDecodeAsNil() {
  2969. x.SstrUi64T = nil
  2970. } else {
  2971. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2972. }
  2973. yyj83++
  2974. if yyhl83 {
  2975. yyb83 = yyj83 > l
  2976. } else {
  2977. yyb83 = r.CheckBreak()
  2978. }
  2979. if yyb83 {
  2980. z.DecReadArrayEnd()
  2981. return
  2982. }
  2983. z.DecReadArrayElem()
  2984. if r.TryDecodeAsNil() {
  2985. x.MstrUi64T = nil
  2986. } else {
  2987. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2988. }
  2989. yyj83++
  2990. if yyhl83 {
  2991. yyb83 = yyj83 > l
  2992. } else {
  2993. yyb83 = r.CheckBreak()
  2994. }
  2995. if yyb83 {
  2996. z.DecReadArrayEnd()
  2997. return
  2998. }
  2999. z.DecReadArrayElem()
  3000. if r.TryDecodeAsNil() {
  3001. x.AnonInTestStruc.AS = ""
  3002. } else {
  3003. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  3004. }
  3005. yyj83++
  3006. if yyhl83 {
  3007. yyb83 = yyj83 > l
  3008. } else {
  3009. yyb83 = r.CheckBreak()
  3010. }
  3011. if yyb83 {
  3012. z.DecReadArrayEnd()
  3013. return
  3014. }
  3015. z.DecReadArrayElem()
  3016. if r.TryDecodeAsNil() {
  3017. x.AnonInTestStruc.AI64 = 0
  3018. } else {
  3019. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  3020. }
  3021. yyj83++
  3022. if yyhl83 {
  3023. yyb83 = yyj83 > l
  3024. } else {
  3025. yyb83 = r.CheckBreak()
  3026. }
  3027. if yyb83 {
  3028. z.DecReadArrayEnd()
  3029. return
  3030. }
  3031. z.DecReadArrayElem()
  3032. if r.TryDecodeAsNil() {
  3033. x.AnonInTestStruc.AI16 = 0
  3034. } else {
  3035. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3036. }
  3037. yyj83++
  3038. if yyhl83 {
  3039. yyb83 = yyj83 > l
  3040. } else {
  3041. yyb83 = r.CheckBreak()
  3042. }
  3043. if yyb83 {
  3044. z.DecReadArrayEnd()
  3045. return
  3046. }
  3047. z.DecReadArrayElem()
  3048. if r.TryDecodeAsNil() {
  3049. x.AnonInTestStruc.AUi64 = 0
  3050. } else {
  3051. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3052. }
  3053. yyj83++
  3054. if yyhl83 {
  3055. yyb83 = yyj83 > l
  3056. } else {
  3057. yyb83 = r.CheckBreak()
  3058. }
  3059. if yyb83 {
  3060. z.DecReadArrayEnd()
  3061. return
  3062. }
  3063. z.DecReadArrayElem()
  3064. if r.TryDecodeAsNil() {
  3065. x.AnonInTestStruc.ASslice = nil
  3066. } else {
  3067. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  3068. }
  3069. yyj83++
  3070. if yyhl83 {
  3071. yyb83 = yyj83 > l
  3072. } else {
  3073. yyb83 = r.CheckBreak()
  3074. }
  3075. if yyb83 {
  3076. z.DecReadArrayEnd()
  3077. return
  3078. }
  3079. z.DecReadArrayElem()
  3080. if r.TryDecodeAsNil() {
  3081. x.AnonInTestStruc.AI64slice = nil
  3082. } else {
  3083. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  3084. }
  3085. yyj83++
  3086. if yyhl83 {
  3087. yyb83 = yyj83 > l
  3088. } else {
  3089. yyb83 = r.CheckBreak()
  3090. }
  3091. if yyb83 {
  3092. z.DecReadArrayEnd()
  3093. return
  3094. }
  3095. z.DecReadArrayElem()
  3096. if r.TryDecodeAsNil() {
  3097. x.AnonInTestStruc.AUi64slice = nil
  3098. } else {
  3099. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  3100. }
  3101. yyj83++
  3102. if yyhl83 {
  3103. yyb83 = yyj83 > l
  3104. } else {
  3105. yyb83 = r.CheckBreak()
  3106. }
  3107. if yyb83 {
  3108. z.DecReadArrayEnd()
  3109. return
  3110. }
  3111. z.DecReadArrayElem()
  3112. if r.TryDecodeAsNil() {
  3113. x.AnonInTestStruc.AF64slice = nil
  3114. } else {
  3115. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  3116. }
  3117. yyj83++
  3118. if yyhl83 {
  3119. yyb83 = yyj83 > l
  3120. } else {
  3121. yyb83 = r.CheckBreak()
  3122. }
  3123. if yyb83 {
  3124. z.DecReadArrayEnd()
  3125. return
  3126. }
  3127. z.DecReadArrayElem()
  3128. if r.TryDecodeAsNil() {
  3129. x.AnonInTestStruc.AF32slice = nil
  3130. } else {
  3131. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  3132. }
  3133. yyj83++
  3134. if yyhl83 {
  3135. yyb83 = yyj83 > l
  3136. } else {
  3137. yyb83 = r.CheckBreak()
  3138. }
  3139. if yyb83 {
  3140. z.DecReadArrayEnd()
  3141. return
  3142. }
  3143. z.DecReadArrayElem()
  3144. if r.TryDecodeAsNil() {
  3145. x.AnonInTestStruc.AMSU16 = nil
  3146. } else {
  3147. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  3148. }
  3149. yyj83++
  3150. if yyhl83 {
  3151. yyb83 = yyj83 > l
  3152. } else {
  3153. yyb83 = r.CheckBreak()
  3154. }
  3155. if yyb83 {
  3156. z.DecReadArrayEnd()
  3157. return
  3158. }
  3159. z.DecReadArrayElem()
  3160. if r.TryDecodeAsNil() {
  3161. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3162. } else {
  3163. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  3164. }
  3165. yyj83++
  3166. if yyhl83 {
  3167. yyb83 = yyj83 > l
  3168. } else {
  3169. yyb83 = r.CheckBreak()
  3170. }
  3171. if yyb83 {
  3172. z.DecReadArrayEnd()
  3173. return
  3174. }
  3175. z.DecReadArrayElem()
  3176. if r.TryDecodeAsNil() {
  3177. x.AnonInTestStruc.AI64slice0 = nil
  3178. } else {
  3179. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  3180. }
  3181. yyj83++
  3182. if yyhl83 {
  3183. yyb83 = yyj83 > l
  3184. } else {
  3185. yyb83 = r.CheckBreak()
  3186. }
  3187. if yyb83 {
  3188. z.DecReadArrayEnd()
  3189. return
  3190. }
  3191. z.DecReadArrayElem()
  3192. if r.TryDecodeAsNil() {
  3193. x.AnonInTestStruc.AUi64sliceN = nil
  3194. } else {
  3195. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  3196. }
  3197. yyj83++
  3198. if yyhl83 {
  3199. yyb83 = yyj83 > l
  3200. } else {
  3201. yyb83 = r.CheckBreak()
  3202. }
  3203. if yyb83 {
  3204. z.DecReadArrayEnd()
  3205. return
  3206. }
  3207. z.DecReadArrayElem()
  3208. if r.TryDecodeAsNil() {
  3209. x.AnonInTestStruc.AMSU16N = nil
  3210. } else {
  3211. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  3212. }
  3213. yyj83++
  3214. if yyhl83 {
  3215. yyb83 = yyj83 > l
  3216. } else {
  3217. yyb83 = r.CheckBreak()
  3218. }
  3219. if yyb83 {
  3220. z.DecReadArrayEnd()
  3221. return
  3222. }
  3223. z.DecReadArrayElem()
  3224. if r.TryDecodeAsNil() {
  3225. x.AnonInTestStruc.AMSU16E = nil
  3226. } else {
  3227. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  3228. }
  3229. yyj83++
  3230. if yyhl83 {
  3231. yyb83 = yyj83 > l
  3232. } else {
  3233. yyb83 = r.CheckBreak()
  3234. }
  3235. if yyb83 {
  3236. z.DecReadArrayEnd()
  3237. return
  3238. }
  3239. z.DecReadArrayElem()
  3240. if r.TryDecodeAsNil() {
  3241. x.NotAnon = AnonInTestStruc{}
  3242. } else {
  3243. x.NotAnon.CodecDecodeSelf(d)
  3244. }
  3245. yyj83++
  3246. if yyhl83 {
  3247. yyb83 = yyj83 > l
  3248. } else {
  3249. yyb83 = r.CheckBreak()
  3250. }
  3251. if yyb83 {
  3252. z.DecReadArrayEnd()
  3253. return
  3254. }
  3255. z.DecReadArrayElem()
  3256. if r.TryDecodeAsNil() {
  3257. x.Nmap = nil
  3258. } else {
  3259. z.F.DecMapStringBoolX(&x.Nmap, d)
  3260. }
  3261. yyj83++
  3262. if yyhl83 {
  3263. yyb83 = yyj83 > l
  3264. } else {
  3265. yyb83 = r.CheckBreak()
  3266. }
  3267. if yyb83 {
  3268. z.DecReadArrayEnd()
  3269. return
  3270. }
  3271. z.DecReadArrayElem()
  3272. if r.TryDecodeAsNil() {
  3273. x.Nslice = nil
  3274. } else {
  3275. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3276. }
  3277. yyj83++
  3278. if yyhl83 {
  3279. yyb83 = yyj83 > l
  3280. } else {
  3281. yyb83 = r.CheckBreak()
  3282. }
  3283. if yyb83 {
  3284. z.DecReadArrayEnd()
  3285. return
  3286. }
  3287. z.DecReadArrayElem()
  3288. if r.TryDecodeAsNil() {
  3289. if x.Nint64 != nil { // remove the if-true
  3290. x.Nint64 = nil
  3291. }
  3292. } else {
  3293. if x.Nint64 == nil {
  3294. x.Nint64 = new(int64)
  3295. }
  3296. *x.Nint64 = (int64)(r.DecodeInt64())
  3297. }
  3298. for {
  3299. yyj83++
  3300. if yyhl83 {
  3301. yyb83 = yyj83 > l
  3302. } else {
  3303. yyb83 = r.CheckBreak()
  3304. }
  3305. if yyb83 {
  3306. break
  3307. }
  3308. z.DecReadArrayElem()
  3309. z.DecStructFieldNotFound(yyj83-1, "")
  3310. }
  3311. z.DecReadArrayEnd()
  3312. }
  3313. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  3314. var h codecSelfer19780
  3315. z, r := GenHelperEncoder(e)
  3316. _, _, _ = h, z, r
  3317. if x == nil {
  3318. r.EncodeNil()
  3319. } else {
  3320. yysep2 := !z.EncBinary()
  3321. yy2arr2 := z.EncBasicHandle().StructToArray
  3322. _, _ = yysep2, yy2arr2
  3323. const yyr2 bool = false // struct tag has 'toArray'
  3324. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  3325. var yyn58 bool = x.Nteststruc == nil
  3326. if yyr2 || yy2arr2 {
  3327. z.EncWriteArrayStart(56)
  3328. z.EncWriteArrayElem()
  3329. if z.EncBasicHandle().StringToRaw {
  3330. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3331. } else {
  3332. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3333. }
  3334. z.EncWriteArrayElem()
  3335. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3336. z.EncWriteArrayElem()
  3337. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3338. z.EncWriteArrayElem()
  3339. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3340. z.EncWriteArrayElem()
  3341. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3342. z.EncWriteArrayElem()
  3343. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3344. z.EncWriteArrayElem()
  3345. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3346. z.EncWriteArrayElem()
  3347. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3348. z.EncWriteArrayElem()
  3349. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3350. z.EncWriteArrayElem()
  3351. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3352. z.EncWriteArrayElem()
  3353. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3354. z.EncWriteArrayElem()
  3355. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3356. z.EncWriteArrayElem()
  3357. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3358. z.EncWriteArrayElem()
  3359. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3360. z.EncWriteArrayElem()
  3361. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3362. z.EncWriteArrayElem()
  3363. r.EncodeBool(bool(x.TestStrucCommon.B))
  3364. z.EncWriteArrayElem()
  3365. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3366. z.EncWriteArrayElem()
  3367. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3368. z.EncWriteArrayElem()
  3369. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3370. z.EncWriteArrayElem()
  3371. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3372. z.EncWriteArrayElem()
  3373. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3374. z.EncWriteArrayElem()
  3375. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3376. z.EncWriteArrayElem()
  3377. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3378. z.EncWriteArrayElem()
  3379. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3380. z.EncWriteArrayElem()
  3381. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3382. z.EncWriteArrayElem()
  3383. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3384. z.EncWriteArrayElem()
  3385. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3386. z.EncWriteArrayElem()
  3387. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3388. z.EncWriteArrayElem()
  3389. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3390. z.EncWriteArrayElem()
  3391. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3392. z.EncWriteArrayElem()
  3393. yy89 := &x.TestStrucCommon.Simplef
  3394. yy89.CodecEncodeSelf(e)
  3395. z.EncWriteArrayElem()
  3396. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3397. z.EncWriteArrayElem()
  3398. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3399. z.EncWriteArrayElem()
  3400. if z.EncBasicHandle().StringToRaw {
  3401. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3402. } else {
  3403. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3404. }
  3405. z.EncWriteArrayElem()
  3406. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3407. z.EncWriteArrayElem()
  3408. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3409. z.EncWriteArrayElem()
  3410. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3411. z.EncWriteArrayElem()
  3412. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3413. z.EncWriteArrayElem()
  3414. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3415. z.EncWriteArrayElem()
  3416. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3417. z.EncWriteArrayElem()
  3418. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3419. z.EncWriteArrayElem()
  3420. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3421. z.EncWriteArrayElem()
  3422. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3423. z.EncWriteArrayElem()
  3424. yy103 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3425. h.encArray0int64((*[0]int64)(yy103), e)
  3426. z.EncWriteArrayElem()
  3427. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3428. z.EncWriteArrayElem()
  3429. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3430. z.EncWriteArrayElem()
  3431. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3432. z.EncWriteArrayElem()
  3433. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3434. z.EncWriteArrayElem()
  3435. yy109 := &x.TestStrucCommon.NotAnon
  3436. yy109.CodecEncodeSelf(e)
  3437. z.EncWriteArrayElem()
  3438. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3439. z.EncWriteArrayElem()
  3440. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3441. if yyn54 {
  3442. z.EncWriteArrayElem()
  3443. r.EncodeNil()
  3444. } else {
  3445. z.EncWriteArrayElem()
  3446. yy113 := *x.TestStrucCommon.Nint64
  3447. r.EncodeInt(int64(yy113))
  3448. }
  3449. z.EncWriteArrayElem()
  3450. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3451. z.EncWriteArrayElem()
  3452. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3453. z.EncWriteArrayElem()
  3454. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3455. if yyn58 {
  3456. z.EncWriteArrayElem()
  3457. r.EncodeNil()
  3458. } else {
  3459. z.EncWriteArrayElem()
  3460. x.Nteststruc.CodecEncodeSelf(e)
  3461. }
  3462. z.EncWriteArrayEnd()
  3463. } else {
  3464. z.EncWriteMapStart(56)
  3465. z.EncWriteMapElemKey()
  3466. if z.IsJSONHandle() {
  3467. z.WriteStr("\"S\"")
  3468. } else {
  3469. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3470. }
  3471. z.EncWriteMapElemValue()
  3472. if z.EncBasicHandle().StringToRaw {
  3473. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3474. } else {
  3475. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3476. }
  3477. z.EncWriteMapElemKey()
  3478. if z.IsJSONHandle() {
  3479. z.WriteStr("\"I64\"")
  3480. } else {
  3481. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3482. }
  3483. z.EncWriteMapElemValue()
  3484. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3485. z.EncWriteMapElemKey()
  3486. if z.IsJSONHandle() {
  3487. z.WriteStr("\"I32\"")
  3488. } else {
  3489. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3490. }
  3491. z.EncWriteMapElemValue()
  3492. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3493. z.EncWriteMapElemKey()
  3494. if z.IsJSONHandle() {
  3495. z.WriteStr("\"I16\"")
  3496. } else {
  3497. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3498. }
  3499. z.EncWriteMapElemValue()
  3500. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3501. z.EncWriteMapElemKey()
  3502. if z.IsJSONHandle() {
  3503. z.WriteStr("\"I8\"")
  3504. } else {
  3505. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3506. }
  3507. z.EncWriteMapElemValue()
  3508. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3509. z.EncWriteMapElemKey()
  3510. if z.IsJSONHandle() {
  3511. z.WriteStr("\"I64n\"")
  3512. } else {
  3513. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3514. }
  3515. z.EncWriteMapElemValue()
  3516. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3517. z.EncWriteMapElemKey()
  3518. if z.IsJSONHandle() {
  3519. z.WriteStr("\"I32n\"")
  3520. } else {
  3521. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3522. }
  3523. z.EncWriteMapElemValue()
  3524. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3525. z.EncWriteMapElemKey()
  3526. if z.IsJSONHandle() {
  3527. z.WriteStr("\"I16n\"")
  3528. } else {
  3529. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3530. }
  3531. z.EncWriteMapElemValue()
  3532. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3533. z.EncWriteMapElemKey()
  3534. if z.IsJSONHandle() {
  3535. z.WriteStr("\"I8n\"")
  3536. } else {
  3537. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3538. }
  3539. z.EncWriteMapElemValue()
  3540. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3541. z.EncWriteMapElemKey()
  3542. if z.IsJSONHandle() {
  3543. z.WriteStr("\"Ui64\"")
  3544. } else {
  3545. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3546. }
  3547. z.EncWriteMapElemValue()
  3548. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3549. z.EncWriteMapElemKey()
  3550. if z.IsJSONHandle() {
  3551. z.WriteStr("\"Ui32\"")
  3552. } else {
  3553. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3554. }
  3555. z.EncWriteMapElemValue()
  3556. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3557. z.EncWriteMapElemKey()
  3558. if z.IsJSONHandle() {
  3559. z.WriteStr("\"Ui16\"")
  3560. } else {
  3561. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3562. }
  3563. z.EncWriteMapElemValue()
  3564. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3565. z.EncWriteMapElemKey()
  3566. if z.IsJSONHandle() {
  3567. z.WriteStr("\"Ui8\"")
  3568. } else {
  3569. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  3570. }
  3571. z.EncWriteMapElemValue()
  3572. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3573. z.EncWriteMapElemKey()
  3574. if z.IsJSONHandle() {
  3575. z.WriteStr("\"F64\"")
  3576. } else {
  3577. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  3578. }
  3579. z.EncWriteMapElemValue()
  3580. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3581. z.EncWriteMapElemKey()
  3582. if z.IsJSONHandle() {
  3583. z.WriteStr("\"F32\"")
  3584. } else {
  3585. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  3586. }
  3587. z.EncWriteMapElemValue()
  3588. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3589. z.EncWriteMapElemKey()
  3590. if z.IsJSONHandle() {
  3591. z.WriteStr("\"B\"")
  3592. } else {
  3593. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  3594. }
  3595. z.EncWriteMapElemValue()
  3596. r.EncodeBool(bool(x.TestStrucCommon.B))
  3597. z.EncWriteMapElemKey()
  3598. if z.IsJSONHandle() {
  3599. z.WriteStr("\"By\"")
  3600. } else {
  3601. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  3602. }
  3603. z.EncWriteMapElemValue()
  3604. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3605. z.EncWriteMapElemKey()
  3606. if z.IsJSONHandle() {
  3607. z.WriteStr("\"Sslice\"")
  3608. } else {
  3609. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  3610. }
  3611. z.EncWriteMapElemValue()
  3612. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3613. z.EncWriteMapElemKey()
  3614. if z.IsJSONHandle() {
  3615. z.WriteStr("\"I64slice\"")
  3616. } else {
  3617. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  3618. }
  3619. z.EncWriteMapElemValue()
  3620. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3621. z.EncWriteMapElemKey()
  3622. if z.IsJSONHandle() {
  3623. z.WriteStr("\"I16slice\"")
  3624. } else {
  3625. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  3626. }
  3627. z.EncWriteMapElemValue()
  3628. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3629. z.EncWriteMapElemKey()
  3630. if z.IsJSONHandle() {
  3631. z.WriteStr("\"Ui64slice\"")
  3632. } else {
  3633. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  3634. }
  3635. z.EncWriteMapElemValue()
  3636. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3637. z.EncWriteMapElemKey()
  3638. if z.IsJSONHandle() {
  3639. z.WriteStr("\"Ui8slice\"")
  3640. } else {
  3641. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  3642. }
  3643. z.EncWriteMapElemValue()
  3644. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3645. z.EncWriteMapElemKey()
  3646. if z.IsJSONHandle() {
  3647. z.WriteStr("\"Bslice\"")
  3648. } else {
  3649. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  3650. }
  3651. z.EncWriteMapElemValue()
  3652. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3653. z.EncWriteMapElemKey()
  3654. if z.IsJSONHandle() {
  3655. z.WriteStr("\"Byslice\"")
  3656. } else {
  3657. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  3658. }
  3659. z.EncWriteMapElemValue()
  3660. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3661. z.EncWriteMapElemKey()
  3662. if z.IsJSONHandle() {
  3663. z.WriteStr("\"BytesSlice\"")
  3664. } else {
  3665. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  3666. }
  3667. z.EncWriteMapElemValue()
  3668. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3669. z.EncWriteMapElemKey()
  3670. if z.IsJSONHandle() {
  3671. z.WriteStr("\"Iptrslice\"")
  3672. } else {
  3673. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  3674. }
  3675. z.EncWriteMapElemValue()
  3676. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3677. z.EncWriteMapElemKey()
  3678. if z.IsJSONHandle() {
  3679. z.WriteStr("\"WrapSliceInt64\"")
  3680. } else {
  3681. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  3682. }
  3683. z.EncWriteMapElemValue()
  3684. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3685. z.EncWriteMapElemKey()
  3686. if z.IsJSONHandle() {
  3687. z.WriteStr("\"WrapSliceString\"")
  3688. } else {
  3689. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  3690. }
  3691. z.EncWriteMapElemValue()
  3692. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3693. z.EncWriteMapElemKey()
  3694. if z.IsJSONHandle() {
  3695. z.WriteStr("\"Msi64\"")
  3696. } else {
  3697. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  3698. }
  3699. z.EncWriteMapElemValue()
  3700. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3701. z.EncWriteMapElemKey()
  3702. if z.IsJSONHandle() {
  3703. z.WriteStr("\"Msbytes\"")
  3704. } else {
  3705. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  3706. }
  3707. z.EncWriteMapElemValue()
  3708. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3709. z.EncWriteMapElemKey()
  3710. if z.IsJSONHandle() {
  3711. z.WriteStr("\"Simplef\"")
  3712. } else {
  3713. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  3714. }
  3715. z.EncWriteMapElemValue()
  3716. yy149 := &x.TestStrucCommon.Simplef
  3717. yy149.CodecEncodeSelf(e)
  3718. z.EncWriteMapElemKey()
  3719. if z.IsJSONHandle() {
  3720. z.WriteStr("\"SstrUi64T\"")
  3721. } else {
  3722. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  3723. }
  3724. z.EncWriteMapElemValue()
  3725. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3726. z.EncWriteMapElemKey()
  3727. if z.IsJSONHandle() {
  3728. z.WriteStr("\"MstrUi64T\"")
  3729. } else {
  3730. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  3731. }
  3732. z.EncWriteMapElemValue()
  3733. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3734. z.EncWriteMapElemKey()
  3735. if z.IsJSONHandle() {
  3736. z.WriteStr("\"AS\"")
  3737. } else {
  3738. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  3739. }
  3740. z.EncWriteMapElemValue()
  3741. if z.EncBasicHandle().StringToRaw {
  3742. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3743. } else {
  3744. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3745. }
  3746. z.EncWriteMapElemKey()
  3747. if z.IsJSONHandle() {
  3748. z.WriteStr("\"AI64\"")
  3749. } else {
  3750. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  3751. }
  3752. z.EncWriteMapElemValue()
  3753. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3754. z.EncWriteMapElemKey()
  3755. if z.IsJSONHandle() {
  3756. z.WriteStr("\"AI16\"")
  3757. } else {
  3758. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  3759. }
  3760. z.EncWriteMapElemValue()
  3761. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3762. z.EncWriteMapElemKey()
  3763. if z.IsJSONHandle() {
  3764. z.WriteStr("\"AUi64\"")
  3765. } else {
  3766. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  3767. }
  3768. z.EncWriteMapElemValue()
  3769. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3770. z.EncWriteMapElemKey()
  3771. if z.IsJSONHandle() {
  3772. z.WriteStr("\"ASslice\"")
  3773. } else {
  3774. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  3775. }
  3776. z.EncWriteMapElemValue()
  3777. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3778. z.EncWriteMapElemKey()
  3779. if z.IsJSONHandle() {
  3780. z.WriteStr("\"AI64slice\"")
  3781. } else {
  3782. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  3783. }
  3784. z.EncWriteMapElemValue()
  3785. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3786. z.EncWriteMapElemKey()
  3787. if z.IsJSONHandle() {
  3788. z.WriteStr("\"AUi64slice\"")
  3789. } else {
  3790. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3791. }
  3792. z.EncWriteMapElemValue()
  3793. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3794. z.EncWriteMapElemKey()
  3795. if z.IsJSONHandle() {
  3796. z.WriteStr("\"AF64slice\"")
  3797. } else {
  3798. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3799. }
  3800. z.EncWriteMapElemValue()
  3801. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3802. z.EncWriteMapElemKey()
  3803. if z.IsJSONHandle() {
  3804. z.WriteStr("\"AF32slice\"")
  3805. } else {
  3806. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3807. }
  3808. z.EncWriteMapElemValue()
  3809. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3810. z.EncWriteMapElemKey()
  3811. if z.IsJSONHandle() {
  3812. z.WriteStr("\"AMSU16\"")
  3813. } else {
  3814. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3815. }
  3816. z.EncWriteMapElemValue()
  3817. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3818. z.EncWriteMapElemKey()
  3819. if z.IsJSONHandle() {
  3820. z.WriteStr("\"AI64arr0\"")
  3821. } else {
  3822. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3823. }
  3824. z.EncWriteMapElemValue()
  3825. yy163 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3826. h.encArray0int64((*[0]int64)(yy163), e)
  3827. z.EncWriteMapElemKey()
  3828. if z.IsJSONHandle() {
  3829. z.WriteStr("\"AI64slice0\"")
  3830. } else {
  3831. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  3832. }
  3833. z.EncWriteMapElemValue()
  3834. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3835. z.EncWriteMapElemKey()
  3836. if z.IsJSONHandle() {
  3837. z.WriteStr("\"AUi64sliceN\"")
  3838. } else {
  3839. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3840. }
  3841. z.EncWriteMapElemValue()
  3842. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3843. z.EncWriteMapElemKey()
  3844. if z.IsJSONHandle() {
  3845. z.WriteStr("\"AMSU16N\"")
  3846. } else {
  3847. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3848. }
  3849. z.EncWriteMapElemValue()
  3850. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3851. z.EncWriteMapElemKey()
  3852. if z.IsJSONHandle() {
  3853. z.WriteStr("\"AMSU16E\"")
  3854. } else {
  3855. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3856. }
  3857. z.EncWriteMapElemValue()
  3858. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3859. z.EncWriteMapElemKey()
  3860. if z.IsJSONHandle() {
  3861. z.WriteStr("\"NotAnon\"")
  3862. } else {
  3863. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3864. }
  3865. z.EncWriteMapElemValue()
  3866. yy169 := &x.TestStrucCommon.NotAnon
  3867. yy169.CodecEncodeSelf(e)
  3868. z.EncWriteMapElemKey()
  3869. if z.IsJSONHandle() {
  3870. z.WriteStr("\"Nmap\"")
  3871. } else {
  3872. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3873. }
  3874. z.EncWriteMapElemValue()
  3875. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3876. z.EncWriteMapElemKey()
  3877. if z.IsJSONHandle() {
  3878. z.WriteStr("\"Nslice\"")
  3879. } else {
  3880. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3881. }
  3882. z.EncWriteMapElemValue()
  3883. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3884. z.EncWriteMapElemKey()
  3885. if z.IsJSONHandle() {
  3886. z.WriteStr("\"Nint64\"")
  3887. } else {
  3888. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3889. }
  3890. z.EncWriteMapElemValue()
  3891. if yyn54 {
  3892. r.EncodeNil()
  3893. } else {
  3894. yy173 := *x.TestStrucCommon.Nint64
  3895. r.EncodeInt(int64(yy173))
  3896. }
  3897. z.EncWriteMapElemKey()
  3898. if z.IsJSONHandle() {
  3899. z.WriteStr("\"Mtsptr\"")
  3900. } else {
  3901. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  3902. }
  3903. z.EncWriteMapElemValue()
  3904. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3905. z.EncWriteMapElemKey()
  3906. if z.IsJSONHandle() {
  3907. z.WriteStr("\"Mts\"")
  3908. } else {
  3909. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  3910. }
  3911. z.EncWriteMapElemValue()
  3912. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3913. z.EncWriteMapElemKey()
  3914. if z.IsJSONHandle() {
  3915. z.WriteStr("\"Its\"")
  3916. } else {
  3917. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  3918. }
  3919. z.EncWriteMapElemValue()
  3920. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3921. z.EncWriteMapElemKey()
  3922. if z.IsJSONHandle() {
  3923. z.WriteStr("\"Nteststruc\"")
  3924. } else {
  3925. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  3926. }
  3927. z.EncWriteMapElemValue()
  3928. if yyn58 {
  3929. r.EncodeNil()
  3930. } else {
  3931. x.Nteststruc.CodecEncodeSelf(e)
  3932. }
  3933. z.EncWriteMapEnd()
  3934. }
  3935. }
  3936. }
  3937. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  3938. var h codecSelfer19780
  3939. z, r := GenHelperDecoder(d)
  3940. _, _, _ = h, z, r
  3941. yyct2 := r.ContainerType()
  3942. if yyct2 == codecSelferValueTypeMap19780 {
  3943. yyl2 := z.DecReadMapStart()
  3944. if yyl2 == 0 {
  3945. z.DecReadMapEnd()
  3946. } else {
  3947. x.codecDecodeSelfFromMap(yyl2, d)
  3948. }
  3949. } else if yyct2 == codecSelferValueTypeArray19780 {
  3950. yyl2 := z.DecReadArrayStart()
  3951. if yyl2 == 0 {
  3952. z.DecReadArrayEnd()
  3953. } else {
  3954. x.codecDecodeSelfFromArray(yyl2, d)
  3955. }
  3956. } else {
  3957. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3958. }
  3959. }
  3960. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  3961. var h codecSelfer19780
  3962. z, r := GenHelperDecoder(d)
  3963. _, _, _ = h, z, r
  3964. var yyhl3 bool = l >= 0
  3965. for yyj3 := 0; ; yyj3++ {
  3966. if yyhl3 {
  3967. if yyj3 >= l {
  3968. break
  3969. }
  3970. } else {
  3971. if r.CheckBreak() {
  3972. break
  3973. }
  3974. }
  3975. z.DecReadMapElemKey()
  3976. yys3 := z.StringView(r.DecodeStringAsBytes())
  3977. z.DecReadMapElemValue()
  3978. switch yys3 {
  3979. case "S":
  3980. if r.TryDecodeAsNil() {
  3981. x.TestStrucCommon.S = ""
  3982. } else {
  3983. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  3984. }
  3985. case "I64":
  3986. if r.TryDecodeAsNil() {
  3987. x.TestStrucCommon.I64 = 0
  3988. } else {
  3989. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  3990. }
  3991. case "I32":
  3992. if r.TryDecodeAsNil() {
  3993. x.TestStrucCommon.I32 = 0
  3994. } else {
  3995. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3996. }
  3997. case "I16":
  3998. if r.TryDecodeAsNil() {
  3999. x.TestStrucCommon.I16 = 0
  4000. } else {
  4001. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4002. }
  4003. case "I8":
  4004. if r.TryDecodeAsNil() {
  4005. x.TestStrucCommon.I8 = 0
  4006. } else {
  4007. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4008. }
  4009. case "I64n":
  4010. if r.TryDecodeAsNil() {
  4011. x.TestStrucCommon.I64n = 0
  4012. } else {
  4013. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4014. }
  4015. case "I32n":
  4016. if r.TryDecodeAsNil() {
  4017. x.TestStrucCommon.I32n = 0
  4018. } else {
  4019. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4020. }
  4021. case "I16n":
  4022. if r.TryDecodeAsNil() {
  4023. x.TestStrucCommon.I16n = 0
  4024. } else {
  4025. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4026. }
  4027. case "I8n":
  4028. if r.TryDecodeAsNil() {
  4029. x.TestStrucCommon.I8n = 0
  4030. } else {
  4031. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4032. }
  4033. case "Ui64":
  4034. if r.TryDecodeAsNil() {
  4035. x.TestStrucCommon.Ui64 = 0
  4036. } else {
  4037. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4038. }
  4039. case "Ui32":
  4040. if r.TryDecodeAsNil() {
  4041. x.TestStrucCommon.Ui32 = 0
  4042. } else {
  4043. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4044. }
  4045. case "Ui16":
  4046. if r.TryDecodeAsNil() {
  4047. x.TestStrucCommon.Ui16 = 0
  4048. } else {
  4049. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4050. }
  4051. case "Ui8":
  4052. if r.TryDecodeAsNil() {
  4053. x.TestStrucCommon.Ui8 = 0
  4054. } else {
  4055. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4056. }
  4057. case "F64":
  4058. if r.TryDecodeAsNil() {
  4059. x.TestStrucCommon.F64 = 0
  4060. } else {
  4061. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4062. }
  4063. case "F32":
  4064. if r.TryDecodeAsNil() {
  4065. x.TestStrucCommon.F32 = 0
  4066. } else {
  4067. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4068. }
  4069. case "B":
  4070. if r.TryDecodeAsNil() {
  4071. x.TestStrucCommon.B = false
  4072. } else {
  4073. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4074. }
  4075. case "By":
  4076. if r.TryDecodeAsNil() {
  4077. x.TestStrucCommon.By = 0
  4078. } else {
  4079. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4080. }
  4081. case "Sslice":
  4082. if r.TryDecodeAsNil() {
  4083. x.TestStrucCommon.Sslice = nil
  4084. } else {
  4085. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4086. }
  4087. case "I64slice":
  4088. if r.TryDecodeAsNil() {
  4089. x.TestStrucCommon.I64slice = nil
  4090. } else {
  4091. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4092. }
  4093. case "I16slice":
  4094. if r.TryDecodeAsNil() {
  4095. x.TestStrucCommon.I16slice = nil
  4096. } else {
  4097. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4098. }
  4099. case "Ui64slice":
  4100. if r.TryDecodeAsNil() {
  4101. x.TestStrucCommon.Ui64slice = nil
  4102. } else {
  4103. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4104. }
  4105. case "Ui8slice":
  4106. if r.TryDecodeAsNil() {
  4107. x.TestStrucCommon.Ui8slice = nil
  4108. } else {
  4109. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4110. }
  4111. case "Bslice":
  4112. if r.TryDecodeAsNil() {
  4113. x.TestStrucCommon.Bslice = nil
  4114. } else {
  4115. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4116. }
  4117. case "Byslice":
  4118. if r.TryDecodeAsNil() {
  4119. x.TestStrucCommon.Byslice = nil
  4120. } else {
  4121. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4122. }
  4123. case "BytesSlice":
  4124. if r.TryDecodeAsNil() {
  4125. x.TestStrucCommon.BytesSlice = nil
  4126. } else {
  4127. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4128. }
  4129. case "Iptrslice":
  4130. if r.TryDecodeAsNil() {
  4131. x.TestStrucCommon.Iptrslice = nil
  4132. } else {
  4133. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4134. }
  4135. case "WrapSliceInt64":
  4136. if r.TryDecodeAsNil() {
  4137. x.TestStrucCommon.WrapSliceInt64 = nil
  4138. } else {
  4139. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4140. }
  4141. case "WrapSliceString":
  4142. if r.TryDecodeAsNil() {
  4143. x.TestStrucCommon.WrapSliceString = nil
  4144. } else {
  4145. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4146. }
  4147. case "Msi64":
  4148. if r.TryDecodeAsNil() {
  4149. x.TestStrucCommon.Msi64 = nil
  4150. } else {
  4151. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4152. }
  4153. case "Msbytes":
  4154. if r.TryDecodeAsNil() {
  4155. x.TestStrucCommon.Msbytes = nil
  4156. } else {
  4157. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4158. }
  4159. case "Simplef":
  4160. if r.TryDecodeAsNil() {
  4161. x.TestStrucCommon.Simplef = testSimpleFields{}
  4162. } else {
  4163. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4164. }
  4165. case "SstrUi64T":
  4166. if r.TryDecodeAsNil() {
  4167. x.TestStrucCommon.SstrUi64T = nil
  4168. } else {
  4169. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4170. }
  4171. case "MstrUi64T":
  4172. if r.TryDecodeAsNil() {
  4173. x.TestStrucCommon.MstrUi64T = nil
  4174. } else {
  4175. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  4176. }
  4177. case "AS":
  4178. if r.TryDecodeAsNil() {
  4179. x.TestStrucCommon.AnonInTestStruc.AS = ""
  4180. } else {
  4181. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  4182. }
  4183. case "AI64":
  4184. if r.TryDecodeAsNil() {
  4185. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  4186. } else {
  4187. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4188. }
  4189. case "AI16":
  4190. if r.TryDecodeAsNil() {
  4191. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  4192. } else {
  4193. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4194. }
  4195. case "AUi64":
  4196. if r.TryDecodeAsNil() {
  4197. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  4198. } else {
  4199. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4200. }
  4201. case "ASslice":
  4202. if r.TryDecodeAsNil() {
  4203. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  4204. } else {
  4205. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4206. }
  4207. case "AI64slice":
  4208. if r.TryDecodeAsNil() {
  4209. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  4210. } else {
  4211. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4212. }
  4213. case "AUi64slice":
  4214. if r.TryDecodeAsNil() {
  4215. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  4216. } else {
  4217. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4218. }
  4219. case "AF64slice":
  4220. if r.TryDecodeAsNil() {
  4221. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  4222. } else {
  4223. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4224. }
  4225. case "AF32slice":
  4226. if r.TryDecodeAsNil() {
  4227. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  4228. } else {
  4229. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4230. }
  4231. case "AMSU16":
  4232. if r.TryDecodeAsNil() {
  4233. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  4234. } else {
  4235. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4236. }
  4237. case "AI64arr0":
  4238. if r.TryDecodeAsNil() {
  4239. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  4240. } else {
  4241. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4242. }
  4243. case "AI64slice0":
  4244. if r.TryDecodeAsNil() {
  4245. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  4246. } else {
  4247. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  4248. }
  4249. case "AUi64sliceN":
  4250. if r.TryDecodeAsNil() {
  4251. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  4252. } else {
  4253. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  4254. }
  4255. case "AMSU16N":
  4256. if r.TryDecodeAsNil() {
  4257. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  4258. } else {
  4259. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  4260. }
  4261. case "AMSU16E":
  4262. if r.TryDecodeAsNil() {
  4263. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  4264. } else {
  4265. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  4266. }
  4267. case "NotAnon":
  4268. if r.TryDecodeAsNil() {
  4269. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  4270. } else {
  4271. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  4272. }
  4273. case "Nmap":
  4274. if r.TryDecodeAsNil() {
  4275. x.TestStrucCommon.Nmap = nil
  4276. } else {
  4277. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  4278. }
  4279. case "Nslice":
  4280. if r.TryDecodeAsNil() {
  4281. x.TestStrucCommon.Nslice = nil
  4282. } else {
  4283. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  4284. }
  4285. case "Nint64":
  4286. if r.TryDecodeAsNil() {
  4287. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  4288. x.TestStrucCommon.Nint64 = nil
  4289. }
  4290. } else {
  4291. if x.TestStrucCommon.Nint64 == nil {
  4292. x.TestStrucCommon.Nint64 = new(int64)
  4293. }
  4294. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  4295. }
  4296. case "Mtsptr":
  4297. if r.TryDecodeAsNil() {
  4298. x.Mtsptr = nil
  4299. } else {
  4300. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  4301. }
  4302. case "Mts":
  4303. if r.TryDecodeAsNil() {
  4304. x.Mts = nil
  4305. } else {
  4306. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  4307. }
  4308. case "Its":
  4309. if r.TryDecodeAsNil() {
  4310. x.Its = nil
  4311. } else {
  4312. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  4313. }
  4314. case "Nteststruc":
  4315. if r.TryDecodeAsNil() {
  4316. if x.Nteststruc != nil { // remove the if-true
  4317. x.Nteststruc = nil
  4318. }
  4319. } else {
  4320. if x.Nteststruc == nil {
  4321. x.Nteststruc = new(TestStruc)
  4322. }
  4323. x.Nteststruc.CodecDecodeSelf(d)
  4324. }
  4325. default:
  4326. z.DecStructFieldNotFound(-1, yys3)
  4327. } // end switch yys3
  4328. } // end for yyj3
  4329. z.DecReadMapEnd()
  4330. }
  4331. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  4332. var h codecSelfer19780
  4333. z, r := GenHelperDecoder(d)
  4334. _, _, _ = h, z, r
  4335. var yyj90 int
  4336. var yyb90 bool
  4337. var yyhl90 bool = l >= 0
  4338. yyj90++
  4339. if yyhl90 {
  4340. yyb90 = yyj90 > l
  4341. } else {
  4342. yyb90 = r.CheckBreak()
  4343. }
  4344. if yyb90 {
  4345. z.DecReadArrayEnd()
  4346. return
  4347. }
  4348. z.DecReadArrayElem()
  4349. if r.TryDecodeAsNil() {
  4350. x.TestStrucCommon.S = ""
  4351. } else {
  4352. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  4353. }
  4354. yyj90++
  4355. if yyhl90 {
  4356. yyb90 = yyj90 > l
  4357. } else {
  4358. yyb90 = r.CheckBreak()
  4359. }
  4360. if yyb90 {
  4361. z.DecReadArrayEnd()
  4362. return
  4363. }
  4364. z.DecReadArrayElem()
  4365. if r.TryDecodeAsNil() {
  4366. x.TestStrucCommon.I64 = 0
  4367. } else {
  4368. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4369. }
  4370. yyj90++
  4371. if yyhl90 {
  4372. yyb90 = yyj90 > l
  4373. } else {
  4374. yyb90 = r.CheckBreak()
  4375. }
  4376. if yyb90 {
  4377. z.DecReadArrayEnd()
  4378. return
  4379. }
  4380. z.DecReadArrayElem()
  4381. if r.TryDecodeAsNil() {
  4382. x.TestStrucCommon.I32 = 0
  4383. } else {
  4384. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4385. }
  4386. yyj90++
  4387. if yyhl90 {
  4388. yyb90 = yyj90 > l
  4389. } else {
  4390. yyb90 = r.CheckBreak()
  4391. }
  4392. if yyb90 {
  4393. z.DecReadArrayEnd()
  4394. return
  4395. }
  4396. z.DecReadArrayElem()
  4397. if r.TryDecodeAsNil() {
  4398. x.TestStrucCommon.I16 = 0
  4399. } else {
  4400. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4401. }
  4402. yyj90++
  4403. if yyhl90 {
  4404. yyb90 = yyj90 > l
  4405. } else {
  4406. yyb90 = r.CheckBreak()
  4407. }
  4408. if yyb90 {
  4409. z.DecReadArrayEnd()
  4410. return
  4411. }
  4412. z.DecReadArrayElem()
  4413. if r.TryDecodeAsNil() {
  4414. x.TestStrucCommon.I8 = 0
  4415. } else {
  4416. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4417. }
  4418. yyj90++
  4419. if yyhl90 {
  4420. yyb90 = yyj90 > l
  4421. } else {
  4422. yyb90 = r.CheckBreak()
  4423. }
  4424. if yyb90 {
  4425. z.DecReadArrayEnd()
  4426. return
  4427. }
  4428. z.DecReadArrayElem()
  4429. if r.TryDecodeAsNil() {
  4430. x.TestStrucCommon.I64n = 0
  4431. } else {
  4432. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4433. }
  4434. yyj90++
  4435. if yyhl90 {
  4436. yyb90 = yyj90 > l
  4437. } else {
  4438. yyb90 = r.CheckBreak()
  4439. }
  4440. if yyb90 {
  4441. z.DecReadArrayEnd()
  4442. return
  4443. }
  4444. z.DecReadArrayElem()
  4445. if r.TryDecodeAsNil() {
  4446. x.TestStrucCommon.I32n = 0
  4447. } else {
  4448. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4449. }
  4450. yyj90++
  4451. if yyhl90 {
  4452. yyb90 = yyj90 > l
  4453. } else {
  4454. yyb90 = r.CheckBreak()
  4455. }
  4456. if yyb90 {
  4457. z.DecReadArrayEnd()
  4458. return
  4459. }
  4460. z.DecReadArrayElem()
  4461. if r.TryDecodeAsNil() {
  4462. x.TestStrucCommon.I16n = 0
  4463. } else {
  4464. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4465. }
  4466. yyj90++
  4467. if yyhl90 {
  4468. yyb90 = yyj90 > l
  4469. } else {
  4470. yyb90 = r.CheckBreak()
  4471. }
  4472. if yyb90 {
  4473. z.DecReadArrayEnd()
  4474. return
  4475. }
  4476. z.DecReadArrayElem()
  4477. if r.TryDecodeAsNil() {
  4478. x.TestStrucCommon.I8n = 0
  4479. } else {
  4480. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4481. }
  4482. yyj90++
  4483. if yyhl90 {
  4484. yyb90 = yyj90 > l
  4485. } else {
  4486. yyb90 = r.CheckBreak()
  4487. }
  4488. if yyb90 {
  4489. z.DecReadArrayEnd()
  4490. return
  4491. }
  4492. z.DecReadArrayElem()
  4493. if r.TryDecodeAsNil() {
  4494. x.TestStrucCommon.Ui64 = 0
  4495. } else {
  4496. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4497. }
  4498. yyj90++
  4499. if yyhl90 {
  4500. yyb90 = yyj90 > l
  4501. } else {
  4502. yyb90 = r.CheckBreak()
  4503. }
  4504. if yyb90 {
  4505. z.DecReadArrayEnd()
  4506. return
  4507. }
  4508. z.DecReadArrayElem()
  4509. if r.TryDecodeAsNil() {
  4510. x.TestStrucCommon.Ui32 = 0
  4511. } else {
  4512. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4513. }
  4514. yyj90++
  4515. if yyhl90 {
  4516. yyb90 = yyj90 > l
  4517. } else {
  4518. yyb90 = r.CheckBreak()
  4519. }
  4520. if yyb90 {
  4521. z.DecReadArrayEnd()
  4522. return
  4523. }
  4524. z.DecReadArrayElem()
  4525. if r.TryDecodeAsNil() {
  4526. x.TestStrucCommon.Ui16 = 0
  4527. } else {
  4528. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4529. }
  4530. yyj90++
  4531. if yyhl90 {
  4532. yyb90 = yyj90 > l
  4533. } else {
  4534. yyb90 = r.CheckBreak()
  4535. }
  4536. if yyb90 {
  4537. z.DecReadArrayEnd()
  4538. return
  4539. }
  4540. z.DecReadArrayElem()
  4541. if r.TryDecodeAsNil() {
  4542. x.TestStrucCommon.Ui8 = 0
  4543. } else {
  4544. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4545. }
  4546. yyj90++
  4547. if yyhl90 {
  4548. yyb90 = yyj90 > l
  4549. } else {
  4550. yyb90 = r.CheckBreak()
  4551. }
  4552. if yyb90 {
  4553. z.DecReadArrayEnd()
  4554. return
  4555. }
  4556. z.DecReadArrayElem()
  4557. if r.TryDecodeAsNil() {
  4558. x.TestStrucCommon.F64 = 0
  4559. } else {
  4560. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4561. }
  4562. yyj90++
  4563. if yyhl90 {
  4564. yyb90 = yyj90 > l
  4565. } else {
  4566. yyb90 = r.CheckBreak()
  4567. }
  4568. if yyb90 {
  4569. z.DecReadArrayEnd()
  4570. return
  4571. }
  4572. z.DecReadArrayElem()
  4573. if r.TryDecodeAsNil() {
  4574. x.TestStrucCommon.F32 = 0
  4575. } else {
  4576. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4577. }
  4578. yyj90++
  4579. if yyhl90 {
  4580. yyb90 = yyj90 > l
  4581. } else {
  4582. yyb90 = r.CheckBreak()
  4583. }
  4584. if yyb90 {
  4585. z.DecReadArrayEnd()
  4586. return
  4587. }
  4588. z.DecReadArrayElem()
  4589. if r.TryDecodeAsNil() {
  4590. x.TestStrucCommon.B = false
  4591. } else {
  4592. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4593. }
  4594. yyj90++
  4595. if yyhl90 {
  4596. yyb90 = yyj90 > l
  4597. } else {
  4598. yyb90 = r.CheckBreak()
  4599. }
  4600. if yyb90 {
  4601. z.DecReadArrayEnd()
  4602. return
  4603. }
  4604. z.DecReadArrayElem()
  4605. if r.TryDecodeAsNil() {
  4606. x.TestStrucCommon.By = 0
  4607. } else {
  4608. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4609. }
  4610. yyj90++
  4611. if yyhl90 {
  4612. yyb90 = yyj90 > l
  4613. } else {
  4614. yyb90 = r.CheckBreak()
  4615. }
  4616. if yyb90 {
  4617. z.DecReadArrayEnd()
  4618. return
  4619. }
  4620. z.DecReadArrayElem()
  4621. if r.TryDecodeAsNil() {
  4622. x.TestStrucCommon.Sslice = nil
  4623. } else {
  4624. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4625. }
  4626. yyj90++
  4627. if yyhl90 {
  4628. yyb90 = yyj90 > l
  4629. } else {
  4630. yyb90 = r.CheckBreak()
  4631. }
  4632. if yyb90 {
  4633. z.DecReadArrayEnd()
  4634. return
  4635. }
  4636. z.DecReadArrayElem()
  4637. if r.TryDecodeAsNil() {
  4638. x.TestStrucCommon.I64slice = nil
  4639. } else {
  4640. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4641. }
  4642. yyj90++
  4643. if yyhl90 {
  4644. yyb90 = yyj90 > l
  4645. } else {
  4646. yyb90 = r.CheckBreak()
  4647. }
  4648. if yyb90 {
  4649. z.DecReadArrayEnd()
  4650. return
  4651. }
  4652. z.DecReadArrayElem()
  4653. if r.TryDecodeAsNil() {
  4654. x.TestStrucCommon.I16slice = nil
  4655. } else {
  4656. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4657. }
  4658. yyj90++
  4659. if yyhl90 {
  4660. yyb90 = yyj90 > l
  4661. } else {
  4662. yyb90 = r.CheckBreak()
  4663. }
  4664. if yyb90 {
  4665. z.DecReadArrayEnd()
  4666. return
  4667. }
  4668. z.DecReadArrayElem()
  4669. if r.TryDecodeAsNil() {
  4670. x.TestStrucCommon.Ui64slice = nil
  4671. } else {
  4672. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4673. }
  4674. yyj90++
  4675. if yyhl90 {
  4676. yyb90 = yyj90 > l
  4677. } else {
  4678. yyb90 = r.CheckBreak()
  4679. }
  4680. if yyb90 {
  4681. z.DecReadArrayEnd()
  4682. return
  4683. }
  4684. z.DecReadArrayElem()
  4685. if r.TryDecodeAsNil() {
  4686. x.TestStrucCommon.Ui8slice = nil
  4687. } else {
  4688. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4689. }
  4690. yyj90++
  4691. if yyhl90 {
  4692. yyb90 = yyj90 > l
  4693. } else {
  4694. yyb90 = r.CheckBreak()
  4695. }
  4696. if yyb90 {
  4697. z.DecReadArrayEnd()
  4698. return
  4699. }
  4700. z.DecReadArrayElem()
  4701. if r.TryDecodeAsNil() {
  4702. x.TestStrucCommon.Bslice = nil
  4703. } else {
  4704. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4705. }
  4706. yyj90++
  4707. if yyhl90 {
  4708. yyb90 = yyj90 > l
  4709. } else {
  4710. yyb90 = r.CheckBreak()
  4711. }
  4712. if yyb90 {
  4713. z.DecReadArrayEnd()
  4714. return
  4715. }
  4716. z.DecReadArrayElem()
  4717. if r.TryDecodeAsNil() {
  4718. x.TestStrucCommon.Byslice = nil
  4719. } else {
  4720. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4721. }
  4722. yyj90++
  4723. if yyhl90 {
  4724. yyb90 = yyj90 > l
  4725. } else {
  4726. yyb90 = r.CheckBreak()
  4727. }
  4728. if yyb90 {
  4729. z.DecReadArrayEnd()
  4730. return
  4731. }
  4732. z.DecReadArrayElem()
  4733. if r.TryDecodeAsNil() {
  4734. x.TestStrucCommon.BytesSlice = nil
  4735. } else {
  4736. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4737. }
  4738. yyj90++
  4739. if yyhl90 {
  4740. yyb90 = yyj90 > l
  4741. } else {
  4742. yyb90 = r.CheckBreak()
  4743. }
  4744. if yyb90 {
  4745. z.DecReadArrayEnd()
  4746. return
  4747. }
  4748. z.DecReadArrayElem()
  4749. if r.TryDecodeAsNil() {
  4750. x.TestStrucCommon.Iptrslice = nil
  4751. } else {
  4752. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4753. }
  4754. yyj90++
  4755. if yyhl90 {
  4756. yyb90 = yyj90 > l
  4757. } else {
  4758. yyb90 = r.CheckBreak()
  4759. }
  4760. if yyb90 {
  4761. z.DecReadArrayEnd()
  4762. return
  4763. }
  4764. z.DecReadArrayElem()
  4765. if r.TryDecodeAsNil() {
  4766. x.TestStrucCommon.WrapSliceInt64 = nil
  4767. } else {
  4768. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4769. }
  4770. yyj90++
  4771. if yyhl90 {
  4772. yyb90 = yyj90 > l
  4773. } else {
  4774. yyb90 = r.CheckBreak()
  4775. }
  4776. if yyb90 {
  4777. z.DecReadArrayEnd()
  4778. return
  4779. }
  4780. z.DecReadArrayElem()
  4781. if r.TryDecodeAsNil() {
  4782. x.TestStrucCommon.WrapSliceString = nil
  4783. } else {
  4784. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4785. }
  4786. yyj90++
  4787. if yyhl90 {
  4788. yyb90 = yyj90 > l
  4789. } else {
  4790. yyb90 = r.CheckBreak()
  4791. }
  4792. if yyb90 {
  4793. z.DecReadArrayEnd()
  4794. return
  4795. }
  4796. z.DecReadArrayElem()
  4797. if r.TryDecodeAsNil() {
  4798. x.TestStrucCommon.Msi64 = nil
  4799. } else {
  4800. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4801. }
  4802. yyj90++
  4803. if yyhl90 {
  4804. yyb90 = yyj90 > l
  4805. } else {
  4806. yyb90 = r.CheckBreak()
  4807. }
  4808. if yyb90 {
  4809. z.DecReadArrayEnd()
  4810. return
  4811. }
  4812. z.DecReadArrayElem()
  4813. if r.TryDecodeAsNil() {
  4814. x.TestStrucCommon.Msbytes = nil
  4815. } else {
  4816. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4817. }
  4818. yyj90++
  4819. if yyhl90 {
  4820. yyb90 = yyj90 > l
  4821. } else {
  4822. yyb90 = r.CheckBreak()
  4823. }
  4824. if yyb90 {
  4825. z.DecReadArrayEnd()
  4826. return
  4827. }
  4828. z.DecReadArrayElem()
  4829. if r.TryDecodeAsNil() {
  4830. x.TestStrucCommon.Simplef = testSimpleFields{}
  4831. } else {
  4832. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4833. }
  4834. yyj90++
  4835. if yyhl90 {
  4836. yyb90 = yyj90 > l
  4837. } else {
  4838. yyb90 = r.CheckBreak()
  4839. }
  4840. if yyb90 {
  4841. z.DecReadArrayEnd()
  4842. return
  4843. }
  4844. z.DecReadArrayElem()
  4845. if r.TryDecodeAsNil() {
  4846. x.TestStrucCommon.SstrUi64T = nil
  4847. } else {
  4848. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4849. }
  4850. yyj90++
  4851. if yyhl90 {
  4852. yyb90 = yyj90 > l
  4853. } else {
  4854. yyb90 = r.CheckBreak()
  4855. }
  4856. if yyb90 {
  4857. z.DecReadArrayEnd()
  4858. return
  4859. }
  4860. z.DecReadArrayElem()
  4861. if r.TryDecodeAsNil() {
  4862. x.TestStrucCommon.MstrUi64T = nil
  4863. } else {
  4864. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  4865. }
  4866. yyj90++
  4867. if yyhl90 {
  4868. yyb90 = yyj90 > l
  4869. } else {
  4870. yyb90 = r.CheckBreak()
  4871. }
  4872. if yyb90 {
  4873. z.DecReadArrayEnd()
  4874. return
  4875. }
  4876. z.DecReadArrayElem()
  4877. if r.TryDecodeAsNil() {
  4878. x.TestStrucCommon.AnonInTestStruc.AS = ""
  4879. } else {
  4880. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  4881. }
  4882. yyj90++
  4883. if yyhl90 {
  4884. yyb90 = yyj90 > l
  4885. } else {
  4886. yyb90 = r.CheckBreak()
  4887. }
  4888. if yyb90 {
  4889. z.DecReadArrayEnd()
  4890. return
  4891. }
  4892. z.DecReadArrayElem()
  4893. if r.TryDecodeAsNil() {
  4894. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  4895. } else {
  4896. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4897. }
  4898. yyj90++
  4899. if yyhl90 {
  4900. yyb90 = yyj90 > l
  4901. } else {
  4902. yyb90 = r.CheckBreak()
  4903. }
  4904. if yyb90 {
  4905. z.DecReadArrayEnd()
  4906. return
  4907. }
  4908. z.DecReadArrayElem()
  4909. if r.TryDecodeAsNil() {
  4910. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  4911. } else {
  4912. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4913. }
  4914. yyj90++
  4915. if yyhl90 {
  4916. yyb90 = yyj90 > l
  4917. } else {
  4918. yyb90 = r.CheckBreak()
  4919. }
  4920. if yyb90 {
  4921. z.DecReadArrayEnd()
  4922. return
  4923. }
  4924. z.DecReadArrayElem()
  4925. if r.TryDecodeAsNil() {
  4926. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  4927. } else {
  4928. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4929. }
  4930. yyj90++
  4931. if yyhl90 {
  4932. yyb90 = yyj90 > l
  4933. } else {
  4934. yyb90 = r.CheckBreak()
  4935. }
  4936. if yyb90 {
  4937. z.DecReadArrayEnd()
  4938. return
  4939. }
  4940. z.DecReadArrayElem()
  4941. if r.TryDecodeAsNil() {
  4942. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  4943. } else {
  4944. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4945. }
  4946. yyj90++
  4947. if yyhl90 {
  4948. yyb90 = yyj90 > l
  4949. } else {
  4950. yyb90 = r.CheckBreak()
  4951. }
  4952. if yyb90 {
  4953. z.DecReadArrayEnd()
  4954. return
  4955. }
  4956. z.DecReadArrayElem()
  4957. if r.TryDecodeAsNil() {
  4958. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  4959. } else {
  4960. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4961. }
  4962. yyj90++
  4963. if yyhl90 {
  4964. yyb90 = yyj90 > l
  4965. } else {
  4966. yyb90 = r.CheckBreak()
  4967. }
  4968. if yyb90 {
  4969. z.DecReadArrayEnd()
  4970. return
  4971. }
  4972. z.DecReadArrayElem()
  4973. if r.TryDecodeAsNil() {
  4974. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  4975. } else {
  4976. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4977. }
  4978. yyj90++
  4979. if yyhl90 {
  4980. yyb90 = yyj90 > l
  4981. } else {
  4982. yyb90 = r.CheckBreak()
  4983. }
  4984. if yyb90 {
  4985. z.DecReadArrayEnd()
  4986. return
  4987. }
  4988. z.DecReadArrayElem()
  4989. if r.TryDecodeAsNil() {
  4990. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  4991. } else {
  4992. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4993. }
  4994. yyj90++
  4995. if yyhl90 {
  4996. yyb90 = yyj90 > l
  4997. } else {
  4998. yyb90 = r.CheckBreak()
  4999. }
  5000. if yyb90 {
  5001. z.DecReadArrayEnd()
  5002. return
  5003. }
  5004. z.DecReadArrayElem()
  5005. if r.TryDecodeAsNil() {
  5006. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  5007. } else {
  5008. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  5009. }
  5010. yyj90++
  5011. if yyhl90 {
  5012. yyb90 = yyj90 > l
  5013. } else {
  5014. yyb90 = r.CheckBreak()
  5015. }
  5016. if yyb90 {
  5017. z.DecReadArrayEnd()
  5018. return
  5019. }
  5020. z.DecReadArrayElem()
  5021. if r.TryDecodeAsNil() {
  5022. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  5023. } else {
  5024. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  5025. }
  5026. yyj90++
  5027. if yyhl90 {
  5028. yyb90 = yyj90 > l
  5029. } else {
  5030. yyb90 = r.CheckBreak()
  5031. }
  5032. if yyb90 {
  5033. z.DecReadArrayEnd()
  5034. return
  5035. }
  5036. z.DecReadArrayElem()
  5037. if r.TryDecodeAsNil() {
  5038. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  5039. } else {
  5040. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  5041. }
  5042. yyj90++
  5043. if yyhl90 {
  5044. yyb90 = yyj90 > l
  5045. } else {
  5046. yyb90 = r.CheckBreak()
  5047. }
  5048. if yyb90 {
  5049. z.DecReadArrayEnd()
  5050. return
  5051. }
  5052. z.DecReadArrayElem()
  5053. if r.TryDecodeAsNil() {
  5054. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  5055. } else {
  5056. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  5057. }
  5058. yyj90++
  5059. if yyhl90 {
  5060. yyb90 = yyj90 > l
  5061. } else {
  5062. yyb90 = r.CheckBreak()
  5063. }
  5064. if yyb90 {
  5065. z.DecReadArrayEnd()
  5066. return
  5067. }
  5068. z.DecReadArrayElem()
  5069. if r.TryDecodeAsNil() {
  5070. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  5071. } else {
  5072. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  5073. }
  5074. yyj90++
  5075. if yyhl90 {
  5076. yyb90 = yyj90 > l
  5077. } else {
  5078. yyb90 = r.CheckBreak()
  5079. }
  5080. if yyb90 {
  5081. z.DecReadArrayEnd()
  5082. return
  5083. }
  5084. z.DecReadArrayElem()
  5085. if r.TryDecodeAsNil() {
  5086. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  5087. } else {
  5088. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  5089. }
  5090. yyj90++
  5091. if yyhl90 {
  5092. yyb90 = yyj90 > l
  5093. } else {
  5094. yyb90 = r.CheckBreak()
  5095. }
  5096. if yyb90 {
  5097. z.DecReadArrayEnd()
  5098. return
  5099. }
  5100. z.DecReadArrayElem()
  5101. if r.TryDecodeAsNil() {
  5102. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  5103. } else {
  5104. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  5105. }
  5106. yyj90++
  5107. if yyhl90 {
  5108. yyb90 = yyj90 > l
  5109. } else {
  5110. yyb90 = r.CheckBreak()
  5111. }
  5112. if yyb90 {
  5113. z.DecReadArrayEnd()
  5114. return
  5115. }
  5116. z.DecReadArrayElem()
  5117. if r.TryDecodeAsNil() {
  5118. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  5119. } else {
  5120. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  5121. }
  5122. yyj90++
  5123. if yyhl90 {
  5124. yyb90 = yyj90 > l
  5125. } else {
  5126. yyb90 = r.CheckBreak()
  5127. }
  5128. if yyb90 {
  5129. z.DecReadArrayEnd()
  5130. return
  5131. }
  5132. z.DecReadArrayElem()
  5133. if r.TryDecodeAsNil() {
  5134. x.TestStrucCommon.Nmap = nil
  5135. } else {
  5136. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  5137. }
  5138. yyj90++
  5139. if yyhl90 {
  5140. yyb90 = yyj90 > l
  5141. } else {
  5142. yyb90 = r.CheckBreak()
  5143. }
  5144. if yyb90 {
  5145. z.DecReadArrayEnd()
  5146. return
  5147. }
  5148. z.DecReadArrayElem()
  5149. if r.TryDecodeAsNil() {
  5150. x.TestStrucCommon.Nslice = nil
  5151. } else {
  5152. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  5153. }
  5154. yyj90++
  5155. if yyhl90 {
  5156. yyb90 = yyj90 > l
  5157. } else {
  5158. yyb90 = r.CheckBreak()
  5159. }
  5160. if yyb90 {
  5161. z.DecReadArrayEnd()
  5162. return
  5163. }
  5164. z.DecReadArrayElem()
  5165. if r.TryDecodeAsNil() {
  5166. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  5167. x.TestStrucCommon.Nint64 = nil
  5168. }
  5169. } else {
  5170. if x.TestStrucCommon.Nint64 == nil {
  5171. x.TestStrucCommon.Nint64 = new(int64)
  5172. }
  5173. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  5174. }
  5175. yyj90++
  5176. if yyhl90 {
  5177. yyb90 = yyj90 > l
  5178. } else {
  5179. yyb90 = r.CheckBreak()
  5180. }
  5181. if yyb90 {
  5182. z.DecReadArrayEnd()
  5183. return
  5184. }
  5185. z.DecReadArrayElem()
  5186. if r.TryDecodeAsNil() {
  5187. x.Mtsptr = nil
  5188. } else {
  5189. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  5190. }
  5191. yyj90++
  5192. if yyhl90 {
  5193. yyb90 = yyj90 > l
  5194. } else {
  5195. yyb90 = r.CheckBreak()
  5196. }
  5197. if yyb90 {
  5198. z.DecReadArrayEnd()
  5199. return
  5200. }
  5201. z.DecReadArrayElem()
  5202. if r.TryDecodeAsNil() {
  5203. x.Mts = nil
  5204. } else {
  5205. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  5206. }
  5207. yyj90++
  5208. if yyhl90 {
  5209. yyb90 = yyj90 > l
  5210. } else {
  5211. yyb90 = r.CheckBreak()
  5212. }
  5213. if yyb90 {
  5214. z.DecReadArrayEnd()
  5215. return
  5216. }
  5217. z.DecReadArrayElem()
  5218. if r.TryDecodeAsNil() {
  5219. x.Its = nil
  5220. } else {
  5221. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  5222. }
  5223. yyj90++
  5224. if yyhl90 {
  5225. yyb90 = yyj90 > l
  5226. } else {
  5227. yyb90 = r.CheckBreak()
  5228. }
  5229. if yyb90 {
  5230. z.DecReadArrayEnd()
  5231. return
  5232. }
  5233. z.DecReadArrayElem()
  5234. if r.TryDecodeAsNil() {
  5235. if x.Nteststruc != nil { // remove the if-true
  5236. x.Nteststruc = nil
  5237. }
  5238. } else {
  5239. if x.Nteststruc == nil {
  5240. x.Nteststruc = new(TestStruc)
  5241. }
  5242. x.Nteststruc.CodecDecodeSelf(d)
  5243. }
  5244. for {
  5245. yyj90++
  5246. if yyhl90 {
  5247. yyb90 = yyj90 > l
  5248. } else {
  5249. yyb90 = r.CheckBreak()
  5250. }
  5251. if yyb90 {
  5252. break
  5253. }
  5254. z.DecReadArrayElem()
  5255. z.DecStructFieldNotFound(yyj90-1, "")
  5256. }
  5257. z.DecReadArrayEnd()
  5258. }
  5259. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  5260. var h codecSelfer19780
  5261. z, r := GenHelperEncoder(e)
  5262. _, _, _ = h, z, r
  5263. if x == nil {
  5264. r.EncodeNil()
  5265. } else {
  5266. yysep2 := !z.EncBinary()
  5267. yy2arr2 := z.EncBasicHandle().StructToArray
  5268. _, _ = yysep2, yy2arr2
  5269. const yyr2 bool = false // struct tag has 'toArray'
  5270. if yyr2 || yy2arr2 {
  5271. z.EncWriteArrayStart(1)
  5272. z.EncWriteArrayElem()
  5273. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5274. z.EncWriteArrayEnd()
  5275. } else {
  5276. z.EncWriteMapStart(1)
  5277. z.EncWriteMapElemKey()
  5278. if z.IsJSONHandle() {
  5279. z.WriteStr("\"ZZ\"")
  5280. } else {
  5281. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  5282. }
  5283. z.EncWriteMapElemValue()
  5284. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5285. z.EncWriteMapEnd()
  5286. }
  5287. }
  5288. }
  5289. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  5290. var h codecSelfer19780
  5291. z, r := GenHelperDecoder(d)
  5292. _, _, _ = h, z, r
  5293. yyct2 := r.ContainerType()
  5294. if yyct2 == codecSelferValueTypeMap19780 {
  5295. yyl2 := z.DecReadMapStart()
  5296. if yyl2 == 0 {
  5297. z.DecReadMapEnd()
  5298. } else {
  5299. x.codecDecodeSelfFromMap(yyl2, d)
  5300. }
  5301. } else if yyct2 == codecSelferValueTypeArray19780 {
  5302. yyl2 := z.DecReadArrayStart()
  5303. if yyl2 == 0 {
  5304. z.DecReadArrayEnd()
  5305. } else {
  5306. x.codecDecodeSelfFromArray(yyl2, d)
  5307. }
  5308. } else {
  5309. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5310. }
  5311. }
  5312. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  5313. var h codecSelfer19780
  5314. z, r := GenHelperDecoder(d)
  5315. _, _, _ = h, z, r
  5316. var yyhl3 bool = l >= 0
  5317. for yyj3 := 0; ; yyj3++ {
  5318. if yyhl3 {
  5319. if yyj3 >= l {
  5320. break
  5321. }
  5322. } else {
  5323. if r.CheckBreak() {
  5324. break
  5325. }
  5326. }
  5327. z.DecReadMapElemKey()
  5328. yys3 := z.StringView(r.DecodeStringAsBytes())
  5329. z.DecReadMapElemValue()
  5330. switch yys3 {
  5331. case "ZZ":
  5332. if r.TryDecodeAsNil() {
  5333. x.ZZ = nil
  5334. } else {
  5335. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5336. }
  5337. default:
  5338. z.DecStructFieldNotFound(-1, yys3)
  5339. } // end switch yys3
  5340. } // end for yyj3
  5341. z.DecReadMapEnd()
  5342. }
  5343. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  5344. var h codecSelfer19780
  5345. z, r := GenHelperDecoder(d)
  5346. _, _, _ = h, z, r
  5347. var yyj6 int
  5348. var yyb6 bool
  5349. var yyhl6 bool = l >= 0
  5350. yyj6++
  5351. if yyhl6 {
  5352. yyb6 = yyj6 > l
  5353. } else {
  5354. yyb6 = r.CheckBreak()
  5355. }
  5356. if yyb6 {
  5357. z.DecReadArrayEnd()
  5358. return
  5359. }
  5360. z.DecReadArrayElem()
  5361. if r.TryDecodeAsNil() {
  5362. x.ZZ = nil
  5363. } else {
  5364. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5365. }
  5366. for {
  5367. yyj6++
  5368. if yyhl6 {
  5369. yyb6 = yyj6 > l
  5370. } else {
  5371. yyb6 = r.CheckBreak()
  5372. }
  5373. if yyb6 {
  5374. break
  5375. }
  5376. z.DecReadArrayElem()
  5377. z.DecStructFieldNotFound(yyj6-1, "")
  5378. }
  5379. z.DecReadArrayEnd()
  5380. }
  5381. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  5382. var h codecSelfer19780
  5383. z, r := GenHelperEncoder(e)
  5384. _, _, _ = h, z, r
  5385. if x == nil {
  5386. r.EncodeNil()
  5387. } else {
  5388. yysep2 := !z.EncBinary()
  5389. yy2arr2 := z.EncBasicHandle().StructToArray
  5390. _, _ = yysep2, yy2arr2
  5391. const yyr2 bool = false // struct tag has 'toArray'
  5392. if yyr2 || yy2arr2 {
  5393. z.EncWriteArrayStart(1)
  5394. z.EncWriteArrayElem()
  5395. yy4 := &x.AA
  5396. yy4.CodecEncodeSelf(e)
  5397. z.EncWriteArrayEnd()
  5398. } else {
  5399. z.EncWriteMapStart(1)
  5400. z.EncWriteMapElemKey()
  5401. if z.IsJSONHandle() {
  5402. z.WriteStr("\"AA\"")
  5403. } else {
  5404. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  5405. }
  5406. z.EncWriteMapElemValue()
  5407. yy6 := &x.AA
  5408. yy6.CodecEncodeSelf(e)
  5409. z.EncWriteMapEnd()
  5410. }
  5411. }
  5412. }
  5413. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  5414. var h codecSelfer19780
  5415. z, r := GenHelperDecoder(d)
  5416. _, _, _ = h, z, r
  5417. yyct2 := r.ContainerType()
  5418. if yyct2 == codecSelferValueTypeMap19780 {
  5419. yyl2 := z.DecReadMapStart()
  5420. if yyl2 == 0 {
  5421. z.DecReadMapEnd()
  5422. } else {
  5423. x.codecDecodeSelfFromMap(yyl2, d)
  5424. }
  5425. } else if yyct2 == codecSelferValueTypeArray19780 {
  5426. yyl2 := z.DecReadArrayStart()
  5427. if yyl2 == 0 {
  5428. z.DecReadArrayEnd()
  5429. } else {
  5430. x.codecDecodeSelfFromArray(yyl2, d)
  5431. }
  5432. } else {
  5433. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5434. }
  5435. }
  5436. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  5437. var h codecSelfer19780
  5438. z, r := GenHelperDecoder(d)
  5439. _, _, _ = h, z, r
  5440. var yyhl3 bool = l >= 0
  5441. for yyj3 := 0; ; yyj3++ {
  5442. if yyhl3 {
  5443. if yyj3 >= l {
  5444. break
  5445. }
  5446. } else {
  5447. if r.CheckBreak() {
  5448. break
  5449. }
  5450. }
  5451. z.DecReadMapElemKey()
  5452. yys3 := z.StringView(r.DecodeStringAsBytes())
  5453. z.DecReadMapElemValue()
  5454. switch yys3 {
  5455. case "AA":
  5456. if r.TryDecodeAsNil() {
  5457. x.AA = codecgenA{}
  5458. } else {
  5459. x.AA.CodecDecodeSelf(d)
  5460. }
  5461. default:
  5462. z.DecStructFieldNotFound(-1, yys3)
  5463. } // end switch yys3
  5464. } // end for yyj3
  5465. z.DecReadMapEnd()
  5466. }
  5467. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  5468. var h codecSelfer19780
  5469. z, r := GenHelperDecoder(d)
  5470. _, _, _ = h, z, r
  5471. var yyj5 int
  5472. var yyb5 bool
  5473. var yyhl5 bool = l >= 0
  5474. yyj5++
  5475. if yyhl5 {
  5476. yyb5 = yyj5 > l
  5477. } else {
  5478. yyb5 = r.CheckBreak()
  5479. }
  5480. if yyb5 {
  5481. z.DecReadArrayEnd()
  5482. return
  5483. }
  5484. z.DecReadArrayElem()
  5485. if r.TryDecodeAsNil() {
  5486. x.AA = codecgenA{}
  5487. } else {
  5488. x.AA.CodecDecodeSelf(d)
  5489. }
  5490. for {
  5491. yyj5++
  5492. if yyhl5 {
  5493. yyb5 = yyj5 > l
  5494. } else {
  5495. yyb5 = r.CheckBreak()
  5496. }
  5497. if yyb5 {
  5498. break
  5499. }
  5500. z.DecReadArrayElem()
  5501. z.DecStructFieldNotFound(yyj5-1, "")
  5502. }
  5503. z.DecReadArrayEnd()
  5504. }
  5505. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  5506. var h codecSelfer19780
  5507. z, r := GenHelperEncoder(e)
  5508. _, _, _ = h, z, r
  5509. if x == nil {
  5510. r.EncodeNil()
  5511. } else {
  5512. yysep2 := !z.EncBinary()
  5513. yy2arr2 := z.EncBasicHandle().StructToArray
  5514. _, _ = yysep2, yy2arr2
  5515. const yyr2 bool = false // struct tag has 'toArray'
  5516. var yyq2 = [1]bool{ // should field at this index be written?
  5517. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  5518. }
  5519. _ = yyq2
  5520. if yyr2 || yy2arr2 {
  5521. z.EncWriteArrayStart(1)
  5522. z.EncWriteArrayElem()
  5523. if yyq2[0] {
  5524. yy4 := &x.BB
  5525. yy4.CodecEncodeSelf(e)
  5526. } else {
  5527. r.EncodeNil()
  5528. }
  5529. z.EncWriteArrayEnd()
  5530. } else {
  5531. var yynn2 int
  5532. for _, b := range yyq2 {
  5533. if b {
  5534. yynn2++
  5535. }
  5536. }
  5537. z.EncWriteMapStart(yynn2)
  5538. yynn2 = 0
  5539. if yyq2[0] {
  5540. z.EncWriteMapElemKey()
  5541. if z.IsJSONHandle() {
  5542. z.WriteStr("\"BB\"")
  5543. } else {
  5544. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  5545. }
  5546. z.EncWriteMapElemValue()
  5547. yy6 := &x.BB
  5548. yy6.CodecEncodeSelf(e)
  5549. }
  5550. z.EncWriteMapEnd()
  5551. }
  5552. }
  5553. }
  5554. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  5555. var h codecSelfer19780
  5556. z, r := GenHelperDecoder(d)
  5557. _, _, _ = h, z, r
  5558. yyct2 := r.ContainerType()
  5559. if yyct2 == codecSelferValueTypeMap19780 {
  5560. yyl2 := z.DecReadMapStart()
  5561. if yyl2 == 0 {
  5562. z.DecReadMapEnd()
  5563. } else {
  5564. x.codecDecodeSelfFromMap(yyl2, d)
  5565. }
  5566. } else if yyct2 == codecSelferValueTypeArray19780 {
  5567. yyl2 := z.DecReadArrayStart()
  5568. if yyl2 == 0 {
  5569. z.DecReadArrayEnd()
  5570. } else {
  5571. x.codecDecodeSelfFromArray(yyl2, d)
  5572. }
  5573. } else {
  5574. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5575. }
  5576. }
  5577. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  5578. var h codecSelfer19780
  5579. z, r := GenHelperDecoder(d)
  5580. _, _, _ = h, z, r
  5581. var yyhl3 bool = l >= 0
  5582. for yyj3 := 0; ; yyj3++ {
  5583. if yyhl3 {
  5584. if yyj3 >= l {
  5585. break
  5586. }
  5587. } else {
  5588. if r.CheckBreak() {
  5589. break
  5590. }
  5591. }
  5592. z.DecReadMapElemKey()
  5593. yys3 := z.StringView(r.DecodeStringAsBytes())
  5594. z.DecReadMapElemValue()
  5595. switch yys3 {
  5596. case "BB":
  5597. if r.TryDecodeAsNil() {
  5598. x.BB = codecgenB{}
  5599. } else {
  5600. x.BB.CodecDecodeSelf(d)
  5601. }
  5602. default:
  5603. z.DecStructFieldNotFound(-1, yys3)
  5604. } // end switch yys3
  5605. } // end for yyj3
  5606. z.DecReadMapEnd()
  5607. }
  5608. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  5609. var h codecSelfer19780
  5610. z, r := GenHelperDecoder(d)
  5611. _, _, _ = h, z, r
  5612. var yyj5 int
  5613. var yyb5 bool
  5614. var yyhl5 bool = l >= 0
  5615. yyj5++
  5616. if yyhl5 {
  5617. yyb5 = yyj5 > l
  5618. } else {
  5619. yyb5 = r.CheckBreak()
  5620. }
  5621. if yyb5 {
  5622. z.DecReadArrayEnd()
  5623. return
  5624. }
  5625. z.DecReadArrayElem()
  5626. if r.TryDecodeAsNil() {
  5627. x.BB = codecgenB{}
  5628. } else {
  5629. x.BB.CodecDecodeSelf(d)
  5630. }
  5631. for {
  5632. yyj5++
  5633. if yyhl5 {
  5634. yyb5 = yyj5 > l
  5635. } else {
  5636. yyb5 = r.CheckBreak()
  5637. }
  5638. if yyb5 {
  5639. break
  5640. }
  5641. z.DecReadArrayElem()
  5642. z.DecStructFieldNotFound(yyj5-1, "")
  5643. }
  5644. z.DecReadArrayEnd()
  5645. }
  5646. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  5647. var h codecSelfer19780
  5648. z, r := GenHelperEncoder(e)
  5649. _, _, _ = h, z, r
  5650. if x == nil {
  5651. r.EncodeNil()
  5652. } else {
  5653. yysep2 := !z.EncBinary()
  5654. yy2arr2 := z.EncBasicHandle().StructToArray
  5655. _, _ = yysep2, yy2arr2
  5656. const yyr2 bool = false // struct tag has 'toArray'
  5657. if yyr2 || yy2arr2 {
  5658. z.EncWriteArrayStart(1)
  5659. z.EncWriteArrayElem()
  5660. r.EncodeInt(int64(x.TestCodecgenG))
  5661. z.EncWriteArrayEnd()
  5662. } else {
  5663. z.EncWriteMapStart(1)
  5664. z.EncWriteMapElemKey()
  5665. if z.IsJSONHandle() {
  5666. z.WriteStr("\"TestCodecgenG\"")
  5667. } else {
  5668. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5669. }
  5670. z.EncWriteMapElemValue()
  5671. r.EncodeInt(int64(x.TestCodecgenG))
  5672. z.EncWriteMapEnd()
  5673. }
  5674. }
  5675. }
  5676. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  5677. var h codecSelfer19780
  5678. z, r := GenHelperDecoder(d)
  5679. _, _, _ = h, z, r
  5680. yyct2 := r.ContainerType()
  5681. if yyct2 == codecSelferValueTypeMap19780 {
  5682. yyl2 := z.DecReadMapStart()
  5683. if yyl2 == 0 {
  5684. z.DecReadMapEnd()
  5685. } else {
  5686. x.codecDecodeSelfFromMap(yyl2, d)
  5687. }
  5688. } else if yyct2 == codecSelferValueTypeArray19780 {
  5689. yyl2 := z.DecReadArrayStart()
  5690. if yyl2 == 0 {
  5691. z.DecReadArrayEnd()
  5692. } else {
  5693. x.codecDecodeSelfFromArray(yyl2, d)
  5694. }
  5695. } else {
  5696. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5697. }
  5698. }
  5699. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  5700. var h codecSelfer19780
  5701. z, r := GenHelperDecoder(d)
  5702. _, _, _ = h, z, r
  5703. var yyhl3 bool = l >= 0
  5704. for yyj3 := 0; ; yyj3++ {
  5705. if yyhl3 {
  5706. if yyj3 >= l {
  5707. break
  5708. }
  5709. } else {
  5710. if r.CheckBreak() {
  5711. break
  5712. }
  5713. }
  5714. z.DecReadMapElemKey()
  5715. yys3 := z.StringView(r.DecodeStringAsBytes())
  5716. z.DecReadMapElemValue()
  5717. switch yys3 {
  5718. case "TestCodecgenG":
  5719. if r.TryDecodeAsNil() {
  5720. x.TestCodecgenG = 0
  5721. } else {
  5722. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5723. }
  5724. default:
  5725. z.DecStructFieldNotFound(-1, yys3)
  5726. } // end switch yys3
  5727. } // end for yyj3
  5728. z.DecReadMapEnd()
  5729. }
  5730. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  5731. var h codecSelfer19780
  5732. z, r := GenHelperDecoder(d)
  5733. _, _, _ = h, z, r
  5734. var yyj5 int
  5735. var yyb5 bool
  5736. var yyhl5 bool = l >= 0
  5737. yyj5++
  5738. if yyhl5 {
  5739. yyb5 = yyj5 > l
  5740. } else {
  5741. yyb5 = r.CheckBreak()
  5742. }
  5743. if yyb5 {
  5744. z.DecReadArrayEnd()
  5745. return
  5746. }
  5747. z.DecReadArrayElem()
  5748. if r.TryDecodeAsNil() {
  5749. x.TestCodecgenG = 0
  5750. } else {
  5751. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5752. }
  5753. for {
  5754. yyj5++
  5755. if yyhl5 {
  5756. yyb5 = yyj5 > l
  5757. } else {
  5758. yyb5 = r.CheckBreak()
  5759. }
  5760. if yyb5 {
  5761. break
  5762. }
  5763. z.DecReadArrayElem()
  5764. z.DecStructFieldNotFound(yyj5-1, "")
  5765. }
  5766. z.DecReadArrayEnd()
  5767. }
  5768. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  5769. var h codecSelfer19780
  5770. z, r := GenHelperEncoder(e)
  5771. _, _, _ = h, z, r
  5772. if x == nil {
  5773. r.EncodeNil()
  5774. } else {
  5775. yysep2 := !z.EncBinary()
  5776. yy2arr2 := z.EncBasicHandle().StructToArray
  5777. _, _ = yysep2, yy2arr2
  5778. const yyr2 bool = false // struct tag has 'toArray'
  5779. if yyr2 || yy2arr2 {
  5780. z.EncWriteArrayStart(1)
  5781. z.EncWriteArrayElem()
  5782. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5783. z.EncWriteArrayEnd()
  5784. } else {
  5785. z.EncWriteMapStart(1)
  5786. z.EncWriteMapElemKey()
  5787. if z.IsJSONHandle() {
  5788. z.WriteStr("\"TestCodecgenG\"")
  5789. } else {
  5790. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5791. }
  5792. z.EncWriteMapElemValue()
  5793. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5794. z.EncWriteMapEnd()
  5795. }
  5796. }
  5797. }
  5798. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  5799. var h codecSelfer19780
  5800. z, r := GenHelperDecoder(d)
  5801. _, _, _ = h, z, r
  5802. yyct2 := r.ContainerType()
  5803. if yyct2 == codecSelferValueTypeMap19780 {
  5804. yyl2 := z.DecReadMapStart()
  5805. if yyl2 == 0 {
  5806. z.DecReadMapEnd()
  5807. } else {
  5808. x.codecDecodeSelfFromMap(yyl2, d)
  5809. }
  5810. } else if yyct2 == codecSelferValueTypeArray19780 {
  5811. yyl2 := z.DecReadArrayStart()
  5812. if yyl2 == 0 {
  5813. z.DecReadArrayEnd()
  5814. } else {
  5815. x.codecDecodeSelfFromArray(yyl2, d)
  5816. }
  5817. } else {
  5818. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5819. }
  5820. }
  5821. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  5822. var h codecSelfer19780
  5823. z, r := GenHelperDecoder(d)
  5824. _, _, _ = h, z, r
  5825. var yyhl3 bool = l >= 0
  5826. for yyj3 := 0; ; yyj3++ {
  5827. if yyhl3 {
  5828. if yyj3 >= l {
  5829. break
  5830. }
  5831. } else {
  5832. if r.CheckBreak() {
  5833. break
  5834. }
  5835. }
  5836. z.DecReadMapElemKey()
  5837. yys3 := z.StringView(r.DecodeStringAsBytes())
  5838. z.DecReadMapElemValue()
  5839. switch yys3 {
  5840. case "TestCodecgenG":
  5841. if r.TryDecodeAsNil() {
  5842. x.TestCodecgenG.TestCodecgenG = 0
  5843. } else {
  5844. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5845. }
  5846. default:
  5847. z.DecStructFieldNotFound(-1, yys3)
  5848. } // end switch yys3
  5849. } // end for yyj3
  5850. z.DecReadMapEnd()
  5851. }
  5852. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  5853. var h codecSelfer19780
  5854. z, r := GenHelperDecoder(d)
  5855. _, _, _ = h, z, r
  5856. var yyj5 int
  5857. var yyb5 bool
  5858. var yyhl5 bool = l >= 0
  5859. yyj5++
  5860. if yyhl5 {
  5861. yyb5 = yyj5 > l
  5862. } else {
  5863. yyb5 = r.CheckBreak()
  5864. }
  5865. if yyb5 {
  5866. z.DecReadArrayEnd()
  5867. return
  5868. }
  5869. z.DecReadArrayElem()
  5870. if r.TryDecodeAsNil() {
  5871. x.TestCodecgenG.TestCodecgenG = 0
  5872. } else {
  5873. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5874. }
  5875. for {
  5876. yyj5++
  5877. if yyhl5 {
  5878. yyb5 = yyj5 > l
  5879. } else {
  5880. yyb5 = r.CheckBreak()
  5881. }
  5882. if yyb5 {
  5883. break
  5884. }
  5885. z.DecReadArrayElem()
  5886. z.DecStructFieldNotFound(yyj5-1, "")
  5887. }
  5888. z.DecReadArrayEnd()
  5889. }
  5890. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  5891. var h codecSelfer19780
  5892. z, r := GenHelperEncoder(e)
  5893. _, _, _ = h, z, r
  5894. if x == nil {
  5895. r.EncodeNil()
  5896. } else {
  5897. yysep2 := !z.EncBinary()
  5898. yy2arr2 := z.EncBasicHandle().StructToArray
  5899. _, _ = yysep2, yy2arr2
  5900. const yyr2 bool = false // struct tag has 'toArray'
  5901. if yyr2 || yy2arr2 {
  5902. z.EncWriteArrayStart(1)
  5903. z.EncWriteArrayElem()
  5904. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5905. z.EncWriteArrayEnd()
  5906. } else {
  5907. z.EncWriteMapStart(1)
  5908. z.EncWriteMapElemKey()
  5909. if z.IsJSONHandle() {
  5910. z.WriteStr("\"TestCodecgenG\"")
  5911. } else {
  5912. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5913. }
  5914. z.EncWriteMapElemValue()
  5915. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5916. z.EncWriteMapEnd()
  5917. }
  5918. }
  5919. }
  5920. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  5921. var h codecSelfer19780
  5922. z, r := GenHelperDecoder(d)
  5923. _, _, _ = h, z, r
  5924. yyct2 := r.ContainerType()
  5925. if yyct2 == codecSelferValueTypeMap19780 {
  5926. yyl2 := z.DecReadMapStart()
  5927. if yyl2 == 0 {
  5928. z.DecReadMapEnd()
  5929. } else {
  5930. x.codecDecodeSelfFromMap(yyl2, d)
  5931. }
  5932. } else if yyct2 == codecSelferValueTypeArray19780 {
  5933. yyl2 := z.DecReadArrayStart()
  5934. if yyl2 == 0 {
  5935. z.DecReadArrayEnd()
  5936. } else {
  5937. x.codecDecodeSelfFromArray(yyl2, d)
  5938. }
  5939. } else {
  5940. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5941. }
  5942. }
  5943. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  5944. var h codecSelfer19780
  5945. z, r := GenHelperDecoder(d)
  5946. _, _, _ = h, z, r
  5947. var yyhl3 bool = l >= 0
  5948. for yyj3 := 0; ; yyj3++ {
  5949. if yyhl3 {
  5950. if yyj3 >= l {
  5951. break
  5952. }
  5953. } else {
  5954. if r.CheckBreak() {
  5955. break
  5956. }
  5957. }
  5958. z.DecReadMapElemKey()
  5959. yys3 := z.StringView(r.DecodeStringAsBytes())
  5960. z.DecReadMapElemValue()
  5961. switch yys3 {
  5962. case "TestCodecgenG":
  5963. if r.TryDecodeAsNil() {
  5964. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  5965. } else {
  5966. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5967. }
  5968. default:
  5969. z.DecStructFieldNotFound(-1, yys3)
  5970. } // end switch yys3
  5971. } // end for yyj3
  5972. z.DecReadMapEnd()
  5973. }
  5974. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  5975. var h codecSelfer19780
  5976. z, r := GenHelperDecoder(d)
  5977. _, _, _ = h, z, r
  5978. var yyj5 int
  5979. var yyb5 bool
  5980. var yyhl5 bool = l >= 0
  5981. yyj5++
  5982. if yyhl5 {
  5983. yyb5 = yyj5 > l
  5984. } else {
  5985. yyb5 = r.CheckBreak()
  5986. }
  5987. if yyb5 {
  5988. z.DecReadArrayEnd()
  5989. return
  5990. }
  5991. z.DecReadArrayElem()
  5992. if r.TryDecodeAsNil() {
  5993. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  5994. } else {
  5995. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5996. }
  5997. for {
  5998. yyj5++
  5999. if yyhl5 {
  6000. yyb5 = yyj5 > l
  6001. } else {
  6002. yyb5 = r.CheckBreak()
  6003. }
  6004. if yyb5 {
  6005. break
  6006. }
  6007. z.DecReadArrayElem()
  6008. z.DecStructFieldNotFound(yyj5-1, "")
  6009. }
  6010. z.DecReadArrayEnd()
  6011. }
  6012. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  6013. var h codecSelfer19780
  6014. z, r := GenHelperEncoder(e)
  6015. _, _, _ = h, z, r
  6016. if x == nil {
  6017. r.EncodeNil()
  6018. } else {
  6019. yysep2 := !z.EncBinary()
  6020. yy2arr2 := z.EncBasicHandle().StructToArray
  6021. _, _ = yysep2, yy2arr2
  6022. const yyr2 bool = false // struct tag has 'toArray'
  6023. if yyr2 || yy2arr2 {
  6024. z.EncWriteArrayStart(2)
  6025. z.EncWriteArrayElem()
  6026. r.EncodeInt(int64(x.X))
  6027. z.EncWriteArrayElem()
  6028. if z.EncBasicHandle().StringToRaw {
  6029. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  6030. } else {
  6031. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  6032. }
  6033. z.EncWriteArrayEnd()
  6034. } else {
  6035. z.EncWriteMapStart(2)
  6036. z.EncWriteMapElemKey()
  6037. if z.IsJSONHandle() {
  6038. z.WriteStr("\"X\"")
  6039. } else {
  6040. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6041. }
  6042. z.EncWriteMapElemValue()
  6043. r.EncodeInt(int64(x.X))
  6044. z.EncWriteMapElemKey()
  6045. if z.IsJSONHandle() {
  6046. z.WriteStr("\"Y\"")
  6047. } else {
  6048. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6049. }
  6050. z.EncWriteMapElemValue()
  6051. if z.EncBasicHandle().StringToRaw {
  6052. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  6053. } else {
  6054. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  6055. }
  6056. z.EncWriteMapEnd()
  6057. }
  6058. }
  6059. }
  6060. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  6061. var h codecSelfer19780
  6062. z, r := GenHelperDecoder(d)
  6063. _, _, _ = h, z, r
  6064. yyct2 := r.ContainerType()
  6065. if yyct2 == codecSelferValueTypeMap19780 {
  6066. yyl2 := z.DecReadMapStart()
  6067. if yyl2 == 0 {
  6068. z.DecReadMapEnd()
  6069. } else {
  6070. x.codecDecodeSelfFromMap(yyl2, d)
  6071. }
  6072. } else if yyct2 == codecSelferValueTypeArray19780 {
  6073. yyl2 := z.DecReadArrayStart()
  6074. if yyl2 == 0 {
  6075. z.DecReadArrayEnd()
  6076. } else {
  6077. x.codecDecodeSelfFromArray(yyl2, d)
  6078. }
  6079. } else {
  6080. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6081. }
  6082. }
  6083. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  6084. var h codecSelfer19780
  6085. z, r := GenHelperDecoder(d)
  6086. _, _, _ = h, z, r
  6087. var yyhl3 bool = l >= 0
  6088. for yyj3 := 0; ; yyj3++ {
  6089. if yyhl3 {
  6090. if yyj3 >= l {
  6091. break
  6092. }
  6093. } else {
  6094. if r.CheckBreak() {
  6095. break
  6096. }
  6097. }
  6098. z.DecReadMapElemKey()
  6099. yys3 := z.StringView(r.DecodeStringAsBytes())
  6100. z.DecReadMapElemValue()
  6101. switch yys3 {
  6102. case "X":
  6103. if r.TryDecodeAsNil() {
  6104. x.X = 0
  6105. } else {
  6106. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6107. }
  6108. case "Y":
  6109. if r.TryDecodeAsNil() {
  6110. x.Y = ""
  6111. } else {
  6112. x.Y = (string)(string(r.DecodeStringAsBytes()))
  6113. }
  6114. default:
  6115. z.DecStructFieldNotFound(-1, yys3)
  6116. } // end switch yys3
  6117. } // end for yyj3
  6118. z.DecReadMapEnd()
  6119. }
  6120. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  6121. var h codecSelfer19780
  6122. z, r := GenHelperDecoder(d)
  6123. _, _, _ = h, z, r
  6124. var yyj6 int
  6125. var yyb6 bool
  6126. var yyhl6 bool = l >= 0
  6127. yyj6++
  6128. if yyhl6 {
  6129. yyb6 = yyj6 > l
  6130. } else {
  6131. yyb6 = r.CheckBreak()
  6132. }
  6133. if yyb6 {
  6134. z.DecReadArrayEnd()
  6135. return
  6136. }
  6137. z.DecReadArrayElem()
  6138. if r.TryDecodeAsNil() {
  6139. x.X = 0
  6140. } else {
  6141. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6142. }
  6143. yyj6++
  6144. if yyhl6 {
  6145. yyb6 = yyj6 > l
  6146. } else {
  6147. yyb6 = r.CheckBreak()
  6148. }
  6149. if yyb6 {
  6150. z.DecReadArrayEnd()
  6151. return
  6152. }
  6153. z.DecReadArrayElem()
  6154. if r.TryDecodeAsNil() {
  6155. x.Y = ""
  6156. } else {
  6157. x.Y = (string)(string(r.DecodeStringAsBytes()))
  6158. }
  6159. for {
  6160. yyj6++
  6161. if yyhl6 {
  6162. yyb6 = yyj6 > l
  6163. } else {
  6164. yyb6 = r.CheckBreak()
  6165. }
  6166. if yyb6 {
  6167. break
  6168. }
  6169. z.DecReadArrayElem()
  6170. z.DecStructFieldNotFound(yyj6-1, "")
  6171. }
  6172. z.DecReadArrayEnd()
  6173. }
  6174. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  6175. var h codecSelfer19780
  6176. z, r := GenHelperEncoder(e)
  6177. _, _, _ = h, z, r
  6178. if x == nil {
  6179. r.EncodeNil()
  6180. } else {
  6181. yysep2 := !z.EncBinary()
  6182. yy2arr2 := z.EncBasicHandle().StructToArray
  6183. _, _ = yysep2, yy2arr2
  6184. const yyr2 bool = false // struct tag has 'toArray'
  6185. if yyr2 || yy2arr2 {
  6186. z.EncWriteArrayStart(2)
  6187. z.EncWriteArrayElem()
  6188. r.EncodeInt(int64(x.X))
  6189. z.EncWriteArrayElem()
  6190. r.EncodeUint(uint64(x.Y))
  6191. z.EncWriteArrayEnd()
  6192. } else {
  6193. z.EncWriteMapStart(2)
  6194. z.EncWriteMapElemKey()
  6195. if z.IsJSONHandle() {
  6196. z.WriteStr("\"X\"")
  6197. } else {
  6198. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6199. }
  6200. z.EncWriteMapElemValue()
  6201. r.EncodeInt(int64(x.X))
  6202. z.EncWriteMapElemKey()
  6203. if z.IsJSONHandle() {
  6204. z.WriteStr("\"Y\"")
  6205. } else {
  6206. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6207. }
  6208. z.EncWriteMapElemValue()
  6209. r.EncodeUint(uint64(x.Y))
  6210. z.EncWriteMapEnd()
  6211. }
  6212. }
  6213. }
  6214. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  6215. var h codecSelfer19780
  6216. z, r := GenHelperDecoder(d)
  6217. _, _, _ = h, z, r
  6218. yyct2 := r.ContainerType()
  6219. if yyct2 == codecSelferValueTypeMap19780 {
  6220. yyl2 := z.DecReadMapStart()
  6221. if yyl2 == 0 {
  6222. z.DecReadMapEnd()
  6223. } else {
  6224. x.codecDecodeSelfFromMap(yyl2, d)
  6225. }
  6226. } else if yyct2 == codecSelferValueTypeArray19780 {
  6227. yyl2 := z.DecReadArrayStart()
  6228. if yyl2 == 0 {
  6229. z.DecReadArrayEnd()
  6230. } else {
  6231. x.codecDecodeSelfFromArray(yyl2, d)
  6232. }
  6233. } else {
  6234. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6235. }
  6236. }
  6237. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  6238. var h codecSelfer19780
  6239. z, r := GenHelperDecoder(d)
  6240. _, _, _ = h, z, r
  6241. var yyhl3 bool = l >= 0
  6242. for yyj3 := 0; ; yyj3++ {
  6243. if yyhl3 {
  6244. if yyj3 >= l {
  6245. break
  6246. }
  6247. } else {
  6248. if r.CheckBreak() {
  6249. break
  6250. }
  6251. }
  6252. z.DecReadMapElemKey()
  6253. yys3 := z.StringView(r.DecodeStringAsBytes())
  6254. z.DecReadMapElemValue()
  6255. switch yys3 {
  6256. case "X":
  6257. if r.TryDecodeAsNil() {
  6258. x.X = 0
  6259. } else {
  6260. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6261. }
  6262. case "Y":
  6263. if r.TryDecodeAsNil() {
  6264. x.Y = 0
  6265. } else {
  6266. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6267. }
  6268. default:
  6269. z.DecStructFieldNotFound(-1, yys3)
  6270. } // end switch yys3
  6271. } // end for yyj3
  6272. z.DecReadMapEnd()
  6273. }
  6274. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  6275. var h codecSelfer19780
  6276. z, r := GenHelperDecoder(d)
  6277. _, _, _ = h, z, r
  6278. var yyj6 int
  6279. var yyb6 bool
  6280. var yyhl6 bool = l >= 0
  6281. yyj6++
  6282. if yyhl6 {
  6283. yyb6 = yyj6 > l
  6284. } else {
  6285. yyb6 = r.CheckBreak()
  6286. }
  6287. if yyb6 {
  6288. z.DecReadArrayEnd()
  6289. return
  6290. }
  6291. z.DecReadArrayElem()
  6292. if r.TryDecodeAsNil() {
  6293. x.X = 0
  6294. } else {
  6295. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6296. }
  6297. yyj6++
  6298. if yyhl6 {
  6299. yyb6 = yyj6 > l
  6300. } else {
  6301. yyb6 = r.CheckBreak()
  6302. }
  6303. if yyb6 {
  6304. z.DecReadArrayEnd()
  6305. return
  6306. }
  6307. z.DecReadArrayElem()
  6308. if r.TryDecodeAsNil() {
  6309. x.Y = 0
  6310. } else {
  6311. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6312. }
  6313. for {
  6314. yyj6++
  6315. if yyhl6 {
  6316. yyb6 = yyj6 > l
  6317. } else {
  6318. yyb6 = r.CheckBreak()
  6319. }
  6320. if yyb6 {
  6321. break
  6322. }
  6323. z.DecReadArrayElem()
  6324. z.DecStructFieldNotFound(yyj6-1, "")
  6325. }
  6326. z.DecReadArrayEnd()
  6327. }
  6328. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  6329. var h codecSelfer19780
  6330. z, r := GenHelperEncoder(e)
  6331. _, _, _ = h, z, r
  6332. if x == nil {
  6333. r.EncodeNil()
  6334. } else {
  6335. yysep2 := !z.EncBinary()
  6336. yy2arr2 := z.EncBasicHandle().StructToArray
  6337. _, _ = yysep2, yy2arr2
  6338. const yyr2 bool = false // struct tag has 'toArray'
  6339. if yyr2 || yy2arr2 {
  6340. z.EncWriteArrayStart(2)
  6341. z.EncWriteArrayElem()
  6342. r.EncodeInt(int64(x.codecgenK.X))
  6343. z.EncWriteArrayElem()
  6344. if z.EncBasicHandle().StringToRaw {
  6345. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6346. } else {
  6347. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6348. }
  6349. z.EncWriteArrayEnd()
  6350. } else {
  6351. z.EncWriteMapStart(2)
  6352. z.EncWriteMapElemKey()
  6353. if z.IsJSONHandle() {
  6354. z.WriteStr("\"X\"")
  6355. } else {
  6356. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6357. }
  6358. z.EncWriteMapElemValue()
  6359. r.EncodeInt(int64(x.codecgenK.X))
  6360. z.EncWriteMapElemKey()
  6361. if z.IsJSONHandle() {
  6362. z.WriteStr("\"Y\"")
  6363. } else {
  6364. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6365. }
  6366. z.EncWriteMapElemValue()
  6367. if z.EncBasicHandle().StringToRaw {
  6368. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6369. } else {
  6370. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6371. }
  6372. z.EncWriteMapEnd()
  6373. }
  6374. }
  6375. }
  6376. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  6377. var h codecSelfer19780
  6378. z, r := GenHelperDecoder(d)
  6379. _, _, _ = h, z, r
  6380. yyct2 := r.ContainerType()
  6381. if yyct2 == codecSelferValueTypeMap19780 {
  6382. yyl2 := z.DecReadMapStart()
  6383. if yyl2 == 0 {
  6384. z.DecReadMapEnd()
  6385. } else {
  6386. x.codecDecodeSelfFromMap(yyl2, d)
  6387. }
  6388. } else if yyct2 == codecSelferValueTypeArray19780 {
  6389. yyl2 := z.DecReadArrayStart()
  6390. if yyl2 == 0 {
  6391. z.DecReadArrayEnd()
  6392. } else {
  6393. x.codecDecodeSelfFromArray(yyl2, d)
  6394. }
  6395. } else {
  6396. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6397. }
  6398. }
  6399. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  6400. var h codecSelfer19780
  6401. z, r := GenHelperDecoder(d)
  6402. _, _, _ = h, z, r
  6403. var yyhl3 bool = l >= 0
  6404. for yyj3 := 0; ; yyj3++ {
  6405. if yyhl3 {
  6406. if yyj3 >= l {
  6407. break
  6408. }
  6409. } else {
  6410. if r.CheckBreak() {
  6411. break
  6412. }
  6413. }
  6414. z.DecReadMapElemKey()
  6415. yys3 := z.StringView(r.DecodeStringAsBytes())
  6416. z.DecReadMapElemValue()
  6417. switch yys3 {
  6418. case "X":
  6419. if r.TryDecodeAsNil() {
  6420. x.codecgenK.X = 0
  6421. } else {
  6422. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6423. }
  6424. case "Y":
  6425. if r.TryDecodeAsNil() {
  6426. x.codecgenK.Y = ""
  6427. } else {
  6428. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  6429. }
  6430. default:
  6431. z.DecStructFieldNotFound(-1, yys3)
  6432. } // end switch yys3
  6433. } // end for yyj3
  6434. z.DecReadMapEnd()
  6435. }
  6436. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  6437. var h codecSelfer19780
  6438. z, r := GenHelperDecoder(d)
  6439. _, _, _ = h, z, r
  6440. var yyj6 int
  6441. var yyb6 bool
  6442. var yyhl6 bool = l >= 0
  6443. yyj6++
  6444. if yyhl6 {
  6445. yyb6 = yyj6 > l
  6446. } else {
  6447. yyb6 = r.CheckBreak()
  6448. }
  6449. if yyb6 {
  6450. z.DecReadArrayEnd()
  6451. return
  6452. }
  6453. z.DecReadArrayElem()
  6454. if r.TryDecodeAsNil() {
  6455. x.codecgenK.X = 0
  6456. } else {
  6457. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6458. }
  6459. yyj6++
  6460. if yyhl6 {
  6461. yyb6 = yyj6 > l
  6462. } else {
  6463. yyb6 = r.CheckBreak()
  6464. }
  6465. if yyb6 {
  6466. z.DecReadArrayEnd()
  6467. return
  6468. }
  6469. z.DecReadArrayElem()
  6470. if r.TryDecodeAsNil() {
  6471. x.codecgenK.Y = ""
  6472. } else {
  6473. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  6474. }
  6475. for {
  6476. yyj6++
  6477. if yyhl6 {
  6478. yyb6 = yyj6 > l
  6479. } else {
  6480. yyb6 = r.CheckBreak()
  6481. }
  6482. if yyb6 {
  6483. break
  6484. }
  6485. z.DecReadArrayElem()
  6486. z.DecStructFieldNotFound(yyj6-1, "")
  6487. }
  6488. z.DecReadArrayEnd()
  6489. }
  6490. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  6491. var h codecSelfer19780
  6492. z, r := GenHelperEncoder(e)
  6493. _, _, _ = h, z, r
  6494. r.EncodeBool(bool(x))
  6495. }
  6496. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  6497. var h codecSelfer19780
  6498. z, r := GenHelperDecoder(d)
  6499. _, _, _ = h, z, r
  6500. *x = (Bbool)(r.DecodeBool())
  6501. }
  6502. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  6503. var h codecSelfer19780
  6504. z, r := GenHelperEncoder(e)
  6505. _, _, _ = h, z, r
  6506. if x == nil {
  6507. r.EncodeNil()
  6508. } else {
  6509. h.encAarray((*Aarray)(x), e)
  6510. }
  6511. }
  6512. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  6513. var h codecSelfer19780
  6514. z, r := GenHelperDecoder(d)
  6515. _, _, _ = h, z, r
  6516. h.decAarray((*Aarray)(x), d)
  6517. }
  6518. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  6519. var h codecSelfer19780
  6520. z, r := GenHelperEncoder(e)
  6521. _, _, _ = h, z, r
  6522. if z.EncBasicHandle().StringToRaw {
  6523. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  6524. } else {
  6525. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  6526. }
  6527. }
  6528. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  6529. var h codecSelfer19780
  6530. z, r := GenHelperDecoder(d)
  6531. _, _, _ = h, z, r
  6532. *x = (Sstring)(string(r.DecodeStringAsBytes()))
  6533. }
  6534. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  6535. var h codecSelfer19780
  6536. z, r := GenHelperEncoder(e)
  6537. _, _, _ = h, z, r
  6538. if x == nil {
  6539. r.EncodeNil()
  6540. } else {
  6541. yysep2 := !z.EncBinary()
  6542. yy2arr2 := z.EncBasicHandle().StructToArray
  6543. _, _ = yysep2, yy2arr2
  6544. const yyr2 bool = false // struct tag has 'toArray'
  6545. if yyr2 || yy2arr2 {
  6546. z.EncWriteArrayStart(1)
  6547. z.EncWriteArrayElem()
  6548. r.EncodeInt(int64(x.A))
  6549. z.EncWriteArrayEnd()
  6550. } else {
  6551. z.EncWriteMapStart(1)
  6552. z.EncWriteMapElemKey()
  6553. if z.IsJSONHandle() {
  6554. z.WriteStr("\"A\"")
  6555. } else {
  6556. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6557. }
  6558. z.EncWriteMapElemValue()
  6559. r.EncodeInt(int64(x.A))
  6560. z.EncWriteMapEnd()
  6561. }
  6562. }
  6563. }
  6564. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  6565. var h codecSelfer19780
  6566. z, r := GenHelperDecoder(d)
  6567. _, _, _ = h, z, r
  6568. yyct2 := r.ContainerType()
  6569. if yyct2 == codecSelferValueTypeMap19780 {
  6570. yyl2 := z.DecReadMapStart()
  6571. if yyl2 == 0 {
  6572. z.DecReadMapEnd()
  6573. } else {
  6574. x.codecDecodeSelfFromMap(yyl2, d)
  6575. }
  6576. } else if yyct2 == codecSelferValueTypeArray19780 {
  6577. yyl2 := z.DecReadArrayStart()
  6578. if yyl2 == 0 {
  6579. z.DecReadArrayEnd()
  6580. } else {
  6581. x.codecDecodeSelfFromArray(yyl2, d)
  6582. }
  6583. } else {
  6584. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6585. }
  6586. }
  6587. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  6588. var h codecSelfer19780
  6589. z, r := GenHelperDecoder(d)
  6590. _, _, _ = h, z, r
  6591. var yyhl3 bool = l >= 0
  6592. for yyj3 := 0; ; yyj3++ {
  6593. if yyhl3 {
  6594. if yyj3 >= l {
  6595. break
  6596. }
  6597. } else {
  6598. if r.CheckBreak() {
  6599. break
  6600. }
  6601. }
  6602. z.DecReadMapElemKey()
  6603. yys3 := z.StringView(r.DecodeStringAsBytes())
  6604. z.DecReadMapElemValue()
  6605. switch yys3 {
  6606. case "A":
  6607. if r.TryDecodeAsNil() {
  6608. x.A = 0
  6609. } else {
  6610. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6611. }
  6612. default:
  6613. z.DecStructFieldNotFound(-1, yys3)
  6614. } // end switch yys3
  6615. } // end for yyj3
  6616. z.DecReadMapEnd()
  6617. }
  6618. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  6619. var h codecSelfer19780
  6620. z, r := GenHelperDecoder(d)
  6621. _, _, _ = h, z, r
  6622. var yyj5 int
  6623. var yyb5 bool
  6624. var yyhl5 bool = l >= 0
  6625. yyj5++
  6626. if yyhl5 {
  6627. yyb5 = yyj5 > l
  6628. } else {
  6629. yyb5 = r.CheckBreak()
  6630. }
  6631. if yyb5 {
  6632. z.DecReadArrayEnd()
  6633. return
  6634. }
  6635. z.DecReadArrayElem()
  6636. if r.TryDecodeAsNil() {
  6637. x.A = 0
  6638. } else {
  6639. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6640. }
  6641. for {
  6642. yyj5++
  6643. if yyhl5 {
  6644. yyb5 = yyj5 > l
  6645. } else {
  6646. yyb5 = r.CheckBreak()
  6647. }
  6648. if yyb5 {
  6649. break
  6650. }
  6651. z.DecReadArrayElem()
  6652. z.DecStructFieldNotFound(yyj5-1, "")
  6653. }
  6654. z.DecReadArrayEnd()
  6655. }
  6656. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  6657. var h codecSelfer19780
  6658. z, r := GenHelperEncoder(e)
  6659. _, _, _ = h, z, r
  6660. if x == nil {
  6661. r.EncodeNil()
  6662. } else {
  6663. yysep2 := !z.EncBinary()
  6664. yy2arr2 := z.EncBasicHandle().StructToArray
  6665. _, _ = yysep2, yy2arr2
  6666. const yyr2 bool = false // struct tag has 'toArray'
  6667. var yyn5 bool = x.Ssmallptr == nil
  6668. var yyn6 bool = x.Ssmall == nil
  6669. var yyn7 bool = x.Sptr == nil
  6670. if yyr2 || yy2arr2 {
  6671. z.EncWriteArrayStart(5)
  6672. z.EncWriteArrayElem()
  6673. r.EncodeInt(int64(x.A))
  6674. z.EncWriteArrayElem()
  6675. r.EncodeBool(bool(x.B))
  6676. if yyn5 {
  6677. z.EncWriteArrayElem()
  6678. r.EncodeNil()
  6679. } else {
  6680. z.EncWriteArrayElem()
  6681. x.Ssmallptr.CodecEncodeSelf(e)
  6682. }
  6683. if yyn6 {
  6684. z.EncWriteArrayElem()
  6685. r.EncodeNil()
  6686. } else {
  6687. z.EncWriteArrayElem()
  6688. x.Ssmall.CodecEncodeSelf(e)
  6689. }
  6690. if yyn7 {
  6691. z.EncWriteArrayElem()
  6692. r.EncodeNil()
  6693. } else {
  6694. z.EncWriteArrayElem()
  6695. x.Sptr.CodecEncodeSelf(e)
  6696. }
  6697. z.EncWriteArrayEnd()
  6698. } else {
  6699. z.EncWriteMapStart(5)
  6700. z.EncWriteMapElemKey()
  6701. if z.IsJSONHandle() {
  6702. z.WriteStr("\"A\"")
  6703. } else {
  6704. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6705. }
  6706. z.EncWriteMapElemValue()
  6707. r.EncodeInt(int64(x.A))
  6708. z.EncWriteMapElemKey()
  6709. if z.IsJSONHandle() {
  6710. z.WriteStr("\"B\"")
  6711. } else {
  6712. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6713. }
  6714. z.EncWriteMapElemValue()
  6715. r.EncodeBool(bool(x.B))
  6716. z.EncWriteMapElemKey()
  6717. if z.IsJSONHandle() {
  6718. z.WriteStr("\"Ssmallptr\"")
  6719. } else {
  6720. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6721. }
  6722. z.EncWriteMapElemValue()
  6723. if yyn5 {
  6724. r.EncodeNil()
  6725. } else {
  6726. x.Ssmallptr.CodecEncodeSelf(e)
  6727. }
  6728. z.EncWriteMapElemKey()
  6729. if z.IsJSONHandle() {
  6730. z.WriteStr("\"Ssmall\"")
  6731. } else {
  6732. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6733. }
  6734. z.EncWriteMapElemValue()
  6735. if yyn6 {
  6736. r.EncodeNil()
  6737. } else {
  6738. x.Ssmall.CodecEncodeSelf(e)
  6739. }
  6740. z.EncWriteMapElemKey()
  6741. if z.IsJSONHandle() {
  6742. z.WriteStr("\"Sptr\"")
  6743. } else {
  6744. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6745. }
  6746. z.EncWriteMapElemValue()
  6747. if yyn7 {
  6748. r.EncodeNil()
  6749. } else {
  6750. x.Sptr.CodecEncodeSelf(e)
  6751. }
  6752. z.EncWriteMapEnd()
  6753. }
  6754. }
  6755. }
  6756. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  6757. var h codecSelfer19780
  6758. z, r := GenHelperDecoder(d)
  6759. _, _, _ = h, z, r
  6760. yyct2 := r.ContainerType()
  6761. if yyct2 == codecSelferValueTypeMap19780 {
  6762. yyl2 := z.DecReadMapStart()
  6763. if yyl2 == 0 {
  6764. z.DecReadMapEnd()
  6765. } else {
  6766. x.codecDecodeSelfFromMap(yyl2, d)
  6767. }
  6768. } else if yyct2 == codecSelferValueTypeArray19780 {
  6769. yyl2 := z.DecReadArrayStart()
  6770. if yyl2 == 0 {
  6771. z.DecReadArrayEnd()
  6772. } else {
  6773. x.codecDecodeSelfFromArray(yyl2, d)
  6774. }
  6775. } else {
  6776. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6777. }
  6778. }
  6779. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  6780. var h codecSelfer19780
  6781. z, r := GenHelperDecoder(d)
  6782. _, _, _ = h, z, r
  6783. var yyhl3 bool = l >= 0
  6784. for yyj3 := 0; ; yyj3++ {
  6785. if yyhl3 {
  6786. if yyj3 >= l {
  6787. break
  6788. }
  6789. } else {
  6790. if r.CheckBreak() {
  6791. break
  6792. }
  6793. }
  6794. z.DecReadMapElemKey()
  6795. yys3 := z.StringView(r.DecodeStringAsBytes())
  6796. z.DecReadMapElemValue()
  6797. switch yys3 {
  6798. case "A":
  6799. if r.TryDecodeAsNil() {
  6800. x.A = 0
  6801. } else {
  6802. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6803. }
  6804. case "B":
  6805. if r.TryDecodeAsNil() {
  6806. x.B = false
  6807. } else {
  6808. x.B = (bool)(r.DecodeBool())
  6809. }
  6810. case "Ssmallptr":
  6811. if r.TryDecodeAsNil() {
  6812. if x.Ssmallptr != nil { // remove the if-true
  6813. x.Ssmallptr = nil
  6814. }
  6815. } else {
  6816. if x.Ssmallptr == nil {
  6817. x.Ssmallptr = new(Sstructsmall)
  6818. }
  6819. x.Ssmallptr.CodecDecodeSelf(d)
  6820. }
  6821. case "Ssmall":
  6822. if r.TryDecodeAsNil() {
  6823. if x.Ssmall != nil { // remove the if-true
  6824. x.Ssmall = nil
  6825. }
  6826. } else {
  6827. if x.Ssmall == nil {
  6828. x.Ssmall = new(Sstructsmall)
  6829. }
  6830. x.Ssmall.CodecDecodeSelf(d)
  6831. }
  6832. case "Sptr":
  6833. if r.TryDecodeAsNil() {
  6834. if x.Sptr != nil { // remove the if-true
  6835. x.Sptr = nil
  6836. }
  6837. } else {
  6838. if x.Sptr == nil {
  6839. x.Sptr = new(Sstructbig)
  6840. }
  6841. x.Sptr.CodecDecodeSelf(d)
  6842. }
  6843. default:
  6844. z.DecStructFieldNotFound(-1, yys3)
  6845. } // end switch yys3
  6846. } // end for yyj3
  6847. z.DecReadMapEnd()
  6848. }
  6849. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  6850. var h codecSelfer19780
  6851. z, r := GenHelperDecoder(d)
  6852. _, _, _ = h, z, r
  6853. var yyj9 int
  6854. var yyb9 bool
  6855. var yyhl9 bool = l >= 0
  6856. yyj9++
  6857. if yyhl9 {
  6858. yyb9 = yyj9 > l
  6859. } else {
  6860. yyb9 = r.CheckBreak()
  6861. }
  6862. if yyb9 {
  6863. z.DecReadArrayEnd()
  6864. return
  6865. }
  6866. z.DecReadArrayElem()
  6867. if r.TryDecodeAsNil() {
  6868. x.A = 0
  6869. } else {
  6870. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6871. }
  6872. yyj9++
  6873. if yyhl9 {
  6874. yyb9 = yyj9 > l
  6875. } else {
  6876. yyb9 = r.CheckBreak()
  6877. }
  6878. if yyb9 {
  6879. z.DecReadArrayEnd()
  6880. return
  6881. }
  6882. z.DecReadArrayElem()
  6883. if r.TryDecodeAsNil() {
  6884. x.B = false
  6885. } else {
  6886. x.B = (bool)(r.DecodeBool())
  6887. }
  6888. yyj9++
  6889. if yyhl9 {
  6890. yyb9 = yyj9 > l
  6891. } else {
  6892. yyb9 = r.CheckBreak()
  6893. }
  6894. if yyb9 {
  6895. z.DecReadArrayEnd()
  6896. return
  6897. }
  6898. z.DecReadArrayElem()
  6899. if r.TryDecodeAsNil() {
  6900. if x.Ssmallptr != nil { // remove the if-true
  6901. x.Ssmallptr = nil
  6902. }
  6903. } else {
  6904. if x.Ssmallptr == nil {
  6905. x.Ssmallptr = new(Sstructsmall)
  6906. }
  6907. x.Ssmallptr.CodecDecodeSelf(d)
  6908. }
  6909. yyj9++
  6910. if yyhl9 {
  6911. yyb9 = yyj9 > l
  6912. } else {
  6913. yyb9 = r.CheckBreak()
  6914. }
  6915. if yyb9 {
  6916. z.DecReadArrayEnd()
  6917. return
  6918. }
  6919. z.DecReadArrayElem()
  6920. if r.TryDecodeAsNil() {
  6921. if x.Ssmall != nil { // remove the if-true
  6922. x.Ssmall = nil
  6923. }
  6924. } else {
  6925. if x.Ssmall == nil {
  6926. x.Ssmall = new(Sstructsmall)
  6927. }
  6928. x.Ssmall.CodecDecodeSelf(d)
  6929. }
  6930. yyj9++
  6931. if yyhl9 {
  6932. yyb9 = yyj9 > l
  6933. } else {
  6934. yyb9 = r.CheckBreak()
  6935. }
  6936. if yyb9 {
  6937. z.DecReadArrayEnd()
  6938. return
  6939. }
  6940. z.DecReadArrayElem()
  6941. if r.TryDecodeAsNil() {
  6942. if x.Sptr != nil { // remove the if-true
  6943. x.Sptr = nil
  6944. }
  6945. } else {
  6946. if x.Sptr == nil {
  6947. x.Sptr = new(Sstructbig)
  6948. }
  6949. x.Sptr.CodecDecodeSelf(d)
  6950. }
  6951. for {
  6952. yyj9++
  6953. if yyhl9 {
  6954. yyb9 = yyj9 > l
  6955. } else {
  6956. yyb9 = r.CheckBreak()
  6957. }
  6958. if yyb9 {
  6959. break
  6960. }
  6961. z.DecReadArrayElem()
  6962. z.DecStructFieldNotFound(yyj9-1, "")
  6963. }
  6964. z.DecReadArrayEnd()
  6965. }
  6966. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  6967. var h codecSelfer19780
  6968. z, r := GenHelperEncoder(e)
  6969. _, _, _ = h, z, r
  6970. if x == nil {
  6971. r.EncodeNil()
  6972. } else {
  6973. yysep2 := !z.EncBinary()
  6974. yy2arr2 := z.EncBasicHandle().StructToArray
  6975. _, _ = yysep2, yy2arr2
  6976. const yyr2 bool = true // struct tag has 'toArray'
  6977. var yyn5 bool = x.Ssmallptr == nil
  6978. var yyn6 bool = x.Ssmall == nil
  6979. var yyn7 bool = x.Sptr == nil
  6980. if yyr2 || yy2arr2 {
  6981. z.EncWriteArrayStart(5)
  6982. z.EncWriteArrayElem()
  6983. r.EncodeInt(int64(x.A))
  6984. z.EncWriteArrayElem()
  6985. r.EncodeBool(bool(x.B))
  6986. if yyn5 {
  6987. z.EncWriteArrayElem()
  6988. r.EncodeNil()
  6989. } else {
  6990. z.EncWriteArrayElem()
  6991. x.Ssmallptr.CodecEncodeSelf(e)
  6992. }
  6993. if yyn6 {
  6994. z.EncWriteArrayElem()
  6995. r.EncodeNil()
  6996. } else {
  6997. z.EncWriteArrayElem()
  6998. x.Ssmall.CodecEncodeSelf(e)
  6999. }
  7000. if yyn7 {
  7001. z.EncWriteArrayElem()
  7002. r.EncodeNil()
  7003. } else {
  7004. z.EncWriteArrayElem()
  7005. x.Sptr.CodecEncodeSelf(e)
  7006. }
  7007. z.EncWriteArrayEnd()
  7008. } else {
  7009. z.EncWriteMapStart(5)
  7010. z.EncWriteMapElemKey()
  7011. if z.IsJSONHandle() {
  7012. z.WriteStr("\"A\"")
  7013. } else {
  7014. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7015. }
  7016. z.EncWriteMapElemValue()
  7017. r.EncodeInt(int64(x.A))
  7018. z.EncWriteMapElemKey()
  7019. if z.IsJSONHandle() {
  7020. z.WriteStr("\"B\"")
  7021. } else {
  7022. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7023. }
  7024. z.EncWriteMapElemValue()
  7025. r.EncodeBool(bool(x.B))
  7026. z.EncWriteMapElemKey()
  7027. if z.IsJSONHandle() {
  7028. z.WriteStr("\"Ssmallptr\"")
  7029. } else {
  7030. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  7031. }
  7032. z.EncWriteMapElemValue()
  7033. if yyn5 {
  7034. r.EncodeNil()
  7035. } else {
  7036. x.Ssmallptr.CodecEncodeSelf(e)
  7037. }
  7038. z.EncWriteMapElemKey()
  7039. if z.IsJSONHandle() {
  7040. z.WriteStr("\"Ssmall\"")
  7041. } else {
  7042. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  7043. }
  7044. z.EncWriteMapElemValue()
  7045. if yyn6 {
  7046. r.EncodeNil()
  7047. } else {
  7048. x.Ssmall.CodecEncodeSelf(e)
  7049. }
  7050. z.EncWriteMapElemKey()
  7051. if z.IsJSONHandle() {
  7052. z.WriteStr("\"Sptr\"")
  7053. } else {
  7054. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  7055. }
  7056. z.EncWriteMapElemValue()
  7057. if yyn7 {
  7058. r.EncodeNil()
  7059. } else {
  7060. x.Sptr.CodecEncodeSelf(e)
  7061. }
  7062. z.EncWriteMapEnd()
  7063. }
  7064. }
  7065. }
  7066. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  7067. var h codecSelfer19780
  7068. z, r := GenHelperDecoder(d)
  7069. _, _, _ = h, z, r
  7070. yyct2 := r.ContainerType()
  7071. if yyct2 == codecSelferValueTypeMap19780 {
  7072. yyl2 := z.DecReadMapStart()
  7073. if yyl2 == 0 {
  7074. z.DecReadMapEnd()
  7075. } else {
  7076. x.codecDecodeSelfFromMap(yyl2, d)
  7077. }
  7078. } else if yyct2 == codecSelferValueTypeArray19780 {
  7079. yyl2 := z.DecReadArrayStart()
  7080. if yyl2 == 0 {
  7081. z.DecReadArrayEnd()
  7082. } else {
  7083. x.codecDecodeSelfFromArray(yyl2, d)
  7084. }
  7085. } else {
  7086. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7087. }
  7088. }
  7089. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  7090. var h codecSelfer19780
  7091. z, r := GenHelperDecoder(d)
  7092. _, _, _ = h, z, r
  7093. var yyhl3 bool = l >= 0
  7094. for yyj3 := 0; ; yyj3++ {
  7095. if yyhl3 {
  7096. if yyj3 >= l {
  7097. break
  7098. }
  7099. } else {
  7100. if r.CheckBreak() {
  7101. break
  7102. }
  7103. }
  7104. z.DecReadMapElemKey()
  7105. yys3 := z.StringView(r.DecodeStringAsBytes())
  7106. z.DecReadMapElemValue()
  7107. switch yys3 {
  7108. case "A":
  7109. if r.TryDecodeAsNil() {
  7110. x.A = 0
  7111. } else {
  7112. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7113. }
  7114. case "B":
  7115. if r.TryDecodeAsNil() {
  7116. x.B = false
  7117. } else {
  7118. x.B = (bool)(r.DecodeBool())
  7119. }
  7120. case "Ssmallptr":
  7121. if r.TryDecodeAsNil() {
  7122. if x.Ssmallptr != nil { // remove the if-true
  7123. x.Ssmallptr = nil
  7124. }
  7125. } else {
  7126. if x.Ssmallptr == nil {
  7127. x.Ssmallptr = new(Sstructsmall)
  7128. }
  7129. x.Ssmallptr.CodecDecodeSelf(d)
  7130. }
  7131. case "Ssmall":
  7132. if r.TryDecodeAsNil() {
  7133. if x.Ssmall != nil { // remove the if-true
  7134. x.Ssmall = nil
  7135. }
  7136. } else {
  7137. if x.Ssmall == nil {
  7138. x.Ssmall = new(Sstructsmall)
  7139. }
  7140. x.Ssmall.CodecDecodeSelf(d)
  7141. }
  7142. case "Sptr":
  7143. if r.TryDecodeAsNil() {
  7144. if x.Sptr != nil { // remove the if-true
  7145. x.Sptr = nil
  7146. }
  7147. } else {
  7148. if x.Sptr == nil {
  7149. x.Sptr = new(Sstructbig)
  7150. }
  7151. x.Sptr.CodecDecodeSelf(d)
  7152. }
  7153. default:
  7154. z.DecStructFieldNotFound(-1, yys3)
  7155. } // end switch yys3
  7156. } // end for yyj3
  7157. z.DecReadMapEnd()
  7158. }
  7159. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  7160. var h codecSelfer19780
  7161. z, r := GenHelperDecoder(d)
  7162. _, _, _ = h, z, r
  7163. var yyj9 int
  7164. var yyb9 bool
  7165. var yyhl9 bool = l >= 0
  7166. yyj9++
  7167. if yyhl9 {
  7168. yyb9 = yyj9 > l
  7169. } else {
  7170. yyb9 = r.CheckBreak()
  7171. }
  7172. if yyb9 {
  7173. z.DecReadArrayEnd()
  7174. return
  7175. }
  7176. z.DecReadArrayElem()
  7177. if r.TryDecodeAsNil() {
  7178. x.A = 0
  7179. } else {
  7180. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7181. }
  7182. yyj9++
  7183. if yyhl9 {
  7184. yyb9 = yyj9 > l
  7185. } else {
  7186. yyb9 = r.CheckBreak()
  7187. }
  7188. if yyb9 {
  7189. z.DecReadArrayEnd()
  7190. return
  7191. }
  7192. z.DecReadArrayElem()
  7193. if r.TryDecodeAsNil() {
  7194. x.B = false
  7195. } else {
  7196. x.B = (bool)(r.DecodeBool())
  7197. }
  7198. yyj9++
  7199. if yyhl9 {
  7200. yyb9 = yyj9 > l
  7201. } else {
  7202. yyb9 = r.CheckBreak()
  7203. }
  7204. if yyb9 {
  7205. z.DecReadArrayEnd()
  7206. return
  7207. }
  7208. z.DecReadArrayElem()
  7209. if r.TryDecodeAsNil() {
  7210. if x.Ssmallptr != nil { // remove the if-true
  7211. x.Ssmallptr = nil
  7212. }
  7213. } else {
  7214. if x.Ssmallptr == nil {
  7215. x.Ssmallptr = new(Sstructsmall)
  7216. }
  7217. x.Ssmallptr.CodecDecodeSelf(d)
  7218. }
  7219. yyj9++
  7220. if yyhl9 {
  7221. yyb9 = yyj9 > l
  7222. } else {
  7223. yyb9 = r.CheckBreak()
  7224. }
  7225. if yyb9 {
  7226. z.DecReadArrayEnd()
  7227. return
  7228. }
  7229. z.DecReadArrayElem()
  7230. if r.TryDecodeAsNil() {
  7231. if x.Ssmall != nil { // remove the if-true
  7232. x.Ssmall = nil
  7233. }
  7234. } else {
  7235. if x.Ssmall == nil {
  7236. x.Ssmall = new(Sstructsmall)
  7237. }
  7238. x.Ssmall.CodecDecodeSelf(d)
  7239. }
  7240. yyj9++
  7241. if yyhl9 {
  7242. yyb9 = yyj9 > l
  7243. } else {
  7244. yyb9 = r.CheckBreak()
  7245. }
  7246. if yyb9 {
  7247. z.DecReadArrayEnd()
  7248. return
  7249. }
  7250. z.DecReadArrayElem()
  7251. if r.TryDecodeAsNil() {
  7252. if x.Sptr != nil { // remove the if-true
  7253. x.Sptr = nil
  7254. }
  7255. } else {
  7256. if x.Sptr == nil {
  7257. x.Sptr = new(Sstructbig)
  7258. }
  7259. x.Sptr.CodecDecodeSelf(d)
  7260. }
  7261. for {
  7262. yyj9++
  7263. if yyhl9 {
  7264. yyb9 = yyj9 > l
  7265. } else {
  7266. yyb9 = r.CheckBreak()
  7267. }
  7268. if yyb9 {
  7269. break
  7270. }
  7271. z.DecReadArrayElem()
  7272. z.DecStructFieldNotFound(yyj9-1, "")
  7273. }
  7274. z.DecReadArrayEnd()
  7275. }
  7276. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  7277. var h codecSelfer19780
  7278. z, r := GenHelperEncoder(e)
  7279. _, _, _ = h, z, r
  7280. if x == nil {
  7281. r.EncodeNil()
  7282. } else {
  7283. yysep2 := !z.EncBinary()
  7284. yy2arr2 := z.EncBasicHandle().StructToArray
  7285. _, _ = yysep2, yy2arr2
  7286. const yyr2 bool = false // struct tag has 'toArray'
  7287. if yyr2 || yy2arr2 {
  7288. z.EncWriteArrayStart(2)
  7289. z.EncWriteArrayElem()
  7290. r.EncodeInt(int64(x.I))
  7291. z.EncWriteArrayElem()
  7292. if z.EncBasicHandle().StringToRaw {
  7293. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7294. } else {
  7295. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7296. }
  7297. z.EncWriteArrayEnd()
  7298. } else {
  7299. z.EncWriteMapStart(2)
  7300. z.EncWriteMapElemKey()
  7301. if z.IsJSONHandle() {
  7302. z.WriteStr("\"I\"")
  7303. } else {
  7304. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7305. }
  7306. z.EncWriteMapElemValue()
  7307. r.EncodeInt(int64(x.I))
  7308. z.EncWriteMapElemKey()
  7309. if z.IsJSONHandle() {
  7310. z.WriteStr("\"S\"")
  7311. } else {
  7312. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7313. }
  7314. z.EncWriteMapElemValue()
  7315. if z.EncBasicHandle().StringToRaw {
  7316. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7317. } else {
  7318. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7319. }
  7320. z.EncWriteMapEnd()
  7321. }
  7322. }
  7323. }
  7324. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  7325. var h codecSelfer19780
  7326. z, r := GenHelperDecoder(d)
  7327. _, _, _ = h, z, r
  7328. yyct2 := r.ContainerType()
  7329. if yyct2 == codecSelferValueTypeMap19780 {
  7330. yyl2 := z.DecReadMapStart()
  7331. if yyl2 == 0 {
  7332. z.DecReadMapEnd()
  7333. } else {
  7334. x.codecDecodeSelfFromMap(yyl2, d)
  7335. }
  7336. } else if yyct2 == codecSelferValueTypeArray19780 {
  7337. yyl2 := z.DecReadArrayStart()
  7338. if yyl2 == 0 {
  7339. z.DecReadArrayEnd()
  7340. } else {
  7341. x.codecDecodeSelfFromArray(yyl2, d)
  7342. }
  7343. } else {
  7344. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7345. }
  7346. }
  7347. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  7348. var h codecSelfer19780
  7349. z, r := GenHelperDecoder(d)
  7350. _, _, _ = h, z, r
  7351. var yyhl3 bool = l >= 0
  7352. for yyj3 := 0; ; yyj3++ {
  7353. if yyhl3 {
  7354. if yyj3 >= l {
  7355. break
  7356. }
  7357. } else {
  7358. if r.CheckBreak() {
  7359. break
  7360. }
  7361. }
  7362. z.DecReadMapElemKey()
  7363. yys3 := z.StringView(r.DecodeStringAsBytes())
  7364. z.DecReadMapElemValue()
  7365. switch yys3 {
  7366. case "I":
  7367. if r.TryDecodeAsNil() {
  7368. x.I = 0
  7369. } else {
  7370. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7371. }
  7372. case "S":
  7373. if r.TryDecodeAsNil() {
  7374. x.S = ""
  7375. } else {
  7376. x.S = (string)(string(r.DecodeStringAsBytes()))
  7377. }
  7378. default:
  7379. z.DecStructFieldNotFound(-1, yys3)
  7380. } // end switch yys3
  7381. } // end for yyj3
  7382. z.DecReadMapEnd()
  7383. }
  7384. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  7385. var h codecSelfer19780
  7386. z, r := GenHelperDecoder(d)
  7387. _, _, _ = h, z, r
  7388. var yyj6 int
  7389. var yyb6 bool
  7390. var yyhl6 bool = l >= 0
  7391. yyj6++
  7392. if yyhl6 {
  7393. yyb6 = yyj6 > l
  7394. } else {
  7395. yyb6 = r.CheckBreak()
  7396. }
  7397. if yyb6 {
  7398. z.DecReadArrayEnd()
  7399. return
  7400. }
  7401. z.DecReadArrayElem()
  7402. if r.TryDecodeAsNil() {
  7403. x.I = 0
  7404. } else {
  7405. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7406. }
  7407. yyj6++
  7408. if yyhl6 {
  7409. yyb6 = yyj6 > l
  7410. } else {
  7411. yyb6 = r.CheckBreak()
  7412. }
  7413. if yyb6 {
  7414. z.DecReadArrayEnd()
  7415. return
  7416. }
  7417. z.DecReadArrayElem()
  7418. if r.TryDecodeAsNil() {
  7419. x.S = ""
  7420. } else {
  7421. x.S = (string)(string(r.DecodeStringAsBytes()))
  7422. }
  7423. for {
  7424. yyj6++
  7425. if yyhl6 {
  7426. yyb6 = yyj6 > l
  7427. } else {
  7428. yyb6 = r.CheckBreak()
  7429. }
  7430. if yyb6 {
  7431. break
  7432. }
  7433. z.DecReadArrayElem()
  7434. z.DecStructFieldNotFound(yyj6-1, "")
  7435. }
  7436. z.DecReadArrayEnd()
  7437. }
  7438. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  7439. var h codecSelfer19780
  7440. z, r := GenHelperEncoder(e)
  7441. _, _, _ = h, z, r
  7442. r.EncodeInt(int64(x))
  7443. }
  7444. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  7445. var h codecSelfer19780
  7446. z, r := GenHelperDecoder(d)
  7447. _, _, _ = h, z, r
  7448. *x = (wrapInt64)(r.DecodeInt64())
  7449. }
  7450. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  7451. var h codecSelfer19780
  7452. z, r := GenHelperEncoder(e)
  7453. _, _, _ = h, z, r
  7454. r.EncodeUint(uint64(x))
  7455. }
  7456. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  7457. var h codecSelfer19780
  7458. z, r := GenHelperDecoder(d)
  7459. _, _, _ = h, z, r
  7460. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  7461. }
  7462. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  7463. var h codecSelfer19780
  7464. z, r := GenHelperEncoder(e)
  7465. _, _, _ = h, z, r
  7466. if x == nil {
  7467. r.EncodeNil()
  7468. } else {
  7469. h.encwrapBytes((wrapBytes)(x), e)
  7470. }
  7471. }
  7472. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  7473. var h codecSelfer19780
  7474. z, r := GenHelperDecoder(d)
  7475. _, _, _ = h, z, r
  7476. h.decwrapBytes((*wrapBytes)(x), d)
  7477. }
  7478. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  7479. var h codecSelfer19780
  7480. z, r := GenHelperEncoder(e)
  7481. _, _, _ = h, z, r
  7482. if x == nil {
  7483. r.EncodeNil()
  7484. } else {
  7485. yysep2 := !z.EncBinary()
  7486. yy2arr2 := z.EncBasicHandle().StructToArray
  7487. _, _ = yysep2, yy2arr2
  7488. const yyr2 bool = false // struct tag has 'toArray'
  7489. var yyn7 bool = x.Tptr == nil
  7490. if yyr2 || yy2arr2 {
  7491. z.EncWriteArrayStart(5)
  7492. z.EncWriteArrayElem()
  7493. z.F.EncSliceIntfV(x.Islice, e)
  7494. z.EncWriteArrayElem()
  7495. z.F.EncMapStringIntfV(x.Ms, e)
  7496. z.EncWriteArrayElem()
  7497. z.EncFallback(x.Nintf)
  7498. z.EncWriteArrayElem()
  7499. if !z.EncBasicHandle().TimeNotBuiltin {
  7500. r.EncodeTime(x.T)
  7501. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7502. z.EncExtension(x.T, yyxt11)
  7503. } else if z.EncBinary() {
  7504. z.EncBinaryMarshal(x.T)
  7505. } else if !z.EncBinary() && z.IsJSONHandle() {
  7506. z.EncJSONMarshal(x.T)
  7507. } else {
  7508. z.EncFallback(x.T)
  7509. }
  7510. if yyn7 {
  7511. z.EncWriteArrayElem()
  7512. r.EncodeNil()
  7513. } else {
  7514. z.EncWriteArrayElem()
  7515. yy12 := *x.Tptr
  7516. if !z.EncBasicHandle().TimeNotBuiltin {
  7517. r.EncodeTime(yy12)
  7518. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  7519. z.EncExtension(yy12, yyxt13)
  7520. } else if z.EncBinary() {
  7521. z.EncBinaryMarshal(yy12)
  7522. } else if !z.EncBinary() && z.IsJSONHandle() {
  7523. z.EncJSONMarshal(yy12)
  7524. } else {
  7525. z.EncFallback(yy12)
  7526. }
  7527. }
  7528. z.EncWriteArrayEnd()
  7529. } else {
  7530. z.EncWriteMapStart(5)
  7531. z.EncWriteMapElemKey()
  7532. if z.IsJSONHandle() {
  7533. z.WriteStr("\"Islice\"")
  7534. } else {
  7535. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  7536. }
  7537. z.EncWriteMapElemValue()
  7538. z.F.EncSliceIntfV(x.Islice, e)
  7539. z.EncWriteMapElemKey()
  7540. if z.IsJSONHandle() {
  7541. z.WriteStr("\"Ms\"")
  7542. } else {
  7543. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  7544. }
  7545. z.EncWriteMapElemValue()
  7546. z.F.EncMapStringIntfV(x.Ms, e)
  7547. z.EncWriteMapElemKey()
  7548. if z.IsJSONHandle() {
  7549. z.WriteStr("\"Nintf\"")
  7550. } else {
  7551. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  7552. }
  7553. z.EncWriteMapElemValue()
  7554. z.EncFallback(x.Nintf)
  7555. z.EncWriteMapElemKey()
  7556. if z.IsJSONHandle() {
  7557. z.WriteStr("\"T\"")
  7558. } else {
  7559. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  7560. }
  7561. z.EncWriteMapElemValue()
  7562. if !z.EncBasicHandle().TimeNotBuiltin {
  7563. r.EncodeTime(x.T)
  7564. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  7565. z.EncExtension(x.T, yyxt17)
  7566. } else if z.EncBinary() {
  7567. z.EncBinaryMarshal(x.T)
  7568. } else if !z.EncBinary() && z.IsJSONHandle() {
  7569. z.EncJSONMarshal(x.T)
  7570. } else {
  7571. z.EncFallback(x.T)
  7572. }
  7573. z.EncWriteMapElemKey()
  7574. if z.IsJSONHandle() {
  7575. z.WriteStr("\"Tptr\"")
  7576. } else {
  7577. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  7578. }
  7579. z.EncWriteMapElemValue()
  7580. if yyn7 {
  7581. r.EncodeNil()
  7582. } else {
  7583. yy18 := *x.Tptr
  7584. if !z.EncBasicHandle().TimeNotBuiltin {
  7585. r.EncodeTime(yy18)
  7586. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  7587. z.EncExtension(yy18, yyxt19)
  7588. } else if z.EncBinary() {
  7589. z.EncBinaryMarshal(yy18)
  7590. } else if !z.EncBinary() && z.IsJSONHandle() {
  7591. z.EncJSONMarshal(yy18)
  7592. } else {
  7593. z.EncFallback(yy18)
  7594. }
  7595. }
  7596. z.EncWriteMapEnd()
  7597. }
  7598. }
  7599. }
  7600. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  7601. var h codecSelfer19780
  7602. z, r := GenHelperDecoder(d)
  7603. _, _, _ = h, z, r
  7604. yyct2 := r.ContainerType()
  7605. if yyct2 == codecSelferValueTypeMap19780 {
  7606. yyl2 := z.DecReadMapStart()
  7607. if yyl2 == 0 {
  7608. z.DecReadMapEnd()
  7609. } else {
  7610. x.codecDecodeSelfFromMap(yyl2, d)
  7611. }
  7612. } else if yyct2 == codecSelferValueTypeArray19780 {
  7613. yyl2 := z.DecReadArrayStart()
  7614. if yyl2 == 0 {
  7615. z.DecReadArrayEnd()
  7616. } else {
  7617. x.codecDecodeSelfFromArray(yyl2, d)
  7618. }
  7619. } else {
  7620. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7621. }
  7622. }
  7623. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  7624. var h codecSelfer19780
  7625. z, r := GenHelperDecoder(d)
  7626. _, _, _ = h, z, r
  7627. var yyhl3 bool = l >= 0
  7628. for yyj3 := 0; ; yyj3++ {
  7629. if yyhl3 {
  7630. if yyj3 >= l {
  7631. break
  7632. }
  7633. } else {
  7634. if r.CheckBreak() {
  7635. break
  7636. }
  7637. }
  7638. z.DecReadMapElemKey()
  7639. yys3 := z.StringView(r.DecodeStringAsBytes())
  7640. z.DecReadMapElemValue()
  7641. switch yys3 {
  7642. case "Islice":
  7643. if r.TryDecodeAsNil() {
  7644. x.Islice = nil
  7645. } else {
  7646. z.F.DecSliceIntfX(&x.Islice, d)
  7647. }
  7648. case "Ms":
  7649. if r.TryDecodeAsNil() {
  7650. x.Ms = nil
  7651. } else {
  7652. z.F.DecMapStringIntfX(&x.Ms, d)
  7653. }
  7654. case "Nintf":
  7655. if r.TryDecodeAsNil() {
  7656. x.Nintf = nil
  7657. } else {
  7658. z.DecFallback(&x.Nintf, true)
  7659. }
  7660. case "T":
  7661. if r.TryDecodeAsNil() {
  7662. x.T = time.Time{}
  7663. } else {
  7664. if !z.DecBasicHandle().TimeNotBuiltin {
  7665. x.T = r.DecodeTime()
  7666. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7667. z.DecExtension(x.T, yyxt11)
  7668. } else if z.DecBinary() {
  7669. z.DecBinaryUnmarshal(&x.T)
  7670. } else if !z.DecBinary() && z.IsJSONHandle() {
  7671. z.DecJSONUnmarshal(&x.T)
  7672. } else {
  7673. z.DecFallback(&x.T, false)
  7674. }
  7675. }
  7676. case "Tptr":
  7677. if r.TryDecodeAsNil() {
  7678. if x.Tptr != nil { // remove the if-true
  7679. x.Tptr = nil
  7680. }
  7681. } else {
  7682. if x.Tptr == nil {
  7683. x.Tptr = new(time.Time)
  7684. }
  7685. if !z.DecBasicHandle().TimeNotBuiltin {
  7686. *x.Tptr = r.DecodeTime()
  7687. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  7688. z.DecExtension(x.Tptr, yyxt13)
  7689. } else if z.DecBinary() {
  7690. z.DecBinaryUnmarshal(x.Tptr)
  7691. } else if !z.DecBinary() && z.IsJSONHandle() {
  7692. z.DecJSONUnmarshal(x.Tptr)
  7693. } else {
  7694. z.DecFallback(x.Tptr, false)
  7695. }
  7696. }
  7697. default:
  7698. z.DecStructFieldNotFound(-1, yys3)
  7699. } // end switch yys3
  7700. } // end for yyj3
  7701. z.DecReadMapEnd()
  7702. }
  7703. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  7704. var h codecSelfer19780
  7705. z, r := GenHelperDecoder(d)
  7706. _, _, _ = h, z, r
  7707. var yyj14 int
  7708. var yyb14 bool
  7709. var yyhl14 bool = l >= 0
  7710. yyj14++
  7711. if yyhl14 {
  7712. yyb14 = yyj14 > l
  7713. } else {
  7714. yyb14 = r.CheckBreak()
  7715. }
  7716. if yyb14 {
  7717. z.DecReadArrayEnd()
  7718. return
  7719. }
  7720. z.DecReadArrayElem()
  7721. if r.TryDecodeAsNil() {
  7722. x.Islice = nil
  7723. } else {
  7724. z.F.DecSliceIntfX(&x.Islice, d)
  7725. }
  7726. yyj14++
  7727. if yyhl14 {
  7728. yyb14 = yyj14 > l
  7729. } else {
  7730. yyb14 = r.CheckBreak()
  7731. }
  7732. if yyb14 {
  7733. z.DecReadArrayEnd()
  7734. return
  7735. }
  7736. z.DecReadArrayElem()
  7737. if r.TryDecodeAsNil() {
  7738. x.Ms = nil
  7739. } else {
  7740. z.F.DecMapStringIntfX(&x.Ms, d)
  7741. }
  7742. yyj14++
  7743. if yyhl14 {
  7744. yyb14 = yyj14 > l
  7745. } else {
  7746. yyb14 = r.CheckBreak()
  7747. }
  7748. if yyb14 {
  7749. z.DecReadArrayEnd()
  7750. return
  7751. }
  7752. z.DecReadArrayElem()
  7753. if r.TryDecodeAsNil() {
  7754. x.Nintf = nil
  7755. } else {
  7756. z.DecFallback(&x.Nintf, true)
  7757. }
  7758. yyj14++
  7759. if yyhl14 {
  7760. yyb14 = yyj14 > l
  7761. } else {
  7762. yyb14 = r.CheckBreak()
  7763. }
  7764. if yyb14 {
  7765. z.DecReadArrayEnd()
  7766. return
  7767. }
  7768. z.DecReadArrayElem()
  7769. if r.TryDecodeAsNil() {
  7770. x.T = time.Time{}
  7771. } else {
  7772. if !z.DecBasicHandle().TimeNotBuiltin {
  7773. x.T = r.DecodeTime()
  7774. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  7775. z.DecExtension(x.T, yyxt22)
  7776. } else if z.DecBinary() {
  7777. z.DecBinaryUnmarshal(&x.T)
  7778. } else if !z.DecBinary() && z.IsJSONHandle() {
  7779. z.DecJSONUnmarshal(&x.T)
  7780. } else {
  7781. z.DecFallback(&x.T, false)
  7782. }
  7783. }
  7784. yyj14++
  7785. if yyhl14 {
  7786. yyb14 = yyj14 > l
  7787. } else {
  7788. yyb14 = r.CheckBreak()
  7789. }
  7790. if yyb14 {
  7791. z.DecReadArrayEnd()
  7792. return
  7793. }
  7794. z.DecReadArrayElem()
  7795. if r.TryDecodeAsNil() {
  7796. if x.Tptr != nil { // remove the if-true
  7797. x.Tptr = nil
  7798. }
  7799. } else {
  7800. if x.Tptr == nil {
  7801. x.Tptr = new(time.Time)
  7802. }
  7803. if !z.DecBasicHandle().TimeNotBuiltin {
  7804. *x.Tptr = r.DecodeTime()
  7805. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  7806. z.DecExtension(x.Tptr, yyxt24)
  7807. } else if z.DecBinary() {
  7808. z.DecBinaryUnmarshal(x.Tptr)
  7809. } else if !z.DecBinary() && z.IsJSONHandle() {
  7810. z.DecJSONUnmarshal(x.Tptr)
  7811. } else {
  7812. z.DecFallback(x.Tptr, false)
  7813. }
  7814. }
  7815. for {
  7816. yyj14++
  7817. if yyhl14 {
  7818. yyb14 = yyj14 > l
  7819. } else {
  7820. yyb14 = r.CheckBreak()
  7821. }
  7822. if yyb14 {
  7823. break
  7824. }
  7825. z.DecReadArrayElem()
  7826. z.DecStructFieldNotFound(yyj14-1, "")
  7827. }
  7828. z.DecReadArrayEnd()
  7829. }
  7830. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  7831. var h codecSelfer19780
  7832. z, r := GenHelperEncoder(e)
  7833. _, _, _ = h, z, r
  7834. if x == nil {
  7835. r.EncodeNil()
  7836. } else {
  7837. yysep2 := !z.EncBinary()
  7838. yy2arr2 := z.EncBasicHandle().StructToArray
  7839. _, _ = yysep2, yy2arr2
  7840. const yyr2 bool = false // struct tag has 'toArray'
  7841. if yyr2 || yy2arr2 {
  7842. z.EncWriteArrayStart(2)
  7843. z.EncWriteArrayElem()
  7844. if z.EncBasicHandle().StringToRaw {
  7845. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7846. } else {
  7847. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7848. }
  7849. z.EncWriteArrayElem()
  7850. r.EncodeBool(bool(x.B))
  7851. z.EncWriteArrayEnd()
  7852. } else {
  7853. z.EncWriteMapStart(2)
  7854. z.EncWriteMapElemKey()
  7855. if z.IsJSONHandle() {
  7856. z.WriteStr("\"S\"")
  7857. } else {
  7858. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7859. }
  7860. z.EncWriteMapElemValue()
  7861. if z.EncBasicHandle().StringToRaw {
  7862. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7863. } else {
  7864. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7865. }
  7866. z.EncWriteMapElemKey()
  7867. if z.IsJSONHandle() {
  7868. z.WriteStr("\"B\"")
  7869. } else {
  7870. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7871. }
  7872. z.EncWriteMapElemValue()
  7873. r.EncodeBool(bool(x.B))
  7874. z.EncWriteMapEnd()
  7875. }
  7876. }
  7877. }
  7878. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  7879. var h codecSelfer19780
  7880. z, r := GenHelperDecoder(d)
  7881. _, _, _ = h, z, r
  7882. yyct2 := r.ContainerType()
  7883. if yyct2 == codecSelferValueTypeMap19780 {
  7884. yyl2 := z.DecReadMapStart()
  7885. if yyl2 == 0 {
  7886. z.DecReadMapEnd()
  7887. } else {
  7888. x.codecDecodeSelfFromMap(yyl2, d)
  7889. }
  7890. } else if yyct2 == codecSelferValueTypeArray19780 {
  7891. yyl2 := z.DecReadArrayStart()
  7892. if yyl2 == 0 {
  7893. z.DecReadArrayEnd()
  7894. } else {
  7895. x.codecDecodeSelfFromArray(yyl2, d)
  7896. }
  7897. } else {
  7898. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7899. }
  7900. }
  7901. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  7902. var h codecSelfer19780
  7903. z, r := GenHelperDecoder(d)
  7904. _, _, _ = h, z, r
  7905. var yyhl3 bool = l >= 0
  7906. for yyj3 := 0; ; yyj3++ {
  7907. if yyhl3 {
  7908. if yyj3 >= l {
  7909. break
  7910. }
  7911. } else {
  7912. if r.CheckBreak() {
  7913. break
  7914. }
  7915. }
  7916. z.DecReadMapElemKey()
  7917. yys3 := z.StringView(r.DecodeStringAsBytes())
  7918. z.DecReadMapElemValue()
  7919. switch yys3 {
  7920. case "S":
  7921. if r.TryDecodeAsNil() {
  7922. x.S = ""
  7923. } else {
  7924. x.S = (string)(string(r.DecodeStringAsBytes()))
  7925. }
  7926. case "B":
  7927. if r.TryDecodeAsNil() {
  7928. x.B = false
  7929. } else {
  7930. x.B = (bool)(r.DecodeBool())
  7931. }
  7932. default:
  7933. z.DecStructFieldNotFound(-1, yys3)
  7934. } // end switch yys3
  7935. } // end for yyj3
  7936. z.DecReadMapEnd()
  7937. }
  7938. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  7939. var h codecSelfer19780
  7940. z, r := GenHelperDecoder(d)
  7941. _, _, _ = h, z, r
  7942. var yyj6 int
  7943. var yyb6 bool
  7944. var yyhl6 bool = l >= 0
  7945. yyj6++
  7946. if yyhl6 {
  7947. yyb6 = yyj6 > l
  7948. } else {
  7949. yyb6 = r.CheckBreak()
  7950. }
  7951. if yyb6 {
  7952. z.DecReadArrayEnd()
  7953. return
  7954. }
  7955. z.DecReadArrayElem()
  7956. if r.TryDecodeAsNil() {
  7957. x.S = ""
  7958. } else {
  7959. x.S = (string)(string(r.DecodeStringAsBytes()))
  7960. }
  7961. yyj6++
  7962. if yyhl6 {
  7963. yyb6 = yyj6 > l
  7964. } else {
  7965. yyb6 = r.CheckBreak()
  7966. }
  7967. if yyb6 {
  7968. z.DecReadArrayEnd()
  7969. return
  7970. }
  7971. z.DecReadArrayElem()
  7972. if r.TryDecodeAsNil() {
  7973. x.B = false
  7974. } else {
  7975. x.B = (bool)(r.DecodeBool())
  7976. }
  7977. for {
  7978. yyj6++
  7979. if yyhl6 {
  7980. yyb6 = yyj6 > l
  7981. } else {
  7982. yyb6 = r.CheckBreak()
  7983. }
  7984. if yyb6 {
  7985. break
  7986. }
  7987. z.DecReadArrayElem()
  7988. z.DecStructFieldNotFound(yyj6-1, "")
  7989. }
  7990. z.DecReadArrayEnd()
  7991. }
  7992. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  7993. var h codecSelfer19780
  7994. z, r := GenHelperEncoder(e)
  7995. _, _, _ = h, z, r
  7996. if x == nil {
  7997. r.EncodeNil()
  7998. } else {
  7999. yysep2 := !z.EncBinary()
  8000. yy2arr2 := z.EncBasicHandle().StructToArray
  8001. _, _ = yysep2, yy2arr2
  8002. const yyr2 bool = false // struct tag has 'toArray'
  8003. if yyr2 || yy2arr2 {
  8004. z.EncWriteArrayStart(4)
  8005. z.EncWriteArrayElem()
  8006. if z.EncBasicHandle().StringToRaw {
  8007. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8008. } else {
  8009. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8010. }
  8011. z.EncWriteArrayElem()
  8012. r.EncodeBool(bool(x.B))
  8013. z.EncWriteArrayElem()
  8014. r.EncodeFloat64(float64(x.F))
  8015. z.EncWriteArrayElem()
  8016. r.EncodeInt(int64(x.I))
  8017. z.EncWriteArrayEnd()
  8018. } else {
  8019. z.EncWriteMapStart(4)
  8020. z.EncWriteMapElemKey()
  8021. if z.IsJSONHandle() {
  8022. z.WriteStr("\"S\"")
  8023. } else {
  8024. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8025. }
  8026. z.EncWriteMapElemValue()
  8027. if z.EncBasicHandle().StringToRaw {
  8028. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8029. } else {
  8030. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8031. }
  8032. z.EncWriteMapElemKey()
  8033. if z.IsJSONHandle() {
  8034. z.WriteStr("\"B\"")
  8035. } else {
  8036. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8037. }
  8038. z.EncWriteMapElemValue()
  8039. r.EncodeBool(bool(x.B))
  8040. z.EncWriteMapElemKey()
  8041. if z.IsJSONHandle() {
  8042. z.WriteStr("\"F\"")
  8043. } else {
  8044. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  8045. }
  8046. z.EncWriteMapElemValue()
  8047. r.EncodeFloat64(float64(x.F))
  8048. z.EncWriteMapElemKey()
  8049. if z.IsJSONHandle() {
  8050. z.WriteStr("\"I\"")
  8051. } else {
  8052. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8053. }
  8054. z.EncWriteMapElemValue()
  8055. r.EncodeInt(int64(x.I))
  8056. z.EncWriteMapEnd()
  8057. }
  8058. }
  8059. }
  8060. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  8061. var h codecSelfer19780
  8062. z, r := GenHelperDecoder(d)
  8063. _, _, _ = h, z, r
  8064. yyct2 := r.ContainerType()
  8065. if yyct2 == codecSelferValueTypeMap19780 {
  8066. yyl2 := z.DecReadMapStart()
  8067. if yyl2 == 0 {
  8068. z.DecReadMapEnd()
  8069. } else {
  8070. x.codecDecodeSelfFromMap(yyl2, d)
  8071. }
  8072. } else if yyct2 == codecSelferValueTypeArray19780 {
  8073. yyl2 := z.DecReadArrayStart()
  8074. if yyl2 == 0 {
  8075. z.DecReadArrayEnd()
  8076. } else {
  8077. x.codecDecodeSelfFromArray(yyl2, d)
  8078. }
  8079. } else {
  8080. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8081. }
  8082. }
  8083. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8084. var h codecSelfer19780
  8085. z, r := GenHelperDecoder(d)
  8086. _, _, _ = h, z, r
  8087. var yyhl3 bool = l >= 0
  8088. for yyj3 := 0; ; yyj3++ {
  8089. if yyhl3 {
  8090. if yyj3 >= l {
  8091. break
  8092. }
  8093. } else {
  8094. if r.CheckBreak() {
  8095. break
  8096. }
  8097. }
  8098. z.DecReadMapElemKey()
  8099. yys3 := z.StringView(r.DecodeStringAsBytes())
  8100. z.DecReadMapElemValue()
  8101. switch yys3 {
  8102. case "S":
  8103. if r.TryDecodeAsNil() {
  8104. x.S = ""
  8105. } else {
  8106. x.S = (string)(string(r.DecodeStringAsBytes()))
  8107. }
  8108. case "B":
  8109. if r.TryDecodeAsNil() {
  8110. x.B = false
  8111. } else {
  8112. x.B = (bool)(r.DecodeBool())
  8113. }
  8114. case "F":
  8115. if r.TryDecodeAsNil() {
  8116. x.F = 0
  8117. } else {
  8118. x.F = (float64)(r.DecodeFloat64())
  8119. }
  8120. case "I":
  8121. if r.TryDecodeAsNil() {
  8122. x.I = 0
  8123. } else {
  8124. x.I = (int64)(r.DecodeInt64())
  8125. }
  8126. default:
  8127. z.DecStructFieldNotFound(-1, yys3)
  8128. } // end switch yys3
  8129. } // end for yyj3
  8130. z.DecReadMapEnd()
  8131. }
  8132. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8133. var h codecSelfer19780
  8134. z, r := GenHelperDecoder(d)
  8135. _, _, _ = h, z, r
  8136. var yyj8 int
  8137. var yyb8 bool
  8138. var yyhl8 bool = l >= 0
  8139. yyj8++
  8140. if yyhl8 {
  8141. yyb8 = yyj8 > l
  8142. } else {
  8143. yyb8 = r.CheckBreak()
  8144. }
  8145. if yyb8 {
  8146. z.DecReadArrayEnd()
  8147. return
  8148. }
  8149. z.DecReadArrayElem()
  8150. if r.TryDecodeAsNil() {
  8151. x.S = ""
  8152. } else {
  8153. x.S = (string)(string(r.DecodeStringAsBytes()))
  8154. }
  8155. yyj8++
  8156. if yyhl8 {
  8157. yyb8 = yyj8 > l
  8158. } else {
  8159. yyb8 = r.CheckBreak()
  8160. }
  8161. if yyb8 {
  8162. z.DecReadArrayEnd()
  8163. return
  8164. }
  8165. z.DecReadArrayElem()
  8166. if r.TryDecodeAsNil() {
  8167. x.B = false
  8168. } else {
  8169. x.B = (bool)(r.DecodeBool())
  8170. }
  8171. yyj8++
  8172. if yyhl8 {
  8173. yyb8 = yyj8 > l
  8174. } else {
  8175. yyb8 = r.CheckBreak()
  8176. }
  8177. if yyb8 {
  8178. z.DecReadArrayEnd()
  8179. return
  8180. }
  8181. z.DecReadArrayElem()
  8182. if r.TryDecodeAsNil() {
  8183. x.F = 0
  8184. } else {
  8185. x.F = (float64)(r.DecodeFloat64())
  8186. }
  8187. yyj8++
  8188. if yyhl8 {
  8189. yyb8 = yyj8 > l
  8190. } else {
  8191. yyb8 = r.CheckBreak()
  8192. }
  8193. if yyb8 {
  8194. z.DecReadArrayEnd()
  8195. return
  8196. }
  8197. z.DecReadArrayElem()
  8198. if r.TryDecodeAsNil() {
  8199. x.I = 0
  8200. } else {
  8201. x.I = (int64)(r.DecodeInt64())
  8202. }
  8203. for {
  8204. yyj8++
  8205. if yyhl8 {
  8206. yyb8 = yyj8 > l
  8207. } else {
  8208. yyb8 = r.CheckBreak()
  8209. }
  8210. if yyb8 {
  8211. break
  8212. }
  8213. z.DecReadArrayElem()
  8214. z.DecStructFieldNotFound(yyj8-1, "")
  8215. }
  8216. z.DecReadArrayEnd()
  8217. }
  8218. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  8219. var h codecSelfer19780
  8220. z, r := GenHelperEncoder(e)
  8221. _, _, _ = h, z, r
  8222. if x == nil {
  8223. r.EncodeNil()
  8224. } else {
  8225. yysep2 := !z.EncBinary()
  8226. yy2arr2 := z.EncBasicHandle().StructToArray
  8227. _, _ = yysep2, yy2arr2
  8228. const yyr2 bool = false // struct tag has 'toArray'
  8229. if yyr2 || yy2arr2 {
  8230. z.EncWriteArrayStart(3)
  8231. z.EncWriteArrayElem()
  8232. if z.EncBasicHandle().StringToRaw {
  8233. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8234. } else {
  8235. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8236. }
  8237. z.EncWriteArrayElem()
  8238. r.EncodeInt(int64(x.I))
  8239. z.EncWriteArrayElem()
  8240. r.EncodeBool(bool(x.B))
  8241. z.EncWriteArrayEnd()
  8242. } else {
  8243. z.EncWriteMapStart(3)
  8244. z.EncWriteMapElemKey()
  8245. if z.IsJSONHandle() {
  8246. z.WriteStr("\"S\"")
  8247. } else {
  8248. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8249. }
  8250. z.EncWriteMapElemValue()
  8251. if z.EncBasicHandle().StringToRaw {
  8252. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8253. } else {
  8254. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8255. }
  8256. z.EncWriteMapElemKey()
  8257. if z.IsJSONHandle() {
  8258. z.WriteStr("\"I\"")
  8259. } else {
  8260. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8261. }
  8262. z.EncWriteMapElemValue()
  8263. r.EncodeInt(int64(x.I))
  8264. z.EncWriteMapElemKey()
  8265. if z.IsJSONHandle() {
  8266. z.WriteStr("\"B\"")
  8267. } else {
  8268. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8269. }
  8270. z.EncWriteMapElemValue()
  8271. r.EncodeBool(bool(x.B))
  8272. z.EncWriteMapEnd()
  8273. }
  8274. }
  8275. }
  8276. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  8277. var h codecSelfer19780
  8278. z, r := GenHelperDecoder(d)
  8279. _, _, _ = h, z, r
  8280. yyct2 := r.ContainerType()
  8281. if yyct2 == codecSelferValueTypeMap19780 {
  8282. yyl2 := z.DecReadMapStart()
  8283. if yyl2 == 0 {
  8284. z.DecReadMapEnd()
  8285. } else {
  8286. x.codecDecodeSelfFromMap(yyl2, d)
  8287. }
  8288. } else if yyct2 == codecSelferValueTypeArray19780 {
  8289. yyl2 := z.DecReadArrayStart()
  8290. if yyl2 == 0 {
  8291. z.DecReadArrayEnd()
  8292. } else {
  8293. x.codecDecodeSelfFromArray(yyl2, d)
  8294. }
  8295. } else {
  8296. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8297. }
  8298. }
  8299. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  8300. var h codecSelfer19780
  8301. z, r := GenHelperDecoder(d)
  8302. _, _, _ = h, z, r
  8303. var yyhl3 bool = l >= 0
  8304. for yyj3 := 0; ; yyj3++ {
  8305. if yyhl3 {
  8306. if yyj3 >= l {
  8307. break
  8308. }
  8309. } else {
  8310. if r.CheckBreak() {
  8311. break
  8312. }
  8313. }
  8314. z.DecReadMapElemKey()
  8315. yys3 := z.StringView(r.DecodeStringAsBytes())
  8316. z.DecReadMapElemValue()
  8317. switch yys3 {
  8318. case "S":
  8319. if r.TryDecodeAsNil() {
  8320. x.S = ""
  8321. } else {
  8322. x.S = (string)(string(r.DecodeStringAsBytes()))
  8323. }
  8324. case "I":
  8325. if r.TryDecodeAsNil() {
  8326. x.I = 0
  8327. } else {
  8328. x.I = (int64)(r.DecodeInt64())
  8329. }
  8330. case "B":
  8331. if r.TryDecodeAsNil() {
  8332. x.B = false
  8333. } else {
  8334. x.B = (bool)(r.DecodeBool())
  8335. }
  8336. default:
  8337. z.DecStructFieldNotFound(-1, yys3)
  8338. } // end switch yys3
  8339. } // end for yyj3
  8340. z.DecReadMapEnd()
  8341. }
  8342. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  8343. var h codecSelfer19780
  8344. z, r := GenHelperDecoder(d)
  8345. _, _, _ = h, z, r
  8346. var yyj7 int
  8347. var yyb7 bool
  8348. var yyhl7 bool = l >= 0
  8349. yyj7++
  8350. if yyhl7 {
  8351. yyb7 = yyj7 > l
  8352. } else {
  8353. yyb7 = r.CheckBreak()
  8354. }
  8355. if yyb7 {
  8356. z.DecReadArrayEnd()
  8357. return
  8358. }
  8359. z.DecReadArrayElem()
  8360. if r.TryDecodeAsNil() {
  8361. x.S = ""
  8362. } else {
  8363. x.S = (string)(string(r.DecodeStringAsBytes()))
  8364. }
  8365. yyj7++
  8366. if yyhl7 {
  8367. yyb7 = yyj7 > l
  8368. } else {
  8369. yyb7 = r.CheckBreak()
  8370. }
  8371. if yyb7 {
  8372. z.DecReadArrayEnd()
  8373. return
  8374. }
  8375. z.DecReadArrayElem()
  8376. if r.TryDecodeAsNil() {
  8377. x.I = 0
  8378. } else {
  8379. x.I = (int64)(r.DecodeInt64())
  8380. }
  8381. yyj7++
  8382. if yyhl7 {
  8383. yyb7 = yyj7 > l
  8384. } else {
  8385. yyb7 = r.CheckBreak()
  8386. }
  8387. if yyb7 {
  8388. z.DecReadArrayEnd()
  8389. return
  8390. }
  8391. z.DecReadArrayElem()
  8392. if r.TryDecodeAsNil() {
  8393. x.B = false
  8394. } else {
  8395. x.B = (bool)(r.DecodeBool())
  8396. }
  8397. for {
  8398. yyj7++
  8399. if yyhl7 {
  8400. yyb7 = yyj7 > l
  8401. } else {
  8402. yyb7 = r.CheckBreak()
  8403. }
  8404. if yyb7 {
  8405. break
  8406. }
  8407. z.DecReadArrayElem()
  8408. z.DecStructFieldNotFound(yyj7-1, "")
  8409. }
  8410. z.DecReadArrayEnd()
  8411. }
  8412. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  8413. var h codecSelfer19780
  8414. z, r := GenHelperEncoder(e)
  8415. _, _, _ = h, z, r
  8416. if x == nil {
  8417. r.EncodeNil()
  8418. } else {
  8419. yysep2 := !z.EncBinary()
  8420. yy2arr2 := z.EncBasicHandle().StructToArray
  8421. _, _ = yysep2, yy2arr2
  8422. const yyr2 bool = false // struct tag has 'toArray'
  8423. if yyr2 || yy2arr2 {
  8424. z.EncWriteArrayStart(3)
  8425. z.EncWriteArrayElem()
  8426. if z.EncBasicHandle().StringToRaw {
  8427. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8428. } else {
  8429. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8430. }
  8431. z.EncWriteArrayElem()
  8432. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8433. z.EncWriteArrayElem()
  8434. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8435. z.EncWriteArrayEnd()
  8436. } else {
  8437. z.EncWriteMapStart(3)
  8438. z.EncWriteMapElemKey()
  8439. if z.IsJSONHandle() {
  8440. z.WriteStr("\"S\"")
  8441. } else {
  8442. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8443. }
  8444. z.EncWriteMapElemValue()
  8445. if z.EncBasicHandle().StringToRaw {
  8446. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8447. } else {
  8448. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8449. }
  8450. z.EncWriteMapElemKey()
  8451. if z.IsJSONHandle() {
  8452. z.WriteStr("\"I\"")
  8453. } else {
  8454. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8455. }
  8456. z.EncWriteMapElemValue()
  8457. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8458. z.EncWriteMapElemKey()
  8459. if z.IsJSONHandle() {
  8460. z.WriteStr("\"B\"")
  8461. } else {
  8462. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8463. }
  8464. z.EncWriteMapElemValue()
  8465. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8466. z.EncWriteMapEnd()
  8467. }
  8468. }
  8469. }
  8470. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  8471. var h codecSelfer19780
  8472. z, r := GenHelperDecoder(d)
  8473. _, _, _ = h, z, r
  8474. yyct2 := r.ContainerType()
  8475. if yyct2 == codecSelferValueTypeMap19780 {
  8476. yyl2 := z.DecReadMapStart()
  8477. if yyl2 == 0 {
  8478. z.DecReadMapEnd()
  8479. } else {
  8480. x.codecDecodeSelfFromMap(yyl2, d)
  8481. }
  8482. } else if yyct2 == codecSelferValueTypeArray19780 {
  8483. yyl2 := z.DecReadArrayStart()
  8484. if yyl2 == 0 {
  8485. z.DecReadArrayEnd()
  8486. } else {
  8487. x.codecDecodeSelfFromArray(yyl2, d)
  8488. }
  8489. } else {
  8490. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8491. }
  8492. }
  8493. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  8494. var h codecSelfer19780
  8495. z, r := GenHelperDecoder(d)
  8496. _, _, _ = h, z, r
  8497. var yyhl3 bool = l >= 0
  8498. for yyj3 := 0; ; yyj3++ {
  8499. if yyhl3 {
  8500. if yyj3 >= l {
  8501. break
  8502. }
  8503. } else {
  8504. if r.CheckBreak() {
  8505. break
  8506. }
  8507. }
  8508. z.DecReadMapElemKey()
  8509. yys3 := z.StringView(r.DecodeStringAsBytes())
  8510. z.DecReadMapElemValue()
  8511. switch yys3 {
  8512. case "S":
  8513. if r.TryDecodeAsNil() {
  8514. x.testSelfExtHelper.S = ""
  8515. } else {
  8516. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8517. }
  8518. case "I":
  8519. if r.TryDecodeAsNil() {
  8520. x.testSelfExtHelper.I = 0
  8521. } else {
  8522. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8523. }
  8524. case "B":
  8525. if r.TryDecodeAsNil() {
  8526. x.testSelfExtHelper.B = false
  8527. } else {
  8528. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8529. }
  8530. default:
  8531. z.DecStructFieldNotFound(-1, yys3)
  8532. } // end switch yys3
  8533. } // end for yyj3
  8534. z.DecReadMapEnd()
  8535. }
  8536. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  8537. var h codecSelfer19780
  8538. z, r := GenHelperDecoder(d)
  8539. _, _, _ = h, z, r
  8540. var yyj7 int
  8541. var yyb7 bool
  8542. var yyhl7 bool = l >= 0
  8543. yyj7++
  8544. if yyhl7 {
  8545. yyb7 = yyj7 > l
  8546. } else {
  8547. yyb7 = r.CheckBreak()
  8548. }
  8549. if yyb7 {
  8550. z.DecReadArrayEnd()
  8551. return
  8552. }
  8553. z.DecReadArrayElem()
  8554. if r.TryDecodeAsNil() {
  8555. x.testSelfExtHelper.S = ""
  8556. } else {
  8557. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8558. }
  8559. yyj7++
  8560. if yyhl7 {
  8561. yyb7 = yyj7 > l
  8562. } else {
  8563. yyb7 = r.CheckBreak()
  8564. }
  8565. if yyb7 {
  8566. z.DecReadArrayEnd()
  8567. return
  8568. }
  8569. z.DecReadArrayElem()
  8570. if r.TryDecodeAsNil() {
  8571. x.testSelfExtHelper.I = 0
  8572. } else {
  8573. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8574. }
  8575. yyj7++
  8576. if yyhl7 {
  8577. yyb7 = yyj7 > l
  8578. } else {
  8579. yyb7 = r.CheckBreak()
  8580. }
  8581. if yyb7 {
  8582. z.DecReadArrayEnd()
  8583. return
  8584. }
  8585. z.DecReadArrayElem()
  8586. if r.TryDecodeAsNil() {
  8587. x.testSelfExtHelper.B = false
  8588. } else {
  8589. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8590. }
  8591. for {
  8592. yyj7++
  8593. if yyhl7 {
  8594. yyb7 = yyj7 > l
  8595. } else {
  8596. yyb7 = r.CheckBreak()
  8597. }
  8598. if yyb7 {
  8599. break
  8600. }
  8601. z.DecReadArrayElem()
  8602. z.DecStructFieldNotFound(yyj7-1, "")
  8603. }
  8604. z.DecReadArrayEnd()
  8605. }
  8606. func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
  8607. var h codecSelfer19780
  8608. z, r := GenHelperEncoder(e)
  8609. _, _, _ = h, z, r
  8610. if x == nil {
  8611. r.EncodeNil()
  8612. } else {
  8613. yysep2 := !z.EncBinary()
  8614. yy2arr2 := z.EncBasicHandle().StructToArray
  8615. _, _ = yysep2, yy2arr2
  8616. const yyr2 bool = false // struct tag has 'toArray'
  8617. if yyr2 || yy2arr2 {
  8618. z.EncWriteArrayStart(2)
  8619. z.EncWriteArrayElem()
  8620. if z.EncBasicHandle().StringToRaw {
  8621. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8622. } else {
  8623. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8624. }
  8625. z.EncWriteArrayElem()
  8626. r.EncodeBool(bool(x.O))
  8627. z.EncWriteArrayEnd()
  8628. } else {
  8629. z.EncWriteMapStart(2)
  8630. z.EncWriteMapElemKey()
  8631. if z.IsJSONHandle() {
  8632. z.WriteStr("\"M\"")
  8633. } else {
  8634. r.EncodeStringEnc(codecSelferCcUTF819780, `M`)
  8635. }
  8636. z.EncWriteMapElemValue()
  8637. if z.EncBasicHandle().StringToRaw {
  8638. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8639. } else {
  8640. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8641. }
  8642. z.EncWriteMapElemKey()
  8643. if z.IsJSONHandle() {
  8644. z.WriteStr("\"O\"")
  8645. } else {
  8646. r.EncodeStringEnc(codecSelferCcUTF819780, `O`)
  8647. }
  8648. z.EncWriteMapElemValue()
  8649. r.EncodeBool(bool(x.O))
  8650. z.EncWriteMapEnd()
  8651. }
  8652. }
  8653. }
  8654. func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
  8655. var h codecSelfer19780
  8656. z, r := GenHelperDecoder(d)
  8657. _, _, _ = h, z, r
  8658. yyct2 := r.ContainerType()
  8659. if yyct2 == codecSelferValueTypeMap19780 {
  8660. yyl2 := z.DecReadMapStart()
  8661. if yyl2 == 0 {
  8662. z.DecReadMapEnd()
  8663. } else {
  8664. x.codecDecodeSelfFromMap(yyl2, d)
  8665. }
  8666. } else if yyct2 == codecSelferValueTypeArray19780 {
  8667. yyl2 := z.DecReadArrayStart()
  8668. if yyl2 == 0 {
  8669. z.DecReadArrayEnd()
  8670. } else {
  8671. x.codecDecodeSelfFromArray(yyl2, d)
  8672. }
  8673. } else {
  8674. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8675. }
  8676. }
  8677. func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8678. var h codecSelfer19780
  8679. z, r := GenHelperDecoder(d)
  8680. _, _, _ = h, z, r
  8681. var yyhl3 bool = l >= 0
  8682. for yyj3 := 0; ; yyj3++ {
  8683. if yyhl3 {
  8684. if yyj3 >= l {
  8685. break
  8686. }
  8687. } else {
  8688. if r.CheckBreak() {
  8689. break
  8690. }
  8691. }
  8692. z.DecReadMapElemKey()
  8693. yys3 := z.StringView(r.DecodeStringAsBytes())
  8694. z.DecReadMapElemValue()
  8695. switch yys3 {
  8696. case "M":
  8697. if r.TryDecodeAsNil() {
  8698. x.M = ""
  8699. } else {
  8700. x.M = (string)(string(r.DecodeStringAsBytes()))
  8701. }
  8702. case "O":
  8703. if r.TryDecodeAsNil() {
  8704. x.O = false
  8705. } else {
  8706. x.O = (bool)(r.DecodeBool())
  8707. }
  8708. default:
  8709. z.DecStructFieldNotFound(-1, yys3)
  8710. } // end switch yys3
  8711. } // end for yyj3
  8712. z.DecReadMapEnd()
  8713. }
  8714. func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8715. var h codecSelfer19780
  8716. z, r := GenHelperDecoder(d)
  8717. _, _, _ = h, z, r
  8718. var yyj6 int
  8719. var yyb6 bool
  8720. var yyhl6 bool = l >= 0
  8721. yyj6++
  8722. if yyhl6 {
  8723. yyb6 = yyj6 > l
  8724. } else {
  8725. yyb6 = r.CheckBreak()
  8726. }
  8727. if yyb6 {
  8728. z.DecReadArrayEnd()
  8729. return
  8730. }
  8731. z.DecReadArrayElem()
  8732. if r.TryDecodeAsNil() {
  8733. x.M = ""
  8734. } else {
  8735. x.M = (string)(string(r.DecodeStringAsBytes()))
  8736. }
  8737. yyj6++
  8738. if yyhl6 {
  8739. yyb6 = yyj6 > l
  8740. } else {
  8741. yyb6 = r.CheckBreak()
  8742. }
  8743. if yyb6 {
  8744. z.DecReadArrayEnd()
  8745. return
  8746. }
  8747. z.DecReadArrayElem()
  8748. if r.TryDecodeAsNil() {
  8749. x.O = false
  8750. } else {
  8751. x.O = (bool)(r.DecodeBool())
  8752. }
  8753. for {
  8754. yyj6++
  8755. if yyhl6 {
  8756. yyb6 = yyj6 > l
  8757. } else {
  8758. yyb6 = r.CheckBreak()
  8759. }
  8760. if yyb6 {
  8761. break
  8762. }
  8763. z.DecReadArrayElem()
  8764. z.DecStructFieldNotFound(yyj6-1, "")
  8765. }
  8766. z.DecReadArrayEnd()
  8767. }
  8768. func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
  8769. var h codecSelfer19780
  8770. z, r := GenHelperEncoder(e)
  8771. _, _, _ = h, z, r
  8772. if x == nil {
  8773. r.EncodeNil()
  8774. } else {
  8775. yysep2 := !z.EncBinary()
  8776. yy2arr2 := z.EncBasicHandle().StructToArray
  8777. _, _ = yysep2, yy2arr2
  8778. const yyr2 bool = false // struct tag has 'toArray'
  8779. if yyr2 || yy2arr2 {
  8780. z.EncWriteArrayStart(2)
  8781. z.EncWriteArrayElem()
  8782. z.EncFallback(x.A)
  8783. z.EncWriteArrayElem()
  8784. z.EncFallback(x.B)
  8785. z.EncWriteArrayEnd()
  8786. } else {
  8787. z.EncWriteMapStart(2)
  8788. z.EncWriteMapElemKey()
  8789. if z.IsJSONHandle() {
  8790. z.WriteStr("\"A\"")
  8791. } else {
  8792. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8793. }
  8794. z.EncWriteMapElemValue()
  8795. z.EncFallback(x.A)
  8796. z.EncWriteMapElemKey()
  8797. if z.IsJSONHandle() {
  8798. z.WriteStr("\"B\"")
  8799. } else {
  8800. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8801. }
  8802. z.EncWriteMapElemValue()
  8803. z.EncFallback(x.B)
  8804. z.EncWriteMapEnd()
  8805. }
  8806. }
  8807. }
  8808. func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
  8809. var h codecSelfer19780
  8810. z, r := GenHelperDecoder(d)
  8811. _, _, _ = h, z, r
  8812. yyct2 := r.ContainerType()
  8813. if yyct2 == codecSelferValueTypeMap19780 {
  8814. yyl2 := z.DecReadMapStart()
  8815. if yyl2 == 0 {
  8816. z.DecReadMapEnd()
  8817. } else {
  8818. x.codecDecodeSelfFromMap(yyl2, d)
  8819. }
  8820. } else if yyct2 == codecSelferValueTypeArray19780 {
  8821. yyl2 := z.DecReadArrayStart()
  8822. if yyl2 == 0 {
  8823. z.DecReadArrayEnd()
  8824. } else {
  8825. x.codecDecodeSelfFromArray(yyl2, d)
  8826. }
  8827. } else {
  8828. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8829. }
  8830. }
  8831. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
  8832. var h codecSelfer19780
  8833. z, r := GenHelperDecoder(d)
  8834. _, _, _ = h, z, r
  8835. var yyhl3 bool = l >= 0
  8836. for yyj3 := 0; ; yyj3++ {
  8837. if yyhl3 {
  8838. if yyj3 >= l {
  8839. break
  8840. }
  8841. } else {
  8842. if r.CheckBreak() {
  8843. break
  8844. }
  8845. }
  8846. z.DecReadMapElemKey()
  8847. yys3 := z.StringView(r.DecodeStringAsBytes())
  8848. z.DecReadMapElemValue()
  8849. switch yys3 {
  8850. case "A":
  8851. if r.TryDecodeAsNil() {
  8852. x.A = nil
  8853. } else {
  8854. z.DecFallback(&x.A, true)
  8855. }
  8856. case "B":
  8857. if r.TryDecodeAsNil() {
  8858. x.B = nil
  8859. } else {
  8860. z.DecFallback(&x.B, true)
  8861. }
  8862. default:
  8863. z.DecStructFieldNotFound(-1, yys3)
  8864. } // end switch yys3
  8865. } // end for yyj3
  8866. z.DecReadMapEnd()
  8867. }
  8868. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
  8869. var h codecSelfer19780
  8870. z, r := GenHelperDecoder(d)
  8871. _, _, _ = h, z, r
  8872. var yyj8 int
  8873. var yyb8 bool
  8874. var yyhl8 bool = l >= 0
  8875. yyj8++
  8876. if yyhl8 {
  8877. yyb8 = yyj8 > l
  8878. } else {
  8879. yyb8 = r.CheckBreak()
  8880. }
  8881. if yyb8 {
  8882. z.DecReadArrayEnd()
  8883. return
  8884. }
  8885. z.DecReadArrayElem()
  8886. if r.TryDecodeAsNil() {
  8887. x.A = nil
  8888. } else {
  8889. z.DecFallback(&x.A, true)
  8890. }
  8891. yyj8++
  8892. if yyhl8 {
  8893. yyb8 = yyj8 > l
  8894. } else {
  8895. yyb8 = r.CheckBreak()
  8896. }
  8897. if yyb8 {
  8898. z.DecReadArrayEnd()
  8899. return
  8900. }
  8901. z.DecReadArrayElem()
  8902. if r.TryDecodeAsNil() {
  8903. x.B = nil
  8904. } else {
  8905. z.DecFallback(&x.B, true)
  8906. }
  8907. for {
  8908. yyj8++
  8909. if yyhl8 {
  8910. yyb8 = yyj8 > l
  8911. } else {
  8912. yyb8 = r.CheckBreak()
  8913. }
  8914. if yyb8 {
  8915. break
  8916. }
  8917. z.DecReadArrayElem()
  8918. z.DecStructFieldNotFound(yyj8-1, "")
  8919. }
  8920. z.DecReadArrayEnd()
  8921. }
  8922. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  8923. var h codecSelfer19780
  8924. z, r := GenHelperEncoder(e)
  8925. _, _, _ = h, z, r
  8926. if x == nil {
  8927. r.EncodeNil()
  8928. } else {
  8929. yysep2 := !z.EncBinary()
  8930. yy2arr2 := z.EncBasicHandle().StructToArray
  8931. _, _ = yysep2, yy2arr2
  8932. const yyr2 bool = false // struct tag has 'toArray'
  8933. var yyq2 = [77]bool{ // should field at this index be written?
  8934. x.S != "", // S
  8935. x.I64 != 0, // I64
  8936. x.I32 != 0, // I32
  8937. x.I16 != 0, // I16
  8938. x.I8 != 0, // I8
  8939. x.I64n != 0, // I64n
  8940. x.I32n != 0, // I32n
  8941. x.I16n != 0, // I16n
  8942. x.I8n != 0, // I8n
  8943. x.Ui64 != 0, // Ui64
  8944. x.Ui32 != 0, // Ui32
  8945. x.Ui16 != 0, // Ui16
  8946. x.Ui8 != 0, // Ui8
  8947. x.F64 != 0, // F64
  8948. x.F32 != 0, // F32
  8949. x.B, // B
  8950. x.By != 0, // By
  8951. len(x.Sslice) != 0, // Sslice
  8952. len(x.I64slice) != 0, // I64slice
  8953. len(x.I16slice) != 0, // I16slice
  8954. len(x.Ui64slice) != 0, // Ui64slice
  8955. len(x.Ui8slice) != 0, // Ui8slice
  8956. len(x.Bslice) != 0, // Bslice
  8957. len(x.Byslice) != 0, // Byslice
  8958. len(x.BytesSlice) != 0, // BytesSlice
  8959. len(x.Iptrslice) != 0, // Iptrslice
  8960. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  8961. len(x.WrapSliceString) != 0, // WrapSliceString
  8962. len(x.Msi64) != 0, // Msi64
  8963. len(x.Msbytes) != 0, // Msbytes
  8964. false || x.Simplef.S != "" || x.Simplef.I64 != 0 || x.Simplef.I8 != 0 || x.Simplef.Ui64 != 0 || x.Simplef.Ui8 != 0 || x.Simplef.F64 != 0 || x.Simplef.F32 != 0 || x.Simplef.B || len(x.Simplef.Sslice) != 0 || len(x.Simplef.I16slice) != 0 || len(x.Simplef.Ui64slice) != 0 || len(x.Simplef.Ui8slice) != 0 || len(x.Simplef.Bslice) != 0 || len(x.Simplef.Iptrslice) != 0 || len(x.Simplef.WrapSliceInt64) != 0 || len(x.Simplef.WrapSliceString) != 0 || len(x.Simplef.Msi64) != 0, // Simplef
  8965. len(x.SstrUi64T) != 0, // SstrUi64T
  8966. len(x.MstrUi64T) != 0, // MstrUi64T
  8967. x.AS != "", // AS
  8968. x.AI64 != 0, // AI64
  8969. x.AI16 != 0, // AI16
  8970. x.AUi64 != 0, // AUi64
  8971. len(x.ASslice) != 0, // ASslice
  8972. len(x.AI64slice) != 0, // AI64slice
  8973. len(x.AUi64slice) != 0, // AUi64slice
  8974. len(x.AF64slice) != 0, // AF64slice
  8975. len(x.AF32slice) != 0, // AF32slice
  8976. len(x.AMSU16) != 0, // AMSU16
  8977. len(x.AI64arr0) != 0, // AI64arr0
  8978. len(x.AI64slice0) != 0, // AI64slice0
  8979. len(x.AUi64sliceN) != 0, // AUi64sliceN
  8980. len(x.AMSU16N) != 0, // AMSU16N
  8981. len(x.AMSU16E) != 0, // AMSU16E
  8982. false || x.NotAnon.AS != "" || x.NotAnon.AI64 != 0 || x.NotAnon.AI16 != 0 || x.NotAnon.AUi64 != 0 || len(x.NotAnon.ASslice) != 0 || len(x.NotAnon.AI64slice) != 0 || len(x.NotAnon.AUi64slice) != 0 || len(x.NotAnon.AF64slice) != 0 || len(x.NotAnon.AF32slice) != 0 || len(x.NotAnon.AMSU16) != 0 || len(x.NotAnon.AI64arr0) != 0 || len(x.NotAnon.AI64slice0) != 0 || len(x.NotAnon.AUi64sliceN) != 0 || len(x.NotAnon.AMSU16N) != 0 || len(x.NotAnon.AMSU16E) != 0, // NotAnon
  8983. len(x.Nmap) != 0, // Nmap
  8984. len(x.Nslice) != 0, // Nslice
  8985. x.Nint64 != nil, // Nint64
  8986. len(x.Chstr) != 0, // Chstr
  8987. len(x.Mis) != 0, // Mis
  8988. len(x.Mbu64) != 0, // Mbu64
  8989. len(x.Miwu64s) != 0, // Miwu64s
  8990. len(x.Mfwss) != 0, // Mfwss
  8991. len(x.Mf32wss) != 0, // Mf32wss
  8992. len(x.Mui2wss) != 0, // Mui2wss
  8993. len(x.Msu2wss) != 0, // Msu2wss
  8994. x.Ci64 != 0, // Ci64
  8995. len(x.Swrapbytes) != 0, // Swrapbytes
  8996. len(x.Swrapuint8) != 0, // Swrapuint8
  8997. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  8998. len(x.Ui64array) != 0, // Ui64array
  8999. len(x.Ui64slicearray) != 0, // Ui64slicearray
  9000. len(x.SintfAarray) != 0, // SintfAarray
  9001. len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
  9002. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  9003. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  9004. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  9005. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  9006. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  9007. len(x.Mtsptr) != 0, // Mtsptr
  9008. len(x.Mts) != 0, // Mts
  9009. len(x.Its) != 0, // Its
  9010. x.Nteststruc != nil, // Nteststruc
  9011. }
  9012. _ = yyq2
  9013. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  9014. var yyn71 bool = x.AnonInTestStrucIntf == nil
  9015. var yyn72 bool = x.AnonInTestStrucIntf == nil
  9016. var yyn73 bool = x.AnonInTestStrucIntf == nil
  9017. var yyn74 bool = x.AnonInTestStrucIntf == nil
  9018. var yyn75 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  9019. var yyn79 bool = x.Nteststruc == nil
  9020. if yyr2 || yy2arr2 {
  9021. z.EncWriteArrayStart(77)
  9022. z.EncWriteArrayElem()
  9023. if yyq2[0] {
  9024. if z.EncBasicHandle().StringToRaw {
  9025. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9026. } else {
  9027. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9028. }
  9029. } else {
  9030. if z.EncBasicHandle().StringToRaw {
  9031. r.EncodeStringBytesRaw([]byte{})
  9032. } else {
  9033. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9034. }
  9035. }
  9036. z.EncWriteArrayElem()
  9037. if yyq2[1] {
  9038. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9039. } else {
  9040. r.EncodeInt(0)
  9041. }
  9042. z.EncWriteArrayElem()
  9043. if yyq2[2] {
  9044. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9045. } else {
  9046. r.EncodeInt(0)
  9047. }
  9048. z.EncWriteArrayElem()
  9049. if yyq2[3] {
  9050. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9051. } else {
  9052. r.EncodeInt(0)
  9053. }
  9054. z.EncWriteArrayElem()
  9055. if yyq2[4] {
  9056. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9057. } else {
  9058. r.EncodeInt(0)
  9059. }
  9060. z.EncWriteArrayElem()
  9061. if yyq2[5] {
  9062. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9063. } else {
  9064. r.EncodeInt(0)
  9065. }
  9066. z.EncWriteArrayElem()
  9067. if yyq2[6] {
  9068. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9069. } else {
  9070. r.EncodeInt(0)
  9071. }
  9072. z.EncWriteArrayElem()
  9073. if yyq2[7] {
  9074. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9075. } else {
  9076. r.EncodeInt(0)
  9077. }
  9078. z.EncWriteArrayElem()
  9079. if yyq2[8] {
  9080. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9081. } else {
  9082. r.EncodeInt(0)
  9083. }
  9084. z.EncWriteArrayElem()
  9085. if yyq2[9] {
  9086. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9087. } else {
  9088. r.EncodeUint(0)
  9089. }
  9090. z.EncWriteArrayElem()
  9091. if yyq2[10] {
  9092. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9093. } else {
  9094. r.EncodeUint(0)
  9095. }
  9096. z.EncWriteArrayElem()
  9097. if yyq2[11] {
  9098. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9099. } else {
  9100. r.EncodeUint(0)
  9101. }
  9102. z.EncWriteArrayElem()
  9103. if yyq2[12] {
  9104. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9105. } else {
  9106. r.EncodeUint(0)
  9107. }
  9108. z.EncWriteArrayElem()
  9109. if yyq2[13] {
  9110. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9111. } else {
  9112. r.EncodeFloat64(0)
  9113. }
  9114. z.EncWriteArrayElem()
  9115. if yyq2[14] {
  9116. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9117. } else {
  9118. r.EncodeFloat32(0)
  9119. }
  9120. z.EncWriteArrayElem()
  9121. if yyq2[15] {
  9122. r.EncodeBool(bool(x.TestStrucCommon.B))
  9123. } else {
  9124. r.EncodeBool(false)
  9125. }
  9126. z.EncWriteArrayElem()
  9127. if yyq2[16] {
  9128. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9129. } else {
  9130. r.EncodeUint(0)
  9131. }
  9132. z.EncWriteArrayElem()
  9133. if yyq2[17] {
  9134. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9135. } else {
  9136. r.EncodeNil()
  9137. }
  9138. z.EncWriteArrayElem()
  9139. if yyq2[18] {
  9140. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9141. } else {
  9142. r.EncodeNil()
  9143. }
  9144. z.EncWriteArrayElem()
  9145. if yyq2[19] {
  9146. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9147. } else {
  9148. r.EncodeNil()
  9149. }
  9150. z.EncWriteArrayElem()
  9151. if yyq2[20] {
  9152. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9153. } else {
  9154. r.EncodeNil()
  9155. }
  9156. z.EncWriteArrayElem()
  9157. if yyq2[21] {
  9158. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9159. } else {
  9160. r.EncodeNil()
  9161. }
  9162. z.EncWriteArrayElem()
  9163. if yyq2[22] {
  9164. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9165. } else {
  9166. r.EncodeNil()
  9167. }
  9168. z.EncWriteArrayElem()
  9169. if yyq2[23] {
  9170. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9171. } else {
  9172. r.EncodeNil()
  9173. }
  9174. z.EncWriteArrayElem()
  9175. if yyq2[24] {
  9176. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9177. } else {
  9178. r.EncodeNil()
  9179. }
  9180. z.EncWriteArrayElem()
  9181. if yyq2[25] {
  9182. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9183. } else {
  9184. r.EncodeNil()
  9185. }
  9186. z.EncWriteArrayElem()
  9187. if yyq2[26] {
  9188. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9189. } else {
  9190. r.EncodeNil()
  9191. }
  9192. z.EncWriteArrayElem()
  9193. if yyq2[27] {
  9194. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9195. } else {
  9196. r.EncodeNil()
  9197. }
  9198. z.EncWriteArrayElem()
  9199. if yyq2[28] {
  9200. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9201. } else {
  9202. r.EncodeNil()
  9203. }
  9204. z.EncWriteArrayElem()
  9205. if yyq2[29] {
  9206. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9207. } else {
  9208. r.EncodeNil()
  9209. }
  9210. z.EncWriteArrayElem()
  9211. if yyq2[30] {
  9212. yy110 := &x.TestStrucCommon.Simplef
  9213. yy110.CodecEncodeSelf(e)
  9214. } else {
  9215. r.EncodeNil()
  9216. }
  9217. z.EncWriteArrayElem()
  9218. if yyq2[31] {
  9219. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9220. } else {
  9221. r.EncodeNil()
  9222. }
  9223. z.EncWriteArrayElem()
  9224. if yyq2[32] {
  9225. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9226. } else {
  9227. r.EncodeNil()
  9228. }
  9229. z.EncWriteArrayElem()
  9230. if yyq2[33] {
  9231. if z.EncBasicHandle().StringToRaw {
  9232. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9233. } else {
  9234. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9235. }
  9236. } else {
  9237. if z.EncBasicHandle().StringToRaw {
  9238. r.EncodeStringBytesRaw([]byte{})
  9239. } else {
  9240. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9241. }
  9242. }
  9243. z.EncWriteArrayElem()
  9244. if yyq2[34] {
  9245. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9246. } else {
  9247. r.EncodeInt(0)
  9248. }
  9249. z.EncWriteArrayElem()
  9250. if yyq2[35] {
  9251. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9252. } else {
  9253. r.EncodeInt(0)
  9254. }
  9255. z.EncWriteArrayElem()
  9256. if yyq2[36] {
  9257. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9258. } else {
  9259. r.EncodeUint(0)
  9260. }
  9261. z.EncWriteArrayElem()
  9262. if yyq2[37] {
  9263. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9264. } else {
  9265. r.EncodeNil()
  9266. }
  9267. z.EncWriteArrayElem()
  9268. if yyq2[38] {
  9269. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9270. } else {
  9271. r.EncodeNil()
  9272. }
  9273. z.EncWriteArrayElem()
  9274. if yyq2[39] {
  9275. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9276. } else {
  9277. r.EncodeNil()
  9278. }
  9279. z.EncWriteArrayElem()
  9280. if yyq2[40] {
  9281. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9282. } else {
  9283. r.EncodeNil()
  9284. }
  9285. z.EncWriteArrayElem()
  9286. if yyq2[41] {
  9287. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9288. } else {
  9289. r.EncodeNil()
  9290. }
  9291. z.EncWriteArrayElem()
  9292. if yyq2[42] {
  9293. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9294. } else {
  9295. r.EncodeNil()
  9296. }
  9297. z.EncWriteArrayElem()
  9298. if yyq2[43] {
  9299. yy124 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9300. h.encArray0int64((*[0]int64)(yy124), e)
  9301. } else {
  9302. r.EncodeNil()
  9303. }
  9304. z.EncWriteArrayElem()
  9305. if yyq2[44] {
  9306. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9307. } else {
  9308. r.EncodeNil()
  9309. }
  9310. z.EncWriteArrayElem()
  9311. if yyq2[45] {
  9312. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9313. } else {
  9314. r.EncodeNil()
  9315. }
  9316. z.EncWriteArrayElem()
  9317. if yyq2[46] {
  9318. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9319. } else {
  9320. r.EncodeNil()
  9321. }
  9322. z.EncWriteArrayElem()
  9323. if yyq2[47] {
  9324. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9325. } else {
  9326. r.EncodeNil()
  9327. }
  9328. z.EncWriteArrayElem()
  9329. if yyq2[48] {
  9330. yy130 := &x.TestStrucCommon.NotAnon
  9331. yy130.CodecEncodeSelf(e)
  9332. } else {
  9333. r.EncodeNil()
  9334. }
  9335. z.EncWriteArrayElem()
  9336. if yyq2[49] {
  9337. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9338. } else {
  9339. r.EncodeNil()
  9340. }
  9341. z.EncWriteArrayElem()
  9342. if yyq2[50] {
  9343. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9344. } else {
  9345. r.EncodeNil()
  9346. }
  9347. if yyn54 {
  9348. z.EncWriteArrayElem()
  9349. r.EncodeNil()
  9350. } else {
  9351. z.EncWriteArrayElem()
  9352. if yyq2[51] {
  9353. yy134 := *x.TestStrucCommon.Nint64
  9354. r.EncodeInt(int64(yy134))
  9355. } else {
  9356. r.EncodeNil()
  9357. }
  9358. }
  9359. z.EncWriteArrayElem()
  9360. if yyq2[52] {
  9361. h.encChanstring((chan string)(x.Chstr), e)
  9362. } else {
  9363. r.EncodeNil()
  9364. }
  9365. z.EncWriteArrayElem()
  9366. if yyq2[53] {
  9367. z.F.EncMapIntStringV(x.Mis, e)
  9368. } else {
  9369. r.EncodeNil()
  9370. }
  9371. z.EncWriteArrayElem()
  9372. if yyq2[54] {
  9373. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9374. } else {
  9375. r.EncodeNil()
  9376. }
  9377. z.EncWriteArrayElem()
  9378. if yyq2[55] {
  9379. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  9380. } else {
  9381. r.EncodeNil()
  9382. }
  9383. z.EncWriteArrayElem()
  9384. if yyq2[56] {
  9385. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  9386. } else {
  9387. r.EncodeNil()
  9388. }
  9389. z.EncWriteArrayElem()
  9390. if yyq2[57] {
  9391. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9392. } else {
  9393. r.EncodeNil()
  9394. }
  9395. z.EncWriteArrayElem()
  9396. if yyq2[58] {
  9397. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9398. } else {
  9399. r.EncodeNil()
  9400. }
  9401. z.EncWriteArrayElem()
  9402. if yyq2[59] {
  9403. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9404. } else {
  9405. r.EncodeNil()
  9406. }
  9407. z.EncWriteArrayElem()
  9408. if yyq2[60] {
  9409. x.Ci64.CodecEncodeSelf(e)
  9410. } else {
  9411. r.EncodeInt(0)
  9412. }
  9413. z.EncWriteArrayElem()
  9414. if yyq2[61] {
  9415. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9416. } else {
  9417. r.EncodeNil()
  9418. }
  9419. z.EncWriteArrayElem()
  9420. if yyq2[62] {
  9421. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9422. } else {
  9423. r.EncodeNil()
  9424. }
  9425. z.EncWriteArrayElem()
  9426. if yyq2[63] {
  9427. yy147 := &x.ArrStrUi64T
  9428. h.encArray4stringUint64T((*[4]stringUint64T)(yy147), e)
  9429. } else {
  9430. r.EncodeNil()
  9431. }
  9432. z.EncWriteArrayElem()
  9433. if yyq2[64] {
  9434. yy149 := &x.Ui64array
  9435. h.encArray4uint64((*[4]uint64)(yy149), e)
  9436. } else {
  9437. r.EncodeNil()
  9438. }
  9439. z.EncWriteArrayElem()
  9440. if yyq2[65] {
  9441. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9442. } else {
  9443. r.EncodeNil()
  9444. }
  9445. z.EncWriteArrayElem()
  9446. if yyq2[66] {
  9447. z.F.EncSliceIntfV(x.SintfAarray, e)
  9448. } else {
  9449. r.EncodeNil()
  9450. }
  9451. z.EncWriteArrayElem()
  9452. if yyq2[67] {
  9453. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  9454. } else {
  9455. r.EncodeNil()
  9456. }
  9457. if yyn71 {
  9458. z.EncWriteArrayElem()
  9459. r.EncodeNil()
  9460. } else {
  9461. z.EncWriteArrayElem()
  9462. if yyq2[68] {
  9463. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9464. } else {
  9465. r.EncodeNil()
  9466. }
  9467. }
  9468. if yyn72 {
  9469. z.EncWriteArrayElem()
  9470. r.EncodeNil()
  9471. } else {
  9472. z.EncWriteArrayElem()
  9473. if yyq2[69] {
  9474. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9475. } else {
  9476. r.EncodeNil()
  9477. }
  9478. }
  9479. if yyn73 {
  9480. z.EncWriteArrayElem()
  9481. r.EncodeNil()
  9482. } else {
  9483. z.EncWriteArrayElem()
  9484. if yyq2[70] {
  9485. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9486. } else {
  9487. r.EncodeNil()
  9488. }
  9489. }
  9490. if yyn74 {
  9491. z.EncWriteArrayElem()
  9492. r.EncodeNil()
  9493. } else {
  9494. z.EncWriteArrayElem()
  9495. if yyq2[71] {
  9496. if !z.EncBasicHandle().TimeNotBuiltin {
  9497. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9498. } else if yyxt157 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt157 != nil {
  9499. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt157)
  9500. } else if z.EncBinary() {
  9501. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9502. } else if !z.EncBinary() && z.IsJSONHandle() {
  9503. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9504. } else {
  9505. z.EncFallback(x.AnonInTestStrucIntf.T)
  9506. }
  9507. } else {
  9508. r.EncodeNil()
  9509. }
  9510. }
  9511. if yyn75 {
  9512. z.EncWriteArrayElem()
  9513. r.EncodeNil()
  9514. } else {
  9515. z.EncWriteArrayElem()
  9516. if yyq2[72] {
  9517. yy158 := *x.AnonInTestStrucIntf.Tptr
  9518. if !z.EncBasicHandle().TimeNotBuiltin {
  9519. r.EncodeTime(yy158)
  9520. } else if yyxt159 := z.Extension(z.I2Rtid(yy158)); yyxt159 != nil {
  9521. z.EncExtension(yy158, yyxt159)
  9522. } else if z.EncBinary() {
  9523. z.EncBinaryMarshal(yy158)
  9524. } else if !z.EncBinary() && z.IsJSONHandle() {
  9525. z.EncJSONMarshal(yy158)
  9526. } else {
  9527. z.EncFallback(yy158)
  9528. }
  9529. } else {
  9530. r.EncodeNil()
  9531. }
  9532. }
  9533. z.EncWriteArrayElem()
  9534. if yyq2[73] {
  9535. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9536. } else {
  9537. r.EncodeNil()
  9538. }
  9539. z.EncWriteArrayElem()
  9540. if yyq2[74] {
  9541. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9542. } else {
  9543. r.EncodeNil()
  9544. }
  9545. z.EncWriteArrayElem()
  9546. if yyq2[75] {
  9547. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9548. } else {
  9549. r.EncodeNil()
  9550. }
  9551. if yyn79 {
  9552. z.EncWriteArrayElem()
  9553. r.EncodeNil()
  9554. } else {
  9555. z.EncWriteArrayElem()
  9556. if yyq2[76] {
  9557. x.Nteststruc.CodecEncodeSelf(e)
  9558. } else {
  9559. r.EncodeNil()
  9560. }
  9561. }
  9562. z.EncWriteArrayEnd()
  9563. } else {
  9564. var yynn2 int
  9565. for _, b := range yyq2 {
  9566. if b {
  9567. yynn2++
  9568. }
  9569. }
  9570. z.EncWriteMapStart(yynn2)
  9571. yynn2 = 0
  9572. if yyq2[0] {
  9573. z.EncWriteMapElemKey()
  9574. if z.IsJSONHandle() {
  9575. z.WriteStr("\"S\"")
  9576. } else {
  9577. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9578. }
  9579. z.EncWriteMapElemValue()
  9580. if z.EncBasicHandle().StringToRaw {
  9581. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9582. } else {
  9583. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9584. }
  9585. }
  9586. if yyq2[1] {
  9587. z.EncWriteMapElemKey()
  9588. if z.IsJSONHandle() {
  9589. z.WriteStr("\"I64\"")
  9590. } else {
  9591. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9592. }
  9593. z.EncWriteMapElemValue()
  9594. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9595. }
  9596. if yyq2[2] {
  9597. z.EncWriteMapElemKey()
  9598. if z.IsJSONHandle() {
  9599. z.WriteStr("\"I32\"")
  9600. } else {
  9601. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9602. }
  9603. z.EncWriteMapElemValue()
  9604. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9605. }
  9606. if yyq2[3] {
  9607. z.EncWriteMapElemKey()
  9608. if z.IsJSONHandle() {
  9609. z.WriteStr("\"I16\"")
  9610. } else {
  9611. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9612. }
  9613. z.EncWriteMapElemValue()
  9614. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9615. }
  9616. if yyq2[4] {
  9617. z.EncWriteMapElemKey()
  9618. if z.IsJSONHandle() {
  9619. z.WriteStr("\"I8\"")
  9620. } else {
  9621. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9622. }
  9623. z.EncWriteMapElemValue()
  9624. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9625. }
  9626. if yyq2[5] {
  9627. z.EncWriteMapElemKey()
  9628. if z.IsJSONHandle() {
  9629. z.WriteStr("\"I64n\"")
  9630. } else {
  9631. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9632. }
  9633. z.EncWriteMapElemValue()
  9634. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9635. }
  9636. if yyq2[6] {
  9637. z.EncWriteMapElemKey()
  9638. if z.IsJSONHandle() {
  9639. z.WriteStr("\"I32n\"")
  9640. } else {
  9641. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9642. }
  9643. z.EncWriteMapElemValue()
  9644. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9645. }
  9646. if yyq2[7] {
  9647. z.EncWriteMapElemKey()
  9648. if z.IsJSONHandle() {
  9649. z.WriteStr("\"I16n\"")
  9650. } else {
  9651. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9652. }
  9653. z.EncWriteMapElemValue()
  9654. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9655. }
  9656. if yyq2[8] {
  9657. z.EncWriteMapElemKey()
  9658. if z.IsJSONHandle() {
  9659. z.WriteStr("\"I8n\"")
  9660. } else {
  9661. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9662. }
  9663. z.EncWriteMapElemValue()
  9664. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9665. }
  9666. if yyq2[9] {
  9667. z.EncWriteMapElemKey()
  9668. if z.IsJSONHandle() {
  9669. z.WriteStr("\"Ui64\"")
  9670. } else {
  9671. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9672. }
  9673. z.EncWriteMapElemValue()
  9674. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9675. }
  9676. if yyq2[10] {
  9677. z.EncWriteMapElemKey()
  9678. if z.IsJSONHandle() {
  9679. z.WriteStr("\"Ui32\"")
  9680. } else {
  9681. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9682. }
  9683. z.EncWriteMapElemValue()
  9684. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9685. }
  9686. if yyq2[11] {
  9687. z.EncWriteMapElemKey()
  9688. if z.IsJSONHandle() {
  9689. z.WriteStr("\"Ui16\"")
  9690. } else {
  9691. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9692. }
  9693. z.EncWriteMapElemValue()
  9694. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9695. }
  9696. if yyq2[12] {
  9697. z.EncWriteMapElemKey()
  9698. if z.IsJSONHandle() {
  9699. z.WriteStr("\"Ui8\"")
  9700. } else {
  9701. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9702. }
  9703. z.EncWriteMapElemValue()
  9704. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9705. }
  9706. if yyq2[13] {
  9707. z.EncWriteMapElemKey()
  9708. if z.IsJSONHandle() {
  9709. z.WriteStr("\"F64\"")
  9710. } else {
  9711. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  9712. }
  9713. z.EncWriteMapElemValue()
  9714. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9715. }
  9716. if yyq2[14] {
  9717. z.EncWriteMapElemKey()
  9718. if z.IsJSONHandle() {
  9719. z.WriteStr("\"F32\"")
  9720. } else {
  9721. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  9722. }
  9723. z.EncWriteMapElemValue()
  9724. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9725. }
  9726. if yyq2[15] {
  9727. z.EncWriteMapElemKey()
  9728. if z.IsJSONHandle() {
  9729. z.WriteStr("\"B\"")
  9730. } else {
  9731. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9732. }
  9733. z.EncWriteMapElemValue()
  9734. r.EncodeBool(bool(x.TestStrucCommon.B))
  9735. }
  9736. if yyq2[16] {
  9737. z.EncWriteMapElemKey()
  9738. if z.IsJSONHandle() {
  9739. z.WriteStr("\"By\"")
  9740. } else {
  9741. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  9742. }
  9743. z.EncWriteMapElemValue()
  9744. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9745. }
  9746. if yyq2[17] {
  9747. z.EncWriteMapElemKey()
  9748. if z.IsJSONHandle() {
  9749. z.WriteStr("\"Sslice\"")
  9750. } else {
  9751. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  9752. }
  9753. z.EncWriteMapElemValue()
  9754. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9755. }
  9756. if yyq2[18] {
  9757. z.EncWriteMapElemKey()
  9758. if z.IsJSONHandle() {
  9759. z.WriteStr("\"I64slice\"")
  9760. } else {
  9761. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  9762. }
  9763. z.EncWriteMapElemValue()
  9764. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9765. }
  9766. if yyq2[19] {
  9767. z.EncWriteMapElemKey()
  9768. if z.IsJSONHandle() {
  9769. z.WriteStr("\"I16slice\"")
  9770. } else {
  9771. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  9772. }
  9773. z.EncWriteMapElemValue()
  9774. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9775. }
  9776. if yyq2[20] {
  9777. z.EncWriteMapElemKey()
  9778. if z.IsJSONHandle() {
  9779. z.WriteStr("\"Ui64slice\"")
  9780. } else {
  9781. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  9782. }
  9783. z.EncWriteMapElemValue()
  9784. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9785. }
  9786. if yyq2[21] {
  9787. z.EncWriteMapElemKey()
  9788. if z.IsJSONHandle() {
  9789. z.WriteStr("\"Ui8slice\"")
  9790. } else {
  9791. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  9792. }
  9793. z.EncWriteMapElemValue()
  9794. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9795. }
  9796. if yyq2[22] {
  9797. z.EncWriteMapElemKey()
  9798. if z.IsJSONHandle() {
  9799. z.WriteStr("\"Bslice\"")
  9800. } else {
  9801. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  9802. }
  9803. z.EncWriteMapElemValue()
  9804. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9805. }
  9806. if yyq2[23] {
  9807. z.EncWriteMapElemKey()
  9808. if z.IsJSONHandle() {
  9809. z.WriteStr("\"Byslice\"")
  9810. } else {
  9811. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  9812. }
  9813. z.EncWriteMapElemValue()
  9814. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9815. }
  9816. if yyq2[24] {
  9817. z.EncWriteMapElemKey()
  9818. if z.IsJSONHandle() {
  9819. z.WriteStr("\"BytesSlice\"")
  9820. } else {
  9821. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  9822. }
  9823. z.EncWriteMapElemValue()
  9824. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9825. }
  9826. if yyq2[25] {
  9827. z.EncWriteMapElemKey()
  9828. if z.IsJSONHandle() {
  9829. z.WriteStr("\"Iptrslice\"")
  9830. } else {
  9831. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  9832. }
  9833. z.EncWriteMapElemValue()
  9834. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9835. }
  9836. if yyq2[26] {
  9837. z.EncWriteMapElemKey()
  9838. if z.IsJSONHandle() {
  9839. z.WriteStr("\"WrapSliceInt64\"")
  9840. } else {
  9841. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  9842. }
  9843. z.EncWriteMapElemValue()
  9844. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9845. }
  9846. if yyq2[27] {
  9847. z.EncWriteMapElemKey()
  9848. if z.IsJSONHandle() {
  9849. z.WriteStr("\"WrapSliceString\"")
  9850. } else {
  9851. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  9852. }
  9853. z.EncWriteMapElemValue()
  9854. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9855. }
  9856. if yyq2[28] {
  9857. z.EncWriteMapElemKey()
  9858. if z.IsJSONHandle() {
  9859. z.WriteStr("\"Msi64\"")
  9860. } else {
  9861. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  9862. }
  9863. z.EncWriteMapElemValue()
  9864. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9865. }
  9866. if yyq2[29] {
  9867. z.EncWriteMapElemKey()
  9868. if z.IsJSONHandle() {
  9869. z.WriteStr("\"Msbytes\"")
  9870. } else {
  9871. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  9872. }
  9873. z.EncWriteMapElemValue()
  9874. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9875. }
  9876. if yyq2[30] {
  9877. z.EncWriteMapElemKey()
  9878. if z.IsJSONHandle() {
  9879. z.WriteStr("\"Simplef\"")
  9880. } else {
  9881. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  9882. }
  9883. z.EncWriteMapElemValue()
  9884. yy194 := &x.TestStrucCommon.Simplef
  9885. yy194.CodecEncodeSelf(e)
  9886. }
  9887. if yyq2[31] {
  9888. z.EncWriteMapElemKey()
  9889. if z.IsJSONHandle() {
  9890. z.WriteStr("\"SstrUi64T\"")
  9891. } else {
  9892. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  9893. }
  9894. z.EncWriteMapElemValue()
  9895. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9896. }
  9897. if yyq2[32] {
  9898. z.EncWriteMapElemKey()
  9899. if z.IsJSONHandle() {
  9900. z.WriteStr("\"MstrUi64T\"")
  9901. } else {
  9902. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  9903. }
  9904. z.EncWriteMapElemValue()
  9905. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9906. }
  9907. if yyq2[33] {
  9908. z.EncWriteMapElemKey()
  9909. if z.IsJSONHandle() {
  9910. z.WriteStr("\"AS\"")
  9911. } else {
  9912. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  9913. }
  9914. z.EncWriteMapElemValue()
  9915. if z.EncBasicHandle().StringToRaw {
  9916. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9917. } else {
  9918. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9919. }
  9920. }
  9921. if yyq2[34] {
  9922. z.EncWriteMapElemKey()
  9923. if z.IsJSONHandle() {
  9924. z.WriteStr("\"AI64\"")
  9925. } else {
  9926. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  9927. }
  9928. z.EncWriteMapElemValue()
  9929. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9930. }
  9931. if yyq2[35] {
  9932. z.EncWriteMapElemKey()
  9933. if z.IsJSONHandle() {
  9934. z.WriteStr("\"AI16\"")
  9935. } else {
  9936. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  9937. }
  9938. z.EncWriteMapElemValue()
  9939. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9940. }
  9941. if yyq2[36] {
  9942. z.EncWriteMapElemKey()
  9943. if z.IsJSONHandle() {
  9944. z.WriteStr("\"AUi64\"")
  9945. } else {
  9946. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  9947. }
  9948. z.EncWriteMapElemValue()
  9949. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9950. }
  9951. if yyq2[37] {
  9952. z.EncWriteMapElemKey()
  9953. if z.IsJSONHandle() {
  9954. z.WriteStr("\"ASslice\"")
  9955. } else {
  9956. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  9957. }
  9958. z.EncWriteMapElemValue()
  9959. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9960. }
  9961. if yyq2[38] {
  9962. z.EncWriteMapElemKey()
  9963. if z.IsJSONHandle() {
  9964. z.WriteStr("\"AI64slice\"")
  9965. } else {
  9966. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  9967. }
  9968. z.EncWriteMapElemValue()
  9969. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9970. }
  9971. if yyq2[39] {
  9972. z.EncWriteMapElemKey()
  9973. if z.IsJSONHandle() {
  9974. z.WriteStr("\"AUi64slice\"")
  9975. } else {
  9976. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  9977. }
  9978. z.EncWriteMapElemValue()
  9979. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9980. }
  9981. if yyq2[40] {
  9982. z.EncWriteMapElemKey()
  9983. if z.IsJSONHandle() {
  9984. z.WriteStr("\"AF64slice\"")
  9985. } else {
  9986. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  9987. }
  9988. z.EncWriteMapElemValue()
  9989. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9990. }
  9991. if yyq2[41] {
  9992. z.EncWriteMapElemKey()
  9993. if z.IsJSONHandle() {
  9994. z.WriteStr("\"AF32slice\"")
  9995. } else {
  9996. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  9997. }
  9998. z.EncWriteMapElemValue()
  9999. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  10000. }
  10001. if yyq2[42] {
  10002. z.EncWriteMapElemKey()
  10003. if z.IsJSONHandle() {
  10004. z.WriteStr("\"AMSU16\"")
  10005. } else {
  10006. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  10007. }
  10008. z.EncWriteMapElemValue()
  10009. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  10010. }
  10011. if yyq2[43] {
  10012. z.EncWriteMapElemKey()
  10013. if z.IsJSONHandle() {
  10014. z.WriteStr("\"AI64arr0\"")
  10015. } else {
  10016. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  10017. }
  10018. z.EncWriteMapElemValue()
  10019. yy208 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  10020. h.encArray0int64((*[0]int64)(yy208), e)
  10021. }
  10022. if yyq2[44] {
  10023. z.EncWriteMapElemKey()
  10024. if z.IsJSONHandle() {
  10025. z.WriteStr("\"AI64slice0\"")
  10026. } else {
  10027. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  10028. }
  10029. z.EncWriteMapElemValue()
  10030. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  10031. }
  10032. if yyq2[45] {
  10033. z.EncWriteMapElemKey()
  10034. if z.IsJSONHandle() {
  10035. z.WriteStr("\"AUi64sliceN\"")
  10036. } else {
  10037. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  10038. }
  10039. z.EncWriteMapElemValue()
  10040. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  10041. }
  10042. if yyq2[46] {
  10043. z.EncWriteMapElemKey()
  10044. if z.IsJSONHandle() {
  10045. z.WriteStr("\"AMSU16N\"")
  10046. } else {
  10047. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  10048. }
  10049. z.EncWriteMapElemValue()
  10050. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  10051. }
  10052. if yyq2[47] {
  10053. z.EncWriteMapElemKey()
  10054. if z.IsJSONHandle() {
  10055. z.WriteStr("\"AMSU16E\"")
  10056. } else {
  10057. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10058. }
  10059. z.EncWriteMapElemValue()
  10060. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  10061. }
  10062. if yyq2[48] {
  10063. z.EncWriteMapElemKey()
  10064. if z.IsJSONHandle() {
  10065. z.WriteStr("\"NotAnon\"")
  10066. } else {
  10067. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10068. }
  10069. z.EncWriteMapElemValue()
  10070. yy214 := &x.TestStrucCommon.NotAnon
  10071. yy214.CodecEncodeSelf(e)
  10072. }
  10073. if yyq2[49] {
  10074. z.EncWriteMapElemKey()
  10075. if z.IsJSONHandle() {
  10076. z.WriteStr("\"Nmap\"")
  10077. } else {
  10078. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  10079. }
  10080. z.EncWriteMapElemValue()
  10081. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  10082. }
  10083. if yyq2[50] {
  10084. z.EncWriteMapElemKey()
  10085. if z.IsJSONHandle() {
  10086. z.WriteStr("\"Nslice\"")
  10087. } else {
  10088. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  10089. }
  10090. z.EncWriteMapElemValue()
  10091. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  10092. }
  10093. if yyq2[51] {
  10094. z.EncWriteMapElemKey()
  10095. if z.IsJSONHandle() {
  10096. z.WriteStr("\"Nint64\"")
  10097. } else {
  10098. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  10099. }
  10100. z.EncWriteMapElemValue()
  10101. if yyn54 {
  10102. r.EncodeNil()
  10103. } else {
  10104. yy218 := *x.TestStrucCommon.Nint64
  10105. r.EncodeInt(int64(yy218))
  10106. }
  10107. }
  10108. if yyq2[52] {
  10109. z.EncWriteMapElemKey()
  10110. if z.IsJSONHandle() {
  10111. z.WriteStr("\"Chstr\"")
  10112. } else {
  10113. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  10114. }
  10115. z.EncWriteMapElemValue()
  10116. h.encChanstring((chan string)(x.Chstr), e)
  10117. }
  10118. if yyq2[53] {
  10119. z.EncWriteMapElemKey()
  10120. if z.IsJSONHandle() {
  10121. z.WriteStr("\"Mis\"")
  10122. } else {
  10123. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  10124. }
  10125. z.EncWriteMapElemValue()
  10126. z.F.EncMapIntStringV(x.Mis, e)
  10127. }
  10128. if yyq2[54] {
  10129. z.EncWriteMapElemKey()
  10130. if z.IsJSONHandle() {
  10131. z.WriteStr("\"Mbu64\"")
  10132. } else {
  10133. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  10134. }
  10135. z.EncWriteMapElemValue()
  10136. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  10137. }
  10138. if yyq2[55] {
  10139. z.EncWriteMapElemKey()
  10140. if z.IsJSONHandle() {
  10141. z.WriteStr("\"Miwu64s\"")
  10142. } else {
  10143. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  10144. }
  10145. z.EncWriteMapElemValue()
  10146. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  10147. }
  10148. if yyq2[56] {
  10149. z.EncWriteMapElemKey()
  10150. if z.IsJSONHandle() {
  10151. z.WriteStr("\"Mfwss\"")
  10152. } else {
  10153. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  10154. }
  10155. z.EncWriteMapElemValue()
  10156. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  10157. }
  10158. if yyq2[57] {
  10159. z.EncWriteMapElemKey()
  10160. if z.IsJSONHandle() {
  10161. z.WriteStr("\"Mf32wss\"")
  10162. } else {
  10163. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  10164. }
  10165. z.EncWriteMapElemValue()
  10166. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  10167. }
  10168. if yyq2[58] {
  10169. z.EncWriteMapElemKey()
  10170. if z.IsJSONHandle() {
  10171. z.WriteStr("\"Mui2wss\"")
  10172. } else {
  10173. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  10174. }
  10175. z.EncWriteMapElemValue()
  10176. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  10177. }
  10178. if yyq2[59] {
  10179. z.EncWriteMapElemKey()
  10180. if z.IsJSONHandle() {
  10181. z.WriteStr("\"Msu2wss\"")
  10182. } else {
  10183. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  10184. }
  10185. z.EncWriteMapElemValue()
  10186. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  10187. }
  10188. if yyq2[60] {
  10189. z.EncWriteMapElemKey()
  10190. if z.IsJSONHandle() {
  10191. z.WriteStr("\"Ci64\"")
  10192. } else {
  10193. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  10194. }
  10195. z.EncWriteMapElemValue()
  10196. x.Ci64.CodecEncodeSelf(e)
  10197. }
  10198. if yyq2[61] {
  10199. z.EncWriteMapElemKey()
  10200. if z.IsJSONHandle() {
  10201. z.WriteStr("\"Swrapbytes\"")
  10202. } else {
  10203. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  10204. }
  10205. z.EncWriteMapElemValue()
  10206. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  10207. }
  10208. if yyq2[62] {
  10209. z.EncWriteMapElemKey()
  10210. if z.IsJSONHandle() {
  10211. z.WriteStr("\"Swrapuint8\"")
  10212. } else {
  10213. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  10214. }
  10215. z.EncWriteMapElemValue()
  10216. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  10217. }
  10218. if yyq2[63] {
  10219. z.EncWriteMapElemKey()
  10220. if z.IsJSONHandle() {
  10221. z.WriteStr("\"ArrStrUi64T\"")
  10222. } else {
  10223. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  10224. }
  10225. z.EncWriteMapElemValue()
  10226. yy231 := &x.ArrStrUi64T
  10227. h.encArray4stringUint64T((*[4]stringUint64T)(yy231), e)
  10228. }
  10229. if yyq2[64] {
  10230. z.EncWriteMapElemKey()
  10231. if z.IsJSONHandle() {
  10232. z.WriteStr("\"Ui64array\"")
  10233. } else {
  10234. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  10235. }
  10236. z.EncWriteMapElemValue()
  10237. yy233 := &x.Ui64array
  10238. h.encArray4uint64((*[4]uint64)(yy233), e)
  10239. }
  10240. if yyq2[65] {
  10241. z.EncWriteMapElemKey()
  10242. if z.IsJSONHandle() {
  10243. z.WriteStr("\"Ui64slicearray\"")
  10244. } else {
  10245. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  10246. }
  10247. z.EncWriteMapElemValue()
  10248. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  10249. }
  10250. if yyq2[66] {
  10251. z.EncWriteMapElemKey()
  10252. if z.IsJSONHandle() {
  10253. z.WriteStr("\"SintfAarray\"")
  10254. } else {
  10255. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  10256. }
  10257. z.EncWriteMapElemValue()
  10258. z.F.EncSliceIntfV(x.SintfAarray, e)
  10259. }
  10260. if yyq2[67] {
  10261. z.EncWriteMapElemKey()
  10262. if z.IsJSONHandle() {
  10263. z.WriteStr("\"MstrUi64TSelf\"")
  10264. } else {
  10265. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64TSelf`)
  10266. }
  10267. z.EncWriteMapElemValue()
  10268. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  10269. }
  10270. if yyq2[68] {
  10271. z.EncWriteMapElemKey()
  10272. if z.IsJSONHandle() {
  10273. z.WriteStr("\"Islice\"")
  10274. } else {
  10275. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  10276. }
  10277. z.EncWriteMapElemValue()
  10278. if yyn71 {
  10279. r.EncodeNil()
  10280. } else {
  10281. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  10282. }
  10283. }
  10284. if yyq2[69] {
  10285. z.EncWriteMapElemKey()
  10286. if z.IsJSONHandle() {
  10287. z.WriteStr("\"Ms\"")
  10288. } else {
  10289. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  10290. }
  10291. z.EncWriteMapElemValue()
  10292. if yyn72 {
  10293. r.EncodeNil()
  10294. } else {
  10295. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  10296. }
  10297. }
  10298. if yyq2[70] {
  10299. z.EncWriteMapElemKey()
  10300. if z.IsJSONHandle() {
  10301. z.WriteStr("\"Nintf\"")
  10302. } else {
  10303. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  10304. }
  10305. z.EncWriteMapElemValue()
  10306. if yyn73 {
  10307. r.EncodeNil()
  10308. } else {
  10309. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  10310. }
  10311. }
  10312. if yyq2[71] {
  10313. z.EncWriteMapElemKey()
  10314. if z.IsJSONHandle() {
  10315. z.WriteStr("\"T\"")
  10316. } else {
  10317. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  10318. }
  10319. z.EncWriteMapElemValue()
  10320. if yyn74 {
  10321. r.EncodeNil()
  10322. } else {
  10323. if !z.EncBasicHandle().TimeNotBuiltin {
  10324. r.EncodeTime(x.AnonInTestStrucIntf.T)
  10325. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  10326. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt241)
  10327. } else if z.EncBinary() {
  10328. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  10329. } else if !z.EncBinary() && z.IsJSONHandle() {
  10330. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  10331. } else {
  10332. z.EncFallback(x.AnonInTestStrucIntf.T)
  10333. }
  10334. }
  10335. }
  10336. if yyq2[72] {
  10337. z.EncWriteMapElemKey()
  10338. if z.IsJSONHandle() {
  10339. z.WriteStr("\"Tptr\"")
  10340. } else {
  10341. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  10342. }
  10343. z.EncWriteMapElemValue()
  10344. if yyn75 {
  10345. r.EncodeNil()
  10346. } else {
  10347. yy242 := *x.AnonInTestStrucIntf.Tptr
  10348. if !z.EncBasicHandle().TimeNotBuiltin {
  10349. r.EncodeTime(yy242)
  10350. } else if yyxt243 := z.Extension(z.I2Rtid(yy242)); yyxt243 != nil {
  10351. z.EncExtension(yy242, yyxt243)
  10352. } else if z.EncBinary() {
  10353. z.EncBinaryMarshal(yy242)
  10354. } else if !z.EncBinary() && z.IsJSONHandle() {
  10355. z.EncJSONMarshal(yy242)
  10356. } else {
  10357. z.EncFallback(yy242)
  10358. }
  10359. }
  10360. }
  10361. if yyq2[73] {
  10362. z.EncWriteMapElemKey()
  10363. if z.IsJSONHandle() {
  10364. z.WriteStr("\"Mtsptr\"")
  10365. } else {
  10366. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  10367. }
  10368. z.EncWriteMapElemValue()
  10369. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  10370. }
  10371. if yyq2[74] {
  10372. z.EncWriteMapElemKey()
  10373. if z.IsJSONHandle() {
  10374. z.WriteStr("\"Mts\"")
  10375. } else {
  10376. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  10377. }
  10378. z.EncWriteMapElemValue()
  10379. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  10380. }
  10381. if yyq2[75] {
  10382. z.EncWriteMapElemKey()
  10383. if z.IsJSONHandle() {
  10384. z.WriteStr("\"Its\"")
  10385. } else {
  10386. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  10387. }
  10388. z.EncWriteMapElemValue()
  10389. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  10390. }
  10391. if yyq2[76] {
  10392. z.EncWriteMapElemKey()
  10393. if z.IsJSONHandle() {
  10394. z.WriteStr("\"Nteststruc\"")
  10395. } else {
  10396. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  10397. }
  10398. z.EncWriteMapElemValue()
  10399. if yyn79 {
  10400. r.EncodeNil()
  10401. } else {
  10402. x.Nteststruc.CodecEncodeSelf(e)
  10403. }
  10404. }
  10405. z.EncWriteMapEnd()
  10406. }
  10407. }
  10408. }
  10409. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  10410. var h codecSelfer19780
  10411. z, r := GenHelperDecoder(d)
  10412. _, _, _ = h, z, r
  10413. yyct2 := r.ContainerType()
  10414. if yyct2 == codecSelferValueTypeMap19780 {
  10415. yyl2 := z.DecReadMapStart()
  10416. if yyl2 == 0 {
  10417. z.DecReadMapEnd()
  10418. } else {
  10419. x.codecDecodeSelfFromMap(yyl2, d)
  10420. }
  10421. } else if yyct2 == codecSelferValueTypeArray19780 {
  10422. yyl2 := z.DecReadArrayStart()
  10423. if yyl2 == 0 {
  10424. z.DecReadArrayEnd()
  10425. } else {
  10426. x.codecDecodeSelfFromArray(yyl2, d)
  10427. }
  10428. } else {
  10429. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10430. }
  10431. }
  10432. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  10433. var h codecSelfer19780
  10434. z, r := GenHelperDecoder(d)
  10435. _, _, _ = h, z, r
  10436. var yyhl3 bool = l >= 0
  10437. for yyj3 := 0; ; yyj3++ {
  10438. if yyhl3 {
  10439. if yyj3 >= l {
  10440. break
  10441. }
  10442. } else {
  10443. if r.CheckBreak() {
  10444. break
  10445. }
  10446. }
  10447. z.DecReadMapElemKey()
  10448. yys3 := z.StringView(r.DecodeStringAsBytes())
  10449. z.DecReadMapElemValue()
  10450. switch yys3 {
  10451. case "S":
  10452. if r.TryDecodeAsNil() {
  10453. x.TestStrucCommon.S = ""
  10454. } else {
  10455. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10456. }
  10457. case "I64":
  10458. if r.TryDecodeAsNil() {
  10459. x.TestStrucCommon.I64 = 0
  10460. } else {
  10461. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10462. }
  10463. case "I32":
  10464. if r.TryDecodeAsNil() {
  10465. x.TestStrucCommon.I32 = 0
  10466. } else {
  10467. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10468. }
  10469. case "I16":
  10470. if r.TryDecodeAsNil() {
  10471. x.TestStrucCommon.I16 = 0
  10472. } else {
  10473. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10474. }
  10475. case "I8":
  10476. if r.TryDecodeAsNil() {
  10477. x.TestStrucCommon.I8 = 0
  10478. } else {
  10479. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10480. }
  10481. case "I64n":
  10482. if r.TryDecodeAsNil() {
  10483. x.TestStrucCommon.I64n = 0
  10484. } else {
  10485. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10486. }
  10487. case "I32n":
  10488. if r.TryDecodeAsNil() {
  10489. x.TestStrucCommon.I32n = 0
  10490. } else {
  10491. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10492. }
  10493. case "I16n":
  10494. if r.TryDecodeAsNil() {
  10495. x.TestStrucCommon.I16n = 0
  10496. } else {
  10497. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10498. }
  10499. case "I8n":
  10500. if r.TryDecodeAsNil() {
  10501. x.TestStrucCommon.I8n = 0
  10502. } else {
  10503. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10504. }
  10505. case "Ui64":
  10506. if r.TryDecodeAsNil() {
  10507. x.TestStrucCommon.Ui64 = 0
  10508. } else {
  10509. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10510. }
  10511. case "Ui32":
  10512. if r.TryDecodeAsNil() {
  10513. x.TestStrucCommon.Ui32 = 0
  10514. } else {
  10515. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10516. }
  10517. case "Ui16":
  10518. if r.TryDecodeAsNil() {
  10519. x.TestStrucCommon.Ui16 = 0
  10520. } else {
  10521. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10522. }
  10523. case "Ui8":
  10524. if r.TryDecodeAsNil() {
  10525. x.TestStrucCommon.Ui8 = 0
  10526. } else {
  10527. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10528. }
  10529. case "F64":
  10530. if r.TryDecodeAsNil() {
  10531. x.TestStrucCommon.F64 = 0
  10532. } else {
  10533. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10534. }
  10535. case "F32":
  10536. if r.TryDecodeAsNil() {
  10537. x.TestStrucCommon.F32 = 0
  10538. } else {
  10539. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10540. }
  10541. case "B":
  10542. if r.TryDecodeAsNil() {
  10543. x.TestStrucCommon.B = false
  10544. } else {
  10545. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10546. }
  10547. case "By":
  10548. if r.TryDecodeAsNil() {
  10549. x.TestStrucCommon.By = 0
  10550. } else {
  10551. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10552. }
  10553. case "Sslice":
  10554. if r.TryDecodeAsNil() {
  10555. x.TestStrucCommon.Sslice = nil
  10556. } else {
  10557. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10558. }
  10559. case "I64slice":
  10560. if r.TryDecodeAsNil() {
  10561. x.TestStrucCommon.I64slice = nil
  10562. } else {
  10563. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10564. }
  10565. case "I16slice":
  10566. if r.TryDecodeAsNil() {
  10567. x.TestStrucCommon.I16slice = nil
  10568. } else {
  10569. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10570. }
  10571. case "Ui64slice":
  10572. if r.TryDecodeAsNil() {
  10573. x.TestStrucCommon.Ui64slice = nil
  10574. } else {
  10575. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10576. }
  10577. case "Ui8slice":
  10578. if r.TryDecodeAsNil() {
  10579. x.TestStrucCommon.Ui8slice = nil
  10580. } else {
  10581. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10582. }
  10583. case "Bslice":
  10584. if r.TryDecodeAsNil() {
  10585. x.TestStrucCommon.Bslice = nil
  10586. } else {
  10587. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10588. }
  10589. case "Byslice":
  10590. if r.TryDecodeAsNil() {
  10591. x.TestStrucCommon.Byslice = nil
  10592. } else {
  10593. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10594. }
  10595. case "BytesSlice":
  10596. if r.TryDecodeAsNil() {
  10597. x.TestStrucCommon.BytesSlice = nil
  10598. } else {
  10599. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10600. }
  10601. case "Iptrslice":
  10602. if r.TryDecodeAsNil() {
  10603. x.TestStrucCommon.Iptrslice = nil
  10604. } else {
  10605. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10606. }
  10607. case "WrapSliceInt64":
  10608. if r.TryDecodeAsNil() {
  10609. x.TestStrucCommon.WrapSliceInt64 = nil
  10610. } else {
  10611. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10612. }
  10613. case "WrapSliceString":
  10614. if r.TryDecodeAsNil() {
  10615. x.TestStrucCommon.WrapSliceString = nil
  10616. } else {
  10617. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  10618. }
  10619. case "Msi64":
  10620. if r.TryDecodeAsNil() {
  10621. x.TestStrucCommon.Msi64 = nil
  10622. } else {
  10623. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  10624. }
  10625. case "Msbytes":
  10626. if r.TryDecodeAsNil() {
  10627. x.TestStrucCommon.Msbytes = nil
  10628. } else {
  10629. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  10630. }
  10631. case "Simplef":
  10632. if r.TryDecodeAsNil() {
  10633. x.TestStrucCommon.Simplef = testSimpleFields{}
  10634. } else {
  10635. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  10636. }
  10637. case "SstrUi64T":
  10638. if r.TryDecodeAsNil() {
  10639. x.TestStrucCommon.SstrUi64T = nil
  10640. } else {
  10641. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  10642. }
  10643. case "MstrUi64T":
  10644. if r.TryDecodeAsNil() {
  10645. x.TestStrucCommon.MstrUi64T = nil
  10646. } else {
  10647. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  10648. }
  10649. case "AS":
  10650. if r.TryDecodeAsNil() {
  10651. x.TestStrucCommon.AnonInTestStruc.AS = ""
  10652. } else {
  10653. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  10654. }
  10655. case "AI64":
  10656. if r.TryDecodeAsNil() {
  10657. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  10658. } else {
  10659. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  10660. }
  10661. case "AI16":
  10662. if r.TryDecodeAsNil() {
  10663. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  10664. } else {
  10665. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10666. }
  10667. case "AUi64":
  10668. if r.TryDecodeAsNil() {
  10669. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  10670. } else {
  10671. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  10672. }
  10673. case "ASslice":
  10674. if r.TryDecodeAsNil() {
  10675. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  10676. } else {
  10677. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10678. }
  10679. case "AI64slice":
  10680. if r.TryDecodeAsNil() {
  10681. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  10682. } else {
  10683. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10684. }
  10685. case "AUi64slice":
  10686. if r.TryDecodeAsNil() {
  10687. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  10688. } else {
  10689. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10690. }
  10691. case "AF64slice":
  10692. if r.TryDecodeAsNil() {
  10693. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  10694. } else {
  10695. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10696. }
  10697. case "AF32slice":
  10698. if r.TryDecodeAsNil() {
  10699. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  10700. } else {
  10701. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10702. }
  10703. case "AMSU16":
  10704. if r.TryDecodeAsNil() {
  10705. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  10706. } else {
  10707. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10708. }
  10709. case "AI64arr0":
  10710. if r.TryDecodeAsNil() {
  10711. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  10712. } else {
  10713. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10714. }
  10715. case "AI64slice0":
  10716. if r.TryDecodeAsNil() {
  10717. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  10718. } else {
  10719. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  10720. }
  10721. case "AUi64sliceN":
  10722. if r.TryDecodeAsNil() {
  10723. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  10724. } else {
  10725. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10726. }
  10727. case "AMSU16N":
  10728. if r.TryDecodeAsNil() {
  10729. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  10730. } else {
  10731. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10732. }
  10733. case "AMSU16E":
  10734. if r.TryDecodeAsNil() {
  10735. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  10736. } else {
  10737. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10738. }
  10739. case "NotAnon":
  10740. if r.TryDecodeAsNil() {
  10741. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  10742. } else {
  10743. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10744. }
  10745. case "Nmap":
  10746. if r.TryDecodeAsNil() {
  10747. x.TestStrucCommon.Nmap = nil
  10748. } else {
  10749. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10750. }
  10751. case "Nslice":
  10752. if r.TryDecodeAsNil() {
  10753. x.TestStrucCommon.Nslice = nil
  10754. } else {
  10755. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10756. }
  10757. case "Nint64":
  10758. if r.TryDecodeAsNil() {
  10759. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10760. x.TestStrucCommon.Nint64 = nil
  10761. }
  10762. } else {
  10763. if x.TestStrucCommon.Nint64 == nil {
  10764. x.TestStrucCommon.Nint64 = new(int64)
  10765. }
  10766. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10767. }
  10768. case "Chstr":
  10769. if r.TryDecodeAsNil() {
  10770. x.Chstr = nil
  10771. } else {
  10772. h.decChanstring((*chan string)(&x.Chstr), d)
  10773. }
  10774. case "Mis":
  10775. if r.TryDecodeAsNil() {
  10776. x.Mis = nil
  10777. } else {
  10778. z.F.DecMapIntStringX(&x.Mis, d)
  10779. }
  10780. case "Mbu64":
  10781. if r.TryDecodeAsNil() {
  10782. x.Mbu64 = nil
  10783. } else {
  10784. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10785. }
  10786. case "Miwu64s":
  10787. if r.TryDecodeAsNil() {
  10788. x.Miwu64s = nil
  10789. } else {
  10790. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10791. }
  10792. case "Mfwss":
  10793. if r.TryDecodeAsNil() {
  10794. x.Mfwss = nil
  10795. } else {
  10796. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10797. }
  10798. case "Mf32wss":
  10799. if r.TryDecodeAsNil() {
  10800. x.Mf32wss = nil
  10801. } else {
  10802. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10803. }
  10804. case "Mui2wss":
  10805. if r.TryDecodeAsNil() {
  10806. x.Mui2wss = nil
  10807. } else {
  10808. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10809. }
  10810. case "Msu2wss":
  10811. if r.TryDecodeAsNil() {
  10812. x.Msu2wss = nil
  10813. } else {
  10814. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10815. }
  10816. case "Ci64":
  10817. if r.TryDecodeAsNil() {
  10818. x.Ci64 = 0
  10819. } else {
  10820. x.Ci64.CodecDecodeSelf(d)
  10821. }
  10822. case "Swrapbytes":
  10823. if r.TryDecodeAsNil() {
  10824. x.Swrapbytes = nil
  10825. } else {
  10826. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10827. }
  10828. case "Swrapuint8":
  10829. if r.TryDecodeAsNil() {
  10830. x.Swrapuint8 = nil
  10831. } else {
  10832. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10833. }
  10834. case "ArrStrUi64T":
  10835. if r.TryDecodeAsNil() {
  10836. x.ArrStrUi64T = [4]stringUint64T{}
  10837. } else {
  10838. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10839. }
  10840. case "Ui64array":
  10841. if r.TryDecodeAsNil() {
  10842. x.Ui64array = [4]uint64{}
  10843. } else {
  10844. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10845. }
  10846. case "Ui64slicearray":
  10847. if r.TryDecodeAsNil() {
  10848. x.Ui64slicearray = nil
  10849. } else {
  10850. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10851. }
  10852. case "SintfAarray":
  10853. if r.TryDecodeAsNil() {
  10854. x.SintfAarray = nil
  10855. } else {
  10856. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10857. }
  10858. case "MstrUi64TSelf":
  10859. if r.TryDecodeAsNil() {
  10860. x.MstrUi64TSelf = nil
  10861. } else {
  10862. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  10863. }
  10864. case "Islice":
  10865. if r.TryDecodeAsNil() {
  10866. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10867. x.AnonInTestStrucIntf.Islice = nil
  10868. }
  10869. } else {
  10870. if x.AnonInTestStrucIntf == nil {
  10871. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10872. }
  10873. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  10874. }
  10875. case "Ms":
  10876. if r.TryDecodeAsNil() {
  10877. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10878. x.AnonInTestStrucIntf.Ms = nil
  10879. }
  10880. } else {
  10881. if x.AnonInTestStrucIntf == nil {
  10882. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10883. }
  10884. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  10885. }
  10886. case "Nintf":
  10887. if r.TryDecodeAsNil() {
  10888. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10889. x.AnonInTestStrucIntf.Nintf = nil
  10890. }
  10891. } else {
  10892. if x.AnonInTestStrucIntf == nil {
  10893. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10894. }
  10895. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  10896. }
  10897. case "T":
  10898. if r.TryDecodeAsNil() {
  10899. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10900. x.AnonInTestStrucIntf.T = time.Time{}
  10901. }
  10902. } else {
  10903. if x.AnonInTestStrucIntf == nil {
  10904. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10905. }
  10906. if !z.DecBasicHandle().TimeNotBuiltin {
  10907. x.AnonInTestStrucIntf.T = r.DecodeTime()
  10908. } else if yyxt121 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt121 != nil {
  10909. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt121)
  10910. } else if z.DecBinary() {
  10911. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  10912. } else if !z.DecBinary() && z.IsJSONHandle() {
  10913. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  10914. } else {
  10915. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  10916. }
  10917. }
  10918. case "Tptr":
  10919. if r.TryDecodeAsNil() {
  10920. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  10921. x.AnonInTestStrucIntf.Tptr = nil
  10922. }
  10923. } else {
  10924. if x.AnonInTestStrucIntf == nil {
  10925. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10926. }
  10927. if x.AnonInTestStrucIntf.Tptr == nil {
  10928. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  10929. }
  10930. if !z.DecBasicHandle().TimeNotBuiltin {
  10931. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  10932. } else if yyxt123 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt123 != nil {
  10933. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt123)
  10934. } else if z.DecBinary() {
  10935. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10936. } else if !z.DecBinary() && z.IsJSONHandle() {
  10937. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10938. } else {
  10939. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  10940. }
  10941. }
  10942. case "Mtsptr":
  10943. if r.TryDecodeAsNil() {
  10944. x.Mtsptr = nil
  10945. } else {
  10946. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  10947. }
  10948. case "Mts":
  10949. if r.TryDecodeAsNil() {
  10950. x.Mts = nil
  10951. } else {
  10952. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  10953. }
  10954. case "Its":
  10955. if r.TryDecodeAsNil() {
  10956. x.Its = nil
  10957. } else {
  10958. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  10959. }
  10960. case "Nteststruc":
  10961. if r.TryDecodeAsNil() {
  10962. if x.Nteststruc != nil { // remove the if-true
  10963. x.Nteststruc = nil
  10964. }
  10965. } else {
  10966. if x.Nteststruc == nil {
  10967. x.Nteststruc = new(TestStrucFlex)
  10968. }
  10969. x.Nteststruc.CodecDecodeSelf(d)
  10970. }
  10971. default:
  10972. z.DecStructFieldNotFound(-1, yys3)
  10973. } // end switch yys3
  10974. } // end for yyj3
  10975. z.DecReadMapEnd()
  10976. }
  10977. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  10978. var h codecSelfer19780
  10979. z, r := GenHelperDecoder(d)
  10980. _, _, _ = h, z, r
  10981. var yyj131 int
  10982. var yyb131 bool
  10983. var yyhl131 bool = l >= 0
  10984. yyj131++
  10985. if yyhl131 {
  10986. yyb131 = yyj131 > l
  10987. } else {
  10988. yyb131 = r.CheckBreak()
  10989. }
  10990. if yyb131 {
  10991. z.DecReadArrayEnd()
  10992. return
  10993. }
  10994. z.DecReadArrayElem()
  10995. if r.TryDecodeAsNil() {
  10996. x.TestStrucCommon.S = ""
  10997. } else {
  10998. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10999. }
  11000. yyj131++
  11001. if yyhl131 {
  11002. yyb131 = yyj131 > l
  11003. } else {
  11004. yyb131 = r.CheckBreak()
  11005. }
  11006. if yyb131 {
  11007. z.DecReadArrayEnd()
  11008. return
  11009. }
  11010. z.DecReadArrayElem()
  11011. if r.TryDecodeAsNil() {
  11012. x.TestStrucCommon.I64 = 0
  11013. } else {
  11014. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  11015. }
  11016. yyj131++
  11017. if yyhl131 {
  11018. yyb131 = yyj131 > l
  11019. } else {
  11020. yyb131 = r.CheckBreak()
  11021. }
  11022. if yyb131 {
  11023. z.DecReadArrayEnd()
  11024. return
  11025. }
  11026. z.DecReadArrayElem()
  11027. if r.TryDecodeAsNil() {
  11028. x.TestStrucCommon.I32 = 0
  11029. } else {
  11030. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11031. }
  11032. yyj131++
  11033. if yyhl131 {
  11034. yyb131 = yyj131 > l
  11035. } else {
  11036. yyb131 = r.CheckBreak()
  11037. }
  11038. if yyb131 {
  11039. z.DecReadArrayEnd()
  11040. return
  11041. }
  11042. z.DecReadArrayElem()
  11043. if r.TryDecodeAsNil() {
  11044. x.TestStrucCommon.I16 = 0
  11045. } else {
  11046. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11047. }
  11048. yyj131++
  11049. if yyhl131 {
  11050. yyb131 = yyj131 > l
  11051. } else {
  11052. yyb131 = r.CheckBreak()
  11053. }
  11054. if yyb131 {
  11055. z.DecReadArrayEnd()
  11056. return
  11057. }
  11058. z.DecReadArrayElem()
  11059. if r.TryDecodeAsNil() {
  11060. x.TestStrucCommon.I8 = 0
  11061. } else {
  11062. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11063. }
  11064. yyj131++
  11065. if yyhl131 {
  11066. yyb131 = yyj131 > l
  11067. } else {
  11068. yyb131 = r.CheckBreak()
  11069. }
  11070. if yyb131 {
  11071. z.DecReadArrayEnd()
  11072. return
  11073. }
  11074. z.DecReadArrayElem()
  11075. if r.TryDecodeAsNil() {
  11076. x.TestStrucCommon.I64n = 0
  11077. } else {
  11078. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  11079. }
  11080. yyj131++
  11081. if yyhl131 {
  11082. yyb131 = yyj131 > l
  11083. } else {
  11084. yyb131 = r.CheckBreak()
  11085. }
  11086. if yyb131 {
  11087. z.DecReadArrayEnd()
  11088. return
  11089. }
  11090. z.DecReadArrayElem()
  11091. if r.TryDecodeAsNil() {
  11092. x.TestStrucCommon.I32n = 0
  11093. } else {
  11094. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11095. }
  11096. yyj131++
  11097. if yyhl131 {
  11098. yyb131 = yyj131 > l
  11099. } else {
  11100. yyb131 = r.CheckBreak()
  11101. }
  11102. if yyb131 {
  11103. z.DecReadArrayEnd()
  11104. return
  11105. }
  11106. z.DecReadArrayElem()
  11107. if r.TryDecodeAsNil() {
  11108. x.TestStrucCommon.I16n = 0
  11109. } else {
  11110. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11111. }
  11112. yyj131++
  11113. if yyhl131 {
  11114. yyb131 = yyj131 > l
  11115. } else {
  11116. yyb131 = r.CheckBreak()
  11117. }
  11118. if yyb131 {
  11119. z.DecReadArrayEnd()
  11120. return
  11121. }
  11122. z.DecReadArrayElem()
  11123. if r.TryDecodeAsNil() {
  11124. x.TestStrucCommon.I8n = 0
  11125. } else {
  11126. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11127. }
  11128. yyj131++
  11129. if yyhl131 {
  11130. yyb131 = yyj131 > l
  11131. } else {
  11132. yyb131 = r.CheckBreak()
  11133. }
  11134. if yyb131 {
  11135. z.DecReadArrayEnd()
  11136. return
  11137. }
  11138. z.DecReadArrayElem()
  11139. if r.TryDecodeAsNil() {
  11140. x.TestStrucCommon.Ui64 = 0
  11141. } else {
  11142. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  11143. }
  11144. yyj131++
  11145. if yyhl131 {
  11146. yyb131 = yyj131 > l
  11147. } else {
  11148. yyb131 = r.CheckBreak()
  11149. }
  11150. if yyb131 {
  11151. z.DecReadArrayEnd()
  11152. return
  11153. }
  11154. z.DecReadArrayElem()
  11155. if r.TryDecodeAsNil() {
  11156. x.TestStrucCommon.Ui32 = 0
  11157. } else {
  11158. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  11159. }
  11160. yyj131++
  11161. if yyhl131 {
  11162. yyb131 = yyj131 > l
  11163. } else {
  11164. yyb131 = r.CheckBreak()
  11165. }
  11166. if yyb131 {
  11167. z.DecReadArrayEnd()
  11168. return
  11169. }
  11170. z.DecReadArrayElem()
  11171. if r.TryDecodeAsNil() {
  11172. x.TestStrucCommon.Ui16 = 0
  11173. } else {
  11174. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  11175. }
  11176. yyj131++
  11177. if yyhl131 {
  11178. yyb131 = yyj131 > l
  11179. } else {
  11180. yyb131 = r.CheckBreak()
  11181. }
  11182. if yyb131 {
  11183. z.DecReadArrayEnd()
  11184. return
  11185. }
  11186. z.DecReadArrayElem()
  11187. if r.TryDecodeAsNil() {
  11188. x.TestStrucCommon.Ui8 = 0
  11189. } else {
  11190. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  11191. }
  11192. yyj131++
  11193. if yyhl131 {
  11194. yyb131 = yyj131 > l
  11195. } else {
  11196. yyb131 = r.CheckBreak()
  11197. }
  11198. if yyb131 {
  11199. z.DecReadArrayEnd()
  11200. return
  11201. }
  11202. z.DecReadArrayElem()
  11203. if r.TryDecodeAsNil() {
  11204. x.TestStrucCommon.F64 = 0
  11205. } else {
  11206. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  11207. }
  11208. yyj131++
  11209. if yyhl131 {
  11210. yyb131 = yyj131 > l
  11211. } else {
  11212. yyb131 = r.CheckBreak()
  11213. }
  11214. if yyb131 {
  11215. z.DecReadArrayEnd()
  11216. return
  11217. }
  11218. z.DecReadArrayElem()
  11219. if r.TryDecodeAsNil() {
  11220. x.TestStrucCommon.F32 = 0
  11221. } else {
  11222. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  11223. }
  11224. yyj131++
  11225. if yyhl131 {
  11226. yyb131 = yyj131 > l
  11227. } else {
  11228. yyb131 = r.CheckBreak()
  11229. }
  11230. if yyb131 {
  11231. z.DecReadArrayEnd()
  11232. return
  11233. }
  11234. z.DecReadArrayElem()
  11235. if r.TryDecodeAsNil() {
  11236. x.TestStrucCommon.B = false
  11237. } else {
  11238. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  11239. }
  11240. yyj131++
  11241. if yyhl131 {
  11242. yyb131 = yyj131 > l
  11243. } else {
  11244. yyb131 = r.CheckBreak()
  11245. }
  11246. if yyb131 {
  11247. z.DecReadArrayEnd()
  11248. return
  11249. }
  11250. z.DecReadArrayElem()
  11251. if r.TryDecodeAsNil() {
  11252. x.TestStrucCommon.By = 0
  11253. } else {
  11254. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  11255. }
  11256. yyj131++
  11257. if yyhl131 {
  11258. yyb131 = yyj131 > l
  11259. } else {
  11260. yyb131 = r.CheckBreak()
  11261. }
  11262. if yyb131 {
  11263. z.DecReadArrayEnd()
  11264. return
  11265. }
  11266. z.DecReadArrayElem()
  11267. if r.TryDecodeAsNil() {
  11268. x.TestStrucCommon.Sslice = nil
  11269. } else {
  11270. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  11271. }
  11272. yyj131++
  11273. if yyhl131 {
  11274. yyb131 = yyj131 > l
  11275. } else {
  11276. yyb131 = r.CheckBreak()
  11277. }
  11278. if yyb131 {
  11279. z.DecReadArrayEnd()
  11280. return
  11281. }
  11282. z.DecReadArrayElem()
  11283. if r.TryDecodeAsNil() {
  11284. x.TestStrucCommon.I64slice = nil
  11285. } else {
  11286. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  11287. }
  11288. yyj131++
  11289. if yyhl131 {
  11290. yyb131 = yyj131 > l
  11291. } else {
  11292. yyb131 = r.CheckBreak()
  11293. }
  11294. if yyb131 {
  11295. z.DecReadArrayEnd()
  11296. return
  11297. }
  11298. z.DecReadArrayElem()
  11299. if r.TryDecodeAsNil() {
  11300. x.TestStrucCommon.I16slice = nil
  11301. } else {
  11302. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  11303. }
  11304. yyj131++
  11305. if yyhl131 {
  11306. yyb131 = yyj131 > l
  11307. } else {
  11308. yyb131 = r.CheckBreak()
  11309. }
  11310. if yyb131 {
  11311. z.DecReadArrayEnd()
  11312. return
  11313. }
  11314. z.DecReadArrayElem()
  11315. if r.TryDecodeAsNil() {
  11316. x.TestStrucCommon.Ui64slice = nil
  11317. } else {
  11318. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  11319. }
  11320. yyj131++
  11321. if yyhl131 {
  11322. yyb131 = yyj131 > l
  11323. } else {
  11324. yyb131 = r.CheckBreak()
  11325. }
  11326. if yyb131 {
  11327. z.DecReadArrayEnd()
  11328. return
  11329. }
  11330. z.DecReadArrayElem()
  11331. if r.TryDecodeAsNil() {
  11332. x.TestStrucCommon.Ui8slice = nil
  11333. } else {
  11334. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  11335. }
  11336. yyj131++
  11337. if yyhl131 {
  11338. yyb131 = yyj131 > l
  11339. } else {
  11340. yyb131 = r.CheckBreak()
  11341. }
  11342. if yyb131 {
  11343. z.DecReadArrayEnd()
  11344. return
  11345. }
  11346. z.DecReadArrayElem()
  11347. if r.TryDecodeAsNil() {
  11348. x.TestStrucCommon.Bslice = nil
  11349. } else {
  11350. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  11351. }
  11352. yyj131++
  11353. if yyhl131 {
  11354. yyb131 = yyj131 > l
  11355. } else {
  11356. yyb131 = r.CheckBreak()
  11357. }
  11358. if yyb131 {
  11359. z.DecReadArrayEnd()
  11360. return
  11361. }
  11362. z.DecReadArrayElem()
  11363. if r.TryDecodeAsNil() {
  11364. x.TestStrucCommon.Byslice = nil
  11365. } else {
  11366. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  11367. }
  11368. yyj131++
  11369. if yyhl131 {
  11370. yyb131 = yyj131 > l
  11371. } else {
  11372. yyb131 = r.CheckBreak()
  11373. }
  11374. if yyb131 {
  11375. z.DecReadArrayEnd()
  11376. return
  11377. }
  11378. z.DecReadArrayElem()
  11379. if r.TryDecodeAsNil() {
  11380. x.TestStrucCommon.BytesSlice = nil
  11381. } else {
  11382. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  11383. }
  11384. yyj131++
  11385. if yyhl131 {
  11386. yyb131 = yyj131 > l
  11387. } else {
  11388. yyb131 = r.CheckBreak()
  11389. }
  11390. if yyb131 {
  11391. z.DecReadArrayEnd()
  11392. return
  11393. }
  11394. z.DecReadArrayElem()
  11395. if r.TryDecodeAsNil() {
  11396. x.TestStrucCommon.Iptrslice = nil
  11397. } else {
  11398. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  11399. }
  11400. yyj131++
  11401. if yyhl131 {
  11402. yyb131 = yyj131 > l
  11403. } else {
  11404. yyb131 = r.CheckBreak()
  11405. }
  11406. if yyb131 {
  11407. z.DecReadArrayEnd()
  11408. return
  11409. }
  11410. z.DecReadArrayElem()
  11411. if r.TryDecodeAsNil() {
  11412. x.TestStrucCommon.WrapSliceInt64 = nil
  11413. } else {
  11414. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  11415. }
  11416. yyj131++
  11417. if yyhl131 {
  11418. yyb131 = yyj131 > l
  11419. } else {
  11420. yyb131 = r.CheckBreak()
  11421. }
  11422. if yyb131 {
  11423. z.DecReadArrayEnd()
  11424. return
  11425. }
  11426. z.DecReadArrayElem()
  11427. if r.TryDecodeAsNil() {
  11428. x.TestStrucCommon.WrapSliceString = nil
  11429. } else {
  11430. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  11431. }
  11432. yyj131++
  11433. if yyhl131 {
  11434. yyb131 = yyj131 > l
  11435. } else {
  11436. yyb131 = r.CheckBreak()
  11437. }
  11438. if yyb131 {
  11439. z.DecReadArrayEnd()
  11440. return
  11441. }
  11442. z.DecReadArrayElem()
  11443. if r.TryDecodeAsNil() {
  11444. x.TestStrucCommon.Msi64 = nil
  11445. } else {
  11446. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  11447. }
  11448. yyj131++
  11449. if yyhl131 {
  11450. yyb131 = yyj131 > l
  11451. } else {
  11452. yyb131 = r.CheckBreak()
  11453. }
  11454. if yyb131 {
  11455. z.DecReadArrayEnd()
  11456. return
  11457. }
  11458. z.DecReadArrayElem()
  11459. if r.TryDecodeAsNil() {
  11460. x.TestStrucCommon.Msbytes = nil
  11461. } else {
  11462. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  11463. }
  11464. yyj131++
  11465. if yyhl131 {
  11466. yyb131 = yyj131 > l
  11467. } else {
  11468. yyb131 = r.CheckBreak()
  11469. }
  11470. if yyb131 {
  11471. z.DecReadArrayEnd()
  11472. return
  11473. }
  11474. z.DecReadArrayElem()
  11475. if r.TryDecodeAsNil() {
  11476. x.TestStrucCommon.Simplef = testSimpleFields{}
  11477. } else {
  11478. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  11479. }
  11480. yyj131++
  11481. if yyhl131 {
  11482. yyb131 = yyj131 > l
  11483. } else {
  11484. yyb131 = r.CheckBreak()
  11485. }
  11486. if yyb131 {
  11487. z.DecReadArrayEnd()
  11488. return
  11489. }
  11490. z.DecReadArrayElem()
  11491. if r.TryDecodeAsNil() {
  11492. x.TestStrucCommon.SstrUi64T = nil
  11493. } else {
  11494. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  11495. }
  11496. yyj131++
  11497. if yyhl131 {
  11498. yyb131 = yyj131 > l
  11499. } else {
  11500. yyb131 = r.CheckBreak()
  11501. }
  11502. if yyb131 {
  11503. z.DecReadArrayEnd()
  11504. return
  11505. }
  11506. z.DecReadArrayElem()
  11507. if r.TryDecodeAsNil() {
  11508. x.TestStrucCommon.MstrUi64T = nil
  11509. } else {
  11510. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  11511. }
  11512. yyj131++
  11513. if yyhl131 {
  11514. yyb131 = yyj131 > l
  11515. } else {
  11516. yyb131 = r.CheckBreak()
  11517. }
  11518. if yyb131 {
  11519. z.DecReadArrayEnd()
  11520. return
  11521. }
  11522. z.DecReadArrayElem()
  11523. if r.TryDecodeAsNil() {
  11524. x.TestStrucCommon.AnonInTestStruc.AS = ""
  11525. } else {
  11526. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  11527. }
  11528. yyj131++
  11529. if yyhl131 {
  11530. yyb131 = yyj131 > l
  11531. } else {
  11532. yyb131 = r.CheckBreak()
  11533. }
  11534. if yyb131 {
  11535. z.DecReadArrayEnd()
  11536. return
  11537. }
  11538. z.DecReadArrayElem()
  11539. if r.TryDecodeAsNil() {
  11540. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  11541. } else {
  11542. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  11543. }
  11544. yyj131++
  11545. if yyhl131 {
  11546. yyb131 = yyj131 > l
  11547. } else {
  11548. yyb131 = r.CheckBreak()
  11549. }
  11550. if yyb131 {
  11551. z.DecReadArrayEnd()
  11552. return
  11553. }
  11554. z.DecReadArrayElem()
  11555. if r.TryDecodeAsNil() {
  11556. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  11557. } else {
  11558. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11559. }
  11560. yyj131++
  11561. if yyhl131 {
  11562. yyb131 = yyj131 > l
  11563. } else {
  11564. yyb131 = r.CheckBreak()
  11565. }
  11566. if yyb131 {
  11567. z.DecReadArrayEnd()
  11568. return
  11569. }
  11570. z.DecReadArrayElem()
  11571. if r.TryDecodeAsNil() {
  11572. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  11573. } else {
  11574. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  11575. }
  11576. yyj131++
  11577. if yyhl131 {
  11578. yyb131 = yyj131 > l
  11579. } else {
  11580. yyb131 = r.CheckBreak()
  11581. }
  11582. if yyb131 {
  11583. z.DecReadArrayEnd()
  11584. return
  11585. }
  11586. z.DecReadArrayElem()
  11587. if r.TryDecodeAsNil() {
  11588. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  11589. } else {
  11590. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  11591. }
  11592. yyj131++
  11593. if yyhl131 {
  11594. yyb131 = yyj131 > l
  11595. } else {
  11596. yyb131 = r.CheckBreak()
  11597. }
  11598. if yyb131 {
  11599. z.DecReadArrayEnd()
  11600. return
  11601. }
  11602. z.DecReadArrayElem()
  11603. if r.TryDecodeAsNil() {
  11604. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  11605. } else {
  11606. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  11607. }
  11608. yyj131++
  11609. if yyhl131 {
  11610. yyb131 = yyj131 > l
  11611. } else {
  11612. yyb131 = r.CheckBreak()
  11613. }
  11614. if yyb131 {
  11615. z.DecReadArrayEnd()
  11616. return
  11617. }
  11618. z.DecReadArrayElem()
  11619. if r.TryDecodeAsNil() {
  11620. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  11621. } else {
  11622. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  11623. }
  11624. yyj131++
  11625. if yyhl131 {
  11626. yyb131 = yyj131 > l
  11627. } else {
  11628. yyb131 = r.CheckBreak()
  11629. }
  11630. if yyb131 {
  11631. z.DecReadArrayEnd()
  11632. return
  11633. }
  11634. z.DecReadArrayElem()
  11635. if r.TryDecodeAsNil() {
  11636. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  11637. } else {
  11638. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  11639. }
  11640. yyj131++
  11641. if yyhl131 {
  11642. yyb131 = yyj131 > l
  11643. } else {
  11644. yyb131 = r.CheckBreak()
  11645. }
  11646. if yyb131 {
  11647. z.DecReadArrayEnd()
  11648. return
  11649. }
  11650. z.DecReadArrayElem()
  11651. if r.TryDecodeAsNil() {
  11652. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  11653. } else {
  11654. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  11655. }
  11656. yyj131++
  11657. if yyhl131 {
  11658. yyb131 = yyj131 > l
  11659. } else {
  11660. yyb131 = r.CheckBreak()
  11661. }
  11662. if yyb131 {
  11663. z.DecReadArrayEnd()
  11664. return
  11665. }
  11666. z.DecReadArrayElem()
  11667. if r.TryDecodeAsNil() {
  11668. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  11669. } else {
  11670. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  11671. }
  11672. yyj131++
  11673. if yyhl131 {
  11674. yyb131 = yyj131 > l
  11675. } else {
  11676. yyb131 = r.CheckBreak()
  11677. }
  11678. if yyb131 {
  11679. z.DecReadArrayEnd()
  11680. return
  11681. }
  11682. z.DecReadArrayElem()
  11683. if r.TryDecodeAsNil() {
  11684. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  11685. } else {
  11686. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  11687. }
  11688. yyj131++
  11689. if yyhl131 {
  11690. yyb131 = yyj131 > l
  11691. } else {
  11692. yyb131 = r.CheckBreak()
  11693. }
  11694. if yyb131 {
  11695. z.DecReadArrayEnd()
  11696. return
  11697. }
  11698. z.DecReadArrayElem()
  11699. if r.TryDecodeAsNil() {
  11700. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  11701. } else {
  11702. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  11703. }
  11704. yyj131++
  11705. if yyhl131 {
  11706. yyb131 = yyj131 > l
  11707. } else {
  11708. yyb131 = r.CheckBreak()
  11709. }
  11710. if yyb131 {
  11711. z.DecReadArrayEnd()
  11712. return
  11713. }
  11714. z.DecReadArrayElem()
  11715. if r.TryDecodeAsNil() {
  11716. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  11717. } else {
  11718. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  11719. }
  11720. yyj131++
  11721. if yyhl131 {
  11722. yyb131 = yyj131 > l
  11723. } else {
  11724. yyb131 = r.CheckBreak()
  11725. }
  11726. if yyb131 {
  11727. z.DecReadArrayEnd()
  11728. return
  11729. }
  11730. z.DecReadArrayElem()
  11731. if r.TryDecodeAsNil() {
  11732. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  11733. } else {
  11734. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  11735. }
  11736. yyj131++
  11737. if yyhl131 {
  11738. yyb131 = yyj131 > l
  11739. } else {
  11740. yyb131 = r.CheckBreak()
  11741. }
  11742. if yyb131 {
  11743. z.DecReadArrayEnd()
  11744. return
  11745. }
  11746. z.DecReadArrayElem()
  11747. if r.TryDecodeAsNil() {
  11748. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  11749. } else {
  11750. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  11751. }
  11752. yyj131++
  11753. if yyhl131 {
  11754. yyb131 = yyj131 > l
  11755. } else {
  11756. yyb131 = r.CheckBreak()
  11757. }
  11758. if yyb131 {
  11759. z.DecReadArrayEnd()
  11760. return
  11761. }
  11762. z.DecReadArrayElem()
  11763. if r.TryDecodeAsNil() {
  11764. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  11765. } else {
  11766. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  11767. }
  11768. yyj131++
  11769. if yyhl131 {
  11770. yyb131 = yyj131 > l
  11771. } else {
  11772. yyb131 = r.CheckBreak()
  11773. }
  11774. if yyb131 {
  11775. z.DecReadArrayEnd()
  11776. return
  11777. }
  11778. z.DecReadArrayElem()
  11779. if r.TryDecodeAsNil() {
  11780. x.TestStrucCommon.Nmap = nil
  11781. } else {
  11782. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  11783. }
  11784. yyj131++
  11785. if yyhl131 {
  11786. yyb131 = yyj131 > l
  11787. } else {
  11788. yyb131 = r.CheckBreak()
  11789. }
  11790. if yyb131 {
  11791. z.DecReadArrayEnd()
  11792. return
  11793. }
  11794. z.DecReadArrayElem()
  11795. if r.TryDecodeAsNil() {
  11796. x.TestStrucCommon.Nslice = nil
  11797. } else {
  11798. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  11799. }
  11800. yyj131++
  11801. if yyhl131 {
  11802. yyb131 = yyj131 > l
  11803. } else {
  11804. yyb131 = r.CheckBreak()
  11805. }
  11806. if yyb131 {
  11807. z.DecReadArrayEnd()
  11808. return
  11809. }
  11810. z.DecReadArrayElem()
  11811. if r.TryDecodeAsNil() {
  11812. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  11813. x.TestStrucCommon.Nint64 = nil
  11814. }
  11815. } else {
  11816. if x.TestStrucCommon.Nint64 == nil {
  11817. x.TestStrucCommon.Nint64 = new(int64)
  11818. }
  11819. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  11820. }
  11821. yyj131++
  11822. if yyhl131 {
  11823. yyb131 = yyj131 > l
  11824. } else {
  11825. yyb131 = r.CheckBreak()
  11826. }
  11827. if yyb131 {
  11828. z.DecReadArrayEnd()
  11829. return
  11830. }
  11831. z.DecReadArrayElem()
  11832. if r.TryDecodeAsNil() {
  11833. x.Chstr = nil
  11834. } else {
  11835. h.decChanstring((*chan string)(&x.Chstr), d)
  11836. }
  11837. yyj131++
  11838. if yyhl131 {
  11839. yyb131 = yyj131 > l
  11840. } else {
  11841. yyb131 = r.CheckBreak()
  11842. }
  11843. if yyb131 {
  11844. z.DecReadArrayEnd()
  11845. return
  11846. }
  11847. z.DecReadArrayElem()
  11848. if r.TryDecodeAsNil() {
  11849. x.Mis = nil
  11850. } else {
  11851. z.F.DecMapIntStringX(&x.Mis, d)
  11852. }
  11853. yyj131++
  11854. if yyhl131 {
  11855. yyb131 = yyj131 > l
  11856. } else {
  11857. yyb131 = r.CheckBreak()
  11858. }
  11859. if yyb131 {
  11860. z.DecReadArrayEnd()
  11861. return
  11862. }
  11863. z.DecReadArrayElem()
  11864. if r.TryDecodeAsNil() {
  11865. x.Mbu64 = nil
  11866. } else {
  11867. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  11868. }
  11869. yyj131++
  11870. if yyhl131 {
  11871. yyb131 = yyj131 > l
  11872. } else {
  11873. yyb131 = r.CheckBreak()
  11874. }
  11875. if yyb131 {
  11876. z.DecReadArrayEnd()
  11877. return
  11878. }
  11879. z.DecReadArrayElem()
  11880. if r.TryDecodeAsNil() {
  11881. x.Miwu64s = nil
  11882. } else {
  11883. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  11884. }
  11885. yyj131++
  11886. if yyhl131 {
  11887. yyb131 = yyj131 > l
  11888. } else {
  11889. yyb131 = r.CheckBreak()
  11890. }
  11891. if yyb131 {
  11892. z.DecReadArrayEnd()
  11893. return
  11894. }
  11895. z.DecReadArrayElem()
  11896. if r.TryDecodeAsNil() {
  11897. x.Mfwss = nil
  11898. } else {
  11899. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  11900. }
  11901. yyj131++
  11902. if yyhl131 {
  11903. yyb131 = yyj131 > l
  11904. } else {
  11905. yyb131 = r.CheckBreak()
  11906. }
  11907. if yyb131 {
  11908. z.DecReadArrayEnd()
  11909. return
  11910. }
  11911. z.DecReadArrayElem()
  11912. if r.TryDecodeAsNil() {
  11913. x.Mf32wss = nil
  11914. } else {
  11915. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  11916. }
  11917. yyj131++
  11918. if yyhl131 {
  11919. yyb131 = yyj131 > l
  11920. } else {
  11921. yyb131 = r.CheckBreak()
  11922. }
  11923. if yyb131 {
  11924. z.DecReadArrayEnd()
  11925. return
  11926. }
  11927. z.DecReadArrayElem()
  11928. if r.TryDecodeAsNil() {
  11929. x.Mui2wss = nil
  11930. } else {
  11931. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  11932. }
  11933. yyj131++
  11934. if yyhl131 {
  11935. yyb131 = yyj131 > l
  11936. } else {
  11937. yyb131 = r.CheckBreak()
  11938. }
  11939. if yyb131 {
  11940. z.DecReadArrayEnd()
  11941. return
  11942. }
  11943. z.DecReadArrayElem()
  11944. if r.TryDecodeAsNil() {
  11945. x.Msu2wss = nil
  11946. } else {
  11947. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  11948. }
  11949. yyj131++
  11950. if yyhl131 {
  11951. yyb131 = yyj131 > l
  11952. } else {
  11953. yyb131 = r.CheckBreak()
  11954. }
  11955. if yyb131 {
  11956. z.DecReadArrayEnd()
  11957. return
  11958. }
  11959. z.DecReadArrayElem()
  11960. if r.TryDecodeAsNil() {
  11961. x.Ci64 = 0
  11962. } else {
  11963. x.Ci64.CodecDecodeSelf(d)
  11964. }
  11965. yyj131++
  11966. if yyhl131 {
  11967. yyb131 = yyj131 > l
  11968. } else {
  11969. yyb131 = r.CheckBreak()
  11970. }
  11971. if yyb131 {
  11972. z.DecReadArrayEnd()
  11973. return
  11974. }
  11975. z.DecReadArrayElem()
  11976. if r.TryDecodeAsNil() {
  11977. x.Swrapbytes = nil
  11978. } else {
  11979. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  11980. }
  11981. yyj131++
  11982. if yyhl131 {
  11983. yyb131 = yyj131 > l
  11984. } else {
  11985. yyb131 = r.CheckBreak()
  11986. }
  11987. if yyb131 {
  11988. z.DecReadArrayEnd()
  11989. return
  11990. }
  11991. z.DecReadArrayElem()
  11992. if r.TryDecodeAsNil() {
  11993. x.Swrapuint8 = nil
  11994. } else {
  11995. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  11996. }
  11997. yyj131++
  11998. if yyhl131 {
  11999. yyb131 = yyj131 > l
  12000. } else {
  12001. yyb131 = r.CheckBreak()
  12002. }
  12003. if yyb131 {
  12004. z.DecReadArrayEnd()
  12005. return
  12006. }
  12007. z.DecReadArrayElem()
  12008. if r.TryDecodeAsNil() {
  12009. x.ArrStrUi64T = [4]stringUint64T{}
  12010. } else {
  12011. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  12012. }
  12013. yyj131++
  12014. if yyhl131 {
  12015. yyb131 = yyj131 > l
  12016. } else {
  12017. yyb131 = r.CheckBreak()
  12018. }
  12019. if yyb131 {
  12020. z.DecReadArrayEnd()
  12021. return
  12022. }
  12023. z.DecReadArrayElem()
  12024. if r.TryDecodeAsNil() {
  12025. x.Ui64array = [4]uint64{}
  12026. } else {
  12027. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  12028. }
  12029. yyj131++
  12030. if yyhl131 {
  12031. yyb131 = yyj131 > l
  12032. } else {
  12033. yyb131 = r.CheckBreak()
  12034. }
  12035. if yyb131 {
  12036. z.DecReadArrayEnd()
  12037. return
  12038. }
  12039. z.DecReadArrayElem()
  12040. if r.TryDecodeAsNil() {
  12041. x.Ui64slicearray = nil
  12042. } else {
  12043. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  12044. }
  12045. yyj131++
  12046. if yyhl131 {
  12047. yyb131 = yyj131 > l
  12048. } else {
  12049. yyb131 = r.CheckBreak()
  12050. }
  12051. if yyb131 {
  12052. z.DecReadArrayEnd()
  12053. return
  12054. }
  12055. z.DecReadArrayElem()
  12056. if r.TryDecodeAsNil() {
  12057. x.SintfAarray = nil
  12058. } else {
  12059. z.F.DecSliceIntfX(&x.SintfAarray, d)
  12060. }
  12061. yyj131++
  12062. if yyhl131 {
  12063. yyb131 = yyj131 > l
  12064. } else {
  12065. yyb131 = r.CheckBreak()
  12066. }
  12067. if yyb131 {
  12068. z.DecReadArrayEnd()
  12069. return
  12070. }
  12071. z.DecReadArrayElem()
  12072. if r.TryDecodeAsNil() {
  12073. x.MstrUi64TSelf = nil
  12074. } else {
  12075. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  12076. }
  12077. yyj131++
  12078. if yyhl131 {
  12079. yyb131 = yyj131 > l
  12080. } else {
  12081. yyb131 = r.CheckBreak()
  12082. }
  12083. if yyb131 {
  12084. z.DecReadArrayEnd()
  12085. return
  12086. }
  12087. z.DecReadArrayElem()
  12088. if r.TryDecodeAsNil() {
  12089. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12090. x.AnonInTestStrucIntf.Islice = nil
  12091. }
  12092. } else {
  12093. if x.AnonInTestStrucIntf == nil {
  12094. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12095. }
  12096. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  12097. }
  12098. yyj131++
  12099. if yyhl131 {
  12100. yyb131 = yyj131 > l
  12101. } else {
  12102. yyb131 = r.CheckBreak()
  12103. }
  12104. if yyb131 {
  12105. z.DecReadArrayEnd()
  12106. return
  12107. }
  12108. z.DecReadArrayElem()
  12109. if r.TryDecodeAsNil() {
  12110. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12111. x.AnonInTestStrucIntf.Ms = nil
  12112. }
  12113. } else {
  12114. if x.AnonInTestStrucIntf == nil {
  12115. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12116. }
  12117. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  12118. }
  12119. yyj131++
  12120. if yyhl131 {
  12121. yyb131 = yyj131 > l
  12122. } else {
  12123. yyb131 = r.CheckBreak()
  12124. }
  12125. if yyb131 {
  12126. z.DecReadArrayEnd()
  12127. return
  12128. }
  12129. z.DecReadArrayElem()
  12130. if r.TryDecodeAsNil() {
  12131. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12132. x.AnonInTestStrucIntf.Nintf = nil
  12133. }
  12134. } else {
  12135. if x.AnonInTestStrucIntf == nil {
  12136. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12137. }
  12138. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  12139. }
  12140. yyj131++
  12141. if yyhl131 {
  12142. yyb131 = yyj131 > l
  12143. } else {
  12144. yyb131 = r.CheckBreak()
  12145. }
  12146. if yyb131 {
  12147. z.DecReadArrayEnd()
  12148. return
  12149. }
  12150. z.DecReadArrayElem()
  12151. if r.TryDecodeAsNil() {
  12152. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12153. x.AnonInTestStrucIntf.T = time.Time{}
  12154. }
  12155. } else {
  12156. if x.AnonInTestStrucIntf == nil {
  12157. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12158. }
  12159. if !z.DecBasicHandle().TimeNotBuiltin {
  12160. x.AnonInTestStrucIntf.T = r.DecodeTime()
  12161. } else if yyxt249 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt249 != nil {
  12162. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt249)
  12163. } else if z.DecBinary() {
  12164. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  12165. } else if !z.DecBinary() && z.IsJSONHandle() {
  12166. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  12167. } else {
  12168. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  12169. }
  12170. }
  12171. yyj131++
  12172. if yyhl131 {
  12173. yyb131 = yyj131 > l
  12174. } else {
  12175. yyb131 = r.CheckBreak()
  12176. }
  12177. if yyb131 {
  12178. z.DecReadArrayEnd()
  12179. return
  12180. }
  12181. z.DecReadArrayElem()
  12182. if r.TryDecodeAsNil() {
  12183. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  12184. x.AnonInTestStrucIntf.Tptr = nil
  12185. }
  12186. } else {
  12187. if x.AnonInTestStrucIntf == nil {
  12188. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12189. }
  12190. if x.AnonInTestStrucIntf.Tptr == nil {
  12191. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  12192. }
  12193. if !z.DecBasicHandle().TimeNotBuiltin {
  12194. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  12195. } else if yyxt251 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt251 != nil {
  12196. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt251)
  12197. } else if z.DecBinary() {
  12198. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  12199. } else if !z.DecBinary() && z.IsJSONHandle() {
  12200. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  12201. } else {
  12202. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  12203. }
  12204. }
  12205. yyj131++
  12206. if yyhl131 {
  12207. yyb131 = yyj131 > l
  12208. } else {
  12209. yyb131 = r.CheckBreak()
  12210. }
  12211. if yyb131 {
  12212. z.DecReadArrayEnd()
  12213. return
  12214. }
  12215. z.DecReadArrayElem()
  12216. if r.TryDecodeAsNil() {
  12217. x.Mtsptr = nil
  12218. } else {
  12219. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  12220. }
  12221. yyj131++
  12222. if yyhl131 {
  12223. yyb131 = yyj131 > l
  12224. } else {
  12225. yyb131 = r.CheckBreak()
  12226. }
  12227. if yyb131 {
  12228. z.DecReadArrayEnd()
  12229. return
  12230. }
  12231. z.DecReadArrayElem()
  12232. if r.TryDecodeAsNil() {
  12233. x.Mts = nil
  12234. } else {
  12235. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  12236. }
  12237. yyj131++
  12238. if yyhl131 {
  12239. yyb131 = yyj131 > l
  12240. } else {
  12241. yyb131 = r.CheckBreak()
  12242. }
  12243. if yyb131 {
  12244. z.DecReadArrayEnd()
  12245. return
  12246. }
  12247. z.DecReadArrayElem()
  12248. if r.TryDecodeAsNil() {
  12249. x.Its = nil
  12250. } else {
  12251. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  12252. }
  12253. yyj131++
  12254. if yyhl131 {
  12255. yyb131 = yyj131 > l
  12256. } else {
  12257. yyb131 = r.CheckBreak()
  12258. }
  12259. if yyb131 {
  12260. z.DecReadArrayEnd()
  12261. return
  12262. }
  12263. z.DecReadArrayElem()
  12264. if r.TryDecodeAsNil() {
  12265. if x.Nteststruc != nil { // remove the if-true
  12266. x.Nteststruc = nil
  12267. }
  12268. } else {
  12269. if x.Nteststruc == nil {
  12270. x.Nteststruc = new(TestStrucFlex)
  12271. }
  12272. x.Nteststruc.CodecDecodeSelf(d)
  12273. }
  12274. for {
  12275. yyj131++
  12276. if yyhl131 {
  12277. yyb131 = yyj131 > l
  12278. } else {
  12279. yyb131 = r.CheckBreak()
  12280. }
  12281. if yyb131 {
  12282. break
  12283. }
  12284. z.DecReadArrayElem()
  12285. z.DecStructFieldNotFound(yyj131-1, "")
  12286. }
  12287. z.DecReadArrayEnd()
  12288. }
  12289. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  12290. var h codecSelfer19780
  12291. z, r := GenHelperEncoder(e)
  12292. _, _, _ = h, z, r
  12293. if v == nil {
  12294. r.EncodeNil()
  12295. return
  12296. }
  12297. z.EncWriteArrayStart(len(v))
  12298. for _, yyv1 := range v {
  12299. z.EncWriteArrayElem()
  12300. r.EncodeUint(uint64(yyv1))
  12301. }
  12302. z.EncWriteArrayEnd()
  12303. }
  12304. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  12305. var h codecSelfer19780
  12306. z, r := GenHelperDecoder(d)
  12307. _, _, _ = h, z, r
  12308. yyv1 := *v
  12309. yyh1, yyl1 := z.DecSliceHelperStart()
  12310. var yyc1 bool
  12311. _ = yyc1
  12312. if yyl1 == 0 {
  12313. if yyv1 == nil {
  12314. yyv1 = []uint64{}
  12315. yyc1 = true
  12316. } else if len(yyv1) != 0 {
  12317. yyv1 = yyv1[:0]
  12318. yyc1 = true
  12319. }
  12320. } else {
  12321. yyhl1 := yyl1 > 0
  12322. var yyrl1 int
  12323. _ = yyrl1
  12324. if yyhl1 {
  12325. if yyl1 > cap(yyv1) {
  12326. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12327. if yyrl1 <= cap(yyv1) {
  12328. yyv1 = yyv1[:yyrl1]
  12329. } else {
  12330. yyv1 = make([]uint64, yyrl1)
  12331. }
  12332. yyc1 = true
  12333. } else if yyl1 != len(yyv1) {
  12334. yyv1 = yyv1[:yyl1]
  12335. yyc1 = true
  12336. }
  12337. }
  12338. var yyj1 int
  12339. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12340. if yyj1 == 0 && yyv1 == nil {
  12341. if yyhl1 {
  12342. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12343. } else {
  12344. yyrl1 = 8
  12345. }
  12346. yyv1 = make([]uint64, yyrl1)
  12347. yyc1 = true
  12348. }
  12349. yyh1.ElemContainerState(yyj1)
  12350. var yydb1 bool
  12351. if yyj1 >= len(yyv1) {
  12352. yyv1 = append(yyv1, 0)
  12353. yyc1 = true
  12354. }
  12355. if yydb1 {
  12356. z.DecSwallow()
  12357. } else {
  12358. if r.TryDecodeAsNil() {
  12359. yyv1[yyj1] = 0
  12360. } else {
  12361. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  12362. }
  12363. }
  12364. }
  12365. if yyj1 < len(yyv1) {
  12366. yyv1 = yyv1[:yyj1]
  12367. yyc1 = true
  12368. } else if yyj1 == 0 && yyv1 == nil {
  12369. yyv1 = make([]uint64, 0)
  12370. yyc1 = true
  12371. }
  12372. }
  12373. yyh1.End()
  12374. if yyc1 {
  12375. *v = yyv1
  12376. }
  12377. }
  12378. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  12379. var h codecSelfer19780
  12380. z, r := GenHelperEncoder(e)
  12381. _, _, _ = h, z, r
  12382. if v == nil {
  12383. r.EncodeNil()
  12384. return
  12385. }
  12386. z.EncWriteArrayStart(len(v))
  12387. for _, yyv1 := range v {
  12388. z.EncWriteArrayElem()
  12389. if z.EncBasicHandle().StringToRaw {
  12390. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12391. } else {
  12392. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12393. }
  12394. }
  12395. z.EncWriteArrayEnd()
  12396. }
  12397. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  12398. var h codecSelfer19780
  12399. z, r := GenHelperDecoder(d)
  12400. _, _, _ = h, z, r
  12401. yyv1 := *v
  12402. yyh1, yyl1 := z.DecSliceHelperStart()
  12403. var yyc1 bool
  12404. _ = yyc1
  12405. if yyl1 == 0 {
  12406. if yyv1 == nil {
  12407. yyv1 = []string{}
  12408. yyc1 = true
  12409. } else if len(yyv1) != 0 {
  12410. yyv1 = yyv1[:0]
  12411. yyc1 = true
  12412. }
  12413. } else {
  12414. yyhl1 := yyl1 > 0
  12415. var yyrl1 int
  12416. _ = yyrl1
  12417. if yyhl1 {
  12418. if yyl1 > cap(yyv1) {
  12419. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12420. if yyrl1 <= cap(yyv1) {
  12421. yyv1 = yyv1[:yyrl1]
  12422. } else {
  12423. yyv1 = make([]string, yyrl1)
  12424. }
  12425. yyc1 = true
  12426. } else if yyl1 != len(yyv1) {
  12427. yyv1 = yyv1[:yyl1]
  12428. yyc1 = true
  12429. }
  12430. }
  12431. var yyj1 int
  12432. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12433. if yyj1 == 0 && yyv1 == nil {
  12434. if yyhl1 {
  12435. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12436. } else {
  12437. yyrl1 = 8
  12438. }
  12439. yyv1 = make([]string, yyrl1)
  12440. yyc1 = true
  12441. }
  12442. yyh1.ElemContainerState(yyj1)
  12443. var yydb1 bool
  12444. if yyj1 >= len(yyv1) {
  12445. yyv1 = append(yyv1, "")
  12446. yyc1 = true
  12447. }
  12448. if yydb1 {
  12449. z.DecSwallow()
  12450. } else {
  12451. if r.TryDecodeAsNil() {
  12452. yyv1[yyj1] = ""
  12453. } else {
  12454. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  12455. }
  12456. }
  12457. }
  12458. if yyj1 < len(yyv1) {
  12459. yyv1 = yyv1[:yyj1]
  12460. yyc1 = true
  12461. } else if yyj1 == 0 && yyv1 == nil {
  12462. yyv1 = make([]string, 0)
  12463. yyc1 = true
  12464. }
  12465. }
  12466. yyh1.End()
  12467. if yyc1 {
  12468. *v = yyv1
  12469. }
  12470. }
  12471. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  12472. var h codecSelfer19780
  12473. z, r := GenHelperEncoder(e)
  12474. _, _, _ = h, z, r
  12475. if v == nil {
  12476. r.EncodeNil()
  12477. return
  12478. }
  12479. z.EncWriteArrayStart(len(v))
  12480. for _, yyv1 := range v {
  12481. z.EncWriteArrayElem()
  12482. yyv1.CodecEncodeSelf(e)
  12483. }
  12484. z.EncWriteArrayEnd()
  12485. }
  12486. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  12487. var h codecSelfer19780
  12488. z, r := GenHelperDecoder(d)
  12489. _, _, _ = h, z, r
  12490. yyv1 := *v
  12491. yyh1, yyl1 := z.DecSliceHelperStart()
  12492. var yyc1 bool
  12493. _ = yyc1
  12494. if yyl1 == 0 {
  12495. if yyv1 == nil {
  12496. yyv1 = []wrapUint64{}
  12497. yyc1 = true
  12498. } else if len(yyv1) != 0 {
  12499. yyv1 = yyv1[:0]
  12500. yyc1 = true
  12501. }
  12502. } else {
  12503. yyhl1 := yyl1 > 0
  12504. var yyrl1 int
  12505. _ = yyrl1
  12506. if yyhl1 {
  12507. if yyl1 > cap(yyv1) {
  12508. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12509. if yyrl1 <= cap(yyv1) {
  12510. yyv1 = yyv1[:yyrl1]
  12511. } else {
  12512. yyv1 = make([]wrapUint64, yyrl1)
  12513. }
  12514. yyc1 = true
  12515. } else if yyl1 != len(yyv1) {
  12516. yyv1 = yyv1[:yyl1]
  12517. yyc1 = true
  12518. }
  12519. }
  12520. var yyj1 int
  12521. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12522. if yyj1 == 0 && yyv1 == nil {
  12523. if yyhl1 {
  12524. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12525. } else {
  12526. yyrl1 = 8
  12527. }
  12528. yyv1 = make([]wrapUint64, yyrl1)
  12529. yyc1 = true
  12530. }
  12531. yyh1.ElemContainerState(yyj1)
  12532. var yydb1 bool
  12533. if yyj1 >= len(yyv1) {
  12534. yyv1 = append(yyv1, 0)
  12535. yyc1 = true
  12536. }
  12537. if yydb1 {
  12538. z.DecSwallow()
  12539. } else {
  12540. if r.TryDecodeAsNil() {
  12541. yyv1[yyj1] = 0
  12542. } else {
  12543. yyv1[yyj1].CodecDecodeSelf(d)
  12544. }
  12545. }
  12546. }
  12547. if yyj1 < len(yyv1) {
  12548. yyv1 = yyv1[:yyj1]
  12549. yyc1 = true
  12550. } else if yyj1 == 0 && yyv1 == nil {
  12551. yyv1 = make([]wrapUint64, 0)
  12552. yyc1 = true
  12553. }
  12554. }
  12555. yyh1.End()
  12556. if yyc1 {
  12557. *v = yyv1
  12558. }
  12559. }
  12560. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  12561. var h codecSelfer19780
  12562. z, r := GenHelperEncoder(e)
  12563. _, _, _ = h, z, r
  12564. if v == nil {
  12565. r.EncodeNil()
  12566. return
  12567. }
  12568. z.EncWriteArrayStart(len(v))
  12569. for _, yyv1 := range v {
  12570. z.EncWriteArrayElem()
  12571. yyv1.CodecEncodeSelf(e)
  12572. }
  12573. z.EncWriteArrayEnd()
  12574. }
  12575. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  12576. var h codecSelfer19780
  12577. z, r := GenHelperDecoder(d)
  12578. _, _, _ = h, z, r
  12579. yyv1 := *v
  12580. yyh1, yyl1 := z.DecSliceHelperStart()
  12581. var yyc1 bool
  12582. _ = yyc1
  12583. if yyl1 == 0 {
  12584. if yyv1 == nil {
  12585. yyv1 = []wrapString{}
  12586. yyc1 = true
  12587. } else if len(yyv1) != 0 {
  12588. yyv1 = yyv1[:0]
  12589. yyc1 = true
  12590. }
  12591. } else {
  12592. yyhl1 := yyl1 > 0
  12593. var yyrl1 int
  12594. _ = yyrl1
  12595. if yyhl1 {
  12596. if yyl1 > cap(yyv1) {
  12597. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12598. if yyrl1 <= cap(yyv1) {
  12599. yyv1 = yyv1[:yyrl1]
  12600. } else {
  12601. yyv1 = make([]wrapString, yyrl1)
  12602. }
  12603. yyc1 = true
  12604. } else if yyl1 != len(yyv1) {
  12605. yyv1 = yyv1[:yyl1]
  12606. yyc1 = true
  12607. }
  12608. }
  12609. var yyj1 int
  12610. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12611. if yyj1 == 0 && yyv1 == nil {
  12612. if yyhl1 {
  12613. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12614. } else {
  12615. yyrl1 = 8
  12616. }
  12617. yyv1 = make([]wrapString, yyrl1)
  12618. yyc1 = true
  12619. }
  12620. yyh1.ElemContainerState(yyj1)
  12621. var yydb1 bool
  12622. if yyj1 >= len(yyv1) {
  12623. yyv1 = append(yyv1, "")
  12624. yyc1 = true
  12625. }
  12626. if yydb1 {
  12627. z.DecSwallow()
  12628. } else {
  12629. if r.TryDecodeAsNil() {
  12630. yyv1[yyj1] = ""
  12631. } else {
  12632. yyv1[yyj1].CodecDecodeSelf(d)
  12633. }
  12634. }
  12635. }
  12636. if yyj1 < len(yyv1) {
  12637. yyv1 = yyv1[:yyj1]
  12638. yyc1 = true
  12639. } else if yyj1 == 0 && yyv1 == nil {
  12640. yyv1 = make([]wrapString, 0)
  12641. yyc1 = true
  12642. }
  12643. }
  12644. yyh1.End()
  12645. if yyc1 {
  12646. *v = yyv1
  12647. }
  12648. }
  12649. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  12650. var h codecSelfer19780
  12651. z, r := GenHelperEncoder(e)
  12652. _, _, _ = h, z, r
  12653. if v == nil {
  12654. r.EncodeNil()
  12655. return
  12656. }
  12657. z.EncWriteMapStart(len(v))
  12658. for yyk1, yyv1 := range v {
  12659. z.EncWriteMapElemKey()
  12660. if z.EncBasicHandle().StringToRaw {
  12661. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12662. } else {
  12663. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12664. }
  12665. z.EncWriteMapElemValue()
  12666. r.EncodeUint(uint64(yyv1))
  12667. }
  12668. z.EncWriteMapEnd()
  12669. }
  12670. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  12671. var h codecSelfer19780
  12672. z, r := GenHelperDecoder(d)
  12673. _, _, _ = h, z, r
  12674. yyv1 := *v
  12675. yyl1 := z.DecReadMapStart()
  12676. yybh1 := z.DecBasicHandle()
  12677. if yyv1 == nil {
  12678. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  12679. yyv1 = make(map[string]uint16, yyrl1)
  12680. *v = yyv1
  12681. }
  12682. var yymk1 string
  12683. var yymv1 uint16
  12684. var yymg1, yymdn1 bool
  12685. if yybh1.MapValueReset {
  12686. }
  12687. if yyl1 != 0 {
  12688. yyhl1 := yyl1 > 0
  12689. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12690. z.DecReadMapElemKey()
  12691. if r.TryDecodeAsNil() {
  12692. yymk1 = ""
  12693. } else {
  12694. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12695. }
  12696. if yymg1 {
  12697. yymv1 = yyv1[yymk1]
  12698. }
  12699. z.DecReadMapElemValue()
  12700. yymdn1 = false
  12701. if r.TryDecodeAsNil() {
  12702. yymdn1 = true
  12703. } else {
  12704. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12705. }
  12706. if yymdn1 {
  12707. if yybh1.DeleteOnNilMapValue {
  12708. delete(yyv1, yymk1)
  12709. } else {
  12710. yyv1[yymk1] = 0
  12711. }
  12712. } else if yyv1 != nil {
  12713. yyv1[yymk1] = yymv1
  12714. }
  12715. }
  12716. } // else len==0: TODO: Should we clear map entries?
  12717. z.DecReadMapEnd()
  12718. }
  12719. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  12720. var h codecSelfer19780
  12721. z, r := GenHelperEncoder(e)
  12722. _, _, _ = h, z, r
  12723. if v == nil {
  12724. r.EncodeNil()
  12725. return
  12726. }
  12727. z.EncWriteArrayStart(len(v))
  12728. for _, yyv1 := range v {
  12729. z.EncWriteArrayElem()
  12730. r.EncodeInt(int64(yyv1))
  12731. }
  12732. z.EncWriteArrayEnd()
  12733. }
  12734. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  12735. var h codecSelfer19780
  12736. z, r := GenHelperDecoder(d)
  12737. _, _, _ = h, z, r
  12738. yyv1 := v
  12739. yyh1, yyl1 := z.DecSliceHelperStart()
  12740. if yyl1 == 0 {
  12741. } else {
  12742. yyhl1 := yyl1 > 0
  12743. var yyrl1 int
  12744. _ = yyrl1
  12745. var yyj1 int
  12746. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12747. yyh1.ElemContainerState(yyj1)
  12748. var yydb1 bool
  12749. if yyj1 >= len(yyv1) {
  12750. z.DecArrayCannotExpand(len(v), yyj1+1)
  12751. yydb1 = true
  12752. }
  12753. if yydb1 {
  12754. z.DecSwallow()
  12755. } else {
  12756. if r.TryDecodeAsNil() {
  12757. yyv1[yyj1] = 0
  12758. } else {
  12759. yyv1[yyj1] = (int64)(r.DecodeInt64())
  12760. }
  12761. }
  12762. }
  12763. }
  12764. yyh1.End()
  12765. }
  12766. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  12767. var h codecSelfer19780
  12768. z, r := GenHelperEncoder(e)
  12769. _, _, _ = h, z, r
  12770. if v == nil {
  12771. r.EncodeNil()
  12772. return
  12773. }
  12774. z.EncWriteArrayStart(len(v))
  12775. for _, yyv1 := range v {
  12776. z.EncWriteArrayElem()
  12777. if yyv1 == nil {
  12778. r.EncodeNil()
  12779. } else {
  12780. yy2 := *yyv1
  12781. r.EncodeInt(int64(yy2))
  12782. }
  12783. }
  12784. z.EncWriteArrayEnd()
  12785. }
  12786. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  12787. var h codecSelfer19780
  12788. z, r := GenHelperDecoder(d)
  12789. _, _, _ = h, z, r
  12790. yyv1 := *v
  12791. yyh1, yyl1 := z.DecSliceHelperStart()
  12792. var yyc1 bool
  12793. _ = yyc1
  12794. if yyl1 == 0 {
  12795. if yyv1 == nil {
  12796. yyv1 = []*int64{}
  12797. yyc1 = true
  12798. } else if len(yyv1) != 0 {
  12799. yyv1 = yyv1[:0]
  12800. yyc1 = true
  12801. }
  12802. } else {
  12803. yyhl1 := yyl1 > 0
  12804. var yyrl1 int
  12805. _ = yyrl1
  12806. if yyhl1 {
  12807. if yyl1 > cap(yyv1) {
  12808. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12809. if yyrl1 <= cap(yyv1) {
  12810. yyv1 = yyv1[:yyrl1]
  12811. } else {
  12812. yyv1 = make([]*int64, yyrl1)
  12813. }
  12814. yyc1 = true
  12815. } else if yyl1 != len(yyv1) {
  12816. yyv1 = yyv1[:yyl1]
  12817. yyc1 = true
  12818. }
  12819. }
  12820. var yyj1 int
  12821. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12822. if yyj1 == 0 && yyv1 == nil {
  12823. if yyhl1 {
  12824. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12825. } else {
  12826. yyrl1 = 8
  12827. }
  12828. yyv1 = make([]*int64, yyrl1)
  12829. yyc1 = true
  12830. }
  12831. yyh1.ElemContainerState(yyj1)
  12832. var yydb1 bool
  12833. if yyj1 >= len(yyv1) {
  12834. yyv1 = append(yyv1, nil)
  12835. yyc1 = true
  12836. }
  12837. if yydb1 {
  12838. z.DecSwallow()
  12839. } else {
  12840. if r.TryDecodeAsNil() {
  12841. yyv1[yyj1] = nil
  12842. } else {
  12843. if yyv1[yyj1] == nil {
  12844. yyv1[yyj1] = new(int64)
  12845. }
  12846. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  12847. }
  12848. }
  12849. }
  12850. if yyj1 < len(yyv1) {
  12851. yyv1 = yyv1[:yyj1]
  12852. yyc1 = true
  12853. } else if yyj1 == 0 && yyv1 == nil {
  12854. yyv1 = make([]*int64, 0)
  12855. yyc1 = true
  12856. }
  12857. }
  12858. yyh1.End()
  12859. if yyc1 {
  12860. *v = yyv1
  12861. }
  12862. }
  12863. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  12864. var h codecSelfer19780
  12865. z, r := GenHelperEncoder(e)
  12866. _, _, _ = h, z, r
  12867. if v == nil {
  12868. r.EncodeNil()
  12869. return
  12870. }
  12871. z.EncWriteArrayStart(len(v))
  12872. for _, yyv1 := range v {
  12873. z.EncWriteArrayElem()
  12874. yy2 := &yyv1
  12875. yy2.CodecEncodeSelf(e)
  12876. }
  12877. z.EncWriteArrayEnd()
  12878. }
  12879. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  12880. var h codecSelfer19780
  12881. z, r := GenHelperDecoder(d)
  12882. _, _, _ = h, z, r
  12883. yyv1 := *v
  12884. yyh1, yyl1 := z.DecSliceHelperStart()
  12885. var yyc1 bool
  12886. _ = yyc1
  12887. if yyl1 == 0 {
  12888. if yyv1 == nil {
  12889. yyv1 = []stringUint64T{}
  12890. yyc1 = true
  12891. } else if len(yyv1) != 0 {
  12892. yyv1 = yyv1[:0]
  12893. yyc1 = true
  12894. }
  12895. } else {
  12896. yyhl1 := yyl1 > 0
  12897. var yyrl1 int
  12898. _ = yyrl1
  12899. if yyhl1 {
  12900. if yyl1 > cap(yyv1) {
  12901. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12902. if yyrl1 <= cap(yyv1) {
  12903. yyv1 = yyv1[:yyrl1]
  12904. } else {
  12905. yyv1 = make([]stringUint64T, yyrl1)
  12906. }
  12907. yyc1 = true
  12908. } else if yyl1 != len(yyv1) {
  12909. yyv1 = yyv1[:yyl1]
  12910. yyc1 = true
  12911. }
  12912. }
  12913. var yyj1 int
  12914. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12915. if yyj1 == 0 && yyv1 == nil {
  12916. if yyhl1 {
  12917. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12918. } else {
  12919. yyrl1 = 8
  12920. }
  12921. yyv1 = make([]stringUint64T, yyrl1)
  12922. yyc1 = true
  12923. }
  12924. yyh1.ElemContainerState(yyj1)
  12925. var yydb1 bool
  12926. if yyj1 >= len(yyv1) {
  12927. yyv1 = append(yyv1, stringUint64T{})
  12928. yyc1 = true
  12929. }
  12930. if yydb1 {
  12931. z.DecSwallow()
  12932. } else {
  12933. if r.TryDecodeAsNil() {
  12934. yyv1[yyj1] = stringUint64T{}
  12935. } else {
  12936. yyv1[yyj1].CodecDecodeSelf(d)
  12937. }
  12938. }
  12939. }
  12940. if yyj1 < len(yyv1) {
  12941. yyv1 = yyv1[:yyj1]
  12942. yyc1 = true
  12943. } else if yyj1 == 0 && yyv1 == nil {
  12944. yyv1 = make([]stringUint64T, 0)
  12945. yyc1 = true
  12946. }
  12947. }
  12948. yyh1.End()
  12949. if yyc1 {
  12950. *v = yyv1
  12951. }
  12952. }
  12953. func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
  12954. var h codecSelfer19780
  12955. z, r := GenHelperEncoder(e)
  12956. _, _, _ = h, z, r
  12957. if v == nil {
  12958. r.EncodeNil()
  12959. return
  12960. }
  12961. z.EncWriteMapStart(len(v))
  12962. for yyk1, yyv1 := range v {
  12963. z.EncWriteMapElemKey()
  12964. if z.EncBasicHandle().StringToRaw {
  12965. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12966. } else {
  12967. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12968. }
  12969. z.EncWriteMapElemValue()
  12970. if yyv1 == nil {
  12971. r.EncodeNil()
  12972. } else {
  12973. yyv1.CodecEncodeSelf(e)
  12974. }
  12975. }
  12976. z.EncWriteMapEnd()
  12977. }
  12978. func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
  12979. var h codecSelfer19780
  12980. z, r := GenHelperDecoder(d)
  12981. _, _, _ = h, z, r
  12982. yyv1 := *v
  12983. yyl1 := z.DecReadMapStart()
  12984. yybh1 := z.DecBasicHandle()
  12985. if yyv1 == nil {
  12986. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  12987. yyv1 = make(map[string]*stringUint64T, yyrl1)
  12988. *v = yyv1
  12989. }
  12990. var yymk1 string
  12991. var yymv1 *stringUint64T
  12992. var yymg1, yymdn1, yyms1, yymok1 bool
  12993. if yybh1.MapValueReset {
  12994. yymg1 = true
  12995. }
  12996. if yyl1 != 0 {
  12997. yyhl1 := yyl1 > 0
  12998. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12999. z.DecReadMapElemKey()
  13000. if r.TryDecodeAsNil() {
  13001. yymk1 = ""
  13002. } else {
  13003. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13004. }
  13005. yyms1 = true
  13006. if yymg1 {
  13007. yymv1, yymok1 = yyv1[yymk1]
  13008. if yymok1 {
  13009. yyms1 = false
  13010. }
  13011. } else {
  13012. yymv1 = nil
  13013. }
  13014. z.DecReadMapElemValue()
  13015. yymdn1 = false
  13016. if r.TryDecodeAsNil() {
  13017. yymdn1 = true
  13018. } else {
  13019. if yymv1 == nil {
  13020. yymv1 = new(stringUint64T)
  13021. }
  13022. yymv1.CodecDecodeSelf(d)
  13023. }
  13024. if yymdn1 {
  13025. if yybh1.DeleteOnNilMapValue {
  13026. delete(yyv1, yymk1)
  13027. } else {
  13028. yyv1[yymk1] = nil
  13029. }
  13030. } else if yyms1 && yyv1 != nil {
  13031. yyv1[yymk1] = yymv1
  13032. }
  13033. }
  13034. } // else len==0: TODO: Should we clear map entries?
  13035. z.DecReadMapEnd()
  13036. }
  13037. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  13038. var h codecSelfer19780
  13039. z, r := GenHelperEncoder(e)
  13040. _, _, _ = h, z, r
  13041. if v == nil {
  13042. r.EncodeNil()
  13043. return
  13044. }
  13045. z.EncWriteMapStart(len(v))
  13046. for yyk1, yyv1 := range v {
  13047. z.EncWriteMapElemKey()
  13048. if z.EncBasicHandle().StringToRaw {
  13049. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13050. } else {
  13051. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13052. }
  13053. z.EncWriteMapElemValue()
  13054. if yyv1 == nil {
  13055. r.EncodeNil()
  13056. } else {
  13057. yyv1.CodecEncodeSelf(e)
  13058. }
  13059. }
  13060. z.EncWriteMapEnd()
  13061. }
  13062. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  13063. var h codecSelfer19780
  13064. z, r := GenHelperDecoder(d)
  13065. _, _, _ = h, z, r
  13066. yyv1 := *v
  13067. yyl1 := z.DecReadMapStart()
  13068. yybh1 := z.DecBasicHandle()
  13069. if yyv1 == nil {
  13070. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  13071. yyv1 = make(map[string]*TestStruc, yyrl1)
  13072. *v = yyv1
  13073. }
  13074. var yymk1 string
  13075. var yymv1 *TestStruc
  13076. var yymg1, yymdn1, yyms1, yymok1 bool
  13077. if yybh1.MapValueReset {
  13078. yymg1 = true
  13079. }
  13080. if yyl1 != 0 {
  13081. yyhl1 := yyl1 > 0
  13082. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13083. z.DecReadMapElemKey()
  13084. if r.TryDecodeAsNil() {
  13085. yymk1 = ""
  13086. } else {
  13087. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13088. }
  13089. yyms1 = true
  13090. if yymg1 {
  13091. yymv1, yymok1 = yyv1[yymk1]
  13092. if yymok1 {
  13093. yyms1 = false
  13094. }
  13095. } else {
  13096. yymv1 = nil
  13097. }
  13098. z.DecReadMapElemValue()
  13099. yymdn1 = false
  13100. if r.TryDecodeAsNil() {
  13101. yymdn1 = true
  13102. } else {
  13103. if yymv1 == nil {
  13104. yymv1 = new(TestStruc)
  13105. }
  13106. yymv1.CodecDecodeSelf(d)
  13107. }
  13108. if yymdn1 {
  13109. if yybh1.DeleteOnNilMapValue {
  13110. delete(yyv1, yymk1)
  13111. } else {
  13112. yyv1[yymk1] = nil
  13113. }
  13114. } else if yyms1 && yyv1 != nil {
  13115. yyv1[yymk1] = yymv1
  13116. }
  13117. }
  13118. } // else len==0: TODO: Should we clear map entries?
  13119. z.DecReadMapEnd()
  13120. }
  13121. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  13122. var h codecSelfer19780
  13123. z, r := GenHelperEncoder(e)
  13124. _, _, _ = h, z, r
  13125. if v == nil {
  13126. r.EncodeNil()
  13127. return
  13128. }
  13129. z.EncWriteMapStart(len(v))
  13130. for yyk1, yyv1 := range v {
  13131. z.EncWriteMapElemKey()
  13132. if z.EncBasicHandle().StringToRaw {
  13133. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13134. } else {
  13135. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13136. }
  13137. z.EncWriteMapElemValue()
  13138. yy3 := &yyv1
  13139. yy3.CodecEncodeSelf(e)
  13140. }
  13141. z.EncWriteMapEnd()
  13142. }
  13143. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  13144. var h codecSelfer19780
  13145. z, r := GenHelperDecoder(d)
  13146. _, _, _ = h, z, r
  13147. yyv1 := *v
  13148. yyl1 := z.DecReadMapStart()
  13149. yybh1 := z.DecBasicHandle()
  13150. if yyv1 == nil {
  13151. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1224)
  13152. yyv1 = make(map[string]TestStruc, yyrl1)
  13153. *v = yyv1
  13154. }
  13155. var yymk1 string
  13156. var yymv1 TestStruc
  13157. var yymg1, yymdn1 bool
  13158. if yybh1.MapValueReset {
  13159. yymg1 = true
  13160. }
  13161. if yyl1 != 0 {
  13162. yyhl1 := yyl1 > 0
  13163. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13164. z.DecReadMapElemKey()
  13165. if r.TryDecodeAsNil() {
  13166. yymk1 = ""
  13167. } else {
  13168. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13169. }
  13170. if yymg1 {
  13171. yymv1 = yyv1[yymk1]
  13172. } else {
  13173. yymv1 = TestStruc{}
  13174. }
  13175. z.DecReadMapElemValue()
  13176. yymdn1 = false
  13177. if r.TryDecodeAsNil() {
  13178. yymdn1 = true
  13179. } else {
  13180. yymv1.CodecDecodeSelf(d)
  13181. }
  13182. if yymdn1 {
  13183. if yybh1.DeleteOnNilMapValue {
  13184. delete(yyv1, yymk1)
  13185. } else {
  13186. yyv1[yymk1] = TestStruc{}
  13187. }
  13188. } else if yyv1 != nil {
  13189. yyv1[yymk1] = yymv1
  13190. }
  13191. }
  13192. } // else len==0: TODO: Should we clear map entries?
  13193. z.DecReadMapEnd()
  13194. }
  13195. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  13196. var h codecSelfer19780
  13197. z, r := GenHelperEncoder(e)
  13198. _, _, _ = h, z, r
  13199. if v == nil {
  13200. r.EncodeNil()
  13201. return
  13202. }
  13203. z.EncWriteArrayStart(len(v))
  13204. for _, yyv1 := range v {
  13205. z.EncWriteArrayElem()
  13206. if yyv1 == nil {
  13207. r.EncodeNil()
  13208. } else {
  13209. yyv1.CodecEncodeSelf(e)
  13210. }
  13211. }
  13212. z.EncWriteArrayEnd()
  13213. }
  13214. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  13215. var h codecSelfer19780
  13216. z, r := GenHelperDecoder(d)
  13217. _, _, _ = h, z, r
  13218. yyv1 := *v
  13219. yyh1, yyl1 := z.DecSliceHelperStart()
  13220. var yyc1 bool
  13221. _ = yyc1
  13222. if yyl1 == 0 {
  13223. if yyv1 == nil {
  13224. yyv1 = []*TestStruc{}
  13225. yyc1 = true
  13226. } else if len(yyv1) != 0 {
  13227. yyv1 = yyv1[:0]
  13228. yyc1 = true
  13229. }
  13230. } else {
  13231. yyhl1 := yyl1 > 0
  13232. var yyrl1 int
  13233. _ = yyrl1
  13234. if yyhl1 {
  13235. if yyl1 > cap(yyv1) {
  13236. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13237. if yyrl1 <= cap(yyv1) {
  13238. yyv1 = yyv1[:yyrl1]
  13239. } else {
  13240. yyv1 = make([]*TestStruc, yyrl1)
  13241. }
  13242. yyc1 = true
  13243. } else if yyl1 != len(yyv1) {
  13244. yyv1 = yyv1[:yyl1]
  13245. yyc1 = true
  13246. }
  13247. }
  13248. var yyj1 int
  13249. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13250. if yyj1 == 0 && yyv1 == nil {
  13251. if yyhl1 {
  13252. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13253. } else {
  13254. yyrl1 = 8
  13255. }
  13256. yyv1 = make([]*TestStruc, yyrl1)
  13257. yyc1 = true
  13258. }
  13259. yyh1.ElemContainerState(yyj1)
  13260. var yydb1 bool
  13261. if yyj1 >= len(yyv1) {
  13262. yyv1 = append(yyv1, nil)
  13263. yyc1 = true
  13264. }
  13265. if yydb1 {
  13266. z.DecSwallow()
  13267. } else {
  13268. if r.TryDecodeAsNil() {
  13269. yyv1[yyj1] = nil
  13270. } else {
  13271. if yyv1[yyj1] == nil {
  13272. yyv1[yyj1] = new(TestStruc)
  13273. }
  13274. yyv1[yyj1].CodecDecodeSelf(d)
  13275. }
  13276. }
  13277. }
  13278. if yyj1 < len(yyv1) {
  13279. yyv1 = yyv1[:yyj1]
  13280. yyc1 = true
  13281. } else if yyj1 == 0 && yyv1 == nil {
  13282. yyv1 = make([]*TestStruc, 0)
  13283. yyc1 = true
  13284. }
  13285. }
  13286. yyh1.End()
  13287. if yyc1 {
  13288. *v = yyv1
  13289. }
  13290. }
  13291. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  13292. var h codecSelfer19780
  13293. z, r := GenHelperEncoder(e)
  13294. _, _, _ = h, z, r
  13295. if v == nil {
  13296. r.EncodeNil()
  13297. return
  13298. }
  13299. z.EncWriteArrayStart(len(v))
  13300. for _, yyv1 := range v {
  13301. z.EncWriteArrayElem()
  13302. if z.EncBasicHandle().StringToRaw {
  13303. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  13304. } else {
  13305. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  13306. }
  13307. }
  13308. z.EncWriteArrayEnd()
  13309. }
  13310. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  13311. var h codecSelfer19780
  13312. z, r := GenHelperDecoder(d)
  13313. _, _, _ = h, z, r
  13314. yyv1 := v
  13315. yyh1, yyl1 := z.DecSliceHelperStart()
  13316. if yyl1 == 0 {
  13317. } else {
  13318. yyhl1 := yyl1 > 0
  13319. var yyrl1 int
  13320. _ = yyrl1
  13321. var yyj1 int
  13322. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13323. yyh1.ElemContainerState(yyj1)
  13324. var yydb1 bool
  13325. if yyj1 >= len(yyv1) {
  13326. z.DecArrayCannotExpand(len(v), yyj1+1)
  13327. yydb1 = true
  13328. }
  13329. if yydb1 {
  13330. z.DecSwallow()
  13331. } else {
  13332. if r.TryDecodeAsNil() {
  13333. yyv1[yyj1] = ""
  13334. } else {
  13335. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  13336. }
  13337. }
  13338. }
  13339. }
  13340. yyh1.End()
  13341. }
  13342. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  13343. var h codecSelfer19780
  13344. z, r := GenHelperEncoder(e)
  13345. _, _, _ = h, z, r
  13346. if v == nil {
  13347. r.EncodeNil()
  13348. return
  13349. }
  13350. r.EncodeStringBytesRaw([]byte(v))
  13351. }
  13352. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  13353. var h codecSelfer19780
  13354. z, r := GenHelperDecoder(d)
  13355. _, _, _ = h, z, r
  13356. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  13357. }
  13358. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  13359. var h codecSelfer19780
  13360. z, r := GenHelperEncoder(e)
  13361. _, _, _ = h, z, r
  13362. if v == nil {
  13363. r.EncodeNil()
  13364. return
  13365. }
  13366. if v == nil {
  13367. r.EncodeNil()
  13368. } else {
  13369. var sch1 []string
  13370. Lsch1:
  13371. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  13372. case timeout1 == 0: // only consume available
  13373. for {
  13374. select {
  13375. case b1 := <-v:
  13376. sch1 = append(sch1, b1)
  13377. default:
  13378. break Lsch1
  13379. }
  13380. }
  13381. case timeout1 > 0: // consume until timeout
  13382. tt1 := time.NewTimer(timeout1)
  13383. for {
  13384. select {
  13385. case b1 := <-v:
  13386. sch1 = append(sch1, b1)
  13387. case <-tt1.C:
  13388. // close(tt.C)
  13389. break Lsch1
  13390. }
  13391. }
  13392. default: // consume until close
  13393. for b1 := range v {
  13394. sch1 = append(sch1, b1)
  13395. }
  13396. }
  13397. z.EncWriteArrayStart(len(sch1))
  13398. for _, yyv1 := range sch1 {
  13399. z.EncWriteArrayElem()
  13400. if z.EncBasicHandle().StringToRaw {
  13401. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  13402. } else {
  13403. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  13404. }
  13405. }
  13406. z.EncWriteArrayEnd()
  13407. }
  13408. }
  13409. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  13410. var h codecSelfer19780
  13411. z, r := GenHelperDecoder(d)
  13412. _, _, _ = h, z, r
  13413. yyv1 := *v
  13414. yyh1, yyl1 := z.DecSliceHelperStart()
  13415. var yyc1 bool
  13416. _ = yyc1
  13417. if yyl1 == 0 {
  13418. if yyv1 == nil {
  13419. yyv1 = make(chan string, 0)
  13420. yyc1 = true
  13421. }
  13422. } else {
  13423. yyhl1 := yyl1 > 0
  13424. var yyrl1 int
  13425. _ = yyrl1
  13426. var yyj1 int
  13427. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13428. if yyj1 == 0 && yyv1 == nil {
  13429. if yyhl1 {
  13430. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  13431. } else {
  13432. yyrl1 = 64
  13433. }
  13434. yyv1 = make(chan string, yyrl1)
  13435. yyc1 = true
  13436. }
  13437. yyh1.ElemContainerState(yyj1)
  13438. var yyvcx1 string
  13439. if r.TryDecodeAsNil() {
  13440. yyvcx1 = ""
  13441. } else {
  13442. yyvcx1 = (string)(string(r.DecodeStringAsBytes()))
  13443. }
  13444. yyv1 <- yyvcx1
  13445. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  13446. }
  13447. }
  13448. yyh1.End()
  13449. if yyc1 {
  13450. *v = yyv1
  13451. }
  13452. }
  13453. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  13454. var h codecSelfer19780
  13455. z, r := GenHelperEncoder(e)
  13456. _, _, _ = h, z, r
  13457. if v == nil {
  13458. r.EncodeNil()
  13459. return
  13460. }
  13461. z.EncWriteMapStart(len(v))
  13462. for yyk1, yyv1 := range v {
  13463. z.EncWriteMapElemKey()
  13464. r.EncodeBool(bool(yyk1))
  13465. z.EncWriteMapElemValue()
  13466. yy3 := &yyv1
  13467. z.EncFallback(yy3)
  13468. }
  13469. z.EncWriteMapEnd()
  13470. }
  13471. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  13472. var h codecSelfer19780
  13473. z, r := GenHelperDecoder(d)
  13474. _, _, _ = h, z, r
  13475. yyv1 := *v
  13476. yyl1 := z.DecReadMapStart()
  13477. yybh1 := z.DecBasicHandle()
  13478. if yyv1 == nil {
  13479. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  13480. yyv1 = make(map[bool]struct{}, yyrl1)
  13481. *v = yyv1
  13482. }
  13483. var yymk1 bool
  13484. var yymv1 struct{}
  13485. var yymg1, yymdn1 bool
  13486. if yybh1.MapValueReset {
  13487. yymg1 = true
  13488. }
  13489. if yyl1 != 0 {
  13490. yyhl1 := yyl1 > 0
  13491. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13492. z.DecReadMapElemKey()
  13493. if r.TryDecodeAsNil() {
  13494. yymk1 = false
  13495. } else {
  13496. yymk1 = (bool)(r.DecodeBool())
  13497. }
  13498. if yymg1 {
  13499. yymv1 = yyv1[yymk1]
  13500. } else {
  13501. yymv1 = struct{}{}
  13502. }
  13503. z.DecReadMapElemValue()
  13504. yymdn1 = false
  13505. if r.TryDecodeAsNil() {
  13506. yymdn1 = true
  13507. } else {
  13508. z.DecFallback(&yymv1, false)
  13509. }
  13510. if yymdn1 {
  13511. if yybh1.DeleteOnNilMapValue {
  13512. delete(yyv1, yymk1)
  13513. } else {
  13514. yyv1[yymk1] = struct{}{}
  13515. }
  13516. } else if yyv1 != nil {
  13517. yyv1[yymk1] = yymv1
  13518. }
  13519. }
  13520. } // else len==0: TODO: Should we clear map entries?
  13521. z.DecReadMapEnd()
  13522. }
  13523. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  13524. var h codecSelfer19780
  13525. z, r := GenHelperEncoder(e)
  13526. _, _, _ = h, z, r
  13527. if v == nil {
  13528. r.EncodeNil()
  13529. return
  13530. }
  13531. z.EncWriteMapStart(len(v))
  13532. for yyk1, yyv1 := range v {
  13533. z.EncWriteMapElemKey()
  13534. r.EncodeInt(int64(yyk1))
  13535. z.EncWriteMapElemValue()
  13536. if yyv1 == nil {
  13537. r.EncodeNil()
  13538. } else {
  13539. yyv1.CodecEncodeSelf(e)
  13540. }
  13541. }
  13542. z.EncWriteMapEnd()
  13543. }
  13544. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  13545. var h codecSelfer19780
  13546. z, r := GenHelperDecoder(d)
  13547. _, _, _ = h, z, r
  13548. yyv1 := *v
  13549. yyl1 := z.DecReadMapStart()
  13550. yybh1 := z.DecBasicHandle()
  13551. if yyv1 == nil {
  13552. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  13553. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  13554. *v = yyv1
  13555. }
  13556. var yymk1 int
  13557. var yymv1 wrapUint64Slice
  13558. var yymg1, yymdn1 bool
  13559. if yybh1.MapValueReset {
  13560. yymg1 = true
  13561. }
  13562. if yyl1 != 0 {
  13563. yyhl1 := yyl1 > 0
  13564. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13565. z.DecReadMapElemKey()
  13566. if r.TryDecodeAsNil() {
  13567. yymk1 = 0
  13568. } else {
  13569. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  13570. }
  13571. if yymg1 {
  13572. yymv1 = yyv1[yymk1]
  13573. } else {
  13574. yymv1 = nil
  13575. }
  13576. z.DecReadMapElemValue()
  13577. yymdn1 = false
  13578. if r.TryDecodeAsNil() {
  13579. yymdn1 = true
  13580. } else {
  13581. yymv1.CodecDecodeSelf(d)
  13582. }
  13583. if yymdn1 {
  13584. if yybh1.DeleteOnNilMapValue {
  13585. delete(yyv1, yymk1)
  13586. } else {
  13587. yyv1[yymk1] = nil
  13588. }
  13589. } else if yyv1 != nil {
  13590. yyv1[yymk1] = yymv1
  13591. }
  13592. }
  13593. } // else len==0: TODO: Should we clear map entries?
  13594. z.DecReadMapEnd()
  13595. }
  13596. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  13597. var h codecSelfer19780
  13598. z, r := GenHelperEncoder(e)
  13599. _, _, _ = h, z, r
  13600. if v == nil {
  13601. r.EncodeNil()
  13602. return
  13603. }
  13604. z.EncWriteMapStart(len(v))
  13605. for yyk1, yyv1 := range v {
  13606. z.EncWriteMapElemKey()
  13607. r.EncodeFloat64(float64(yyk1))
  13608. z.EncWriteMapElemValue()
  13609. if yyv1 == nil {
  13610. r.EncodeNil()
  13611. } else {
  13612. yyv1.CodecEncodeSelf(e)
  13613. }
  13614. }
  13615. z.EncWriteMapEnd()
  13616. }
  13617. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  13618. var h codecSelfer19780
  13619. z, r := GenHelperDecoder(d)
  13620. _, _, _ = h, z, r
  13621. yyv1 := *v
  13622. yyl1 := z.DecReadMapStart()
  13623. yybh1 := z.DecBasicHandle()
  13624. if yyv1 == nil {
  13625. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  13626. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  13627. *v = yyv1
  13628. }
  13629. var yymk1 float64
  13630. var yymv1 wrapStringSlice
  13631. var yymg1, yymdn1 bool
  13632. if yybh1.MapValueReset {
  13633. yymg1 = true
  13634. }
  13635. if yyl1 != 0 {
  13636. yyhl1 := yyl1 > 0
  13637. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13638. z.DecReadMapElemKey()
  13639. if r.TryDecodeAsNil() {
  13640. yymk1 = 0
  13641. } else {
  13642. yymk1 = (float64)(r.DecodeFloat64())
  13643. }
  13644. if yymg1 {
  13645. yymv1 = yyv1[yymk1]
  13646. } else {
  13647. yymv1 = nil
  13648. }
  13649. z.DecReadMapElemValue()
  13650. yymdn1 = false
  13651. if r.TryDecodeAsNil() {
  13652. yymdn1 = true
  13653. } else {
  13654. yymv1.CodecDecodeSelf(d)
  13655. }
  13656. if yymdn1 {
  13657. if yybh1.DeleteOnNilMapValue {
  13658. delete(yyv1, yymk1)
  13659. } else {
  13660. yyv1[yymk1] = nil
  13661. }
  13662. } else if yyv1 != nil {
  13663. yyv1[yymk1] = yymv1
  13664. }
  13665. }
  13666. } // else len==0: TODO: Should we clear map entries?
  13667. z.DecReadMapEnd()
  13668. }
  13669. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  13670. var h codecSelfer19780
  13671. z, r := GenHelperEncoder(e)
  13672. _, _, _ = h, z, r
  13673. if v == nil {
  13674. r.EncodeNil()
  13675. return
  13676. }
  13677. z.EncWriteMapStart(len(v))
  13678. for yyk1, yyv1 := range v {
  13679. z.EncWriteMapElemKey()
  13680. r.EncodeFloat32(float32(yyk1))
  13681. z.EncWriteMapElemValue()
  13682. if yyv1 == nil {
  13683. r.EncodeNil()
  13684. } else {
  13685. yyv1.CodecEncodeSelf(e)
  13686. }
  13687. }
  13688. z.EncWriteMapEnd()
  13689. }
  13690. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  13691. var h codecSelfer19780
  13692. z, r := GenHelperDecoder(d)
  13693. _, _, _ = h, z, r
  13694. yyv1 := *v
  13695. yyl1 := z.DecReadMapStart()
  13696. yybh1 := z.DecBasicHandle()
  13697. if yyv1 == nil {
  13698. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  13699. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  13700. *v = yyv1
  13701. }
  13702. var yymk1 float32
  13703. var yymv1 wrapStringSlice
  13704. var yymg1, yymdn1 bool
  13705. if yybh1.MapValueReset {
  13706. yymg1 = true
  13707. }
  13708. if yyl1 != 0 {
  13709. yyhl1 := yyl1 > 0
  13710. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13711. z.DecReadMapElemKey()
  13712. if r.TryDecodeAsNil() {
  13713. yymk1 = 0
  13714. } else {
  13715. yymk1 = (float32)(z.DecDecodeFloat32())
  13716. }
  13717. if yymg1 {
  13718. yymv1 = yyv1[yymk1]
  13719. } else {
  13720. yymv1 = nil
  13721. }
  13722. z.DecReadMapElemValue()
  13723. yymdn1 = false
  13724. if r.TryDecodeAsNil() {
  13725. yymdn1 = true
  13726. } else {
  13727. yymv1.CodecDecodeSelf(d)
  13728. }
  13729. if yymdn1 {
  13730. if yybh1.DeleteOnNilMapValue {
  13731. delete(yyv1, yymk1)
  13732. } else {
  13733. yyv1[yymk1] = nil
  13734. }
  13735. } else if yyv1 != nil {
  13736. yyv1[yymk1] = yymv1
  13737. }
  13738. }
  13739. } // else len==0: TODO: Should we clear map entries?
  13740. z.DecReadMapEnd()
  13741. }
  13742. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  13743. var h codecSelfer19780
  13744. z, r := GenHelperEncoder(e)
  13745. _, _, _ = h, z, r
  13746. if v == nil {
  13747. r.EncodeNil()
  13748. return
  13749. }
  13750. z.EncWriteMapStart(len(v))
  13751. for yyk1, yyv1 := range v {
  13752. z.EncWriteMapElemKey()
  13753. r.EncodeUint(uint64(yyk1))
  13754. z.EncWriteMapElemValue()
  13755. if yyv1 == nil {
  13756. r.EncodeNil()
  13757. } else {
  13758. yyv1.CodecEncodeSelf(e)
  13759. }
  13760. }
  13761. z.EncWriteMapEnd()
  13762. }
  13763. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  13764. var h codecSelfer19780
  13765. z, r := GenHelperDecoder(d)
  13766. _, _, _ = h, z, r
  13767. yyv1 := *v
  13768. yyl1 := z.DecReadMapStart()
  13769. yybh1 := z.DecBasicHandle()
  13770. if yyv1 == nil {
  13771. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  13772. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  13773. *v = yyv1
  13774. }
  13775. var yymk1 uint64
  13776. var yymv1 wrapStringSlice
  13777. var yymg1, yymdn1 bool
  13778. if yybh1.MapValueReset {
  13779. yymg1 = true
  13780. }
  13781. if yyl1 != 0 {
  13782. yyhl1 := yyl1 > 0
  13783. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13784. z.DecReadMapElemKey()
  13785. if r.TryDecodeAsNil() {
  13786. yymk1 = 0
  13787. } else {
  13788. yymk1 = (uint64)(r.DecodeUint64())
  13789. }
  13790. if yymg1 {
  13791. yymv1 = yyv1[yymk1]
  13792. } else {
  13793. yymv1 = nil
  13794. }
  13795. z.DecReadMapElemValue()
  13796. yymdn1 = false
  13797. if r.TryDecodeAsNil() {
  13798. yymdn1 = true
  13799. } else {
  13800. yymv1.CodecDecodeSelf(d)
  13801. }
  13802. if yymdn1 {
  13803. if yybh1.DeleteOnNilMapValue {
  13804. delete(yyv1, yymk1)
  13805. } else {
  13806. yyv1[yymk1] = nil
  13807. }
  13808. } else if yyv1 != nil {
  13809. yyv1[yymk1] = yymv1
  13810. }
  13811. }
  13812. } // else len==0: TODO: Should we clear map entries?
  13813. z.DecReadMapEnd()
  13814. }
  13815. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  13816. var h codecSelfer19780
  13817. z, r := GenHelperEncoder(e)
  13818. _, _, _ = h, z, r
  13819. if v == nil {
  13820. r.EncodeNil()
  13821. return
  13822. }
  13823. z.EncWriteMapStart(len(v))
  13824. for yyk1, yyv1 := range v {
  13825. z.EncWriteMapElemKey()
  13826. yy2 := &yyk1
  13827. yy2.CodecEncodeSelf(e)
  13828. z.EncWriteMapElemValue()
  13829. if yyv1 == nil {
  13830. r.EncodeNil()
  13831. } else {
  13832. yyv1.CodecEncodeSelf(e)
  13833. }
  13834. }
  13835. z.EncWriteMapEnd()
  13836. }
  13837. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  13838. var h codecSelfer19780
  13839. z, r := GenHelperDecoder(d)
  13840. _, _, _ = h, z, r
  13841. yyv1 := *v
  13842. yyl1 := z.DecReadMapStart()
  13843. yybh1 := z.DecBasicHandle()
  13844. if yyv1 == nil {
  13845. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  13846. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  13847. *v = yyv1
  13848. }
  13849. var yymk1 stringUint64T
  13850. var yymv1 wrapStringSlice
  13851. var yymg1, yymdn1 bool
  13852. if yybh1.MapValueReset {
  13853. yymg1 = true
  13854. }
  13855. if yyl1 != 0 {
  13856. yyhl1 := yyl1 > 0
  13857. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13858. z.DecReadMapElemKey()
  13859. if r.TryDecodeAsNil() {
  13860. yymk1 = stringUint64T{}
  13861. } else {
  13862. yymk1.CodecDecodeSelf(d)
  13863. }
  13864. if yymg1 {
  13865. yymv1 = yyv1[yymk1]
  13866. } else {
  13867. yymv1 = nil
  13868. }
  13869. z.DecReadMapElemValue()
  13870. yymdn1 = false
  13871. if r.TryDecodeAsNil() {
  13872. yymdn1 = true
  13873. } else {
  13874. yymv1.CodecDecodeSelf(d)
  13875. }
  13876. if yymdn1 {
  13877. if yybh1.DeleteOnNilMapValue {
  13878. delete(yyv1, yymk1)
  13879. } else {
  13880. yyv1[yymk1] = nil
  13881. }
  13882. } else if yyv1 != nil {
  13883. yyv1[yymk1] = yymv1
  13884. }
  13885. }
  13886. } // else len==0: TODO: Should we clear map entries?
  13887. z.DecReadMapEnd()
  13888. }
  13889. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  13890. var h codecSelfer19780
  13891. z, r := GenHelperEncoder(e)
  13892. _, _, _ = h, z, r
  13893. if v == nil {
  13894. r.EncodeNil()
  13895. return
  13896. }
  13897. z.EncWriteArrayStart(len(v))
  13898. for _, yyv1 := range v {
  13899. z.EncWriteArrayElem()
  13900. if yyv1 == nil {
  13901. r.EncodeNil()
  13902. } else {
  13903. yyv1.CodecEncodeSelf(e)
  13904. }
  13905. }
  13906. z.EncWriteArrayEnd()
  13907. }
  13908. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  13909. var h codecSelfer19780
  13910. z, r := GenHelperDecoder(d)
  13911. _, _, _ = h, z, r
  13912. yyv1 := *v
  13913. yyh1, yyl1 := z.DecSliceHelperStart()
  13914. var yyc1 bool
  13915. _ = yyc1
  13916. if yyl1 == 0 {
  13917. if yyv1 == nil {
  13918. yyv1 = []wrapBytes{}
  13919. yyc1 = true
  13920. } else if len(yyv1) != 0 {
  13921. yyv1 = yyv1[:0]
  13922. yyc1 = true
  13923. }
  13924. } else {
  13925. yyhl1 := yyl1 > 0
  13926. var yyrl1 int
  13927. _ = yyrl1
  13928. if yyhl1 {
  13929. if yyl1 > cap(yyv1) {
  13930. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13931. if yyrl1 <= cap(yyv1) {
  13932. yyv1 = yyv1[:yyrl1]
  13933. } else {
  13934. yyv1 = make([]wrapBytes, yyrl1)
  13935. }
  13936. yyc1 = true
  13937. } else if yyl1 != len(yyv1) {
  13938. yyv1 = yyv1[:yyl1]
  13939. yyc1 = true
  13940. }
  13941. }
  13942. var yyj1 int
  13943. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13944. if yyj1 == 0 && yyv1 == nil {
  13945. if yyhl1 {
  13946. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13947. } else {
  13948. yyrl1 = 8
  13949. }
  13950. yyv1 = make([]wrapBytes, yyrl1)
  13951. yyc1 = true
  13952. }
  13953. yyh1.ElemContainerState(yyj1)
  13954. var yydb1 bool
  13955. if yyj1 >= len(yyv1) {
  13956. yyv1 = append(yyv1, nil)
  13957. yyc1 = true
  13958. }
  13959. if yydb1 {
  13960. z.DecSwallow()
  13961. } else {
  13962. if r.TryDecodeAsNil() {
  13963. yyv1[yyj1] = nil
  13964. } else {
  13965. yyv1[yyj1].CodecDecodeSelf(d)
  13966. }
  13967. }
  13968. }
  13969. if yyj1 < len(yyv1) {
  13970. yyv1 = yyv1[:yyj1]
  13971. yyc1 = true
  13972. } else if yyj1 == 0 && yyv1 == nil {
  13973. yyv1 = make([]wrapBytes, 0)
  13974. yyc1 = true
  13975. }
  13976. }
  13977. yyh1.End()
  13978. if yyc1 {
  13979. *v = yyv1
  13980. }
  13981. }
  13982. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  13983. var h codecSelfer19780
  13984. z, r := GenHelperEncoder(e)
  13985. _, _, _ = h, z, r
  13986. if v == nil {
  13987. r.EncodeNil()
  13988. return
  13989. }
  13990. z.EncWriteArrayStart(len(v))
  13991. for _, yyv1 := range v {
  13992. z.EncWriteArrayElem()
  13993. yyv1.CodecEncodeSelf(e)
  13994. }
  13995. z.EncWriteArrayEnd()
  13996. }
  13997. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  13998. var h codecSelfer19780
  13999. z, r := GenHelperDecoder(d)
  14000. _, _, _ = h, z, r
  14001. yyv1 := *v
  14002. yyh1, yyl1 := z.DecSliceHelperStart()
  14003. var yyc1 bool
  14004. _ = yyc1
  14005. if yyl1 == 0 {
  14006. if yyv1 == nil {
  14007. yyv1 = []wrapUint8{}
  14008. yyc1 = true
  14009. } else if len(yyv1) != 0 {
  14010. yyv1 = yyv1[:0]
  14011. yyc1 = true
  14012. }
  14013. } else {
  14014. yyhl1 := yyl1 > 0
  14015. var yyrl1 int
  14016. _ = yyrl1
  14017. if yyhl1 {
  14018. if yyl1 > cap(yyv1) {
  14019. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  14020. if yyrl1 <= cap(yyv1) {
  14021. yyv1 = yyv1[:yyrl1]
  14022. } else {
  14023. yyv1 = make([]wrapUint8, yyrl1)
  14024. }
  14025. yyc1 = true
  14026. } else if yyl1 != len(yyv1) {
  14027. yyv1 = yyv1[:yyl1]
  14028. yyc1 = true
  14029. }
  14030. }
  14031. var yyj1 int
  14032. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14033. if yyj1 == 0 && yyv1 == nil {
  14034. if yyhl1 {
  14035. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  14036. } else {
  14037. yyrl1 = 8
  14038. }
  14039. yyv1 = make([]wrapUint8, yyrl1)
  14040. yyc1 = true
  14041. }
  14042. yyh1.ElemContainerState(yyj1)
  14043. var yydb1 bool
  14044. if yyj1 >= len(yyv1) {
  14045. yyv1 = append(yyv1, 0)
  14046. yyc1 = true
  14047. }
  14048. if yydb1 {
  14049. z.DecSwallow()
  14050. } else {
  14051. if r.TryDecodeAsNil() {
  14052. yyv1[yyj1] = 0
  14053. } else {
  14054. yyv1[yyj1].CodecDecodeSelf(d)
  14055. }
  14056. }
  14057. }
  14058. if yyj1 < len(yyv1) {
  14059. yyv1 = yyv1[:yyj1]
  14060. yyc1 = true
  14061. } else if yyj1 == 0 && yyv1 == nil {
  14062. yyv1 = make([]wrapUint8, 0)
  14063. yyc1 = true
  14064. }
  14065. }
  14066. yyh1.End()
  14067. if yyc1 {
  14068. *v = yyv1
  14069. }
  14070. }
  14071. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  14072. var h codecSelfer19780
  14073. z, r := GenHelperEncoder(e)
  14074. _, _, _ = h, z, r
  14075. if v == nil {
  14076. r.EncodeNil()
  14077. return
  14078. }
  14079. z.EncWriteArrayStart(len(v))
  14080. for _, yyv1 := range v {
  14081. z.EncWriteArrayElem()
  14082. yy2 := &yyv1
  14083. yy2.CodecEncodeSelf(e)
  14084. }
  14085. z.EncWriteArrayEnd()
  14086. }
  14087. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  14088. var h codecSelfer19780
  14089. z, r := GenHelperDecoder(d)
  14090. _, _, _ = h, z, r
  14091. yyv1 := v
  14092. yyh1, yyl1 := z.DecSliceHelperStart()
  14093. if yyl1 == 0 {
  14094. } else {
  14095. yyhl1 := yyl1 > 0
  14096. var yyrl1 int
  14097. _ = yyrl1
  14098. var yyj1 int
  14099. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14100. yyh1.ElemContainerState(yyj1)
  14101. var yydb1 bool
  14102. if yyj1 >= len(yyv1) {
  14103. z.DecArrayCannotExpand(len(v), yyj1+1)
  14104. yydb1 = true
  14105. }
  14106. if yydb1 {
  14107. z.DecSwallow()
  14108. } else {
  14109. if r.TryDecodeAsNil() {
  14110. yyv1[yyj1] = stringUint64T{}
  14111. } else {
  14112. yyv1[yyj1].CodecDecodeSelf(d)
  14113. }
  14114. }
  14115. }
  14116. }
  14117. yyh1.End()
  14118. }
  14119. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  14120. var h codecSelfer19780
  14121. z, r := GenHelperEncoder(e)
  14122. _, _, _ = h, z, r
  14123. if v == nil {
  14124. r.EncodeNil()
  14125. return
  14126. }
  14127. z.EncWriteArrayStart(len(v))
  14128. for _, yyv1 := range v {
  14129. z.EncWriteArrayElem()
  14130. r.EncodeUint(uint64(yyv1))
  14131. }
  14132. z.EncWriteArrayEnd()
  14133. }
  14134. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  14135. var h codecSelfer19780
  14136. z, r := GenHelperDecoder(d)
  14137. _, _, _ = h, z, r
  14138. yyv1 := v
  14139. yyh1, yyl1 := z.DecSliceHelperStart()
  14140. if yyl1 == 0 {
  14141. } else {
  14142. yyhl1 := yyl1 > 0
  14143. var yyrl1 int
  14144. _ = yyrl1
  14145. var yyj1 int
  14146. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14147. yyh1.ElemContainerState(yyj1)
  14148. var yydb1 bool
  14149. if yyj1 >= len(yyv1) {
  14150. z.DecArrayCannotExpand(len(v), yyj1+1)
  14151. yydb1 = true
  14152. }
  14153. if yydb1 {
  14154. z.DecSwallow()
  14155. } else {
  14156. if r.TryDecodeAsNil() {
  14157. yyv1[yyj1] = 0
  14158. } else {
  14159. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  14160. }
  14161. }
  14162. }
  14163. }
  14164. yyh1.End()
  14165. }
  14166. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  14167. var h codecSelfer19780
  14168. z, r := GenHelperEncoder(e)
  14169. _, _, _ = h, z, r
  14170. if v == nil {
  14171. r.EncodeNil()
  14172. return
  14173. }
  14174. z.EncWriteArrayStart(len(v))
  14175. for _, yyv1 := range v {
  14176. z.EncWriteArrayElem()
  14177. if yyv1 == nil {
  14178. r.EncodeNil()
  14179. } else {
  14180. h.encArray4uint64((*[4]uint64)(yyv1), e)
  14181. }
  14182. }
  14183. z.EncWriteArrayEnd()
  14184. }
  14185. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  14186. var h codecSelfer19780
  14187. z, r := GenHelperDecoder(d)
  14188. _, _, _ = h, z, r
  14189. yyv1 := *v
  14190. yyh1, yyl1 := z.DecSliceHelperStart()
  14191. var yyc1 bool
  14192. _ = yyc1
  14193. if yyl1 == 0 {
  14194. if yyv1 == nil {
  14195. yyv1 = []*[4]uint64{}
  14196. yyc1 = true
  14197. } else if len(yyv1) != 0 {
  14198. yyv1 = yyv1[:0]
  14199. yyc1 = true
  14200. }
  14201. } else {
  14202. yyhl1 := yyl1 > 0
  14203. var yyrl1 int
  14204. _ = yyrl1
  14205. if yyhl1 {
  14206. if yyl1 > cap(yyv1) {
  14207. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14208. if yyrl1 <= cap(yyv1) {
  14209. yyv1 = yyv1[:yyrl1]
  14210. } else {
  14211. yyv1 = make([]*[4]uint64, yyrl1)
  14212. }
  14213. yyc1 = true
  14214. } else if yyl1 != len(yyv1) {
  14215. yyv1 = yyv1[:yyl1]
  14216. yyc1 = true
  14217. }
  14218. }
  14219. var yyj1 int
  14220. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14221. if yyj1 == 0 && yyv1 == nil {
  14222. if yyhl1 {
  14223. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14224. } else {
  14225. yyrl1 = 8
  14226. }
  14227. yyv1 = make([]*[4]uint64, yyrl1)
  14228. yyc1 = true
  14229. }
  14230. yyh1.ElemContainerState(yyj1)
  14231. var yydb1 bool
  14232. if yyj1 >= len(yyv1) {
  14233. yyv1 = append(yyv1, nil)
  14234. yyc1 = true
  14235. }
  14236. if yydb1 {
  14237. z.DecSwallow()
  14238. } else {
  14239. if r.TryDecodeAsNil() {
  14240. yyv1[yyj1] = nil
  14241. } else {
  14242. if yyv1[yyj1] == nil {
  14243. yyv1[yyj1] = new([4]uint64)
  14244. }
  14245. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  14246. }
  14247. }
  14248. }
  14249. if yyj1 < len(yyv1) {
  14250. yyv1 = yyv1[:yyj1]
  14251. yyc1 = true
  14252. } else if yyj1 == 0 && yyv1 == nil {
  14253. yyv1 = make([]*[4]uint64, 0)
  14254. yyc1 = true
  14255. }
  14256. }
  14257. yyh1.End()
  14258. if yyc1 {
  14259. *v = yyv1
  14260. }
  14261. }
  14262. func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
  14263. var h codecSelfer19780
  14264. z, r := GenHelperEncoder(e)
  14265. _, _, _ = h, z, r
  14266. if v == nil {
  14267. r.EncodeNil()
  14268. return
  14269. }
  14270. z.EncWriteMapStart(len(v))
  14271. for yyk1, yyv1 := range v {
  14272. z.EncWriteMapElemKey()
  14273. yy2 := &yyk1
  14274. yy2.CodecEncodeSelf(e)
  14275. z.EncWriteMapElemValue()
  14276. if yyv1 == nil {
  14277. r.EncodeNil()
  14278. } else {
  14279. yyv1.CodecEncodeSelf(e)
  14280. }
  14281. }
  14282. z.EncWriteMapEnd()
  14283. }
  14284. func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
  14285. var h codecSelfer19780
  14286. z, r := GenHelperDecoder(d)
  14287. _, _, _ = h, z, r
  14288. yyv1 := *v
  14289. yyl1 := z.DecReadMapStart()
  14290. yybh1 := z.DecBasicHandle()
  14291. if yyv1 == nil {
  14292. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  14293. yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
  14294. *v = yyv1
  14295. }
  14296. var yymk1 stringUint64T
  14297. var yymv1 *stringUint64T
  14298. var yymg1, yymdn1, yyms1, yymok1 bool
  14299. if yybh1.MapValueReset {
  14300. yymg1 = true
  14301. }
  14302. if yyl1 != 0 {
  14303. yyhl1 := yyl1 > 0
  14304. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14305. z.DecReadMapElemKey()
  14306. if r.TryDecodeAsNil() {
  14307. yymk1 = stringUint64T{}
  14308. } else {
  14309. yymk1.CodecDecodeSelf(d)
  14310. }
  14311. yyms1 = true
  14312. if yymg1 {
  14313. yymv1, yymok1 = yyv1[yymk1]
  14314. if yymok1 {
  14315. yyms1 = false
  14316. }
  14317. } else {
  14318. yymv1 = nil
  14319. }
  14320. z.DecReadMapElemValue()
  14321. yymdn1 = false
  14322. if r.TryDecodeAsNil() {
  14323. yymdn1 = true
  14324. } else {
  14325. if yymv1 == nil {
  14326. yymv1 = new(stringUint64T)
  14327. }
  14328. yymv1.CodecDecodeSelf(d)
  14329. }
  14330. if yymdn1 {
  14331. if yybh1.DeleteOnNilMapValue {
  14332. delete(yyv1, yymk1)
  14333. } else {
  14334. yyv1[yymk1] = nil
  14335. }
  14336. } else if yyms1 && yyv1 != nil {
  14337. yyv1[yymk1] = yymv1
  14338. }
  14339. }
  14340. } // else len==0: TODO: Should we clear map entries?
  14341. z.DecReadMapEnd()
  14342. }
  14343. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  14344. var h codecSelfer19780
  14345. z, r := GenHelperEncoder(e)
  14346. _, _, _ = h, z, r
  14347. if v == nil {
  14348. r.EncodeNil()
  14349. return
  14350. }
  14351. z.EncWriteMapStart(len(v))
  14352. for yyk1, yyv1 := range v {
  14353. z.EncWriteMapElemKey()
  14354. if z.EncBasicHandle().StringToRaw {
  14355. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14356. } else {
  14357. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14358. }
  14359. z.EncWriteMapElemValue()
  14360. if yyv1 == nil {
  14361. r.EncodeNil()
  14362. } else {
  14363. yyv1.CodecEncodeSelf(e)
  14364. }
  14365. }
  14366. z.EncWriteMapEnd()
  14367. }
  14368. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  14369. var h codecSelfer19780
  14370. z, r := GenHelperDecoder(d)
  14371. _, _, _ = h, z, r
  14372. yyv1 := *v
  14373. yyl1 := z.DecReadMapStart()
  14374. yybh1 := z.DecBasicHandle()
  14375. if yyv1 == nil {
  14376. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  14377. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  14378. *v = yyv1
  14379. }
  14380. var yymk1 string
  14381. var yymv1 *TestStrucFlex
  14382. var yymg1, yymdn1, yyms1, yymok1 bool
  14383. if yybh1.MapValueReset {
  14384. yymg1 = true
  14385. }
  14386. if yyl1 != 0 {
  14387. yyhl1 := yyl1 > 0
  14388. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14389. z.DecReadMapElemKey()
  14390. if r.TryDecodeAsNil() {
  14391. yymk1 = ""
  14392. } else {
  14393. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  14394. }
  14395. yyms1 = true
  14396. if yymg1 {
  14397. yymv1, yymok1 = yyv1[yymk1]
  14398. if yymok1 {
  14399. yyms1 = false
  14400. }
  14401. } else {
  14402. yymv1 = nil
  14403. }
  14404. z.DecReadMapElemValue()
  14405. yymdn1 = false
  14406. if r.TryDecodeAsNil() {
  14407. yymdn1 = true
  14408. } else {
  14409. if yymv1 == nil {
  14410. yymv1 = new(TestStrucFlex)
  14411. }
  14412. yymv1.CodecDecodeSelf(d)
  14413. }
  14414. if yymdn1 {
  14415. if yybh1.DeleteOnNilMapValue {
  14416. delete(yyv1, yymk1)
  14417. } else {
  14418. yyv1[yymk1] = nil
  14419. }
  14420. } else if yyms1 && yyv1 != nil {
  14421. yyv1[yymk1] = yymv1
  14422. }
  14423. }
  14424. } // else len==0: TODO: Should we clear map entries?
  14425. z.DecReadMapEnd()
  14426. }
  14427. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  14428. var h codecSelfer19780
  14429. z, r := GenHelperEncoder(e)
  14430. _, _, _ = h, z, r
  14431. if v == nil {
  14432. r.EncodeNil()
  14433. return
  14434. }
  14435. z.EncWriteMapStart(len(v))
  14436. for yyk1, yyv1 := range v {
  14437. z.EncWriteMapElemKey()
  14438. if z.EncBasicHandle().StringToRaw {
  14439. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14440. } else {
  14441. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14442. }
  14443. z.EncWriteMapElemValue()
  14444. yy3 := &yyv1
  14445. yy3.CodecEncodeSelf(e)
  14446. }
  14447. z.EncWriteMapEnd()
  14448. }
  14449. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  14450. var h codecSelfer19780
  14451. z, r := GenHelperDecoder(d)
  14452. _, _, _ = h, z, r
  14453. yyv1 := *v
  14454. yyl1 := z.DecReadMapStart()
  14455. yybh1 := z.DecBasicHandle()
  14456. if yyv1 == nil {
  14457. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1536)
  14458. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  14459. *v = yyv1
  14460. }
  14461. var yymk1 string
  14462. var yymv1 TestStrucFlex
  14463. var yymg1, yymdn1 bool
  14464. if yybh1.MapValueReset {
  14465. yymg1 = true
  14466. }
  14467. if yyl1 != 0 {
  14468. yyhl1 := yyl1 > 0
  14469. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14470. z.DecReadMapElemKey()
  14471. if r.TryDecodeAsNil() {
  14472. yymk1 = ""
  14473. } else {
  14474. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  14475. }
  14476. if yymg1 {
  14477. yymv1 = yyv1[yymk1]
  14478. } else {
  14479. yymv1 = TestStrucFlex{}
  14480. }
  14481. z.DecReadMapElemValue()
  14482. yymdn1 = false
  14483. if r.TryDecodeAsNil() {
  14484. yymdn1 = true
  14485. } else {
  14486. yymv1.CodecDecodeSelf(d)
  14487. }
  14488. if yymdn1 {
  14489. if yybh1.DeleteOnNilMapValue {
  14490. delete(yyv1, yymk1)
  14491. } else {
  14492. yyv1[yymk1] = TestStrucFlex{}
  14493. }
  14494. } else if yyv1 != nil {
  14495. yyv1[yymk1] = yymv1
  14496. }
  14497. }
  14498. } // else len==0: TODO: Should we clear map entries?
  14499. z.DecReadMapEnd()
  14500. }
  14501. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  14502. var h codecSelfer19780
  14503. z, r := GenHelperEncoder(e)
  14504. _, _, _ = h, z, r
  14505. if v == nil {
  14506. r.EncodeNil()
  14507. return
  14508. }
  14509. z.EncWriteArrayStart(len(v))
  14510. for _, yyv1 := range v {
  14511. z.EncWriteArrayElem()
  14512. if yyv1 == nil {
  14513. r.EncodeNil()
  14514. } else {
  14515. yyv1.CodecEncodeSelf(e)
  14516. }
  14517. }
  14518. z.EncWriteArrayEnd()
  14519. }
  14520. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  14521. var h codecSelfer19780
  14522. z, r := GenHelperDecoder(d)
  14523. _, _, _ = h, z, r
  14524. yyv1 := *v
  14525. yyh1, yyl1 := z.DecSliceHelperStart()
  14526. var yyc1 bool
  14527. _ = yyc1
  14528. if yyl1 == 0 {
  14529. if yyv1 == nil {
  14530. yyv1 = []*TestStrucFlex{}
  14531. yyc1 = true
  14532. } else if len(yyv1) != 0 {
  14533. yyv1 = yyv1[:0]
  14534. yyc1 = true
  14535. }
  14536. } else {
  14537. yyhl1 := yyl1 > 0
  14538. var yyrl1 int
  14539. _ = yyrl1
  14540. if yyhl1 {
  14541. if yyl1 > cap(yyv1) {
  14542. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14543. if yyrl1 <= cap(yyv1) {
  14544. yyv1 = yyv1[:yyrl1]
  14545. } else {
  14546. yyv1 = make([]*TestStrucFlex, yyrl1)
  14547. }
  14548. yyc1 = true
  14549. } else if yyl1 != len(yyv1) {
  14550. yyv1 = yyv1[:yyl1]
  14551. yyc1 = true
  14552. }
  14553. }
  14554. var yyj1 int
  14555. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14556. if yyj1 == 0 && yyv1 == nil {
  14557. if yyhl1 {
  14558. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14559. } else {
  14560. yyrl1 = 8
  14561. }
  14562. yyv1 = make([]*TestStrucFlex, yyrl1)
  14563. yyc1 = true
  14564. }
  14565. yyh1.ElemContainerState(yyj1)
  14566. var yydb1 bool
  14567. if yyj1 >= len(yyv1) {
  14568. yyv1 = append(yyv1, nil)
  14569. yyc1 = true
  14570. }
  14571. if yydb1 {
  14572. z.DecSwallow()
  14573. } else {
  14574. if r.TryDecodeAsNil() {
  14575. yyv1[yyj1] = nil
  14576. } else {
  14577. if yyv1[yyj1] == nil {
  14578. yyv1[yyj1] = new(TestStrucFlex)
  14579. }
  14580. yyv1[yyj1].CodecDecodeSelf(d)
  14581. }
  14582. }
  14583. }
  14584. if yyj1 < len(yyv1) {
  14585. yyv1 = yyv1[:yyj1]
  14586. yyc1 = true
  14587. } else if yyj1 == 0 && yyv1 == nil {
  14588. yyv1 = make([]*TestStrucFlex, 0)
  14589. yyc1 = true
  14590. }
  14591. }
  14592. yyh1.End()
  14593. if yyc1 {
  14594. *v = yyv1
  14595. }
  14596. }