values_codecgen_generated_test.go 348 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674
  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. } // end block: if x slice == nil
  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. } // end block: if x slice == nil
  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. } // end block: if x slice == nil
  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. } // end block: if x slice == nil
  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 { // checkNil=true
  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. } // checkNil=true
  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. } else {
  188. x.codecDecodeSelfFromMap(yyl2, d)
  189. }
  190. z.DecReadMapEnd()
  191. } else if yyct2 == codecSelferValueTypeArray19780 {
  192. yyl2 := z.DecReadArrayStart()
  193. if yyl2 != 0 {
  194. x.codecDecodeSelfFromArray(yyl2, d)
  195. }
  196. z.DecReadArrayEnd()
  197. } else {
  198. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  199. }
  200. }
  201. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  202. var h codecSelfer19780
  203. z, r := GenHelperDecoder(d)
  204. _, _, _ = h, z, r
  205. var yyhl3 bool = l >= 0
  206. for yyj3 := 0; ; yyj3++ {
  207. if yyhl3 {
  208. if yyj3 >= l {
  209. break
  210. }
  211. } else {
  212. if r.CheckBreak() {
  213. break
  214. }
  215. }
  216. z.DecReadMapElemKey()
  217. yys3 := z.StringView(r.DecodeStringAsBytes())
  218. z.DecReadMapElemValue()
  219. switch yys3 {
  220. case "S":
  221. if r.TryDecodeAsNil() {
  222. x.S = ""
  223. } else {
  224. x.S = (string)(string(r.DecodeStringAsBytes()))
  225. }
  226. case "U":
  227. if r.TryDecodeAsNil() {
  228. x.U = 0
  229. } else {
  230. x.U = (uint64)(r.DecodeUint64())
  231. }
  232. default:
  233. z.DecStructFieldNotFound(-1, yys3)
  234. } // end switch yys3
  235. } // end for yyj3
  236. }
  237. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  238. var h codecSelfer19780
  239. z, r := GenHelperDecoder(d)
  240. _, _, _ = h, z, r
  241. var yyj6 int
  242. var yyb6 bool
  243. var yyhl6 bool = l >= 0
  244. yyj6++
  245. if yyhl6 {
  246. yyb6 = yyj6 > l
  247. } else {
  248. yyb6 = r.CheckBreak()
  249. }
  250. if yyb6 {
  251. z.DecReadArrayEnd()
  252. return
  253. }
  254. z.DecReadArrayElem()
  255. if r.TryDecodeAsNil() {
  256. x.S = ""
  257. } else {
  258. x.S = (string)(string(r.DecodeStringAsBytes()))
  259. }
  260. yyj6++
  261. if yyhl6 {
  262. yyb6 = yyj6 > l
  263. } else {
  264. yyb6 = r.CheckBreak()
  265. }
  266. if yyb6 {
  267. z.DecReadArrayEnd()
  268. return
  269. }
  270. z.DecReadArrayElem()
  271. if r.TryDecodeAsNil() {
  272. x.U = 0
  273. } else {
  274. x.U = (uint64)(r.DecodeUint64())
  275. }
  276. for {
  277. yyj6++
  278. if yyhl6 {
  279. yyb6 = yyj6 > l
  280. } else {
  281. yyb6 = r.CheckBreak()
  282. }
  283. if yyb6 {
  284. break
  285. }
  286. z.DecReadArrayElem()
  287. z.DecStructFieldNotFound(yyj6-1, "")
  288. }
  289. }
  290. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  291. var h codecSelfer19780
  292. z, r := GenHelperEncoder(e)
  293. _, _, _ = h, z, r
  294. if x == nil {
  295. r.EncodeNil()
  296. } else { // checkNil=true
  297. yysep2 := !z.EncBinary()
  298. yy2arr2 := z.EncBasicHandle().StructToArray
  299. _, _ = yysep2, yy2arr2
  300. const yyr2 bool = false // struct tag has 'toArray'
  301. if yyr2 || yy2arr2 {
  302. z.EncWriteArrayStart(15)
  303. z.EncWriteArrayElem()
  304. if z.EncBasicHandle().StringToRaw {
  305. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  306. } else {
  307. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  308. }
  309. z.EncWriteArrayElem()
  310. r.EncodeInt(int64(x.AI64))
  311. z.EncWriteArrayElem()
  312. r.EncodeInt(int64(x.AI16))
  313. z.EncWriteArrayElem()
  314. r.EncodeUint(uint64(x.AUi64))
  315. z.EncWriteArrayElem()
  316. if x.ASslice == nil {
  317. r.EncodeNil()
  318. } else {
  319. z.F.EncSliceStringV(x.ASslice, e)
  320. } // end block: if x.ASslice slice == nil
  321. z.EncWriteArrayElem()
  322. if x.AI64slice == nil {
  323. r.EncodeNil()
  324. } else {
  325. z.F.EncSliceInt64V(x.AI64slice, e)
  326. } // end block: if x.AI64slice slice == nil
  327. z.EncWriteArrayElem()
  328. if x.AUi64slice == nil {
  329. r.EncodeNil()
  330. } else {
  331. z.F.EncSliceUint64V(x.AUi64slice, e)
  332. } // end block: if x.AUi64slice slice == nil
  333. z.EncWriteArrayElem()
  334. if x.AF64slice == nil {
  335. r.EncodeNil()
  336. } else {
  337. z.F.EncSliceFloat64V(x.AF64slice, e)
  338. } // end block: if x.AF64slice slice == nil
  339. z.EncWriteArrayElem()
  340. if x.AF32slice == nil {
  341. r.EncodeNil()
  342. } else {
  343. z.F.EncSliceFloat32V(x.AF32slice, e)
  344. } // end block: if x.AF32slice slice == nil
  345. z.EncWriteArrayElem()
  346. if x.AMSU16 == nil {
  347. r.EncodeNil()
  348. } else {
  349. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  350. } // end block: if x.AMSU16 map == nil
  351. z.EncWriteArrayElem()
  352. yy28 := &x.AI64arr0
  353. h.encArray0int64((*[0]int64)(yy28), e)
  354. z.EncWriteArrayElem()
  355. if x.AI64slice0 == nil {
  356. r.EncodeNil()
  357. } else {
  358. z.F.EncSliceInt64V(x.AI64slice0, e)
  359. } // end block: if x.AI64slice0 slice == nil
  360. z.EncWriteArrayElem()
  361. if x.AUi64sliceN == nil {
  362. r.EncodeNil()
  363. } else {
  364. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  365. } // end block: if x.AUi64sliceN slice == nil
  366. z.EncWriteArrayElem()
  367. if x.AMSU16N == nil {
  368. r.EncodeNil()
  369. } else {
  370. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  371. } // end block: if x.AMSU16N map == nil
  372. z.EncWriteArrayElem()
  373. if x.AMSU16E == nil {
  374. r.EncodeNil()
  375. } else {
  376. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  377. } // end block: if x.AMSU16E map == nil
  378. z.EncWriteArrayEnd()
  379. } else {
  380. z.EncWriteMapStart(15)
  381. z.EncWriteMapElemKey()
  382. if z.IsJSONHandle() {
  383. z.WriteStr("\"AS\"")
  384. } else {
  385. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  386. }
  387. z.EncWriteMapElemValue()
  388. if z.EncBasicHandle().StringToRaw {
  389. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  390. } else {
  391. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  392. }
  393. z.EncWriteMapElemKey()
  394. if z.IsJSONHandle() {
  395. z.WriteStr("\"AI64\"")
  396. } else {
  397. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  398. }
  399. z.EncWriteMapElemValue()
  400. r.EncodeInt(int64(x.AI64))
  401. z.EncWriteMapElemKey()
  402. if z.IsJSONHandle() {
  403. z.WriteStr("\"AI16\"")
  404. } else {
  405. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  406. }
  407. z.EncWriteMapElemValue()
  408. r.EncodeInt(int64(x.AI16))
  409. z.EncWriteMapElemKey()
  410. if z.IsJSONHandle() {
  411. z.WriteStr("\"AUi64\"")
  412. } else {
  413. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  414. }
  415. z.EncWriteMapElemValue()
  416. r.EncodeUint(uint64(x.AUi64))
  417. z.EncWriteMapElemKey()
  418. if z.IsJSONHandle() {
  419. z.WriteStr("\"ASslice\"")
  420. } else {
  421. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  422. }
  423. z.EncWriteMapElemValue()
  424. if x.ASslice == nil {
  425. r.EncodeNil()
  426. } else {
  427. z.F.EncSliceStringV(x.ASslice, e)
  428. } // end block: if x.ASslice slice == nil
  429. z.EncWriteMapElemKey()
  430. if z.IsJSONHandle() {
  431. z.WriteStr("\"AI64slice\"")
  432. } else {
  433. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  434. }
  435. z.EncWriteMapElemValue()
  436. if x.AI64slice == nil {
  437. r.EncodeNil()
  438. } else {
  439. z.F.EncSliceInt64V(x.AI64slice, e)
  440. } // end block: if x.AI64slice slice == nil
  441. z.EncWriteMapElemKey()
  442. if z.IsJSONHandle() {
  443. z.WriteStr("\"AUi64slice\"")
  444. } else {
  445. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  446. }
  447. z.EncWriteMapElemValue()
  448. if x.AUi64slice == nil {
  449. r.EncodeNil()
  450. } else {
  451. z.F.EncSliceUint64V(x.AUi64slice, e)
  452. } // end block: if x.AUi64slice slice == nil
  453. z.EncWriteMapElemKey()
  454. if z.IsJSONHandle() {
  455. z.WriteStr("\"AF64slice\"")
  456. } else {
  457. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  458. }
  459. z.EncWriteMapElemValue()
  460. if x.AF64slice == nil {
  461. r.EncodeNil()
  462. } else {
  463. z.F.EncSliceFloat64V(x.AF64slice, e)
  464. } // end block: if x.AF64slice slice == nil
  465. z.EncWriteMapElemKey()
  466. if z.IsJSONHandle() {
  467. z.WriteStr("\"AF32slice\"")
  468. } else {
  469. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  470. }
  471. z.EncWriteMapElemValue()
  472. if x.AF32slice == nil {
  473. r.EncodeNil()
  474. } else {
  475. z.F.EncSliceFloat32V(x.AF32slice, e)
  476. } // end block: if x.AF32slice slice == nil
  477. z.EncWriteMapElemKey()
  478. if z.IsJSONHandle() {
  479. z.WriteStr("\"AMSU16\"")
  480. } else {
  481. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  482. }
  483. z.EncWriteMapElemValue()
  484. if x.AMSU16 == nil {
  485. r.EncodeNil()
  486. } else {
  487. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  488. } // end block: if x.AMSU16 map == nil
  489. z.EncWriteMapElemKey()
  490. if z.IsJSONHandle() {
  491. z.WriteStr("\"AI64arr0\"")
  492. } else {
  493. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  494. }
  495. z.EncWriteMapElemValue()
  496. yy44 := &x.AI64arr0
  497. h.encArray0int64((*[0]int64)(yy44), e)
  498. z.EncWriteMapElemKey()
  499. if z.IsJSONHandle() {
  500. z.WriteStr("\"AI64slice0\"")
  501. } else {
  502. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  503. }
  504. z.EncWriteMapElemValue()
  505. if x.AI64slice0 == nil {
  506. r.EncodeNil()
  507. } else {
  508. z.F.EncSliceInt64V(x.AI64slice0, e)
  509. } // end block: if x.AI64slice0 slice == nil
  510. z.EncWriteMapElemKey()
  511. if z.IsJSONHandle() {
  512. z.WriteStr("\"AUi64sliceN\"")
  513. } else {
  514. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  515. }
  516. z.EncWriteMapElemValue()
  517. if x.AUi64sliceN == nil {
  518. r.EncodeNil()
  519. } else {
  520. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  521. } // end block: if x.AUi64sliceN slice == nil
  522. z.EncWriteMapElemKey()
  523. if z.IsJSONHandle() {
  524. z.WriteStr("\"AMSU16N\"")
  525. } else {
  526. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  527. }
  528. z.EncWriteMapElemValue()
  529. if x.AMSU16N == nil {
  530. r.EncodeNil()
  531. } else {
  532. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  533. } // end block: if x.AMSU16N map == nil
  534. z.EncWriteMapElemKey()
  535. if z.IsJSONHandle() {
  536. z.WriteStr("\"AMSU16E\"")
  537. } else {
  538. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  539. }
  540. z.EncWriteMapElemValue()
  541. if x.AMSU16E == nil {
  542. r.EncodeNil()
  543. } else {
  544. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  545. } // end block: if x.AMSU16E map == nil
  546. z.EncWriteMapEnd()
  547. }
  548. } // checkNil=true
  549. }
  550. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  551. var h codecSelfer19780
  552. z, r := GenHelperDecoder(d)
  553. _, _, _ = h, z, r
  554. yyct2 := r.ContainerType()
  555. if yyct2 == codecSelferValueTypeMap19780 {
  556. yyl2 := z.DecReadMapStart()
  557. if yyl2 == 0 {
  558. } else {
  559. x.codecDecodeSelfFromMap(yyl2, d)
  560. }
  561. z.DecReadMapEnd()
  562. } else if yyct2 == codecSelferValueTypeArray19780 {
  563. yyl2 := z.DecReadArrayStart()
  564. if yyl2 != 0 {
  565. x.codecDecodeSelfFromArray(yyl2, d)
  566. }
  567. z.DecReadArrayEnd()
  568. } else {
  569. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  570. }
  571. }
  572. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  573. var h codecSelfer19780
  574. z, r := GenHelperDecoder(d)
  575. _, _, _ = h, z, r
  576. var yyhl3 bool = l >= 0
  577. for yyj3 := 0; ; yyj3++ {
  578. if yyhl3 {
  579. if yyj3 >= l {
  580. break
  581. }
  582. } else {
  583. if r.CheckBreak() {
  584. break
  585. }
  586. }
  587. z.DecReadMapElemKey()
  588. yys3 := z.StringView(r.DecodeStringAsBytes())
  589. z.DecReadMapElemValue()
  590. switch yys3 {
  591. case "AS":
  592. if r.TryDecodeAsNil() {
  593. x.AS = ""
  594. } else {
  595. x.AS = (string)(string(r.DecodeStringAsBytes()))
  596. }
  597. case "AI64":
  598. if r.TryDecodeAsNil() {
  599. x.AI64 = 0
  600. } else {
  601. x.AI64 = (int64)(r.DecodeInt64())
  602. }
  603. case "AI16":
  604. if r.TryDecodeAsNil() {
  605. x.AI16 = 0
  606. } else {
  607. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  608. }
  609. case "AUi64":
  610. if r.TryDecodeAsNil() {
  611. x.AUi64 = 0
  612. } else {
  613. x.AUi64 = (uint64)(r.DecodeUint64())
  614. }
  615. case "ASslice":
  616. if r.TryDecodeAsNil() {
  617. x.ASslice = nil
  618. } else {
  619. z.F.DecSliceStringX(&x.ASslice, d)
  620. }
  621. case "AI64slice":
  622. if r.TryDecodeAsNil() {
  623. x.AI64slice = nil
  624. } else {
  625. z.F.DecSliceInt64X(&x.AI64slice, d)
  626. }
  627. case "AUi64slice":
  628. if r.TryDecodeAsNil() {
  629. x.AUi64slice = nil
  630. } else {
  631. z.F.DecSliceUint64X(&x.AUi64slice, d)
  632. }
  633. case "AF64slice":
  634. if r.TryDecodeAsNil() {
  635. x.AF64slice = nil
  636. } else {
  637. z.F.DecSliceFloat64X(&x.AF64slice, d)
  638. }
  639. case "AF32slice":
  640. if r.TryDecodeAsNil() {
  641. x.AF32slice = nil
  642. } else {
  643. z.F.DecSliceFloat32X(&x.AF32slice, d)
  644. }
  645. case "AMSU16":
  646. if r.TryDecodeAsNil() {
  647. x.AMSU16 = nil
  648. } else {
  649. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  650. }
  651. case "AI64arr0":
  652. if r.TryDecodeAsNil() {
  653. x.AI64arr0 = [0]int64{}
  654. } else {
  655. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  656. }
  657. case "AI64slice0":
  658. if r.TryDecodeAsNil() {
  659. x.AI64slice0 = nil
  660. } else {
  661. z.F.DecSliceInt64X(&x.AI64slice0, d)
  662. }
  663. case "AUi64sliceN":
  664. if r.TryDecodeAsNil() {
  665. x.AUi64sliceN = nil
  666. } else {
  667. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  668. }
  669. case "AMSU16N":
  670. if r.TryDecodeAsNil() {
  671. x.AMSU16N = nil
  672. } else {
  673. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  674. }
  675. case "AMSU16E":
  676. if r.TryDecodeAsNil() {
  677. x.AMSU16E = nil
  678. } else {
  679. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  680. }
  681. default:
  682. z.DecStructFieldNotFound(-1, yys3)
  683. } // end switch yys3
  684. } // end for yyj3
  685. }
  686. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  687. var h codecSelfer19780
  688. z, r := GenHelperDecoder(d)
  689. _, _, _ = h, z, r
  690. var yyj30 int
  691. var yyb30 bool
  692. var yyhl30 bool = l >= 0
  693. yyj30++
  694. if yyhl30 {
  695. yyb30 = yyj30 > l
  696. } else {
  697. yyb30 = r.CheckBreak()
  698. }
  699. if yyb30 {
  700. z.DecReadArrayEnd()
  701. return
  702. }
  703. z.DecReadArrayElem()
  704. if r.TryDecodeAsNil() {
  705. x.AS = ""
  706. } else {
  707. x.AS = (string)(string(r.DecodeStringAsBytes()))
  708. }
  709. yyj30++
  710. if yyhl30 {
  711. yyb30 = yyj30 > l
  712. } else {
  713. yyb30 = r.CheckBreak()
  714. }
  715. if yyb30 {
  716. z.DecReadArrayEnd()
  717. return
  718. }
  719. z.DecReadArrayElem()
  720. if r.TryDecodeAsNil() {
  721. x.AI64 = 0
  722. } else {
  723. x.AI64 = (int64)(r.DecodeInt64())
  724. }
  725. yyj30++
  726. if yyhl30 {
  727. yyb30 = yyj30 > l
  728. } else {
  729. yyb30 = r.CheckBreak()
  730. }
  731. if yyb30 {
  732. z.DecReadArrayEnd()
  733. return
  734. }
  735. z.DecReadArrayElem()
  736. if r.TryDecodeAsNil() {
  737. x.AI16 = 0
  738. } else {
  739. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  740. }
  741. yyj30++
  742. if yyhl30 {
  743. yyb30 = yyj30 > l
  744. } else {
  745. yyb30 = r.CheckBreak()
  746. }
  747. if yyb30 {
  748. z.DecReadArrayEnd()
  749. return
  750. }
  751. z.DecReadArrayElem()
  752. if r.TryDecodeAsNil() {
  753. x.AUi64 = 0
  754. } else {
  755. x.AUi64 = (uint64)(r.DecodeUint64())
  756. }
  757. yyj30++
  758. if yyhl30 {
  759. yyb30 = yyj30 > l
  760. } else {
  761. yyb30 = r.CheckBreak()
  762. }
  763. if yyb30 {
  764. z.DecReadArrayEnd()
  765. return
  766. }
  767. z.DecReadArrayElem()
  768. if r.TryDecodeAsNil() {
  769. x.ASslice = nil
  770. } else {
  771. z.F.DecSliceStringX(&x.ASslice, d)
  772. }
  773. yyj30++
  774. if yyhl30 {
  775. yyb30 = yyj30 > l
  776. } else {
  777. yyb30 = r.CheckBreak()
  778. }
  779. if yyb30 {
  780. z.DecReadArrayEnd()
  781. return
  782. }
  783. z.DecReadArrayElem()
  784. if r.TryDecodeAsNil() {
  785. x.AI64slice = nil
  786. } else {
  787. z.F.DecSliceInt64X(&x.AI64slice, d)
  788. }
  789. yyj30++
  790. if yyhl30 {
  791. yyb30 = yyj30 > l
  792. } else {
  793. yyb30 = r.CheckBreak()
  794. }
  795. if yyb30 {
  796. z.DecReadArrayEnd()
  797. return
  798. }
  799. z.DecReadArrayElem()
  800. if r.TryDecodeAsNil() {
  801. x.AUi64slice = nil
  802. } else {
  803. z.F.DecSliceUint64X(&x.AUi64slice, d)
  804. }
  805. yyj30++
  806. if yyhl30 {
  807. yyb30 = yyj30 > l
  808. } else {
  809. yyb30 = r.CheckBreak()
  810. }
  811. if yyb30 {
  812. z.DecReadArrayEnd()
  813. return
  814. }
  815. z.DecReadArrayElem()
  816. if r.TryDecodeAsNil() {
  817. x.AF64slice = nil
  818. } else {
  819. z.F.DecSliceFloat64X(&x.AF64slice, d)
  820. }
  821. yyj30++
  822. if yyhl30 {
  823. yyb30 = yyj30 > l
  824. } else {
  825. yyb30 = r.CheckBreak()
  826. }
  827. if yyb30 {
  828. z.DecReadArrayEnd()
  829. return
  830. }
  831. z.DecReadArrayElem()
  832. if r.TryDecodeAsNil() {
  833. x.AF32slice = nil
  834. } else {
  835. z.F.DecSliceFloat32X(&x.AF32slice, d)
  836. }
  837. yyj30++
  838. if yyhl30 {
  839. yyb30 = yyj30 > l
  840. } else {
  841. yyb30 = r.CheckBreak()
  842. }
  843. if yyb30 {
  844. z.DecReadArrayEnd()
  845. return
  846. }
  847. z.DecReadArrayElem()
  848. if r.TryDecodeAsNil() {
  849. x.AMSU16 = nil
  850. } else {
  851. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  852. }
  853. yyj30++
  854. if yyhl30 {
  855. yyb30 = yyj30 > l
  856. } else {
  857. yyb30 = r.CheckBreak()
  858. }
  859. if yyb30 {
  860. z.DecReadArrayEnd()
  861. return
  862. }
  863. z.DecReadArrayElem()
  864. if r.TryDecodeAsNil() {
  865. x.AI64arr0 = [0]int64{}
  866. } else {
  867. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  868. }
  869. yyj30++
  870. if yyhl30 {
  871. yyb30 = yyj30 > l
  872. } else {
  873. yyb30 = r.CheckBreak()
  874. }
  875. if yyb30 {
  876. z.DecReadArrayEnd()
  877. return
  878. }
  879. z.DecReadArrayElem()
  880. if r.TryDecodeAsNil() {
  881. x.AI64slice0 = nil
  882. } else {
  883. z.F.DecSliceInt64X(&x.AI64slice0, d)
  884. }
  885. yyj30++
  886. if yyhl30 {
  887. yyb30 = yyj30 > l
  888. } else {
  889. yyb30 = r.CheckBreak()
  890. }
  891. if yyb30 {
  892. z.DecReadArrayEnd()
  893. return
  894. }
  895. z.DecReadArrayElem()
  896. if r.TryDecodeAsNil() {
  897. x.AUi64sliceN = nil
  898. } else {
  899. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  900. }
  901. yyj30++
  902. if yyhl30 {
  903. yyb30 = yyj30 > l
  904. } else {
  905. yyb30 = r.CheckBreak()
  906. }
  907. if yyb30 {
  908. z.DecReadArrayEnd()
  909. return
  910. }
  911. z.DecReadArrayElem()
  912. if r.TryDecodeAsNil() {
  913. x.AMSU16N = nil
  914. } else {
  915. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  916. }
  917. yyj30++
  918. if yyhl30 {
  919. yyb30 = yyj30 > l
  920. } else {
  921. yyb30 = r.CheckBreak()
  922. }
  923. if yyb30 {
  924. z.DecReadArrayEnd()
  925. return
  926. }
  927. z.DecReadArrayElem()
  928. if r.TryDecodeAsNil() {
  929. x.AMSU16E = nil
  930. } else {
  931. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  932. }
  933. for {
  934. yyj30++
  935. if yyhl30 {
  936. yyb30 = yyj30 > l
  937. } else {
  938. yyb30 = r.CheckBreak()
  939. }
  940. if yyb30 {
  941. break
  942. }
  943. z.DecReadArrayElem()
  944. z.DecStructFieldNotFound(yyj30-1, "")
  945. }
  946. }
  947. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  948. var h codecSelfer19780
  949. z, r := GenHelperEncoder(e)
  950. _, _, _ = h, z, r
  951. if x == nil {
  952. r.EncodeNil()
  953. } else { // checkNil=true
  954. yysep2 := !z.EncBinary()
  955. yy2arr2 := z.EncBasicHandle().StructToArray
  956. _, _ = yysep2, yy2arr2
  957. const yyr2 bool = false // struct tag has 'toArray'
  958. if yyr2 || yy2arr2 {
  959. z.EncWriteArrayStart(17)
  960. z.EncWriteArrayElem()
  961. if z.EncBasicHandle().StringToRaw {
  962. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  963. } else {
  964. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  965. }
  966. z.EncWriteArrayElem()
  967. r.EncodeInt(int64(x.I64))
  968. z.EncWriteArrayElem()
  969. r.EncodeInt(int64(x.I8))
  970. z.EncWriteArrayElem()
  971. r.EncodeUint(uint64(x.Ui64))
  972. z.EncWriteArrayElem()
  973. r.EncodeUint(uint64(x.Ui8))
  974. z.EncWriteArrayElem()
  975. r.EncodeFloat64(float64(x.F64))
  976. z.EncWriteArrayElem()
  977. r.EncodeFloat32(float32(x.F32))
  978. z.EncWriteArrayElem()
  979. r.EncodeBool(bool(x.B))
  980. z.EncWriteArrayElem()
  981. if x.Sslice == nil {
  982. r.EncodeNil()
  983. } else {
  984. z.F.EncSliceStringV(x.Sslice, e)
  985. } // end block: if x.Sslice slice == nil
  986. z.EncWriteArrayElem()
  987. if x.I16slice == nil {
  988. r.EncodeNil()
  989. } else {
  990. z.F.EncSliceInt16V(x.I16slice, e)
  991. } // end block: if x.I16slice slice == nil
  992. z.EncWriteArrayElem()
  993. if x.Ui64slice == nil {
  994. r.EncodeNil()
  995. } else {
  996. z.F.EncSliceUint64V(x.Ui64slice, e)
  997. } // end block: if x.Ui64slice slice == nil
  998. z.EncWriteArrayElem()
  999. if x.Ui8slice == nil {
  1000. r.EncodeNil()
  1001. } else {
  1002. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1003. } // end block: if x.Ui8slice slice == nil
  1004. z.EncWriteArrayElem()
  1005. if x.Bslice == nil {
  1006. r.EncodeNil()
  1007. } else {
  1008. z.F.EncSliceBoolV(x.Bslice, e)
  1009. } // end block: if x.Bslice slice == nil
  1010. z.EncWriteArrayElem()
  1011. if x.Iptrslice == nil {
  1012. r.EncodeNil()
  1013. } else {
  1014. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1015. } // end block: if x.Iptrslice slice == nil
  1016. z.EncWriteArrayElem()
  1017. x.WrapSliceInt64.CodecEncodeSelf(e)
  1018. z.EncWriteArrayElem()
  1019. x.WrapSliceString.CodecEncodeSelf(e)
  1020. z.EncWriteArrayElem()
  1021. if x.Msi64 == nil {
  1022. r.EncodeNil()
  1023. } else {
  1024. z.F.EncMapStringInt64V(x.Msi64, e)
  1025. } // end block: if x.Msi64 map == nil
  1026. z.EncWriteArrayEnd()
  1027. } else {
  1028. z.EncWriteMapStart(17)
  1029. z.EncWriteMapElemKey()
  1030. if z.IsJSONHandle() {
  1031. z.WriteStr("\"S\"")
  1032. } else {
  1033. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1034. }
  1035. z.EncWriteMapElemValue()
  1036. if z.EncBasicHandle().StringToRaw {
  1037. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1038. } else {
  1039. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1040. }
  1041. z.EncWriteMapElemKey()
  1042. if z.IsJSONHandle() {
  1043. z.WriteStr("\"I64\"")
  1044. } else {
  1045. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1046. }
  1047. z.EncWriteMapElemValue()
  1048. r.EncodeInt(int64(x.I64))
  1049. z.EncWriteMapElemKey()
  1050. if z.IsJSONHandle() {
  1051. z.WriteStr("\"I8\"")
  1052. } else {
  1053. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1054. }
  1055. z.EncWriteMapElemValue()
  1056. r.EncodeInt(int64(x.I8))
  1057. z.EncWriteMapElemKey()
  1058. if z.IsJSONHandle() {
  1059. z.WriteStr("\"Ui64\"")
  1060. } else {
  1061. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1062. }
  1063. z.EncWriteMapElemValue()
  1064. r.EncodeUint(uint64(x.Ui64))
  1065. z.EncWriteMapElemKey()
  1066. if z.IsJSONHandle() {
  1067. z.WriteStr("\"Ui8\"")
  1068. } else {
  1069. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1070. }
  1071. z.EncWriteMapElemValue()
  1072. r.EncodeUint(uint64(x.Ui8))
  1073. z.EncWriteMapElemKey()
  1074. if z.IsJSONHandle() {
  1075. z.WriteStr("\"F64\"")
  1076. } else {
  1077. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1078. }
  1079. z.EncWriteMapElemValue()
  1080. r.EncodeFloat64(float64(x.F64))
  1081. z.EncWriteMapElemKey()
  1082. if z.IsJSONHandle() {
  1083. z.WriteStr("\"F32\"")
  1084. } else {
  1085. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1086. }
  1087. z.EncWriteMapElemValue()
  1088. r.EncodeFloat32(float32(x.F32))
  1089. z.EncWriteMapElemKey()
  1090. if z.IsJSONHandle() {
  1091. z.WriteStr("\"B\"")
  1092. } else {
  1093. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1094. }
  1095. z.EncWriteMapElemValue()
  1096. r.EncodeBool(bool(x.B))
  1097. z.EncWriteMapElemKey()
  1098. if z.IsJSONHandle() {
  1099. z.WriteStr("\"Sslice\"")
  1100. } else {
  1101. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1102. }
  1103. z.EncWriteMapElemValue()
  1104. if x.Sslice == nil {
  1105. r.EncodeNil()
  1106. } else {
  1107. z.F.EncSliceStringV(x.Sslice, e)
  1108. } // end block: if x.Sslice slice == nil
  1109. z.EncWriteMapElemKey()
  1110. if z.IsJSONHandle() {
  1111. z.WriteStr("\"I16slice\"")
  1112. } else {
  1113. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1114. }
  1115. z.EncWriteMapElemValue()
  1116. if x.I16slice == nil {
  1117. r.EncodeNil()
  1118. } else {
  1119. z.F.EncSliceInt16V(x.I16slice, e)
  1120. } // end block: if x.I16slice slice == nil
  1121. z.EncWriteMapElemKey()
  1122. if z.IsJSONHandle() {
  1123. z.WriteStr("\"Ui64slice\"")
  1124. } else {
  1125. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1126. }
  1127. z.EncWriteMapElemValue()
  1128. if x.Ui64slice == nil {
  1129. r.EncodeNil()
  1130. } else {
  1131. z.F.EncSliceUint64V(x.Ui64slice, e)
  1132. } // end block: if x.Ui64slice slice == nil
  1133. z.EncWriteMapElemKey()
  1134. if z.IsJSONHandle() {
  1135. z.WriteStr("\"Ui8slice\"")
  1136. } else {
  1137. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1138. }
  1139. z.EncWriteMapElemValue()
  1140. if x.Ui8slice == nil {
  1141. r.EncodeNil()
  1142. } else {
  1143. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1144. } // end block: if x.Ui8slice slice == nil
  1145. z.EncWriteMapElemKey()
  1146. if z.IsJSONHandle() {
  1147. z.WriteStr("\"Bslice\"")
  1148. } else {
  1149. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1150. }
  1151. z.EncWriteMapElemValue()
  1152. if x.Bslice == nil {
  1153. r.EncodeNil()
  1154. } else {
  1155. z.F.EncSliceBoolV(x.Bslice, e)
  1156. } // end block: if x.Bslice slice == nil
  1157. z.EncWriteMapElemKey()
  1158. if z.IsJSONHandle() {
  1159. z.WriteStr("\"Iptrslice\"")
  1160. } else {
  1161. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1162. }
  1163. z.EncWriteMapElemValue()
  1164. if x.Iptrslice == nil {
  1165. r.EncodeNil()
  1166. } else {
  1167. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1168. } // end block: if x.Iptrslice slice == nil
  1169. z.EncWriteMapElemKey()
  1170. if z.IsJSONHandle() {
  1171. z.WriteStr("\"WrapSliceInt64\"")
  1172. } else {
  1173. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1174. }
  1175. z.EncWriteMapElemValue()
  1176. x.WrapSliceInt64.CodecEncodeSelf(e)
  1177. z.EncWriteMapElemKey()
  1178. if z.IsJSONHandle() {
  1179. z.WriteStr("\"WrapSliceString\"")
  1180. } else {
  1181. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1182. }
  1183. z.EncWriteMapElemValue()
  1184. x.WrapSliceString.CodecEncodeSelf(e)
  1185. z.EncWriteMapElemKey()
  1186. if z.IsJSONHandle() {
  1187. z.WriteStr("\"Msi64\"")
  1188. } else {
  1189. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1190. }
  1191. z.EncWriteMapElemValue()
  1192. if x.Msi64 == nil {
  1193. r.EncodeNil()
  1194. } else {
  1195. z.F.EncMapStringInt64V(x.Msi64, e)
  1196. } // end block: if x.Msi64 map == nil
  1197. z.EncWriteMapEnd()
  1198. }
  1199. } // checkNil=true
  1200. }
  1201. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1202. var h codecSelfer19780
  1203. z, r := GenHelperDecoder(d)
  1204. _, _, _ = h, z, r
  1205. yyct2 := r.ContainerType()
  1206. if yyct2 == codecSelferValueTypeMap19780 {
  1207. yyl2 := z.DecReadMapStart()
  1208. if yyl2 == 0 {
  1209. } else {
  1210. x.codecDecodeSelfFromMap(yyl2, d)
  1211. }
  1212. z.DecReadMapEnd()
  1213. } else if yyct2 == codecSelferValueTypeArray19780 {
  1214. yyl2 := z.DecReadArrayStart()
  1215. if yyl2 != 0 {
  1216. x.codecDecodeSelfFromArray(yyl2, d)
  1217. }
  1218. z.DecReadArrayEnd()
  1219. } else {
  1220. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1221. }
  1222. }
  1223. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1224. var h codecSelfer19780
  1225. z, r := GenHelperDecoder(d)
  1226. _, _, _ = h, z, r
  1227. var yyhl3 bool = l >= 0
  1228. for yyj3 := 0; ; yyj3++ {
  1229. if yyhl3 {
  1230. if yyj3 >= l {
  1231. break
  1232. }
  1233. } else {
  1234. if r.CheckBreak() {
  1235. break
  1236. }
  1237. }
  1238. z.DecReadMapElemKey()
  1239. yys3 := z.StringView(r.DecodeStringAsBytes())
  1240. z.DecReadMapElemValue()
  1241. switch yys3 {
  1242. case "S":
  1243. if r.TryDecodeAsNil() {
  1244. x.S = ""
  1245. } else {
  1246. x.S = (string)(string(r.DecodeStringAsBytes()))
  1247. }
  1248. case "I64":
  1249. if r.TryDecodeAsNil() {
  1250. x.I64 = 0
  1251. } else {
  1252. x.I64 = (int64)(r.DecodeInt64())
  1253. }
  1254. case "I8":
  1255. if r.TryDecodeAsNil() {
  1256. x.I8 = 0
  1257. } else {
  1258. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1259. }
  1260. case "Ui64":
  1261. if r.TryDecodeAsNil() {
  1262. x.Ui64 = 0
  1263. } else {
  1264. x.Ui64 = (uint64)(r.DecodeUint64())
  1265. }
  1266. case "Ui8":
  1267. if r.TryDecodeAsNil() {
  1268. x.Ui8 = 0
  1269. } else {
  1270. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1271. }
  1272. case "F64":
  1273. if r.TryDecodeAsNil() {
  1274. x.F64 = 0
  1275. } else {
  1276. x.F64 = (float64)(r.DecodeFloat64())
  1277. }
  1278. case "F32":
  1279. if r.TryDecodeAsNil() {
  1280. x.F32 = 0
  1281. } else {
  1282. x.F32 = (float32)(z.DecDecodeFloat32())
  1283. }
  1284. case "B":
  1285. if r.TryDecodeAsNil() {
  1286. x.B = false
  1287. } else {
  1288. x.B = (bool)(r.DecodeBool())
  1289. }
  1290. case "Sslice":
  1291. if r.TryDecodeAsNil() {
  1292. x.Sslice = nil
  1293. } else {
  1294. z.F.DecSliceStringX(&x.Sslice, d)
  1295. }
  1296. case "I16slice":
  1297. if r.TryDecodeAsNil() {
  1298. x.I16slice = nil
  1299. } else {
  1300. z.F.DecSliceInt16X(&x.I16slice, d)
  1301. }
  1302. case "Ui64slice":
  1303. if r.TryDecodeAsNil() {
  1304. x.Ui64slice = nil
  1305. } else {
  1306. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1307. }
  1308. case "Ui8slice":
  1309. if r.TryDecodeAsNil() {
  1310. x.Ui8slice = nil
  1311. } else {
  1312. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1313. }
  1314. case "Bslice":
  1315. if r.TryDecodeAsNil() {
  1316. x.Bslice = nil
  1317. } else {
  1318. z.F.DecSliceBoolX(&x.Bslice, d)
  1319. }
  1320. case "Iptrslice":
  1321. if r.TryDecodeAsNil() {
  1322. x.Iptrslice = nil
  1323. } else {
  1324. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1325. }
  1326. case "WrapSliceInt64":
  1327. if r.TryDecodeAsNil() {
  1328. x.WrapSliceInt64 = nil
  1329. } else {
  1330. x.WrapSliceInt64.CodecDecodeSelf(d)
  1331. }
  1332. case "WrapSliceString":
  1333. if r.TryDecodeAsNil() {
  1334. x.WrapSliceString = nil
  1335. } else {
  1336. x.WrapSliceString.CodecDecodeSelf(d)
  1337. }
  1338. case "Msi64":
  1339. if r.TryDecodeAsNil() {
  1340. x.Msi64 = nil
  1341. } else {
  1342. z.F.DecMapStringInt64X(&x.Msi64, d)
  1343. }
  1344. default:
  1345. z.DecStructFieldNotFound(-1, yys3)
  1346. } // end switch yys3
  1347. } // end for yyj3
  1348. }
  1349. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1350. var h codecSelfer19780
  1351. z, r := GenHelperDecoder(d)
  1352. _, _, _ = h, z, r
  1353. var yyj28 int
  1354. var yyb28 bool
  1355. var yyhl28 bool = l >= 0
  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.S = ""
  1369. } else {
  1370. x.S = (string)(string(r.DecodeStringAsBytes()))
  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.I64 = 0
  1385. } else {
  1386. x.I64 = (int64)(r.DecodeInt64())
  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.I8 = 0
  1401. } else {
  1402. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  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.Ui64 = 0
  1417. } else {
  1418. x.Ui64 = (uint64)(r.DecodeUint64())
  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.Ui8 = 0
  1433. } else {
  1434. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  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.F64 = 0
  1449. } else {
  1450. x.F64 = (float64)(r.DecodeFloat64())
  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.F32 = 0
  1465. } else {
  1466. x.F32 = (float32)(z.DecDecodeFloat32())
  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.B = false
  1481. } else {
  1482. x.B = (bool)(r.DecodeBool())
  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.Sslice = nil
  1497. } else {
  1498. z.F.DecSliceStringX(&x.Sslice, d)
  1499. }
  1500. yyj28++
  1501. if yyhl28 {
  1502. yyb28 = yyj28 > l
  1503. } else {
  1504. yyb28 = r.CheckBreak()
  1505. }
  1506. if yyb28 {
  1507. z.DecReadArrayEnd()
  1508. return
  1509. }
  1510. z.DecReadArrayElem()
  1511. if r.TryDecodeAsNil() {
  1512. x.I16slice = nil
  1513. } else {
  1514. z.F.DecSliceInt16X(&x.I16slice, d)
  1515. }
  1516. yyj28++
  1517. if yyhl28 {
  1518. yyb28 = yyj28 > l
  1519. } else {
  1520. yyb28 = r.CheckBreak()
  1521. }
  1522. if yyb28 {
  1523. z.DecReadArrayEnd()
  1524. return
  1525. }
  1526. z.DecReadArrayElem()
  1527. if r.TryDecodeAsNil() {
  1528. x.Ui64slice = nil
  1529. } else {
  1530. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1531. }
  1532. yyj28++
  1533. if yyhl28 {
  1534. yyb28 = yyj28 > l
  1535. } else {
  1536. yyb28 = r.CheckBreak()
  1537. }
  1538. if yyb28 {
  1539. z.DecReadArrayEnd()
  1540. return
  1541. }
  1542. z.DecReadArrayElem()
  1543. if r.TryDecodeAsNil() {
  1544. x.Ui8slice = nil
  1545. } else {
  1546. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1547. }
  1548. yyj28++
  1549. if yyhl28 {
  1550. yyb28 = yyj28 > l
  1551. } else {
  1552. yyb28 = r.CheckBreak()
  1553. }
  1554. if yyb28 {
  1555. z.DecReadArrayEnd()
  1556. return
  1557. }
  1558. z.DecReadArrayElem()
  1559. if r.TryDecodeAsNil() {
  1560. x.Bslice = nil
  1561. } else {
  1562. z.F.DecSliceBoolX(&x.Bslice, d)
  1563. }
  1564. yyj28++
  1565. if yyhl28 {
  1566. yyb28 = yyj28 > l
  1567. } else {
  1568. yyb28 = r.CheckBreak()
  1569. }
  1570. if yyb28 {
  1571. z.DecReadArrayEnd()
  1572. return
  1573. }
  1574. z.DecReadArrayElem()
  1575. if r.TryDecodeAsNil() {
  1576. x.Iptrslice = nil
  1577. } else {
  1578. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1579. }
  1580. yyj28++
  1581. if yyhl28 {
  1582. yyb28 = yyj28 > l
  1583. } else {
  1584. yyb28 = r.CheckBreak()
  1585. }
  1586. if yyb28 {
  1587. z.DecReadArrayEnd()
  1588. return
  1589. }
  1590. z.DecReadArrayElem()
  1591. if r.TryDecodeAsNil() {
  1592. x.WrapSliceInt64 = nil
  1593. } else {
  1594. x.WrapSliceInt64.CodecDecodeSelf(d)
  1595. }
  1596. yyj28++
  1597. if yyhl28 {
  1598. yyb28 = yyj28 > l
  1599. } else {
  1600. yyb28 = r.CheckBreak()
  1601. }
  1602. if yyb28 {
  1603. z.DecReadArrayEnd()
  1604. return
  1605. }
  1606. z.DecReadArrayElem()
  1607. if r.TryDecodeAsNil() {
  1608. x.WrapSliceString = nil
  1609. } else {
  1610. x.WrapSliceString.CodecDecodeSelf(d)
  1611. }
  1612. yyj28++
  1613. if yyhl28 {
  1614. yyb28 = yyj28 > l
  1615. } else {
  1616. yyb28 = r.CheckBreak()
  1617. }
  1618. if yyb28 {
  1619. z.DecReadArrayEnd()
  1620. return
  1621. }
  1622. z.DecReadArrayElem()
  1623. if r.TryDecodeAsNil() {
  1624. x.Msi64 = nil
  1625. } else {
  1626. z.F.DecMapStringInt64X(&x.Msi64, d)
  1627. }
  1628. for {
  1629. yyj28++
  1630. if yyhl28 {
  1631. yyb28 = yyj28 > l
  1632. } else {
  1633. yyb28 = r.CheckBreak()
  1634. }
  1635. if yyb28 {
  1636. break
  1637. }
  1638. z.DecReadArrayElem()
  1639. z.DecStructFieldNotFound(yyj28-1, "")
  1640. }
  1641. }
  1642. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  1643. var h codecSelfer19780
  1644. z, r := GenHelperEncoder(e)
  1645. _, _, _ = h, z, r
  1646. if x == nil {
  1647. r.EncodeNil()
  1648. } else { // checkNil=true
  1649. yysep2 := !z.EncBinary()
  1650. yy2arr2 := z.EncBasicHandle().StructToArray
  1651. _, _ = yysep2, yy2arr2
  1652. const yyr2 bool = false // struct tag has 'toArray'
  1653. var yyn54 bool = x.Nint64 == nil
  1654. if yyr2 || yy2arr2 {
  1655. z.EncWriteArrayStart(52)
  1656. z.EncWriteArrayElem()
  1657. if z.EncBasicHandle().StringToRaw {
  1658. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1659. } else {
  1660. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1661. }
  1662. z.EncWriteArrayElem()
  1663. r.EncodeInt(int64(x.I64))
  1664. z.EncWriteArrayElem()
  1665. r.EncodeInt(int64(x.I32))
  1666. z.EncWriteArrayElem()
  1667. r.EncodeInt(int64(x.I16))
  1668. z.EncWriteArrayElem()
  1669. r.EncodeInt(int64(x.I8))
  1670. z.EncWriteArrayElem()
  1671. r.EncodeInt(int64(x.I64n))
  1672. z.EncWriteArrayElem()
  1673. r.EncodeInt(int64(x.I32n))
  1674. z.EncWriteArrayElem()
  1675. r.EncodeInt(int64(x.I16n))
  1676. z.EncWriteArrayElem()
  1677. r.EncodeInt(int64(x.I8n))
  1678. z.EncWriteArrayElem()
  1679. r.EncodeUint(uint64(x.Ui64))
  1680. z.EncWriteArrayElem()
  1681. r.EncodeUint(uint64(x.Ui32))
  1682. z.EncWriteArrayElem()
  1683. r.EncodeUint(uint64(x.Ui16))
  1684. z.EncWriteArrayElem()
  1685. r.EncodeUint(uint64(x.Ui8))
  1686. z.EncWriteArrayElem()
  1687. r.EncodeFloat64(float64(x.F64))
  1688. z.EncWriteArrayElem()
  1689. r.EncodeFloat32(float32(x.F32))
  1690. z.EncWriteArrayElem()
  1691. r.EncodeBool(bool(x.B))
  1692. z.EncWriteArrayElem()
  1693. r.EncodeUint(uint64(x.By))
  1694. z.EncWriteArrayElem()
  1695. if x.Sslice == nil {
  1696. r.EncodeNil()
  1697. } else {
  1698. z.F.EncSliceStringV(x.Sslice, e)
  1699. } // end block: if x.Sslice slice == nil
  1700. z.EncWriteArrayElem()
  1701. if x.I64slice == nil {
  1702. r.EncodeNil()
  1703. } else {
  1704. z.F.EncSliceInt64V(x.I64slice, e)
  1705. } // end block: if x.I64slice slice == nil
  1706. z.EncWriteArrayElem()
  1707. if x.I16slice == nil {
  1708. r.EncodeNil()
  1709. } else {
  1710. z.F.EncSliceInt16V(x.I16slice, e)
  1711. } // end block: if x.I16slice slice == nil
  1712. z.EncWriteArrayElem()
  1713. if x.Ui64slice == nil {
  1714. r.EncodeNil()
  1715. } else {
  1716. z.F.EncSliceUint64V(x.Ui64slice, e)
  1717. } // end block: if x.Ui64slice slice == nil
  1718. z.EncWriteArrayElem()
  1719. if x.Ui8slice == nil {
  1720. r.EncodeNil()
  1721. } else {
  1722. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1723. } // end block: if x.Ui8slice slice == nil
  1724. z.EncWriteArrayElem()
  1725. if x.Bslice == nil {
  1726. r.EncodeNil()
  1727. } else {
  1728. z.F.EncSliceBoolV(x.Bslice, e)
  1729. } // end block: if x.Bslice slice == nil
  1730. z.EncWriteArrayElem()
  1731. if x.Byslice == nil {
  1732. r.EncodeNil()
  1733. } else {
  1734. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1735. } // end block: if x.Byslice slice == nil
  1736. z.EncWriteArrayElem()
  1737. if x.BytesSlice == nil {
  1738. r.EncodeNil()
  1739. } else {
  1740. z.F.EncSliceBytesV(x.BytesSlice, e)
  1741. } // end block: if x.BytesSlice slice == nil
  1742. z.EncWriteArrayElem()
  1743. if x.Iptrslice == nil {
  1744. r.EncodeNil()
  1745. } else {
  1746. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1747. } // end block: if x.Iptrslice slice == nil
  1748. z.EncWriteArrayElem()
  1749. x.WrapSliceInt64.CodecEncodeSelf(e)
  1750. z.EncWriteArrayElem()
  1751. x.WrapSliceString.CodecEncodeSelf(e)
  1752. z.EncWriteArrayElem()
  1753. if x.Msi64 == nil {
  1754. r.EncodeNil()
  1755. } else {
  1756. z.F.EncMapStringInt64V(x.Msi64, e)
  1757. } // end block: if x.Msi64 map == nil
  1758. z.EncWriteArrayElem()
  1759. if x.Msbytes == nil {
  1760. r.EncodeNil()
  1761. } else {
  1762. z.F.EncMapStringBytesV(x.Msbytes, e)
  1763. } // end block: if x.Msbytes map == nil
  1764. z.EncWriteArrayElem()
  1765. yy85 := &x.Simplef
  1766. yy85.CodecEncodeSelf(e)
  1767. z.EncWriteArrayElem()
  1768. if x.SstrUi64T == nil {
  1769. r.EncodeNil()
  1770. } else {
  1771. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1772. } // end block: if x.SstrUi64T slice == nil
  1773. z.EncWriteArrayElem()
  1774. if x.MstrUi64T == nil {
  1775. r.EncodeNil()
  1776. } else {
  1777. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1778. } // end block: if x.MstrUi64T map == nil
  1779. z.EncWriteArrayElem()
  1780. if z.EncBasicHandle().StringToRaw {
  1781. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1782. } else {
  1783. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1784. }
  1785. z.EncWriteArrayElem()
  1786. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1787. z.EncWriteArrayElem()
  1788. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1789. z.EncWriteArrayElem()
  1790. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1791. z.EncWriteArrayElem()
  1792. if x.AnonInTestStruc.ASslice == nil {
  1793. r.EncodeNil()
  1794. } else {
  1795. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1796. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  1797. z.EncWriteArrayElem()
  1798. if x.AnonInTestStruc.AI64slice == nil {
  1799. r.EncodeNil()
  1800. } else {
  1801. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1802. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  1803. z.EncWriteArrayElem()
  1804. if x.AnonInTestStruc.AUi64slice == nil {
  1805. r.EncodeNil()
  1806. } else {
  1807. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1808. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  1809. z.EncWriteArrayElem()
  1810. if x.AnonInTestStruc.AF64slice == nil {
  1811. r.EncodeNil()
  1812. } else {
  1813. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1814. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  1815. z.EncWriteArrayElem()
  1816. if x.AnonInTestStruc.AF32slice == nil {
  1817. r.EncodeNil()
  1818. } else {
  1819. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1820. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  1821. z.EncWriteArrayElem()
  1822. if x.AnonInTestStruc.AMSU16 == nil {
  1823. r.EncodeNil()
  1824. } else {
  1825. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1826. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  1827. z.EncWriteArrayElem()
  1828. yy99 := &x.AnonInTestStruc.AI64arr0
  1829. h.encArray0int64((*[0]int64)(yy99), e)
  1830. z.EncWriteArrayElem()
  1831. if x.AnonInTestStruc.AI64slice0 == nil {
  1832. r.EncodeNil()
  1833. } else {
  1834. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  1835. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  1836. z.EncWriteArrayElem()
  1837. if x.AnonInTestStruc.AUi64sliceN == nil {
  1838. r.EncodeNil()
  1839. } else {
  1840. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  1841. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  1842. z.EncWriteArrayElem()
  1843. if x.AnonInTestStruc.AMSU16N == nil {
  1844. r.EncodeNil()
  1845. } else {
  1846. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  1847. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  1848. z.EncWriteArrayElem()
  1849. if x.AnonInTestStruc.AMSU16E == nil {
  1850. r.EncodeNil()
  1851. } else {
  1852. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  1853. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  1854. z.EncWriteArrayElem()
  1855. yy105 := &x.NotAnon
  1856. yy105.CodecEncodeSelf(e)
  1857. z.EncWriteArrayElem()
  1858. if x.Nmap == nil {
  1859. r.EncodeNil()
  1860. } else {
  1861. z.F.EncMapStringBoolV(x.Nmap, e)
  1862. } // end block: if x.Nmap map == nil
  1863. z.EncWriteArrayElem()
  1864. if x.Nslice == nil {
  1865. r.EncodeNil()
  1866. } else {
  1867. r.EncodeStringBytesRaw([]byte(x.Nslice))
  1868. } // end block: if x.Nslice slice == nil
  1869. if yyn54 {
  1870. z.EncWriteArrayElem()
  1871. r.EncodeNil()
  1872. } else {
  1873. z.EncWriteArrayElem()
  1874. yy109 := *x.Nint64
  1875. r.EncodeInt(int64(yy109))
  1876. }
  1877. z.EncWriteArrayEnd()
  1878. } else {
  1879. z.EncWriteMapStart(52)
  1880. z.EncWriteMapElemKey()
  1881. if z.IsJSONHandle() {
  1882. z.WriteStr("\"S\"")
  1883. } else {
  1884. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1885. }
  1886. z.EncWriteMapElemValue()
  1887. if z.EncBasicHandle().StringToRaw {
  1888. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1889. } else {
  1890. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1891. }
  1892. z.EncWriteMapElemKey()
  1893. if z.IsJSONHandle() {
  1894. z.WriteStr("\"I64\"")
  1895. } else {
  1896. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1897. }
  1898. z.EncWriteMapElemValue()
  1899. r.EncodeInt(int64(x.I64))
  1900. z.EncWriteMapElemKey()
  1901. if z.IsJSONHandle() {
  1902. z.WriteStr("\"I32\"")
  1903. } else {
  1904. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  1905. }
  1906. z.EncWriteMapElemValue()
  1907. r.EncodeInt(int64(x.I32))
  1908. z.EncWriteMapElemKey()
  1909. if z.IsJSONHandle() {
  1910. z.WriteStr("\"I16\"")
  1911. } else {
  1912. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  1913. }
  1914. z.EncWriteMapElemValue()
  1915. r.EncodeInt(int64(x.I16))
  1916. z.EncWriteMapElemKey()
  1917. if z.IsJSONHandle() {
  1918. z.WriteStr("\"I8\"")
  1919. } else {
  1920. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1921. }
  1922. z.EncWriteMapElemValue()
  1923. r.EncodeInt(int64(x.I8))
  1924. z.EncWriteMapElemKey()
  1925. if z.IsJSONHandle() {
  1926. z.WriteStr("\"I64n\"")
  1927. } else {
  1928. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  1929. }
  1930. z.EncWriteMapElemValue()
  1931. r.EncodeInt(int64(x.I64n))
  1932. z.EncWriteMapElemKey()
  1933. if z.IsJSONHandle() {
  1934. z.WriteStr("\"I32n\"")
  1935. } else {
  1936. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  1937. }
  1938. z.EncWriteMapElemValue()
  1939. r.EncodeInt(int64(x.I32n))
  1940. z.EncWriteMapElemKey()
  1941. if z.IsJSONHandle() {
  1942. z.WriteStr("\"I16n\"")
  1943. } else {
  1944. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  1945. }
  1946. z.EncWriteMapElemValue()
  1947. r.EncodeInt(int64(x.I16n))
  1948. z.EncWriteMapElemKey()
  1949. if z.IsJSONHandle() {
  1950. z.WriteStr("\"I8n\"")
  1951. } else {
  1952. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  1953. }
  1954. z.EncWriteMapElemValue()
  1955. r.EncodeInt(int64(x.I8n))
  1956. z.EncWriteMapElemKey()
  1957. if z.IsJSONHandle() {
  1958. z.WriteStr("\"Ui64\"")
  1959. } else {
  1960. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1961. }
  1962. z.EncWriteMapElemValue()
  1963. r.EncodeUint(uint64(x.Ui64))
  1964. z.EncWriteMapElemKey()
  1965. if z.IsJSONHandle() {
  1966. z.WriteStr("\"Ui32\"")
  1967. } else {
  1968. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  1969. }
  1970. z.EncWriteMapElemValue()
  1971. r.EncodeUint(uint64(x.Ui32))
  1972. z.EncWriteMapElemKey()
  1973. if z.IsJSONHandle() {
  1974. z.WriteStr("\"Ui16\"")
  1975. } else {
  1976. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  1977. }
  1978. z.EncWriteMapElemValue()
  1979. r.EncodeUint(uint64(x.Ui16))
  1980. z.EncWriteMapElemKey()
  1981. if z.IsJSONHandle() {
  1982. z.WriteStr("\"Ui8\"")
  1983. } else {
  1984. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1985. }
  1986. z.EncWriteMapElemValue()
  1987. r.EncodeUint(uint64(x.Ui8))
  1988. z.EncWriteMapElemKey()
  1989. if z.IsJSONHandle() {
  1990. z.WriteStr("\"F64\"")
  1991. } else {
  1992. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1993. }
  1994. z.EncWriteMapElemValue()
  1995. r.EncodeFloat64(float64(x.F64))
  1996. z.EncWriteMapElemKey()
  1997. if z.IsJSONHandle() {
  1998. z.WriteStr("\"F32\"")
  1999. } else {
  2000. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  2001. }
  2002. z.EncWriteMapElemValue()
  2003. r.EncodeFloat32(float32(x.F32))
  2004. z.EncWriteMapElemKey()
  2005. if z.IsJSONHandle() {
  2006. z.WriteStr("\"B\"")
  2007. } else {
  2008. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  2009. }
  2010. z.EncWriteMapElemValue()
  2011. r.EncodeBool(bool(x.B))
  2012. z.EncWriteMapElemKey()
  2013. if z.IsJSONHandle() {
  2014. z.WriteStr("\"By\"")
  2015. } else {
  2016. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  2017. }
  2018. z.EncWriteMapElemValue()
  2019. r.EncodeUint(uint64(x.By))
  2020. z.EncWriteMapElemKey()
  2021. if z.IsJSONHandle() {
  2022. z.WriteStr("\"Sslice\"")
  2023. } else {
  2024. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  2025. }
  2026. z.EncWriteMapElemValue()
  2027. if x.Sslice == nil {
  2028. r.EncodeNil()
  2029. } else {
  2030. z.F.EncSliceStringV(x.Sslice, e)
  2031. } // end block: if x.Sslice slice == nil
  2032. z.EncWriteMapElemKey()
  2033. if z.IsJSONHandle() {
  2034. z.WriteStr("\"I64slice\"")
  2035. } else {
  2036. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  2037. }
  2038. z.EncWriteMapElemValue()
  2039. if x.I64slice == nil {
  2040. r.EncodeNil()
  2041. } else {
  2042. z.F.EncSliceInt64V(x.I64slice, e)
  2043. } // end block: if x.I64slice slice == nil
  2044. z.EncWriteMapElemKey()
  2045. if z.IsJSONHandle() {
  2046. z.WriteStr("\"I16slice\"")
  2047. } else {
  2048. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  2049. }
  2050. z.EncWriteMapElemValue()
  2051. if x.I16slice == nil {
  2052. r.EncodeNil()
  2053. } else {
  2054. z.F.EncSliceInt16V(x.I16slice, e)
  2055. } // end block: if x.I16slice slice == nil
  2056. z.EncWriteMapElemKey()
  2057. if z.IsJSONHandle() {
  2058. z.WriteStr("\"Ui64slice\"")
  2059. } else {
  2060. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  2061. }
  2062. z.EncWriteMapElemValue()
  2063. if x.Ui64slice == nil {
  2064. r.EncodeNil()
  2065. } else {
  2066. z.F.EncSliceUint64V(x.Ui64slice, e)
  2067. } // end block: if x.Ui64slice slice == nil
  2068. z.EncWriteMapElemKey()
  2069. if z.IsJSONHandle() {
  2070. z.WriteStr("\"Ui8slice\"")
  2071. } else {
  2072. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  2073. }
  2074. z.EncWriteMapElemValue()
  2075. if x.Ui8slice == nil {
  2076. r.EncodeNil()
  2077. } else {
  2078. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2079. } // end block: if x.Ui8slice slice == nil
  2080. z.EncWriteMapElemKey()
  2081. if z.IsJSONHandle() {
  2082. z.WriteStr("\"Bslice\"")
  2083. } else {
  2084. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  2085. }
  2086. z.EncWriteMapElemValue()
  2087. if x.Bslice == nil {
  2088. r.EncodeNil()
  2089. } else {
  2090. z.F.EncSliceBoolV(x.Bslice, e)
  2091. } // end block: if x.Bslice slice == nil
  2092. z.EncWriteMapElemKey()
  2093. if z.IsJSONHandle() {
  2094. z.WriteStr("\"Byslice\"")
  2095. } else {
  2096. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  2097. }
  2098. z.EncWriteMapElemValue()
  2099. if x.Byslice == nil {
  2100. r.EncodeNil()
  2101. } else {
  2102. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2103. } // end block: if x.Byslice slice == nil
  2104. z.EncWriteMapElemKey()
  2105. if z.IsJSONHandle() {
  2106. z.WriteStr("\"BytesSlice\"")
  2107. } else {
  2108. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  2109. }
  2110. z.EncWriteMapElemValue()
  2111. if x.BytesSlice == nil {
  2112. r.EncodeNil()
  2113. } else {
  2114. z.F.EncSliceBytesV(x.BytesSlice, e)
  2115. } // end block: if x.BytesSlice slice == nil
  2116. z.EncWriteMapElemKey()
  2117. if z.IsJSONHandle() {
  2118. z.WriteStr("\"Iptrslice\"")
  2119. } else {
  2120. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  2121. }
  2122. z.EncWriteMapElemValue()
  2123. if x.Iptrslice == nil {
  2124. r.EncodeNil()
  2125. } else {
  2126. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2127. } // end block: if x.Iptrslice slice == nil
  2128. z.EncWriteMapElemKey()
  2129. if z.IsJSONHandle() {
  2130. z.WriteStr("\"WrapSliceInt64\"")
  2131. } else {
  2132. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  2133. }
  2134. z.EncWriteMapElemValue()
  2135. x.WrapSliceInt64.CodecEncodeSelf(e)
  2136. z.EncWriteMapElemKey()
  2137. if z.IsJSONHandle() {
  2138. z.WriteStr("\"WrapSliceString\"")
  2139. } else {
  2140. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  2141. }
  2142. z.EncWriteMapElemValue()
  2143. x.WrapSliceString.CodecEncodeSelf(e)
  2144. z.EncWriteMapElemKey()
  2145. if z.IsJSONHandle() {
  2146. z.WriteStr("\"Msi64\"")
  2147. } else {
  2148. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  2149. }
  2150. z.EncWriteMapElemValue()
  2151. if x.Msi64 == nil {
  2152. r.EncodeNil()
  2153. } else {
  2154. z.F.EncMapStringInt64V(x.Msi64, e)
  2155. } // end block: if x.Msi64 map == nil
  2156. z.EncWriteMapElemKey()
  2157. if z.IsJSONHandle() {
  2158. z.WriteStr("\"Msbytes\"")
  2159. } else {
  2160. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  2161. }
  2162. z.EncWriteMapElemValue()
  2163. if x.Msbytes == nil {
  2164. r.EncodeNil()
  2165. } else {
  2166. z.F.EncMapStringBytesV(x.Msbytes, e)
  2167. } // end block: if x.Msbytes map == nil
  2168. z.EncWriteMapElemKey()
  2169. if z.IsJSONHandle() {
  2170. z.WriteStr("\"Simplef\"")
  2171. } else {
  2172. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  2173. }
  2174. z.EncWriteMapElemValue()
  2175. yy141 := &x.Simplef
  2176. yy141.CodecEncodeSelf(e)
  2177. z.EncWriteMapElemKey()
  2178. if z.IsJSONHandle() {
  2179. z.WriteStr("\"SstrUi64T\"")
  2180. } else {
  2181. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  2182. }
  2183. z.EncWriteMapElemValue()
  2184. if x.SstrUi64T == nil {
  2185. r.EncodeNil()
  2186. } else {
  2187. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2188. } // end block: if x.SstrUi64T slice == nil
  2189. z.EncWriteMapElemKey()
  2190. if z.IsJSONHandle() {
  2191. z.WriteStr("\"MstrUi64T\"")
  2192. } else {
  2193. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  2194. }
  2195. z.EncWriteMapElemValue()
  2196. if x.MstrUi64T == nil {
  2197. r.EncodeNil()
  2198. } else {
  2199. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  2200. } // end block: if x.MstrUi64T map == nil
  2201. z.EncWriteMapElemKey()
  2202. if z.IsJSONHandle() {
  2203. z.WriteStr("\"AS\"")
  2204. } else {
  2205. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  2206. }
  2207. z.EncWriteMapElemValue()
  2208. if z.EncBasicHandle().StringToRaw {
  2209. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  2210. } else {
  2211. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  2212. }
  2213. z.EncWriteMapElemKey()
  2214. if z.IsJSONHandle() {
  2215. z.WriteStr("\"AI64\"")
  2216. } else {
  2217. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  2218. }
  2219. z.EncWriteMapElemValue()
  2220. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  2221. z.EncWriteMapElemKey()
  2222. if z.IsJSONHandle() {
  2223. z.WriteStr("\"AI16\"")
  2224. } else {
  2225. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  2226. }
  2227. z.EncWriteMapElemValue()
  2228. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  2229. z.EncWriteMapElemKey()
  2230. if z.IsJSONHandle() {
  2231. z.WriteStr("\"AUi64\"")
  2232. } else {
  2233. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  2234. }
  2235. z.EncWriteMapElemValue()
  2236. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  2237. z.EncWriteMapElemKey()
  2238. if z.IsJSONHandle() {
  2239. z.WriteStr("\"ASslice\"")
  2240. } else {
  2241. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  2242. }
  2243. z.EncWriteMapElemValue()
  2244. if x.AnonInTestStruc.ASslice == nil {
  2245. r.EncodeNil()
  2246. } else {
  2247. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  2248. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  2249. z.EncWriteMapElemKey()
  2250. if z.IsJSONHandle() {
  2251. z.WriteStr("\"AI64slice\"")
  2252. } else {
  2253. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  2254. }
  2255. z.EncWriteMapElemValue()
  2256. if x.AnonInTestStruc.AI64slice == nil {
  2257. r.EncodeNil()
  2258. } else {
  2259. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  2260. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  2261. z.EncWriteMapElemKey()
  2262. if z.IsJSONHandle() {
  2263. z.WriteStr("\"AUi64slice\"")
  2264. } else {
  2265. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  2266. }
  2267. z.EncWriteMapElemValue()
  2268. if x.AnonInTestStruc.AUi64slice == nil {
  2269. r.EncodeNil()
  2270. } else {
  2271. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  2272. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  2273. z.EncWriteMapElemKey()
  2274. if z.IsJSONHandle() {
  2275. z.WriteStr("\"AF64slice\"")
  2276. } else {
  2277. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  2278. }
  2279. z.EncWriteMapElemValue()
  2280. if x.AnonInTestStruc.AF64slice == nil {
  2281. r.EncodeNil()
  2282. } else {
  2283. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  2284. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  2285. z.EncWriteMapElemKey()
  2286. if z.IsJSONHandle() {
  2287. z.WriteStr("\"AF32slice\"")
  2288. } else {
  2289. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  2290. }
  2291. z.EncWriteMapElemValue()
  2292. if x.AnonInTestStruc.AF32slice == nil {
  2293. r.EncodeNil()
  2294. } else {
  2295. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  2296. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  2297. z.EncWriteMapElemKey()
  2298. if z.IsJSONHandle() {
  2299. z.WriteStr("\"AMSU16\"")
  2300. } else {
  2301. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  2302. }
  2303. z.EncWriteMapElemValue()
  2304. if x.AnonInTestStruc.AMSU16 == nil {
  2305. r.EncodeNil()
  2306. } else {
  2307. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  2308. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  2309. z.EncWriteMapElemKey()
  2310. if z.IsJSONHandle() {
  2311. z.WriteStr("\"AI64arr0\"")
  2312. } else {
  2313. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  2314. }
  2315. z.EncWriteMapElemValue()
  2316. yy155 := &x.AnonInTestStruc.AI64arr0
  2317. h.encArray0int64((*[0]int64)(yy155), e)
  2318. z.EncWriteMapElemKey()
  2319. if z.IsJSONHandle() {
  2320. z.WriteStr("\"AI64slice0\"")
  2321. } else {
  2322. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  2323. }
  2324. z.EncWriteMapElemValue()
  2325. if x.AnonInTestStruc.AI64slice0 == nil {
  2326. r.EncodeNil()
  2327. } else {
  2328. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  2329. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  2330. z.EncWriteMapElemKey()
  2331. if z.IsJSONHandle() {
  2332. z.WriteStr("\"AUi64sliceN\"")
  2333. } else {
  2334. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  2335. }
  2336. z.EncWriteMapElemValue()
  2337. if x.AnonInTestStruc.AUi64sliceN == nil {
  2338. r.EncodeNil()
  2339. } else {
  2340. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  2341. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  2342. z.EncWriteMapElemKey()
  2343. if z.IsJSONHandle() {
  2344. z.WriteStr("\"AMSU16N\"")
  2345. } else {
  2346. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  2347. }
  2348. z.EncWriteMapElemValue()
  2349. if x.AnonInTestStruc.AMSU16N == nil {
  2350. r.EncodeNil()
  2351. } else {
  2352. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  2353. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  2354. z.EncWriteMapElemKey()
  2355. if z.IsJSONHandle() {
  2356. z.WriteStr("\"AMSU16E\"")
  2357. } else {
  2358. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  2359. }
  2360. z.EncWriteMapElemValue()
  2361. if x.AnonInTestStruc.AMSU16E == nil {
  2362. r.EncodeNil()
  2363. } else {
  2364. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  2365. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  2366. z.EncWriteMapElemKey()
  2367. if z.IsJSONHandle() {
  2368. z.WriteStr("\"NotAnon\"")
  2369. } else {
  2370. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  2371. }
  2372. z.EncWriteMapElemValue()
  2373. yy161 := &x.NotAnon
  2374. yy161.CodecEncodeSelf(e)
  2375. z.EncWriteMapElemKey()
  2376. if z.IsJSONHandle() {
  2377. z.WriteStr("\"Nmap\"")
  2378. } else {
  2379. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  2380. }
  2381. z.EncWriteMapElemValue()
  2382. if x.Nmap == nil {
  2383. r.EncodeNil()
  2384. } else {
  2385. z.F.EncMapStringBoolV(x.Nmap, e)
  2386. } // end block: if x.Nmap map == nil
  2387. z.EncWriteMapElemKey()
  2388. if z.IsJSONHandle() {
  2389. z.WriteStr("\"Nslice\"")
  2390. } else {
  2391. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  2392. }
  2393. z.EncWriteMapElemValue()
  2394. if x.Nslice == nil {
  2395. r.EncodeNil()
  2396. } else {
  2397. r.EncodeStringBytesRaw([]byte(x.Nslice))
  2398. } // end block: if x.Nslice slice == nil
  2399. z.EncWriteMapElemKey()
  2400. if z.IsJSONHandle() {
  2401. z.WriteStr("\"Nint64\"")
  2402. } else {
  2403. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  2404. }
  2405. z.EncWriteMapElemValue()
  2406. if yyn54 {
  2407. r.EncodeNil()
  2408. } else {
  2409. yy165 := *x.Nint64
  2410. r.EncodeInt(int64(yy165))
  2411. }
  2412. z.EncWriteMapEnd()
  2413. }
  2414. } // checkNil=true
  2415. }
  2416. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  2417. var h codecSelfer19780
  2418. z, r := GenHelperDecoder(d)
  2419. _, _, _ = h, z, r
  2420. yyct2 := r.ContainerType()
  2421. if yyct2 == codecSelferValueTypeMap19780 {
  2422. yyl2 := z.DecReadMapStart()
  2423. if yyl2 == 0 {
  2424. } else {
  2425. x.codecDecodeSelfFromMap(yyl2, d)
  2426. }
  2427. z.DecReadMapEnd()
  2428. } else if yyct2 == codecSelferValueTypeArray19780 {
  2429. yyl2 := z.DecReadArrayStart()
  2430. if yyl2 != 0 {
  2431. x.codecDecodeSelfFromArray(yyl2, d)
  2432. }
  2433. z.DecReadArrayEnd()
  2434. } else {
  2435. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2436. }
  2437. }
  2438. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  2439. var h codecSelfer19780
  2440. z, r := GenHelperDecoder(d)
  2441. _, _, _ = h, z, r
  2442. var yyhl3 bool = l >= 0
  2443. for yyj3 := 0; ; yyj3++ {
  2444. if yyhl3 {
  2445. if yyj3 >= l {
  2446. break
  2447. }
  2448. } else {
  2449. if r.CheckBreak() {
  2450. break
  2451. }
  2452. }
  2453. z.DecReadMapElemKey()
  2454. yys3 := z.StringView(r.DecodeStringAsBytes())
  2455. z.DecReadMapElemValue()
  2456. switch yys3 {
  2457. case "S":
  2458. if r.TryDecodeAsNil() {
  2459. x.S = ""
  2460. } else {
  2461. x.S = (string)(string(r.DecodeStringAsBytes()))
  2462. }
  2463. case "I64":
  2464. if r.TryDecodeAsNil() {
  2465. x.I64 = 0
  2466. } else {
  2467. x.I64 = (int64)(r.DecodeInt64())
  2468. }
  2469. case "I32":
  2470. if r.TryDecodeAsNil() {
  2471. x.I32 = 0
  2472. } else {
  2473. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2474. }
  2475. case "I16":
  2476. if r.TryDecodeAsNil() {
  2477. x.I16 = 0
  2478. } else {
  2479. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2480. }
  2481. case "I8":
  2482. if r.TryDecodeAsNil() {
  2483. x.I8 = 0
  2484. } else {
  2485. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2486. }
  2487. case "I64n":
  2488. if r.TryDecodeAsNil() {
  2489. x.I64n = 0
  2490. } else {
  2491. x.I64n = (int64)(r.DecodeInt64())
  2492. }
  2493. case "I32n":
  2494. if r.TryDecodeAsNil() {
  2495. x.I32n = 0
  2496. } else {
  2497. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2498. }
  2499. case "I16n":
  2500. if r.TryDecodeAsNil() {
  2501. x.I16n = 0
  2502. } else {
  2503. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2504. }
  2505. case "I8n":
  2506. if r.TryDecodeAsNil() {
  2507. x.I8n = 0
  2508. } else {
  2509. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2510. }
  2511. case "Ui64":
  2512. if r.TryDecodeAsNil() {
  2513. x.Ui64 = 0
  2514. } else {
  2515. x.Ui64 = (uint64)(r.DecodeUint64())
  2516. }
  2517. case "Ui32":
  2518. if r.TryDecodeAsNil() {
  2519. x.Ui32 = 0
  2520. } else {
  2521. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2522. }
  2523. case "Ui16":
  2524. if r.TryDecodeAsNil() {
  2525. x.Ui16 = 0
  2526. } else {
  2527. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2528. }
  2529. case "Ui8":
  2530. if r.TryDecodeAsNil() {
  2531. x.Ui8 = 0
  2532. } else {
  2533. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2534. }
  2535. case "F64":
  2536. if r.TryDecodeAsNil() {
  2537. x.F64 = 0
  2538. } else {
  2539. x.F64 = (float64)(r.DecodeFloat64())
  2540. }
  2541. case "F32":
  2542. if r.TryDecodeAsNil() {
  2543. x.F32 = 0
  2544. } else {
  2545. x.F32 = (float32)(z.DecDecodeFloat32())
  2546. }
  2547. case "B":
  2548. if r.TryDecodeAsNil() {
  2549. x.B = false
  2550. } else {
  2551. x.B = (bool)(r.DecodeBool())
  2552. }
  2553. case "By":
  2554. if r.TryDecodeAsNil() {
  2555. x.By = 0
  2556. } else {
  2557. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2558. }
  2559. case "Sslice":
  2560. if r.TryDecodeAsNil() {
  2561. x.Sslice = nil
  2562. } else {
  2563. z.F.DecSliceStringX(&x.Sslice, d)
  2564. }
  2565. case "I64slice":
  2566. if r.TryDecodeAsNil() {
  2567. x.I64slice = nil
  2568. } else {
  2569. z.F.DecSliceInt64X(&x.I64slice, d)
  2570. }
  2571. case "I16slice":
  2572. if r.TryDecodeAsNil() {
  2573. x.I16slice = nil
  2574. } else {
  2575. z.F.DecSliceInt16X(&x.I16slice, d)
  2576. }
  2577. case "Ui64slice":
  2578. if r.TryDecodeAsNil() {
  2579. x.Ui64slice = nil
  2580. } else {
  2581. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2582. }
  2583. case "Ui8slice":
  2584. if r.TryDecodeAsNil() {
  2585. x.Ui8slice = nil
  2586. } else {
  2587. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2588. }
  2589. case "Bslice":
  2590. if r.TryDecodeAsNil() {
  2591. x.Bslice = nil
  2592. } else {
  2593. z.F.DecSliceBoolX(&x.Bslice, d)
  2594. }
  2595. case "Byslice":
  2596. if r.TryDecodeAsNil() {
  2597. x.Byslice = nil
  2598. } else {
  2599. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2600. }
  2601. case "BytesSlice":
  2602. if r.TryDecodeAsNil() {
  2603. x.BytesSlice = nil
  2604. } else {
  2605. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2606. }
  2607. case "Iptrslice":
  2608. if r.TryDecodeAsNil() {
  2609. x.Iptrslice = nil
  2610. } else {
  2611. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2612. }
  2613. case "WrapSliceInt64":
  2614. if r.TryDecodeAsNil() {
  2615. x.WrapSliceInt64 = nil
  2616. } else {
  2617. x.WrapSliceInt64.CodecDecodeSelf(d)
  2618. }
  2619. case "WrapSliceString":
  2620. if r.TryDecodeAsNil() {
  2621. x.WrapSliceString = nil
  2622. } else {
  2623. x.WrapSliceString.CodecDecodeSelf(d)
  2624. }
  2625. case "Msi64":
  2626. if r.TryDecodeAsNil() {
  2627. x.Msi64 = nil
  2628. } else {
  2629. z.F.DecMapStringInt64X(&x.Msi64, d)
  2630. }
  2631. case "Msbytes":
  2632. if r.TryDecodeAsNil() {
  2633. x.Msbytes = nil
  2634. } else {
  2635. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2636. }
  2637. case "Simplef":
  2638. if r.TryDecodeAsNil() {
  2639. x.Simplef = testSimpleFields{}
  2640. } else {
  2641. x.Simplef.CodecDecodeSelf(d)
  2642. }
  2643. case "SstrUi64T":
  2644. if r.TryDecodeAsNil() {
  2645. x.SstrUi64T = nil
  2646. } else {
  2647. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2648. }
  2649. case "MstrUi64T":
  2650. if r.TryDecodeAsNil() {
  2651. x.MstrUi64T = nil
  2652. } else {
  2653. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2654. }
  2655. case "AS":
  2656. if r.TryDecodeAsNil() {
  2657. x.AnonInTestStruc.AS = ""
  2658. } else {
  2659. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2660. }
  2661. case "AI64":
  2662. if r.TryDecodeAsNil() {
  2663. x.AnonInTestStruc.AI64 = 0
  2664. } else {
  2665. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2666. }
  2667. case "AI16":
  2668. if r.TryDecodeAsNil() {
  2669. x.AnonInTestStruc.AI16 = 0
  2670. } else {
  2671. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2672. }
  2673. case "AUi64":
  2674. if r.TryDecodeAsNil() {
  2675. x.AnonInTestStruc.AUi64 = 0
  2676. } else {
  2677. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2678. }
  2679. case "ASslice":
  2680. if r.TryDecodeAsNil() {
  2681. x.AnonInTestStruc.ASslice = nil
  2682. } else {
  2683. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2684. }
  2685. case "AI64slice":
  2686. if r.TryDecodeAsNil() {
  2687. x.AnonInTestStruc.AI64slice = nil
  2688. } else {
  2689. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2690. }
  2691. case "AUi64slice":
  2692. if r.TryDecodeAsNil() {
  2693. x.AnonInTestStruc.AUi64slice = nil
  2694. } else {
  2695. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2696. }
  2697. case "AF64slice":
  2698. if r.TryDecodeAsNil() {
  2699. x.AnonInTestStruc.AF64slice = nil
  2700. } else {
  2701. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2702. }
  2703. case "AF32slice":
  2704. if r.TryDecodeAsNil() {
  2705. x.AnonInTestStruc.AF32slice = nil
  2706. } else {
  2707. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2708. }
  2709. case "AMSU16":
  2710. if r.TryDecodeAsNil() {
  2711. x.AnonInTestStruc.AMSU16 = nil
  2712. } else {
  2713. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2714. }
  2715. case "AI64arr0":
  2716. if r.TryDecodeAsNil() {
  2717. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  2718. } else {
  2719. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2720. }
  2721. case "AI64slice0":
  2722. if r.TryDecodeAsNil() {
  2723. x.AnonInTestStruc.AI64slice0 = nil
  2724. } else {
  2725. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2726. }
  2727. case "AUi64sliceN":
  2728. if r.TryDecodeAsNil() {
  2729. x.AnonInTestStruc.AUi64sliceN = nil
  2730. } else {
  2731. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2732. }
  2733. case "AMSU16N":
  2734. if r.TryDecodeAsNil() {
  2735. x.AnonInTestStruc.AMSU16N = nil
  2736. } else {
  2737. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2738. }
  2739. case "AMSU16E":
  2740. if r.TryDecodeAsNil() {
  2741. x.AnonInTestStruc.AMSU16E = nil
  2742. } else {
  2743. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2744. }
  2745. case "NotAnon":
  2746. if r.TryDecodeAsNil() {
  2747. x.NotAnon = AnonInTestStruc{}
  2748. } else {
  2749. x.NotAnon.CodecDecodeSelf(d)
  2750. }
  2751. case "Nmap":
  2752. if r.TryDecodeAsNil() {
  2753. x.Nmap = nil
  2754. } else {
  2755. z.F.DecMapStringBoolX(&x.Nmap, d)
  2756. }
  2757. case "Nslice":
  2758. if r.TryDecodeAsNil() {
  2759. x.Nslice = nil
  2760. } else {
  2761. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2762. }
  2763. case "Nint64":
  2764. if r.TryDecodeAsNil() {
  2765. if x.Nint64 != nil { // remove the if-true
  2766. x.Nint64 = nil
  2767. }
  2768. } else {
  2769. if x.Nint64 == nil {
  2770. x.Nint64 = new(int64)
  2771. }
  2772. *x.Nint64 = (int64)(r.DecodeInt64())
  2773. }
  2774. default:
  2775. z.DecStructFieldNotFound(-1, yys3)
  2776. } // end switch yys3
  2777. } // end for yyj3
  2778. }
  2779. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  2780. var h codecSelfer19780
  2781. z, r := GenHelperDecoder(d)
  2782. _, _, _ = h, z, r
  2783. var yyj83 int
  2784. var yyb83 bool
  2785. var yyhl83 bool = l >= 0
  2786. yyj83++
  2787. if yyhl83 {
  2788. yyb83 = yyj83 > l
  2789. } else {
  2790. yyb83 = r.CheckBreak()
  2791. }
  2792. if yyb83 {
  2793. z.DecReadArrayEnd()
  2794. return
  2795. }
  2796. z.DecReadArrayElem()
  2797. if r.TryDecodeAsNil() {
  2798. x.S = ""
  2799. } else {
  2800. x.S = (string)(string(r.DecodeStringAsBytes()))
  2801. }
  2802. yyj83++
  2803. if yyhl83 {
  2804. yyb83 = yyj83 > l
  2805. } else {
  2806. yyb83 = r.CheckBreak()
  2807. }
  2808. if yyb83 {
  2809. z.DecReadArrayEnd()
  2810. return
  2811. }
  2812. z.DecReadArrayElem()
  2813. if r.TryDecodeAsNil() {
  2814. x.I64 = 0
  2815. } else {
  2816. x.I64 = (int64)(r.DecodeInt64())
  2817. }
  2818. yyj83++
  2819. if yyhl83 {
  2820. yyb83 = yyj83 > l
  2821. } else {
  2822. yyb83 = r.CheckBreak()
  2823. }
  2824. if yyb83 {
  2825. z.DecReadArrayEnd()
  2826. return
  2827. }
  2828. z.DecReadArrayElem()
  2829. if r.TryDecodeAsNil() {
  2830. x.I32 = 0
  2831. } else {
  2832. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2833. }
  2834. yyj83++
  2835. if yyhl83 {
  2836. yyb83 = yyj83 > l
  2837. } else {
  2838. yyb83 = r.CheckBreak()
  2839. }
  2840. if yyb83 {
  2841. z.DecReadArrayEnd()
  2842. return
  2843. }
  2844. z.DecReadArrayElem()
  2845. if r.TryDecodeAsNil() {
  2846. x.I16 = 0
  2847. } else {
  2848. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2849. }
  2850. yyj83++
  2851. if yyhl83 {
  2852. yyb83 = yyj83 > l
  2853. } else {
  2854. yyb83 = r.CheckBreak()
  2855. }
  2856. if yyb83 {
  2857. z.DecReadArrayEnd()
  2858. return
  2859. }
  2860. z.DecReadArrayElem()
  2861. if r.TryDecodeAsNil() {
  2862. x.I8 = 0
  2863. } else {
  2864. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2865. }
  2866. yyj83++
  2867. if yyhl83 {
  2868. yyb83 = yyj83 > l
  2869. } else {
  2870. yyb83 = r.CheckBreak()
  2871. }
  2872. if yyb83 {
  2873. z.DecReadArrayEnd()
  2874. return
  2875. }
  2876. z.DecReadArrayElem()
  2877. if r.TryDecodeAsNil() {
  2878. x.I64n = 0
  2879. } else {
  2880. x.I64n = (int64)(r.DecodeInt64())
  2881. }
  2882. yyj83++
  2883. if yyhl83 {
  2884. yyb83 = yyj83 > l
  2885. } else {
  2886. yyb83 = r.CheckBreak()
  2887. }
  2888. if yyb83 {
  2889. z.DecReadArrayEnd()
  2890. return
  2891. }
  2892. z.DecReadArrayElem()
  2893. if r.TryDecodeAsNil() {
  2894. x.I32n = 0
  2895. } else {
  2896. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2897. }
  2898. yyj83++
  2899. if yyhl83 {
  2900. yyb83 = yyj83 > l
  2901. } else {
  2902. yyb83 = r.CheckBreak()
  2903. }
  2904. if yyb83 {
  2905. z.DecReadArrayEnd()
  2906. return
  2907. }
  2908. z.DecReadArrayElem()
  2909. if r.TryDecodeAsNil() {
  2910. x.I16n = 0
  2911. } else {
  2912. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2913. }
  2914. yyj83++
  2915. if yyhl83 {
  2916. yyb83 = yyj83 > l
  2917. } else {
  2918. yyb83 = r.CheckBreak()
  2919. }
  2920. if yyb83 {
  2921. z.DecReadArrayEnd()
  2922. return
  2923. }
  2924. z.DecReadArrayElem()
  2925. if r.TryDecodeAsNil() {
  2926. x.I8n = 0
  2927. } else {
  2928. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2929. }
  2930. yyj83++
  2931. if yyhl83 {
  2932. yyb83 = yyj83 > l
  2933. } else {
  2934. yyb83 = r.CheckBreak()
  2935. }
  2936. if yyb83 {
  2937. z.DecReadArrayEnd()
  2938. return
  2939. }
  2940. z.DecReadArrayElem()
  2941. if r.TryDecodeAsNil() {
  2942. x.Ui64 = 0
  2943. } else {
  2944. x.Ui64 = (uint64)(r.DecodeUint64())
  2945. }
  2946. yyj83++
  2947. if yyhl83 {
  2948. yyb83 = yyj83 > l
  2949. } else {
  2950. yyb83 = r.CheckBreak()
  2951. }
  2952. if yyb83 {
  2953. z.DecReadArrayEnd()
  2954. return
  2955. }
  2956. z.DecReadArrayElem()
  2957. if r.TryDecodeAsNil() {
  2958. x.Ui32 = 0
  2959. } else {
  2960. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2961. }
  2962. yyj83++
  2963. if yyhl83 {
  2964. yyb83 = yyj83 > l
  2965. } else {
  2966. yyb83 = r.CheckBreak()
  2967. }
  2968. if yyb83 {
  2969. z.DecReadArrayEnd()
  2970. return
  2971. }
  2972. z.DecReadArrayElem()
  2973. if r.TryDecodeAsNil() {
  2974. x.Ui16 = 0
  2975. } else {
  2976. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2977. }
  2978. yyj83++
  2979. if yyhl83 {
  2980. yyb83 = yyj83 > l
  2981. } else {
  2982. yyb83 = r.CheckBreak()
  2983. }
  2984. if yyb83 {
  2985. z.DecReadArrayEnd()
  2986. return
  2987. }
  2988. z.DecReadArrayElem()
  2989. if r.TryDecodeAsNil() {
  2990. x.Ui8 = 0
  2991. } else {
  2992. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2993. }
  2994. yyj83++
  2995. if yyhl83 {
  2996. yyb83 = yyj83 > l
  2997. } else {
  2998. yyb83 = r.CheckBreak()
  2999. }
  3000. if yyb83 {
  3001. z.DecReadArrayEnd()
  3002. return
  3003. }
  3004. z.DecReadArrayElem()
  3005. if r.TryDecodeAsNil() {
  3006. x.F64 = 0
  3007. } else {
  3008. x.F64 = (float64)(r.DecodeFloat64())
  3009. }
  3010. yyj83++
  3011. if yyhl83 {
  3012. yyb83 = yyj83 > l
  3013. } else {
  3014. yyb83 = r.CheckBreak()
  3015. }
  3016. if yyb83 {
  3017. z.DecReadArrayEnd()
  3018. return
  3019. }
  3020. z.DecReadArrayElem()
  3021. if r.TryDecodeAsNil() {
  3022. x.F32 = 0
  3023. } else {
  3024. x.F32 = (float32)(z.DecDecodeFloat32())
  3025. }
  3026. yyj83++
  3027. if yyhl83 {
  3028. yyb83 = yyj83 > l
  3029. } else {
  3030. yyb83 = r.CheckBreak()
  3031. }
  3032. if yyb83 {
  3033. z.DecReadArrayEnd()
  3034. return
  3035. }
  3036. z.DecReadArrayElem()
  3037. if r.TryDecodeAsNil() {
  3038. x.B = false
  3039. } else {
  3040. x.B = (bool)(r.DecodeBool())
  3041. }
  3042. yyj83++
  3043. if yyhl83 {
  3044. yyb83 = yyj83 > l
  3045. } else {
  3046. yyb83 = r.CheckBreak()
  3047. }
  3048. if yyb83 {
  3049. z.DecReadArrayEnd()
  3050. return
  3051. }
  3052. z.DecReadArrayElem()
  3053. if r.TryDecodeAsNil() {
  3054. x.By = 0
  3055. } else {
  3056. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3057. }
  3058. yyj83++
  3059. if yyhl83 {
  3060. yyb83 = yyj83 > l
  3061. } else {
  3062. yyb83 = r.CheckBreak()
  3063. }
  3064. if yyb83 {
  3065. z.DecReadArrayEnd()
  3066. return
  3067. }
  3068. z.DecReadArrayElem()
  3069. if r.TryDecodeAsNil() {
  3070. x.Sslice = nil
  3071. } else {
  3072. z.F.DecSliceStringX(&x.Sslice, d)
  3073. }
  3074. yyj83++
  3075. if yyhl83 {
  3076. yyb83 = yyj83 > l
  3077. } else {
  3078. yyb83 = r.CheckBreak()
  3079. }
  3080. if yyb83 {
  3081. z.DecReadArrayEnd()
  3082. return
  3083. }
  3084. z.DecReadArrayElem()
  3085. if r.TryDecodeAsNil() {
  3086. x.I64slice = nil
  3087. } else {
  3088. z.F.DecSliceInt64X(&x.I64slice, d)
  3089. }
  3090. yyj83++
  3091. if yyhl83 {
  3092. yyb83 = yyj83 > l
  3093. } else {
  3094. yyb83 = r.CheckBreak()
  3095. }
  3096. if yyb83 {
  3097. z.DecReadArrayEnd()
  3098. return
  3099. }
  3100. z.DecReadArrayElem()
  3101. if r.TryDecodeAsNil() {
  3102. x.I16slice = nil
  3103. } else {
  3104. z.F.DecSliceInt16X(&x.I16slice, d)
  3105. }
  3106. yyj83++
  3107. if yyhl83 {
  3108. yyb83 = yyj83 > l
  3109. } else {
  3110. yyb83 = r.CheckBreak()
  3111. }
  3112. if yyb83 {
  3113. z.DecReadArrayEnd()
  3114. return
  3115. }
  3116. z.DecReadArrayElem()
  3117. if r.TryDecodeAsNil() {
  3118. x.Ui64slice = nil
  3119. } else {
  3120. z.F.DecSliceUint64X(&x.Ui64slice, d)
  3121. }
  3122. yyj83++
  3123. if yyhl83 {
  3124. yyb83 = yyj83 > l
  3125. } else {
  3126. yyb83 = r.CheckBreak()
  3127. }
  3128. if yyb83 {
  3129. z.DecReadArrayEnd()
  3130. return
  3131. }
  3132. z.DecReadArrayElem()
  3133. if r.TryDecodeAsNil() {
  3134. x.Ui8slice = nil
  3135. } else {
  3136. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  3137. }
  3138. yyj83++
  3139. if yyhl83 {
  3140. yyb83 = yyj83 > l
  3141. } else {
  3142. yyb83 = r.CheckBreak()
  3143. }
  3144. if yyb83 {
  3145. z.DecReadArrayEnd()
  3146. return
  3147. }
  3148. z.DecReadArrayElem()
  3149. if r.TryDecodeAsNil() {
  3150. x.Bslice = nil
  3151. } else {
  3152. z.F.DecSliceBoolX(&x.Bslice, d)
  3153. }
  3154. yyj83++
  3155. if yyhl83 {
  3156. yyb83 = yyj83 > l
  3157. } else {
  3158. yyb83 = r.CheckBreak()
  3159. }
  3160. if yyb83 {
  3161. z.DecReadArrayEnd()
  3162. return
  3163. }
  3164. z.DecReadArrayElem()
  3165. if r.TryDecodeAsNil() {
  3166. x.Byslice = nil
  3167. } else {
  3168. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  3169. }
  3170. yyj83++
  3171. if yyhl83 {
  3172. yyb83 = yyj83 > l
  3173. } else {
  3174. yyb83 = r.CheckBreak()
  3175. }
  3176. if yyb83 {
  3177. z.DecReadArrayEnd()
  3178. return
  3179. }
  3180. z.DecReadArrayElem()
  3181. if r.TryDecodeAsNil() {
  3182. x.BytesSlice = nil
  3183. } else {
  3184. z.F.DecSliceBytesX(&x.BytesSlice, d)
  3185. }
  3186. yyj83++
  3187. if yyhl83 {
  3188. yyb83 = yyj83 > l
  3189. } else {
  3190. yyb83 = r.CheckBreak()
  3191. }
  3192. if yyb83 {
  3193. z.DecReadArrayEnd()
  3194. return
  3195. }
  3196. z.DecReadArrayElem()
  3197. if r.TryDecodeAsNil() {
  3198. x.Iptrslice = nil
  3199. } else {
  3200. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  3201. }
  3202. yyj83++
  3203. if yyhl83 {
  3204. yyb83 = yyj83 > l
  3205. } else {
  3206. yyb83 = r.CheckBreak()
  3207. }
  3208. if yyb83 {
  3209. z.DecReadArrayEnd()
  3210. return
  3211. }
  3212. z.DecReadArrayElem()
  3213. if r.TryDecodeAsNil() {
  3214. x.WrapSliceInt64 = nil
  3215. } else {
  3216. x.WrapSliceInt64.CodecDecodeSelf(d)
  3217. }
  3218. yyj83++
  3219. if yyhl83 {
  3220. yyb83 = yyj83 > l
  3221. } else {
  3222. yyb83 = r.CheckBreak()
  3223. }
  3224. if yyb83 {
  3225. z.DecReadArrayEnd()
  3226. return
  3227. }
  3228. z.DecReadArrayElem()
  3229. if r.TryDecodeAsNil() {
  3230. x.WrapSliceString = nil
  3231. } else {
  3232. x.WrapSliceString.CodecDecodeSelf(d)
  3233. }
  3234. yyj83++
  3235. if yyhl83 {
  3236. yyb83 = yyj83 > l
  3237. } else {
  3238. yyb83 = r.CheckBreak()
  3239. }
  3240. if yyb83 {
  3241. z.DecReadArrayEnd()
  3242. return
  3243. }
  3244. z.DecReadArrayElem()
  3245. if r.TryDecodeAsNil() {
  3246. x.Msi64 = nil
  3247. } else {
  3248. z.F.DecMapStringInt64X(&x.Msi64, d)
  3249. }
  3250. yyj83++
  3251. if yyhl83 {
  3252. yyb83 = yyj83 > l
  3253. } else {
  3254. yyb83 = r.CheckBreak()
  3255. }
  3256. if yyb83 {
  3257. z.DecReadArrayEnd()
  3258. return
  3259. }
  3260. z.DecReadArrayElem()
  3261. if r.TryDecodeAsNil() {
  3262. x.Msbytes = nil
  3263. } else {
  3264. z.F.DecMapStringBytesX(&x.Msbytes, d)
  3265. }
  3266. yyj83++
  3267. if yyhl83 {
  3268. yyb83 = yyj83 > l
  3269. } else {
  3270. yyb83 = r.CheckBreak()
  3271. }
  3272. if yyb83 {
  3273. z.DecReadArrayEnd()
  3274. return
  3275. }
  3276. z.DecReadArrayElem()
  3277. if r.TryDecodeAsNil() {
  3278. x.Simplef = testSimpleFields{}
  3279. } else {
  3280. x.Simplef.CodecDecodeSelf(d)
  3281. }
  3282. yyj83++
  3283. if yyhl83 {
  3284. yyb83 = yyj83 > l
  3285. } else {
  3286. yyb83 = r.CheckBreak()
  3287. }
  3288. if yyb83 {
  3289. z.DecReadArrayEnd()
  3290. return
  3291. }
  3292. z.DecReadArrayElem()
  3293. if r.TryDecodeAsNil() {
  3294. x.SstrUi64T = nil
  3295. } else {
  3296. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  3297. }
  3298. yyj83++
  3299. if yyhl83 {
  3300. yyb83 = yyj83 > l
  3301. } else {
  3302. yyb83 = r.CheckBreak()
  3303. }
  3304. if yyb83 {
  3305. z.DecReadArrayEnd()
  3306. return
  3307. }
  3308. z.DecReadArrayElem()
  3309. if r.TryDecodeAsNil() {
  3310. x.MstrUi64T = nil
  3311. } else {
  3312. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  3313. }
  3314. yyj83++
  3315. if yyhl83 {
  3316. yyb83 = yyj83 > l
  3317. } else {
  3318. yyb83 = r.CheckBreak()
  3319. }
  3320. if yyb83 {
  3321. z.DecReadArrayEnd()
  3322. return
  3323. }
  3324. z.DecReadArrayElem()
  3325. if r.TryDecodeAsNil() {
  3326. x.AnonInTestStruc.AS = ""
  3327. } else {
  3328. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  3329. }
  3330. yyj83++
  3331. if yyhl83 {
  3332. yyb83 = yyj83 > l
  3333. } else {
  3334. yyb83 = r.CheckBreak()
  3335. }
  3336. if yyb83 {
  3337. z.DecReadArrayEnd()
  3338. return
  3339. }
  3340. z.DecReadArrayElem()
  3341. if r.TryDecodeAsNil() {
  3342. x.AnonInTestStruc.AI64 = 0
  3343. } else {
  3344. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  3345. }
  3346. yyj83++
  3347. if yyhl83 {
  3348. yyb83 = yyj83 > l
  3349. } else {
  3350. yyb83 = r.CheckBreak()
  3351. }
  3352. if yyb83 {
  3353. z.DecReadArrayEnd()
  3354. return
  3355. }
  3356. z.DecReadArrayElem()
  3357. if r.TryDecodeAsNil() {
  3358. x.AnonInTestStruc.AI16 = 0
  3359. } else {
  3360. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3361. }
  3362. yyj83++
  3363. if yyhl83 {
  3364. yyb83 = yyj83 > l
  3365. } else {
  3366. yyb83 = r.CheckBreak()
  3367. }
  3368. if yyb83 {
  3369. z.DecReadArrayEnd()
  3370. return
  3371. }
  3372. z.DecReadArrayElem()
  3373. if r.TryDecodeAsNil() {
  3374. x.AnonInTestStruc.AUi64 = 0
  3375. } else {
  3376. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3377. }
  3378. yyj83++
  3379. if yyhl83 {
  3380. yyb83 = yyj83 > l
  3381. } else {
  3382. yyb83 = r.CheckBreak()
  3383. }
  3384. if yyb83 {
  3385. z.DecReadArrayEnd()
  3386. return
  3387. }
  3388. z.DecReadArrayElem()
  3389. if r.TryDecodeAsNil() {
  3390. x.AnonInTestStruc.ASslice = nil
  3391. } else {
  3392. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  3393. }
  3394. yyj83++
  3395. if yyhl83 {
  3396. yyb83 = yyj83 > l
  3397. } else {
  3398. yyb83 = r.CheckBreak()
  3399. }
  3400. if yyb83 {
  3401. z.DecReadArrayEnd()
  3402. return
  3403. }
  3404. z.DecReadArrayElem()
  3405. if r.TryDecodeAsNil() {
  3406. x.AnonInTestStruc.AI64slice = nil
  3407. } else {
  3408. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  3409. }
  3410. yyj83++
  3411. if yyhl83 {
  3412. yyb83 = yyj83 > l
  3413. } else {
  3414. yyb83 = r.CheckBreak()
  3415. }
  3416. if yyb83 {
  3417. z.DecReadArrayEnd()
  3418. return
  3419. }
  3420. z.DecReadArrayElem()
  3421. if r.TryDecodeAsNil() {
  3422. x.AnonInTestStruc.AUi64slice = nil
  3423. } else {
  3424. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  3425. }
  3426. yyj83++
  3427. if yyhl83 {
  3428. yyb83 = yyj83 > l
  3429. } else {
  3430. yyb83 = r.CheckBreak()
  3431. }
  3432. if yyb83 {
  3433. z.DecReadArrayEnd()
  3434. return
  3435. }
  3436. z.DecReadArrayElem()
  3437. if r.TryDecodeAsNil() {
  3438. x.AnonInTestStruc.AF64slice = nil
  3439. } else {
  3440. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  3441. }
  3442. yyj83++
  3443. if yyhl83 {
  3444. yyb83 = yyj83 > l
  3445. } else {
  3446. yyb83 = r.CheckBreak()
  3447. }
  3448. if yyb83 {
  3449. z.DecReadArrayEnd()
  3450. return
  3451. }
  3452. z.DecReadArrayElem()
  3453. if r.TryDecodeAsNil() {
  3454. x.AnonInTestStruc.AF32slice = nil
  3455. } else {
  3456. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  3457. }
  3458. yyj83++
  3459. if yyhl83 {
  3460. yyb83 = yyj83 > l
  3461. } else {
  3462. yyb83 = r.CheckBreak()
  3463. }
  3464. if yyb83 {
  3465. z.DecReadArrayEnd()
  3466. return
  3467. }
  3468. z.DecReadArrayElem()
  3469. if r.TryDecodeAsNil() {
  3470. x.AnonInTestStruc.AMSU16 = nil
  3471. } else {
  3472. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  3473. }
  3474. yyj83++
  3475. if yyhl83 {
  3476. yyb83 = yyj83 > l
  3477. } else {
  3478. yyb83 = r.CheckBreak()
  3479. }
  3480. if yyb83 {
  3481. z.DecReadArrayEnd()
  3482. return
  3483. }
  3484. z.DecReadArrayElem()
  3485. if r.TryDecodeAsNil() {
  3486. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3487. } else {
  3488. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  3489. }
  3490. yyj83++
  3491. if yyhl83 {
  3492. yyb83 = yyj83 > l
  3493. } else {
  3494. yyb83 = r.CheckBreak()
  3495. }
  3496. if yyb83 {
  3497. z.DecReadArrayEnd()
  3498. return
  3499. }
  3500. z.DecReadArrayElem()
  3501. if r.TryDecodeAsNil() {
  3502. x.AnonInTestStruc.AI64slice0 = nil
  3503. } else {
  3504. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  3505. }
  3506. yyj83++
  3507. if yyhl83 {
  3508. yyb83 = yyj83 > l
  3509. } else {
  3510. yyb83 = r.CheckBreak()
  3511. }
  3512. if yyb83 {
  3513. z.DecReadArrayEnd()
  3514. return
  3515. }
  3516. z.DecReadArrayElem()
  3517. if r.TryDecodeAsNil() {
  3518. x.AnonInTestStruc.AUi64sliceN = nil
  3519. } else {
  3520. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  3521. }
  3522. yyj83++
  3523. if yyhl83 {
  3524. yyb83 = yyj83 > l
  3525. } else {
  3526. yyb83 = r.CheckBreak()
  3527. }
  3528. if yyb83 {
  3529. z.DecReadArrayEnd()
  3530. return
  3531. }
  3532. z.DecReadArrayElem()
  3533. if r.TryDecodeAsNil() {
  3534. x.AnonInTestStruc.AMSU16N = nil
  3535. } else {
  3536. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  3537. }
  3538. yyj83++
  3539. if yyhl83 {
  3540. yyb83 = yyj83 > l
  3541. } else {
  3542. yyb83 = r.CheckBreak()
  3543. }
  3544. if yyb83 {
  3545. z.DecReadArrayEnd()
  3546. return
  3547. }
  3548. z.DecReadArrayElem()
  3549. if r.TryDecodeAsNil() {
  3550. x.AnonInTestStruc.AMSU16E = nil
  3551. } else {
  3552. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  3553. }
  3554. yyj83++
  3555. if yyhl83 {
  3556. yyb83 = yyj83 > l
  3557. } else {
  3558. yyb83 = r.CheckBreak()
  3559. }
  3560. if yyb83 {
  3561. z.DecReadArrayEnd()
  3562. return
  3563. }
  3564. z.DecReadArrayElem()
  3565. if r.TryDecodeAsNil() {
  3566. x.NotAnon = AnonInTestStruc{}
  3567. } else {
  3568. x.NotAnon.CodecDecodeSelf(d)
  3569. }
  3570. yyj83++
  3571. if yyhl83 {
  3572. yyb83 = yyj83 > l
  3573. } else {
  3574. yyb83 = r.CheckBreak()
  3575. }
  3576. if yyb83 {
  3577. z.DecReadArrayEnd()
  3578. return
  3579. }
  3580. z.DecReadArrayElem()
  3581. if r.TryDecodeAsNil() {
  3582. x.Nmap = nil
  3583. } else {
  3584. z.F.DecMapStringBoolX(&x.Nmap, d)
  3585. }
  3586. yyj83++
  3587. if yyhl83 {
  3588. yyb83 = yyj83 > l
  3589. } else {
  3590. yyb83 = r.CheckBreak()
  3591. }
  3592. if yyb83 {
  3593. z.DecReadArrayEnd()
  3594. return
  3595. }
  3596. z.DecReadArrayElem()
  3597. if r.TryDecodeAsNil() {
  3598. x.Nslice = nil
  3599. } else {
  3600. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3601. }
  3602. yyj83++
  3603. if yyhl83 {
  3604. yyb83 = yyj83 > l
  3605. } else {
  3606. yyb83 = r.CheckBreak()
  3607. }
  3608. if yyb83 {
  3609. z.DecReadArrayEnd()
  3610. return
  3611. }
  3612. z.DecReadArrayElem()
  3613. if r.TryDecodeAsNil() {
  3614. if x.Nint64 != nil { // remove the if-true
  3615. x.Nint64 = nil
  3616. }
  3617. } else {
  3618. if x.Nint64 == nil {
  3619. x.Nint64 = new(int64)
  3620. }
  3621. *x.Nint64 = (int64)(r.DecodeInt64())
  3622. }
  3623. for {
  3624. yyj83++
  3625. if yyhl83 {
  3626. yyb83 = yyj83 > l
  3627. } else {
  3628. yyb83 = r.CheckBreak()
  3629. }
  3630. if yyb83 {
  3631. break
  3632. }
  3633. z.DecReadArrayElem()
  3634. z.DecStructFieldNotFound(yyj83-1, "")
  3635. }
  3636. }
  3637. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  3638. var h codecSelfer19780
  3639. z, r := GenHelperEncoder(e)
  3640. _, _, _ = h, z, r
  3641. if x == nil {
  3642. r.EncodeNil()
  3643. } else { // checkNil=true
  3644. yysep2 := !z.EncBinary()
  3645. yy2arr2 := z.EncBasicHandle().StructToArray
  3646. _, _ = yysep2, yy2arr2
  3647. const yyr2 bool = false // struct tag has 'toArray'
  3648. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  3649. var yyn58 bool = x.Nteststruc == nil
  3650. if yyr2 || yy2arr2 {
  3651. z.EncWriteArrayStart(56)
  3652. z.EncWriteArrayElem()
  3653. if z.EncBasicHandle().StringToRaw {
  3654. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3655. } else {
  3656. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3657. }
  3658. z.EncWriteArrayElem()
  3659. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3660. z.EncWriteArrayElem()
  3661. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3662. z.EncWriteArrayElem()
  3663. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3664. z.EncWriteArrayElem()
  3665. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3666. z.EncWriteArrayElem()
  3667. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3668. z.EncWriteArrayElem()
  3669. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3670. z.EncWriteArrayElem()
  3671. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3672. z.EncWriteArrayElem()
  3673. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3674. z.EncWriteArrayElem()
  3675. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3676. z.EncWriteArrayElem()
  3677. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3678. z.EncWriteArrayElem()
  3679. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3680. z.EncWriteArrayElem()
  3681. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3682. z.EncWriteArrayElem()
  3683. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3684. z.EncWriteArrayElem()
  3685. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3686. z.EncWriteArrayElem()
  3687. r.EncodeBool(bool(x.TestStrucCommon.B))
  3688. z.EncWriteArrayElem()
  3689. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3690. z.EncWriteArrayElem()
  3691. if x.TestStrucCommon.Sslice == nil {
  3692. r.EncodeNil()
  3693. } else {
  3694. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3695. } // end block: if x.TestStrucCommon.Sslice slice == nil
  3696. z.EncWriteArrayElem()
  3697. if x.TestStrucCommon.I64slice == nil {
  3698. r.EncodeNil()
  3699. } else {
  3700. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3701. } // end block: if x.TestStrucCommon.I64slice slice == nil
  3702. z.EncWriteArrayElem()
  3703. if x.TestStrucCommon.I16slice == nil {
  3704. r.EncodeNil()
  3705. } else {
  3706. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3707. } // end block: if x.TestStrucCommon.I16slice slice == nil
  3708. z.EncWriteArrayElem()
  3709. if x.TestStrucCommon.Ui64slice == nil {
  3710. r.EncodeNil()
  3711. } else {
  3712. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3713. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  3714. z.EncWriteArrayElem()
  3715. if x.TestStrucCommon.Ui8slice == nil {
  3716. r.EncodeNil()
  3717. } else {
  3718. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3719. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  3720. z.EncWriteArrayElem()
  3721. if x.TestStrucCommon.Bslice == nil {
  3722. r.EncodeNil()
  3723. } else {
  3724. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3725. } // end block: if x.TestStrucCommon.Bslice slice == nil
  3726. z.EncWriteArrayElem()
  3727. if x.TestStrucCommon.Byslice == nil {
  3728. r.EncodeNil()
  3729. } else {
  3730. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3731. } // end block: if x.TestStrucCommon.Byslice slice == nil
  3732. z.EncWriteArrayElem()
  3733. if x.TestStrucCommon.BytesSlice == nil {
  3734. r.EncodeNil()
  3735. } else {
  3736. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3737. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  3738. z.EncWriteArrayElem()
  3739. if x.TestStrucCommon.Iptrslice == nil {
  3740. r.EncodeNil()
  3741. } else {
  3742. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3743. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  3744. z.EncWriteArrayElem()
  3745. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3746. z.EncWriteArrayElem()
  3747. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3748. z.EncWriteArrayElem()
  3749. if x.TestStrucCommon.Msi64 == nil {
  3750. r.EncodeNil()
  3751. } else {
  3752. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3753. } // end block: if x.TestStrucCommon.Msi64 map == nil
  3754. z.EncWriteArrayElem()
  3755. if x.TestStrucCommon.Msbytes == nil {
  3756. r.EncodeNil()
  3757. } else {
  3758. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3759. } // end block: if x.TestStrucCommon.Msbytes map == nil
  3760. z.EncWriteArrayElem()
  3761. yy89 := &x.TestStrucCommon.Simplef
  3762. yy89.CodecEncodeSelf(e)
  3763. z.EncWriteArrayElem()
  3764. if x.TestStrucCommon.SstrUi64T == nil {
  3765. r.EncodeNil()
  3766. } else {
  3767. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3768. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  3769. z.EncWriteArrayElem()
  3770. if x.TestStrucCommon.MstrUi64T == nil {
  3771. r.EncodeNil()
  3772. } else {
  3773. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3774. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  3775. z.EncWriteArrayElem()
  3776. if z.EncBasicHandle().StringToRaw {
  3777. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3778. } else {
  3779. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3780. }
  3781. z.EncWriteArrayElem()
  3782. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3783. z.EncWriteArrayElem()
  3784. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3785. z.EncWriteArrayElem()
  3786. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3787. z.EncWriteArrayElem()
  3788. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  3789. r.EncodeNil()
  3790. } else {
  3791. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3792. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  3793. z.EncWriteArrayElem()
  3794. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  3795. r.EncodeNil()
  3796. } else {
  3797. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3798. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  3799. z.EncWriteArrayElem()
  3800. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  3801. r.EncodeNil()
  3802. } else {
  3803. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3804. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  3805. z.EncWriteArrayElem()
  3806. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  3807. r.EncodeNil()
  3808. } else {
  3809. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3810. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  3811. z.EncWriteArrayElem()
  3812. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  3813. r.EncodeNil()
  3814. } else {
  3815. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3816. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  3817. z.EncWriteArrayElem()
  3818. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  3819. r.EncodeNil()
  3820. } else {
  3821. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3822. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  3823. z.EncWriteArrayElem()
  3824. yy103 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3825. h.encArray0int64((*[0]int64)(yy103), e)
  3826. z.EncWriteArrayElem()
  3827. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  3828. r.EncodeNil()
  3829. } else {
  3830. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3831. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  3832. z.EncWriteArrayElem()
  3833. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  3834. r.EncodeNil()
  3835. } else {
  3836. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3837. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  3838. z.EncWriteArrayElem()
  3839. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  3840. r.EncodeNil()
  3841. } else {
  3842. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3843. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  3844. z.EncWriteArrayElem()
  3845. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  3846. r.EncodeNil()
  3847. } else {
  3848. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3849. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  3850. z.EncWriteArrayElem()
  3851. yy109 := &x.TestStrucCommon.NotAnon
  3852. yy109.CodecEncodeSelf(e)
  3853. z.EncWriteArrayElem()
  3854. if x.TestStrucCommon.Nmap == nil {
  3855. r.EncodeNil()
  3856. } else {
  3857. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3858. } // end block: if x.TestStrucCommon.Nmap map == nil
  3859. z.EncWriteArrayElem()
  3860. if x.TestStrucCommon.Nslice == nil {
  3861. r.EncodeNil()
  3862. } else {
  3863. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3864. } // end block: if x.TestStrucCommon.Nslice slice == nil
  3865. if yyn54 {
  3866. z.EncWriteArrayElem()
  3867. r.EncodeNil()
  3868. } else {
  3869. z.EncWriteArrayElem()
  3870. yy113 := *x.TestStrucCommon.Nint64
  3871. r.EncodeInt(int64(yy113))
  3872. }
  3873. z.EncWriteArrayElem()
  3874. if x.Mtsptr == nil {
  3875. r.EncodeNil()
  3876. } else {
  3877. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3878. } // end block: if x.Mtsptr map == nil
  3879. z.EncWriteArrayElem()
  3880. if x.Mts == nil {
  3881. r.EncodeNil()
  3882. } else {
  3883. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3884. } // end block: if x.Mts map == nil
  3885. z.EncWriteArrayElem()
  3886. if x.Its == nil {
  3887. r.EncodeNil()
  3888. } else {
  3889. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3890. } // end block: if x.Its slice == nil
  3891. if yyn58 {
  3892. z.EncWriteArrayElem()
  3893. r.EncodeNil()
  3894. } else {
  3895. z.EncWriteArrayElem()
  3896. x.Nteststruc.CodecEncodeSelf(e)
  3897. }
  3898. z.EncWriteArrayEnd()
  3899. } else {
  3900. z.EncWriteMapStart(56)
  3901. z.EncWriteMapElemKey()
  3902. if z.IsJSONHandle() {
  3903. z.WriteStr("\"S\"")
  3904. } else {
  3905. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3906. }
  3907. z.EncWriteMapElemValue()
  3908. if z.EncBasicHandle().StringToRaw {
  3909. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3910. } else {
  3911. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3912. }
  3913. z.EncWriteMapElemKey()
  3914. if z.IsJSONHandle() {
  3915. z.WriteStr("\"I64\"")
  3916. } else {
  3917. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3918. }
  3919. z.EncWriteMapElemValue()
  3920. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3921. z.EncWriteMapElemKey()
  3922. if z.IsJSONHandle() {
  3923. z.WriteStr("\"I32\"")
  3924. } else {
  3925. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3926. }
  3927. z.EncWriteMapElemValue()
  3928. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3929. z.EncWriteMapElemKey()
  3930. if z.IsJSONHandle() {
  3931. z.WriteStr("\"I16\"")
  3932. } else {
  3933. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3934. }
  3935. z.EncWriteMapElemValue()
  3936. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3937. z.EncWriteMapElemKey()
  3938. if z.IsJSONHandle() {
  3939. z.WriteStr("\"I8\"")
  3940. } else {
  3941. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3942. }
  3943. z.EncWriteMapElemValue()
  3944. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3945. z.EncWriteMapElemKey()
  3946. if z.IsJSONHandle() {
  3947. z.WriteStr("\"I64n\"")
  3948. } else {
  3949. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3950. }
  3951. z.EncWriteMapElemValue()
  3952. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3953. z.EncWriteMapElemKey()
  3954. if z.IsJSONHandle() {
  3955. z.WriteStr("\"I32n\"")
  3956. } else {
  3957. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3958. }
  3959. z.EncWriteMapElemValue()
  3960. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3961. z.EncWriteMapElemKey()
  3962. if z.IsJSONHandle() {
  3963. z.WriteStr("\"I16n\"")
  3964. } else {
  3965. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3966. }
  3967. z.EncWriteMapElemValue()
  3968. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3969. z.EncWriteMapElemKey()
  3970. if z.IsJSONHandle() {
  3971. z.WriteStr("\"I8n\"")
  3972. } else {
  3973. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3974. }
  3975. z.EncWriteMapElemValue()
  3976. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3977. z.EncWriteMapElemKey()
  3978. if z.IsJSONHandle() {
  3979. z.WriteStr("\"Ui64\"")
  3980. } else {
  3981. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3982. }
  3983. z.EncWriteMapElemValue()
  3984. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3985. z.EncWriteMapElemKey()
  3986. if z.IsJSONHandle() {
  3987. z.WriteStr("\"Ui32\"")
  3988. } else {
  3989. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3990. }
  3991. z.EncWriteMapElemValue()
  3992. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3993. z.EncWriteMapElemKey()
  3994. if z.IsJSONHandle() {
  3995. z.WriteStr("\"Ui16\"")
  3996. } else {
  3997. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3998. }
  3999. z.EncWriteMapElemValue()
  4000. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  4001. z.EncWriteMapElemKey()
  4002. if z.IsJSONHandle() {
  4003. z.WriteStr("\"Ui8\"")
  4004. } else {
  4005. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  4006. }
  4007. z.EncWriteMapElemValue()
  4008. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  4009. z.EncWriteMapElemKey()
  4010. if z.IsJSONHandle() {
  4011. z.WriteStr("\"F64\"")
  4012. } else {
  4013. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  4014. }
  4015. z.EncWriteMapElemValue()
  4016. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  4017. z.EncWriteMapElemKey()
  4018. if z.IsJSONHandle() {
  4019. z.WriteStr("\"F32\"")
  4020. } else {
  4021. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  4022. }
  4023. z.EncWriteMapElemValue()
  4024. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  4025. z.EncWriteMapElemKey()
  4026. if z.IsJSONHandle() {
  4027. z.WriteStr("\"B\"")
  4028. } else {
  4029. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  4030. }
  4031. z.EncWriteMapElemValue()
  4032. r.EncodeBool(bool(x.TestStrucCommon.B))
  4033. z.EncWriteMapElemKey()
  4034. if z.IsJSONHandle() {
  4035. z.WriteStr("\"By\"")
  4036. } else {
  4037. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  4038. }
  4039. z.EncWriteMapElemValue()
  4040. r.EncodeUint(uint64(x.TestStrucCommon.By))
  4041. z.EncWriteMapElemKey()
  4042. if z.IsJSONHandle() {
  4043. z.WriteStr("\"Sslice\"")
  4044. } else {
  4045. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  4046. }
  4047. z.EncWriteMapElemValue()
  4048. if x.TestStrucCommon.Sslice == nil {
  4049. r.EncodeNil()
  4050. } else {
  4051. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  4052. } // end block: if x.TestStrucCommon.Sslice slice == nil
  4053. z.EncWriteMapElemKey()
  4054. if z.IsJSONHandle() {
  4055. z.WriteStr("\"I64slice\"")
  4056. } else {
  4057. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  4058. }
  4059. z.EncWriteMapElemValue()
  4060. if x.TestStrucCommon.I64slice == nil {
  4061. r.EncodeNil()
  4062. } else {
  4063. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  4064. } // end block: if x.TestStrucCommon.I64slice slice == nil
  4065. z.EncWriteMapElemKey()
  4066. if z.IsJSONHandle() {
  4067. z.WriteStr("\"I16slice\"")
  4068. } else {
  4069. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  4070. }
  4071. z.EncWriteMapElemValue()
  4072. if x.TestStrucCommon.I16slice == nil {
  4073. r.EncodeNil()
  4074. } else {
  4075. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  4076. } // end block: if x.TestStrucCommon.I16slice slice == nil
  4077. z.EncWriteMapElemKey()
  4078. if z.IsJSONHandle() {
  4079. z.WriteStr("\"Ui64slice\"")
  4080. } else {
  4081. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  4082. }
  4083. z.EncWriteMapElemValue()
  4084. if x.TestStrucCommon.Ui64slice == nil {
  4085. r.EncodeNil()
  4086. } else {
  4087. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  4088. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  4089. z.EncWriteMapElemKey()
  4090. if z.IsJSONHandle() {
  4091. z.WriteStr("\"Ui8slice\"")
  4092. } else {
  4093. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  4094. }
  4095. z.EncWriteMapElemValue()
  4096. if x.TestStrucCommon.Ui8slice == nil {
  4097. r.EncodeNil()
  4098. } else {
  4099. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  4100. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  4101. z.EncWriteMapElemKey()
  4102. if z.IsJSONHandle() {
  4103. z.WriteStr("\"Bslice\"")
  4104. } else {
  4105. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  4106. }
  4107. z.EncWriteMapElemValue()
  4108. if x.TestStrucCommon.Bslice == nil {
  4109. r.EncodeNil()
  4110. } else {
  4111. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  4112. } // end block: if x.TestStrucCommon.Bslice slice == nil
  4113. z.EncWriteMapElemKey()
  4114. if z.IsJSONHandle() {
  4115. z.WriteStr("\"Byslice\"")
  4116. } else {
  4117. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  4118. }
  4119. z.EncWriteMapElemValue()
  4120. if x.TestStrucCommon.Byslice == nil {
  4121. r.EncodeNil()
  4122. } else {
  4123. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  4124. } // end block: if x.TestStrucCommon.Byslice slice == nil
  4125. z.EncWriteMapElemKey()
  4126. if z.IsJSONHandle() {
  4127. z.WriteStr("\"BytesSlice\"")
  4128. } else {
  4129. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  4130. }
  4131. z.EncWriteMapElemValue()
  4132. if x.TestStrucCommon.BytesSlice == nil {
  4133. r.EncodeNil()
  4134. } else {
  4135. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  4136. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  4137. z.EncWriteMapElemKey()
  4138. if z.IsJSONHandle() {
  4139. z.WriteStr("\"Iptrslice\"")
  4140. } else {
  4141. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  4142. }
  4143. z.EncWriteMapElemValue()
  4144. if x.TestStrucCommon.Iptrslice == nil {
  4145. r.EncodeNil()
  4146. } else {
  4147. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  4148. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  4149. z.EncWriteMapElemKey()
  4150. if z.IsJSONHandle() {
  4151. z.WriteStr("\"WrapSliceInt64\"")
  4152. } else {
  4153. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  4154. }
  4155. z.EncWriteMapElemValue()
  4156. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  4157. z.EncWriteMapElemKey()
  4158. if z.IsJSONHandle() {
  4159. z.WriteStr("\"WrapSliceString\"")
  4160. } else {
  4161. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  4162. }
  4163. z.EncWriteMapElemValue()
  4164. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  4165. z.EncWriteMapElemKey()
  4166. if z.IsJSONHandle() {
  4167. z.WriteStr("\"Msi64\"")
  4168. } else {
  4169. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  4170. }
  4171. z.EncWriteMapElemValue()
  4172. if x.TestStrucCommon.Msi64 == nil {
  4173. r.EncodeNil()
  4174. } else {
  4175. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  4176. } // end block: if x.TestStrucCommon.Msi64 map == nil
  4177. z.EncWriteMapElemKey()
  4178. if z.IsJSONHandle() {
  4179. z.WriteStr("\"Msbytes\"")
  4180. } else {
  4181. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  4182. }
  4183. z.EncWriteMapElemValue()
  4184. if x.TestStrucCommon.Msbytes == nil {
  4185. r.EncodeNil()
  4186. } else {
  4187. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  4188. } // end block: if x.TestStrucCommon.Msbytes map == nil
  4189. z.EncWriteMapElemKey()
  4190. if z.IsJSONHandle() {
  4191. z.WriteStr("\"Simplef\"")
  4192. } else {
  4193. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  4194. }
  4195. z.EncWriteMapElemValue()
  4196. yy149 := &x.TestStrucCommon.Simplef
  4197. yy149.CodecEncodeSelf(e)
  4198. z.EncWriteMapElemKey()
  4199. if z.IsJSONHandle() {
  4200. z.WriteStr("\"SstrUi64T\"")
  4201. } else {
  4202. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  4203. }
  4204. z.EncWriteMapElemValue()
  4205. if x.TestStrucCommon.SstrUi64T == nil {
  4206. r.EncodeNil()
  4207. } else {
  4208. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  4209. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  4210. z.EncWriteMapElemKey()
  4211. if z.IsJSONHandle() {
  4212. z.WriteStr("\"MstrUi64T\"")
  4213. } else {
  4214. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  4215. }
  4216. z.EncWriteMapElemValue()
  4217. if x.TestStrucCommon.MstrUi64T == nil {
  4218. r.EncodeNil()
  4219. } else {
  4220. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  4221. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  4222. z.EncWriteMapElemKey()
  4223. if z.IsJSONHandle() {
  4224. z.WriteStr("\"AS\"")
  4225. } else {
  4226. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  4227. }
  4228. z.EncWriteMapElemValue()
  4229. if z.EncBasicHandle().StringToRaw {
  4230. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  4231. } else {
  4232. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  4233. }
  4234. z.EncWriteMapElemKey()
  4235. if z.IsJSONHandle() {
  4236. z.WriteStr("\"AI64\"")
  4237. } else {
  4238. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  4239. }
  4240. z.EncWriteMapElemValue()
  4241. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  4242. z.EncWriteMapElemKey()
  4243. if z.IsJSONHandle() {
  4244. z.WriteStr("\"AI16\"")
  4245. } else {
  4246. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  4247. }
  4248. z.EncWriteMapElemValue()
  4249. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  4250. z.EncWriteMapElemKey()
  4251. if z.IsJSONHandle() {
  4252. z.WriteStr("\"AUi64\"")
  4253. } else {
  4254. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  4255. }
  4256. z.EncWriteMapElemValue()
  4257. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  4258. z.EncWriteMapElemKey()
  4259. if z.IsJSONHandle() {
  4260. z.WriteStr("\"ASslice\"")
  4261. } else {
  4262. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  4263. }
  4264. z.EncWriteMapElemValue()
  4265. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  4266. r.EncodeNil()
  4267. } else {
  4268. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  4269. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  4270. z.EncWriteMapElemKey()
  4271. if z.IsJSONHandle() {
  4272. z.WriteStr("\"AI64slice\"")
  4273. } else {
  4274. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  4275. }
  4276. z.EncWriteMapElemValue()
  4277. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  4278. r.EncodeNil()
  4279. } else {
  4280. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  4281. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  4282. z.EncWriteMapElemKey()
  4283. if z.IsJSONHandle() {
  4284. z.WriteStr("\"AUi64slice\"")
  4285. } else {
  4286. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  4287. }
  4288. z.EncWriteMapElemValue()
  4289. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  4290. r.EncodeNil()
  4291. } else {
  4292. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  4293. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  4294. z.EncWriteMapElemKey()
  4295. if z.IsJSONHandle() {
  4296. z.WriteStr("\"AF64slice\"")
  4297. } else {
  4298. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  4299. }
  4300. z.EncWriteMapElemValue()
  4301. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  4302. r.EncodeNil()
  4303. } else {
  4304. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  4305. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  4306. z.EncWriteMapElemKey()
  4307. if z.IsJSONHandle() {
  4308. z.WriteStr("\"AF32slice\"")
  4309. } else {
  4310. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  4311. }
  4312. z.EncWriteMapElemValue()
  4313. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  4314. r.EncodeNil()
  4315. } else {
  4316. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  4317. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  4318. z.EncWriteMapElemKey()
  4319. if z.IsJSONHandle() {
  4320. z.WriteStr("\"AMSU16\"")
  4321. } else {
  4322. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  4323. }
  4324. z.EncWriteMapElemValue()
  4325. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  4326. r.EncodeNil()
  4327. } else {
  4328. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  4329. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  4330. z.EncWriteMapElemKey()
  4331. if z.IsJSONHandle() {
  4332. z.WriteStr("\"AI64arr0\"")
  4333. } else {
  4334. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  4335. }
  4336. z.EncWriteMapElemValue()
  4337. yy163 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  4338. h.encArray0int64((*[0]int64)(yy163), e)
  4339. z.EncWriteMapElemKey()
  4340. if z.IsJSONHandle() {
  4341. z.WriteStr("\"AI64slice0\"")
  4342. } else {
  4343. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  4344. }
  4345. z.EncWriteMapElemValue()
  4346. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  4347. r.EncodeNil()
  4348. } else {
  4349. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  4350. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  4351. z.EncWriteMapElemKey()
  4352. if z.IsJSONHandle() {
  4353. z.WriteStr("\"AUi64sliceN\"")
  4354. } else {
  4355. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  4356. }
  4357. z.EncWriteMapElemValue()
  4358. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  4359. r.EncodeNil()
  4360. } else {
  4361. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  4362. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  4363. z.EncWriteMapElemKey()
  4364. if z.IsJSONHandle() {
  4365. z.WriteStr("\"AMSU16N\"")
  4366. } else {
  4367. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  4368. }
  4369. z.EncWriteMapElemValue()
  4370. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  4371. r.EncodeNil()
  4372. } else {
  4373. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  4374. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  4375. z.EncWriteMapElemKey()
  4376. if z.IsJSONHandle() {
  4377. z.WriteStr("\"AMSU16E\"")
  4378. } else {
  4379. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  4380. }
  4381. z.EncWriteMapElemValue()
  4382. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  4383. r.EncodeNil()
  4384. } else {
  4385. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  4386. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  4387. z.EncWriteMapElemKey()
  4388. if z.IsJSONHandle() {
  4389. z.WriteStr("\"NotAnon\"")
  4390. } else {
  4391. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  4392. }
  4393. z.EncWriteMapElemValue()
  4394. yy169 := &x.TestStrucCommon.NotAnon
  4395. yy169.CodecEncodeSelf(e)
  4396. z.EncWriteMapElemKey()
  4397. if z.IsJSONHandle() {
  4398. z.WriteStr("\"Nmap\"")
  4399. } else {
  4400. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  4401. }
  4402. z.EncWriteMapElemValue()
  4403. if x.TestStrucCommon.Nmap == nil {
  4404. r.EncodeNil()
  4405. } else {
  4406. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  4407. } // end block: if x.TestStrucCommon.Nmap map == nil
  4408. z.EncWriteMapElemKey()
  4409. if z.IsJSONHandle() {
  4410. z.WriteStr("\"Nslice\"")
  4411. } else {
  4412. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  4413. }
  4414. z.EncWriteMapElemValue()
  4415. if x.TestStrucCommon.Nslice == nil {
  4416. r.EncodeNil()
  4417. } else {
  4418. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  4419. } // end block: if x.TestStrucCommon.Nslice slice == nil
  4420. z.EncWriteMapElemKey()
  4421. if z.IsJSONHandle() {
  4422. z.WriteStr("\"Nint64\"")
  4423. } else {
  4424. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  4425. }
  4426. z.EncWriteMapElemValue()
  4427. if yyn54 {
  4428. r.EncodeNil()
  4429. } else {
  4430. yy173 := *x.TestStrucCommon.Nint64
  4431. r.EncodeInt(int64(yy173))
  4432. }
  4433. z.EncWriteMapElemKey()
  4434. if z.IsJSONHandle() {
  4435. z.WriteStr("\"Mtsptr\"")
  4436. } else {
  4437. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  4438. }
  4439. z.EncWriteMapElemValue()
  4440. if x.Mtsptr == nil {
  4441. r.EncodeNil()
  4442. } else {
  4443. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  4444. } // end block: if x.Mtsptr map == nil
  4445. z.EncWriteMapElemKey()
  4446. if z.IsJSONHandle() {
  4447. z.WriteStr("\"Mts\"")
  4448. } else {
  4449. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  4450. }
  4451. z.EncWriteMapElemValue()
  4452. if x.Mts == nil {
  4453. r.EncodeNil()
  4454. } else {
  4455. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  4456. } // end block: if x.Mts map == nil
  4457. z.EncWriteMapElemKey()
  4458. if z.IsJSONHandle() {
  4459. z.WriteStr("\"Its\"")
  4460. } else {
  4461. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  4462. }
  4463. z.EncWriteMapElemValue()
  4464. if x.Its == nil {
  4465. r.EncodeNil()
  4466. } else {
  4467. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  4468. } // end block: if x.Its slice == nil
  4469. z.EncWriteMapElemKey()
  4470. if z.IsJSONHandle() {
  4471. z.WriteStr("\"Nteststruc\"")
  4472. } else {
  4473. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  4474. }
  4475. z.EncWriteMapElemValue()
  4476. if yyn58 {
  4477. r.EncodeNil()
  4478. } else {
  4479. x.Nteststruc.CodecEncodeSelf(e)
  4480. }
  4481. z.EncWriteMapEnd()
  4482. }
  4483. } // checkNil=true
  4484. }
  4485. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  4486. var h codecSelfer19780
  4487. z, r := GenHelperDecoder(d)
  4488. _, _, _ = h, z, r
  4489. yyct2 := r.ContainerType()
  4490. if yyct2 == codecSelferValueTypeMap19780 {
  4491. yyl2 := z.DecReadMapStart()
  4492. if yyl2 == 0 {
  4493. } else {
  4494. x.codecDecodeSelfFromMap(yyl2, d)
  4495. }
  4496. z.DecReadMapEnd()
  4497. } else if yyct2 == codecSelferValueTypeArray19780 {
  4498. yyl2 := z.DecReadArrayStart()
  4499. if yyl2 != 0 {
  4500. x.codecDecodeSelfFromArray(yyl2, d)
  4501. }
  4502. z.DecReadArrayEnd()
  4503. } else {
  4504. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4505. }
  4506. }
  4507. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  4508. var h codecSelfer19780
  4509. z, r := GenHelperDecoder(d)
  4510. _, _, _ = h, z, r
  4511. var yyhl3 bool = l >= 0
  4512. for yyj3 := 0; ; yyj3++ {
  4513. if yyhl3 {
  4514. if yyj3 >= l {
  4515. break
  4516. }
  4517. } else {
  4518. if r.CheckBreak() {
  4519. break
  4520. }
  4521. }
  4522. z.DecReadMapElemKey()
  4523. yys3 := z.StringView(r.DecodeStringAsBytes())
  4524. z.DecReadMapElemValue()
  4525. switch yys3 {
  4526. case "S":
  4527. if r.TryDecodeAsNil() {
  4528. x.TestStrucCommon.S = ""
  4529. } else {
  4530. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  4531. }
  4532. case "I64":
  4533. if r.TryDecodeAsNil() {
  4534. x.TestStrucCommon.I64 = 0
  4535. } else {
  4536. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4537. }
  4538. case "I32":
  4539. if r.TryDecodeAsNil() {
  4540. x.TestStrucCommon.I32 = 0
  4541. } else {
  4542. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4543. }
  4544. case "I16":
  4545. if r.TryDecodeAsNil() {
  4546. x.TestStrucCommon.I16 = 0
  4547. } else {
  4548. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4549. }
  4550. case "I8":
  4551. if r.TryDecodeAsNil() {
  4552. x.TestStrucCommon.I8 = 0
  4553. } else {
  4554. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4555. }
  4556. case "I64n":
  4557. if r.TryDecodeAsNil() {
  4558. x.TestStrucCommon.I64n = 0
  4559. } else {
  4560. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4561. }
  4562. case "I32n":
  4563. if r.TryDecodeAsNil() {
  4564. x.TestStrucCommon.I32n = 0
  4565. } else {
  4566. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4567. }
  4568. case "I16n":
  4569. if r.TryDecodeAsNil() {
  4570. x.TestStrucCommon.I16n = 0
  4571. } else {
  4572. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4573. }
  4574. case "I8n":
  4575. if r.TryDecodeAsNil() {
  4576. x.TestStrucCommon.I8n = 0
  4577. } else {
  4578. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4579. }
  4580. case "Ui64":
  4581. if r.TryDecodeAsNil() {
  4582. x.TestStrucCommon.Ui64 = 0
  4583. } else {
  4584. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4585. }
  4586. case "Ui32":
  4587. if r.TryDecodeAsNil() {
  4588. x.TestStrucCommon.Ui32 = 0
  4589. } else {
  4590. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4591. }
  4592. case "Ui16":
  4593. if r.TryDecodeAsNil() {
  4594. x.TestStrucCommon.Ui16 = 0
  4595. } else {
  4596. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4597. }
  4598. case "Ui8":
  4599. if r.TryDecodeAsNil() {
  4600. x.TestStrucCommon.Ui8 = 0
  4601. } else {
  4602. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4603. }
  4604. case "F64":
  4605. if r.TryDecodeAsNil() {
  4606. x.TestStrucCommon.F64 = 0
  4607. } else {
  4608. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4609. }
  4610. case "F32":
  4611. if r.TryDecodeAsNil() {
  4612. x.TestStrucCommon.F32 = 0
  4613. } else {
  4614. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4615. }
  4616. case "B":
  4617. if r.TryDecodeAsNil() {
  4618. x.TestStrucCommon.B = false
  4619. } else {
  4620. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4621. }
  4622. case "By":
  4623. if r.TryDecodeAsNil() {
  4624. x.TestStrucCommon.By = 0
  4625. } else {
  4626. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4627. }
  4628. case "Sslice":
  4629. if r.TryDecodeAsNil() {
  4630. x.TestStrucCommon.Sslice = nil
  4631. } else {
  4632. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4633. }
  4634. case "I64slice":
  4635. if r.TryDecodeAsNil() {
  4636. x.TestStrucCommon.I64slice = nil
  4637. } else {
  4638. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4639. }
  4640. case "I16slice":
  4641. if r.TryDecodeAsNil() {
  4642. x.TestStrucCommon.I16slice = nil
  4643. } else {
  4644. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4645. }
  4646. case "Ui64slice":
  4647. if r.TryDecodeAsNil() {
  4648. x.TestStrucCommon.Ui64slice = nil
  4649. } else {
  4650. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4651. }
  4652. case "Ui8slice":
  4653. if r.TryDecodeAsNil() {
  4654. x.TestStrucCommon.Ui8slice = nil
  4655. } else {
  4656. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4657. }
  4658. case "Bslice":
  4659. if r.TryDecodeAsNil() {
  4660. x.TestStrucCommon.Bslice = nil
  4661. } else {
  4662. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4663. }
  4664. case "Byslice":
  4665. if r.TryDecodeAsNil() {
  4666. x.TestStrucCommon.Byslice = nil
  4667. } else {
  4668. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4669. }
  4670. case "BytesSlice":
  4671. if r.TryDecodeAsNil() {
  4672. x.TestStrucCommon.BytesSlice = nil
  4673. } else {
  4674. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4675. }
  4676. case "Iptrslice":
  4677. if r.TryDecodeAsNil() {
  4678. x.TestStrucCommon.Iptrslice = nil
  4679. } else {
  4680. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4681. }
  4682. case "WrapSliceInt64":
  4683. if r.TryDecodeAsNil() {
  4684. x.TestStrucCommon.WrapSliceInt64 = nil
  4685. } else {
  4686. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4687. }
  4688. case "WrapSliceString":
  4689. if r.TryDecodeAsNil() {
  4690. x.TestStrucCommon.WrapSliceString = nil
  4691. } else {
  4692. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4693. }
  4694. case "Msi64":
  4695. if r.TryDecodeAsNil() {
  4696. x.TestStrucCommon.Msi64 = nil
  4697. } else {
  4698. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4699. }
  4700. case "Msbytes":
  4701. if r.TryDecodeAsNil() {
  4702. x.TestStrucCommon.Msbytes = nil
  4703. } else {
  4704. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4705. }
  4706. case "Simplef":
  4707. if r.TryDecodeAsNil() {
  4708. x.TestStrucCommon.Simplef = testSimpleFields{}
  4709. } else {
  4710. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4711. }
  4712. case "SstrUi64T":
  4713. if r.TryDecodeAsNil() {
  4714. x.TestStrucCommon.SstrUi64T = nil
  4715. } else {
  4716. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4717. }
  4718. case "MstrUi64T":
  4719. if r.TryDecodeAsNil() {
  4720. x.TestStrucCommon.MstrUi64T = nil
  4721. } else {
  4722. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  4723. }
  4724. case "AS":
  4725. if r.TryDecodeAsNil() {
  4726. x.TestStrucCommon.AnonInTestStruc.AS = ""
  4727. } else {
  4728. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  4729. }
  4730. case "AI64":
  4731. if r.TryDecodeAsNil() {
  4732. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  4733. } else {
  4734. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4735. }
  4736. case "AI16":
  4737. if r.TryDecodeAsNil() {
  4738. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  4739. } else {
  4740. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4741. }
  4742. case "AUi64":
  4743. if r.TryDecodeAsNil() {
  4744. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  4745. } else {
  4746. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4747. }
  4748. case "ASslice":
  4749. if r.TryDecodeAsNil() {
  4750. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  4751. } else {
  4752. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4753. }
  4754. case "AI64slice":
  4755. if r.TryDecodeAsNil() {
  4756. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  4757. } else {
  4758. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4759. }
  4760. case "AUi64slice":
  4761. if r.TryDecodeAsNil() {
  4762. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  4763. } else {
  4764. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4765. }
  4766. case "AF64slice":
  4767. if r.TryDecodeAsNil() {
  4768. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  4769. } else {
  4770. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4771. }
  4772. case "AF32slice":
  4773. if r.TryDecodeAsNil() {
  4774. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  4775. } else {
  4776. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4777. }
  4778. case "AMSU16":
  4779. if r.TryDecodeAsNil() {
  4780. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  4781. } else {
  4782. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4783. }
  4784. case "AI64arr0":
  4785. if r.TryDecodeAsNil() {
  4786. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  4787. } else {
  4788. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4789. }
  4790. case "AI64slice0":
  4791. if r.TryDecodeAsNil() {
  4792. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  4793. } else {
  4794. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  4795. }
  4796. case "AUi64sliceN":
  4797. if r.TryDecodeAsNil() {
  4798. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  4799. } else {
  4800. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  4801. }
  4802. case "AMSU16N":
  4803. if r.TryDecodeAsNil() {
  4804. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  4805. } else {
  4806. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  4807. }
  4808. case "AMSU16E":
  4809. if r.TryDecodeAsNil() {
  4810. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  4811. } else {
  4812. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  4813. }
  4814. case "NotAnon":
  4815. if r.TryDecodeAsNil() {
  4816. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  4817. } else {
  4818. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  4819. }
  4820. case "Nmap":
  4821. if r.TryDecodeAsNil() {
  4822. x.TestStrucCommon.Nmap = nil
  4823. } else {
  4824. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  4825. }
  4826. case "Nslice":
  4827. if r.TryDecodeAsNil() {
  4828. x.TestStrucCommon.Nslice = nil
  4829. } else {
  4830. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  4831. }
  4832. case "Nint64":
  4833. if r.TryDecodeAsNil() {
  4834. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  4835. x.TestStrucCommon.Nint64 = nil
  4836. }
  4837. } else {
  4838. if x.TestStrucCommon.Nint64 == nil {
  4839. x.TestStrucCommon.Nint64 = new(int64)
  4840. }
  4841. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  4842. }
  4843. case "Mtsptr":
  4844. if r.TryDecodeAsNil() {
  4845. x.Mtsptr = nil
  4846. } else {
  4847. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  4848. }
  4849. case "Mts":
  4850. if r.TryDecodeAsNil() {
  4851. x.Mts = nil
  4852. } else {
  4853. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  4854. }
  4855. case "Its":
  4856. if r.TryDecodeAsNil() {
  4857. x.Its = nil
  4858. } else {
  4859. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  4860. }
  4861. case "Nteststruc":
  4862. if r.TryDecodeAsNil() {
  4863. if x.Nteststruc != nil { // remove the if-true
  4864. x.Nteststruc = nil
  4865. }
  4866. } else {
  4867. if x.Nteststruc == nil {
  4868. x.Nteststruc = new(TestStruc)
  4869. }
  4870. x.Nteststruc.CodecDecodeSelf(d)
  4871. }
  4872. default:
  4873. z.DecStructFieldNotFound(-1, yys3)
  4874. } // end switch yys3
  4875. } // end for yyj3
  4876. }
  4877. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  4878. var h codecSelfer19780
  4879. z, r := GenHelperDecoder(d)
  4880. _, _, _ = h, z, r
  4881. var yyj90 int
  4882. var yyb90 bool
  4883. var yyhl90 bool = l >= 0
  4884. yyj90++
  4885. if yyhl90 {
  4886. yyb90 = yyj90 > l
  4887. } else {
  4888. yyb90 = r.CheckBreak()
  4889. }
  4890. if yyb90 {
  4891. z.DecReadArrayEnd()
  4892. return
  4893. }
  4894. z.DecReadArrayElem()
  4895. if r.TryDecodeAsNil() {
  4896. x.TestStrucCommon.S = ""
  4897. } else {
  4898. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  4899. }
  4900. yyj90++
  4901. if yyhl90 {
  4902. yyb90 = yyj90 > l
  4903. } else {
  4904. yyb90 = r.CheckBreak()
  4905. }
  4906. if yyb90 {
  4907. z.DecReadArrayEnd()
  4908. return
  4909. }
  4910. z.DecReadArrayElem()
  4911. if r.TryDecodeAsNil() {
  4912. x.TestStrucCommon.I64 = 0
  4913. } else {
  4914. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4915. }
  4916. yyj90++
  4917. if yyhl90 {
  4918. yyb90 = yyj90 > l
  4919. } else {
  4920. yyb90 = r.CheckBreak()
  4921. }
  4922. if yyb90 {
  4923. z.DecReadArrayEnd()
  4924. return
  4925. }
  4926. z.DecReadArrayElem()
  4927. if r.TryDecodeAsNil() {
  4928. x.TestStrucCommon.I32 = 0
  4929. } else {
  4930. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4931. }
  4932. yyj90++
  4933. if yyhl90 {
  4934. yyb90 = yyj90 > l
  4935. } else {
  4936. yyb90 = r.CheckBreak()
  4937. }
  4938. if yyb90 {
  4939. z.DecReadArrayEnd()
  4940. return
  4941. }
  4942. z.DecReadArrayElem()
  4943. if r.TryDecodeAsNil() {
  4944. x.TestStrucCommon.I16 = 0
  4945. } else {
  4946. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4947. }
  4948. yyj90++
  4949. if yyhl90 {
  4950. yyb90 = yyj90 > l
  4951. } else {
  4952. yyb90 = r.CheckBreak()
  4953. }
  4954. if yyb90 {
  4955. z.DecReadArrayEnd()
  4956. return
  4957. }
  4958. z.DecReadArrayElem()
  4959. if r.TryDecodeAsNil() {
  4960. x.TestStrucCommon.I8 = 0
  4961. } else {
  4962. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4963. }
  4964. yyj90++
  4965. if yyhl90 {
  4966. yyb90 = yyj90 > l
  4967. } else {
  4968. yyb90 = r.CheckBreak()
  4969. }
  4970. if yyb90 {
  4971. z.DecReadArrayEnd()
  4972. return
  4973. }
  4974. z.DecReadArrayElem()
  4975. if r.TryDecodeAsNil() {
  4976. x.TestStrucCommon.I64n = 0
  4977. } else {
  4978. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4979. }
  4980. yyj90++
  4981. if yyhl90 {
  4982. yyb90 = yyj90 > l
  4983. } else {
  4984. yyb90 = r.CheckBreak()
  4985. }
  4986. if yyb90 {
  4987. z.DecReadArrayEnd()
  4988. return
  4989. }
  4990. z.DecReadArrayElem()
  4991. if r.TryDecodeAsNil() {
  4992. x.TestStrucCommon.I32n = 0
  4993. } else {
  4994. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4995. }
  4996. yyj90++
  4997. if yyhl90 {
  4998. yyb90 = yyj90 > l
  4999. } else {
  5000. yyb90 = r.CheckBreak()
  5001. }
  5002. if yyb90 {
  5003. z.DecReadArrayEnd()
  5004. return
  5005. }
  5006. z.DecReadArrayElem()
  5007. if r.TryDecodeAsNil() {
  5008. x.TestStrucCommon.I16n = 0
  5009. } else {
  5010. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  5011. }
  5012. yyj90++
  5013. if yyhl90 {
  5014. yyb90 = yyj90 > l
  5015. } else {
  5016. yyb90 = r.CheckBreak()
  5017. }
  5018. if yyb90 {
  5019. z.DecReadArrayEnd()
  5020. return
  5021. }
  5022. z.DecReadArrayElem()
  5023. if r.TryDecodeAsNil() {
  5024. x.TestStrucCommon.I8n = 0
  5025. } else {
  5026. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  5027. }
  5028. yyj90++
  5029. if yyhl90 {
  5030. yyb90 = yyj90 > l
  5031. } else {
  5032. yyb90 = r.CheckBreak()
  5033. }
  5034. if yyb90 {
  5035. z.DecReadArrayEnd()
  5036. return
  5037. }
  5038. z.DecReadArrayElem()
  5039. if r.TryDecodeAsNil() {
  5040. x.TestStrucCommon.Ui64 = 0
  5041. } else {
  5042. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  5043. }
  5044. yyj90++
  5045. if yyhl90 {
  5046. yyb90 = yyj90 > l
  5047. } else {
  5048. yyb90 = r.CheckBreak()
  5049. }
  5050. if yyb90 {
  5051. z.DecReadArrayEnd()
  5052. return
  5053. }
  5054. z.DecReadArrayElem()
  5055. if r.TryDecodeAsNil() {
  5056. x.TestStrucCommon.Ui32 = 0
  5057. } else {
  5058. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  5059. }
  5060. yyj90++
  5061. if yyhl90 {
  5062. yyb90 = yyj90 > l
  5063. } else {
  5064. yyb90 = r.CheckBreak()
  5065. }
  5066. if yyb90 {
  5067. z.DecReadArrayEnd()
  5068. return
  5069. }
  5070. z.DecReadArrayElem()
  5071. if r.TryDecodeAsNil() {
  5072. x.TestStrucCommon.Ui16 = 0
  5073. } else {
  5074. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  5075. }
  5076. yyj90++
  5077. if yyhl90 {
  5078. yyb90 = yyj90 > l
  5079. } else {
  5080. yyb90 = r.CheckBreak()
  5081. }
  5082. if yyb90 {
  5083. z.DecReadArrayEnd()
  5084. return
  5085. }
  5086. z.DecReadArrayElem()
  5087. if r.TryDecodeAsNil() {
  5088. x.TestStrucCommon.Ui8 = 0
  5089. } else {
  5090. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  5091. }
  5092. yyj90++
  5093. if yyhl90 {
  5094. yyb90 = yyj90 > l
  5095. } else {
  5096. yyb90 = r.CheckBreak()
  5097. }
  5098. if yyb90 {
  5099. z.DecReadArrayEnd()
  5100. return
  5101. }
  5102. z.DecReadArrayElem()
  5103. if r.TryDecodeAsNil() {
  5104. x.TestStrucCommon.F64 = 0
  5105. } else {
  5106. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  5107. }
  5108. yyj90++
  5109. if yyhl90 {
  5110. yyb90 = yyj90 > l
  5111. } else {
  5112. yyb90 = r.CheckBreak()
  5113. }
  5114. if yyb90 {
  5115. z.DecReadArrayEnd()
  5116. return
  5117. }
  5118. z.DecReadArrayElem()
  5119. if r.TryDecodeAsNil() {
  5120. x.TestStrucCommon.F32 = 0
  5121. } else {
  5122. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  5123. }
  5124. yyj90++
  5125. if yyhl90 {
  5126. yyb90 = yyj90 > l
  5127. } else {
  5128. yyb90 = r.CheckBreak()
  5129. }
  5130. if yyb90 {
  5131. z.DecReadArrayEnd()
  5132. return
  5133. }
  5134. z.DecReadArrayElem()
  5135. if r.TryDecodeAsNil() {
  5136. x.TestStrucCommon.B = false
  5137. } else {
  5138. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  5139. }
  5140. yyj90++
  5141. if yyhl90 {
  5142. yyb90 = yyj90 > l
  5143. } else {
  5144. yyb90 = r.CheckBreak()
  5145. }
  5146. if yyb90 {
  5147. z.DecReadArrayEnd()
  5148. return
  5149. }
  5150. z.DecReadArrayElem()
  5151. if r.TryDecodeAsNil() {
  5152. x.TestStrucCommon.By = 0
  5153. } else {
  5154. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  5155. }
  5156. yyj90++
  5157. if yyhl90 {
  5158. yyb90 = yyj90 > l
  5159. } else {
  5160. yyb90 = r.CheckBreak()
  5161. }
  5162. if yyb90 {
  5163. z.DecReadArrayEnd()
  5164. return
  5165. }
  5166. z.DecReadArrayElem()
  5167. if r.TryDecodeAsNil() {
  5168. x.TestStrucCommon.Sslice = nil
  5169. } else {
  5170. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  5171. }
  5172. yyj90++
  5173. if yyhl90 {
  5174. yyb90 = yyj90 > l
  5175. } else {
  5176. yyb90 = r.CheckBreak()
  5177. }
  5178. if yyb90 {
  5179. z.DecReadArrayEnd()
  5180. return
  5181. }
  5182. z.DecReadArrayElem()
  5183. if r.TryDecodeAsNil() {
  5184. x.TestStrucCommon.I64slice = nil
  5185. } else {
  5186. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  5187. }
  5188. yyj90++
  5189. if yyhl90 {
  5190. yyb90 = yyj90 > l
  5191. } else {
  5192. yyb90 = r.CheckBreak()
  5193. }
  5194. if yyb90 {
  5195. z.DecReadArrayEnd()
  5196. return
  5197. }
  5198. z.DecReadArrayElem()
  5199. if r.TryDecodeAsNil() {
  5200. x.TestStrucCommon.I16slice = nil
  5201. } else {
  5202. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  5203. }
  5204. yyj90++
  5205. if yyhl90 {
  5206. yyb90 = yyj90 > l
  5207. } else {
  5208. yyb90 = r.CheckBreak()
  5209. }
  5210. if yyb90 {
  5211. z.DecReadArrayEnd()
  5212. return
  5213. }
  5214. z.DecReadArrayElem()
  5215. if r.TryDecodeAsNil() {
  5216. x.TestStrucCommon.Ui64slice = nil
  5217. } else {
  5218. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  5219. }
  5220. yyj90++
  5221. if yyhl90 {
  5222. yyb90 = yyj90 > l
  5223. } else {
  5224. yyb90 = r.CheckBreak()
  5225. }
  5226. if yyb90 {
  5227. z.DecReadArrayEnd()
  5228. return
  5229. }
  5230. z.DecReadArrayElem()
  5231. if r.TryDecodeAsNil() {
  5232. x.TestStrucCommon.Ui8slice = nil
  5233. } else {
  5234. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  5235. }
  5236. yyj90++
  5237. if yyhl90 {
  5238. yyb90 = yyj90 > l
  5239. } else {
  5240. yyb90 = r.CheckBreak()
  5241. }
  5242. if yyb90 {
  5243. z.DecReadArrayEnd()
  5244. return
  5245. }
  5246. z.DecReadArrayElem()
  5247. if r.TryDecodeAsNil() {
  5248. x.TestStrucCommon.Bslice = nil
  5249. } else {
  5250. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  5251. }
  5252. yyj90++
  5253. if yyhl90 {
  5254. yyb90 = yyj90 > l
  5255. } else {
  5256. yyb90 = r.CheckBreak()
  5257. }
  5258. if yyb90 {
  5259. z.DecReadArrayEnd()
  5260. return
  5261. }
  5262. z.DecReadArrayElem()
  5263. if r.TryDecodeAsNil() {
  5264. x.TestStrucCommon.Byslice = nil
  5265. } else {
  5266. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  5267. }
  5268. yyj90++
  5269. if yyhl90 {
  5270. yyb90 = yyj90 > l
  5271. } else {
  5272. yyb90 = r.CheckBreak()
  5273. }
  5274. if yyb90 {
  5275. z.DecReadArrayEnd()
  5276. return
  5277. }
  5278. z.DecReadArrayElem()
  5279. if r.TryDecodeAsNil() {
  5280. x.TestStrucCommon.BytesSlice = nil
  5281. } else {
  5282. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  5283. }
  5284. yyj90++
  5285. if yyhl90 {
  5286. yyb90 = yyj90 > l
  5287. } else {
  5288. yyb90 = r.CheckBreak()
  5289. }
  5290. if yyb90 {
  5291. z.DecReadArrayEnd()
  5292. return
  5293. }
  5294. z.DecReadArrayElem()
  5295. if r.TryDecodeAsNil() {
  5296. x.TestStrucCommon.Iptrslice = nil
  5297. } else {
  5298. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  5299. }
  5300. yyj90++
  5301. if yyhl90 {
  5302. yyb90 = yyj90 > l
  5303. } else {
  5304. yyb90 = r.CheckBreak()
  5305. }
  5306. if yyb90 {
  5307. z.DecReadArrayEnd()
  5308. return
  5309. }
  5310. z.DecReadArrayElem()
  5311. if r.TryDecodeAsNil() {
  5312. x.TestStrucCommon.WrapSliceInt64 = nil
  5313. } else {
  5314. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  5315. }
  5316. yyj90++
  5317. if yyhl90 {
  5318. yyb90 = yyj90 > l
  5319. } else {
  5320. yyb90 = r.CheckBreak()
  5321. }
  5322. if yyb90 {
  5323. z.DecReadArrayEnd()
  5324. return
  5325. }
  5326. z.DecReadArrayElem()
  5327. if r.TryDecodeAsNil() {
  5328. x.TestStrucCommon.WrapSliceString = nil
  5329. } else {
  5330. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  5331. }
  5332. yyj90++
  5333. if yyhl90 {
  5334. yyb90 = yyj90 > l
  5335. } else {
  5336. yyb90 = r.CheckBreak()
  5337. }
  5338. if yyb90 {
  5339. z.DecReadArrayEnd()
  5340. return
  5341. }
  5342. z.DecReadArrayElem()
  5343. if r.TryDecodeAsNil() {
  5344. x.TestStrucCommon.Msi64 = nil
  5345. } else {
  5346. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  5347. }
  5348. yyj90++
  5349. if yyhl90 {
  5350. yyb90 = yyj90 > l
  5351. } else {
  5352. yyb90 = r.CheckBreak()
  5353. }
  5354. if yyb90 {
  5355. z.DecReadArrayEnd()
  5356. return
  5357. }
  5358. z.DecReadArrayElem()
  5359. if r.TryDecodeAsNil() {
  5360. x.TestStrucCommon.Msbytes = nil
  5361. } else {
  5362. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  5363. }
  5364. yyj90++
  5365. if yyhl90 {
  5366. yyb90 = yyj90 > l
  5367. } else {
  5368. yyb90 = r.CheckBreak()
  5369. }
  5370. if yyb90 {
  5371. z.DecReadArrayEnd()
  5372. return
  5373. }
  5374. z.DecReadArrayElem()
  5375. if r.TryDecodeAsNil() {
  5376. x.TestStrucCommon.Simplef = testSimpleFields{}
  5377. } else {
  5378. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  5379. }
  5380. yyj90++
  5381. if yyhl90 {
  5382. yyb90 = yyj90 > l
  5383. } else {
  5384. yyb90 = r.CheckBreak()
  5385. }
  5386. if yyb90 {
  5387. z.DecReadArrayEnd()
  5388. return
  5389. }
  5390. z.DecReadArrayElem()
  5391. if r.TryDecodeAsNil() {
  5392. x.TestStrucCommon.SstrUi64T = nil
  5393. } else {
  5394. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  5395. }
  5396. yyj90++
  5397. if yyhl90 {
  5398. yyb90 = yyj90 > l
  5399. } else {
  5400. yyb90 = r.CheckBreak()
  5401. }
  5402. if yyb90 {
  5403. z.DecReadArrayEnd()
  5404. return
  5405. }
  5406. z.DecReadArrayElem()
  5407. if r.TryDecodeAsNil() {
  5408. x.TestStrucCommon.MstrUi64T = nil
  5409. } else {
  5410. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  5411. }
  5412. yyj90++
  5413. if yyhl90 {
  5414. yyb90 = yyj90 > l
  5415. } else {
  5416. yyb90 = r.CheckBreak()
  5417. }
  5418. if yyb90 {
  5419. z.DecReadArrayEnd()
  5420. return
  5421. }
  5422. z.DecReadArrayElem()
  5423. if r.TryDecodeAsNil() {
  5424. x.TestStrucCommon.AnonInTestStruc.AS = ""
  5425. } else {
  5426. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  5427. }
  5428. yyj90++
  5429. if yyhl90 {
  5430. yyb90 = yyj90 > l
  5431. } else {
  5432. yyb90 = r.CheckBreak()
  5433. }
  5434. if yyb90 {
  5435. z.DecReadArrayEnd()
  5436. return
  5437. }
  5438. z.DecReadArrayElem()
  5439. if r.TryDecodeAsNil() {
  5440. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  5441. } else {
  5442. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  5443. }
  5444. yyj90++
  5445. if yyhl90 {
  5446. yyb90 = yyj90 > l
  5447. } else {
  5448. yyb90 = r.CheckBreak()
  5449. }
  5450. if yyb90 {
  5451. z.DecReadArrayEnd()
  5452. return
  5453. }
  5454. z.DecReadArrayElem()
  5455. if r.TryDecodeAsNil() {
  5456. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  5457. } else {
  5458. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  5459. }
  5460. yyj90++
  5461. if yyhl90 {
  5462. yyb90 = yyj90 > l
  5463. } else {
  5464. yyb90 = r.CheckBreak()
  5465. }
  5466. if yyb90 {
  5467. z.DecReadArrayEnd()
  5468. return
  5469. }
  5470. z.DecReadArrayElem()
  5471. if r.TryDecodeAsNil() {
  5472. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  5473. } else {
  5474. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  5475. }
  5476. yyj90++
  5477. if yyhl90 {
  5478. yyb90 = yyj90 > l
  5479. } else {
  5480. yyb90 = r.CheckBreak()
  5481. }
  5482. if yyb90 {
  5483. z.DecReadArrayEnd()
  5484. return
  5485. }
  5486. z.DecReadArrayElem()
  5487. if r.TryDecodeAsNil() {
  5488. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  5489. } else {
  5490. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  5491. }
  5492. yyj90++
  5493. if yyhl90 {
  5494. yyb90 = yyj90 > l
  5495. } else {
  5496. yyb90 = r.CheckBreak()
  5497. }
  5498. if yyb90 {
  5499. z.DecReadArrayEnd()
  5500. return
  5501. }
  5502. z.DecReadArrayElem()
  5503. if r.TryDecodeAsNil() {
  5504. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  5505. } else {
  5506. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  5507. }
  5508. yyj90++
  5509. if yyhl90 {
  5510. yyb90 = yyj90 > l
  5511. } else {
  5512. yyb90 = r.CheckBreak()
  5513. }
  5514. if yyb90 {
  5515. z.DecReadArrayEnd()
  5516. return
  5517. }
  5518. z.DecReadArrayElem()
  5519. if r.TryDecodeAsNil() {
  5520. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  5521. } else {
  5522. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  5523. }
  5524. yyj90++
  5525. if yyhl90 {
  5526. yyb90 = yyj90 > l
  5527. } else {
  5528. yyb90 = r.CheckBreak()
  5529. }
  5530. if yyb90 {
  5531. z.DecReadArrayEnd()
  5532. return
  5533. }
  5534. z.DecReadArrayElem()
  5535. if r.TryDecodeAsNil() {
  5536. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  5537. } else {
  5538. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  5539. }
  5540. yyj90++
  5541. if yyhl90 {
  5542. yyb90 = yyj90 > l
  5543. } else {
  5544. yyb90 = r.CheckBreak()
  5545. }
  5546. if yyb90 {
  5547. z.DecReadArrayEnd()
  5548. return
  5549. }
  5550. z.DecReadArrayElem()
  5551. if r.TryDecodeAsNil() {
  5552. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  5553. } else {
  5554. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  5555. }
  5556. yyj90++
  5557. if yyhl90 {
  5558. yyb90 = yyj90 > l
  5559. } else {
  5560. yyb90 = r.CheckBreak()
  5561. }
  5562. if yyb90 {
  5563. z.DecReadArrayEnd()
  5564. return
  5565. }
  5566. z.DecReadArrayElem()
  5567. if r.TryDecodeAsNil() {
  5568. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  5569. } else {
  5570. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  5571. }
  5572. yyj90++
  5573. if yyhl90 {
  5574. yyb90 = yyj90 > l
  5575. } else {
  5576. yyb90 = r.CheckBreak()
  5577. }
  5578. if yyb90 {
  5579. z.DecReadArrayEnd()
  5580. return
  5581. }
  5582. z.DecReadArrayElem()
  5583. if r.TryDecodeAsNil() {
  5584. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  5585. } else {
  5586. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  5587. }
  5588. yyj90++
  5589. if yyhl90 {
  5590. yyb90 = yyj90 > l
  5591. } else {
  5592. yyb90 = r.CheckBreak()
  5593. }
  5594. if yyb90 {
  5595. z.DecReadArrayEnd()
  5596. return
  5597. }
  5598. z.DecReadArrayElem()
  5599. if r.TryDecodeAsNil() {
  5600. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  5601. } else {
  5602. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  5603. }
  5604. yyj90++
  5605. if yyhl90 {
  5606. yyb90 = yyj90 > l
  5607. } else {
  5608. yyb90 = r.CheckBreak()
  5609. }
  5610. if yyb90 {
  5611. z.DecReadArrayEnd()
  5612. return
  5613. }
  5614. z.DecReadArrayElem()
  5615. if r.TryDecodeAsNil() {
  5616. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  5617. } else {
  5618. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  5619. }
  5620. yyj90++
  5621. if yyhl90 {
  5622. yyb90 = yyj90 > l
  5623. } else {
  5624. yyb90 = r.CheckBreak()
  5625. }
  5626. if yyb90 {
  5627. z.DecReadArrayEnd()
  5628. return
  5629. }
  5630. z.DecReadArrayElem()
  5631. if r.TryDecodeAsNil() {
  5632. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  5633. } else {
  5634. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  5635. }
  5636. yyj90++
  5637. if yyhl90 {
  5638. yyb90 = yyj90 > l
  5639. } else {
  5640. yyb90 = r.CheckBreak()
  5641. }
  5642. if yyb90 {
  5643. z.DecReadArrayEnd()
  5644. return
  5645. }
  5646. z.DecReadArrayElem()
  5647. if r.TryDecodeAsNil() {
  5648. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  5649. } else {
  5650. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  5651. }
  5652. yyj90++
  5653. if yyhl90 {
  5654. yyb90 = yyj90 > l
  5655. } else {
  5656. yyb90 = r.CheckBreak()
  5657. }
  5658. if yyb90 {
  5659. z.DecReadArrayEnd()
  5660. return
  5661. }
  5662. z.DecReadArrayElem()
  5663. if r.TryDecodeAsNil() {
  5664. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  5665. } else {
  5666. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  5667. }
  5668. yyj90++
  5669. if yyhl90 {
  5670. yyb90 = yyj90 > l
  5671. } else {
  5672. yyb90 = r.CheckBreak()
  5673. }
  5674. if yyb90 {
  5675. z.DecReadArrayEnd()
  5676. return
  5677. }
  5678. z.DecReadArrayElem()
  5679. if r.TryDecodeAsNil() {
  5680. x.TestStrucCommon.Nmap = nil
  5681. } else {
  5682. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  5683. }
  5684. yyj90++
  5685. if yyhl90 {
  5686. yyb90 = yyj90 > l
  5687. } else {
  5688. yyb90 = r.CheckBreak()
  5689. }
  5690. if yyb90 {
  5691. z.DecReadArrayEnd()
  5692. return
  5693. }
  5694. z.DecReadArrayElem()
  5695. if r.TryDecodeAsNil() {
  5696. x.TestStrucCommon.Nslice = nil
  5697. } else {
  5698. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  5699. }
  5700. yyj90++
  5701. if yyhl90 {
  5702. yyb90 = yyj90 > l
  5703. } else {
  5704. yyb90 = r.CheckBreak()
  5705. }
  5706. if yyb90 {
  5707. z.DecReadArrayEnd()
  5708. return
  5709. }
  5710. z.DecReadArrayElem()
  5711. if r.TryDecodeAsNil() {
  5712. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  5713. x.TestStrucCommon.Nint64 = nil
  5714. }
  5715. } else {
  5716. if x.TestStrucCommon.Nint64 == nil {
  5717. x.TestStrucCommon.Nint64 = new(int64)
  5718. }
  5719. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  5720. }
  5721. yyj90++
  5722. if yyhl90 {
  5723. yyb90 = yyj90 > l
  5724. } else {
  5725. yyb90 = r.CheckBreak()
  5726. }
  5727. if yyb90 {
  5728. z.DecReadArrayEnd()
  5729. return
  5730. }
  5731. z.DecReadArrayElem()
  5732. if r.TryDecodeAsNil() {
  5733. x.Mtsptr = nil
  5734. } else {
  5735. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  5736. }
  5737. yyj90++
  5738. if yyhl90 {
  5739. yyb90 = yyj90 > l
  5740. } else {
  5741. yyb90 = r.CheckBreak()
  5742. }
  5743. if yyb90 {
  5744. z.DecReadArrayEnd()
  5745. return
  5746. }
  5747. z.DecReadArrayElem()
  5748. if r.TryDecodeAsNil() {
  5749. x.Mts = nil
  5750. } else {
  5751. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  5752. }
  5753. yyj90++
  5754. if yyhl90 {
  5755. yyb90 = yyj90 > l
  5756. } else {
  5757. yyb90 = r.CheckBreak()
  5758. }
  5759. if yyb90 {
  5760. z.DecReadArrayEnd()
  5761. return
  5762. }
  5763. z.DecReadArrayElem()
  5764. if r.TryDecodeAsNil() {
  5765. x.Its = nil
  5766. } else {
  5767. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  5768. }
  5769. yyj90++
  5770. if yyhl90 {
  5771. yyb90 = yyj90 > l
  5772. } else {
  5773. yyb90 = r.CheckBreak()
  5774. }
  5775. if yyb90 {
  5776. z.DecReadArrayEnd()
  5777. return
  5778. }
  5779. z.DecReadArrayElem()
  5780. if r.TryDecodeAsNil() {
  5781. if x.Nteststruc != nil { // remove the if-true
  5782. x.Nteststruc = nil
  5783. }
  5784. } else {
  5785. if x.Nteststruc == nil {
  5786. x.Nteststruc = new(TestStruc)
  5787. }
  5788. x.Nteststruc.CodecDecodeSelf(d)
  5789. }
  5790. for {
  5791. yyj90++
  5792. if yyhl90 {
  5793. yyb90 = yyj90 > l
  5794. } else {
  5795. yyb90 = r.CheckBreak()
  5796. }
  5797. if yyb90 {
  5798. break
  5799. }
  5800. z.DecReadArrayElem()
  5801. z.DecStructFieldNotFound(yyj90-1, "")
  5802. }
  5803. }
  5804. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  5805. var h codecSelfer19780
  5806. z, r := GenHelperEncoder(e)
  5807. _, _, _ = h, z, r
  5808. if x == nil {
  5809. r.EncodeNil()
  5810. } else { // checkNil=true
  5811. yysep2 := !z.EncBinary()
  5812. yy2arr2 := z.EncBasicHandle().StructToArray
  5813. _, _ = yysep2, yy2arr2
  5814. const yyr2 bool = false // struct tag has 'toArray'
  5815. if yyr2 || yy2arr2 {
  5816. z.EncWriteArrayStart(1)
  5817. z.EncWriteArrayElem()
  5818. if x.ZZ == nil {
  5819. r.EncodeNil()
  5820. } else {
  5821. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5822. } // end block: if x.ZZ slice == nil
  5823. z.EncWriteArrayEnd()
  5824. } else {
  5825. z.EncWriteMapStart(1)
  5826. z.EncWriteMapElemKey()
  5827. if z.IsJSONHandle() {
  5828. z.WriteStr("\"ZZ\"")
  5829. } else {
  5830. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  5831. }
  5832. z.EncWriteMapElemValue()
  5833. if x.ZZ == nil {
  5834. r.EncodeNil()
  5835. } else {
  5836. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5837. } // end block: if x.ZZ slice == nil
  5838. z.EncWriteMapEnd()
  5839. }
  5840. } // checkNil=true
  5841. }
  5842. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  5843. var h codecSelfer19780
  5844. z, r := GenHelperDecoder(d)
  5845. _, _, _ = h, z, r
  5846. yyct2 := r.ContainerType()
  5847. if yyct2 == codecSelferValueTypeMap19780 {
  5848. yyl2 := z.DecReadMapStart()
  5849. if yyl2 == 0 {
  5850. } else {
  5851. x.codecDecodeSelfFromMap(yyl2, d)
  5852. }
  5853. z.DecReadMapEnd()
  5854. } else if yyct2 == codecSelferValueTypeArray19780 {
  5855. yyl2 := z.DecReadArrayStart()
  5856. if yyl2 != 0 {
  5857. x.codecDecodeSelfFromArray(yyl2, d)
  5858. }
  5859. z.DecReadArrayEnd()
  5860. } else {
  5861. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5862. }
  5863. }
  5864. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  5865. var h codecSelfer19780
  5866. z, r := GenHelperDecoder(d)
  5867. _, _, _ = h, z, r
  5868. var yyhl3 bool = l >= 0
  5869. for yyj3 := 0; ; yyj3++ {
  5870. if yyhl3 {
  5871. if yyj3 >= l {
  5872. break
  5873. }
  5874. } else {
  5875. if r.CheckBreak() {
  5876. break
  5877. }
  5878. }
  5879. z.DecReadMapElemKey()
  5880. yys3 := z.StringView(r.DecodeStringAsBytes())
  5881. z.DecReadMapElemValue()
  5882. switch yys3 {
  5883. case "ZZ":
  5884. if r.TryDecodeAsNil() {
  5885. x.ZZ = nil
  5886. } else {
  5887. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5888. }
  5889. default:
  5890. z.DecStructFieldNotFound(-1, yys3)
  5891. } // end switch yys3
  5892. } // end for yyj3
  5893. }
  5894. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  5895. var h codecSelfer19780
  5896. z, r := GenHelperDecoder(d)
  5897. _, _, _ = h, z, r
  5898. var yyj6 int
  5899. var yyb6 bool
  5900. var yyhl6 bool = l >= 0
  5901. yyj6++
  5902. if yyhl6 {
  5903. yyb6 = yyj6 > l
  5904. } else {
  5905. yyb6 = r.CheckBreak()
  5906. }
  5907. if yyb6 {
  5908. z.DecReadArrayEnd()
  5909. return
  5910. }
  5911. z.DecReadArrayElem()
  5912. if r.TryDecodeAsNil() {
  5913. x.ZZ = nil
  5914. } else {
  5915. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5916. }
  5917. for {
  5918. yyj6++
  5919. if yyhl6 {
  5920. yyb6 = yyj6 > l
  5921. } else {
  5922. yyb6 = r.CheckBreak()
  5923. }
  5924. if yyb6 {
  5925. break
  5926. }
  5927. z.DecReadArrayElem()
  5928. z.DecStructFieldNotFound(yyj6-1, "")
  5929. }
  5930. }
  5931. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  5932. var h codecSelfer19780
  5933. z, r := GenHelperEncoder(e)
  5934. _, _, _ = h, z, r
  5935. if x == nil {
  5936. r.EncodeNil()
  5937. } else { // checkNil=true
  5938. yysep2 := !z.EncBinary()
  5939. yy2arr2 := z.EncBasicHandle().StructToArray
  5940. _, _ = yysep2, yy2arr2
  5941. const yyr2 bool = false // struct tag has 'toArray'
  5942. if yyr2 || yy2arr2 {
  5943. z.EncWriteArrayStart(1)
  5944. z.EncWriteArrayElem()
  5945. yy4 := &x.AA
  5946. yy4.CodecEncodeSelf(e)
  5947. z.EncWriteArrayEnd()
  5948. } else {
  5949. z.EncWriteMapStart(1)
  5950. z.EncWriteMapElemKey()
  5951. if z.IsJSONHandle() {
  5952. z.WriteStr("\"AA\"")
  5953. } else {
  5954. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  5955. }
  5956. z.EncWriteMapElemValue()
  5957. yy6 := &x.AA
  5958. yy6.CodecEncodeSelf(e)
  5959. z.EncWriteMapEnd()
  5960. }
  5961. } // checkNil=true
  5962. }
  5963. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  5964. var h codecSelfer19780
  5965. z, r := GenHelperDecoder(d)
  5966. _, _, _ = h, z, r
  5967. yyct2 := r.ContainerType()
  5968. if yyct2 == codecSelferValueTypeMap19780 {
  5969. yyl2 := z.DecReadMapStart()
  5970. if yyl2 == 0 {
  5971. } else {
  5972. x.codecDecodeSelfFromMap(yyl2, d)
  5973. }
  5974. z.DecReadMapEnd()
  5975. } else if yyct2 == codecSelferValueTypeArray19780 {
  5976. yyl2 := z.DecReadArrayStart()
  5977. if yyl2 != 0 {
  5978. x.codecDecodeSelfFromArray(yyl2, d)
  5979. }
  5980. z.DecReadArrayEnd()
  5981. } else {
  5982. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5983. }
  5984. }
  5985. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  5986. var h codecSelfer19780
  5987. z, r := GenHelperDecoder(d)
  5988. _, _, _ = h, z, r
  5989. var yyhl3 bool = l >= 0
  5990. for yyj3 := 0; ; yyj3++ {
  5991. if yyhl3 {
  5992. if yyj3 >= l {
  5993. break
  5994. }
  5995. } else {
  5996. if r.CheckBreak() {
  5997. break
  5998. }
  5999. }
  6000. z.DecReadMapElemKey()
  6001. yys3 := z.StringView(r.DecodeStringAsBytes())
  6002. z.DecReadMapElemValue()
  6003. switch yys3 {
  6004. case "AA":
  6005. if r.TryDecodeAsNil() {
  6006. x.AA = codecgenA{}
  6007. } else {
  6008. x.AA.CodecDecodeSelf(d)
  6009. }
  6010. default:
  6011. z.DecStructFieldNotFound(-1, yys3)
  6012. } // end switch yys3
  6013. } // end for yyj3
  6014. }
  6015. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  6016. var h codecSelfer19780
  6017. z, r := GenHelperDecoder(d)
  6018. _, _, _ = h, z, r
  6019. var yyj5 int
  6020. var yyb5 bool
  6021. var yyhl5 bool = l >= 0
  6022. yyj5++
  6023. if yyhl5 {
  6024. yyb5 = yyj5 > l
  6025. } else {
  6026. yyb5 = r.CheckBreak()
  6027. }
  6028. if yyb5 {
  6029. z.DecReadArrayEnd()
  6030. return
  6031. }
  6032. z.DecReadArrayElem()
  6033. if r.TryDecodeAsNil() {
  6034. x.AA = codecgenA{}
  6035. } else {
  6036. x.AA.CodecDecodeSelf(d)
  6037. }
  6038. for {
  6039. yyj5++
  6040. if yyhl5 {
  6041. yyb5 = yyj5 > l
  6042. } else {
  6043. yyb5 = r.CheckBreak()
  6044. }
  6045. if yyb5 {
  6046. break
  6047. }
  6048. z.DecReadArrayElem()
  6049. z.DecStructFieldNotFound(yyj5-1, "")
  6050. }
  6051. }
  6052. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  6053. var h codecSelfer19780
  6054. z, r := GenHelperEncoder(e)
  6055. _, _, _ = h, z, r
  6056. if x == nil {
  6057. r.EncodeNil()
  6058. } else { // checkNil=true
  6059. yysep2 := !z.EncBinary()
  6060. yy2arr2 := z.EncBasicHandle().StructToArray
  6061. _, _ = yysep2, yy2arr2
  6062. const yyr2 bool = false // struct tag has 'toArray'
  6063. var yyq2 = [1]bool{ // should field at this index be written?
  6064. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  6065. }
  6066. _ = yyq2
  6067. if yyr2 || yy2arr2 {
  6068. z.EncWriteArrayStart(1)
  6069. z.EncWriteArrayElem()
  6070. if yyq2[0] {
  6071. yy4 := &x.BB
  6072. yy4.CodecEncodeSelf(e)
  6073. } else {
  6074. r.EncodeNil()
  6075. }
  6076. z.EncWriteArrayEnd()
  6077. } else {
  6078. var yynn2 int
  6079. for _, b := range yyq2 {
  6080. if b {
  6081. yynn2++
  6082. }
  6083. }
  6084. z.EncWriteMapStart(yynn2)
  6085. yynn2 = 0
  6086. if yyq2[0] {
  6087. z.EncWriteMapElemKey()
  6088. if z.IsJSONHandle() {
  6089. z.WriteStr("\"BB\"")
  6090. } else {
  6091. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  6092. }
  6093. z.EncWriteMapElemValue()
  6094. yy6 := &x.BB
  6095. yy6.CodecEncodeSelf(e)
  6096. }
  6097. z.EncWriteMapEnd()
  6098. }
  6099. } // checkNil=true
  6100. }
  6101. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  6102. var h codecSelfer19780
  6103. z, r := GenHelperDecoder(d)
  6104. _, _, _ = h, z, r
  6105. yyct2 := r.ContainerType()
  6106. if yyct2 == codecSelferValueTypeMap19780 {
  6107. yyl2 := z.DecReadMapStart()
  6108. if yyl2 == 0 {
  6109. } else {
  6110. x.codecDecodeSelfFromMap(yyl2, d)
  6111. }
  6112. z.DecReadMapEnd()
  6113. } else if yyct2 == codecSelferValueTypeArray19780 {
  6114. yyl2 := z.DecReadArrayStart()
  6115. if yyl2 != 0 {
  6116. x.codecDecodeSelfFromArray(yyl2, d)
  6117. }
  6118. z.DecReadArrayEnd()
  6119. } else {
  6120. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6121. }
  6122. }
  6123. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  6124. var h codecSelfer19780
  6125. z, r := GenHelperDecoder(d)
  6126. _, _, _ = h, z, r
  6127. var yyhl3 bool = l >= 0
  6128. for yyj3 := 0; ; yyj3++ {
  6129. if yyhl3 {
  6130. if yyj3 >= l {
  6131. break
  6132. }
  6133. } else {
  6134. if r.CheckBreak() {
  6135. break
  6136. }
  6137. }
  6138. z.DecReadMapElemKey()
  6139. yys3 := z.StringView(r.DecodeStringAsBytes())
  6140. z.DecReadMapElemValue()
  6141. switch yys3 {
  6142. case "BB":
  6143. if r.TryDecodeAsNil() {
  6144. x.BB = codecgenB{}
  6145. } else {
  6146. x.BB.CodecDecodeSelf(d)
  6147. }
  6148. default:
  6149. z.DecStructFieldNotFound(-1, yys3)
  6150. } // end switch yys3
  6151. } // end for yyj3
  6152. }
  6153. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  6154. var h codecSelfer19780
  6155. z, r := GenHelperDecoder(d)
  6156. _, _, _ = h, z, r
  6157. var yyj5 int
  6158. var yyb5 bool
  6159. var yyhl5 bool = l >= 0
  6160. yyj5++
  6161. if yyhl5 {
  6162. yyb5 = yyj5 > l
  6163. } else {
  6164. yyb5 = r.CheckBreak()
  6165. }
  6166. if yyb5 {
  6167. z.DecReadArrayEnd()
  6168. return
  6169. }
  6170. z.DecReadArrayElem()
  6171. if r.TryDecodeAsNil() {
  6172. x.BB = codecgenB{}
  6173. } else {
  6174. x.BB.CodecDecodeSelf(d)
  6175. }
  6176. for {
  6177. yyj5++
  6178. if yyhl5 {
  6179. yyb5 = yyj5 > l
  6180. } else {
  6181. yyb5 = r.CheckBreak()
  6182. }
  6183. if yyb5 {
  6184. break
  6185. }
  6186. z.DecReadArrayElem()
  6187. z.DecStructFieldNotFound(yyj5-1, "")
  6188. }
  6189. }
  6190. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  6191. var h codecSelfer19780
  6192. z, r := GenHelperEncoder(e)
  6193. _, _, _ = h, z, r
  6194. if x == nil {
  6195. r.EncodeNil()
  6196. } else { // checkNil=true
  6197. yysep2 := !z.EncBinary()
  6198. yy2arr2 := z.EncBasicHandle().StructToArray
  6199. _, _ = yysep2, yy2arr2
  6200. const yyr2 bool = false // struct tag has 'toArray'
  6201. if yyr2 || yy2arr2 {
  6202. z.EncWriteArrayStart(1)
  6203. z.EncWriteArrayElem()
  6204. r.EncodeInt(int64(x.TestCodecgenG))
  6205. z.EncWriteArrayEnd()
  6206. } else {
  6207. z.EncWriteMapStart(1)
  6208. z.EncWriteMapElemKey()
  6209. if z.IsJSONHandle() {
  6210. z.WriteStr("\"TestCodecgenG\"")
  6211. } else {
  6212. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  6213. }
  6214. z.EncWriteMapElemValue()
  6215. r.EncodeInt(int64(x.TestCodecgenG))
  6216. z.EncWriteMapEnd()
  6217. }
  6218. } // checkNil=true
  6219. }
  6220. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  6221. var h codecSelfer19780
  6222. z, r := GenHelperDecoder(d)
  6223. _, _, _ = h, z, r
  6224. yyct2 := r.ContainerType()
  6225. if yyct2 == codecSelferValueTypeMap19780 {
  6226. yyl2 := z.DecReadMapStart()
  6227. if yyl2 == 0 {
  6228. } else {
  6229. x.codecDecodeSelfFromMap(yyl2, d)
  6230. }
  6231. z.DecReadMapEnd()
  6232. } else if yyct2 == codecSelferValueTypeArray19780 {
  6233. yyl2 := z.DecReadArrayStart()
  6234. if yyl2 != 0 {
  6235. x.codecDecodeSelfFromArray(yyl2, d)
  6236. }
  6237. z.DecReadArrayEnd()
  6238. } else {
  6239. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6240. }
  6241. }
  6242. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  6243. var h codecSelfer19780
  6244. z, r := GenHelperDecoder(d)
  6245. _, _, _ = h, z, r
  6246. var yyhl3 bool = l >= 0
  6247. for yyj3 := 0; ; yyj3++ {
  6248. if yyhl3 {
  6249. if yyj3 >= l {
  6250. break
  6251. }
  6252. } else {
  6253. if r.CheckBreak() {
  6254. break
  6255. }
  6256. }
  6257. z.DecReadMapElemKey()
  6258. yys3 := z.StringView(r.DecodeStringAsBytes())
  6259. z.DecReadMapElemValue()
  6260. switch yys3 {
  6261. case "TestCodecgenG":
  6262. if r.TryDecodeAsNil() {
  6263. x.TestCodecgenG = 0
  6264. } else {
  6265. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6266. }
  6267. default:
  6268. z.DecStructFieldNotFound(-1, yys3)
  6269. } // end switch yys3
  6270. } // end for yyj3
  6271. }
  6272. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  6273. var h codecSelfer19780
  6274. z, r := GenHelperDecoder(d)
  6275. _, _, _ = h, z, r
  6276. var yyj5 int
  6277. var yyb5 bool
  6278. var yyhl5 bool = l >= 0
  6279. yyj5++
  6280. if yyhl5 {
  6281. yyb5 = yyj5 > l
  6282. } else {
  6283. yyb5 = r.CheckBreak()
  6284. }
  6285. if yyb5 {
  6286. z.DecReadArrayEnd()
  6287. return
  6288. }
  6289. z.DecReadArrayElem()
  6290. if r.TryDecodeAsNil() {
  6291. x.TestCodecgenG = 0
  6292. } else {
  6293. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6294. }
  6295. for {
  6296. yyj5++
  6297. if yyhl5 {
  6298. yyb5 = yyj5 > l
  6299. } else {
  6300. yyb5 = r.CheckBreak()
  6301. }
  6302. if yyb5 {
  6303. break
  6304. }
  6305. z.DecReadArrayElem()
  6306. z.DecStructFieldNotFound(yyj5-1, "")
  6307. }
  6308. }
  6309. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  6310. var h codecSelfer19780
  6311. z, r := GenHelperEncoder(e)
  6312. _, _, _ = h, z, r
  6313. if x == nil {
  6314. r.EncodeNil()
  6315. } else { // checkNil=true
  6316. yysep2 := !z.EncBinary()
  6317. yy2arr2 := z.EncBasicHandle().StructToArray
  6318. _, _ = yysep2, yy2arr2
  6319. const yyr2 bool = false // struct tag has 'toArray'
  6320. if yyr2 || yy2arr2 {
  6321. z.EncWriteArrayStart(1)
  6322. z.EncWriteArrayElem()
  6323. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  6324. z.EncWriteArrayEnd()
  6325. } else {
  6326. z.EncWriteMapStart(1)
  6327. z.EncWriteMapElemKey()
  6328. if z.IsJSONHandle() {
  6329. z.WriteStr("\"TestCodecgenG\"")
  6330. } else {
  6331. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  6332. }
  6333. z.EncWriteMapElemValue()
  6334. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  6335. z.EncWriteMapEnd()
  6336. }
  6337. } // checkNil=true
  6338. }
  6339. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  6340. var h codecSelfer19780
  6341. z, r := GenHelperDecoder(d)
  6342. _, _, _ = h, z, r
  6343. yyct2 := r.ContainerType()
  6344. if yyct2 == codecSelferValueTypeMap19780 {
  6345. yyl2 := z.DecReadMapStart()
  6346. if yyl2 == 0 {
  6347. } else {
  6348. x.codecDecodeSelfFromMap(yyl2, d)
  6349. }
  6350. z.DecReadMapEnd()
  6351. } else if yyct2 == codecSelferValueTypeArray19780 {
  6352. yyl2 := z.DecReadArrayStart()
  6353. if yyl2 != 0 {
  6354. x.codecDecodeSelfFromArray(yyl2, d)
  6355. }
  6356. z.DecReadArrayEnd()
  6357. } else {
  6358. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6359. }
  6360. }
  6361. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  6362. var h codecSelfer19780
  6363. z, r := GenHelperDecoder(d)
  6364. _, _, _ = h, z, r
  6365. var yyhl3 bool = l >= 0
  6366. for yyj3 := 0; ; yyj3++ {
  6367. if yyhl3 {
  6368. if yyj3 >= l {
  6369. break
  6370. }
  6371. } else {
  6372. if r.CheckBreak() {
  6373. break
  6374. }
  6375. }
  6376. z.DecReadMapElemKey()
  6377. yys3 := z.StringView(r.DecodeStringAsBytes())
  6378. z.DecReadMapElemValue()
  6379. switch yys3 {
  6380. case "TestCodecgenG":
  6381. if r.TryDecodeAsNil() {
  6382. x.TestCodecgenG.TestCodecgenG = 0
  6383. } else {
  6384. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6385. }
  6386. default:
  6387. z.DecStructFieldNotFound(-1, yys3)
  6388. } // end switch yys3
  6389. } // end for yyj3
  6390. }
  6391. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  6392. var h codecSelfer19780
  6393. z, r := GenHelperDecoder(d)
  6394. _, _, _ = h, z, r
  6395. var yyj5 int
  6396. var yyb5 bool
  6397. var yyhl5 bool = l >= 0
  6398. yyj5++
  6399. if yyhl5 {
  6400. yyb5 = yyj5 > l
  6401. } else {
  6402. yyb5 = r.CheckBreak()
  6403. }
  6404. if yyb5 {
  6405. z.DecReadArrayEnd()
  6406. return
  6407. }
  6408. z.DecReadArrayElem()
  6409. if r.TryDecodeAsNil() {
  6410. x.TestCodecgenG.TestCodecgenG = 0
  6411. } else {
  6412. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6413. }
  6414. for {
  6415. yyj5++
  6416. if yyhl5 {
  6417. yyb5 = yyj5 > l
  6418. } else {
  6419. yyb5 = r.CheckBreak()
  6420. }
  6421. if yyb5 {
  6422. break
  6423. }
  6424. z.DecReadArrayElem()
  6425. z.DecStructFieldNotFound(yyj5-1, "")
  6426. }
  6427. }
  6428. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  6429. var h codecSelfer19780
  6430. z, r := GenHelperEncoder(e)
  6431. _, _, _ = h, z, r
  6432. if x == nil {
  6433. r.EncodeNil()
  6434. } else { // checkNil=true
  6435. yysep2 := !z.EncBinary()
  6436. yy2arr2 := z.EncBasicHandle().StructToArray
  6437. _, _ = yysep2, yy2arr2
  6438. const yyr2 bool = false // struct tag has 'toArray'
  6439. if yyr2 || yy2arr2 {
  6440. z.EncWriteArrayStart(1)
  6441. z.EncWriteArrayElem()
  6442. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  6443. z.EncWriteArrayEnd()
  6444. } else {
  6445. z.EncWriteMapStart(1)
  6446. z.EncWriteMapElemKey()
  6447. if z.IsJSONHandle() {
  6448. z.WriteStr("\"TestCodecgenG\"")
  6449. } else {
  6450. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  6451. }
  6452. z.EncWriteMapElemValue()
  6453. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  6454. z.EncWriteMapEnd()
  6455. }
  6456. } // checkNil=true
  6457. }
  6458. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  6459. var h codecSelfer19780
  6460. z, r := GenHelperDecoder(d)
  6461. _, _, _ = h, z, r
  6462. yyct2 := r.ContainerType()
  6463. if yyct2 == codecSelferValueTypeMap19780 {
  6464. yyl2 := z.DecReadMapStart()
  6465. if yyl2 == 0 {
  6466. } else {
  6467. x.codecDecodeSelfFromMap(yyl2, d)
  6468. }
  6469. z.DecReadMapEnd()
  6470. } else if yyct2 == codecSelferValueTypeArray19780 {
  6471. yyl2 := z.DecReadArrayStart()
  6472. if yyl2 != 0 {
  6473. x.codecDecodeSelfFromArray(yyl2, d)
  6474. }
  6475. z.DecReadArrayEnd()
  6476. } else {
  6477. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6478. }
  6479. }
  6480. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  6481. var h codecSelfer19780
  6482. z, r := GenHelperDecoder(d)
  6483. _, _, _ = h, z, r
  6484. var yyhl3 bool = l >= 0
  6485. for yyj3 := 0; ; yyj3++ {
  6486. if yyhl3 {
  6487. if yyj3 >= l {
  6488. break
  6489. }
  6490. } else {
  6491. if r.CheckBreak() {
  6492. break
  6493. }
  6494. }
  6495. z.DecReadMapElemKey()
  6496. yys3 := z.StringView(r.DecodeStringAsBytes())
  6497. z.DecReadMapElemValue()
  6498. switch yys3 {
  6499. case "TestCodecgenG":
  6500. if r.TryDecodeAsNil() {
  6501. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  6502. } else {
  6503. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6504. }
  6505. default:
  6506. z.DecStructFieldNotFound(-1, yys3)
  6507. } // end switch yys3
  6508. } // end for yyj3
  6509. }
  6510. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  6511. var h codecSelfer19780
  6512. z, r := GenHelperDecoder(d)
  6513. _, _, _ = h, z, r
  6514. var yyj5 int
  6515. var yyb5 bool
  6516. var yyhl5 bool = l >= 0
  6517. yyj5++
  6518. if yyhl5 {
  6519. yyb5 = yyj5 > l
  6520. } else {
  6521. yyb5 = r.CheckBreak()
  6522. }
  6523. if yyb5 {
  6524. z.DecReadArrayEnd()
  6525. return
  6526. }
  6527. z.DecReadArrayElem()
  6528. if r.TryDecodeAsNil() {
  6529. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  6530. } else {
  6531. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6532. }
  6533. for {
  6534. yyj5++
  6535. if yyhl5 {
  6536. yyb5 = yyj5 > l
  6537. } else {
  6538. yyb5 = r.CheckBreak()
  6539. }
  6540. if yyb5 {
  6541. break
  6542. }
  6543. z.DecReadArrayElem()
  6544. z.DecStructFieldNotFound(yyj5-1, "")
  6545. }
  6546. }
  6547. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  6548. var h codecSelfer19780
  6549. z, r := GenHelperEncoder(e)
  6550. _, _, _ = h, z, r
  6551. if x == nil {
  6552. r.EncodeNil()
  6553. } else { // checkNil=true
  6554. yysep2 := !z.EncBinary()
  6555. yy2arr2 := z.EncBasicHandle().StructToArray
  6556. _, _ = yysep2, yy2arr2
  6557. const yyr2 bool = false // struct tag has 'toArray'
  6558. if yyr2 || yy2arr2 {
  6559. z.EncWriteArrayStart(2)
  6560. z.EncWriteArrayElem()
  6561. r.EncodeInt(int64(x.X))
  6562. z.EncWriteArrayElem()
  6563. if z.EncBasicHandle().StringToRaw {
  6564. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  6565. } else {
  6566. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  6567. }
  6568. z.EncWriteArrayEnd()
  6569. } else {
  6570. z.EncWriteMapStart(2)
  6571. z.EncWriteMapElemKey()
  6572. if z.IsJSONHandle() {
  6573. z.WriteStr("\"X\"")
  6574. } else {
  6575. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6576. }
  6577. z.EncWriteMapElemValue()
  6578. r.EncodeInt(int64(x.X))
  6579. z.EncWriteMapElemKey()
  6580. if z.IsJSONHandle() {
  6581. z.WriteStr("\"Y\"")
  6582. } else {
  6583. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6584. }
  6585. z.EncWriteMapElemValue()
  6586. if z.EncBasicHandle().StringToRaw {
  6587. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  6588. } else {
  6589. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  6590. }
  6591. z.EncWriteMapEnd()
  6592. }
  6593. } // checkNil=true
  6594. }
  6595. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  6596. var h codecSelfer19780
  6597. z, r := GenHelperDecoder(d)
  6598. _, _, _ = h, z, r
  6599. yyct2 := r.ContainerType()
  6600. if yyct2 == codecSelferValueTypeMap19780 {
  6601. yyl2 := z.DecReadMapStart()
  6602. if yyl2 == 0 {
  6603. } else {
  6604. x.codecDecodeSelfFromMap(yyl2, d)
  6605. }
  6606. z.DecReadMapEnd()
  6607. } else if yyct2 == codecSelferValueTypeArray19780 {
  6608. yyl2 := z.DecReadArrayStart()
  6609. if yyl2 != 0 {
  6610. x.codecDecodeSelfFromArray(yyl2, d)
  6611. }
  6612. z.DecReadArrayEnd()
  6613. } else {
  6614. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6615. }
  6616. }
  6617. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  6618. var h codecSelfer19780
  6619. z, r := GenHelperDecoder(d)
  6620. _, _, _ = h, z, r
  6621. var yyhl3 bool = l >= 0
  6622. for yyj3 := 0; ; yyj3++ {
  6623. if yyhl3 {
  6624. if yyj3 >= l {
  6625. break
  6626. }
  6627. } else {
  6628. if r.CheckBreak() {
  6629. break
  6630. }
  6631. }
  6632. z.DecReadMapElemKey()
  6633. yys3 := z.StringView(r.DecodeStringAsBytes())
  6634. z.DecReadMapElemValue()
  6635. switch yys3 {
  6636. case "X":
  6637. if r.TryDecodeAsNil() {
  6638. x.X = 0
  6639. } else {
  6640. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6641. }
  6642. case "Y":
  6643. if r.TryDecodeAsNil() {
  6644. x.Y = ""
  6645. } else {
  6646. x.Y = (string)(string(r.DecodeStringAsBytes()))
  6647. }
  6648. default:
  6649. z.DecStructFieldNotFound(-1, yys3)
  6650. } // end switch yys3
  6651. } // end for yyj3
  6652. }
  6653. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  6654. var h codecSelfer19780
  6655. z, r := GenHelperDecoder(d)
  6656. _, _, _ = h, z, r
  6657. var yyj6 int
  6658. var yyb6 bool
  6659. var yyhl6 bool = l >= 0
  6660. yyj6++
  6661. if yyhl6 {
  6662. yyb6 = yyj6 > l
  6663. } else {
  6664. yyb6 = r.CheckBreak()
  6665. }
  6666. if yyb6 {
  6667. z.DecReadArrayEnd()
  6668. return
  6669. }
  6670. z.DecReadArrayElem()
  6671. if r.TryDecodeAsNil() {
  6672. x.X = 0
  6673. } else {
  6674. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6675. }
  6676. yyj6++
  6677. if yyhl6 {
  6678. yyb6 = yyj6 > l
  6679. } else {
  6680. yyb6 = r.CheckBreak()
  6681. }
  6682. if yyb6 {
  6683. z.DecReadArrayEnd()
  6684. return
  6685. }
  6686. z.DecReadArrayElem()
  6687. if r.TryDecodeAsNil() {
  6688. x.Y = ""
  6689. } else {
  6690. x.Y = (string)(string(r.DecodeStringAsBytes()))
  6691. }
  6692. for {
  6693. yyj6++
  6694. if yyhl6 {
  6695. yyb6 = yyj6 > l
  6696. } else {
  6697. yyb6 = r.CheckBreak()
  6698. }
  6699. if yyb6 {
  6700. break
  6701. }
  6702. z.DecReadArrayElem()
  6703. z.DecStructFieldNotFound(yyj6-1, "")
  6704. }
  6705. }
  6706. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  6707. var h codecSelfer19780
  6708. z, r := GenHelperEncoder(e)
  6709. _, _, _ = h, z, r
  6710. if x == nil {
  6711. r.EncodeNil()
  6712. } else { // checkNil=true
  6713. yysep2 := !z.EncBinary()
  6714. yy2arr2 := z.EncBasicHandle().StructToArray
  6715. _, _ = yysep2, yy2arr2
  6716. const yyr2 bool = false // struct tag has 'toArray'
  6717. if yyr2 || yy2arr2 {
  6718. z.EncWriteArrayStart(2)
  6719. z.EncWriteArrayElem()
  6720. r.EncodeInt(int64(x.X))
  6721. z.EncWriteArrayElem()
  6722. r.EncodeUint(uint64(x.Y))
  6723. z.EncWriteArrayEnd()
  6724. } else {
  6725. z.EncWriteMapStart(2)
  6726. z.EncWriteMapElemKey()
  6727. if z.IsJSONHandle() {
  6728. z.WriteStr("\"X\"")
  6729. } else {
  6730. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6731. }
  6732. z.EncWriteMapElemValue()
  6733. r.EncodeInt(int64(x.X))
  6734. z.EncWriteMapElemKey()
  6735. if z.IsJSONHandle() {
  6736. z.WriteStr("\"Y\"")
  6737. } else {
  6738. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6739. }
  6740. z.EncWriteMapElemValue()
  6741. r.EncodeUint(uint64(x.Y))
  6742. z.EncWriteMapEnd()
  6743. }
  6744. } // checkNil=true
  6745. }
  6746. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  6747. var h codecSelfer19780
  6748. z, r := GenHelperDecoder(d)
  6749. _, _, _ = h, z, r
  6750. yyct2 := r.ContainerType()
  6751. if yyct2 == codecSelferValueTypeMap19780 {
  6752. yyl2 := z.DecReadMapStart()
  6753. if yyl2 == 0 {
  6754. } else {
  6755. x.codecDecodeSelfFromMap(yyl2, d)
  6756. }
  6757. z.DecReadMapEnd()
  6758. } else if yyct2 == codecSelferValueTypeArray19780 {
  6759. yyl2 := z.DecReadArrayStart()
  6760. if yyl2 != 0 {
  6761. x.codecDecodeSelfFromArray(yyl2, d)
  6762. }
  6763. z.DecReadArrayEnd()
  6764. } else {
  6765. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6766. }
  6767. }
  6768. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  6769. var h codecSelfer19780
  6770. z, r := GenHelperDecoder(d)
  6771. _, _, _ = h, z, r
  6772. var yyhl3 bool = l >= 0
  6773. for yyj3 := 0; ; yyj3++ {
  6774. if yyhl3 {
  6775. if yyj3 >= l {
  6776. break
  6777. }
  6778. } else {
  6779. if r.CheckBreak() {
  6780. break
  6781. }
  6782. }
  6783. z.DecReadMapElemKey()
  6784. yys3 := z.StringView(r.DecodeStringAsBytes())
  6785. z.DecReadMapElemValue()
  6786. switch yys3 {
  6787. case "X":
  6788. if r.TryDecodeAsNil() {
  6789. x.X = 0
  6790. } else {
  6791. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6792. }
  6793. case "Y":
  6794. if r.TryDecodeAsNil() {
  6795. x.Y = 0
  6796. } else {
  6797. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6798. }
  6799. default:
  6800. z.DecStructFieldNotFound(-1, yys3)
  6801. } // end switch yys3
  6802. } // end for yyj3
  6803. }
  6804. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  6805. var h codecSelfer19780
  6806. z, r := GenHelperDecoder(d)
  6807. _, _, _ = h, z, r
  6808. var yyj6 int
  6809. var yyb6 bool
  6810. var yyhl6 bool = l >= 0
  6811. yyj6++
  6812. if yyhl6 {
  6813. yyb6 = yyj6 > l
  6814. } else {
  6815. yyb6 = r.CheckBreak()
  6816. }
  6817. if yyb6 {
  6818. z.DecReadArrayEnd()
  6819. return
  6820. }
  6821. z.DecReadArrayElem()
  6822. if r.TryDecodeAsNil() {
  6823. x.X = 0
  6824. } else {
  6825. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6826. }
  6827. yyj6++
  6828. if yyhl6 {
  6829. yyb6 = yyj6 > l
  6830. } else {
  6831. yyb6 = r.CheckBreak()
  6832. }
  6833. if yyb6 {
  6834. z.DecReadArrayEnd()
  6835. return
  6836. }
  6837. z.DecReadArrayElem()
  6838. if r.TryDecodeAsNil() {
  6839. x.Y = 0
  6840. } else {
  6841. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6842. }
  6843. for {
  6844. yyj6++
  6845. if yyhl6 {
  6846. yyb6 = yyj6 > l
  6847. } else {
  6848. yyb6 = r.CheckBreak()
  6849. }
  6850. if yyb6 {
  6851. break
  6852. }
  6853. z.DecReadArrayElem()
  6854. z.DecStructFieldNotFound(yyj6-1, "")
  6855. }
  6856. }
  6857. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  6858. var h codecSelfer19780
  6859. z, r := GenHelperEncoder(e)
  6860. _, _, _ = h, z, r
  6861. if x == nil {
  6862. r.EncodeNil()
  6863. } else { // checkNil=true
  6864. yysep2 := !z.EncBinary()
  6865. yy2arr2 := z.EncBasicHandle().StructToArray
  6866. _, _ = yysep2, yy2arr2
  6867. const yyr2 bool = false // struct tag has 'toArray'
  6868. if yyr2 || yy2arr2 {
  6869. z.EncWriteArrayStart(2)
  6870. z.EncWriteArrayElem()
  6871. r.EncodeInt(int64(x.codecgenK.X))
  6872. z.EncWriteArrayElem()
  6873. if z.EncBasicHandle().StringToRaw {
  6874. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6875. } else {
  6876. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6877. }
  6878. z.EncWriteArrayEnd()
  6879. } else {
  6880. z.EncWriteMapStart(2)
  6881. z.EncWriteMapElemKey()
  6882. if z.IsJSONHandle() {
  6883. z.WriteStr("\"X\"")
  6884. } else {
  6885. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6886. }
  6887. z.EncWriteMapElemValue()
  6888. r.EncodeInt(int64(x.codecgenK.X))
  6889. z.EncWriteMapElemKey()
  6890. if z.IsJSONHandle() {
  6891. z.WriteStr("\"Y\"")
  6892. } else {
  6893. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6894. }
  6895. z.EncWriteMapElemValue()
  6896. if z.EncBasicHandle().StringToRaw {
  6897. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6898. } else {
  6899. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6900. }
  6901. z.EncWriteMapEnd()
  6902. }
  6903. } // checkNil=true
  6904. }
  6905. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  6906. var h codecSelfer19780
  6907. z, r := GenHelperDecoder(d)
  6908. _, _, _ = h, z, r
  6909. yyct2 := r.ContainerType()
  6910. if yyct2 == codecSelferValueTypeMap19780 {
  6911. yyl2 := z.DecReadMapStart()
  6912. if yyl2 == 0 {
  6913. } else {
  6914. x.codecDecodeSelfFromMap(yyl2, d)
  6915. }
  6916. z.DecReadMapEnd()
  6917. } else if yyct2 == codecSelferValueTypeArray19780 {
  6918. yyl2 := z.DecReadArrayStart()
  6919. if yyl2 != 0 {
  6920. x.codecDecodeSelfFromArray(yyl2, d)
  6921. }
  6922. z.DecReadArrayEnd()
  6923. } else {
  6924. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6925. }
  6926. }
  6927. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  6928. var h codecSelfer19780
  6929. z, r := GenHelperDecoder(d)
  6930. _, _, _ = h, z, r
  6931. var yyhl3 bool = l >= 0
  6932. for yyj3 := 0; ; yyj3++ {
  6933. if yyhl3 {
  6934. if yyj3 >= l {
  6935. break
  6936. }
  6937. } else {
  6938. if r.CheckBreak() {
  6939. break
  6940. }
  6941. }
  6942. z.DecReadMapElemKey()
  6943. yys3 := z.StringView(r.DecodeStringAsBytes())
  6944. z.DecReadMapElemValue()
  6945. switch yys3 {
  6946. case "X":
  6947. if r.TryDecodeAsNil() {
  6948. x.codecgenK.X = 0
  6949. } else {
  6950. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6951. }
  6952. case "Y":
  6953. if r.TryDecodeAsNil() {
  6954. x.codecgenK.Y = ""
  6955. } else {
  6956. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  6957. }
  6958. default:
  6959. z.DecStructFieldNotFound(-1, yys3)
  6960. } // end switch yys3
  6961. } // end for yyj3
  6962. }
  6963. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  6964. var h codecSelfer19780
  6965. z, r := GenHelperDecoder(d)
  6966. _, _, _ = h, z, r
  6967. var yyj6 int
  6968. var yyb6 bool
  6969. var yyhl6 bool = l >= 0
  6970. yyj6++
  6971. if yyhl6 {
  6972. yyb6 = yyj6 > l
  6973. } else {
  6974. yyb6 = r.CheckBreak()
  6975. }
  6976. if yyb6 {
  6977. z.DecReadArrayEnd()
  6978. return
  6979. }
  6980. z.DecReadArrayElem()
  6981. if r.TryDecodeAsNil() {
  6982. x.codecgenK.X = 0
  6983. } else {
  6984. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6985. }
  6986. yyj6++
  6987. if yyhl6 {
  6988. yyb6 = yyj6 > l
  6989. } else {
  6990. yyb6 = r.CheckBreak()
  6991. }
  6992. if yyb6 {
  6993. z.DecReadArrayEnd()
  6994. return
  6995. }
  6996. z.DecReadArrayElem()
  6997. if r.TryDecodeAsNil() {
  6998. x.codecgenK.Y = ""
  6999. } else {
  7000. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  7001. }
  7002. for {
  7003. yyj6++
  7004. if yyhl6 {
  7005. yyb6 = yyj6 > l
  7006. } else {
  7007. yyb6 = r.CheckBreak()
  7008. }
  7009. if yyb6 {
  7010. break
  7011. }
  7012. z.DecReadArrayElem()
  7013. z.DecStructFieldNotFound(yyj6-1, "")
  7014. }
  7015. }
  7016. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  7017. var h codecSelfer19780
  7018. z, r := GenHelperEncoder(e)
  7019. _, _, _ = h, z, r
  7020. r.EncodeBool(bool(x))
  7021. }
  7022. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  7023. var h codecSelfer19780
  7024. z, r := GenHelperDecoder(d)
  7025. _, _, _ = h, z, r
  7026. *x = (Bbool)(r.DecodeBool())
  7027. }
  7028. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  7029. var h codecSelfer19780
  7030. z, r := GenHelperEncoder(e)
  7031. _, _, _ = h, z, r
  7032. if x == nil {
  7033. r.EncodeNil()
  7034. } else { // checkNil=true
  7035. h.encAarray((*Aarray)(x), e)
  7036. } // checkNil=true
  7037. }
  7038. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  7039. var h codecSelfer19780
  7040. z, r := GenHelperDecoder(d)
  7041. _, _, _ = h, z, r
  7042. h.decAarray((*Aarray)(x), d)
  7043. }
  7044. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  7045. var h codecSelfer19780
  7046. z, r := GenHelperEncoder(e)
  7047. _, _, _ = h, z, r
  7048. if z.EncBasicHandle().StringToRaw {
  7049. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  7050. } else {
  7051. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  7052. }
  7053. }
  7054. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  7055. var h codecSelfer19780
  7056. z, r := GenHelperDecoder(d)
  7057. _, _, _ = h, z, r
  7058. *x = (Sstring)(string(r.DecodeStringAsBytes()))
  7059. }
  7060. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  7061. var h codecSelfer19780
  7062. z, r := GenHelperEncoder(e)
  7063. _, _, _ = h, z, r
  7064. if x == nil {
  7065. r.EncodeNil()
  7066. } else { // checkNil=true
  7067. yysep2 := !z.EncBinary()
  7068. yy2arr2 := z.EncBasicHandle().StructToArray
  7069. _, _ = yysep2, yy2arr2
  7070. const yyr2 bool = false // struct tag has 'toArray'
  7071. if yyr2 || yy2arr2 {
  7072. z.EncWriteArrayStart(1)
  7073. z.EncWriteArrayElem()
  7074. r.EncodeInt(int64(x.A))
  7075. z.EncWriteArrayEnd()
  7076. } else {
  7077. z.EncWriteMapStart(1)
  7078. z.EncWriteMapElemKey()
  7079. if z.IsJSONHandle() {
  7080. z.WriteStr("\"A\"")
  7081. } else {
  7082. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7083. }
  7084. z.EncWriteMapElemValue()
  7085. r.EncodeInt(int64(x.A))
  7086. z.EncWriteMapEnd()
  7087. }
  7088. } // checkNil=true
  7089. }
  7090. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  7091. var h codecSelfer19780
  7092. z, r := GenHelperDecoder(d)
  7093. _, _, _ = h, z, r
  7094. yyct2 := r.ContainerType()
  7095. if yyct2 == codecSelferValueTypeMap19780 {
  7096. yyl2 := z.DecReadMapStart()
  7097. if yyl2 == 0 {
  7098. } else {
  7099. x.codecDecodeSelfFromMap(yyl2, d)
  7100. }
  7101. z.DecReadMapEnd()
  7102. } else if yyct2 == codecSelferValueTypeArray19780 {
  7103. yyl2 := z.DecReadArrayStart()
  7104. if yyl2 != 0 {
  7105. x.codecDecodeSelfFromArray(yyl2, d)
  7106. }
  7107. z.DecReadArrayEnd()
  7108. } else {
  7109. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7110. }
  7111. }
  7112. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  7113. var h codecSelfer19780
  7114. z, r := GenHelperDecoder(d)
  7115. _, _, _ = h, z, r
  7116. var yyhl3 bool = l >= 0
  7117. for yyj3 := 0; ; yyj3++ {
  7118. if yyhl3 {
  7119. if yyj3 >= l {
  7120. break
  7121. }
  7122. } else {
  7123. if r.CheckBreak() {
  7124. break
  7125. }
  7126. }
  7127. z.DecReadMapElemKey()
  7128. yys3 := z.StringView(r.DecodeStringAsBytes())
  7129. z.DecReadMapElemValue()
  7130. switch yys3 {
  7131. case "A":
  7132. if r.TryDecodeAsNil() {
  7133. x.A = 0
  7134. } else {
  7135. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7136. }
  7137. default:
  7138. z.DecStructFieldNotFound(-1, yys3)
  7139. } // end switch yys3
  7140. } // end for yyj3
  7141. }
  7142. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  7143. var h codecSelfer19780
  7144. z, r := GenHelperDecoder(d)
  7145. _, _, _ = h, z, r
  7146. var yyj5 int
  7147. var yyb5 bool
  7148. var yyhl5 bool = l >= 0
  7149. yyj5++
  7150. if yyhl5 {
  7151. yyb5 = yyj5 > l
  7152. } else {
  7153. yyb5 = r.CheckBreak()
  7154. }
  7155. if yyb5 {
  7156. z.DecReadArrayEnd()
  7157. return
  7158. }
  7159. z.DecReadArrayElem()
  7160. if r.TryDecodeAsNil() {
  7161. x.A = 0
  7162. } else {
  7163. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7164. }
  7165. for {
  7166. yyj5++
  7167. if yyhl5 {
  7168. yyb5 = yyj5 > l
  7169. } else {
  7170. yyb5 = r.CheckBreak()
  7171. }
  7172. if yyb5 {
  7173. break
  7174. }
  7175. z.DecReadArrayElem()
  7176. z.DecStructFieldNotFound(yyj5-1, "")
  7177. }
  7178. }
  7179. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  7180. var h codecSelfer19780
  7181. z, r := GenHelperEncoder(e)
  7182. _, _, _ = h, z, r
  7183. if x == nil {
  7184. r.EncodeNil()
  7185. } else { // checkNil=true
  7186. yysep2 := !z.EncBinary()
  7187. yy2arr2 := z.EncBasicHandle().StructToArray
  7188. _, _ = yysep2, yy2arr2
  7189. const yyr2 bool = false // struct tag has 'toArray'
  7190. var yyn5 bool = x.Ssmallptr == nil
  7191. var yyn6 bool = x.Ssmall == nil
  7192. var yyn7 bool = x.Sptr == nil
  7193. if yyr2 || yy2arr2 {
  7194. z.EncWriteArrayStart(5)
  7195. z.EncWriteArrayElem()
  7196. r.EncodeInt(int64(x.A))
  7197. z.EncWriteArrayElem()
  7198. r.EncodeBool(bool(x.B))
  7199. if yyn5 {
  7200. z.EncWriteArrayElem()
  7201. r.EncodeNil()
  7202. } else {
  7203. z.EncWriteArrayElem()
  7204. x.Ssmallptr.CodecEncodeSelf(e)
  7205. }
  7206. if yyn6 {
  7207. z.EncWriteArrayElem()
  7208. r.EncodeNil()
  7209. } else {
  7210. z.EncWriteArrayElem()
  7211. x.Ssmall.CodecEncodeSelf(e)
  7212. }
  7213. if yyn7 {
  7214. z.EncWriteArrayElem()
  7215. r.EncodeNil()
  7216. } else {
  7217. z.EncWriteArrayElem()
  7218. x.Sptr.CodecEncodeSelf(e)
  7219. }
  7220. z.EncWriteArrayEnd()
  7221. } else {
  7222. z.EncWriteMapStart(5)
  7223. z.EncWriteMapElemKey()
  7224. if z.IsJSONHandle() {
  7225. z.WriteStr("\"A\"")
  7226. } else {
  7227. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7228. }
  7229. z.EncWriteMapElemValue()
  7230. r.EncodeInt(int64(x.A))
  7231. z.EncWriteMapElemKey()
  7232. if z.IsJSONHandle() {
  7233. z.WriteStr("\"B\"")
  7234. } else {
  7235. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7236. }
  7237. z.EncWriteMapElemValue()
  7238. r.EncodeBool(bool(x.B))
  7239. z.EncWriteMapElemKey()
  7240. if z.IsJSONHandle() {
  7241. z.WriteStr("\"Ssmallptr\"")
  7242. } else {
  7243. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  7244. }
  7245. z.EncWriteMapElemValue()
  7246. if yyn5 {
  7247. r.EncodeNil()
  7248. } else {
  7249. x.Ssmallptr.CodecEncodeSelf(e)
  7250. }
  7251. z.EncWriteMapElemKey()
  7252. if z.IsJSONHandle() {
  7253. z.WriteStr("\"Ssmall\"")
  7254. } else {
  7255. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  7256. }
  7257. z.EncWriteMapElemValue()
  7258. if yyn6 {
  7259. r.EncodeNil()
  7260. } else {
  7261. x.Ssmall.CodecEncodeSelf(e)
  7262. }
  7263. z.EncWriteMapElemKey()
  7264. if z.IsJSONHandle() {
  7265. z.WriteStr("\"Sptr\"")
  7266. } else {
  7267. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  7268. }
  7269. z.EncWriteMapElemValue()
  7270. if yyn7 {
  7271. r.EncodeNil()
  7272. } else {
  7273. x.Sptr.CodecEncodeSelf(e)
  7274. }
  7275. z.EncWriteMapEnd()
  7276. }
  7277. } // checkNil=true
  7278. }
  7279. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  7280. var h codecSelfer19780
  7281. z, r := GenHelperDecoder(d)
  7282. _, _, _ = h, z, r
  7283. yyct2 := r.ContainerType()
  7284. if yyct2 == codecSelferValueTypeMap19780 {
  7285. yyl2 := z.DecReadMapStart()
  7286. if yyl2 == 0 {
  7287. } else {
  7288. x.codecDecodeSelfFromMap(yyl2, d)
  7289. }
  7290. z.DecReadMapEnd()
  7291. } else if yyct2 == codecSelferValueTypeArray19780 {
  7292. yyl2 := z.DecReadArrayStart()
  7293. if yyl2 != 0 {
  7294. x.codecDecodeSelfFromArray(yyl2, d)
  7295. }
  7296. z.DecReadArrayEnd()
  7297. } else {
  7298. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7299. }
  7300. }
  7301. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  7302. var h codecSelfer19780
  7303. z, r := GenHelperDecoder(d)
  7304. _, _, _ = h, z, r
  7305. var yyhl3 bool = l >= 0
  7306. for yyj3 := 0; ; yyj3++ {
  7307. if yyhl3 {
  7308. if yyj3 >= l {
  7309. break
  7310. }
  7311. } else {
  7312. if r.CheckBreak() {
  7313. break
  7314. }
  7315. }
  7316. z.DecReadMapElemKey()
  7317. yys3 := z.StringView(r.DecodeStringAsBytes())
  7318. z.DecReadMapElemValue()
  7319. switch yys3 {
  7320. case "A":
  7321. if r.TryDecodeAsNil() {
  7322. x.A = 0
  7323. } else {
  7324. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7325. }
  7326. case "B":
  7327. if r.TryDecodeAsNil() {
  7328. x.B = false
  7329. } else {
  7330. x.B = (bool)(r.DecodeBool())
  7331. }
  7332. case "Ssmallptr":
  7333. if r.TryDecodeAsNil() {
  7334. if x.Ssmallptr != nil { // remove the if-true
  7335. x.Ssmallptr = nil
  7336. }
  7337. } else {
  7338. if x.Ssmallptr == nil {
  7339. x.Ssmallptr = new(Sstructsmall)
  7340. }
  7341. x.Ssmallptr.CodecDecodeSelf(d)
  7342. }
  7343. case "Ssmall":
  7344. if r.TryDecodeAsNil() {
  7345. if x.Ssmall != nil { // remove the if-true
  7346. x.Ssmall = nil
  7347. }
  7348. } else {
  7349. if x.Ssmall == nil {
  7350. x.Ssmall = new(Sstructsmall)
  7351. }
  7352. x.Ssmall.CodecDecodeSelf(d)
  7353. }
  7354. case "Sptr":
  7355. if r.TryDecodeAsNil() {
  7356. if x.Sptr != nil { // remove the if-true
  7357. x.Sptr = nil
  7358. }
  7359. } else {
  7360. if x.Sptr == nil {
  7361. x.Sptr = new(Sstructbig)
  7362. }
  7363. x.Sptr.CodecDecodeSelf(d)
  7364. }
  7365. default:
  7366. z.DecStructFieldNotFound(-1, yys3)
  7367. } // end switch yys3
  7368. } // end for yyj3
  7369. }
  7370. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  7371. var h codecSelfer19780
  7372. z, r := GenHelperDecoder(d)
  7373. _, _, _ = h, z, r
  7374. var yyj9 int
  7375. var yyb9 bool
  7376. var yyhl9 bool = l >= 0
  7377. yyj9++
  7378. if yyhl9 {
  7379. yyb9 = yyj9 > l
  7380. } else {
  7381. yyb9 = r.CheckBreak()
  7382. }
  7383. if yyb9 {
  7384. z.DecReadArrayEnd()
  7385. return
  7386. }
  7387. z.DecReadArrayElem()
  7388. if r.TryDecodeAsNil() {
  7389. x.A = 0
  7390. } else {
  7391. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7392. }
  7393. yyj9++
  7394. if yyhl9 {
  7395. yyb9 = yyj9 > l
  7396. } else {
  7397. yyb9 = r.CheckBreak()
  7398. }
  7399. if yyb9 {
  7400. z.DecReadArrayEnd()
  7401. return
  7402. }
  7403. z.DecReadArrayElem()
  7404. if r.TryDecodeAsNil() {
  7405. x.B = false
  7406. } else {
  7407. x.B = (bool)(r.DecodeBool())
  7408. }
  7409. yyj9++
  7410. if yyhl9 {
  7411. yyb9 = yyj9 > l
  7412. } else {
  7413. yyb9 = r.CheckBreak()
  7414. }
  7415. if yyb9 {
  7416. z.DecReadArrayEnd()
  7417. return
  7418. }
  7419. z.DecReadArrayElem()
  7420. if r.TryDecodeAsNil() {
  7421. if x.Ssmallptr != nil { // remove the if-true
  7422. x.Ssmallptr = nil
  7423. }
  7424. } else {
  7425. if x.Ssmallptr == nil {
  7426. x.Ssmallptr = new(Sstructsmall)
  7427. }
  7428. x.Ssmallptr.CodecDecodeSelf(d)
  7429. }
  7430. yyj9++
  7431. if yyhl9 {
  7432. yyb9 = yyj9 > l
  7433. } else {
  7434. yyb9 = r.CheckBreak()
  7435. }
  7436. if yyb9 {
  7437. z.DecReadArrayEnd()
  7438. return
  7439. }
  7440. z.DecReadArrayElem()
  7441. if r.TryDecodeAsNil() {
  7442. if x.Ssmall != nil { // remove the if-true
  7443. x.Ssmall = nil
  7444. }
  7445. } else {
  7446. if x.Ssmall == nil {
  7447. x.Ssmall = new(Sstructsmall)
  7448. }
  7449. x.Ssmall.CodecDecodeSelf(d)
  7450. }
  7451. yyj9++
  7452. if yyhl9 {
  7453. yyb9 = yyj9 > l
  7454. } else {
  7455. yyb9 = r.CheckBreak()
  7456. }
  7457. if yyb9 {
  7458. z.DecReadArrayEnd()
  7459. return
  7460. }
  7461. z.DecReadArrayElem()
  7462. if r.TryDecodeAsNil() {
  7463. if x.Sptr != nil { // remove the if-true
  7464. x.Sptr = nil
  7465. }
  7466. } else {
  7467. if x.Sptr == nil {
  7468. x.Sptr = new(Sstructbig)
  7469. }
  7470. x.Sptr.CodecDecodeSelf(d)
  7471. }
  7472. for {
  7473. yyj9++
  7474. if yyhl9 {
  7475. yyb9 = yyj9 > l
  7476. } else {
  7477. yyb9 = r.CheckBreak()
  7478. }
  7479. if yyb9 {
  7480. break
  7481. }
  7482. z.DecReadArrayElem()
  7483. z.DecStructFieldNotFound(yyj9-1, "")
  7484. }
  7485. }
  7486. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  7487. var h codecSelfer19780
  7488. z, r := GenHelperEncoder(e)
  7489. _, _, _ = h, z, r
  7490. if x == nil {
  7491. r.EncodeNil()
  7492. } else { // checkNil=true
  7493. yysep2 := !z.EncBinary()
  7494. yy2arr2 := z.EncBasicHandle().StructToArray
  7495. _, _ = yysep2, yy2arr2
  7496. const yyr2 bool = true // struct tag has 'toArray'
  7497. var yyn5 bool = x.Ssmallptr == nil
  7498. var yyn6 bool = x.Ssmall == nil
  7499. var yyn7 bool = x.Sptr == nil
  7500. if yyr2 || yy2arr2 {
  7501. z.EncWriteArrayStart(5)
  7502. z.EncWriteArrayElem()
  7503. r.EncodeInt(int64(x.A))
  7504. z.EncWriteArrayElem()
  7505. r.EncodeBool(bool(x.B))
  7506. if yyn5 {
  7507. z.EncWriteArrayElem()
  7508. r.EncodeNil()
  7509. } else {
  7510. z.EncWriteArrayElem()
  7511. x.Ssmallptr.CodecEncodeSelf(e)
  7512. }
  7513. if yyn6 {
  7514. z.EncWriteArrayElem()
  7515. r.EncodeNil()
  7516. } else {
  7517. z.EncWriteArrayElem()
  7518. x.Ssmall.CodecEncodeSelf(e)
  7519. }
  7520. if yyn7 {
  7521. z.EncWriteArrayElem()
  7522. r.EncodeNil()
  7523. } else {
  7524. z.EncWriteArrayElem()
  7525. x.Sptr.CodecEncodeSelf(e)
  7526. }
  7527. z.EncWriteArrayEnd()
  7528. } else {
  7529. z.EncWriteMapStart(5)
  7530. z.EncWriteMapElemKey()
  7531. if z.IsJSONHandle() {
  7532. z.WriteStr("\"A\"")
  7533. } else {
  7534. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7535. }
  7536. z.EncWriteMapElemValue()
  7537. r.EncodeInt(int64(x.A))
  7538. z.EncWriteMapElemKey()
  7539. if z.IsJSONHandle() {
  7540. z.WriteStr("\"B\"")
  7541. } else {
  7542. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7543. }
  7544. z.EncWriteMapElemValue()
  7545. r.EncodeBool(bool(x.B))
  7546. z.EncWriteMapElemKey()
  7547. if z.IsJSONHandle() {
  7548. z.WriteStr("\"Ssmallptr\"")
  7549. } else {
  7550. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  7551. }
  7552. z.EncWriteMapElemValue()
  7553. if yyn5 {
  7554. r.EncodeNil()
  7555. } else {
  7556. x.Ssmallptr.CodecEncodeSelf(e)
  7557. }
  7558. z.EncWriteMapElemKey()
  7559. if z.IsJSONHandle() {
  7560. z.WriteStr("\"Ssmall\"")
  7561. } else {
  7562. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  7563. }
  7564. z.EncWriteMapElemValue()
  7565. if yyn6 {
  7566. r.EncodeNil()
  7567. } else {
  7568. x.Ssmall.CodecEncodeSelf(e)
  7569. }
  7570. z.EncWriteMapElemKey()
  7571. if z.IsJSONHandle() {
  7572. z.WriteStr("\"Sptr\"")
  7573. } else {
  7574. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  7575. }
  7576. z.EncWriteMapElemValue()
  7577. if yyn7 {
  7578. r.EncodeNil()
  7579. } else {
  7580. x.Sptr.CodecEncodeSelf(e)
  7581. }
  7582. z.EncWriteMapEnd()
  7583. }
  7584. } // checkNil=true
  7585. }
  7586. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  7587. var h codecSelfer19780
  7588. z, r := GenHelperDecoder(d)
  7589. _, _, _ = h, z, r
  7590. yyct2 := r.ContainerType()
  7591. if yyct2 == codecSelferValueTypeMap19780 {
  7592. yyl2 := z.DecReadMapStart()
  7593. if yyl2 == 0 {
  7594. } else {
  7595. x.codecDecodeSelfFromMap(yyl2, d)
  7596. }
  7597. z.DecReadMapEnd()
  7598. } else if yyct2 == codecSelferValueTypeArray19780 {
  7599. yyl2 := z.DecReadArrayStart()
  7600. if yyl2 != 0 {
  7601. x.codecDecodeSelfFromArray(yyl2, d)
  7602. }
  7603. z.DecReadArrayEnd()
  7604. } else {
  7605. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7606. }
  7607. }
  7608. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  7609. var h codecSelfer19780
  7610. z, r := GenHelperDecoder(d)
  7611. _, _, _ = h, z, r
  7612. var yyhl3 bool = l >= 0
  7613. for yyj3 := 0; ; yyj3++ {
  7614. if yyhl3 {
  7615. if yyj3 >= l {
  7616. break
  7617. }
  7618. } else {
  7619. if r.CheckBreak() {
  7620. break
  7621. }
  7622. }
  7623. z.DecReadMapElemKey()
  7624. yys3 := z.StringView(r.DecodeStringAsBytes())
  7625. z.DecReadMapElemValue()
  7626. switch yys3 {
  7627. case "A":
  7628. if r.TryDecodeAsNil() {
  7629. x.A = 0
  7630. } else {
  7631. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7632. }
  7633. case "B":
  7634. if r.TryDecodeAsNil() {
  7635. x.B = false
  7636. } else {
  7637. x.B = (bool)(r.DecodeBool())
  7638. }
  7639. case "Ssmallptr":
  7640. if r.TryDecodeAsNil() {
  7641. if x.Ssmallptr != nil { // remove the if-true
  7642. x.Ssmallptr = nil
  7643. }
  7644. } else {
  7645. if x.Ssmallptr == nil {
  7646. x.Ssmallptr = new(Sstructsmall)
  7647. }
  7648. x.Ssmallptr.CodecDecodeSelf(d)
  7649. }
  7650. case "Ssmall":
  7651. if r.TryDecodeAsNil() {
  7652. if x.Ssmall != nil { // remove the if-true
  7653. x.Ssmall = nil
  7654. }
  7655. } else {
  7656. if x.Ssmall == nil {
  7657. x.Ssmall = new(Sstructsmall)
  7658. }
  7659. x.Ssmall.CodecDecodeSelf(d)
  7660. }
  7661. case "Sptr":
  7662. if r.TryDecodeAsNil() {
  7663. if x.Sptr != nil { // remove the if-true
  7664. x.Sptr = nil
  7665. }
  7666. } else {
  7667. if x.Sptr == nil {
  7668. x.Sptr = new(Sstructbig)
  7669. }
  7670. x.Sptr.CodecDecodeSelf(d)
  7671. }
  7672. default:
  7673. z.DecStructFieldNotFound(-1, yys3)
  7674. } // end switch yys3
  7675. } // end for yyj3
  7676. }
  7677. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  7678. var h codecSelfer19780
  7679. z, r := GenHelperDecoder(d)
  7680. _, _, _ = h, z, r
  7681. var yyj9 int
  7682. var yyb9 bool
  7683. var yyhl9 bool = l >= 0
  7684. yyj9++
  7685. if yyhl9 {
  7686. yyb9 = yyj9 > l
  7687. } else {
  7688. yyb9 = r.CheckBreak()
  7689. }
  7690. if yyb9 {
  7691. z.DecReadArrayEnd()
  7692. return
  7693. }
  7694. z.DecReadArrayElem()
  7695. if r.TryDecodeAsNil() {
  7696. x.A = 0
  7697. } else {
  7698. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7699. }
  7700. yyj9++
  7701. if yyhl9 {
  7702. yyb9 = yyj9 > l
  7703. } else {
  7704. yyb9 = r.CheckBreak()
  7705. }
  7706. if yyb9 {
  7707. z.DecReadArrayEnd()
  7708. return
  7709. }
  7710. z.DecReadArrayElem()
  7711. if r.TryDecodeAsNil() {
  7712. x.B = false
  7713. } else {
  7714. x.B = (bool)(r.DecodeBool())
  7715. }
  7716. yyj9++
  7717. if yyhl9 {
  7718. yyb9 = yyj9 > l
  7719. } else {
  7720. yyb9 = r.CheckBreak()
  7721. }
  7722. if yyb9 {
  7723. z.DecReadArrayEnd()
  7724. return
  7725. }
  7726. z.DecReadArrayElem()
  7727. if r.TryDecodeAsNil() {
  7728. if x.Ssmallptr != nil { // remove the if-true
  7729. x.Ssmallptr = nil
  7730. }
  7731. } else {
  7732. if x.Ssmallptr == nil {
  7733. x.Ssmallptr = new(Sstructsmall)
  7734. }
  7735. x.Ssmallptr.CodecDecodeSelf(d)
  7736. }
  7737. yyj9++
  7738. if yyhl9 {
  7739. yyb9 = yyj9 > l
  7740. } else {
  7741. yyb9 = r.CheckBreak()
  7742. }
  7743. if yyb9 {
  7744. z.DecReadArrayEnd()
  7745. return
  7746. }
  7747. z.DecReadArrayElem()
  7748. if r.TryDecodeAsNil() {
  7749. if x.Ssmall != nil { // remove the if-true
  7750. x.Ssmall = nil
  7751. }
  7752. } else {
  7753. if x.Ssmall == nil {
  7754. x.Ssmall = new(Sstructsmall)
  7755. }
  7756. x.Ssmall.CodecDecodeSelf(d)
  7757. }
  7758. yyj9++
  7759. if yyhl9 {
  7760. yyb9 = yyj9 > l
  7761. } else {
  7762. yyb9 = r.CheckBreak()
  7763. }
  7764. if yyb9 {
  7765. z.DecReadArrayEnd()
  7766. return
  7767. }
  7768. z.DecReadArrayElem()
  7769. if r.TryDecodeAsNil() {
  7770. if x.Sptr != nil { // remove the if-true
  7771. x.Sptr = nil
  7772. }
  7773. } else {
  7774. if x.Sptr == nil {
  7775. x.Sptr = new(Sstructbig)
  7776. }
  7777. x.Sptr.CodecDecodeSelf(d)
  7778. }
  7779. for {
  7780. yyj9++
  7781. if yyhl9 {
  7782. yyb9 = yyj9 > l
  7783. } else {
  7784. yyb9 = r.CheckBreak()
  7785. }
  7786. if yyb9 {
  7787. break
  7788. }
  7789. z.DecReadArrayElem()
  7790. z.DecStructFieldNotFound(yyj9-1, "")
  7791. }
  7792. }
  7793. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  7794. var h codecSelfer19780
  7795. z, r := GenHelperEncoder(e)
  7796. _, _, _ = h, z, r
  7797. if x == nil {
  7798. r.EncodeNil()
  7799. } else { // checkNil=true
  7800. yysep2 := !z.EncBinary()
  7801. yy2arr2 := z.EncBasicHandle().StructToArray
  7802. _, _ = yysep2, yy2arr2
  7803. const yyr2 bool = false // struct tag has 'toArray'
  7804. if yyr2 || yy2arr2 {
  7805. z.EncWriteArrayStart(2)
  7806. z.EncWriteArrayElem()
  7807. r.EncodeInt(int64(x.I))
  7808. z.EncWriteArrayElem()
  7809. if z.EncBasicHandle().StringToRaw {
  7810. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7811. } else {
  7812. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7813. }
  7814. z.EncWriteArrayEnd()
  7815. } else {
  7816. z.EncWriteMapStart(2)
  7817. z.EncWriteMapElemKey()
  7818. if z.IsJSONHandle() {
  7819. z.WriteStr("\"I\"")
  7820. } else {
  7821. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7822. }
  7823. z.EncWriteMapElemValue()
  7824. r.EncodeInt(int64(x.I))
  7825. z.EncWriteMapElemKey()
  7826. if z.IsJSONHandle() {
  7827. z.WriteStr("\"S\"")
  7828. } else {
  7829. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7830. }
  7831. z.EncWriteMapElemValue()
  7832. if z.EncBasicHandle().StringToRaw {
  7833. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7834. } else {
  7835. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7836. }
  7837. z.EncWriteMapEnd()
  7838. }
  7839. } // checkNil=true
  7840. }
  7841. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  7842. var h codecSelfer19780
  7843. z, r := GenHelperDecoder(d)
  7844. _, _, _ = h, z, r
  7845. yyct2 := r.ContainerType()
  7846. if yyct2 == codecSelferValueTypeMap19780 {
  7847. yyl2 := z.DecReadMapStart()
  7848. if yyl2 == 0 {
  7849. } else {
  7850. x.codecDecodeSelfFromMap(yyl2, d)
  7851. }
  7852. z.DecReadMapEnd()
  7853. } else if yyct2 == codecSelferValueTypeArray19780 {
  7854. yyl2 := z.DecReadArrayStart()
  7855. if yyl2 != 0 {
  7856. x.codecDecodeSelfFromArray(yyl2, d)
  7857. }
  7858. z.DecReadArrayEnd()
  7859. } else {
  7860. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7861. }
  7862. }
  7863. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  7864. var h codecSelfer19780
  7865. z, r := GenHelperDecoder(d)
  7866. _, _, _ = h, z, r
  7867. var yyhl3 bool = l >= 0
  7868. for yyj3 := 0; ; yyj3++ {
  7869. if yyhl3 {
  7870. if yyj3 >= l {
  7871. break
  7872. }
  7873. } else {
  7874. if r.CheckBreak() {
  7875. break
  7876. }
  7877. }
  7878. z.DecReadMapElemKey()
  7879. yys3 := z.StringView(r.DecodeStringAsBytes())
  7880. z.DecReadMapElemValue()
  7881. switch yys3 {
  7882. case "I":
  7883. if r.TryDecodeAsNil() {
  7884. x.I = 0
  7885. } else {
  7886. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7887. }
  7888. case "S":
  7889. if r.TryDecodeAsNil() {
  7890. x.S = ""
  7891. } else {
  7892. x.S = (string)(string(r.DecodeStringAsBytes()))
  7893. }
  7894. default:
  7895. z.DecStructFieldNotFound(-1, yys3)
  7896. } // end switch yys3
  7897. } // end for yyj3
  7898. }
  7899. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  7900. var h codecSelfer19780
  7901. z, r := GenHelperDecoder(d)
  7902. _, _, _ = h, z, r
  7903. var yyj6 int
  7904. var yyb6 bool
  7905. var yyhl6 bool = l >= 0
  7906. yyj6++
  7907. if yyhl6 {
  7908. yyb6 = yyj6 > l
  7909. } else {
  7910. yyb6 = r.CheckBreak()
  7911. }
  7912. if yyb6 {
  7913. z.DecReadArrayEnd()
  7914. return
  7915. }
  7916. z.DecReadArrayElem()
  7917. if r.TryDecodeAsNil() {
  7918. x.I = 0
  7919. } else {
  7920. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7921. }
  7922. yyj6++
  7923. if yyhl6 {
  7924. yyb6 = yyj6 > l
  7925. } else {
  7926. yyb6 = r.CheckBreak()
  7927. }
  7928. if yyb6 {
  7929. z.DecReadArrayEnd()
  7930. return
  7931. }
  7932. z.DecReadArrayElem()
  7933. if r.TryDecodeAsNil() {
  7934. x.S = ""
  7935. } else {
  7936. x.S = (string)(string(r.DecodeStringAsBytes()))
  7937. }
  7938. for {
  7939. yyj6++
  7940. if yyhl6 {
  7941. yyb6 = yyj6 > l
  7942. } else {
  7943. yyb6 = r.CheckBreak()
  7944. }
  7945. if yyb6 {
  7946. break
  7947. }
  7948. z.DecReadArrayElem()
  7949. z.DecStructFieldNotFound(yyj6-1, "")
  7950. }
  7951. }
  7952. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  7953. var h codecSelfer19780
  7954. z, r := GenHelperEncoder(e)
  7955. _, _, _ = h, z, r
  7956. r.EncodeInt(int64(x))
  7957. }
  7958. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  7959. var h codecSelfer19780
  7960. z, r := GenHelperDecoder(d)
  7961. _, _, _ = h, z, r
  7962. *x = (wrapInt64)(r.DecodeInt64())
  7963. }
  7964. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  7965. var h codecSelfer19780
  7966. z, r := GenHelperEncoder(e)
  7967. _, _, _ = h, z, r
  7968. r.EncodeUint(uint64(x))
  7969. }
  7970. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  7971. var h codecSelfer19780
  7972. z, r := GenHelperDecoder(d)
  7973. _, _, _ = h, z, r
  7974. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  7975. }
  7976. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  7977. var h codecSelfer19780
  7978. z, r := GenHelperEncoder(e)
  7979. _, _, _ = h, z, r
  7980. if x == nil {
  7981. r.EncodeNil()
  7982. } else {
  7983. h.encwrapBytes((wrapBytes)(x), e)
  7984. } // end block: if x slice == nil
  7985. }
  7986. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  7987. var h codecSelfer19780
  7988. z, r := GenHelperDecoder(d)
  7989. _, _, _ = h, z, r
  7990. h.decwrapBytes((*wrapBytes)(x), d)
  7991. }
  7992. func (x *AnonInTestStrucIntf) 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 { // checkNil=true
  7999. yysep2 := !z.EncBinary()
  8000. yy2arr2 := z.EncBasicHandle().StructToArray
  8001. _, _ = yysep2, yy2arr2
  8002. const yyr2 bool = false // struct tag has 'toArray'
  8003. var yyn7 bool = x.Tptr == nil
  8004. if yyr2 || yy2arr2 {
  8005. z.EncWriteArrayStart(5)
  8006. z.EncWriteArrayElem()
  8007. if x.Islice == nil {
  8008. r.EncodeNil()
  8009. } else {
  8010. z.F.EncSliceIntfV(x.Islice, e)
  8011. } // end block: if x.Islice slice == nil
  8012. z.EncWriteArrayElem()
  8013. if x.Ms == nil {
  8014. r.EncodeNil()
  8015. } else {
  8016. z.F.EncMapStringIntfV(x.Ms, e)
  8017. } // end block: if x.Ms map == nil
  8018. z.EncWriteArrayElem()
  8019. z.EncFallback(x.Nintf)
  8020. z.EncWriteArrayElem()
  8021. if !z.EncBasicHandle().TimeNotBuiltin {
  8022. r.EncodeTime(x.T)
  8023. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  8024. z.EncExtension(x.T, yyxt11)
  8025. } else if z.EncBinary() {
  8026. z.EncBinaryMarshal(x.T)
  8027. } else if !z.EncBinary() && z.IsJSONHandle() {
  8028. z.EncJSONMarshal(x.T)
  8029. } else {
  8030. z.EncFallback(x.T)
  8031. }
  8032. if yyn7 {
  8033. z.EncWriteArrayElem()
  8034. r.EncodeNil()
  8035. } else {
  8036. z.EncWriteArrayElem()
  8037. yy12 := *x.Tptr
  8038. if !z.EncBasicHandle().TimeNotBuiltin {
  8039. r.EncodeTime(yy12)
  8040. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  8041. z.EncExtension(yy12, yyxt13)
  8042. } else if z.EncBinary() {
  8043. z.EncBinaryMarshal(yy12)
  8044. } else if !z.EncBinary() && z.IsJSONHandle() {
  8045. z.EncJSONMarshal(yy12)
  8046. } else {
  8047. z.EncFallback(yy12)
  8048. }
  8049. }
  8050. z.EncWriteArrayEnd()
  8051. } else {
  8052. z.EncWriteMapStart(5)
  8053. z.EncWriteMapElemKey()
  8054. if z.IsJSONHandle() {
  8055. z.WriteStr("\"Islice\"")
  8056. } else {
  8057. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  8058. }
  8059. z.EncWriteMapElemValue()
  8060. if x.Islice == nil {
  8061. r.EncodeNil()
  8062. } else {
  8063. z.F.EncSliceIntfV(x.Islice, e)
  8064. } // end block: if x.Islice slice == nil
  8065. z.EncWriteMapElemKey()
  8066. if z.IsJSONHandle() {
  8067. z.WriteStr("\"Ms\"")
  8068. } else {
  8069. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  8070. }
  8071. z.EncWriteMapElemValue()
  8072. if x.Ms == nil {
  8073. r.EncodeNil()
  8074. } else {
  8075. z.F.EncMapStringIntfV(x.Ms, e)
  8076. } // end block: if x.Ms map == nil
  8077. z.EncWriteMapElemKey()
  8078. if z.IsJSONHandle() {
  8079. z.WriteStr("\"Nintf\"")
  8080. } else {
  8081. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  8082. }
  8083. z.EncWriteMapElemValue()
  8084. z.EncFallback(x.Nintf)
  8085. z.EncWriteMapElemKey()
  8086. if z.IsJSONHandle() {
  8087. z.WriteStr("\"T\"")
  8088. } else {
  8089. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  8090. }
  8091. z.EncWriteMapElemValue()
  8092. if !z.EncBasicHandle().TimeNotBuiltin {
  8093. r.EncodeTime(x.T)
  8094. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  8095. z.EncExtension(x.T, yyxt17)
  8096. } else if z.EncBinary() {
  8097. z.EncBinaryMarshal(x.T)
  8098. } else if !z.EncBinary() && z.IsJSONHandle() {
  8099. z.EncJSONMarshal(x.T)
  8100. } else {
  8101. z.EncFallback(x.T)
  8102. }
  8103. z.EncWriteMapElemKey()
  8104. if z.IsJSONHandle() {
  8105. z.WriteStr("\"Tptr\"")
  8106. } else {
  8107. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  8108. }
  8109. z.EncWriteMapElemValue()
  8110. if yyn7 {
  8111. r.EncodeNil()
  8112. } else {
  8113. yy18 := *x.Tptr
  8114. if !z.EncBasicHandle().TimeNotBuiltin {
  8115. r.EncodeTime(yy18)
  8116. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  8117. z.EncExtension(yy18, yyxt19)
  8118. } else if z.EncBinary() {
  8119. z.EncBinaryMarshal(yy18)
  8120. } else if !z.EncBinary() && z.IsJSONHandle() {
  8121. z.EncJSONMarshal(yy18)
  8122. } else {
  8123. z.EncFallback(yy18)
  8124. }
  8125. }
  8126. z.EncWriteMapEnd()
  8127. }
  8128. } // checkNil=true
  8129. }
  8130. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  8131. var h codecSelfer19780
  8132. z, r := GenHelperDecoder(d)
  8133. _, _, _ = h, z, r
  8134. yyct2 := r.ContainerType()
  8135. if yyct2 == codecSelferValueTypeMap19780 {
  8136. yyl2 := z.DecReadMapStart()
  8137. if yyl2 == 0 {
  8138. } else {
  8139. x.codecDecodeSelfFromMap(yyl2, d)
  8140. }
  8141. z.DecReadMapEnd()
  8142. } else if yyct2 == codecSelferValueTypeArray19780 {
  8143. yyl2 := z.DecReadArrayStart()
  8144. if yyl2 != 0 {
  8145. x.codecDecodeSelfFromArray(yyl2, d)
  8146. }
  8147. z.DecReadArrayEnd()
  8148. } else {
  8149. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8150. }
  8151. }
  8152. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  8153. var h codecSelfer19780
  8154. z, r := GenHelperDecoder(d)
  8155. _, _, _ = h, z, r
  8156. var yyhl3 bool = l >= 0
  8157. for yyj3 := 0; ; yyj3++ {
  8158. if yyhl3 {
  8159. if yyj3 >= l {
  8160. break
  8161. }
  8162. } else {
  8163. if r.CheckBreak() {
  8164. break
  8165. }
  8166. }
  8167. z.DecReadMapElemKey()
  8168. yys3 := z.StringView(r.DecodeStringAsBytes())
  8169. z.DecReadMapElemValue()
  8170. switch yys3 {
  8171. case "Islice":
  8172. if r.TryDecodeAsNil() {
  8173. x.Islice = nil
  8174. } else {
  8175. z.F.DecSliceIntfX(&x.Islice, d)
  8176. }
  8177. case "Ms":
  8178. if r.TryDecodeAsNil() {
  8179. x.Ms = nil
  8180. } else {
  8181. z.F.DecMapStringIntfX(&x.Ms, d)
  8182. }
  8183. case "Nintf":
  8184. if r.TryDecodeAsNil() {
  8185. x.Nintf = nil
  8186. } else {
  8187. z.DecFallback(&x.Nintf, true)
  8188. }
  8189. case "T":
  8190. if r.TryDecodeAsNil() {
  8191. x.T = time.Time{}
  8192. } else {
  8193. if !z.DecBasicHandle().TimeNotBuiltin {
  8194. x.T = r.DecodeTime()
  8195. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  8196. z.DecExtension(x.T, yyxt11)
  8197. } else if z.DecBinary() {
  8198. z.DecBinaryUnmarshal(&x.T)
  8199. } else if !z.DecBinary() && z.IsJSONHandle() {
  8200. z.DecJSONUnmarshal(&x.T)
  8201. } else {
  8202. z.DecFallback(&x.T, false)
  8203. }
  8204. }
  8205. case "Tptr":
  8206. if r.TryDecodeAsNil() {
  8207. if x.Tptr != nil { // remove the if-true
  8208. x.Tptr = nil
  8209. }
  8210. } else {
  8211. if x.Tptr == nil {
  8212. x.Tptr = new(time.Time)
  8213. }
  8214. if !z.DecBasicHandle().TimeNotBuiltin {
  8215. *x.Tptr = r.DecodeTime()
  8216. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  8217. z.DecExtension(x.Tptr, yyxt13)
  8218. } else if z.DecBinary() {
  8219. z.DecBinaryUnmarshal(x.Tptr)
  8220. } else if !z.DecBinary() && z.IsJSONHandle() {
  8221. z.DecJSONUnmarshal(x.Tptr)
  8222. } else {
  8223. z.DecFallback(x.Tptr, false)
  8224. }
  8225. }
  8226. default:
  8227. z.DecStructFieldNotFound(-1, yys3)
  8228. } // end switch yys3
  8229. } // end for yyj3
  8230. }
  8231. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  8232. var h codecSelfer19780
  8233. z, r := GenHelperDecoder(d)
  8234. _, _, _ = h, z, r
  8235. var yyj14 int
  8236. var yyb14 bool
  8237. var yyhl14 bool = l >= 0
  8238. yyj14++
  8239. if yyhl14 {
  8240. yyb14 = yyj14 > l
  8241. } else {
  8242. yyb14 = r.CheckBreak()
  8243. }
  8244. if yyb14 {
  8245. z.DecReadArrayEnd()
  8246. return
  8247. }
  8248. z.DecReadArrayElem()
  8249. if r.TryDecodeAsNil() {
  8250. x.Islice = nil
  8251. } else {
  8252. z.F.DecSliceIntfX(&x.Islice, d)
  8253. }
  8254. yyj14++
  8255. if yyhl14 {
  8256. yyb14 = yyj14 > l
  8257. } else {
  8258. yyb14 = r.CheckBreak()
  8259. }
  8260. if yyb14 {
  8261. z.DecReadArrayEnd()
  8262. return
  8263. }
  8264. z.DecReadArrayElem()
  8265. if r.TryDecodeAsNil() {
  8266. x.Ms = nil
  8267. } else {
  8268. z.F.DecMapStringIntfX(&x.Ms, d)
  8269. }
  8270. yyj14++
  8271. if yyhl14 {
  8272. yyb14 = yyj14 > l
  8273. } else {
  8274. yyb14 = r.CheckBreak()
  8275. }
  8276. if yyb14 {
  8277. z.DecReadArrayEnd()
  8278. return
  8279. }
  8280. z.DecReadArrayElem()
  8281. if r.TryDecodeAsNil() {
  8282. x.Nintf = nil
  8283. } else {
  8284. z.DecFallback(&x.Nintf, true)
  8285. }
  8286. yyj14++
  8287. if yyhl14 {
  8288. yyb14 = yyj14 > l
  8289. } else {
  8290. yyb14 = r.CheckBreak()
  8291. }
  8292. if yyb14 {
  8293. z.DecReadArrayEnd()
  8294. return
  8295. }
  8296. z.DecReadArrayElem()
  8297. if r.TryDecodeAsNil() {
  8298. x.T = time.Time{}
  8299. } else {
  8300. if !z.DecBasicHandle().TimeNotBuiltin {
  8301. x.T = r.DecodeTime()
  8302. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  8303. z.DecExtension(x.T, yyxt22)
  8304. } else if z.DecBinary() {
  8305. z.DecBinaryUnmarshal(&x.T)
  8306. } else if !z.DecBinary() && z.IsJSONHandle() {
  8307. z.DecJSONUnmarshal(&x.T)
  8308. } else {
  8309. z.DecFallback(&x.T, false)
  8310. }
  8311. }
  8312. yyj14++
  8313. if yyhl14 {
  8314. yyb14 = yyj14 > l
  8315. } else {
  8316. yyb14 = r.CheckBreak()
  8317. }
  8318. if yyb14 {
  8319. z.DecReadArrayEnd()
  8320. return
  8321. }
  8322. z.DecReadArrayElem()
  8323. if r.TryDecodeAsNil() {
  8324. if x.Tptr != nil { // remove the if-true
  8325. x.Tptr = nil
  8326. }
  8327. } else {
  8328. if x.Tptr == nil {
  8329. x.Tptr = new(time.Time)
  8330. }
  8331. if !z.DecBasicHandle().TimeNotBuiltin {
  8332. *x.Tptr = r.DecodeTime()
  8333. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  8334. z.DecExtension(x.Tptr, yyxt24)
  8335. } else if z.DecBinary() {
  8336. z.DecBinaryUnmarshal(x.Tptr)
  8337. } else if !z.DecBinary() && z.IsJSONHandle() {
  8338. z.DecJSONUnmarshal(x.Tptr)
  8339. } else {
  8340. z.DecFallback(x.Tptr, false)
  8341. }
  8342. }
  8343. for {
  8344. yyj14++
  8345. if yyhl14 {
  8346. yyb14 = yyj14 > l
  8347. } else {
  8348. yyb14 = r.CheckBreak()
  8349. }
  8350. if yyb14 {
  8351. break
  8352. }
  8353. z.DecReadArrayElem()
  8354. z.DecStructFieldNotFound(yyj14-1, "")
  8355. }
  8356. }
  8357. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  8358. var h codecSelfer19780
  8359. z, r := GenHelperEncoder(e)
  8360. _, _, _ = h, z, r
  8361. if x == nil {
  8362. r.EncodeNil()
  8363. } else { // checkNil=true
  8364. yysep2 := !z.EncBinary()
  8365. yy2arr2 := z.EncBasicHandle().StructToArray
  8366. _, _ = yysep2, yy2arr2
  8367. const yyr2 bool = false // struct tag has 'toArray'
  8368. if yyr2 || yy2arr2 {
  8369. z.EncWriteArrayStart(2)
  8370. z.EncWriteArrayElem()
  8371. if z.EncBasicHandle().StringToRaw {
  8372. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8373. } else {
  8374. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8375. }
  8376. z.EncWriteArrayElem()
  8377. r.EncodeBool(bool(x.B))
  8378. z.EncWriteArrayEnd()
  8379. } else {
  8380. z.EncWriteMapStart(2)
  8381. z.EncWriteMapElemKey()
  8382. if z.IsJSONHandle() {
  8383. z.WriteStr("\"S\"")
  8384. } else {
  8385. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8386. }
  8387. z.EncWriteMapElemValue()
  8388. if z.EncBasicHandle().StringToRaw {
  8389. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8390. } else {
  8391. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8392. }
  8393. z.EncWriteMapElemKey()
  8394. if z.IsJSONHandle() {
  8395. z.WriteStr("\"B\"")
  8396. } else {
  8397. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8398. }
  8399. z.EncWriteMapElemValue()
  8400. r.EncodeBool(bool(x.B))
  8401. z.EncWriteMapEnd()
  8402. }
  8403. } // checkNil=true
  8404. }
  8405. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  8406. var h codecSelfer19780
  8407. z, r := GenHelperDecoder(d)
  8408. _, _, _ = h, z, r
  8409. yyct2 := r.ContainerType()
  8410. if yyct2 == codecSelferValueTypeMap19780 {
  8411. yyl2 := z.DecReadMapStart()
  8412. if yyl2 == 0 {
  8413. } else {
  8414. x.codecDecodeSelfFromMap(yyl2, d)
  8415. }
  8416. z.DecReadMapEnd()
  8417. } else if yyct2 == codecSelferValueTypeArray19780 {
  8418. yyl2 := z.DecReadArrayStart()
  8419. if yyl2 != 0 {
  8420. x.codecDecodeSelfFromArray(yyl2, d)
  8421. }
  8422. z.DecReadArrayEnd()
  8423. } else {
  8424. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8425. }
  8426. }
  8427. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  8428. var h codecSelfer19780
  8429. z, r := GenHelperDecoder(d)
  8430. _, _, _ = h, z, r
  8431. var yyhl3 bool = l >= 0
  8432. for yyj3 := 0; ; yyj3++ {
  8433. if yyhl3 {
  8434. if yyj3 >= l {
  8435. break
  8436. }
  8437. } else {
  8438. if r.CheckBreak() {
  8439. break
  8440. }
  8441. }
  8442. z.DecReadMapElemKey()
  8443. yys3 := z.StringView(r.DecodeStringAsBytes())
  8444. z.DecReadMapElemValue()
  8445. switch yys3 {
  8446. case "S":
  8447. if r.TryDecodeAsNil() {
  8448. x.S = ""
  8449. } else {
  8450. x.S = (string)(string(r.DecodeStringAsBytes()))
  8451. }
  8452. case "B":
  8453. if r.TryDecodeAsNil() {
  8454. x.B = false
  8455. } else {
  8456. x.B = (bool)(r.DecodeBool())
  8457. }
  8458. default:
  8459. z.DecStructFieldNotFound(-1, yys3)
  8460. } // end switch yys3
  8461. } // end for yyj3
  8462. }
  8463. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  8464. var h codecSelfer19780
  8465. z, r := GenHelperDecoder(d)
  8466. _, _, _ = h, z, r
  8467. var yyj6 int
  8468. var yyb6 bool
  8469. var yyhl6 bool = l >= 0
  8470. yyj6++
  8471. if yyhl6 {
  8472. yyb6 = yyj6 > l
  8473. } else {
  8474. yyb6 = r.CheckBreak()
  8475. }
  8476. if yyb6 {
  8477. z.DecReadArrayEnd()
  8478. return
  8479. }
  8480. z.DecReadArrayElem()
  8481. if r.TryDecodeAsNil() {
  8482. x.S = ""
  8483. } else {
  8484. x.S = (string)(string(r.DecodeStringAsBytes()))
  8485. }
  8486. yyj6++
  8487. if yyhl6 {
  8488. yyb6 = yyj6 > l
  8489. } else {
  8490. yyb6 = r.CheckBreak()
  8491. }
  8492. if yyb6 {
  8493. z.DecReadArrayEnd()
  8494. return
  8495. }
  8496. z.DecReadArrayElem()
  8497. if r.TryDecodeAsNil() {
  8498. x.B = false
  8499. } else {
  8500. x.B = (bool)(r.DecodeBool())
  8501. }
  8502. for {
  8503. yyj6++
  8504. if yyhl6 {
  8505. yyb6 = yyj6 > l
  8506. } else {
  8507. yyb6 = r.CheckBreak()
  8508. }
  8509. if yyb6 {
  8510. break
  8511. }
  8512. z.DecReadArrayElem()
  8513. z.DecStructFieldNotFound(yyj6-1, "")
  8514. }
  8515. }
  8516. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  8517. var h codecSelfer19780
  8518. z, r := GenHelperEncoder(e)
  8519. _, _, _ = h, z, r
  8520. if x == nil {
  8521. r.EncodeNil()
  8522. } else { // checkNil=true
  8523. yysep2 := !z.EncBinary()
  8524. yy2arr2 := z.EncBasicHandle().StructToArray
  8525. _, _ = yysep2, yy2arr2
  8526. const yyr2 bool = false // struct tag has 'toArray'
  8527. if yyr2 || yy2arr2 {
  8528. z.EncWriteArrayStart(4)
  8529. z.EncWriteArrayElem()
  8530. if z.EncBasicHandle().StringToRaw {
  8531. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8532. } else {
  8533. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8534. }
  8535. z.EncWriteArrayElem()
  8536. r.EncodeBool(bool(x.B))
  8537. z.EncWriteArrayElem()
  8538. r.EncodeFloat64(float64(x.F))
  8539. z.EncWriteArrayElem()
  8540. r.EncodeInt(int64(x.I))
  8541. z.EncWriteArrayEnd()
  8542. } else {
  8543. z.EncWriteMapStart(4)
  8544. z.EncWriteMapElemKey()
  8545. if z.IsJSONHandle() {
  8546. z.WriteStr("\"S\"")
  8547. } else {
  8548. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8549. }
  8550. z.EncWriteMapElemValue()
  8551. if z.EncBasicHandle().StringToRaw {
  8552. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8553. } else {
  8554. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8555. }
  8556. z.EncWriteMapElemKey()
  8557. if z.IsJSONHandle() {
  8558. z.WriteStr("\"B\"")
  8559. } else {
  8560. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8561. }
  8562. z.EncWriteMapElemValue()
  8563. r.EncodeBool(bool(x.B))
  8564. z.EncWriteMapElemKey()
  8565. if z.IsJSONHandle() {
  8566. z.WriteStr("\"F\"")
  8567. } else {
  8568. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  8569. }
  8570. z.EncWriteMapElemValue()
  8571. r.EncodeFloat64(float64(x.F))
  8572. z.EncWriteMapElemKey()
  8573. if z.IsJSONHandle() {
  8574. z.WriteStr("\"I\"")
  8575. } else {
  8576. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8577. }
  8578. z.EncWriteMapElemValue()
  8579. r.EncodeInt(int64(x.I))
  8580. z.EncWriteMapEnd()
  8581. }
  8582. } // checkNil=true
  8583. }
  8584. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  8585. var h codecSelfer19780
  8586. z, r := GenHelperDecoder(d)
  8587. _, _, _ = h, z, r
  8588. yyct2 := r.ContainerType()
  8589. if yyct2 == codecSelferValueTypeMap19780 {
  8590. yyl2 := z.DecReadMapStart()
  8591. if yyl2 == 0 {
  8592. } else {
  8593. x.codecDecodeSelfFromMap(yyl2, d)
  8594. }
  8595. z.DecReadMapEnd()
  8596. } else if yyct2 == codecSelferValueTypeArray19780 {
  8597. yyl2 := z.DecReadArrayStart()
  8598. if yyl2 != 0 {
  8599. x.codecDecodeSelfFromArray(yyl2, d)
  8600. }
  8601. z.DecReadArrayEnd()
  8602. } else {
  8603. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8604. }
  8605. }
  8606. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8607. var h codecSelfer19780
  8608. z, r := GenHelperDecoder(d)
  8609. _, _, _ = h, z, r
  8610. var yyhl3 bool = l >= 0
  8611. for yyj3 := 0; ; yyj3++ {
  8612. if yyhl3 {
  8613. if yyj3 >= l {
  8614. break
  8615. }
  8616. } else {
  8617. if r.CheckBreak() {
  8618. break
  8619. }
  8620. }
  8621. z.DecReadMapElemKey()
  8622. yys3 := z.StringView(r.DecodeStringAsBytes())
  8623. z.DecReadMapElemValue()
  8624. switch yys3 {
  8625. case "S":
  8626. if r.TryDecodeAsNil() {
  8627. x.S = ""
  8628. } else {
  8629. x.S = (string)(string(r.DecodeStringAsBytes()))
  8630. }
  8631. case "B":
  8632. if r.TryDecodeAsNil() {
  8633. x.B = false
  8634. } else {
  8635. x.B = (bool)(r.DecodeBool())
  8636. }
  8637. case "F":
  8638. if r.TryDecodeAsNil() {
  8639. x.F = 0
  8640. } else {
  8641. x.F = (float64)(r.DecodeFloat64())
  8642. }
  8643. case "I":
  8644. if r.TryDecodeAsNil() {
  8645. x.I = 0
  8646. } else {
  8647. x.I = (int64)(r.DecodeInt64())
  8648. }
  8649. default:
  8650. z.DecStructFieldNotFound(-1, yys3)
  8651. } // end switch yys3
  8652. } // end for yyj3
  8653. }
  8654. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8655. var h codecSelfer19780
  8656. z, r := GenHelperDecoder(d)
  8657. _, _, _ = h, z, r
  8658. var yyj8 int
  8659. var yyb8 bool
  8660. var yyhl8 bool = l >= 0
  8661. yyj8++
  8662. if yyhl8 {
  8663. yyb8 = yyj8 > l
  8664. } else {
  8665. yyb8 = r.CheckBreak()
  8666. }
  8667. if yyb8 {
  8668. z.DecReadArrayEnd()
  8669. return
  8670. }
  8671. z.DecReadArrayElem()
  8672. if r.TryDecodeAsNil() {
  8673. x.S = ""
  8674. } else {
  8675. x.S = (string)(string(r.DecodeStringAsBytes()))
  8676. }
  8677. yyj8++
  8678. if yyhl8 {
  8679. yyb8 = yyj8 > l
  8680. } else {
  8681. yyb8 = r.CheckBreak()
  8682. }
  8683. if yyb8 {
  8684. z.DecReadArrayEnd()
  8685. return
  8686. }
  8687. z.DecReadArrayElem()
  8688. if r.TryDecodeAsNil() {
  8689. x.B = false
  8690. } else {
  8691. x.B = (bool)(r.DecodeBool())
  8692. }
  8693. yyj8++
  8694. if yyhl8 {
  8695. yyb8 = yyj8 > l
  8696. } else {
  8697. yyb8 = r.CheckBreak()
  8698. }
  8699. if yyb8 {
  8700. z.DecReadArrayEnd()
  8701. return
  8702. }
  8703. z.DecReadArrayElem()
  8704. if r.TryDecodeAsNil() {
  8705. x.F = 0
  8706. } else {
  8707. x.F = (float64)(r.DecodeFloat64())
  8708. }
  8709. yyj8++
  8710. if yyhl8 {
  8711. yyb8 = yyj8 > l
  8712. } else {
  8713. yyb8 = r.CheckBreak()
  8714. }
  8715. if yyb8 {
  8716. z.DecReadArrayEnd()
  8717. return
  8718. }
  8719. z.DecReadArrayElem()
  8720. if r.TryDecodeAsNil() {
  8721. x.I = 0
  8722. } else {
  8723. x.I = (int64)(r.DecodeInt64())
  8724. }
  8725. for {
  8726. yyj8++
  8727. if yyhl8 {
  8728. yyb8 = yyj8 > l
  8729. } else {
  8730. yyb8 = r.CheckBreak()
  8731. }
  8732. if yyb8 {
  8733. break
  8734. }
  8735. z.DecReadArrayElem()
  8736. z.DecStructFieldNotFound(yyj8-1, "")
  8737. }
  8738. }
  8739. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  8740. var h codecSelfer19780
  8741. z, r := GenHelperEncoder(e)
  8742. _, _, _ = h, z, r
  8743. if x == nil {
  8744. r.EncodeNil()
  8745. } else { // checkNil=true
  8746. yysep2 := !z.EncBinary()
  8747. yy2arr2 := z.EncBasicHandle().StructToArray
  8748. _, _ = yysep2, yy2arr2
  8749. const yyr2 bool = false // struct tag has 'toArray'
  8750. if yyr2 || yy2arr2 {
  8751. z.EncWriteArrayStart(3)
  8752. z.EncWriteArrayElem()
  8753. if z.EncBasicHandle().StringToRaw {
  8754. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8755. } else {
  8756. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8757. }
  8758. z.EncWriteArrayElem()
  8759. r.EncodeInt(int64(x.I))
  8760. z.EncWriteArrayElem()
  8761. r.EncodeBool(bool(x.B))
  8762. z.EncWriteArrayEnd()
  8763. } else {
  8764. z.EncWriteMapStart(3)
  8765. z.EncWriteMapElemKey()
  8766. if z.IsJSONHandle() {
  8767. z.WriteStr("\"S\"")
  8768. } else {
  8769. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8770. }
  8771. z.EncWriteMapElemValue()
  8772. if z.EncBasicHandle().StringToRaw {
  8773. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8774. } else {
  8775. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8776. }
  8777. z.EncWriteMapElemKey()
  8778. if z.IsJSONHandle() {
  8779. z.WriteStr("\"I\"")
  8780. } else {
  8781. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8782. }
  8783. z.EncWriteMapElemValue()
  8784. r.EncodeInt(int64(x.I))
  8785. z.EncWriteMapElemKey()
  8786. if z.IsJSONHandle() {
  8787. z.WriteStr("\"B\"")
  8788. } else {
  8789. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8790. }
  8791. z.EncWriteMapElemValue()
  8792. r.EncodeBool(bool(x.B))
  8793. z.EncWriteMapEnd()
  8794. }
  8795. } // checkNil=true
  8796. }
  8797. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  8798. var h codecSelfer19780
  8799. z, r := GenHelperDecoder(d)
  8800. _, _, _ = h, z, r
  8801. yyct2 := r.ContainerType()
  8802. if yyct2 == codecSelferValueTypeMap19780 {
  8803. yyl2 := z.DecReadMapStart()
  8804. if yyl2 == 0 {
  8805. } else {
  8806. x.codecDecodeSelfFromMap(yyl2, d)
  8807. }
  8808. z.DecReadMapEnd()
  8809. } else if yyct2 == codecSelferValueTypeArray19780 {
  8810. yyl2 := z.DecReadArrayStart()
  8811. if yyl2 != 0 {
  8812. x.codecDecodeSelfFromArray(yyl2, d)
  8813. }
  8814. z.DecReadArrayEnd()
  8815. } else {
  8816. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8817. }
  8818. }
  8819. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  8820. var h codecSelfer19780
  8821. z, r := GenHelperDecoder(d)
  8822. _, _, _ = h, z, r
  8823. var yyhl3 bool = l >= 0
  8824. for yyj3 := 0; ; yyj3++ {
  8825. if yyhl3 {
  8826. if yyj3 >= l {
  8827. break
  8828. }
  8829. } else {
  8830. if r.CheckBreak() {
  8831. break
  8832. }
  8833. }
  8834. z.DecReadMapElemKey()
  8835. yys3 := z.StringView(r.DecodeStringAsBytes())
  8836. z.DecReadMapElemValue()
  8837. switch yys3 {
  8838. case "S":
  8839. if r.TryDecodeAsNil() {
  8840. x.S = ""
  8841. } else {
  8842. x.S = (string)(string(r.DecodeStringAsBytes()))
  8843. }
  8844. case "I":
  8845. if r.TryDecodeAsNil() {
  8846. x.I = 0
  8847. } else {
  8848. x.I = (int64)(r.DecodeInt64())
  8849. }
  8850. case "B":
  8851. if r.TryDecodeAsNil() {
  8852. x.B = false
  8853. } else {
  8854. x.B = (bool)(r.DecodeBool())
  8855. }
  8856. default:
  8857. z.DecStructFieldNotFound(-1, yys3)
  8858. } // end switch yys3
  8859. } // end for yyj3
  8860. }
  8861. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  8862. var h codecSelfer19780
  8863. z, r := GenHelperDecoder(d)
  8864. _, _, _ = h, z, r
  8865. var yyj7 int
  8866. var yyb7 bool
  8867. var yyhl7 bool = l >= 0
  8868. yyj7++
  8869. if yyhl7 {
  8870. yyb7 = yyj7 > l
  8871. } else {
  8872. yyb7 = r.CheckBreak()
  8873. }
  8874. if yyb7 {
  8875. z.DecReadArrayEnd()
  8876. return
  8877. }
  8878. z.DecReadArrayElem()
  8879. if r.TryDecodeAsNil() {
  8880. x.S = ""
  8881. } else {
  8882. x.S = (string)(string(r.DecodeStringAsBytes()))
  8883. }
  8884. yyj7++
  8885. if yyhl7 {
  8886. yyb7 = yyj7 > l
  8887. } else {
  8888. yyb7 = r.CheckBreak()
  8889. }
  8890. if yyb7 {
  8891. z.DecReadArrayEnd()
  8892. return
  8893. }
  8894. z.DecReadArrayElem()
  8895. if r.TryDecodeAsNil() {
  8896. x.I = 0
  8897. } else {
  8898. x.I = (int64)(r.DecodeInt64())
  8899. }
  8900. yyj7++
  8901. if yyhl7 {
  8902. yyb7 = yyj7 > l
  8903. } else {
  8904. yyb7 = r.CheckBreak()
  8905. }
  8906. if yyb7 {
  8907. z.DecReadArrayEnd()
  8908. return
  8909. }
  8910. z.DecReadArrayElem()
  8911. if r.TryDecodeAsNil() {
  8912. x.B = false
  8913. } else {
  8914. x.B = (bool)(r.DecodeBool())
  8915. }
  8916. for {
  8917. yyj7++
  8918. if yyhl7 {
  8919. yyb7 = yyj7 > l
  8920. } else {
  8921. yyb7 = r.CheckBreak()
  8922. }
  8923. if yyb7 {
  8924. break
  8925. }
  8926. z.DecReadArrayElem()
  8927. z.DecStructFieldNotFound(yyj7-1, "")
  8928. }
  8929. }
  8930. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  8931. var h codecSelfer19780
  8932. z, r := GenHelperEncoder(e)
  8933. _, _, _ = h, z, r
  8934. if x == nil {
  8935. r.EncodeNil()
  8936. } else { // checkNil=true
  8937. yysep2 := !z.EncBinary()
  8938. yy2arr2 := z.EncBasicHandle().StructToArray
  8939. _, _ = yysep2, yy2arr2
  8940. const yyr2 bool = false // struct tag has 'toArray'
  8941. if yyr2 || yy2arr2 {
  8942. z.EncWriteArrayStart(3)
  8943. z.EncWriteArrayElem()
  8944. if z.EncBasicHandle().StringToRaw {
  8945. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8946. } else {
  8947. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8948. }
  8949. z.EncWriteArrayElem()
  8950. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8951. z.EncWriteArrayElem()
  8952. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8953. z.EncWriteArrayEnd()
  8954. } else {
  8955. z.EncWriteMapStart(3)
  8956. z.EncWriteMapElemKey()
  8957. if z.IsJSONHandle() {
  8958. z.WriteStr("\"S\"")
  8959. } else {
  8960. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8961. }
  8962. z.EncWriteMapElemValue()
  8963. if z.EncBasicHandle().StringToRaw {
  8964. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8965. } else {
  8966. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8967. }
  8968. z.EncWriteMapElemKey()
  8969. if z.IsJSONHandle() {
  8970. z.WriteStr("\"I\"")
  8971. } else {
  8972. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8973. }
  8974. z.EncWriteMapElemValue()
  8975. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8976. z.EncWriteMapElemKey()
  8977. if z.IsJSONHandle() {
  8978. z.WriteStr("\"B\"")
  8979. } else {
  8980. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8981. }
  8982. z.EncWriteMapElemValue()
  8983. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8984. z.EncWriteMapEnd()
  8985. }
  8986. } // checkNil=true
  8987. }
  8988. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  8989. var h codecSelfer19780
  8990. z, r := GenHelperDecoder(d)
  8991. _, _, _ = h, z, r
  8992. yyct2 := r.ContainerType()
  8993. if yyct2 == codecSelferValueTypeMap19780 {
  8994. yyl2 := z.DecReadMapStart()
  8995. if yyl2 == 0 {
  8996. } else {
  8997. x.codecDecodeSelfFromMap(yyl2, d)
  8998. }
  8999. z.DecReadMapEnd()
  9000. } else if yyct2 == codecSelferValueTypeArray19780 {
  9001. yyl2 := z.DecReadArrayStart()
  9002. if yyl2 != 0 {
  9003. x.codecDecodeSelfFromArray(yyl2, d)
  9004. }
  9005. z.DecReadArrayEnd()
  9006. } else {
  9007. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9008. }
  9009. }
  9010. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  9011. var h codecSelfer19780
  9012. z, r := GenHelperDecoder(d)
  9013. _, _, _ = h, z, r
  9014. var yyhl3 bool = l >= 0
  9015. for yyj3 := 0; ; yyj3++ {
  9016. if yyhl3 {
  9017. if yyj3 >= l {
  9018. break
  9019. }
  9020. } else {
  9021. if r.CheckBreak() {
  9022. break
  9023. }
  9024. }
  9025. z.DecReadMapElemKey()
  9026. yys3 := z.StringView(r.DecodeStringAsBytes())
  9027. z.DecReadMapElemValue()
  9028. switch yys3 {
  9029. case "S":
  9030. if r.TryDecodeAsNil() {
  9031. x.testSelfExtHelper.S = ""
  9032. } else {
  9033. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  9034. }
  9035. case "I":
  9036. if r.TryDecodeAsNil() {
  9037. x.testSelfExtHelper.I = 0
  9038. } else {
  9039. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  9040. }
  9041. case "B":
  9042. if r.TryDecodeAsNil() {
  9043. x.testSelfExtHelper.B = false
  9044. } else {
  9045. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  9046. }
  9047. default:
  9048. z.DecStructFieldNotFound(-1, yys3)
  9049. } // end switch yys3
  9050. } // end for yyj3
  9051. }
  9052. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  9053. var h codecSelfer19780
  9054. z, r := GenHelperDecoder(d)
  9055. _, _, _ = h, z, r
  9056. var yyj7 int
  9057. var yyb7 bool
  9058. var yyhl7 bool = l >= 0
  9059. yyj7++
  9060. if yyhl7 {
  9061. yyb7 = yyj7 > l
  9062. } else {
  9063. yyb7 = r.CheckBreak()
  9064. }
  9065. if yyb7 {
  9066. z.DecReadArrayEnd()
  9067. return
  9068. }
  9069. z.DecReadArrayElem()
  9070. if r.TryDecodeAsNil() {
  9071. x.testSelfExtHelper.S = ""
  9072. } else {
  9073. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  9074. }
  9075. yyj7++
  9076. if yyhl7 {
  9077. yyb7 = yyj7 > l
  9078. } else {
  9079. yyb7 = r.CheckBreak()
  9080. }
  9081. if yyb7 {
  9082. z.DecReadArrayEnd()
  9083. return
  9084. }
  9085. z.DecReadArrayElem()
  9086. if r.TryDecodeAsNil() {
  9087. x.testSelfExtHelper.I = 0
  9088. } else {
  9089. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  9090. }
  9091. yyj7++
  9092. if yyhl7 {
  9093. yyb7 = yyj7 > l
  9094. } else {
  9095. yyb7 = r.CheckBreak()
  9096. }
  9097. if yyb7 {
  9098. z.DecReadArrayEnd()
  9099. return
  9100. }
  9101. z.DecReadArrayElem()
  9102. if r.TryDecodeAsNil() {
  9103. x.testSelfExtHelper.B = false
  9104. } else {
  9105. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  9106. }
  9107. for {
  9108. yyj7++
  9109. if yyhl7 {
  9110. yyb7 = yyj7 > l
  9111. } else {
  9112. yyb7 = r.CheckBreak()
  9113. }
  9114. if yyb7 {
  9115. break
  9116. }
  9117. z.DecReadArrayElem()
  9118. z.DecStructFieldNotFound(yyj7-1, "")
  9119. }
  9120. }
  9121. func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
  9122. var h codecSelfer19780
  9123. z, r := GenHelperEncoder(e)
  9124. _, _, _ = h, z, r
  9125. if x == nil {
  9126. r.EncodeNil()
  9127. } else { // checkNil=true
  9128. yysep2 := !z.EncBinary()
  9129. yy2arr2 := z.EncBasicHandle().StructToArray
  9130. _, _ = yysep2, yy2arr2
  9131. const yyr2 bool = false // struct tag has 'toArray'
  9132. if yyr2 || yy2arr2 {
  9133. z.EncWriteArrayStart(2)
  9134. z.EncWriteArrayElem()
  9135. if z.EncBasicHandle().StringToRaw {
  9136. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  9137. } else {
  9138. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  9139. }
  9140. z.EncWriteArrayElem()
  9141. r.EncodeBool(bool(x.O))
  9142. z.EncWriteArrayEnd()
  9143. } else {
  9144. z.EncWriteMapStart(2)
  9145. z.EncWriteMapElemKey()
  9146. if z.IsJSONHandle() {
  9147. z.WriteStr("\"M\"")
  9148. } else {
  9149. r.EncodeStringEnc(codecSelferCcUTF819780, `M`)
  9150. }
  9151. z.EncWriteMapElemValue()
  9152. if z.EncBasicHandle().StringToRaw {
  9153. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  9154. } else {
  9155. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  9156. }
  9157. z.EncWriteMapElemKey()
  9158. if z.IsJSONHandle() {
  9159. z.WriteStr("\"O\"")
  9160. } else {
  9161. r.EncodeStringEnc(codecSelferCcUTF819780, `O`)
  9162. }
  9163. z.EncWriteMapElemValue()
  9164. r.EncodeBool(bool(x.O))
  9165. z.EncWriteMapEnd()
  9166. }
  9167. } // checkNil=true
  9168. }
  9169. func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
  9170. var h codecSelfer19780
  9171. z, r := GenHelperDecoder(d)
  9172. _, _, _ = h, z, r
  9173. yyct2 := r.ContainerType()
  9174. if yyct2 == codecSelferValueTypeMap19780 {
  9175. yyl2 := z.DecReadMapStart()
  9176. if yyl2 == 0 {
  9177. } else {
  9178. x.codecDecodeSelfFromMap(yyl2, d)
  9179. }
  9180. z.DecReadMapEnd()
  9181. } else if yyct2 == codecSelferValueTypeArray19780 {
  9182. yyl2 := z.DecReadArrayStart()
  9183. if yyl2 != 0 {
  9184. x.codecDecodeSelfFromArray(yyl2, d)
  9185. }
  9186. z.DecReadArrayEnd()
  9187. } else {
  9188. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9189. }
  9190. }
  9191. func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
  9192. var h codecSelfer19780
  9193. z, r := GenHelperDecoder(d)
  9194. _, _, _ = h, z, r
  9195. var yyhl3 bool = l >= 0
  9196. for yyj3 := 0; ; yyj3++ {
  9197. if yyhl3 {
  9198. if yyj3 >= l {
  9199. break
  9200. }
  9201. } else {
  9202. if r.CheckBreak() {
  9203. break
  9204. }
  9205. }
  9206. z.DecReadMapElemKey()
  9207. yys3 := z.StringView(r.DecodeStringAsBytes())
  9208. z.DecReadMapElemValue()
  9209. switch yys3 {
  9210. case "M":
  9211. if r.TryDecodeAsNil() {
  9212. x.M = ""
  9213. } else {
  9214. x.M = (string)(string(r.DecodeStringAsBytes()))
  9215. }
  9216. case "O":
  9217. if r.TryDecodeAsNil() {
  9218. x.O = false
  9219. } else {
  9220. x.O = (bool)(r.DecodeBool())
  9221. }
  9222. default:
  9223. z.DecStructFieldNotFound(-1, yys3)
  9224. } // end switch yys3
  9225. } // end for yyj3
  9226. }
  9227. func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
  9228. var h codecSelfer19780
  9229. z, r := GenHelperDecoder(d)
  9230. _, _, _ = h, z, r
  9231. var yyj6 int
  9232. var yyb6 bool
  9233. var yyhl6 bool = l >= 0
  9234. yyj6++
  9235. if yyhl6 {
  9236. yyb6 = yyj6 > l
  9237. } else {
  9238. yyb6 = r.CheckBreak()
  9239. }
  9240. if yyb6 {
  9241. z.DecReadArrayEnd()
  9242. return
  9243. }
  9244. z.DecReadArrayElem()
  9245. if r.TryDecodeAsNil() {
  9246. x.M = ""
  9247. } else {
  9248. x.M = (string)(string(r.DecodeStringAsBytes()))
  9249. }
  9250. yyj6++
  9251. if yyhl6 {
  9252. yyb6 = yyj6 > l
  9253. } else {
  9254. yyb6 = r.CheckBreak()
  9255. }
  9256. if yyb6 {
  9257. z.DecReadArrayEnd()
  9258. return
  9259. }
  9260. z.DecReadArrayElem()
  9261. if r.TryDecodeAsNil() {
  9262. x.O = false
  9263. } else {
  9264. x.O = (bool)(r.DecodeBool())
  9265. }
  9266. for {
  9267. yyj6++
  9268. if yyhl6 {
  9269. yyb6 = yyj6 > l
  9270. } else {
  9271. yyb6 = r.CheckBreak()
  9272. }
  9273. if yyb6 {
  9274. break
  9275. }
  9276. z.DecReadArrayElem()
  9277. z.DecStructFieldNotFound(yyj6-1, "")
  9278. }
  9279. }
  9280. func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
  9281. var h codecSelfer19780
  9282. z, r := GenHelperEncoder(e)
  9283. _, _, _ = h, z, r
  9284. if x == nil {
  9285. r.EncodeNil()
  9286. } else { // checkNil=true
  9287. yysep2 := !z.EncBinary()
  9288. yy2arr2 := z.EncBasicHandle().StructToArray
  9289. _, _ = yysep2, yy2arr2
  9290. const yyr2 bool = false // struct tag has 'toArray'
  9291. if yyr2 || yy2arr2 {
  9292. z.EncWriteArrayStart(2)
  9293. z.EncWriteArrayElem()
  9294. z.EncFallback(x.A)
  9295. z.EncWriteArrayElem()
  9296. z.EncFallback(x.B)
  9297. z.EncWriteArrayEnd()
  9298. } else {
  9299. z.EncWriteMapStart(2)
  9300. z.EncWriteMapElemKey()
  9301. if z.IsJSONHandle() {
  9302. z.WriteStr("\"A\"")
  9303. } else {
  9304. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  9305. }
  9306. z.EncWriteMapElemValue()
  9307. z.EncFallback(x.A)
  9308. z.EncWriteMapElemKey()
  9309. if z.IsJSONHandle() {
  9310. z.WriteStr("\"B\"")
  9311. } else {
  9312. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9313. }
  9314. z.EncWriteMapElemValue()
  9315. z.EncFallback(x.B)
  9316. z.EncWriteMapEnd()
  9317. }
  9318. } // checkNil=true
  9319. }
  9320. func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
  9321. var h codecSelfer19780
  9322. z, r := GenHelperDecoder(d)
  9323. _, _, _ = h, z, r
  9324. yyct2 := r.ContainerType()
  9325. if yyct2 == codecSelferValueTypeMap19780 {
  9326. yyl2 := z.DecReadMapStart()
  9327. if yyl2 == 0 {
  9328. } else {
  9329. x.codecDecodeSelfFromMap(yyl2, d)
  9330. }
  9331. z.DecReadMapEnd()
  9332. } else if yyct2 == codecSelferValueTypeArray19780 {
  9333. yyl2 := z.DecReadArrayStart()
  9334. if yyl2 != 0 {
  9335. x.codecDecodeSelfFromArray(yyl2, d)
  9336. }
  9337. z.DecReadArrayEnd()
  9338. } else {
  9339. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9340. }
  9341. }
  9342. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
  9343. var h codecSelfer19780
  9344. z, r := GenHelperDecoder(d)
  9345. _, _, _ = h, z, r
  9346. var yyhl3 bool = l >= 0
  9347. for yyj3 := 0; ; yyj3++ {
  9348. if yyhl3 {
  9349. if yyj3 >= l {
  9350. break
  9351. }
  9352. } else {
  9353. if r.CheckBreak() {
  9354. break
  9355. }
  9356. }
  9357. z.DecReadMapElemKey()
  9358. yys3 := z.StringView(r.DecodeStringAsBytes())
  9359. z.DecReadMapElemValue()
  9360. switch yys3 {
  9361. case "A":
  9362. if r.TryDecodeAsNil() {
  9363. x.A = nil
  9364. } else {
  9365. z.DecFallback(&x.A, true)
  9366. }
  9367. case "B":
  9368. if r.TryDecodeAsNil() {
  9369. x.B = nil
  9370. } else {
  9371. z.DecFallback(&x.B, true)
  9372. }
  9373. default:
  9374. z.DecStructFieldNotFound(-1, yys3)
  9375. } // end switch yys3
  9376. } // end for yyj3
  9377. }
  9378. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
  9379. var h codecSelfer19780
  9380. z, r := GenHelperDecoder(d)
  9381. _, _, _ = h, z, r
  9382. var yyj8 int
  9383. var yyb8 bool
  9384. var yyhl8 bool = l >= 0
  9385. yyj8++
  9386. if yyhl8 {
  9387. yyb8 = yyj8 > l
  9388. } else {
  9389. yyb8 = r.CheckBreak()
  9390. }
  9391. if yyb8 {
  9392. z.DecReadArrayEnd()
  9393. return
  9394. }
  9395. z.DecReadArrayElem()
  9396. if r.TryDecodeAsNil() {
  9397. x.A = nil
  9398. } else {
  9399. z.DecFallback(&x.A, true)
  9400. }
  9401. yyj8++
  9402. if yyhl8 {
  9403. yyb8 = yyj8 > l
  9404. } else {
  9405. yyb8 = r.CheckBreak()
  9406. }
  9407. if yyb8 {
  9408. z.DecReadArrayEnd()
  9409. return
  9410. }
  9411. z.DecReadArrayElem()
  9412. if r.TryDecodeAsNil() {
  9413. x.B = nil
  9414. } else {
  9415. z.DecFallback(&x.B, true)
  9416. }
  9417. for {
  9418. yyj8++
  9419. if yyhl8 {
  9420. yyb8 = yyj8 > l
  9421. } else {
  9422. yyb8 = r.CheckBreak()
  9423. }
  9424. if yyb8 {
  9425. break
  9426. }
  9427. z.DecReadArrayElem()
  9428. z.DecStructFieldNotFound(yyj8-1, "")
  9429. }
  9430. }
  9431. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  9432. var h codecSelfer19780
  9433. z, r := GenHelperEncoder(e)
  9434. _, _, _ = h, z, r
  9435. if x == nil {
  9436. r.EncodeNil()
  9437. } else { // checkNil=true
  9438. yysep2 := !z.EncBinary()
  9439. yy2arr2 := z.EncBasicHandle().StructToArray
  9440. _, _ = yysep2, yy2arr2
  9441. const yyr2 bool = false // struct tag has 'toArray'
  9442. var yyq2 = [77]bool{ // should field at this index be written?
  9443. x.S != "", // S
  9444. x.I64 != 0, // I64
  9445. x.I32 != 0, // I32
  9446. x.I16 != 0, // I16
  9447. x.I8 != 0, // I8
  9448. x.I64n != 0, // I64n
  9449. x.I32n != 0, // I32n
  9450. x.I16n != 0, // I16n
  9451. x.I8n != 0, // I8n
  9452. x.Ui64 != 0, // Ui64
  9453. x.Ui32 != 0, // Ui32
  9454. x.Ui16 != 0, // Ui16
  9455. x.Ui8 != 0, // Ui8
  9456. x.F64 != 0, // F64
  9457. x.F32 != 0, // F32
  9458. x.B, // B
  9459. x.By != 0, // By
  9460. len(x.Sslice) != 0, // Sslice
  9461. len(x.I64slice) != 0, // I64slice
  9462. len(x.I16slice) != 0, // I16slice
  9463. len(x.Ui64slice) != 0, // Ui64slice
  9464. len(x.Ui8slice) != 0, // Ui8slice
  9465. len(x.Bslice) != 0, // Bslice
  9466. len(x.Byslice) != 0, // Byslice
  9467. len(x.BytesSlice) != 0, // BytesSlice
  9468. len(x.Iptrslice) != 0, // Iptrslice
  9469. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  9470. len(x.WrapSliceString) != 0, // WrapSliceString
  9471. len(x.Msi64) != 0, // Msi64
  9472. len(x.Msbytes) != 0, // Msbytes
  9473. 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
  9474. len(x.SstrUi64T) != 0, // SstrUi64T
  9475. len(x.MstrUi64T) != 0, // MstrUi64T
  9476. x.AS != "", // AS
  9477. x.AI64 != 0, // AI64
  9478. x.AI16 != 0, // AI16
  9479. x.AUi64 != 0, // AUi64
  9480. len(x.ASslice) != 0, // ASslice
  9481. len(x.AI64slice) != 0, // AI64slice
  9482. len(x.AUi64slice) != 0, // AUi64slice
  9483. len(x.AF64slice) != 0, // AF64slice
  9484. len(x.AF32slice) != 0, // AF32slice
  9485. len(x.AMSU16) != 0, // AMSU16
  9486. len(x.AI64arr0) != 0, // AI64arr0
  9487. len(x.AI64slice0) != 0, // AI64slice0
  9488. len(x.AUi64sliceN) != 0, // AUi64sliceN
  9489. len(x.AMSU16N) != 0, // AMSU16N
  9490. len(x.AMSU16E) != 0, // AMSU16E
  9491. 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
  9492. len(x.Nmap) != 0, // Nmap
  9493. len(x.Nslice) != 0, // Nslice
  9494. x.Nint64 != nil, // Nint64
  9495. len(x.Chstr) != 0, // Chstr
  9496. len(x.Mis) != 0, // Mis
  9497. len(x.Mbu64) != 0, // Mbu64
  9498. len(x.Miwu64s) != 0, // Miwu64s
  9499. len(x.Mfwss) != 0, // Mfwss
  9500. len(x.Mf32wss) != 0, // Mf32wss
  9501. len(x.Mui2wss) != 0, // Mui2wss
  9502. len(x.Msu2wss) != 0, // Msu2wss
  9503. x.Ci64 != 0, // Ci64
  9504. len(x.Swrapbytes) != 0, // Swrapbytes
  9505. len(x.Swrapuint8) != 0, // Swrapuint8
  9506. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  9507. len(x.Ui64array) != 0, // Ui64array
  9508. len(x.Ui64slicearray) != 0, // Ui64slicearray
  9509. len(x.SintfAarray) != 0, // SintfAarray
  9510. len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
  9511. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  9512. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  9513. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  9514. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  9515. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  9516. len(x.Mtsptr) != 0, // Mtsptr
  9517. len(x.Mts) != 0, // Mts
  9518. len(x.Its) != 0, // Its
  9519. x.Nteststruc != nil, // Nteststruc
  9520. }
  9521. _ = yyq2
  9522. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  9523. var yyn71 bool = x.AnonInTestStrucIntf == nil
  9524. var yyn72 bool = x.AnonInTestStrucIntf == nil
  9525. var yyn73 bool = x.AnonInTestStrucIntf == nil
  9526. var yyn74 bool = x.AnonInTestStrucIntf == nil
  9527. var yyn75 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  9528. var yyn79 bool = x.Nteststruc == nil
  9529. if yyr2 || yy2arr2 {
  9530. z.EncWriteArrayStart(77)
  9531. z.EncWriteArrayElem()
  9532. if yyq2[0] {
  9533. if z.EncBasicHandle().StringToRaw {
  9534. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9535. } else {
  9536. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9537. }
  9538. } else {
  9539. if z.EncBasicHandle().StringToRaw {
  9540. r.EncodeStringBytesRaw([]byte{})
  9541. } else {
  9542. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9543. }
  9544. }
  9545. z.EncWriteArrayElem()
  9546. if yyq2[1] {
  9547. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9548. } else {
  9549. r.EncodeInt(0)
  9550. }
  9551. z.EncWriteArrayElem()
  9552. if yyq2[2] {
  9553. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9554. } else {
  9555. r.EncodeInt(0)
  9556. }
  9557. z.EncWriteArrayElem()
  9558. if yyq2[3] {
  9559. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9560. } else {
  9561. r.EncodeInt(0)
  9562. }
  9563. z.EncWriteArrayElem()
  9564. if yyq2[4] {
  9565. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9566. } else {
  9567. r.EncodeInt(0)
  9568. }
  9569. z.EncWriteArrayElem()
  9570. if yyq2[5] {
  9571. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9572. } else {
  9573. r.EncodeInt(0)
  9574. }
  9575. z.EncWriteArrayElem()
  9576. if yyq2[6] {
  9577. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9578. } else {
  9579. r.EncodeInt(0)
  9580. }
  9581. z.EncWriteArrayElem()
  9582. if yyq2[7] {
  9583. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9584. } else {
  9585. r.EncodeInt(0)
  9586. }
  9587. z.EncWriteArrayElem()
  9588. if yyq2[8] {
  9589. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9590. } else {
  9591. r.EncodeInt(0)
  9592. }
  9593. z.EncWriteArrayElem()
  9594. if yyq2[9] {
  9595. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9596. } else {
  9597. r.EncodeUint(0)
  9598. }
  9599. z.EncWriteArrayElem()
  9600. if yyq2[10] {
  9601. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9602. } else {
  9603. r.EncodeUint(0)
  9604. }
  9605. z.EncWriteArrayElem()
  9606. if yyq2[11] {
  9607. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9608. } else {
  9609. r.EncodeUint(0)
  9610. }
  9611. z.EncWriteArrayElem()
  9612. if yyq2[12] {
  9613. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9614. } else {
  9615. r.EncodeUint(0)
  9616. }
  9617. z.EncWriteArrayElem()
  9618. if yyq2[13] {
  9619. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9620. } else {
  9621. r.EncodeFloat64(0)
  9622. }
  9623. z.EncWriteArrayElem()
  9624. if yyq2[14] {
  9625. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9626. } else {
  9627. r.EncodeFloat32(0)
  9628. }
  9629. z.EncWriteArrayElem()
  9630. if yyq2[15] {
  9631. r.EncodeBool(bool(x.TestStrucCommon.B))
  9632. } else {
  9633. r.EncodeBool(false)
  9634. }
  9635. z.EncWriteArrayElem()
  9636. if yyq2[16] {
  9637. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9638. } else {
  9639. r.EncodeUint(0)
  9640. }
  9641. z.EncWriteArrayElem()
  9642. if yyq2[17] {
  9643. if x.TestStrucCommon.Sslice == nil {
  9644. r.EncodeNil()
  9645. } else {
  9646. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9647. } // end block: if x.TestStrucCommon.Sslice slice == nil
  9648. } else {
  9649. r.EncodeNil()
  9650. }
  9651. z.EncWriteArrayElem()
  9652. if yyq2[18] {
  9653. if x.TestStrucCommon.I64slice == nil {
  9654. r.EncodeNil()
  9655. } else {
  9656. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9657. } // end block: if x.TestStrucCommon.I64slice slice == nil
  9658. } else {
  9659. r.EncodeNil()
  9660. }
  9661. z.EncWriteArrayElem()
  9662. if yyq2[19] {
  9663. if x.TestStrucCommon.I16slice == nil {
  9664. r.EncodeNil()
  9665. } else {
  9666. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9667. } // end block: if x.TestStrucCommon.I16slice slice == nil
  9668. } else {
  9669. r.EncodeNil()
  9670. }
  9671. z.EncWriteArrayElem()
  9672. if yyq2[20] {
  9673. if x.TestStrucCommon.Ui64slice == nil {
  9674. r.EncodeNil()
  9675. } else {
  9676. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9677. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  9678. } else {
  9679. r.EncodeNil()
  9680. }
  9681. z.EncWriteArrayElem()
  9682. if yyq2[21] {
  9683. if x.TestStrucCommon.Ui8slice == nil {
  9684. r.EncodeNil()
  9685. } else {
  9686. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9687. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  9688. } else {
  9689. r.EncodeNil()
  9690. }
  9691. z.EncWriteArrayElem()
  9692. if yyq2[22] {
  9693. if x.TestStrucCommon.Bslice == nil {
  9694. r.EncodeNil()
  9695. } else {
  9696. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9697. } // end block: if x.TestStrucCommon.Bslice slice == nil
  9698. } else {
  9699. r.EncodeNil()
  9700. }
  9701. z.EncWriteArrayElem()
  9702. if yyq2[23] {
  9703. if x.TestStrucCommon.Byslice == nil {
  9704. r.EncodeNil()
  9705. } else {
  9706. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9707. } // end block: if x.TestStrucCommon.Byslice slice == nil
  9708. } else {
  9709. r.EncodeNil()
  9710. }
  9711. z.EncWriteArrayElem()
  9712. if yyq2[24] {
  9713. if x.TestStrucCommon.BytesSlice == nil {
  9714. r.EncodeNil()
  9715. } else {
  9716. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9717. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  9718. } else {
  9719. r.EncodeNil()
  9720. }
  9721. z.EncWriteArrayElem()
  9722. if yyq2[25] {
  9723. if x.TestStrucCommon.Iptrslice == nil {
  9724. r.EncodeNil()
  9725. } else {
  9726. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9727. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  9728. } else {
  9729. r.EncodeNil()
  9730. }
  9731. z.EncWriteArrayElem()
  9732. if yyq2[26] {
  9733. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9734. } else {
  9735. r.EncodeNil()
  9736. }
  9737. z.EncWriteArrayElem()
  9738. if yyq2[27] {
  9739. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9740. } else {
  9741. r.EncodeNil()
  9742. }
  9743. z.EncWriteArrayElem()
  9744. if yyq2[28] {
  9745. if x.TestStrucCommon.Msi64 == nil {
  9746. r.EncodeNil()
  9747. } else {
  9748. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9749. } // end block: if x.TestStrucCommon.Msi64 map == nil
  9750. } else {
  9751. r.EncodeNil()
  9752. }
  9753. z.EncWriteArrayElem()
  9754. if yyq2[29] {
  9755. if x.TestStrucCommon.Msbytes == nil {
  9756. r.EncodeNil()
  9757. } else {
  9758. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9759. } // end block: if x.TestStrucCommon.Msbytes map == nil
  9760. } else {
  9761. r.EncodeNil()
  9762. }
  9763. z.EncWriteArrayElem()
  9764. if yyq2[30] {
  9765. yy110 := &x.TestStrucCommon.Simplef
  9766. yy110.CodecEncodeSelf(e)
  9767. } else {
  9768. r.EncodeNil()
  9769. }
  9770. z.EncWriteArrayElem()
  9771. if yyq2[31] {
  9772. if x.TestStrucCommon.SstrUi64T == nil {
  9773. r.EncodeNil()
  9774. } else {
  9775. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9776. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  9777. } else {
  9778. r.EncodeNil()
  9779. }
  9780. z.EncWriteArrayElem()
  9781. if yyq2[32] {
  9782. if x.TestStrucCommon.MstrUi64T == nil {
  9783. r.EncodeNil()
  9784. } else {
  9785. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9786. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  9787. } else {
  9788. r.EncodeNil()
  9789. }
  9790. z.EncWriteArrayElem()
  9791. if yyq2[33] {
  9792. if z.EncBasicHandle().StringToRaw {
  9793. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9794. } else {
  9795. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9796. }
  9797. } else {
  9798. if z.EncBasicHandle().StringToRaw {
  9799. r.EncodeStringBytesRaw([]byte{})
  9800. } else {
  9801. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9802. }
  9803. }
  9804. z.EncWriteArrayElem()
  9805. if yyq2[34] {
  9806. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9807. } else {
  9808. r.EncodeInt(0)
  9809. }
  9810. z.EncWriteArrayElem()
  9811. if yyq2[35] {
  9812. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9813. } else {
  9814. r.EncodeInt(0)
  9815. }
  9816. z.EncWriteArrayElem()
  9817. if yyq2[36] {
  9818. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9819. } else {
  9820. r.EncodeUint(0)
  9821. }
  9822. z.EncWriteArrayElem()
  9823. if yyq2[37] {
  9824. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9825. r.EncodeNil()
  9826. } else {
  9827. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9828. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9829. } else {
  9830. r.EncodeNil()
  9831. }
  9832. z.EncWriteArrayElem()
  9833. if yyq2[38] {
  9834. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9835. r.EncodeNil()
  9836. } else {
  9837. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9838. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9839. } else {
  9840. r.EncodeNil()
  9841. }
  9842. z.EncWriteArrayElem()
  9843. if yyq2[39] {
  9844. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9845. r.EncodeNil()
  9846. } else {
  9847. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9848. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9849. } else {
  9850. r.EncodeNil()
  9851. }
  9852. z.EncWriteArrayElem()
  9853. if yyq2[40] {
  9854. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9855. r.EncodeNil()
  9856. } else {
  9857. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9858. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9859. } else {
  9860. r.EncodeNil()
  9861. }
  9862. z.EncWriteArrayElem()
  9863. if yyq2[41] {
  9864. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9865. r.EncodeNil()
  9866. } else {
  9867. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9868. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9869. } else {
  9870. r.EncodeNil()
  9871. }
  9872. z.EncWriteArrayElem()
  9873. if yyq2[42] {
  9874. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9875. r.EncodeNil()
  9876. } else {
  9877. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9878. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9879. } else {
  9880. r.EncodeNil()
  9881. }
  9882. z.EncWriteArrayElem()
  9883. if yyq2[43] {
  9884. yy124 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9885. h.encArray0int64((*[0]int64)(yy124), e)
  9886. } else {
  9887. r.EncodeNil()
  9888. }
  9889. z.EncWriteArrayElem()
  9890. if yyq2[44] {
  9891. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9892. r.EncodeNil()
  9893. } else {
  9894. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9895. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9896. } else {
  9897. r.EncodeNil()
  9898. }
  9899. z.EncWriteArrayElem()
  9900. if yyq2[45] {
  9901. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9902. r.EncodeNil()
  9903. } else {
  9904. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9905. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9906. } else {
  9907. r.EncodeNil()
  9908. }
  9909. z.EncWriteArrayElem()
  9910. if yyq2[46] {
  9911. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9912. r.EncodeNil()
  9913. } else {
  9914. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9915. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9916. } else {
  9917. r.EncodeNil()
  9918. }
  9919. z.EncWriteArrayElem()
  9920. if yyq2[47] {
  9921. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  9922. r.EncodeNil()
  9923. } else {
  9924. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9925. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  9926. } else {
  9927. r.EncodeNil()
  9928. }
  9929. z.EncWriteArrayElem()
  9930. if yyq2[48] {
  9931. yy130 := &x.TestStrucCommon.NotAnon
  9932. yy130.CodecEncodeSelf(e)
  9933. } else {
  9934. r.EncodeNil()
  9935. }
  9936. z.EncWriteArrayElem()
  9937. if yyq2[49] {
  9938. if x.TestStrucCommon.Nmap == nil {
  9939. r.EncodeNil()
  9940. } else {
  9941. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9942. } // end block: if x.TestStrucCommon.Nmap map == nil
  9943. } else {
  9944. r.EncodeNil()
  9945. }
  9946. z.EncWriteArrayElem()
  9947. if yyq2[50] {
  9948. if x.TestStrucCommon.Nslice == nil {
  9949. r.EncodeNil()
  9950. } else {
  9951. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9952. } // end block: if x.TestStrucCommon.Nslice slice == nil
  9953. } else {
  9954. r.EncodeNil()
  9955. }
  9956. if yyn54 {
  9957. z.EncWriteArrayElem()
  9958. r.EncodeNil()
  9959. } else {
  9960. z.EncWriteArrayElem()
  9961. if yyq2[51] {
  9962. yy134 := *x.TestStrucCommon.Nint64
  9963. r.EncodeInt(int64(yy134))
  9964. } else {
  9965. r.EncodeNil()
  9966. }
  9967. }
  9968. z.EncWriteArrayElem()
  9969. if yyq2[52] {
  9970. h.encChanstring((chan string)(x.Chstr), e)
  9971. } else {
  9972. r.EncodeNil()
  9973. }
  9974. z.EncWriteArrayElem()
  9975. if yyq2[53] {
  9976. if x.Mis == nil {
  9977. r.EncodeNil()
  9978. } else {
  9979. z.F.EncMapIntStringV(x.Mis, e)
  9980. } // end block: if x.Mis map == nil
  9981. } else {
  9982. r.EncodeNil()
  9983. }
  9984. z.EncWriteArrayElem()
  9985. if yyq2[54] {
  9986. if x.Mbu64 == nil {
  9987. r.EncodeNil()
  9988. } else {
  9989. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9990. } // end block: if x.Mbu64 map == nil
  9991. } else {
  9992. r.EncodeNil()
  9993. }
  9994. z.EncWriteArrayElem()
  9995. if yyq2[55] {
  9996. if x.Miwu64s == nil {
  9997. r.EncodeNil()
  9998. } else {
  9999. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  10000. } // end block: if x.Miwu64s map == nil
  10001. } else {
  10002. r.EncodeNil()
  10003. }
  10004. z.EncWriteArrayElem()
  10005. if yyq2[56] {
  10006. if x.Mfwss == nil {
  10007. r.EncodeNil()
  10008. } else {
  10009. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  10010. } // end block: if x.Mfwss map == nil
  10011. } else {
  10012. r.EncodeNil()
  10013. }
  10014. z.EncWriteArrayElem()
  10015. if yyq2[57] {
  10016. if x.Mf32wss == nil {
  10017. r.EncodeNil()
  10018. } else {
  10019. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  10020. } // end block: if x.Mf32wss map == nil
  10021. } else {
  10022. r.EncodeNil()
  10023. }
  10024. z.EncWriteArrayElem()
  10025. if yyq2[58] {
  10026. if x.Mui2wss == nil {
  10027. r.EncodeNil()
  10028. } else {
  10029. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  10030. } // end block: if x.Mui2wss map == nil
  10031. } else {
  10032. r.EncodeNil()
  10033. }
  10034. z.EncWriteArrayElem()
  10035. if yyq2[59] {
  10036. if x.Msu2wss == nil {
  10037. r.EncodeNil()
  10038. } else {
  10039. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  10040. } // end block: if x.Msu2wss map == nil
  10041. } else {
  10042. r.EncodeNil()
  10043. }
  10044. z.EncWriteArrayElem()
  10045. if yyq2[60] {
  10046. x.Ci64.CodecEncodeSelf(e)
  10047. } else {
  10048. r.EncodeInt(0)
  10049. }
  10050. z.EncWriteArrayElem()
  10051. if yyq2[61] {
  10052. if x.Swrapbytes == nil {
  10053. r.EncodeNil()
  10054. } else {
  10055. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  10056. } // end block: if x.Swrapbytes slice == nil
  10057. } else {
  10058. r.EncodeNil()
  10059. }
  10060. z.EncWriteArrayElem()
  10061. if yyq2[62] {
  10062. if x.Swrapuint8 == nil {
  10063. r.EncodeNil()
  10064. } else {
  10065. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  10066. } // end block: if x.Swrapuint8 slice == nil
  10067. } else {
  10068. r.EncodeNil()
  10069. }
  10070. z.EncWriteArrayElem()
  10071. if yyq2[63] {
  10072. yy147 := &x.ArrStrUi64T
  10073. h.encArray4stringUint64T((*[4]stringUint64T)(yy147), e)
  10074. } else {
  10075. r.EncodeNil()
  10076. }
  10077. z.EncWriteArrayElem()
  10078. if yyq2[64] {
  10079. yy149 := &x.Ui64array
  10080. h.encArray4uint64((*[4]uint64)(yy149), e)
  10081. } else {
  10082. r.EncodeNil()
  10083. }
  10084. z.EncWriteArrayElem()
  10085. if yyq2[65] {
  10086. if x.Ui64slicearray == nil {
  10087. r.EncodeNil()
  10088. } else {
  10089. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  10090. } // end block: if x.Ui64slicearray slice == nil
  10091. } else {
  10092. r.EncodeNil()
  10093. }
  10094. z.EncWriteArrayElem()
  10095. if yyq2[66] {
  10096. if x.SintfAarray == nil {
  10097. r.EncodeNil()
  10098. } else {
  10099. z.F.EncSliceIntfV(x.SintfAarray, e)
  10100. } // end block: if x.SintfAarray slice == nil
  10101. } else {
  10102. r.EncodeNil()
  10103. }
  10104. z.EncWriteArrayElem()
  10105. if yyq2[67] {
  10106. if x.MstrUi64TSelf == nil {
  10107. r.EncodeNil()
  10108. } else {
  10109. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  10110. } // end block: if x.MstrUi64TSelf map == nil
  10111. } else {
  10112. r.EncodeNil()
  10113. }
  10114. if yyn71 {
  10115. z.EncWriteArrayElem()
  10116. r.EncodeNil()
  10117. } else {
  10118. z.EncWriteArrayElem()
  10119. if yyq2[68] {
  10120. if x.AnonInTestStrucIntf.Islice == nil {
  10121. r.EncodeNil()
  10122. } else {
  10123. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  10124. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  10125. } else {
  10126. r.EncodeNil()
  10127. }
  10128. }
  10129. if yyn72 {
  10130. z.EncWriteArrayElem()
  10131. r.EncodeNil()
  10132. } else {
  10133. z.EncWriteArrayElem()
  10134. if yyq2[69] {
  10135. if x.AnonInTestStrucIntf.Ms == nil {
  10136. r.EncodeNil()
  10137. } else {
  10138. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  10139. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  10140. } else {
  10141. r.EncodeNil()
  10142. }
  10143. }
  10144. if yyn73 {
  10145. z.EncWriteArrayElem()
  10146. r.EncodeNil()
  10147. } else {
  10148. z.EncWriteArrayElem()
  10149. if yyq2[70] {
  10150. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  10151. } else {
  10152. r.EncodeNil()
  10153. }
  10154. }
  10155. if yyn74 {
  10156. z.EncWriteArrayElem()
  10157. r.EncodeNil()
  10158. } else {
  10159. z.EncWriteArrayElem()
  10160. if yyq2[71] {
  10161. if !z.EncBasicHandle().TimeNotBuiltin {
  10162. r.EncodeTime(x.AnonInTestStrucIntf.T)
  10163. } else if yyxt157 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt157 != nil {
  10164. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt157)
  10165. } else if z.EncBinary() {
  10166. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  10167. } else if !z.EncBinary() && z.IsJSONHandle() {
  10168. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  10169. } else {
  10170. z.EncFallback(x.AnonInTestStrucIntf.T)
  10171. }
  10172. } else {
  10173. r.EncodeNil()
  10174. }
  10175. }
  10176. if yyn75 {
  10177. z.EncWriteArrayElem()
  10178. r.EncodeNil()
  10179. } else {
  10180. z.EncWriteArrayElem()
  10181. if yyq2[72] {
  10182. yy158 := *x.AnonInTestStrucIntf.Tptr
  10183. if !z.EncBasicHandle().TimeNotBuiltin {
  10184. r.EncodeTime(yy158)
  10185. } else if yyxt159 := z.Extension(z.I2Rtid(yy158)); yyxt159 != nil {
  10186. z.EncExtension(yy158, yyxt159)
  10187. } else if z.EncBinary() {
  10188. z.EncBinaryMarshal(yy158)
  10189. } else if !z.EncBinary() && z.IsJSONHandle() {
  10190. z.EncJSONMarshal(yy158)
  10191. } else {
  10192. z.EncFallback(yy158)
  10193. }
  10194. } else {
  10195. r.EncodeNil()
  10196. }
  10197. }
  10198. z.EncWriteArrayElem()
  10199. if yyq2[73] {
  10200. if x.Mtsptr == nil {
  10201. r.EncodeNil()
  10202. } else {
  10203. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  10204. } // end block: if x.Mtsptr map == nil
  10205. } else {
  10206. r.EncodeNil()
  10207. }
  10208. z.EncWriteArrayElem()
  10209. if yyq2[74] {
  10210. if x.Mts == nil {
  10211. r.EncodeNil()
  10212. } else {
  10213. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  10214. } // end block: if x.Mts map == nil
  10215. } else {
  10216. r.EncodeNil()
  10217. }
  10218. z.EncWriteArrayElem()
  10219. if yyq2[75] {
  10220. if x.Its == nil {
  10221. r.EncodeNil()
  10222. } else {
  10223. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  10224. } // end block: if x.Its slice == nil
  10225. } else {
  10226. r.EncodeNil()
  10227. }
  10228. if yyn79 {
  10229. z.EncWriteArrayElem()
  10230. r.EncodeNil()
  10231. } else {
  10232. z.EncWriteArrayElem()
  10233. if yyq2[76] {
  10234. x.Nteststruc.CodecEncodeSelf(e)
  10235. } else {
  10236. r.EncodeNil()
  10237. }
  10238. }
  10239. z.EncWriteArrayEnd()
  10240. } else {
  10241. var yynn2 int
  10242. for _, b := range yyq2 {
  10243. if b {
  10244. yynn2++
  10245. }
  10246. }
  10247. z.EncWriteMapStart(yynn2)
  10248. yynn2 = 0
  10249. if yyq2[0] {
  10250. z.EncWriteMapElemKey()
  10251. if z.IsJSONHandle() {
  10252. z.WriteStr("\"S\"")
  10253. } else {
  10254. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10255. }
  10256. z.EncWriteMapElemValue()
  10257. if z.EncBasicHandle().StringToRaw {
  10258. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  10259. } else {
  10260. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  10261. }
  10262. }
  10263. if yyq2[1] {
  10264. z.EncWriteMapElemKey()
  10265. if z.IsJSONHandle() {
  10266. z.WriteStr("\"I64\"")
  10267. } else {
  10268. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  10269. }
  10270. z.EncWriteMapElemValue()
  10271. r.EncodeInt(int64(x.TestStrucCommon.I64))
  10272. }
  10273. if yyq2[2] {
  10274. z.EncWriteMapElemKey()
  10275. if z.IsJSONHandle() {
  10276. z.WriteStr("\"I32\"")
  10277. } else {
  10278. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  10279. }
  10280. z.EncWriteMapElemValue()
  10281. r.EncodeInt(int64(x.TestStrucCommon.I32))
  10282. }
  10283. if yyq2[3] {
  10284. z.EncWriteMapElemKey()
  10285. if z.IsJSONHandle() {
  10286. z.WriteStr("\"I16\"")
  10287. } else {
  10288. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  10289. }
  10290. z.EncWriteMapElemValue()
  10291. r.EncodeInt(int64(x.TestStrucCommon.I16))
  10292. }
  10293. if yyq2[4] {
  10294. z.EncWriteMapElemKey()
  10295. if z.IsJSONHandle() {
  10296. z.WriteStr("\"I8\"")
  10297. } else {
  10298. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  10299. }
  10300. z.EncWriteMapElemValue()
  10301. r.EncodeInt(int64(x.TestStrucCommon.I8))
  10302. }
  10303. if yyq2[5] {
  10304. z.EncWriteMapElemKey()
  10305. if z.IsJSONHandle() {
  10306. z.WriteStr("\"I64n\"")
  10307. } else {
  10308. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  10309. }
  10310. z.EncWriteMapElemValue()
  10311. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  10312. }
  10313. if yyq2[6] {
  10314. z.EncWriteMapElemKey()
  10315. if z.IsJSONHandle() {
  10316. z.WriteStr("\"I32n\"")
  10317. } else {
  10318. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  10319. }
  10320. z.EncWriteMapElemValue()
  10321. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  10322. }
  10323. if yyq2[7] {
  10324. z.EncWriteMapElemKey()
  10325. if z.IsJSONHandle() {
  10326. z.WriteStr("\"I16n\"")
  10327. } else {
  10328. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  10329. }
  10330. z.EncWriteMapElemValue()
  10331. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  10332. }
  10333. if yyq2[8] {
  10334. z.EncWriteMapElemKey()
  10335. if z.IsJSONHandle() {
  10336. z.WriteStr("\"I8n\"")
  10337. } else {
  10338. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  10339. }
  10340. z.EncWriteMapElemValue()
  10341. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  10342. }
  10343. if yyq2[9] {
  10344. z.EncWriteMapElemKey()
  10345. if z.IsJSONHandle() {
  10346. z.WriteStr("\"Ui64\"")
  10347. } else {
  10348. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  10349. }
  10350. z.EncWriteMapElemValue()
  10351. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  10352. }
  10353. if yyq2[10] {
  10354. z.EncWriteMapElemKey()
  10355. if z.IsJSONHandle() {
  10356. z.WriteStr("\"Ui32\"")
  10357. } else {
  10358. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  10359. }
  10360. z.EncWriteMapElemValue()
  10361. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  10362. }
  10363. if yyq2[11] {
  10364. z.EncWriteMapElemKey()
  10365. if z.IsJSONHandle() {
  10366. z.WriteStr("\"Ui16\"")
  10367. } else {
  10368. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  10369. }
  10370. z.EncWriteMapElemValue()
  10371. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  10372. }
  10373. if yyq2[12] {
  10374. z.EncWriteMapElemKey()
  10375. if z.IsJSONHandle() {
  10376. z.WriteStr("\"Ui8\"")
  10377. } else {
  10378. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  10379. }
  10380. z.EncWriteMapElemValue()
  10381. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  10382. }
  10383. if yyq2[13] {
  10384. z.EncWriteMapElemKey()
  10385. if z.IsJSONHandle() {
  10386. z.WriteStr("\"F64\"")
  10387. } else {
  10388. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  10389. }
  10390. z.EncWriteMapElemValue()
  10391. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  10392. }
  10393. if yyq2[14] {
  10394. z.EncWriteMapElemKey()
  10395. if z.IsJSONHandle() {
  10396. z.WriteStr("\"F32\"")
  10397. } else {
  10398. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  10399. }
  10400. z.EncWriteMapElemValue()
  10401. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  10402. }
  10403. if yyq2[15] {
  10404. z.EncWriteMapElemKey()
  10405. if z.IsJSONHandle() {
  10406. z.WriteStr("\"B\"")
  10407. } else {
  10408. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10409. }
  10410. z.EncWriteMapElemValue()
  10411. r.EncodeBool(bool(x.TestStrucCommon.B))
  10412. }
  10413. if yyq2[16] {
  10414. z.EncWriteMapElemKey()
  10415. if z.IsJSONHandle() {
  10416. z.WriteStr("\"By\"")
  10417. } else {
  10418. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  10419. }
  10420. z.EncWriteMapElemValue()
  10421. r.EncodeUint(uint64(x.TestStrucCommon.By))
  10422. }
  10423. if yyq2[17] {
  10424. z.EncWriteMapElemKey()
  10425. if z.IsJSONHandle() {
  10426. z.WriteStr("\"Sslice\"")
  10427. } else {
  10428. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  10429. }
  10430. z.EncWriteMapElemValue()
  10431. if x.TestStrucCommon.Sslice == nil {
  10432. r.EncodeNil()
  10433. } else {
  10434. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  10435. } // end block: if x.TestStrucCommon.Sslice slice == nil
  10436. }
  10437. if yyq2[18] {
  10438. z.EncWriteMapElemKey()
  10439. if z.IsJSONHandle() {
  10440. z.WriteStr("\"I64slice\"")
  10441. } else {
  10442. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  10443. }
  10444. z.EncWriteMapElemValue()
  10445. if x.TestStrucCommon.I64slice == nil {
  10446. r.EncodeNil()
  10447. } else {
  10448. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  10449. } // end block: if x.TestStrucCommon.I64slice slice == nil
  10450. }
  10451. if yyq2[19] {
  10452. z.EncWriteMapElemKey()
  10453. if z.IsJSONHandle() {
  10454. z.WriteStr("\"I16slice\"")
  10455. } else {
  10456. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  10457. }
  10458. z.EncWriteMapElemValue()
  10459. if x.TestStrucCommon.I16slice == nil {
  10460. r.EncodeNil()
  10461. } else {
  10462. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  10463. } // end block: if x.TestStrucCommon.I16slice slice == nil
  10464. }
  10465. if yyq2[20] {
  10466. z.EncWriteMapElemKey()
  10467. if z.IsJSONHandle() {
  10468. z.WriteStr("\"Ui64slice\"")
  10469. } else {
  10470. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  10471. }
  10472. z.EncWriteMapElemValue()
  10473. if x.TestStrucCommon.Ui64slice == nil {
  10474. r.EncodeNil()
  10475. } else {
  10476. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  10477. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  10478. }
  10479. if yyq2[21] {
  10480. z.EncWriteMapElemKey()
  10481. if z.IsJSONHandle() {
  10482. z.WriteStr("\"Ui8slice\"")
  10483. } else {
  10484. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  10485. }
  10486. z.EncWriteMapElemValue()
  10487. if x.TestStrucCommon.Ui8slice == nil {
  10488. r.EncodeNil()
  10489. } else {
  10490. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  10491. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  10492. }
  10493. if yyq2[22] {
  10494. z.EncWriteMapElemKey()
  10495. if z.IsJSONHandle() {
  10496. z.WriteStr("\"Bslice\"")
  10497. } else {
  10498. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  10499. }
  10500. z.EncWriteMapElemValue()
  10501. if x.TestStrucCommon.Bslice == nil {
  10502. r.EncodeNil()
  10503. } else {
  10504. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  10505. } // end block: if x.TestStrucCommon.Bslice slice == nil
  10506. }
  10507. if yyq2[23] {
  10508. z.EncWriteMapElemKey()
  10509. if z.IsJSONHandle() {
  10510. z.WriteStr("\"Byslice\"")
  10511. } else {
  10512. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  10513. }
  10514. z.EncWriteMapElemValue()
  10515. if x.TestStrucCommon.Byslice == nil {
  10516. r.EncodeNil()
  10517. } else {
  10518. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  10519. } // end block: if x.TestStrucCommon.Byslice slice == nil
  10520. }
  10521. if yyq2[24] {
  10522. z.EncWriteMapElemKey()
  10523. if z.IsJSONHandle() {
  10524. z.WriteStr("\"BytesSlice\"")
  10525. } else {
  10526. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  10527. }
  10528. z.EncWriteMapElemValue()
  10529. if x.TestStrucCommon.BytesSlice == nil {
  10530. r.EncodeNil()
  10531. } else {
  10532. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  10533. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  10534. }
  10535. if yyq2[25] {
  10536. z.EncWriteMapElemKey()
  10537. if z.IsJSONHandle() {
  10538. z.WriteStr("\"Iptrslice\"")
  10539. } else {
  10540. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  10541. }
  10542. z.EncWriteMapElemValue()
  10543. if x.TestStrucCommon.Iptrslice == nil {
  10544. r.EncodeNil()
  10545. } else {
  10546. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  10547. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  10548. }
  10549. if yyq2[26] {
  10550. z.EncWriteMapElemKey()
  10551. if z.IsJSONHandle() {
  10552. z.WriteStr("\"WrapSliceInt64\"")
  10553. } else {
  10554. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  10555. }
  10556. z.EncWriteMapElemValue()
  10557. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  10558. }
  10559. if yyq2[27] {
  10560. z.EncWriteMapElemKey()
  10561. if z.IsJSONHandle() {
  10562. z.WriteStr("\"WrapSliceString\"")
  10563. } else {
  10564. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  10565. }
  10566. z.EncWriteMapElemValue()
  10567. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  10568. }
  10569. if yyq2[28] {
  10570. z.EncWriteMapElemKey()
  10571. if z.IsJSONHandle() {
  10572. z.WriteStr("\"Msi64\"")
  10573. } else {
  10574. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  10575. }
  10576. z.EncWriteMapElemValue()
  10577. if x.TestStrucCommon.Msi64 == nil {
  10578. r.EncodeNil()
  10579. } else {
  10580. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  10581. } // end block: if x.TestStrucCommon.Msi64 map == nil
  10582. }
  10583. if yyq2[29] {
  10584. z.EncWriteMapElemKey()
  10585. if z.IsJSONHandle() {
  10586. z.WriteStr("\"Msbytes\"")
  10587. } else {
  10588. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  10589. }
  10590. z.EncWriteMapElemValue()
  10591. if x.TestStrucCommon.Msbytes == nil {
  10592. r.EncodeNil()
  10593. } else {
  10594. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  10595. } // end block: if x.TestStrucCommon.Msbytes map == nil
  10596. }
  10597. if yyq2[30] {
  10598. z.EncWriteMapElemKey()
  10599. if z.IsJSONHandle() {
  10600. z.WriteStr("\"Simplef\"")
  10601. } else {
  10602. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  10603. }
  10604. z.EncWriteMapElemValue()
  10605. yy194 := &x.TestStrucCommon.Simplef
  10606. yy194.CodecEncodeSelf(e)
  10607. }
  10608. if yyq2[31] {
  10609. z.EncWriteMapElemKey()
  10610. if z.IsJSONHandle() {
  10611. z.WriteStr("\"SstrUi64T\"")
  10612. } else {
  10613. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  10614. }
  10615. z.EncWriteMapElemValue()
  10616. if x.TestStrucCommon.SstrUi64T == nil {
  10617. r.EncodeNil()
  10618. } else {
  10619. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  10620. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  10621. }
  10622. if yyq2[32] {
  10623. z.EncWriteMapElemKey()
  10624. if z.IsJSONHandle() {
  10625. z.WriteStr("\"MstrUi64T\"")
  10626. } else {
  10627. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  10628. }
  10629. z.EncWriteMapElemValue()
  10630. if x.TestStrucCommon.MstrUi64T == nil {
  10631. r.EncodeNil()
  10632. } else {
  10633. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  10634. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  10635. }
  10636. if yyq2[33] {
  10637. z.EncWriteMapElemKey()
  10638. if z.IsJSONHandle() {
  10639. z.WriteStr("\"AS\"")
  10640. } else {
  10641. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  10642. }
  10643. z.EncWriteMapElemValue()
  10644. if z.EncBasicHandle().StringToRaw {
  10645. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  10646. } else {
  10647. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  10648. }
  10649. }
  10650. if yyq2[34] {
  10651. z.EncWriteMapElemKey()
  10652. if z.IsJSONHandle() {
  10653. z.WriteStr("\"AI64\"")
  10654. } else {
  10655. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  10656. }
  10657. z.EncWriteMapElemValue()
  10658. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  10659. }
  10660. if yyq2[35] {
  10661. z.EncWriteMapElemKey()
  10662. if z.IsJSONHandle() {
  10663. z.WriteStr("\"AI16\"")
  10664. } else {
  10665. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  10666. }
  10667. z.EncWriteMapElemValue()
  10668. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  10669. }
  10670. if yyq2[36] {
  10671. z.EncWriteMapElemKey()
  10672. if z.IsJSONHandle() {
  10673. z.WriteStr("\"AUi64\"")
  10674. } else {
  10675. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  10676. }
  10677. z.EncWriteMapElemValue()
  10678. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  10679. }
  10680. if yyq2[37] {
  10681. z.EncWriteMapElemKey()
  10682. if z.IsJSONHandle() {
  10683. z.WriteStr("\"ASslice\"")
  10684. } else {
  10685. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  10686. }
  10687. z.EncWriteMapElemValue()
  10688. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  10689. r.EncodeNil()
  10690. } else {
  10691. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  10692. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  10693. }
  10694. if yyq2[38] {
  10695. z.EncWriteMapElemKey()
  10696. if z.IsJSONHandle() {
  10697. z.WriteStr("\"AI64slice\"")
  10698. } else {
  10699. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  10700. }
  10701. z.EncWriteMapElemValue()
  10702. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  10703. r.EncodeNil()
  10704. } else {
  10705. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  10706. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  10707. }
  10708. if yyq2[39] {
  10709. z.EncWriteMapElemKey()
  10710. if z.IsJSONHandle() {
  10711. z.WriteStr("\"AUi64slice\"")
  10712. } else {
  10713. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  10714. }
  10715. z.EncWriteMapElemValue()
  10716. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  10717. r.EncodeNil()
  10718. } else {
  10719. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  10720. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  10721. }
  10722. if yyq2[40] {
  10723. z.EncWriteMapElemKey()
  10724. if z.IsJSONHandle() {
  10725. z.WriteStr("\"AF64slice\"")
  10726. } else {
  10727. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  10728. }
  10729. z.EncWriteMapElemValue()
  10730. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  10731. r.EncodeNil()
  10732. } else {
  10733. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  10734. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  10735. }
  10736. if yyq2[41] {
  10737. z.EncWriteMapElemKey()
  10738. if z.IsJSONHandle() {
  10739. z.WriteStr("\"AF32slice\"")
  10740. } else {
  10741. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  10742. }
  10743. z.EncWriteMapElemValue()
  10744. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  10745. r.EncodeNil()
  10746. } else {
  10747. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  10748. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  10749. }
  10750. if yyq2[42] {
  10751. z.EncWriteMapElemKey()
  10752. if z.IsJSONHandle() {
  10753. z.WriteStr("\"AMSU16\"")
  10754. } else {
  10755. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  10756. }
  10757. z.EncWriteMapElemValue()
  10758. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  10759. r.EncodeNil()
  10760. } else {
  10761. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  10762. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  10763. }
  10764. if yyq2[43] {
  10765. z.EncWriteMapElemKey()
  10766. if z.IsJSONHandle() {
  10767. z.WriteStr("\"AI64arr0\"")
  10768. } else {
  10769. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  10770. }
  10771. z.EncWriteMapElemValue()
  10772. yy208 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  10773. h.encArray0int64((*[0]int64)(yy208), e)
  10774. }
  10775. if yyq2[44] {
  10776. z.EncWriteMapElemKey()
  10777. if z.IsJSONHandle() {
  10778. z.WriteStr("\"AI64slice0\"")
  10779. } else {
  10780. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  10781. }
  10782. z.EncWriteMapElemValue()
  10783. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  10784. r.EncodeNil()
  10785. } else {
  10786. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  10787. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  10788. }
  10789. if yyq2[45] {
  10790. z.EncWriteMapElemKey()
  10791. if z.IsJSONHandle() {
  10792. z.WriteStr("\"AUi64sliceN\"")
  10793. } else {
  10794. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  10795. }
  10796. z.EncWriteMapElemValue()
  10797. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  10798. r.EncodeNil()
  10799. } else {
  10800. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  10801. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  10802. }
  10803. if yyq2[46] {
  10804. z.EncWriteMapElemKey()
  10805. if z.IsJSONHandle() {
  10806. z.WriteStr("\"AMSU16N\"")
  10807. } else {
  10808. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  10809. }
  10810. z.EncWriteMapElemValue()
  10811. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  10812. r.EncodeNil()
  10813. } else {
  10814. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  10815. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  10816. }
  10817. if yyq2[47] {
  10818. z.EncWriteMapElemKey()
  10819. if z.IsJSONHandle() {
  10820. z.WriteStr("\"AMSU16E\"")
  10821. } else {
  10822. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10823. }
  10824. z.EncWriteMapElemValue()
  10825. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  10826. r.EncodeNil()
  10827. } else {
  10828. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  10829. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  10830. }
  10831. if yyq2[48] {
  10832. z.EncWriteMapElemKey()
  10833. if z.IsJSONHandle() {
  10834. z.WriteStr("\"NotAnon\"")
  10835. } else {
  10836. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10837. }
  10838. z.EncWriteMapElemValue()
  10839. yy214 := &x.TestStrucCommon.NotAnon
  10840. yy214.CodecEncodeSelf(e)
  10841. }
  10842. if yyq2[49] {
  10843. z.EncWriteMapElemKey()
  10844. if z.IsJSONHandle() {
  10845. z.WriteStr("\"Nmap\"")
  10846. } else {
  10847. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  10848. }
  10849. z.EncWriteMapElemValue()
  10850. if x.TestStrucCommon.Nmap == nil {
  10851. r.EncodeNil()
  10852. } else {
  10853. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  10854. } // end block: if x.TestStrucCommon.Nmap map == nil
  10855. }
  10856. if yyq2[50] {
  10857. z.EncWriteMapElemKey()
  10858. if z.IsJSONHandle() {
  10859. z.WriteStr("\"Nslice\"")
  10860. } else {
  10861. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  10862. }
  10863. z.EncWriteMapElemValue()
  10864. if x.TestStrucCommon.Nslice == nil {
  10865. r.EncodeNil()
  10866. } else {
  10867. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  10868. } // end block: if x.TestStrucCommon.Nslice slice == nil
  10869. }
  10870. if yyq2[51] {
  10871. z.EncWriteMapElemKey()
  10872. if z.IsJSONHandle() {
  10873. z.WriteStr("\"Nint64\"")
  10874. } else {
  10875. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  10876. }
  10877. z.EncWriteMapElemValue()
  10878. if yyn54 {
  10879. r.EncodeNil()
  10880. } else {
  10881. yy218 := *x.TestStrucCommon.Nint64
  10882. r.EncodeInt(int64(yy218))
  10883. }
  10884. }
  10885. if yyq2[52] {
  10886. z.EncWriteMapElemKey()
  10887. if z.IsJSONHandle() {
  10888. z.WriteStr("\"Chstr\"")
  10889. } else {
  10890. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  10891. }
  10892. z.EncWriteMapElemValue()
  10893. h.encChanstring((chan string)(x.Chstr), e)
  10894. }
  10895. if yyq2[53] {
  10896. z.EncWriteMapElemKey()
  10897. if z.IsJSONHandle() {
  10898. z.WriteStr("\"Mis\"")
  10899. } else {
  10900. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  10901. }
  10902. z.EncWriteMapElemValue()
  10903. if x.Mis == nil {
  10904. r.EncodeNil()
  10905. } else {
  10906. z.F.EncMapIntStringV(x.Mis, e)
  10907. } // end block: if x.Mis map == nil
  10908. }
  10909. if yyq2[54] {
  10910. z.EncWriteMapElemKey()
  10911. if z.IsJSONHandle() {
  10912. z.WriteStr("\"Mbu64\"")
  10913. } else {
  10914. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  10915. }
  10916. z.EncWriteMapElemValue()
  10917. if x.Mbu64 == nil {
  10918. r.EncodeNil()
  10919. } else {
  10920. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  10921. } // end block: if x.Mbu64 map == nil
  10922. }
  10923. if yyq2[55] {
  10924. z.EncWriteMapElemKey()
  10925. if z.IsJSONHandle() {
  10926. z.WriteStr("\"Miwu64s\"")
  10927. } else {
  10928. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  10929. }
  10930. z.EncWriteMapElemValue()
  10931. if x.Miwu64s == nil {
  10932. r.EncodeNil()
  10933. } else {
  10934. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  10935. } // end block: if x.Miwu64s map == nil
  10936. }
  10937. if yyq2[56] {
  10938. z.EncWriteMapElemKey()
  10939. if z.IsJSONHandle() {
  10940. z.WriteStr("\"Mfwss\"")
  10941. } else {
  10942. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  10943. }
  10944. z.EncWriteMapElemValue()
  10945. if x.Mfwss == nil {
  10946. r.EncodeNil()
  10947. } else {
  10948. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  10949. } // end block: if x.Mfwss map == nil
  10950. }
  10951. if yyq2[57] {
  10952. z.EncWriteMapElemKey()
  10953. if z.IsJSONHandle() {
  10954. z.WriteStr("\"Mf32wss\"")
  10955. } else {
  10956. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  10957. }
  10958. z.EncWriteMapElemValue()
  10959. if x.Mf32wss == nil {
  10960. r.EncodeNil()
  10961. } else {
  10962. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  10963. } // end block: if x.Mf32wss map == nil
  10964. }
  10965. if yyq2[58] {
  10966. z.EncWriteMapElemKey()
  10967. if z.IsJSONHandle() {
  10968. z.WriteStr("\"Mui2wss\"")
  10969. } else {
  10970. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  10971. }
  10972. z.EncWriteMapElemValue()
  10973. if x.Mui2wss == nil {
  10974. r.EncodeNil()
  10975. } else {
  10976. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  10977. } // end block: if x.Mui2wss map == nil
  10978. }
  10979. if yyq2[59] {
  10980. z.EncWriteMapElemKey()
  10981. if z.IsJSONHandle() {
  10982. z.WriteStr("\"Msu2wss\"")
  10983. } else {
  10984. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  10985. }
  10986. z.EncWriteMapElemValue()
  10987. if x.Msu2wss == nil {
  10988. r.EncodeNil()
  10989. } else {
  10990. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  10991. } // end block: if x.Msu2wss map == nil
  10992. }
  10993. if yyq2[60] {
  10994. z.EncWriteMapElemKey()
  10995. if z.IsJSONHandle() {
  10996. z.WriteStr("\"Ci64\"")
  10997. } else {
  10998. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  10999. }
  11000. z.EncWriteMapElemValue()
  11001. x.Ci64.CodecEncodeSelf(e)
  11002. }
  11003. if yyq2[61] {
  11004. z.EncWriteMapElemKey()
  11005. if z.IsJSONHandle() {
  11006. z.WriteStr("\"Swrapbytes\"")
  11007. } else {
  11008. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  11009. }
  11010. z.EncWriteMapElemValue()
  11011. if x.Swrapbytes == nil {
  11012. r.EncodeNil()
  11013. } else {
  11014. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  11015. } // end block: if x.Swrapbytes slice == nil
  11016. }
  11017. if yyq2[62] {
  11018. z.EncWriteMapElemKey()
  11019. if z.IsJSONHandle() {
  11020. z.WriteStr("\"Swrapuint8\"")
  11021. } else {
  11022. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  11023. }
  11024. z.EncWriteMapElemValue()
  11025. if x.Swrapuint8 == nil {
  11026. r.EncodeNil()
  11027. } else {
  11028. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  11029. } // end block: if x.Swrapuint8 slice == nil
  11030. }
  11031. if yyq2[63] {
  11032. z.EncWriteMapElemKey()
  11033. if z.IsJSONHandle() {
  11034. z.WriteStr("\"ArrStrUi64T\"")
  11035. } else {
  11036. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  11037. }
  11038. z.EncWriteMapElemValue()
  11039. yy231 := &x.ArrStrUi64T
  11040. h.encArray4stringUint64T((*[4]stringUint64T)(yy231), e)
  11041. }
  11042. if yyq2[64] {
  11043. z.EncWriteMapElemKey()
  11044. if z.IsJSONHandle() {
  11045. z.WriteStr("\"Ui64array\"")
  11046. } else {
  11047. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  11048. }
  11049. z.EncWriteMapElemValue()
  11050. yy233 := &x.Ui64array
  11051. h.encArray4uint64((*[4]uint64)(yy233), e)
  11052. }
  11053. if yyq2[65] {
  11054. z.EncWriteMapElemKey()
  11055. if z.IsJSONHandle() {
  11056. z.WriteStr("\"Ui64slicearray\"")
  11057. } else {
  11058. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  11059. }
  11060. z.EncWriteMapElemValue()
  11061. if x.Ui64slicearray == nil {
  11062. r.EncodeNil()
  11063. } else {
  11064. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  11065. } // end block: if x.Ui64slicearray slice == nil
  11066. }
  11067. if yyq2[66] {
  11068. z.EncWriteMapElemKey()
  11069. if z.IsJSONHandle() {
  11070. z.WriteStr("\"SintfAarray\"")
  11071. } else {
  11072. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  11073. }
  11074. z.EncWriteMapElemValue()
  11075. if x.SintfAarray == nil {
  11076. r.EncodeNil()
  11077. } else {
  11078. z.F.EncSliceIntfV(x.SintfAarray, e)
  11079. } // end block: if x.SintfAarray slice == nil
  11080. }
  11081. if yyq2[67] {
  11082. z.EncWriteMapElemKey()
  11083. if z.IsJSONHandle() {
  11084. z.WriteStr("\"MstrUi64TSelf\"")
  11085. } else {
  11086. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64TSelf`)
  11087. }
  11088. z.EncWriteMapElemValue()
  11089. if x.MstrUi64TSelf == nil {
  11090. r.EncodeNil()
  11091. } else {
  11092. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  11093. } // end block: if x.MstrUi64TSelf map == nil
  11094. }
  11095. if yyq2[68] {
  11096. z.EncWriteMapElemKey()
  11097. if z.IsJSONHandle() {
  11098. z.WriteStr("\"Islice\"")
  11099. } else {
  11100. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  11101. }
  11102. z.EncWriteMapElemValue()
  11103. if yyn71 {
  11104. r.EncodeNil()
  11105. } else {
  11106. if x.AnonInTestStrucIntf.Islice == nil {
  11107. r.EncodeNil()
  11108. } else {
  11109. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  11110. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  11111. }
  11112. }
  11113. if yyq2[69] {
  11114. z.EncWriteMapElemKey()
  11115. if z.IsJSONHandle() {
  11116. z.WriteStr("\"Ms\"")
  11117. } else {
  11118. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  11119. }
  11120. z.EncWriteMapElemValue()
  11121. if yyn72 {
  11122. r.EncodeNil()
  11123. } else {
  11124. if x.AnonInTestStrucIntf.Ms == nil {
  11125. r.EncodeNil()
  11126. } else {
  11127. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  11128. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  11129. }
  11130. }
  11131. if yyq2[70] {
  11132. z.EncWriteMapElemKey()
  11133. if z.IsJSONHandle() {
  11134. z.WriteStr("\"Nintf\"")
  11135. } else {
  11136. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  11137. }
  11138. z.EncWriteMapElemValue()
  11139. if yyn73 {
  11140. r.EncodeNil()
  11141. } else {
  11142. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  11143. }
  11144. }
  11145. if yyq2[71] {
  11146. z.EncWriteMapElemKey()
  11147. if z.IsJSONHandle() {
  11148. z.WriteStr("\"T\"")
  11149. } else {
  11150. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  11151. }
  11152. z.EncWriteMapElemValue()
  11153. if yyn74 {
  11154. r.EncodeNil()
  11155. } else {
  11156. if !z.EncBasicHandle().TimeNotBuiltin {
  11157. r.EncodeTime(x.AnonInTestStrucIntf.T)
  11158. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  11159. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt241)
  11160. } else if z.EncBinary() {
  11161. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  11162. } else if !z.EncBinary() && z.IsJSONHandle() {
  11163. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  11164. } else {
  11165. z.EncFallback(x.AnonInTestStrucIntf.T)
  11166. }
  11167. }
  11168. }
  11169. if yyq2[72] {
  11170. z.EncWriteMapElemKey()
  11171. if z.IsJSONHandle() {
  11172. z.WriteStr("\"Tptr\"")
  11173. } else {
  11174. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  11175. }
  11176. z.EncWriteMapElemValue()
  11177. if yyn75 {
  11178. r.EncodeNil()
  11179. } else {
  11180. yy242 := *x.AnonInTestStrucIntf.Tptr
  11181. if !z.EncBasicHandle().TimeNotBuiltin {
  11182. r.EncodeTime(yy242)
  11183. } else if yyxt243 := z.Extension(z.I2Rtid(yy242)); yyxt243 != nil {
  11184. z.EncExtension(yy242, yyxt243)
  11185. } else if z.EncBinary() {
  11186. z.EncBinaryMarshal(yy242)
  11187. } else if !z.EncBinary() && z.IsJSONHandle() {
  11188. z.EncJSONMarshal(yy242)
  11189. } else {
  11190. z.EncFallback(yy242)
  11191. }
  11192. }
  11193. }
  11194. if yyq2[73] {
  11195. z.EncWriteMapElemKey()
  11196. if z.IsJSONHandle() {
  11197. z.WriteStr("\"Mtsptr\"")
  11198. } else {
  11199. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  11200. }
  11201. z.EncWriteMapElemValue()
  11202. if x.Mtsptr == nil {
  11203. r.EncodeNil()
  11204. } else {
  11205. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  11206. } // end block: if x.Mtsptr map == nil
  11207. }
  11208. if yyq2[74] {
  11209. z.EncWriteMapElemKey()
  11210. if z.IsJSONHandle() {
  11211. z.WriteStr("\"Mts\"")
  11212. } else {
  11213. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  11214. }
  11215. z.EncWriteMapElemValue()
  11216. if x.Mts == nil {
  11217. r.EncodeNil()
  11218. } else {
  11219. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  11220. } // end block: if x.Mts map == nil
  11221. }
  11222. if yyq2[75] {
  11223. z.EncWriteMapElemKey()
  11224. if z.IsJSONHandle() {
  11225. z.WriteStr("\"Its\"")
  11226. } else {
  11227. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  11228. }
  11229. z.EncWriteMapElemValue()
  11230. if x.Its == nil {
  11231. r.EncodeNil()
  11232. } else {
  11233. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  11234. } // end block: if x.Its slice == nil
  11235. }
  11236. if yyq2[76] {
  11237. z.EncWriteMapElemKey()
  11238. if z.IsJSONHandle() {
  11239. z.WriteStr("\"Nteststruc\"")
  11240. } else {
  11241. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  11242. }
  11243. z.EncWriteMapElemValue()
  11244. if yyn79 {
  11245. r.EncodeNil()
  11246. } else {
  11247. x.Nteststruc.CodecEncodeSelf(e)
  11248. }
  11249. }
  11250. z.EncWriteMapEnd()
  11251. }
  11252. } // checkNil=true
  11253. }
  11254. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  11255. var h codecSelfer19780
  11256. z, r := GenHelperDecoder(d)
  11257. _, _, _ = h, z, r
  11258. yyct2 := r.ContainerType()
  11259. if yyct2 == codecSelferValueTypeMap19780 {
  11260. yyl2 := z.DecReadMapStart()
  11261. if yyl2 == 0 {
  11262. } else {
  11263. x.codecDecodeSelfFromMap(yyl2, d)
  11264. }
  11265. z.DecReadMapEnd()
  11266. } else if yyct2 == codecSelferValueTypeArray19780 {
  11267. yyl2 := z.DecReadArrayStart()
  11268. if yyl2 != 0 {
  11269. x.codecDecodeSelfFromArray(yyl2, d)
  11270. }
  11271. z.DecReadArrayEnd()
  11272. } else {
  11273. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  11274. }
  11275. }
  11276. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  11277. var h codecSelfer19780
  11278. z, r := GenHelperDecoder(d)
  11279. _, _, _ = h, z, r
  11280. var yyhl3 bool = l >= 0
  11281. for yyj3 := 0; ; yyj3++ {
  11282. if yyhl3 {
  11283. if yyj3 >= l {
  11284. break
  11285. }
  11286. } else {
  11287. if r.CheckBreak() {
  11288. break
  11289. }
  11290. }
  11291. z.DecReadMapElemKey()
  11292. yys3 := z.StringView(r.DecodeStringAsBytes())
  11293. z.DecReadMapElemValue()
  11294. switch yys3 {
  11295. case "S":
  11296. if r.TryDecodeAsNil() {
  11297. x.TestStrucCommon.S = ""
  11298. } else {
  11299. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  11300. }
  11301. case "I64":
  11302. if r.TryDecodeAsNil() {
  11303. x.TestStrucCommon.I64 = 0
  11304. } else {
  11305. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  11306. }
  11307. case "I32":
  11308. if r.TryDecodeAsNil() {
  11309. x.TestStrucCommon.I32 = 0
  11310. } else {
  11311. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11312. }
  11313. case "I16":
  11314. if r.TryDecodeAsNil() {
  11315. x.TestStrucCommon.I16 = 0
  11316. } else {
  11317. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11318. }
  11319. case "I8":
  11320. if r.TryDecodeAsNil() {
  11321. x.TestStrucCommon.I8 = 0
  11322. } else {
  11323. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11324. }
  11325. case "I64n":
  11326. if r.TryDecodeAsNil() {
  11327. x.TestStrucCommon.I64n = 0
  11328. } else {
  11329. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  11330. }
  11331. case "I32n":
  11332. if r.TryDecodeAsNil() {
  11333. x.TestStrucCommon.I32n = 0
  11334. } else {
  11335. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11336. }
  11337. case "I16n":
  11338. if r.TryDecodeAsNil() {
  11339. x.TestStrucCommon.I16n = 0
  11340. } else {
  11341. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11342. }
  11343. case "I8n":
  11344. if r.TryDecodeAsNil() {
  11345. x.TestStrucCommon.I8n = 0
  11346. } else {
  11347. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11348. }
  11349. case "Ui64":
  11350. if r.TryDecodeAsNil() {
  11351. x.TestStrucCommon.Ui64 = 0
  11352. } else {
  11353. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  11354. }
  11355. case "Ui32":
  11356. if r.TryDecodeAsNil() {
  11357. x.TestStrucCommon.Ui32 = 0
  11358. } else {
  11359. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  11360. }
  11361. case "Ui16":
  11362. if r.TryDecodeAsNil() {
  11363. x.TestStrucCommon.Ui16 = 0
  11364. } else {
  11365. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  11366. }
  11367. case "Ui8":
  11368. if r.TryDecodeAsNil() {
  11369. x.TestStrucCommon.Ui8 = 0
  11370. } else {
  11371. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  11372. }
  11373. case "F64":
  11374. if r.TryDecodeAsNil() {
  11375. x.TestStrucCommon.F64 = 0
  11376. } else {
  11377. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  11378. }
  11379. case "F32":
  11380. if r.TryDecodeAsNil() {
  11381. x.TestStrucCommon.F32 = 0
  11382. } else {
  11383. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  11384. }
  11385. case "B":
  11386. if r.TryDecodeAsNil() {
  11387. x.TestStrucCommon.B = false
  11388. } else {
  11389. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  11390. }
  11391. case "By":
  11392. if r.TryDecodeAsNil() {
  11393. x.TestStrucCommon.By = 0
  11394. } else {
  11395. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  11396. }
  11397. case "Sslice":
  11398. if r.TryDecodeAsNil() {
  11399. x.TestStrucCommon.Sslice = nil
  11400. } else {
  11401. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  11402. }
  11403. case "I64slice":
  11404. if r.TryDecodeAsNil() {
  11405. x.TestStrucCommon.I64slice = nil
  11406. } else {
  11407. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  11408. }
  11409. case "I16slice":
  11410. if r.TryDecodeAsNil() {
  11411. x.TestStrucCommon.I16slice = nil
  11412. } else {
  11413. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  11414. }
  11415. case "Ui64slice":
  11416. if r.TryDecodeAsNil() {
  11417. x.TestStrucCommon.Ui64slice = nil
  11418. } else {
  11419. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  11420. }
  11421. case "Ui8slice":
  11422. if r.TryDecodeAsNil() {
  11423. x.TestStrucCommon.Ui8slice = nil
  11424. } else {
  11425. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  11426. }
  11427. case "Bslice":
  11428. if r.TryDecodeAsNil() {
  11429. x.TestStrucCommon.Bslice = nil
  11430. } else {
  11431. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  11432. }
  11433. case "Byslice":
  11434. if r.TryDecodeAsNil() {
  11435. x.TestStrucCommon.Byslice = nil
  11436. } else {
  11437. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  11438. }
  11439. case "BytesSlice":
  11440. if r.TryDecodeAsNil() {
  11441. x.TestStrucCommon.BytesSlice = nil
  11442. } else {
  11443. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  11444. }
  11445. case "Iptrslice":
  11446. if r.TryDecodeAsNil() {
  11447. x.TestStrucCommon.Iptrslice = nil
  11448. } else {
  11449. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  11450. }
  11451. case "WrapSliceInt64":
  11452. if r.TryDecodeAsNil() {
  11453. x.TestStrucCommon.WrapSliceInt64 = nil
  11454. } else {
  11455. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  11456. }
  11457. case "WrapSliceString":
  11458. if r.TryDecodeAsNil() {
  11459. x.TestStrucCommon.WrapSliceString = nil
  11460. } else {
  11461. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  11462. }
  11463. case "Msi64":
  11464. if r.TryDecodeAsNil() {
  11465. x.TestStrucCommon.Msi64 = nil
  11466. } else {
  11467. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  11468. }
  11469. case "Msbytes":
  11470. if r.TryDecodeAsNil() {
  11471. x.TestStrucCommon.Msbytes = nil
  11472. } else {
  11473. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  11474. }
  11475. case "Simplef":
  11476. if r.TryDecodeAsNil() {
  11477. x.TestStrucCommon.Simplef = testSimpleFields{}
  11478. } else {
  11479. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  11480. }
  11481. case "SstrUi64T":
  11482. if r.TryDecodeAsNil() {
  11483. x.TestStrucCommon.SstrUi64T = nil
  11484. } else {
  11485. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  11486. }
  11487. case "MstrUi64T":
  11488. if r.TryDecodeAsNil() {
  11489. x.TestStrucCommon.MstrUi64T = nil
  11490. } else {
  11491. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  11492. }
  11493. case "AS":
  11494. if r.TryDecodeAsNil() {
  11495. x.TestStrucCommon.AnonInTestStruc.AS = ""
  11496. } else {
  11497. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  11498. }
  11499. case "AI64":
  11500. if r.TryDecodeAsNil() {
  11501. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  11502. } else {
  11503. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  11504. }
  11505. case "AI16":
  11506. if r.TryDecodeAsNil() {
  11507. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  11508. } else {
  11509. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11510. }
  11511. case "AUi64":
  11512. if r.TryDecodeAsNil() {
  11513. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  11514. } else {
  11515. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  11516. }
  11517. case "ASslice":
  11518. if r.TryDecodeAsNil() {
  11519. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  11520. } else {
  11521. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  11522. }
  11523. case "AI64slice":
  11524. if r.TryDecodeAsNil() {
  11525. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  11526. } else {
  11527. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  11528. }
  11529. case "AUi64slice":
  11530. if r.TryDecodeAsNil() {
  11531. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  11532. } else {
  11533. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  11534. }
  11535. case "AF64slice":
  11536. if r.TryDecodeAsNil() {
  11537. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  11538. } else {
  11539. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  11540. }
  11541. case "AF32slice":
  11542. if r.TryDecodeAsNil() {
  11543. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  11544. } else {
  11545. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  11546. }
  11547. case "AMSU16":
  11548. if r.TryDecodeAsNil() {
  11549. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  11550. } else {
  11551. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  11552. }
  11553. case "AI64arr0":
  11554. if r.TryDecodeAsNil() {
  11555. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  11556. } else {
  11557. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  11558. }
  11559. case "AI64slice0":
  11560. if r.TryDecodeAsNil() {
  11561. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  11562. } else {
  11563. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  11564. }
  11565. case "AUi64sliceN":
  11566. if r.TryDecodeAsNil() {
  11567. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  11568. } else {
  11569. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  11570. }
  11571. case "AMSU16N":
  11572. if r.TryDecodeAsNil() {
  11573. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  11574. } else {
  11575. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  11576. }
  11577. case "AMSU16E":
  11578. if r.TryDecodeAsNil() {
  11579. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  11580. } else {
  11581. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  11582. }
  11583. case "NotAnon":
  11584. if r.TryDecodeAsNil() {
  11585. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  11586. } else {
  11587. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  11588. }
  11589. case "Nmap":
  11590. if r.TryDecodeAsNil() {
  11591. x.TestStrucCommon.Nmap = nil
  11592. } else {
  11593. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  11594. }
  11595. case "Nslice":
  11596. if r.TryDecodeAsNil() {
  11597. x.TestStrucCommon.Nslice = nil
  11598. } else {
  11599. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  11600. }
  11601. case "Nint64":
  11602. if r.TryDecodeAsNil() {
  11603. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  11604. x.TestStrucCommon.Nint64 = nil
  11605. }
  11606. } else {
  11607. if x.TestStrucCommon.Nint64 == nil {
  11608. x.TestStrucCommon.Nint64 = new(int64)
  11609. }
  11610. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  11611. }
  11612. case "Chstr":
  11613. if r.TryDecodeAsNil() {
  11614. x.Chstr = nil
  11615. } else {
  11616. h.decChanstring((*chan string)(&x.Chstr), d)
  11617. }
  11618. case "Mis":
  11619. if r.TryDecodeAsNil() {
  11620. x.Mis = nil
  11621. } else {
  11622. z.F.DecMapIntStringX(&x.Mis, d)
  11623. }
  11624. case "Mbu64":
  11625. if r.TryDecodeAsNil() {
  11626. x.Mbu64 = nil
  11627. } else {
  11628. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  11629. }
  11630. case "Miwu64s":
  11631. if r.TryDecodeAsNil() {
  11632. x.Miwu64s = nil
  11633. } else {
  11634. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  11635. }
  11636. case "Mfwss":
  11637. if r.TryDecodeAsNil() {
  11638. x.Mfwss = nil
  11639. } else {
  11640. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  11641. }
  11642. case "Mf32wss":
  11643. if r.TryDecodeAsNil() {
  11644. x.Mf32wss = nil
  11645. } else {
  11646. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  11647. }
  11648. case "Mui2wss":
  11649. if r.TryDecodeAsNil() {
  11650. x.Mui2wss = nil
  11651. } else {
  11652. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  11653. }
  11654. case "Msu2wss":
  11655. if r.TryDecodeAsNil() {
  11656. x.Msu2wss = nil
  11657. } else {
  11658. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  11659. }
  11660. case "Ci64":
  11661. if r.TryDecodeAsNil() {
  11662. x.Ci64 = 0
  11663. } else {
  11664. x.Ci64.CodecDecodeSelf(d)
  11665. }
  11666. case "Swrapbytes":
  11667. if r.TryDecodeAsNil() {
  11668. x.Swrapbytes = nil
  11669. } else {
  11670. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  11671. }
  11672. case "Swrapuint8":
  11673. if r.TryDecodeAsNil() {
  11674. x.Swrapuint8 = nil
  11675. } else {
  11676. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  11677. }
  11678. case "ArrStrUi64T":
  11679. if r.TryDecodeAsNil() {
  11680. x.ArrStrUi64T = [4]stringUint64T{}
  11681. } else {
  11682. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  11683. }
  11684. case "Ui64array":
  11685. if r.TryDecodeAsNil() {
  11686. x.Ui64array = [4]uint64{}
  11687. } else {
  11688. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  11689. }
  11690. case "Ui64slicearray":
  11691. if r.TryDecodeAsNil() {
  11692. x.Ui64slicearray = nil
  11693. } else {
  11694. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  11695. }
  11696. case "SintfAarray":
  11697. if r.TryDecodeAsNil() {
  11698. x.SintfAarray = nil
  11699. } else {
  11700. z.F.DecSliceIntfX(&x.SintfAarray, d)
  11701. }
  11702. case "MstrUi64TSelf":
  11703. if r.TryDecodeAsNil() {
  11704. x.MstrUi64TSelf = nil
  11705. } else {
  11706. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  11707. }
  11708. case "Islice":
  11709. if r.TryDecodeAsNil() {
  11710. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11711. x.AnonInTestStrucIntf.Islice = nil
  11712. }
  11713. } else {
  11714. if x.AnonInTestStrucIntf == nil {
  11715. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11716. }
  11717. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  11718. }
  11719. case "Ms":
  11720. if r.TryDecodeAsNil() {
  11721. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11722. x.AnonInTestStrucIntf.Ms = nil
  11723. }
  11724. } else {
  11725. if x.AnonInTestStrucIntf == nil {
  11726. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11727. }
  11728. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  11729. }
  11730. case "Nintf":
  11731. if r.TryDecodeAsNil() {
  11732. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11733. x.AnonInTestStrucIntf.Nintf = nil
  11734. }
  11735. } else {
  11736. if x.AnonInTestStrucIntf == nil {
  11737. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11738. }
  11739. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  11740. }
  11741. case "T":
  11742. if r.TryDecodeAsNil() {
  11743. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11744. x.AnonInTestStrucIntf.T = time.Time{}
  11745. }
  11746. } else {
  11747. if x.AnonInTestStrucIntf == nil {
  11748. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11749. }
  11750. if !z.DecBasicHandle().TimeNotBuiltin {
  11751. x.AnonInTestStrucIntf.T = r.DecodeTime()
  11752. } else if yyxt121 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt121 != nil {
  11753. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt121)
  11754. } else if z.DecBinary() {
  11755. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  11756. } else if !z.DecBinary() && z.IsJSONHandle() {
  11757. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  11758. } else {
  11759. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  11760. }
  11761. }
  11762. case "Tptr":
  11763. if r.TryDecodeAsNil() {
  11764. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  11765. x.AnonInTestStrucIntf.Tptr = nil
  11766. }
  11767. } else {
  11768. if x.AnonInTestStrucIntf == nil {
  11769. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11770. }
  11771. if x.AnonInTestStrucIntf.Tptr == nil {
  11772. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  11773. }
  11774. if !z.DecBasicHandle().TimeNotBuiltin {
  11775. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  11776. } else if yyxt123 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt123 != nil {
  11777. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt123)
  11778. } else if z.DecBinary() {
  11779. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11780. } else if !z.DecBinary() && z.IsJSONHandle() {
  11781. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11782. } else {
  11783. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  11784. }
  11785. }
  11786. case "Mtsptr":
  11787. if r.TryDecodeAsNil() {
  11788. x.Mtsptr = nil
  11789. } else {
  11790. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  11791. }
  11792. case "Mts":
  11793. if r.TryDecodeAsNil() {
  11794. x.Mts = nil
  11795. } else {
  11796. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  11797. }
  11798. case "Its":
  11799. if r.TryDecodeAsNil() {
  11800. x.Its = nil
  11801. } else {
  11802. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  11803. }
  11804. case "Nteststruc":
  11805. if r.TryDecodeAsNil() {
  11806. if x.Nteststruc != nil { // remove the if-true
  11807. x.Nteststruc = nil
  11808. }
  11809. } else {
  11810. if x.Nteststruc == nil {
  11811. x.Nteststruc = new(TestStrucFlex)
  11812. }
  11813. x.Nteststruc.CodecDecodeSelf(d)
  11814. }
  11815. default:
  11816. z.DecStructFieldNotFound(-1, yys3)
  11817. } // end switch yys3
  11818. } // end for yyj3
  11819. }
  11820. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  11821. var h codecSelfer19780
  11822. z, r := GenHelperDecoder(d)
  11823. _, _, _ = h, z, r
  11824. var yyj131 int
  11825. var yyb131 bool
  11826. var yyhl131 bool = l >= 0
  11827. yyj131++
  11828. if yyhl131 {
  11829. yyb131 = yyj131 > l
  11830. } else {
  11831. yyb131 = r.CheckBreak()
  11832. }
  11833. if yyb131 {
  11834. z.DecReadArrayEnd()
  11835. return
  11836. }
  11837. z.DecReadArrayElem()
  11838. if r.TryDecodeAsNil() {
  11839. x.TestStrucCommon.S = ""
  11840. } else {
  11841. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  11842. }
  11843. yyj131++
  11844. if yyhl131 {
  11845. yyb131 = yyj131 > l
  11846. } else {
  11847. yyb131 = r.CheckBreak()
  11848. }
  11849. if yyb131 {
  11850. z.DecReadArrayEnd()
  11851. return
  11852. }
  11853. z.DecReadArrayElem()
  11854. if r.TryDecodeAsNil() {
  11855. x.TestStrucCommon.I64 = 0
  11856. } else {
  11857. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  11858. }
  11859. yyj131++
  11860. if yyhl131 {
  11861. yyb131 = yyj131 > l
  11862. } else {
  11863. yyb131 = r.CheckBreak()
  11864. }
  11865. if yyb131 {
  11866. z.DecReadArrayEnd()
  11867. return
  11868. }
  11869. z.DecReadArrayElem()
  11870. if r.TryDecodeAsNil() {
  11871. x.TestStrucCommon.I32 = 0
  11872. } else {
  11873. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11874. }
  11875. yyj131++
  11876. if yyhl131 {
  11877. yyb131 = yyj131 > l
  11878. } else {
  11879. yyb131 = r.CheckBreak()
  11880. }
  11881. if yyb131 {
  11882. z.DecReadArrayEnd()
  11883. return
  11884. }
  11885. z.DecReadArrayElem()
  11886. if r.TryDecodeAsNil() {
  11887. x.TestStrucCommon.I16 = 0
  11888. } else {
  11889. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11890. }
  11891. yyj131++
  11892. if yyhl131 {
  11893. yyb131 = yyj131 > l
  11894. } else {
  11895. yyb131 = r.CheckBreak()
  11896. }
  11897. if yyb131 {
  11898. z.DecReadArrayEnd()
  11899. return
  11900. }
  11901. z.DecReadArrayElem()
  11902. if r.TryDecodeAsNil() {
  11903. x.TestStrucCommon.I8 = 0
  11904. } else {
  11905. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11906. }
  11907. yyj131++
  11908. if yyhl131 {
  11909. yyb131 = yyj131 > l
  11910. } else {
  11911. yyb131 = r.CheckBreak()
  11912. }
  11913. if yyb131 {
  11914. z.DecReadArrayEnd()
  11915. return
  11916. }
  11917. z.DecReadArrayElem()
  11918. if r.TryDecodeAsNil() {
  11919. x.TestStrucCommon.I64n = 0
  11920. } else {
  11921. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  11922. }
  11923. yyj131++
  11924. if yyhl131 {
  11925. yyb131 = yyj131 > l
  11926. } else {
  11927. yyb131 = r.CheckBreak()
  11928. }
  11929. if yyb131 {
  11930. z.DecReadArrayEnd()
  11931. return
  11932. }
  11933. z.DecReadArrayElem()
  11934. if r.TryDecodeAsNil() {
  11935. x.TestStrucCommon.I32n = 0
  11936. } else {
  11937. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  11938. }
  11939. yyj131++
  11940. if yyhl131 {
  11941. yyb131 = yyj131 > l
  11942. } else {
  11943. yyb131 = r.CheckBreak()
  11944. }
  11945. if yyb131 {
  11946. z.DecReadArrayEnd()
  11947. return
  11948. }
  11949. z.DecReadArrayElem()
  11950. if r.TryDecodeAsNil() {
  11951. x.TestStrucCommon.I16n = 0
  11952. } else {
  11953. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11954. }
  11955. yyj131++
  11956. if yyhl131 {
  11957. yyb131 = yyj131 > l
  11958. } else {
  11959. yyb131 = r.CheckBreak()
  11960. }
  11961. if yyb131 {
  11962. z.DecReadArrayEnd()
  11963. return
  11964. }
  11965. z.DecReadArrayElem()
  11966. if r.TryDecodeAsNil() {
  11967. x.TestStrucCommon.I8n = 0
  11968. } else {
  11969. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  11970. }
  11971. yyj131++
  11972. if yyhl131 {
  11973. yyb131 = yyj131 > l
  11974. } else {
  11975. yyb131 = r.CheckBreak()
  11976. }
  11977. if yyb131 {
  11978. z.DecReadArrayEnd()
  11979. return
  11980. }
  11981. z.DecReadArrayElem()
  11982. if r.TryDecodeAsNil() {
  11983. x.TestStrucCommon.Ui64 = 0
  11984. } else {
  11985. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  11986. }
  11987. yyj131++
  11988. if yyhl131 {
  11989. yyb131 = yyj131 > l
  11990. } else {
  11991. yyb131 = r.CheckBreak()
  11992. }
  11993. if yyb131 {
  11994. z.DecReadArrayEnd()
  11995. return
  11996. }
  11997. z.DecReadArrayElem()
  11998. if r.TryDecodeAsNil() {
  11999. x.TestStrucCommon.Ui32 = 0
  12000. } else {
  12001. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12002. }
  12003. yyj131++
  12004. if yyhl131 {
  12005. yyb131 = yyj131 > l
  12006. } else {
  12007. yyb131 = r.CheckBreak()
  12008. }
  12009. if yyb131 {
  12010. z.DecReadArrayEnd()
  12011. return
  12012. }
  12013. z.DecReadArrayElem()
  12014. if r.TryDecodeAsNil() {
  12015. x.TestStrucCommon.Ui16 = 0
  12016. } else {
  12017. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12018. }
  12019. yyj131++
  12020. if yyhl131 {
  12021. yyb131 = yyj131 > l
  12022. } else {
  12023. yyb131 = r.CheckBreak()
  12024. }
  12025. if yyb131 {
  12026. z.DecReadArrayEnd()
  12027. return
  12028. }
  12029. z.DecReadArrayElem()
  12030. if r.TryDecodeAsNil() {
  12031. x.TestStrucCommon.Ui8 = 0
  12032. } else {
  12033. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12034. }
  12035. yyj131++
  12036. if yyhl131 {
  12037. yyb131 = yyj131 > l
  12038. } else {
  12039. yyb131 = r.CheckBreak()
  12040. }
  12041. if yyb131 {
  12042. z.DecReadArrayEnd()
  12043. return
  12044. }
  12045. z.DecReadArrayElem()
  12046. if r.TryDecodeAsNil() {
  12047. x.TestStrucCommon.F64 = 0
  12048. } else {
  12049. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  12050. }
  12051. yyj131++
  12052. if yyhl131 {
  12053. yyb131 = yyj131 > l
  12054. } else {
  12055. yyb131 = r.CheckBreak()
  12056. }
  12057. if yyb131 {
  12058. z.DecReadArrayEnd()
  12059. return
  12060. }
  12061. z.DecReadArrayElem()
  12062. if r.TryDecodeAsNil() {
  12063. x.TestStrucCommon.F32 = 0
  12064. } else {
  12065. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  12066. }
  12067. yyj131++
  12068. if yyhl131 {
  12069. yyb131 = yyj131 > l
  12070. } else {
  12071. yyb131 = r.CheckBreak()
  12072. }
  12073. if yyb131 {
  12074. z.DecReadArrayEnd()
  12075. return
  12076. }
  12077. z.DecReadArrayElem()
  12078. if r.TryDecodeAsNil() {
  12079. x.TestStrucCommon.B = false
  12080. } else {
  12081. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  12082. }
  12083. yyj131++
  12084. if yyhl131 {
  12085. yyb131 = yyj131 > l
  12086. } else {
  12087. yyb131 = r.CheckBreak()
  12088. }
  12089. if yyb131 {
  12090. z.DecReadArrayEnd()
  12091. return
  12092. }
  12093. z.DecReadArrayElem()
  12094. if r.TryDecodeAsNil() {
  12095. x.TestStrucCommon.By = 0
  12096. } else {
  12097. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12098. }
  12099. yyj131++
  12100. if yyhl131 {
  12101. yyb131 = yyj131 > l
  12102. } else {
  12103. yyb131 = r.CheckBreak()
  12104. }
  12105. if yyb131 {
  12106. z.DecReadArrayEnd()
  12107. return
  12108. }
  12109. z.DecReadArrayElem()
  12110. if r.TryDecodeAsNil() {
  12111. x.TestStrucCommon.Sslice = nil
  12112. } else {
  12113. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  12114. }
  12115. yyj131++
  12116. if yyhl131 {
  12117. yyb131 = yyj131 > l
  12118. } else {
  12119. yyb131 = r.CheckBreak()
  12120. }
  12121. if yyb131 {
  12122. z.DecReadArrayEnd()
  12123. return
  12124. }
  12125. z.DecReadArrayElem()
  12126. if r.TryDecodeAsNil() {
  12127. x.TestStrucCommon.I64slice = nil
  12128. } else {
  12129. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  12130. }
  12131. yyj131++
  12132. if yyhl131 {
  12133. yyb131 = yyj131 > l
  12134. } else {
  12135. yyb131 = r.CheckBreak()
  12136. }
  12137. if yyb131 {
  12138. z.DecReadArrayEnd()
  12139. return
  12140. }
  12141. z.DecReadArrayElem()
  12142. if r.TryDecodeAsNil() {
  12143. x.TestStrucCommon.I16slice = nil
  12144. } else {
  12145. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  12146. }
  12147. yyj131++
  12148. if yyhl131 {
  12149. yyb131 = yyj131 > l
  12150. } else {
  12151. yyb131 = r.CheckBreak()
  12152. }
  12153. if yyb131 {
  12154. z.DecReadArrayEnd()
  12155. return
  12156. }
  12157. z.DecReadArrayElem()
  12158. if r.TryDecodeAsNil() {
  12159. x.TestStrucCommon.Ui64slice = nil
  12160. } else {
  12161. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  12162. }
  12163. yyj131++
  12164. if yyhl131 {
  12165. yyb131 = yyj131 > l
  12166. } else {
  12167. yyb131 = r.CheckBreak()
  12168. }
  12169. if yyb131 {
  12170. z.DecReadArrayEnd()
  12171. return
  12172. }
  12173. z.DecReadArrayElem()
  12174. if r.TryDecodeAsNil() {
  12175. x.TestStrucCommon.Ui8slice = nil
  12176. } else {
  12177. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  12178. }
  12179. yyj131++
  12180. if yyhl131 {
  12181. yyb131 = yyj131 > l
  12182. } else {
  12183. yyb131 = r.CheckBreak()
  12184. }
  12185. if yyb131 {
  12186. z.DecReadArrayEnd()
  12187. return
  12188. }
  12189. z.DecReadArrayElem()
  12190. if r.TryDecodeAsNil() {
  12191. x.TestStrucCommon.Bslice = nil
  12192. } else {
  12193. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  12194. }
  12195. yyj131++
  12196. if yyhl131 {
  12197. yyb131 = yyj131 > l
  12198. } else {
  12199. yyb131 = r.CheckBreak()
  12200. }
  12201. if yyb131 {
  12202. z.DecReadArrayEnd()
  12203. return
  12204. }
  12205. z.DecReadArrayElem()
  12206. if r.TryDecodeAsNil() {
  12207. x.TestStrucCommon.Byslice = nil
  12208. } else {
  12209. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  12210. }
  12211. yyj131++
  12212. if yyhl131 {
  12213. yyb131 = yyj131 > l
  12214. } else {
  12215. yyb131 = r.CheckBreak()
  12216. }
  12217. if yyb131 {
  12218. z.DecReadArrayEnd()
  12219. return
  12220. }
  12221. z.DecReadArrayElem()
  12222. if r.TryDecodeAsNil() {
  12223. x.TestStrucCommon.BytesSlice = nil
  12224. } else {
  12225. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  12226. }
  12227. yyj131++
  12228. if yyhl131 {
  12229. yyb131 = yyj131 > l
  12230. } else {
  12231. yyb131 = r.CheckBreak()
  12232. }
  12233. if yyb131 {
  12234. z.DecReadArrayEnd()
  12235. return
  12236. }
  12237. z.DecReadArrayElem()
  12238. if r.TryDecodeAsNil() {
  12239. x.TestStrucCommon.Iptrslice = nil
  12240. } else {
  12241. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  12242. }
  12243. yyj131++
  12244. if yyhl131 {
  12245. yyb131 = yyj131 > l
  12246. } else {
  12247. yyb131 = r.CheckBreak()
  12248. }
  12249. if yyb131 {
  12250. z.DecReadArrayEnd()
  12251. return
  12252. }
  12253. z.DecReadArrayElem()
  12254. if r.TryDecodeAsNil() {
  12255. x.TestStrucCommon.WrapSliceInt64 = nil
  12256. } else {
  12257. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  12258. }
  12259. yyj131++
  12260. if yyhl131 {
  12261. yyb131 = yyj131 > l
  12262. } else {
  12263. yyb131 = r.CheckBreak()
  12264. }
  12265. if yyb131 {
  12266. z.DecReadArrayEnd()
  12267. return
  12268. }
  12269. z.DecReadArrayElem()
  12270. if r.TryDecodeAsNil() {
  12271. x.TestStrucCommon.WrapSliceString = nil
  12272. } else {
  12273. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  12274. }
  12275. yyj131++
  12276. if yyhl131 {
  12277. yyb131 = yyj131 > l
  12278. } else {
  12279. yyb131 = r.CheckBreak()
  12280. }
  12281. if yyb131 {
  12282. z.DecReadArrayEnd()
  12283. return
  12284. }
  12285. z.DecReadArrayElem()
  12286. if r.TryDecodeAsNil() {
  12287. x.TestStrucCommon.Msi64 = nil
  12288. } else {
  12289. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  12290. }
  12291. yyj131++
  12292. if yyhl131 {
  12293. yyb131 = yyj131 > l
  12294. } else {
  12295. yyb131 = r.CheckBreak()
  12296. }
  12297. if yyb131 {
  12298. z.DecReadArrayEnd()
  12299. return
  12300. }
  12301. z.DecReadArrayElem()
  12302. if r.TryDecodeAsNil() {
  12303. x.TestStrucCommon.Msbytes = nil
  12304. } else {
  12305. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  12306. }
  12307. yyj131++
  12308. if yyhl131 {
  12309. yyb131 = yyj131 > l
  12310. } else {
  12311. yyb131 = r.CheckBreak()
  12312. }
  12313. if yyb131 {
  12314. z.DecReadArrayEnd()
  12315. return
  12316. }
  12317. z.DecReadArrayElem()
  12318. if r.TryDecodeAsNil() {
  12319. x.TestStrucCommon.Simplef = testSimpleFields{}
  12320. } else {
  12321. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  12322. }
  12323. yyj131++
  12324. if yyhl131 {
  12325. yyb131 = yyj131 > l
  12326. } else {
  12327. yyb131 = r.CheckBreak()
  12328. }
  12329. if yyb131 {
  12330. z.DecReadArrayEnd()
  12331. return
  12332. }
  12333. z.DecReadArrayElem()
  12334. if r.TryDecodeAsNil() {
  12335. x.TestStrucCommon.SstrUi64T = nil
  12336. } else {
  12337. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  12338. }
  12339. yyj131++
  12340. if yyhl131 {
  12341. yyb131 = yyj131 > l
  12342. } else {
  12343. yyb131 = r.CheckBreak()
  12344. }
  12345. if yyb131 {
  12346. z.DecReadArrayEnd()
  12347. return
  12348. }
  12349. z.DecReadArrayElem()
  12350. if r.TryDecodeAsNil() {
  12351. x.TestStrucCommon.MstrUi64T = nil
  12352. } else {
  12353. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  12354. }
  12355. yyj131++
  12356. if yyhl131 {
  12357. yyb131 = yyj131 > l
  12358. } else {
  12359. yyb131 = r.CheckBreak()
  12360. }
  12361. if yyb131 {
  12362. z.DecReadArrayEnd()
  12363. return
  12364. }
  12365. z.DecReadArrayElem()
  12366. if r.TryDecodeAsNil() {
  12367. x.TestStrucCommon.AnonInTestStruc.AS = ""
  12368. } else {
  12369. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  12370. }
  12371. yyj131++
  12372. if yyhl131 {
  12373. yyb131 = yyj131 > l
  12374. } else {
  12375. yyb131 = r.CheckBreak()
  12376. }
  12377. if yyb131 {
  12378. z.DecReadArrayEnd()
  12379. return
  12380. }
  12381. z.DecReadArrayElem()
  12382. if r.TryDecodeAsNil() {
  12383. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  12384. } else {
  12385. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  12386. }
  12387. yyj131++
  12388. if yyhl131 {
  12389. yyb131 = yyj131 > l
  12390. } else {
  12391. yyb131 = r.CheckBreak()
  12392. }
  12393. if yyb131 {
  12394. z.DecReadArrayEnd()
  12395. return
  12396. }
  12397. z.DecReadArrayElem()
  12398. if r.TryDecodeAsNil() {
  12399. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  12400. } else {
  12401. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12402. }
  12403. yyj131++
  12404. if yyhl131 {
  12405. yyb131 = yyj131 > l
  12406. } else {
  12407. yyb131 = r.CheckBreak()
  12408. }
  12409. if yyb131 {
  12410. z.DecReadArrayEnd()
  12411. return
  12412. }
  12413. z.DecReadArrayElem()
  12414. if r.TryDecodeAsNil() {
  12415. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  12416. } else {
  12417. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  12418. }
  12419. yyj131++
  12420. if yyhl131 {
  12421. yyb131 = yyj131 > l
  12422. } else {
  12423. yyb131 = r.CheckBreak()
  12424. }
  12425. if yyb131 {
  12426. z.DecReadArrayEnd()
  12427. return
  12428. }
  12429. z.DecReadArrayElem()
  12430. if r.TryDecodeAsNil() {
  12431. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  12432. } else {
  12433. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  12434. }
  12435. yyj131++
  12436. if yyhl131 {
  12437. yyb131 = yyj131 > l
  12438. } else {
  12439. yyb131 = r.CheckBreak()
  12440. }
  12441. if yyb131 {
  12442. z.DecReadArrayEnd()
  12443. return
  12444. }
  12445. z.DecReadArrayElem()
  12446. if r.TryDecodeAsNil() {
  12447. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  12448. } else {
  12449. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  12450. }
  12451. yyj131++
  12452. if yyhl131 {
  12453. yyb131 = yyj131 > l
  12454. } else {
  12455. yyb131 = r.CheckBreak()
  12456. }
  12457. if yyb131 {
  12458. z.DecReadArrayEnd()
  12459. return
  12460. }
  12461. z.DecReadArrayElem()
  12462. if r.TryDecodeAsNil() {
  12463. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  12464. } else {
  12465. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  12466. }
  12467. yyj131++
  12468. if yyhl131 {
  12469. yyb131 = yyj131 > l
  12470. } else {
  12471. yyb131 = r.CheckBreak()
  12472. }
  12473. if yyb131 {
  12474. z.DecReadArrayEnd()
  12475. return
  12476. }
  12477. z.DecReadArrayElem()
  12478. if r.TryDecodeAsNil() {
  12479. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  12480. } else {
  12481. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  12482. }
  12483. yyj131++
  12484. if yyhl131 {
  12485. yyb131 = yyj131 > l
  12486. } else {
  12487. yyb131 = r.CheckBreak()
  12488. }
  12489. if yyb131 {
  12490. z.DecReadArrayEnd()
  12491. return
  12492. }
  12493. z.DecReadArrayElem()
  12494. if r.TryDecodeAsNil() {
  12495. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  12496. } else {
  12497. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  12498. }
  12499. yyj131++
  12500. if yyhl131 {
  12501. yyb131 = yyj131 > l
  12502. } else {
  12503. yyb131 = r.CheckBreak()
  12504. }
  12505. if yyb131 {
  12506. z.DecReadArrayEnd()
  12507. return
  12508. }
  12509. z.DecReadArrayElem()
  12510. if r.TryDecodeAsNil() {
  12511. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  12512. } else {
  12513. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  12514. }
  12515. yyj131++
  12516. if yyhl131 {
  12517. yyb131 = yyj131 > l
  12518. } else {
  12519. yyb131 = r.CheckBreak()
  12520. }
  12521. if yyb131 {
  12522. z.DecReadArrayEnd()
  12523. return
  12524. }
  12525. z.DecReadArrayElem()
  12526. if r.TryDecodeAsNil() {
  12527. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  12528. } else {
  12529. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  12530. }
  12531. yyj131++
  12532. if yyhl131 {
  12533. yyb131 = yyj131 > l
  12534. } else {
  12535. yyb131 = r.CheckBreak()
  12536. }
  12537. if yyb131 {
  12538. z.DecReadArrayEnd()
  12539. return
  12540. }
  12541. z.DecReadArrayElem()
  12542. if r.TryDecodeAsNil() {
  12543. x.TestStrucCommon.AnonInTestStruc.AI64slice0 = nil
  12544. } else {
  12545. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  12546. }
  12547. yyj131++
  12548. if yyhl131 {
  12549. yyb131 = yyj131 > l
  12550. } else {
  12551. yyb131 = r.CheckBreak()
  12552. }
  12553. if yyb131 {
  12554. z.DecReadArrayEnd()
  12555. return
  12556. }
  12557. z.DecReadArrayElem()
  12558. if r.TryDecodeAsNil() {
  12559. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  12560. } else {
  12561. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  12562. }
  12563. yyj131++
  12564. if yyhl131 {
  12565. yyb131 = yyj131 > l
  12566. } else {
  12567. yyb131 = r.CheckBreak()
  12568. }
  12569. if yyb131 {
  12570. z.DecReadArrayEnd()
  12571. return
  12572. }
  12573. z.DecReadArrayElem()
  12574. if r.TryDecodeAsNil() {
  12575. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  12576. } else {
  12577. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  12578. }
  12579. yyj131++
  12580. if yyhl131 {
  12581. yyb131 = yyj131 > l
  12582. } else {
  12583. yyb131 = r.CheckBreak()
  12584. }
  12585. if yyb131 {
  12586. z.DecReadArrayEnd()
  12587. return
  12588. }
  12589. z.DecReadArrayElem()
  12590. if r.TryDecodeAsNil() {
  12591. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  12592. } else {
  12593. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  12594. }
  12595. yyj131++
  12596. if yyhl131 {
  12597. yyb131 = yyj131 > l
  12598. } else {
  12599. yyb131 = r.CheckBreak()
  12600. }
  12601. if yyb131 {
  12602. z.DecReadArrayEnd()
  12603. return
  12604. }
  12605. z.DecReadArrayElem()
  12606. if r.TryDecodeAsNil() {
  12607. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  12608. } else {
  12609. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  12610. }
  12611. yyj131++
  12612. if yyhl131 {
  12613. yyb131 = yyj131 > l
  12614. } else {
  12615. yyb131 = r.CheckBreak()
  12616. }
  12617. if yyb131 {
  12618. z.DecReadArrayEnd()
  12619. return
  12620. }
  12621. z.DecReadArrayElem()
  12622. if r.TryDecodeAsNil() {
  12623. x.TestStrucCommon.Nmap = nil
  12624. } else {
  12625. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  12626. }
  12627. yyj131++
  12628. if yyhl131 {
  12629. yyb131 = yyj131 > l
  12630. } else {
  12631. yyb131 = r.CheckBreak()
  12632. }
  12633. if yyb131 {
  12634. z.DecReadArrayEnd()
  12635. return
  12636. }
  12637. z.DecReadArrayElem()
  12638. if r.TryDecodeAsNil() {
  12639. x.TestStrucCommon.Nslice = nil
  12640. } else {
  12641. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  12642. }
  12643. yyj131++
  12644. if yyhl131 {
  12645. yyb131 = yyj131 > l
  12646. } else {
  12647. yyb131 = r.CheckBreak()
  12648. }
  12649. if yyb131 {
  12650. z.DecReadArrayEnd()
  12651. return
  12652. }
  12653. z.DecReadArrayElem()
  12654. if r.TryDecodeAsNil() {
  12655. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  12656. x.TestStrucCommon.Nint64 = nil
  12657. }
  12658. } else {
  12659. if x.TestStrucCommon.Nint64 == nil {
  12660. x.TestStrucCommon.Nint64 = new(int64)
  12661. }
  12662. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  12663. }
  12664. yyj131++
  12665. if yyhl131 {
  12666. yyb131 = yyj131 > l
  12667. } else {
  12668. yyb131 = r.CheckBreak()
  12669. }
  12670. if yyb131 {
  12671. z.DecReadArrayEnd()
  12672. return
  12673. }
  12674. z.DecReadArrayElem()
  12675. if r.TryDecodeAsNil() {
  12676. x.Chstr = nil
  12677. } else {
  12678. h.decChanstring((*chan string)(&x.Chstr), d)
  12679. }
  12680. yyj131++
  12681. if yyhl131 {
  12682. yyb131 = yyj131 > l
  12683. } else {
  12684. yyb131 = r.CheckBreak()
  12685. }
  12686. if yyb131 {
  12687. z.DecReadArrayEnd()
  12688. return
  12689. }
  12690. z.DecReadArrayElem()
  12691. if r.TryDecodeAsNil() {
  12692. x.Mis = nil
  12693. } else {
  12694. z.F.DecMapIntStringX(&x.Mis, d)
  12695. }
  12696. yyj131++
  12697. if yyhl131 {
  12698. yyb131 = yyj131 > l
  12699. } else {
  12700. yyb131 = r.CheckBreak()
  12701. }
  12702. if yyb131 {
  12703. z.DecReadArrayEnd()
  12704. return
  12705. }
  12706. z.DecReadArrayElem()
  12707. if r.TryDecodeAsNil() {
  12708. x.Mbu64 = nil
  12709. } else {
  12710. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  12711. }
  12712. yyj131++
  12713. if yyhl131 {
  12714. yyb131 = yyj131 > l
  12715. } else {
  12716. yyb131 = r.CheckBreak()
  12717. }
  12718. if yyb131 {
  12719. z.DecReadArrayEnd()
  12720. return
  12721. }
  12722. z.DecReadArrayElem()
  12723. if r.TryDecodeAsNil() {
  12724. x.Miwu64s = nil
  12725. } else {
  12726. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  12727. }
  12728. yyj131++
  12729. if yyhl131 {
  12730. yyb131 = yyj131 > l
  12731. } else {
  12732. yyb131 = r.CheckBreak()
  12733. }
  12734. if yyb131 {
  12735. z.DecReadArrayEnd()
  12736. return
  12737. }
  12738. z.DecReadArrayElem()
  12739. if r.TryDecodeAsNil() {
  12740. x.Mfwss = nil
  12741. } else {
  12742. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  12743. }
  12744. yyj131++
  12745. if yyhl131 {
  12746. yyb131 = yyj131 > l
  12747. } else {
  12748. yyb131 = r.CheckBreak()
  12749. }
  12750. if yyb131 {
  12751. z.DecReadArrayEnd()
  12752. return
  12753. }
  12754. z.DecReadArrayElem()
  12755. if r.TryDecodeAsNil() {
  12756. x.Mf32wss = nil
  12757. } else {
  12758. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  12759. }
  12760. yyj131++
  12761. if yyhl131 {
  12762. yyb131 = yyj131 > l
  12763. } else {
  12764. yyb131 = r.CheckBreak()
  12765. }
  12766. if yyb131 {
  12767. z.DecReadArrayEnd()
  12768. return
  12769. }
  12770. z.DecReadArrayElem()
  12771. if r.TryDecodeAsNil() {
  12772. x.Mui2wss = nil
  12773. } else {
  12774. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  12775. }
  12776. yyj131++
  12777. if yyhl131 {
  12778. yyb131 = yyj131 > l
  12779. } else {
  12780. yyb131 = r.CheckBreak()
  12781. }
  12782. if yyb131 {
  12783. z.DecReadArrayEnd()
  12784. return
  12785. }
  12786. z.DecReadArrayElem()
  12787. if r.TryDecodeAsNil() {
  12788. x.Msu2wss = nil
  12789. } else {
  12790. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  12791. }
  12792. yyj131++
  12793. if yyhl131 {
  12794. yyb131 = yyj131 > l
  12795. } else {
  12796. yyb131 = r.CheckBreak()
  12797. }
  12798. if yyb131 {
  12799. z.DecReadArrayEnd()
  12800. return
  12801. }
  12802. z.DecReadArrayElem()
  12803. if r.TryDecodeAsNil() {
  12804. x.Ci64 = 0
  12805. } else {
  12806. x.Ci64.CodecDecodeSelf(d)
  12807. }
  12808. yyj131++
  12809. if yyhl131 {
  12810. yyb131 = yyj131 > l
  12811. } else {
  12812. yyb131 = r.CheckBreak()
  12813. }
  12814. if yyb131 {
  12815. z.DecReadArrayEnd()
  12816. return
  12817. }
  12818. z.DecReadArrayElem()
  12819. if r.TryDecodeAsNil() {
  12820. x.Swrapbytes = nil
  12821. } else {
  12822. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  12823. }
  12824. yyj131++
  12825. if yyhl131 {
  12826. yyb131 = yyj131 > l
  12827. } else {
  12828. yyb131 = r.CheckBreak()
  12829. }
  12830. if yyb131 {
  12831. z.DecReadArrayEnd()
  12832. return
  12833. }
  12834. z.DecReadArrayElem()
  12835. if r.TryDecodeAsNil() {
  12836. x.Swrapuint8 = nil
  12837. } else {
  12838. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  12839. }
  12840. yyj131++
  12841. if yyhl131 {
  12842. yyb131 = yyj131 > l
  12843. } else {
  12844. yyb131 = r.CheckBreak()
  12845. }
  12846. if yyb131 {
  12847. z.DecReadArrayEnd()
  12848. return
  12849. }
  12850. z.DecReadArrayElem()
  12851. if r.TryDecodeAsNil() {
  12852. x.ArrStrUi64T = [4]stringUint64T{}
  12853. } else {
  12854. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  12855. }
  12856. yyj131++
  12857. if yyhl131 {
  12858. yyb131 = yyj131 > l
  12859. } else {
  12860. yyb131 = r.CheckBreak()
  12861. }
  12862. if yyb131 {
  12863. z.DecReadArrayEnd()
  12864. return
  12865. }
  12866. z.DecReadArrayElem()
  12867. if r.TryDecodeAsNil() {
  12868. x.Ui64array = [4]uint64{}
  12869. } else {
  12870. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  12871. }
  12872. yyj131++
  12873. if yyhl131 {
  12874. yyb131 = yyj131 > l
  12875. } else {
  12876. yyb131 = r.CheckBreak()
  12877. }
  12878. if yyb131 {
  12879. z.DecReadArrayEnd()
  12880. return
  12881. }
  12882. z.DecReadArrayElem()
  12883. if r.TryDecodeAsNil() {
  12884. x.Ui64slicearray = nil
  12885. } else {
  12886. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  12887. }
  12888. yyj131++
  12889. if yyhl131 {
  12890. yyb131 = yyj131 > l
  12891. } else {
  12892. yyb131 = r.CheckBreak()
  12893. }
  12894. if yyb131 {
  12895. z.DecReadArrayEnd()
  12896. return
  12897. }
  12898. z.DecReadArrayElem()
  12899. if r.TryDecodeAsNil() {
  12900. x.SintfAarray = nil
  12901. } else {
  12902. z.F.DecSliceIntfX(&x.SintfAarray, d)
  12903. }
  12904. yyj131++
  12905. if yyhl131 {
  12906. yyb131 = yyj131 > l
  12907. } else {
  12908. yyb131 = r.CheckBreak()
  12909. }
  12910. if yyb131 {
  12911. z.DecReadArrayEnd()
  12912. return
  12913. }
  12914. z.DecReadArrayElem()
  12915. if r.TryDecodeAsNil() {
  12916. x.MstrUi64TSelf = nil
  12917. } else {
  12918. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  12919. }
  12920. yyj131++
  12921. if yyhl131 {
  12922. yyb131 = yyj131 > l
  12923. } else {
  12924. yyb131 = r.CheckBreak()
  12925. }
  12926. if yyb131 {
  12927. z.DecReadArrayEnd()
  12928. return
  12929. }
  12930. z.DecReadArrayElem()
  12931. if r.TryDecodeAsNil() {
  12932. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12933. x.AnonInTestStrucIntf.Islice = nil
  12934. }
  12935. } else {
  12936. if x.AnonInTestStrucIntf == nil {
  12937. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12938. }
  12939. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  12940. }
  12941. yyj131++
  12942. if yyhl131 {
  12943. yyb131 = yyj131 > l
  12944. } else {
  12945. yyb131 = r.CheckBreak()
  12946. }
  12947. if yyb131 {
  12948. z.DecReadArrayEnd()
  12949. return
  12950. }
  12951. z.DecReadArrayElem()
  12952. if r.TryDecodeAsNil() {
  12953. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12954. x.AnonInTestStrucIntf.Ms = nil
  12955. }
  12956. } else {
  12957. if x.AnonInTestStrucIntf == nil {
  12958. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12959. }
  12960. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  12961. }
  12962. yyj131++
  12963. if yyhl131 {
  12964. yyb131 = yyj131 > l
  12965. } else {
  12966. yyb131 = r.CheckBreak()
  12967. }
  12968. if yyb131 {
  12969. z.DecReadArrayEnd()
  12970. return
  12971. }
  12972. z.DecReadArrayElem()
  12973. if r.TryDecodeAsNil() {
  12974. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12975. x.AnonInTestStrucIntf.Nintf = nil
  12976. }
  12977. } else {
  12978. if x.AnonInTestStrucIntf == nil {
  12979. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12980. }
  12981. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  12982. }
  12983. yyj131++
  12984. if yyhl131 {
  12985. yyb131 = yyj131 > l
  12986. } else {
  12987. yyb131 = r.CheckBreak()
  12988. }
  12989. if yyb131 {
  12990. z.DecReadArrayEnd()
  12991. return
  12992. }
  12993. z.DecReadArrayElem()
  12994. if r.TryDecodeAsNil() {
  12995. if x.AnonInTestStrucIntf != nil { // remove the if-true
  12996. x.AnonInTestStrucIntf.T = time.Time{}
  12997. }
  12998. } else {
  12999. if x.AnonInTestStrucIntf == nil {
  13000. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13001. }
  13002. if !z.DecBasicHandle().TimeNotBuiltin {
  13003. x.AnonInTestStrucIntf.T = r.DecodeTime()
  13004. } else if yyxt249 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt249 != nil {
  13005. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt249)
  13006. } else if z.DecBinary() {
  13007. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  13008. } else if !z.DecBinary() && z.IsJSONHandle() {
  13009. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  13010. } else {
  13011. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  13012. }
  13013. }
  13014. yyj131++
  13015. if yyhl131 {
  13016. yyb131 = yyj131 > l
  13017. } else {
  13018. yyb131 = r.CheckBreak()
  13019. }
  13020. if yyb131 {
  13021. z.DecReadArrayEnd()
  13022. return
  13023. }
  13024. z.DecReadArrayElem()
  13025. if r.TryDecodeAsNil() {
  13026. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  13027. x.AnonInTestStrucIntf.Tptr = nil
  13028. }
  13029. } else {
  13030. if x.AnonInTestStrucIntf == nil {
  13031. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13032. }
  13033. if x.AnonInTestStrucIntf.Tptr == nil {
  13034. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  13035. }
  13036. if !z.DecBasicHandle().TimeNotBuiltin {
  13037. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  13038. } else if yyxt251 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt251 != nil {
  13039. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt251)
  13040. } else if z.DecBinary() {
  13041. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  13042. } else if !z.DecBinary() && z.IsJSONHandle() {
  13043. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  13044. } else {
  13045. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  13046. }
  13047. }
  13048. yyj131++
  13049. if yyhl131 {
  13050. yyb131 = yyj131 > l
  13051. } else {
  13052. yyb131 = r.CheckBreak()
  13053. }
  13054. if yyb131 {
  13055. z.DecReadArrayEnd()
  13056. return
  13057. }
  13058. z.DecReadArrayElem()
  13059. if r.TryDecodeAsNil() {
  13060. x.Mtsptr = nil
  13061. } else {
  13062. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  13063. }
  13064. yyj131++
  13065. if yyhl131 {
  13066. yyb131 = yyj131 > l
  13067. } else {
  13068. yyb131 = r.CheckBreak()
  13069. }
  13070. if yyb131 {
  13071. z.DecReadArrayEnd()
  13072. return
  13073. }
  13074. z.DecReadArrayElem()
  13075. if r.TryDecodeAsNil() {
  13076. x.Mts = nil
  13077. } else {
  13078. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  13079. }
  13080. yyj131++
  13081. if yyhl131 {
  13082. yyb131 = yyj131 > l
  13083. } else {
  13084. yyb131 = r.CheckBreak()
  13085. }
  13086. if yyb131 {
  13087. z.DecReadArrayEnd()
  13088. return
  13089. }
  13090. z.DecReadArrayElem()
  13091. if r.TryDecodeAsNil() {
  13092. x.Its = nil
  13093. } else {
  13094. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  13095. }
  13096. yyj131++
  13097. if yyhl131 {
  13098. yyb131 = yyj131 > l
  13099. } else {
  13100. yyb131 = r.CheckBreak()
  13101. }
  13102. if yyb131 {
  13103. z.DecReadArrayEnd()
  13104. return
  13105. }
  13106. z.DecReadArrayElem()
  13107. if r.TryDecodeAsNil() {
  13108. if x.Nteststruc != nil { // remove the if-true
  13109. x.Nteststruc = nil
  13110. }
  13111. } else {
  13112. if x.Nteststruc == nil {
  13113. x.Nteststruc = new(TestStrucFlex)
  13114. }
  13115. x.Nteststruc.CodecDecodeSelf(d)
  13116. }
  13117. for {
  13118. yyj131++
  13119. if yyhl131 {
  13120. yyb131 = yyj131 > l
  13121. } else {
  13122. yyb131 = r.CheckBreak()
  13123. }
  13124. if yyb131 {
  13125. break
  13126. }
  13127. z.DecReadArrayElem()
  13128. z.DecStructFieldNotFound(yyj131-1, "")
  13129. }
  13130. }
  13131. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  13132. var h codecSelfer19780
  13133. z, r := GenHelperEncoder(e)
  13134. _, _, _ = h, z, r
  13135. if v == nil {
  13136. r.EncodeNil()
  13137. return
  13138. }
  13139. z.EncWriteArrayStart(len(v))
  13140. for _, yyv1 := range v {
  13141. z.EncWriteArrayElem()
  13142. r.EncodeUint(uint64(yyv1))
  13143. }
  13144. z.EncWriteArrayEnd()
  13145. }
  13146. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  13147. var h codecSelfer19780
  13148. z, r := GenHelperDecoder(d)
  13149. _, _, _ = h, z, r
  13150. yyv1 := *v
  13151. yyh1, yyl1 := z.DecSliceHelperStart()
  13152. var yyc1 bool
  13153. _ = yyc1
  13154. if yyl1 == 0 {
  13155. if yyv1 == nil {
  13156. yyv1 = []uint64{}
  13157. yyc1 = true
  13158. } else if len(yyv1) != 0 {
  13159. yyv1 = yyv1[:0]
  13160. yyc1 = true
  13161. }
  13162. } else {
  13163. yyhl1 := yyl1 > 0
  13164. var yyrl1 int
  13165. _ = yyrl1
  13166. if yyhl1 {
  13167. if yyl1 > cap(yyv1) {
  13168. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13169. if yyrl1 <= cap(yyv1) {
  13170. yyv1 = yyv1[:yyrl1]
  13171. } else {
  13172. yyv1 = make([]uint64, yyrl1)
  13173. }
  13174. yyc1 = true
  13175. } else if yyl1 != len(yyv1) {
  13176. yyv1 = yyv1[:yyl1]
  13177. yyc1 = true
  13178. }
  13179. }
  13180. var yyj1 int
  13181. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13182. if yyj1 == 0 && yyv1 == nil {
  13183. if yyhl1 {
  13184. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13185. } else {
  13186. yyrl1 = 8
  13187. }
  13188. yyv1 = make([]uint64, yyrl1)
  13189. yyc1 = true
  13190. }
  13191. yyh1.ElemContainerState(yyj1)
  13192. var yydb1 bool
  13193. if yyj1 >= len(yyv1) {
  13194. yyv1 = append(yyv1, 0)
  13195. yyc1 = true
  13196. }
  13197. if yydb1 {
  13198. z.DecSwallow()
  13199. } else {
  13200. if r.TryDecodeAsNil() {
  13201. yyv1[yyj1] = 0
  13202. } else {
  13203. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  13204. }
  13205. }
  13206. }
  13207. if yyj1 < len(yyv1) {
  13208. yyv1 = yyv1[:yyj1]
  13209. yyc1 = true
  13210. } else if yyj1 == 0 && yyv1 == nil {
  13211. yyv1 = make([]uint64, 0)
  13212. yyc1 = true
  13213. }
  13214. }
  13215. yyh1.End()
  13216. if yyc1 {
  13217. *v = yyv1
  13218. }
  13219. }
  13220. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  13221. var h codecSelfer19780
  13222. z, r := GenHelperEncoder(e)
  13223. _, _, _ = h, z, r
  13224. if v == nil {
  13225. r.EncodeNil()
  13226. return
  13227. }
  13228. z.EncWriteArrayStart(len(v))
  13229. for _, yyv1 := range v {
  13230. z.EncWriteArrayElem()
  13231. if z.EncBasicHandle().StringToRaw {
  13232. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  13233. } else {
  13234. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  13235. }
  13236. }
  13237. z.EncWriteArrayEnd()
  13238. }
  13239. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  13240. var h codecSelfer19780
  13241. z, r := GenHelperDecoder(d)
  13242. _, _, _ = h, z, r
  13243. yyv1 := *v
  13244. yyh1, yyl1 := z.DecSliceHelperStart()
  13245. var yyc1 bool
  13246. _ = yyc1
  13247. if yyl1 == 0 {
  13248. if yyv1 == nil {
  13249. yyv1 = []string{}
  13250. yyc1 = true
  13251. } else if len(yyv1) != 0 {
  13252. yyv1 = yyv1[:0]
  13253. yyc1 = true
  13254. }
  13255. } else {
  13256. yyhl1 := yyl1 > 0
  13257. var yyrl1 int
  13258. _ = yyrl1
  13259. if yyhl1 {
  13260. if yyl1 > cap(yyv1) {
  13261. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  13262. if yyrl1 <= cap(yyv1) {
  13263. yyv1 = yyv1[:yyrl1]
  13264. } else {
  13265. yyv1 = make([]string, yyrl1)
  13266. }
  13267. yyc1 = true
  13268. } else if yyl1 != len(yyv1) {
  13269. yyv1 = yyv1[:yyl1]
  13270. yyc1 = true
  13271. }
  13272. }
  13273. var yyj1 int
  13274. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13275. if yyj1 == 0 && yyv1 == nil {
  13276. if yyhl1 {
  13277. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  13278. } else {
  13279. yyrl1 = 8
  13280. }
  13281. yyv1 = make([]string, yyrl1)
  13282. yyc1 = true
  13283. }
  13284. yyh1.ElemContainerState(yyj1)
  13285. var yydb1 bool
  13286. if yyj1 >= len(yyv1) {
  13287. yyv1 = append(yyv1, "")
  13288. yyc1 = true
  13289. }
  13290. if yydb1 {
  13291. z.DecSwallow()
  13292. } else {
  13293. if r.TryDecodeAsNil() {
  13294. yyv1[yyj1] = ""
  13295. } else {
  13296. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  13297. }
  13298. }
  13299. }
  13300. if yyj1 < len(yyv1) {
  13301. yyv1 = yyv1[:yyj1]
  13302. yyc1 = true
  13303. } else if yyj1 == 0 && yyv1 == nil {
  13304. yyv1 = make([]string, 0)
  13305. yyc1 = true
  13306. }
  13307. }
  13308. yyh1.End()
  13309. if yyc1 {
  13310. *v = yyv1
  13311. }
  13312. }
  13313. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  13314. var h codecSelfer19780
  13315. z, r := GenHelperEncoder(e)
  13316. _, _, _ = h, z, r
  13317. if v == nil {
  13318. r.EncodeNil()
  13319. return
  13320. }
  13321. z.EncWriteArrayStart(len(v))
  13322. for _, yyv1 := range v {
  13323. z.EncWriteArrayElem()
  13324. yyv1.CodecEncodeSelf(e)
  13325. }
  13326. z.EncWriteArrayEnd()
  13327. }
  13328. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  13329. var h codecSelfer19780
  13330. z, r := GenHelperDecoder(d)
  13331. _, _, _ = h, z, r
  13332. yyv1 := *v
  13333. yyh1, yyl1 := z.DecSliceHelperStart()
  13334. var yyc1 bool
  13335. _ = yyc1
  13336. if yyl1 == 0 {
  13337. if yyv1 == nil {
  13338. yyv1 = []wrapUint64{}
  13339. yyc1 = true
  13340. } else if len(yyv1) != 0 {
  13341. yyv1 = yyv1[:0]
  13342. yyc1 = true
  13343. }
  13344. } else {
  13345. yyhl1 := yyl1 > 0
  13346. var yyrl1 int
  13347. _ = yyrl1
  13348. if yyhl1 {
  13349. if yyl1 > cap(yyv1) {
  13350. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13351. if yyrl1 <= cap(yyv1) {
  13352. yyv1 = yyv1[:yyrl1]
  13353. } else {
  13354. yyv1 = make([]wrapUint64, yyrl1)
  13355. }
  13356. yyc1 = true
  13357. } else if yyl1 != len(yyv1) {
  13358. yyv1 = yyv1[:yyl1]
  13359. yyc1 = true
  13360. }
  13361. }
  13362. var yyj1 int
  13363. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13364. if yyj1 == 0 && yyv1 == nil {
  13365. if yyhl1 {
  13366. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13367. } else {
  13368. yyrl1 = 8
  13369. }
  13370. yyv1 = make([]wrapUint64, yyrl1)
  13371. yyc1 = true
  13372. }
  13373. yyh1.ElemContainerState(yyj1)
  13374. var yydb1 bool
  13375. if yyj1 >= len(yyv1) {
  13376. yyv1 = append(yyv1, 0)
  13377. yyc1 = true
  13378. }
  13379. if yydb1 {
  13380. z.DecSwallow()
  13381. } else {
  13382. if r.TryDecodeAsNil() {
  13383. yyv1[yyj1] = 0
  13384. } else {
  13385. yyv1[yyj1].CodecDecodeSelf(d)
  13386. }
  13387. }
  13388. }
  13389. if yyj1 < len(yyv1) {
  13390. yyv1 = yyv1[:yyj1]
  13391. yyc1 = true
  13392. } else if yyj1 == 0 && yyv1 == nil {
  13393. yyv1 = make([]wrapUint64, 0)
  13394. yyc1 = true
  13395. }
  13396. }
  13397. yyh1.End()
  13398. if yyc1 {
  13399. *v = yyv1
  13400. }
  13401. }
  13402. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  13403. var h codecSelfer19780
  13404. z, r := GenHelperEncoder(e)
  13405. _, _, _ = h, z, r
  13406. if v == nil {
  13407. r.EncodeNil()
  13408. return
  13409. }
  13410. z.EncWriteArrayStart(len(v))
  13411. for _, yyv1 := range v {
  13412. z.EncWriteArrayElem()
  13413. yyv1.CodecEncodeSelf(e)
  13414. }
  13415. z.EncWriteArrayEnd()
  13416. }
  13417. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  13418. var h codecSelfer19780
  13419. z, r := GenHelperDecoder(d)
  13420. _, _, _ = h, z, r
  13421. yyv1 := *v
  13422. yyh1, yyl1 := z.DecSliceHelperStart()
  13423. var yyc1 bool
  13424. _ = yyc1
  13425. if yyl1 == 0 {
  13426. if yyv1 == nil {
  13427. yyv1 = []wrapString{}
  13428. yyc1 = true
  13429. } else if len(yyv1) != 0 {
  13430. yyv1 = yyv1[:0]
  13431. yyc1 = true
  13432. }
  13433. } else {
  13434. yyhl1 := yyl1 > 0
  13435. var yyrl1 int
  13436. _ = yyrl1
  13437. if yyhl1 {
  13438. if yyl1 > cap(yyv1) {
  13439. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  13440. if yyrl1 <= cap(yyv1) {
  13441. yyv1 = yyv1[:yyrl1]
  13442. } else {
  13443. yyv1 = make([]wrapString, yyrl1)
  13444. }
  13445. yyc1 = true
  13446. } else if yyl1 != len(yyv1) {
  13447. yyv1 = yyv1[:yyl1]
  13448. yyc1 = true
  13449. }
  13450. }
  13451. var yyj1 int
  13452. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13453. if yyj1 == 0 && yyv1 == nil {
  13454. if yyhl1 {
  13455. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  13456. } else {
  13457. yyrl1 = 8
  13458. }
  13459. yyv1 = make([]wrapString, yyrl1)
  13460. yyc1 = true
  13461. }
  13462. yyh1.ElemContainerState(yyj1)
  13463. var yydb1 bool
  13464. if yyj1 >= len(yyv1) {
  13465. yyv1 = append(yyv1, "")
  13466. yyc1 = true
  13467. }
  13468. if yydb1 {
  13469. z.DecSwallow()
  13470. } else {
  13471. if r.TryDecodeAsNil() {
  13472. yyv1[yyj1] = ""
  13473. } else {
  13474. yyv1[yyj1].CodecDecodeSelf(d)
  13475. }
  13476. }
  13477. }
  13478. if yyj1 < len(yyv1) {
  13479. yyv1 = yyv1[:yyj1]
  13480. yyc1 = true
  13481. } else if yyj1 == 0 && yyv1 == nil {
  13482. yyv1 = make([]wrapString, 0)
  13483. yyc1 = true
  13484. }
  13485. }
  13486. yyh1.End()
  13487. if yyc1 {
  13488. *v = yyv1
  13489. }
  13490. }
  13491. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  13492. var h codecSelfer19780
  13493. z, r := GenHelperEncoder(e)
  13494. _, _, _ = h, z, r
  13495. if v == nil {
  13496. r.EncodeNil()
  13497. return
  13498. }
  13499. z.EncWriteMapStart(len(v))
  13500. for yyk1, yyv1 := range v {
  13501. z.EncWriteMapElemKey()
  13502. if z.EncBasicHandle().StringToRaw {
  13503. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13504. } else {
  13505. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13506. }
  13507. z.EncWriteMapElemValue()
  13508. r.EncodeUint(uint64(yyv1))
  13509. }
  13510. z.EncWriteMapEnd()
  13511. }
  13512. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  13513. var h codecSelfer19780
  13514. z, r := GenHelperDecoder(d)
  13515. _, _, _ = h, z, r
  13516. yyv1 := *v
  13517. yyl1 := z.DecReadMapStart()
  13518. yybh1 := z.DecBasicHandle()
  13519. if yyv1 == nil {
  13520. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  13521. yyv1 = make(map[string]uint16, yyrl1)
  13522. *v = yyv1
  13523. }
  13524. var yymk1 string
  13525. var yymv1 uint16
  13526. var yymg1, yymdn1 bool
  13527. if yybh1.MapValueReset {
  13528. }
  13529. if yyl1 != 0 {
  13530. yyhl1 := yyl1 > 0
  13531. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13532. z.DecReadMapElemKey()
  13533. if r.TryDecodeAsNil() {
  13534. yymk1 = ""
  13535. } else {
  13536. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13537. }
  13538. if yymg1 {
  13539. yymv1 = yyv1[yymk1]
  13540. }
  13541. z.DecReadMapElemValue()
  13542. yymdn1 = false
  13543. if r.TryDecodeAsNil() {
  13544. yymdn1 = true
  13545. } else {
  13546. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  13547. }
  13548. if yymdn1 {
  13549. if yybh1.DeleteOnNilMapValue {
  13550. delete(yyv1, yymk1)
  13551. } else {
  13552. yyv1[yymk1] = 0
  13553. }
  13554. } else if yyv1 != nil {
  13555. yyv1[yymk1] = yymv1
  13556. }
  13557. }
  13558. } // else len==0: TODO: Should we clear map entries?
  13559. z.DecReadMapEnd()
  13560. }
  13561. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  13562. var h codecSelfer19780
  13563. z, r := GenHelperEncoder(e)
  13564. _, _, _ = h, z, r
  13565. if v == nil {
  13566. r.EncodeNil()
  13567. return
  13568. }
  13569. z.EncWriteArrayStart(len(v))
  13570. for _, yyv1 := range v {
  13571. z.EncWriteArrayElem()
  13572. r.EncodeInt(int64(yyv1))
  13573. }
  13574. z.EncWriteArrayEnd()
  13575. }
  13576. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  13577. var h codecSelfer19780
  13578. z, r := GenHelperDecoder(d)
  13579. _, _, _ = h, z, r
  13580. yyv1 := v
  13581. yyh1, yyl1 := z.DecSliceHelperStart()
  13582. if yyl1 == 0 {
  13583. } else {
  13584. yyhl1 := yyl1 > 0
  13585. var yyrl1 int
  13586. _ = yyrl1
  13587. var yyj1 int
  13588. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13589. yyh1.ElemContainerState(yyj1)
  13590. var yydb1 bool
  13591. if yyj1 >= len(yyv1) {
  13592. z.DecArrayCannotExpand(len(v), yyj1+1)
  13593. yydb1 = true
  13594. }
  13595. if yydb1 {
  13596. z.DecSwallow()
  13597. } else {
  13598. if r.TryDecodeAsNil() {
  13599. yyv1[yyj1] = 0
  13600. } else {
  13601. yyv1[yyj1] = (int64)(r.DecodeInt64())
  13602. }
  13603. }
  13604. }
  13605. }
  13606. yyh1.End()
  13607. }
  13608. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  13609. var h codecSelfer19780
  13610. z, r := GenHelperEncoder(e)
  13611. _, _, _ = h, z, r
  13612. if v == nil {
  13613. r.EncodeNil()
  13614. return
  13615. }
  13616. z.EncWriteArrayStart(len(v))
  13617. for _, yyv1 := range v {
  13618. z.EncWriteArrayElem()
  13619. if yyv1 == nil {
  13620. r.EncodeNil()
  13621. } else { // checkNil=true
  13622. yy2 := *yyv1
  13623. r.EncodeInt(int64(yy2))
  13624. } // checkNil=true
  13625. }
  13626. z.EncWriteArrayEnd()
  13627. }
  13628. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  13629. var h codecSelfer19780
  13630. z, r := GenHelperDecoder(d)
  13631. _, _, _ = h, z, r
  13632. yyv1 := *v
  13633. yyh1, yyl1 := z.DecSliceHelperStart()
  13634. var yyc1 bool
  13635. _ = yyc1
  13636. if yyl1 == 0 {
  13637. if yyv1 == nil {
  13638. yyv1 = []*int64{}
  13639. yyc1 = true
  13640. } else if len(yyv1) != 0 {
  13641. yyv1 = yyv1[:0]
  13642. yyc1 = true
  13643. }
  13644. } else {
  13645. yyhl1 := yyl1 > 0
  13646. var yyrl1 int
  13647. _ = yyrl1
  13648. if yyhl1 {
  13649. if yyl1 > cap(yyv1) {
  13650. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13651. if yyrl1 <= cap(yyv1) {
  13652. yyv1 = yyv1[:yyrl1]
  13653. } else {
  13654. yyv1 = make([]*int64, yyrl1)
  13655. }
  13656. yyc1 = true
  13657. } else if yyl1 != len(yyv1) {
  13658. yyv1 = yyv1[:yyl1]
  13659. yyc1 = true
  13660. }
  13661. }
  13662. var yyj1 int
  13663. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13664. if yyj1 == 0 && yyv1 == nil {
  13665. if yyhl1 {
  13666. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13667. } else {
  13668. yyrl1 = 8
  13669. }
  13670. yyv1 = make([]*int64, yyrl1)
  13671. yyc1 = true
  13672. }
  13673. yyh1.ElemContainerState(yyj1)
  13674. var yydb1 bool
  13675. if yyj1 >= len(yyv1) {
  13676. yyv1 = append(yyv1, nil)
  13677. yyc1 = true
  13678. }
  13679. if yydb1 {
  13680. z.DecSwallow()
  13681. } else {
  13682. if r.TryDecodeAsNil() {
  13683. yyv1[yyj1] = nil
  13684. } else {
  13685. if yyv1[yyj1] == nil {
  13686. yyv1[yyj1] = new(int64)
  13687. }
  13688. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  13689. }
  13690. }
  13691. }
  13692. if yyj1 < len(yyv1) {
  13693. yyv1 = yyv1[:yyj1]
  13694. yyc1 = true
  13695. } else if yyj1 == 0 && yyv1 == nil {
  13696. yyv1 = make([]*int64, 0)
  13697. yyc1 = true
  13698. }
  13699. }
  13700. yyh1.End()
  13701. if yyc1 {
  13702. *v = yyv1
  13703. }
  13704. }
  13705. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  13706. var h codecSelfer19780
  13707. z, r := GenHelperEncoder(e)
  13708. _, _, _ = h, z, r
  13709. if v == nil {
  13710. r.EncodeNil()
  13711. return
  13712. }
  13713. z.EncWriteArrayStart(len(v))
  13714. for _, yyv1 := range v {
  13715. z.EncWriteArrayElem()
  13716. yy2 := &yyv1
  13717. yy2.CodecEncodeSelf(e)
  13718. }
  13719. z.EncWriteArrayEnd()
  13720. }
  13721. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  13722. var h codecSelfer19780
  13723. z, r := GenHelperDecoder(d)
  13724. _, _, _ = h, z, r
  13725. yyv1 := *v
  13726. yyh1, yyl1 := z.DecSliceHelperStart()
  13727. var yyc1 bool
  13728. _ = yyc1
  13729. if yyl1 == 0 {
  13730. if yyv1 == nil {
  13731. yyv1 = []stringUint64T{}
  13732. yyc1 = true
  13733. } else if len(yyv1) != 0 {
  13734. yyv1 = yyv1[:0]
  13735. yyc1 = true
  13736. }
  13737. } else {
  13738. yyhl1 := yyl1 > 0
  13739. var yyrl1 int
  13740. _ = yyrl1
  13741. if yyhl1 {
  13742. if yyl1 > cap(yyv1) {
  13743. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13744. if yyrl1 <= cap(yyv1) {
  13745. yyv1 = yyv1[:yyrl1]
  13746. } else {
  13747. yyv1 = make([]stringUint64T, yyrl1)
  13748. }
  13749. yyc1 = true
  13750. } else if yyl1 != len(yyv1) {
  13751. yyv1 = yyv1[:yyl1]
  13752. yyc1 = true
  13753. }
  13754. }
  13755. var yyj1 int
  13756. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13757. if yyj1 == 0 && yyv1 == nil {
  13758. if yyhl1 {
  13759. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13760. } else {
  13761. yyrl1 = 8
  13762. }
  13763. yyv1 = make([]stringUint64T, yyrl1)
  13764. yyc1 = true
  13765. }
  13766. yyh1.ElemContainerState(yyj1)
  13767. var yydb1 bool
  13768. if yyj1 >= len(yyv1) {
  13769. yyv1 = append(yyv1, stringUint64T{})
  13770. yyc1 = true
  13771. }
  13772. if yydb1 {
  13773. z.DecSwallow()
  13774. } else {
  13775. if r.TryDecodeAsNil() {
  13776. yyv1[yyj1] = stringUint64T{}
  13777. } else {
  13778. yyv1[yyj1].CodecDecodeSelf(d)
  13779. }
  13780. }
  13781. }
  13782. if yyj1 < len(yyv1) {
  13783. yyv1 = yyv1[:yyj1]
  13784. yyc1 = true
  13785. } else if yyj1 == 0 && yyv1 == nil {
  13786. yyv1 = make([]stringUint64T, 0)
  13787. yyc1 = true
  13788. }
  13789. }
  13790. yyh1.End()
  13791. if yyc1 {
  13792. *v = yyv1
  13793. }
  13794. }
  13795. func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
  13796. var h codecSelfer19780
  13797. z, r := GenHelperEncoder(e)
  13798. _, _, _ = h, z, r
  13799. if v == nil {
  13800. r.EncodeNil()
  13801. return
  13802. }
  13803. z.EncWriteMapStart(len(v))
  13804. for yyk1, yyv1 := range v {
  13805. z.EncWriteMapElemKey()
  13806. if z.EncBasicHandle().StringToRaw {
  13807. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13808. } else {
  13809. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13810. }
  13811. z.EncWriteMapElemValue()
  13812. if yyv1 == nil {
  13813. r.EncodeNil()
  13814. } else { // checkNil=true
  13815. yyv1.CodecEncodeSelf(e)
  13816. } // checkNil=true
  13817. }
  13818. z.EncWriteMapEnd()
  13819. }
  13820. func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
  13821. var h codecSelfer19780
  13822. z, r := GenHelperDecoder(d)
  13823. _, _, _ = h, z, r
  13824. yyv1 := *v
  13825. yyl1 := z.DecReadMapStart()
  13826. yybh1 := z.DecBasicHandle()
  13827. if yyv1 == nil {
  13828. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  13829. yyv1 = make(map[string]*stringUint64T, yyrl1)
  13830. *v = yyv1
  13831. }
  13832. var yymk1 string
  13833. var yymv1 *stringUint64T
  13834. var yymg1, yymdn1, yyms1, yymok1 bool
  13835. if yybh1.MapValueReset {
  13836. yymg1 = true
  13837. }
  13838. if yyl1 != 0 {
  13839. yyhl1 := yyl1 > 0
  13840. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13841. z.DecReadMapElemKey()
  13842. if r.TryDecodeAsNil() {
  13843. yymk1 = ""
  13844. } else {
  13845. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13846. }
  13847. yyms1 = true
  13848. if yymg1 {
  13849. yymv1, yymok1 = yyv1[yymk1]
  13850. if yymok1 {
  13851. yyms1 = false
  13852. }
  13853. } else {
  13854. yymv1 = nil
  13855. }
  13856. z.DecReadMapElemValue()
  13857. yymdn1 = false
  13858. if r.TryDecodeAsNil() {
  13859. yymdn1 = true
  13860. } else {
  13861. if yymv1 == nil {
  13862. yymv1 = new(stringUint64T)
  13863. }
  13864. yymv1.CodecDecodeSelf(d)
  13865. }
  13866. if yymdn1 {
  13867. if yybh1.DeleteOnNilMapValue {
  13868. delete(yyv1, yymk1)
  13869. } else {
  13870. yyv1[yymk1] = nil
  13871. }
  13872. } else if yyms1 && yyv1 != nil {
  13873. yyv1[yymk1] = yymv1
  13874. }
  13875. }
  13876. } // else len==0: TODO: Should we clear map entries?
  13877. z.DecReadMapEnd()
  13878. }
  13879. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  13880. var h codecSelfer19780
  13881. z, r := GenHelperEncoder(e)
  13882. _, _, _ = h, z, r
  13883. if v == nil {
  13884. r.EncodeNil()
  13885. return
  13886. }
  13887. z.EncWriteMapStart(len(v))
  13888. for yyk1, yyv1 := range v {
  13889. z.EncWriteMapElemKey()
  13890. if z.EncBasicHandle().StringToRaw {
  13891. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13892. } else {
  13893. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13894. }
  13895. z.EncWriteMapElemValue()
  13896. if yyv1 == nil {
  13897. r.EncodeNil()
  13898. } else { // checkNil=true
  13899. yyv1.CodecEncodeSelf(e)
  13900. } // checkNil=true
  13901. }
  13902. z.EncWriteMapEnd()
  13903. }
  13904. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  13905. var h codecSelfer19780
  13906. z, r := GenHelperDecoder(d)
  13907. _, _, _ = h, z, r
  13908. yyv1 := *v
  13909. yyl1 := z.DecReadMapStart()
  13910. yybh1 := z.DecBasicHandle()
  13911. if yyv1 == nil {
  13912. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  13913. yyv1 = make(map[string]*TestStruc, yyrl1)
  13914. *v = yyv1
  13915. }
  13916. var yymk1 string
  13917. var yymv1 *TestStruc
  13918. var yymg1, yymdn1, yyms1, yymok1 bool
  13919. if yybh1.MapValueReset {
  13920. yymg1 = true
  13921. }
  13922. if yyl1 != 0 {
  13923. yyhl1 := yyl1 > 0
  13924. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13925. z.DecReadMapElemKey()
  13926. if r.TryDecodeAsNil() {
  13927. yymk1 = ""
  13928. } else {
  13929. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13930. }
  13931. yyms1 = true
  13932. if yymg1 {
  13933. yymv1, yymok1 = yyv1[yymk1]
  13934. if yymok1 {
  13935. yyms1 = false
  13936. }
  13937. } else {
  13938. yymv1 = nil
  13939. }
  13940. z.DecReadMapElemValue()
  13941. yymdn1 = false
  13942. if r.TryDecodeAsNil() {
  13943. yymdn1 = true
  13944. } else {
  13945. if yymv1 == nil {
  13946. yymv1 = new(TestStruc)
  13947. }
  13948. yymv1.CodecDecodeSelf(d)
  13949. }
  13950. if yymdn1 {
  13951. if yybh1.DeleteOnNilMapValue {
  13952. delete(yyv1, yymk1)
  13953. } else {
  13954. yyv1[yymk1] = nil
  13955. }
  13956. } else if yyms1 && yyv1 != nil {
  13957. yyv1[yymk1] = yymv1
  13958. }
  13959. }
  13960. } // else len==0: TODO: Should we clear map entries?
  13961. z.DecReadMapEnd()
  13962. }
  13963. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  13964. var h codecSelfer19780
  13965. z, r := GenHelperEncoder(e)
  13966. _, _, _ = h, z, r
  13967. if v == nil {
  13968. r.EncodeNil()
  13969. return
  13970. }
  13971. z.EncWriteMapStart(len(v))
  13972. for yyk1, yyv1 := range v {
  13973. z.EncWriteMapElemKey()
  13974. if z.EncBasicHandle().StringToRaw {
  13975. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13976. } else {
  13977. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13978. }
  13979. z.EncWriteMapElemValue()
  13980. yy3 := &yyv1
  13981. yy3.CodecEncodeSelf(e)
  13982. }
  13983. z.EncWriteMapEnd()
  13984. }
  13985. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  13986. var h codecSelfer19780
  13987. z, r := GenHelperDecoder(d)
  13988. _, _, _ = h, z, r
  13989. yyv1 := *v
  13990. yyl1 := z.DecReadMapStart()
  13991. yybh1 := z.DecBasicHandle()
  13992. if yyv1 == nil {
  13993. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1224)
  13994. yyv1 = make(map[string]TestStruc, yyrl1)
  13995. *v = yyv1
  13996. }
  13997. var yymk1 string
  13998. var yymv1 TestStruc
  13999. var yymg1, yymdn1 bool
  14000. if yybh1.MapValueReset {
  14001. yymg1 = true
  14002. }
  14003. if yyl1 != 0 {
  14004. yyhl1 := yyl1 > 0
  14005. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14006. z.DecReadMapElemKey()
  14007. if r.TryDecodeAsNil() {
  14008. yymk1 = ""
  14009. } else {
  14010. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  14011. }
  14012. if yymg1 {
  14013. yymv1 = yyv1[yymk1]
  14014. } else {
  14015. yymv1 = TestStruc{}
  14016. }
  14017. z.DecReadMapElemValue()
  14018. yymdn1 = false
  14019. if r.TryDecodeAsNil() {
  14020. yymdn1 = true
  14021. } else {
  14022. yymv1.CodecDecodeSelf(d)
  14023. }
  14024. if yymdn1 {
  14025. if yybh1.DeleteOnNilMapValue {
  14026. delete(yyv1, yymk1)
  14027. } else {
  14028. yyv1[yymk1] = TestStruc{}
  14029. }
  14030. } else if yyv1 != nil {
  14031. yyv1[yymk1] = yymv1
  14032. }
  14033. }
  14034. } // else len==0: TODO: Should we clear map entries?
  14035. z.DecReadMapEnd()
  14036. }
  14037. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  14038. var h codecSelfer19780
  14039. z, r := GenHelperEncoder(e)
  14040. _, _, _ = h, z, r
  14041. if v == nil {
  14042. r.EncodeNil()
  14043. return
  14044. }
  14045. z.EncWriteArrayStart(len(v))
  14046. for _, yyv1 := range v {
  14047. z.EncWriteArrayElem()
  14048. if yyv1 == nil {
  14049. r.EncodeNil()
  14050. } else { // checkNil=true
  14051. yyv1.CodecEncodeSelf(e)
  14052. } // checkNil=true
  14053. }
  14054. z.EncWriteArrayEnd()
  14055. }
  14056. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  14057. var h codecSelfer19780
  14058. z, r := GenHelperDecoder(d)
  14059. _, _, _ = h, z, r
  14060. yyv1 := *v
  14061. yyh1, yyl1 := z.DecSliceHelperStart()
  14062. var yyc1 bool
  14063. _ = yyc1
  14064. if yyl1 == 0 {
  14065. if yyv1 == nil {
  14066. yyv1 = []*TestStruc{}
  14067. yyc1 = true
  14068. } else if len(yyv1) != 0 {
  14069. yyv1 = yyv1[:0]
  14070. yyc1 = true
  14071. }
  14072. } else {
  14073. yyhl1 := yyl1 > 0
  14074. var yyrl1 int
  14075. _ = yyrl1
  14076. if yyhl1 {
  14077. if yyl1 > cap(yyv1) {
  14078. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14079. if yyrl1 <= cap(yyv1) {
  14080. yyv1 = yyv1[:yyrl1]
  14081. } else {
  14082. yyv1 = make([]*TestStruc, yyrl1)
  14083. }
  14084. yyc1 = true
  14085. } else if yyl1 != len(yyv1) {
  14086. yyv1 = yyv1[:yyl1]
  14087. yyc1 = true
  14088. }
  14089. }
  14090. var yyj1 int
  14091. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14092. if yyj1 == 0 && yyv1 == nil {
  14093. if yyhl1 {
  14094. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14095. } else {
  14096. yyrl1 = 8
  14097. }
  14098. yyv1 = make([]*TestStruc, yyrl1)
  14099. yyc1 = true
  14100. }
  14101. yyh1.ElemContainerState(yyj1)
  14102. var yydb1 bool
  14103. if yyj1 >= len(yyv1) {
  14104. yyv1 = append(yyv1, nil)
  14105. yyc1 = true
  14106. }
  14107. if yydb1 {
  14108. z.DecSwallow()
  14109. } else {
  14110. if r.TryDecodeAsNil() {
  14111. yyv1[yyj1] = nil
  14112. } else {
  14113. if yyv1[yyj1] == nil {
  14114. yyv1[yyj1] = new(TestStruc)
  14115. }
  14116. yyv1[yyj1].CodecDecodeSelf(d)
  14117. }
  14118. }
  14119. }
  14120. if yyj1 < len(yyv1) {
  14121. yyv1 = yyv1[:yyj1]
  14122. yyc1 = true
  14123. } else if yyj1 == 0 && yyv1 == nil {
  14124. yyv1 = make([]*TestStruc, 0)
  14125. yyc1 = true
  14126. }
  14127. }
  14128. yyh1.End()
  14129. if yyc1 {
  14130. *v = yyv1
  14131. }
  14132. }
  14133. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  14134. var h codecSelfer19780
  14135. z, r := GenHelperEncoder(e)
  14136. _, _, _ = h, z, r
  14137. if v == nil {
  14138. r.EncodeNil()
  14139. return
  14140. }
  14141. z.EncWriteArrayStart(len(v))
  14142. for _, yyv1 := range v {
  14143. z.EncWriteArrayElem()
  14144. if z.EncBasicHandle().StringToRaw {
  14145. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14146. } else {
  14147. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14148. }
  14149. }
  14150. z.EncWriteArrayEnd()
  14151. }
  14152. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  14153. var h codecSelfer19780
  14154. z, r := GenHelperDecoder(d)
  14155. _, _, _ = h, z, r
  14156. yyv1 := v
  14157. yyh1, yyl1 := z.DecSliceHelperStart()
  14158. if yyl1 == 0 {
  14159. } else {
  14160. yyhl1 := yyl1 > 0
  14161. var yyrl1 int
  14162. _ = yyrl1
  14163. var yyj1 int
  14164. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14165. yyh1.ElemContainerState(yyj1)
  14166. var yydb1 bool
  14167. if yyj1 >= len(yyv1) {
  14168. z.DecArrayCannotExpand(len(v), yyj1+1)
  14169. yydb1 = true
  14170. }
  14171. if yydb1 {
  14172. z.DecSwallow()
  14173. } else {
  14174. if r.TryDecodeAsNil() {
  14175. yyv1[yyj1] = ""
  14176. } else {
  14177. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  14178. }
  14179. }
  14180. }
  14181. }
  14182. yyh1.End()
  14183. }
  14184. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  14185. var h codecSelfer19780
  14186. z, r := GenHelperEncoder(e)
  14187. _, _, _ = h, z, r
  14188. if v == nil {
  14189. r.EncodeNil()
  14190. return
  14191. }
  14192. r.EncodeStringBytesRaw([]byte(v))
  14193. }
  14194. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  14195. var h codecSelfer19780
  14196. z, r := GenHelperDecoder(d)
  14197. _, _, _ = h, z, r
  14198. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  14199. }
  14200. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  14201. var h codecSelfer19780
  14202. z, r := GenHelperEncoder(e)
  14203. _, _, _ = h, z, r
  14204. if v == nil {
  14205. r.EncodeNil()
  14206. return
  14207. }
  14208. if v == nil {
  14209. r.EncodeNil()
  14210. } else {
  14211. var sch1 []string
  14212. Lsch1:
  14213. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  14214. case timeout1 == 0: // only consume available
  14215. for {
  14216. select {
  14217. case b1 := <-v:
  14218. sch1 = append(sch1, b1)
  14219. default:
  14220. break Lsch1
  14221. }
  14222. }
  14223. case timeout1 > 0: // consume until timeout
  14224. tt1 := time.NewTimer(timeout1)
  14225. for {
  14226. select {
  14227. case b1 := <-v:
  14228. sch1 = append(sch1, b1)
  14229. case <-tt1.C:
  14230. // close(tt.C)
  14231. break Lsch1
  14232. }
  14233. }
  14234. default: // consume until close
  14235. for b1 := range v {
  14236. sch1 = append(sch1, b1)
  14237. }
  14238. }
  14239. z.EncWriteArrayStart(len(sch1))
  14240. for _, yyv1 := range sch1 {
  14241. z.EncWriteArrayElem()
  14242. if z.EncBasicHandle().StringToRaw {
  14243. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14244. } else {
  14245. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14246. }
  14247. }
  14248. z.EncWriteArrayEnd()
  14249. }
  14250. }
  14251. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  14252. var h codecSelfer19780
  14253. z, r := GenHelperDecoder(d)
  14254. _, _, _ = h, z, r
  14255. yyv1 := *v
  14256. yyh1, yyl1 := z.DecSliceHelperStart()
  14257. var yyc1 bool
  14258. _ = yyc1
  14259. if yyl1 == 0 {
  14260. if yyv1 == nil {
  14261. yyv1 = make(chan string, 0)
  14262. yyc1 = true
  14263. }
  14264. } else {
  14265. yyhl1 := yyl1 > 0
  14266. var yyrl1 int
  14267. _ = yyrl1
  14268. var yyj1 int
  14269. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14270. if yyj1 == 0 && yyv1 == nil {
  14271. if yyhl1 {
  14272. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14273. } else {
  14274. yyrl1 = 64
  14275. }
  14276. yyv1 = make(chan string, yyrl1)
  14277. yyc1 = true
  14278. }
  14279. yyh1.ElemContainerState(yyj1)
  14280. var yyvcx1 string
  14281. if r.TryDecodeAsNil() {
  14282. yyvcx1 = ""
  14283. } else {
  14284. yyvcx1 = (string)(string(r.DecodeStringAsBytes()))
  14285. }
  14286. yyv1 <- yyvcx1
  14287. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  14288. }
  14289. }
  14290. yyh1.End()
  14291. if yyc1 {
  14292. *v = yyv1
  14293. }
  14294. }
  14295. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  14296. var h codecSelfer19780
  14297. z, r := GenHelperEncoder(e)
  14298. _, _, _ = h, z, r
  14299. if v == nil {
  14300. r.EncodeNil()
  14301. return
  14302. }
  14303. z.EncWriteMapStart(len(v))
  14304. for yyk1, yyv1 := range v {
  14305. z.EncWriteMapElemKey()
  14306. r.EncodeBool(bool(yyk1))
  14307. z.EncWriteMapElemValue()
  14308. yy3 := &yyv1
  14309. z.EncFallback(yy3)
  14310. }
  14311. z.EncWriteMapEnd()
  14312. }
  14313. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  14314. var h codecSelfer19780
  14315. z, r := GenHelperDecoder(d)
  14316. _, _, _ = h, z, r
  14317. yyv1 := *v
  14318. yyl1 := z.DecReadMapStart()
  14319. yybh1 := z.DecBasicHandle()
  14320. if yyv1 == nil {
  14321. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  14322. yyv1 = make(map[bool]struct{}, yyrl1)
  14323. *v = yyv1
  14324. }
  14325. var yymk1 bool
  14326. var yymv1 struct{}
  14327. var yymg1, yymdn1 bool
  14328. if yybh1.MapValueReset {
  14329. yymg1 = true
  14330. }
  14331. if yyl1 != 0 {
  14332. yyhl1 := yyl1 > 0
  14333. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14334. z.DecReadMapElemKey()
  14335. if r.TryDecodeAsNil() {
  14336. yymk1 = false
  14337. } else {
  14338. yymk1 = (bool)(r.DecodeBool())
  14339. }
  14340. if yymg1 {
  14341. yymv1 = yyv1[yymk1]
  14342. } else {
  14343. yymv1 = struct{}{}
  14344. }
  14345. z.DecReadMapElemValue()
  14346. yymdn1 = false
  14347. if r.TryDecodeAsNil() {
  14348. yymdn1 = true
  14349. } else {
  14350. z.DecFallback(&yymv1, false)
  14351. }
  14352. if yymdn1 {
  14353. if yybh1.DeleteOnNilMapValue {
  14354. delete(yyv1, yymk1)
  14355. } else {
  14356. yyv1[yymk1] = struct{}{}
  14357. }
  14358. } else if yyv1 != nil {
  14359. yyv1[yymk1] = yymv1
  14360. }
  14361. }
  14362. } // else len==0: TODO: Should we clear map entries?
  14363. z.DecReadMapEnd()
  14364. }
  14365. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  14366. var h codecSelfer19780
  14367. z, r := GenHelperEncoder(e)
  14368. _, _, _ = h, z, r
  14369. if v == nil {
  14370. r.EncodeNil()
  14371. return
  14372. }
  14373. z.EncWriteMapStart(len(v))
  14374. for yyk1, yyv1 := range v {
  14375. z.EncWriteMapElemKey()
  14376. r.EncodeInt(int64(yyk1))
  14377. z.EncWriteMapElemValue()
  14378. yyv1.CodecEncodeSelf(e)
  14379. }
  14380. z.EncWriteMapEnd()
  14381. }
  14382. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  14383. var h codecSelfer19780
  14384. z, r := GenHelperDecoder(d)
  14385. _, _, _ = h, z, r
  14386. yyv1 := *v
  14387. yyl1 := z.DecReadMapStart()
  14388. yybh1 := z.DecBasicHandle()
  14389. if yyv1 == nil {
  14390. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  14391. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  14392. *v = yyv1
  14393. }
  14394. var yymk1 int
  14395. var yymv1 wrapUint64Slice
  14396. var yymg1, yymdn1 bool
  14397. if yybh1.MapValueReset {
  14398. yymg1 = true
  14399. }
  14400. if yyl1 != 0 {
  14401. yyhl1 := yyl1 > 0
  14402. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14403. z.DecReadMapElemKey()
  14404. if r.TryDecodeAsNil() {
  14405. yymk1 = 0
  14406. } else {
  14407. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  14408. }
  14409. if yymg1 {
  14410. yymv1 = yyv1[yymk1]
  14411. } else {
  14412. yymv1 = nil
  14413. }
  14414. z.DecReadMapElemValue()
  14415. yymdn1 = false
  14416. if r.TryDecodeAsNil() {
  14417. yymdn1 = true
  14418. } else {
  14419. yymv1.CodecDecodeSelf(d)
  14420. }
  14421. if yymdn1 {
  14422. if yybh1.DeleteOnNilMapValue {
  14423. delete(yyv1, yymk1)
  14424. } else {
  14425. yyv1[yymk1] = nil
  14426. }
  14427. } else if yyv1 != nil {
  14428. yyv1[yymk1] = yymv1
  14429. }
  14430. }
  14431. } // else len==0: TODO: Should we clear map entries?
  14432. z.DecReadMapEnd()
  14433. }
  14434. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  14435. var h codecSelfer19780
  14436. z, r := GenHelperEncoder(e)
  14437. _, _, _ = h, z, r
  14438. if v == nil {
  14439. r.EncodeNil()
  14440. return
  14441. }
  14442. z.EncWriteMapStart(len(v))
  14443. for yyk1, yyv1 := range v {
  14444. z.EncWriteMapElemKey()
  14445. r.EncodeFloat64(float64(yyk1))
  14446. z.EncWriteMapElemValue()
  14447. yyv1.CodecEncodeSelf(e)
  14448. }
  14449. z.EncWriteMapEnd()
  14450. }
  14451. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  14452. var h codecSelfer19780
  14453. z, r := GenHelperDecoder(d)
  14454. _, _, _ = h, z, r
  14455. yyv1 := *v
  14456. yyl1 := z.DecReadMapStart()
  14457. yybh1 := z.DecBasicHandle()
  14458. if yyv1 == nil {
  14459. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  14460. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  14461. *v = yyv1
  14462. }
  14463. var yymk1 float64
  14464. var yymv1 wrapStringSlice
  14465. var yymg1, yymdn1 bool
  14466. if yybh1.MapValueReset {
  14467. yymg1 = true
  14468. }
  14469. if yyl1 != 0 {
  14470. yyhl1 := yyl1 > 0
  14471. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14472. z.DecReadMapElemKey()
  14473. if r.TryDecodeAsNil() {
  14474. yymk1 = 0
  14475. } else {
  14476. yymk1 = (float64)(r.DecodeFloat64())
  14477. }
  14478. if yymg1 {
  14479. yymv1 = yyv1[yymk1]
  14480. } else {
  14481. yymv1 = nil
  14482. }
  14483. z.DecReadMapElemValue()
  14484. yymdn1 = false
  14485. if r.TryDecodeAsNil() {
  14486. yymdn1 = true
  14487. } else {
  14488. yymv1.CodecDecodeSelf(d)
  14489. }
  14490. if yymdn1 {
  14491. if yybh1.DeleteOnNilMapValue {
  14492. delete(yyv1, yymk1)
  14493. } else {
  14494. yyv1[yymk1] = nil
  14495. }
  14496. } else if yyv1 != nil {
  14497. yyv1[yymk1] = yymv1
  14498. }
  14499. }
  14500. } // else len==0: TODO: Should we clear map entries?
  14501. z.DecReadMapEnd()
  14502. }
  14503. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  14504. var h codecSelfer19780
  14505. z, r := GenHelperEncoder(e)
  14506. _, _, _ = h, z, r
  14507. if v == nil {
  14508. r.EncodeNil()
  14509. return
  14510. }
  14511. z.EncWriteMapStart(len(v))
  14512. for yyk1, yyv1 := range v {
  14513. z.EncWriteMapElemKey()
  14514. r.EncodeFloat32(float32(yyk1))
  14515. z.EncWriteMapElemValue()
  14516. yyv1.CodecEncodeSelf(e)
  14517. }
  14518. z.EncWriteMapEnd()
  14519. }
  14520. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  14521. var h codecSelfer19780
  14522. z, r := GenHelperDecoder(d)
  14523. _, _, _ = h, z, r
  14524. yyv1 := *v
  14525. yyl1 := z.DecReadMapStart()
  14526. yybh1 := z.DecBasicHandle()
  14527. if yyv1 == nil {
  14528. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  14529. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  14530. *v = yyv1
  14531. }
  14532. var yymk1 float32
  14533. var yymv1 wrapStringSlice
  14534. var yymg1, yymdn1 bool
  14535. if yybh1.MapValueReset {
  14536. yymg1 = true
  14537. }
  14538. if yyl1 != 0 {
  14539. yyhl1 := yyl1 > 0
  14540. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14541. z.DecReadMapElemKey()
  14542. if r.TryDecodeAsNil() {
  14543. yymk1 = 0
  14544. } else {
  14545. yymk1 = (float32)(z.DecDecodeFloat32())
  14546. }
  14547. if yymg1 {
  14548. yymv1 = yyv1[yymk1]
  14549. } else {
  14550. yymv1 = nil
  14551. }
  14552. z.DecReadMapElemValue()
  14553. yymdn1 = false
  14554. if r.TryDecodeAsNil() {
  14555. yymdn1 = true
  14556. } else {
  14557. yymv1.CodecDecodeSelf(d)
  14558. }
  14559. if yymdn1 {
  14560. if yybh1.DeleteOnNilMapValue {
  14561. delete(yyv1, yymk1)
  14562. } else {
  14563. yyv1[yymk1] = nil
  14564. }
  14565. } else if yyv1 != nil {
  14566. yyv1[yymk1] = yymv1
  14567. }
  14568. }
  14569. } // else len==0: TODO: Should we clear map entries?
  14570. z.DecReadMapEnd()
  14571. }
  14572. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  14573. var h codecSelfer19780
  14574. z, r := GenHelperEncoder(e)
  14575. _, _, _ = h, z, r
  14576. if v == nil {
  14577. r.EncodeNil()
  14578. return
  14579. }
  14580. z.EncWriteMapStart(len(v))
  14581. for yyk1, yyv1 := range v {
  14582. z.EncWriteMapElemKey()
  14583. r.EncodeUint(uint64(yyk1))
  14584. z.EncWriteMapElemValue()
  14585. yyv1.CodecEncodeSelf(e)
  14586. }
  14587. z.EncWriteMapEnd()
  14588. }
  14589. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  14590. var h codecSelfer19780
  14591. z, r := GenHelperDecoder(d)
  14592. _, _, _ = h, z, r
  14593. yyv1 := *v
  14594. yyl1 := z.DecReadMapStart()
  14595. yybh1 := z.DecBasicHandle()
  14596. if yyv1 == nil {
  14597. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  14598. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  14599. *v = yyv1
  14600. }
  14601. var yymk1 uint64
  14602. var yymv1 wrapStringSlice
  14603. var yymg1, yymdn1 bool
  14604. if yybh1.MapValueReset {
  14605. yymg1 = true
  14606. }
  14607. if yyl1 != 0 {
  14608. yyhl1 := yyl1 > 0
  14609. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14610. z.DecReadMapElemKey()
  14611. if r.TryDecodeAsNil() {
  14612. yymk1 = 0
  14613. } else {
  14614. yymk1 = (uint64)(r.DecodeUint64())
  14615. }
  14616. if yymg1 {
  14617. yymv1 = yyv1[yymk1]
  14618. } else {
  14619. yymv1 = nil
  14620. }
  14621. z.DecReadMapElemValue()
  14622. yymdn1 = false
  14623. if r.TryDecodeAsNil() {
  14624. yymdn1 = true
  14625. } else {
  14626. yymv1.CodecDecodeSelf(d)
  14627. }
  14628. if yymdn1 {
  14629. if yybh1.DeleteOnNilMapValue {
  14630. delete(yyv1, yymk1)
  14631. } else {
  14632. yyv1[yymk1] = nil
  14633. }
  14634. } else if yyv1 != nil {
  14635. yyv1[yymk1] = yymv1
  14636. }
  14637. }
  14638. } // else len==0: TODO: Should we clear map entries?
  14639. z.DecReadMapEnd()
  14640. }
  14641. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  14642. var h codecSelfer19780
  14643. z, r := GenHelperEncoder(e)
  14644. _, _, _ = h, z, r
  14645. if v == nil {
  14646. r.EncodeNil()
  14647. return
  14648. }
  14649. z.EncWriteMapStart(len(v))
  14650. for yyk1, yyv1 := range v {
  14651. z.EncWriteMapElemKey()
  14652. yy2 := &yyk1
  14653. yy2.CodecEncodeSelf(e)
  14654. z.EncWriteMapElemValue()
  14655. yyv1.CodecEncodeSelf(e)
  14656. }
  14657. z.EncWriteMapEnd()
  14658. }
  14659. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  14660. var h codecSelfer19780
  14661. z, r := GenHelperDecoder(d)
  14662. _, _, _ = h, z, r
  14663. yyv1 := *v
  14664. yyl1 := z.DecReadMapStart()
  14665. yybh1 := z.DecBasicHandle()
  14666. if yyv1 == nil {
  14667. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  14668. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  14669. *v = yyv1
  14670. }
  14671. var yymk1 stringUint64T
  14672. var yymv1 wrapStringSlice
  14673. var yymg1, yymdn1 bool
  14674. if yybh1.MapValueReset {
  14675. yymg1 = true
  14676. }
  14677. if yyl1 != 0 {
  14678. yyhl1 := yyl1 > 0
  14679. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14680. z.DecReadMapElemKey()
  14681. if r.TryDecodeAsNil() {
  14682. yymk1 = stringUint64T{}
  14683. } else {
  14684. yymk1.CodecDecodeSelf(d)
  14685. }
  14686. if yymg1 {
  14687. yymv1 = yyv1[yymk1]
  14688. } else {
  14689. yymv1 = nil
  14690. }
  14691. z.DecReadMapElemValue()
  14692. yymdn1 = false
  14693. if r.TryDecodeAsNil() {
  14694. yymdn1 = true
  14695. } else {
  14696. yymv1.CodecDecodeSelf(d)
  14697. }
  14698. if yymdn1 {
  14699. if yybh1.DeleteOnNilMapValue {
  14700. delete(yyv1, yymk1)
  14701. } else {
  14702. yyv1[yymk1] = nil
  14703. }
  14704. } else if yyv1 != nil {
  14705. yyv1[yymk1] = yymv1
  14706. }
  14707. }
  14708. } // else len==0: TODO: Should we clear map entries?
  14709. z.DecReadMapEnd()
  14710. }
  14711. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  14712. var h codecSelfer19780
  14713. z, r := GenHelperEncoder(e)
  14714. _, _, _ = h, z, r
  14715. if v == nil {
  14716. r.EncodeNil()
  14717. return
  14718. }
  14719. z.EncWriteArrayStart(len(v))
  14720. for _, yyv1 := range v {
  14721. z.EncWriteArrayElem()
  14722. yyv1.CodecEncodeSelf(e)
  14723. }
  14724. z.EncWriteArrayEnd()
  14725. }
  14726. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  14727. var h codecSelfer19780
  14728. z, r := GenHelperDecoder(d)
  14729. _, _, _ = h, z, r
  14730. yyv1 := *v
  14731. yyh1, yyl1 := z.DecSliceHelperStart()
  14732. var yyc1 bool
  14733. _ = yyc1
  14734. if yyl1 == 0 {
  14735. if yyv1 == nil {
  14736. yyv1 = []wrapBytes{}
  14737. yyc1 = true
  14738. } else if len(yyv1) != 0 {
  14739. yyv1 = yyv1[:0]
  14740. yyc1 = true
  14741. }
  14742. } else {
  14743. yyhl1 := yyl1 > 0
  14744. var yyrl1 int
  14745. _ = yyrl1
  14746. if yyhl1 {
  14747. if yyl1 > cap(yyv1) {
  14748. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14749. if yyrl1 <= cap(yyv1) {
  14750. yyv1 = yyv1[:yyrl1]
  14751. } else {
  14752. yyv1 = make([]wrapBytes, yyrl1)
  14753. }
  14754. yyc1 = true
  14755. } else if yyl1 != len(yyv1) {
  14756. yyv1 = yyv1[:yyl1]
  14757. yyc1 = true
  14758. }
  14759. }
  14760. var yyj1 int
  14761. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14762. if yyj1 == 0 && yyv1 == nil {
  14763. if yyhl1 {
  14764. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14765. } else {
  14766. yyrl1 = 8
  14767. }
  14768. yyv1 = make([]wrapBytes, yyrl1)
  14769. yyc1 = true
  14770. }
  14771. yyh1.ElemContainerState(yyj1)
  14772. var yydb1 bool
  14773. if yyj1 >= len(yyv1) {
  14774. yyv1 = append(yyv1, nil)
  14775. yyc1 = true
  14776. }
  14777. if yydb1 {
  14778. z.DecSwallow()
  14779. } else {
  14780. if r.TryDecodeAsNil() {
  14781. yyv1[yyj1] = nil
  14782. } else {
  14783. yyv1[yyj1].CodecDecodeSelf(d)
  14784. }
  14785. }
  14786. }
  14787. if yyj1 < len(yyv1) {
  14788. yyv1 = yyv1[:yyj1]
  14789. yyc1 = true
  14790. } else if yyj1 == 0 && yyv1 == nil {
  14791. yyv1 = make([]wrapBytes, 0)
  14792. yyc1 = true
  14793. }
  14794. }
  14795. yyh1.End()
  14796. if yyc1 {
  14797. *v = yyv1
  14798. }
  14799. }
  14800. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  14801. var h codecSelfer19780
  14802. z, r := GenHelperEncoder(e)
  14803. _, _, _ = h, z, r
  14804. if v == nil {
  14805. r.EncodeNil()
  14806. return
  14807. }
  14808. z.EncWriteArrayStart(len(v))
  14809. for _, yyv1 := range v {
  14810. z.EncWriteArrayElem()
  14811. yyv1.CodecEncodeSelf(e)
  14812. }
  14813. z.EncWriteArrayEnd()
  14814. }
  14815. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  14816. var h codecSelfer19780
  14817. z, r := GenHelperDecoder(d)
  14818. _, _, _ = h, z, r
  14819. yyv1 := *v
  14820. yyh1, yyl1 := z.DecSliceHelperStart()
  14821. var yyc1 bool
  14822. _ = yyc1
  14823. if yyl1 == 0 {
  14824. if yyv1 == nil {
  14825. yyv1 = []wrapUint8{}
  14826. yyc1 = true
  14827. } else if len(yyv1) != 0 {
  14828. yyv1 = yyv1[:0]
  14829. yyc1 = true
  14830. }
  14831. } else {
  14832. yyhl1 := yyl1 > 0
  14833. var yyrl1 int
  14834. _ = yyrl1
  14835. if yyhl1 {
  14836. if yyl1 > cap(yyv1) {
  14837. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  14838. if yyrl1 <= cap(yyv1) {
  14839. yyv1 = yyv1[:yyrl1]
  14840. } else {
  14841. yyv1 = make([]wrapUint8, yyrl1)
  14842. }
  14843. yyc1 = true
  14844. } else if yyl1 != len(yyv1) {
  14845. yyv1 = yyv1[:yyl1]
  14846. yyc1 = true
  14847. }
  14848. }
  14849. var yyj1 int
  14850. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14851. if yyj1 == 0 && yyv1 == nil {
  14852. if yyhl1 {
  14853. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  14854. } else {
  14855. yyrl1 = 8
  14856. }
  14857. yyv1 = make([]wrapUint8, yyrl1)
  14858. yyc1 = true
  14859. }
  14860. yyh1.ElemContainerState(yyj1)
  14861. var yydb1 bool
  14862. if yyj1 >= len(yyv1) {
  14863. yyv1 = append(yyv1, 0)
  14864. yyc1 = true
  14865. }
  14866. if yydb1 {
  14867. z.DecSwallow()
  14868. } else {
  14869. if r.TryDecodeAsNil() {
  14870. yyv1[yyj1] = 0
  14871. } else {
  14872. yyv1[yyj1].CodecDecodeSelf(d)
  14873. }
  14874. }
  14875. }
  14876. if yyj1 < len(yyv1) {
  14877. yyv1 = yyv1[:yyj1]
  14878. yyc1 = true
  14879. } else if yyj1 == 0 && yyv1 == nil {
  14880. yyv1 = make([]wrapUint8, 0)
  14881. yyc1 = true
  14882. }
  14883. }
  14884. yyh1.End()
  14885. if yyc1 {
  14886. *v = yyv1
  14887. }
  14888. }
  14889. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  14890. var h codecSelfer19780
  14891. z, r := GenHelperEncoder(e)
  14892. _, _, _ = h, z, r
  14893. if v == nil {
  14894. r.EncodeNil()
  14895. return
  14896. }
  14897. z.EncWriteArrayStart(len(v))
  14898. for _, yyv1 := range v {
  14899. z.EncWriteArrayElem()
  14900. yy2 := &yyv1
  14901. yy2.CodecEncodeSelf(e)
  14902. }
  14903. z.EncWriteArrayEnd()
  14904. }
  14905. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  14906. var h codecSelfer19780
  14907. z, r := GenHelperDecoder(d)
  14908. _, _, _ = h, z, r
  14909. yyv1 := v
  14910. yyh1, yyl1 := z.DecSliceHelperStart()
  14911. if yyl1 == 0 {
  14912. } else {
  14913. yyhl1 := yyl1 > 0
  14914. var yyrl1 int
  14915. _ = yyrl1
  14916. var yyj1 int
  14917. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14918. yyh1.ElemContainerState(yyj1)
  14919. var yydb1 bool
  14920. if yyj1 >= len(yyv1) {
  14921. z.DecArrayCannotExpand(len(v), yyj1+1)
  14922. yydb1 = true
  14923. }
  14924. if yydb1 {
  14925. z.DecSwallow()
  14926. } else {
  14927. if r.TryDecodeAsNil() {
  14928. yyv1[yyj1] = stringUint64T{}
  14929. } else {
  14930. yyv1[yyj1].CodecDecodeSelf(d)
  14931. }
  14932. }
  14933. }
  14934. }
  14935. yyh1.End()
  14936. }
  14937. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  14938. var h codecSelfer19780
  14939. z, r := GenHelperEncoder(e)
  14940. _, _, _ = h, z, r
  14941. if v == nil {
  14942. r.EncodeNil()
  14943. return
  14944. }
  14945. z.EncWriteArrayStart(len(v))
  14946. for _, yyv1 := range v {
  14947. z.EncWriteArrayElem()
  14948. r.EncodeUint(uint64(yyv1))
  14949. }
  14950. z.EncWriteArrayEnd()
  14951. }
  14952. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  14953. var h codecSelfer19780
  14954. z, r := GenHelperDecoder(d)
  14955. _, _, _ = h, z, r
  14956. yyv1 := v
  14957. yyh1, yyl1 := z.DecSliceHelperStart()
  14958. if yyl1 == 0 {
  14959. } else {
  14960. yyhl1 := yyl1 > 0
  14961. var yyrl1 int
  14962. _ = yyrl1
  14963. var yyj1 int
  14964. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14965. yyh1.ElemContainerState(yyj1)
  14966. var yydb1 bool
  14967. if yyj1 >= len(yyv1) {
  14968. z.DecArrayCannotExpand(len(v), yyj1+1)
  14969. yydb1 = true
  14970. }
  14971. if yydb1 {
  14972. z.DecSwallow()
  14973. } else {
  14974. if r.TryDecodeAsNil() {
  14975. yyv1[yyj1] = 0
  14976. } else {
  14977. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  14978. }
  14979. }
  14980. }
  14981. }
  14982. yyh1.End()
  14983. }
  14984. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  14985. var h codecSelfer19780
  14986. z, r := GenHelperEncoder(e)
  14987. _, _, _ = h, z, r
  14988. if v == nil {
  14989. r.EncodeNil()
  14990. return
  14991. }
  14992. z.EncWriteArrayStart(len(v))
  14993. for _, yyv1 := range v {
  14994. z.EncWriteArrayElem()
  14995. if yyv1 == nil {
  14996. r.EncodeNil()
  14997. } else { // checkNil=true
  14998. h.encArray4uint64((*[4]uint64)(yyv1), e)
  14999. } // checkNil=true
  15000. }
  15001. z.EncWriteArrayEnd()
  15002. }
  15003. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  15004. var h codecSelfer19780
  15005. z, r := GenHelperDecoder(d)
  15006. _, _, _ = h, z, r
  15007. yyv1 := *v
  15008. yyh1, yyl1 := z.DecSliceHelperStart()
  15009. var yyc1 bool
  15010. _ = yyc1
  15011. if yyl1 == 0 {
  15012. if yyv1 == nil {
  15013. yyv1 = []*[4]uint64{}
  15014. yyc1 = true
  15015. } else if len(yyv1) != 0 {
  15016. yyv1 = yyv1[:0]
  15017. yyc1 = true
  15018. }
  15019. } else {
  15020. yyhl1 := yyl1 > 0
  15021. var yyrl1 int
  15022. _ = yyrl1
  15023. if yyhl1 {
  15024. if yyl1 > cap(yyv1) {
  15025. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15026. if yyrl1 <= cap(yyv1) {
  15027. yyv1 = yyv1[:yyrl1]
  15028. } else {
  15029. yyv1 = make([]*[4]uint64, yyrl1)
  15030. }
  15031. yyc1 = true
  15032. } else if yyl1 != len(yyv1) {
  15033. yyv1 = yyv1[:yyl1]
  15034. yyc1 = true
  15035. }
  15036. }
  15037. var yyj1 int
  15038. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15039. if yyj1 == 0 && yyv1 == nil {
  15040. if yyhl1 {
  15041. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15042. } else {
  15043. yyrl1 = 8
  15044. }
  15045. yyv1 = make([]*[4]uint64, yyrl1)
  15046. yyc1 = true
  15047. }
  15048. yyh1.ElemContainerState(yyj1)
  15049. var yydb1 bool
  15050. if yyj1 >= len(yyv1) {
  15051. yyv1 = append(yyv1, nil)
  15052. yyc1 = true
  15053. }
  15054. if yydb1 {
  15055. z.DecSwallow()
  15056. } else {
  15057. if r.TryDecodeAsNil() {
  15058. yyv1[yyj1] = nil
  15059. } else {
  15060. if yyv1[yyj1] == nil {
  15061. yyv1[yyj1] = new([4]uint64)
  15062. }
  15063. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  15064. }
  15065. }
  15066. }
  15067. if yyj1 < len(yyv1) {
  15068. yyv1 = yyv1[:yyj1]
  15069. yyc1 = true
  15070. } else if yyj1 == 0 && yyv1 == nil {
  15071. yyv1 = make([]*[4]uint64, 0)
  15072. yyc1 = true
  15073. }
  15074. }
  15075. yyh1.End()
  15076. if yyc1 {
  15077. *v = yyv1
  15078. }
  15079. }
  15080. func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
  15081. var h codecSelfer19780
  15082. z, r := GenHelperEncoder(e)
  15083. _, _, _ = h, z, r
  15084. if v == nil {
  15085. r.EncodeNil()
  15086. return
  15087. }
  15088. z.EncWriteMapStart(len(v))
  15089. for yyk1, yyv1 := range v {
  15090. z.EncWriteMapElemKey()
  15091. yy2 := &yyk1
  15092. yy2.CodecEncodeSelf(e)
  15093. z.EncWriteMapElemValue()
  15094. if yyv1 == nil {
  15095. r.EncodeNil()
  15096. } else { // checkNil=true
  15097. yyv1.CodecEncodeSelf(e)
  15098. } // checkNil=true
  15099. }
  15100. z.EncWriteMapEnd()
  15101. }
  15102. func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
  15103. var h codecSelfer19780
  15104. z, r := GenHelperDecoder(d)
  15105. _, _, _ = h, z, r
  15106. yyv1 := *v
  15107. yyl1 := z.DecReadMapStart()
  15108. yybh1 := z.DecBasicHandle()
  15109. if yyv1 == nil {
  15110. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15111. yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
  15112. *v = yyv1
  15113. }
  15114. var yymk1 stringUint64T
  15115. var yymv1 *stringUint64T
  15116. var yymg1, yymdn1, yyms1, yymok1 bool
  15117. if yybh1.MapValueReset {
  15118. yymg1 = true
  15119. }
  15120. if yyl1 != 0 {
  15121. yyhl1 := yyl1 > 0
  15122. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15123. z.DecReadMapElemKey()
  15124. if r.TryDecodeAsNil() {
  15125. yymk1 = stringUint64T{}
  15126. } else {
  15127. yymk1.CodecDecodeSelf(d)
  15128. }
  15129. yyms1 = true
  15130. if yymg1 {
  15131. yymv1, yymok1 = yyv1[yymk1]
  15132. if yymok1 {
  15133. yyms1 = false
  15134. }
  15135. } else {
  15136. yymv1 = nil
  15137. }
  15138. z.DecReadMapElemValue()
  15139. yymdn1 = false
  15140. if r.TryDecodeAsNil() {
  15141. yymdn1 = true
  15142. } else {
  15143. if yymv1 == nil {
  15144. yymv1 = new(stringUint64T)
  15145. }
  15146. yymv1.CodecDecodeSelf(d)
  15147. }
  15148. if yymdn1 {
  15149. if yybh1.DeleteOnNilMapValue {
  15150. delete(yyv1, yymk1)
  15151. } else {
  15152. yyv1[yymk1] = nil
  15153. }
  15154. } else if yyms1 && yyv1 != nil {
  15155. yyv1[yymk1] = yymv1
  15156. }
  15157. }
  15158. } // else len==0: TODO: Should we clear map entries?
  15159. z.DecReadMapEnd()
  15160. }
  15161. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  15162. var h codecSelfer19780
  15163. z, r := GenHelperEncoder(e)
  15164. _, _, _ = h, z, r
  15165. if v == nil {
  15166. r.EncodeNil()
  15167. return
  15168. }
  15169. z.EncWriteMapStart(len(v))
  15170. for yyk1, yyv1 := range v {
  15171. z.EncWriteMapElemKey()
  15172. if z.EncBasicHandle().StringToRaw {
  15173. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15174. } else {
  15175. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15176. }
  15177. z.EncWriteMapElemValue()
  15178. if yyv1 == nil {
  15179. r.EncodeNil()
  15180. } else { // checkNil=true
  15181. yyv1.CodecEncodeSelf(e)
  15182. } // checkNil=true
  15183. }
  15184. z.EncWriteMapEnd()
  15185. }
  15186. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  15187. var h codecSelfer19780
  15188. z, r := GenHelperDecoder(d)
  15189. _, _, _ = h, z, r
  15190. yyv1 := *v
  15191. yyl1 := z.DecReadMapStart()
  15192. yybh1 := z.DecBasicHandle()
  15193. if yyv1 == nil {
  15194. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  15195. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  15196. *v = yyv1
  15197. }
  15198. var yymk1 string
  15199. var yymv1 *TestStrucFlex
  15200. var yymg1, yymdn1, yyms1, yymok1 bool
  15201. if yybh1.MapValueReset {
  15202. yymg1 = true
  15203. }
  15204. if yyl1 != 0 {
  15205. yyhl1 := yyl1 > 0
  15206. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15207. z.DecReadMapElemKey()
  15208. if r.TryDecodeAsNil() {
  15209. yymk1 = ""
  15210. } else {
  15211. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  15212. }
  15213. yyms1 = true
  15214. if yymg1 {
  15215. yymv1, yymok1 = yyv1[yymk1]
  15216. if yymok1 {
  15217. yyms1 = false
  15218. }
  15219. } else {
  15220. yymv1 = nil
  15221. }
  15222. z.DecReadMapElemValue()
  15223. yymdn1 = false
  15224. if r.TryDecodeAsNil() {
  15225. yymdn1 = true
  15226. } else {
  15227. if yymv1 == nil {
  15228. yymv1 = new(TestStrucFlex)
  15229. }
  15230. yymv1.CodecDecodeSelf(d)
  15231. }
  15232. if yymdn1 {
  15233. if yybh1.DeleteOnNilMapValue {
  15234. delete(yyv1, yymk1)
  15235. } else {
  15236. yyv1[yymk1] = nil
  15237. }
  15238. } else if yyms1 && yyv1 != nil {
  15239. yyv1[yymk1] = yymv1
  15240. }
  15241. }
  15242. } // else len==0: TODO: Should we clear map entries?
  15243. z.DecReadMapEnd()
  15244. }
  15245. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  15246. var h codecSelfer19780
  15247. z, r := GenHelperEncoder(e)
  15248. _, _, _ = h, z, r
  15249. if v == nil {
  15250. r.EncodeNil()
  15251. return
  15252. }
  15253. z.EncWriteMapStart(len(v))
  15254. for yyk1, yyv1 := range v {
  15255. z.EncWriteMapElemKey()
  15256. if z.EncBasicHandle().StringToRaw {
  15257. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15258. } else {
  15259. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15260. }
  15261. z.EncWriteMapElemValue()
  15262. yy3 := &yyv1
  15263. yy3.CodecEncodeSelf(e)
  15264. }
  15265. z.EncWriteMapEnd()
  15266. }
  15267. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  15268. var h codecSelfer19780
  15269. z, r := GenHelperDecoder(d)
  15270. _, _, _ = h, z, r
  15271. yyv1 := *v
  15272. yyl1 := z.DecReadMapStart()
  15273. yybh1 := z.DecBasicHandle()
  15274. if yyv1 == nil {
  15275. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1536)
  15276. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  15277. *v = yyv1
  15278. }
  15279. var yymk1 string
  15280. var yymv1 TestStrucFlex
  15281. var yymg1, yymdn1 bool
  15282. if yybh1.MapValueReset {
  15283. yymg1 = true
  15284. }
  15285. if yyl1 != 0 {
  15286. yyhl1 := yyl1 > 0
  15287. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15288. z.DecReadMapElemKey()
  15289. if r.TryDecodeAsNil() {
  15290. yymk1 = ""
  15291. } else {
  15292. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  15293. }
  15294. if yymg1 {
  15295. yymv1 = yyv1[yymk1]
  15296. } else {
  15297. yymv1 = TestStrucFlex{}
  15298. }
  15299. z.DecReadMapElemValue()
  15300. yymdn1 = false
  15301. if r.TryDecodeAsNil() {
  15302. yymdn1 = true
  15303. } else {
  15304. yymv1.CodecDecodeSelf(d)
  15305. }
  15306. if yymdn1 {
  15307. if yybh1.DeleteOnNilMapValue {
  15308. delete(yyv1, yymk1)
  15309. } else {
  15310. yyv1[yymk1] = TestStrucFlex{}
  15311. }
  15312. } else if yyv1 != nil {
  15313. yyv1[yymk1] = yymv1
  15314. }
  15315. }
  15316. } // else len==0: TODO: Should we clear map entries?
  15317. z.DecReadMapEnd()
  15318. }
  15319. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  15320. var h codecSelfer19780
  15321. z, r := GenHelperEncoder(e)
  15322. _, _, _ = h, z, r
  15323. if v == nil {
  15324. r.EncodeNil()
  15325. return
  15326. }
  15327. z.EncWriteArrayStart(len(v))
  15328. for _, yyv1 := range v {
  15329. z.EncWriteArrayElem()
  15330. if yyv1 == nil {
  15331. r.EncodeNil()
  15332. } else { // checkNil=true
  15333. yyv1.CodecEncodeSelf(e)
  15334. } // checkNil=true
  15335. }
  15336. z.EncWriteArrayEnd()
  15337. }
  15338. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  15339. var h codecSelfer19780
  15340. z, r := GenHelperDecoder(d)
  15341. _, _, _ = h, z, r
  15342. yyv1 := *v
  15343. yyh1, yyl1 := z.DecSliceHelperStart()
  15344. var yyc1 bool
  15345. _ = yyc1
  15346. if yyl1 == 0 {
  15347. if yyv1 == nil {
  15348. yyv1 = []*TestStrucFlex{}
  15349. yyc1 = true
  15350. } else if len(yyv1) != 0 {
  15351. yyv1 = yyv1[:0]
  15352. yyc1 = true
  15353. }
  15354. } else {
  15355. yyhl1 := yyl1 > 0
  15356. var yyrl1 int
  15357. _ = yyrl1
  15358. if yyhl1 {
  15359. if yyl1 > cap(yyv1) {
  15360. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15361. if yyrl1 <= cap(yyv1) {
  15362. yyv1 = yyv1[:yyrl1]
  15363. } else {
  15364. yyv1 = make([]*TestStrucFlex, yyrl1)
  15365. }
  15366. yyc1 = true
  15367. } else if yyl1 != len(yyv1) {
  15368. yyv1 = yyv1[:yyl1]
  15369. yyc1 = true
  15370. }
  15371. }
  15372. var yyj1 int
  15373. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15374. if yyj1 == 0 && yyv1 == nil {
  15375. if yyhl1 {
  15376. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15377. } else {
  15378. yyrl1 = 8
  15379. }
  15380. yyv1 = make([]*TestStrucFlex, yyrl1)
  15381. yyc1 = true
  15382. }
  15383. yyh1.ElemContainerState(yyj1)
  15384. var yydb1 bool
  15385. if yyj1 >= len(yyv1) {
  15386. yyv1 = append(yyv1, nil)
  15387. yyc1 = true
  15388. }
  15389. if yydb1 {
  15390. z.DecSwallow()
  15391. } else {
  15392. if r.TryDecodeAsNil() {
  15393. yyv1[yyj1] = nil
  15394. } else {
  15395. if yyv1[yyj1] == nil {
  15396. yyv1[yyj1] = new(TestStrucFlex)
  15397. }
  15398. yyv1[yyj1].CodecDecodeSelf(d)
  15399. }
  15400. }
  15401. }
  15402. if yyj1 < len(yyv1) {
  15403. yyv1 = yyv1[:yyj1]
  15404. yyc1 = true
  15405. } else if yyj1 == 0 && yyv1 == nil {
  15406. yyv1 = make([]*TestStrucFlex, 0)
  15407. yyc1 = true
  15408. }
  15409. }
  15410. yyh1.End()
  15411. if yyc1 {
  15412. *v = yyv1
  15413. }
  15414. }