values_codecgen_generated_test.go 343 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390
  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 != 10 {
  30. _, file, _, _ := runtime.Caller(0)
  31. panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(GenVersion), 10) + ". Re-generate file: " + file)
  32. }
  33. if false {
  34. var _ byte = 0 // reference the types, but skip this branch at build/run time
  35. var v0 time.Time
  36. _ = v0
  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. if false {
  47. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  48. z.EncExtension(x, yyxt1)
  49. } else {
  50. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  51. }
  52. }
  53. }
  54. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  55. var h codecSelfer19780
  56. z, r := GenHelperDecoder(d)
  57. _, _, _ = h, z, r
  58. if false {
  59. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  60. z.DecExtension(x, yyxt1)
  61. } else {
  62. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  63. }
  64. }
  65. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  66. var h codecSelfer19780
  67. z, r := GenHelperEncoder(e)
  68. _, _, _ = h, z, r
  69. if x == nil {
  70. r.EncodeNil()
  71. } else {
  72. if false {
  73. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  74. z.EncExtension(x, yyxt1)
  75. } else {
  76. h.encwrapSliceString((wrapSliceString)(x), e)
  77. }
  78. }
  79. }
  80. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  81. var h codecSelfer19780
  82. z, r := GenHelperDecoder(d)
  83. _, _, _ = h, z, r
  84. if false {
  85. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  86. z.DecExtension(x, yyxt1)
  87. } else {
  88. h.decwrapSliceString((*wrapSliceString)(x), d)
  89. }
  90. }
  91. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  92. var h codecSelfer19780
  93. z, r := GenHelperEncoder(e)
  94. _, _, _ = h, z, r
  95. if false {
  96. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  97. z.EncExtension(x, yyxt1)
  98. } else {
  99. r.EncodeUint(uint64(x))
  100. }
  101. }
  102. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  103. var h codecSelfer19780
  104. z, r := GenHelperDecoder(d)
  105. _, _, _ = h, z, r
  106. if false {
  107. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  108. z.DecExtension(x, yyxt1)
  109. } else {
  110. *x = (wrapUint64)(r.DecodeUint64())
  111. }
  112. }
  113. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  114. var h codecSelfer19780
  115. z, r := GenHelperEncoder(e)
  116. _, _, _ = h, z, r
  117. if false {
  118. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  119. z.EncExtension(x, yyxt1)
  120. } else {
  121. if z.EncBasicHandle().StringToRaw {
  122. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  123. } else {
  124. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  125. }
  126. }
  127. }
  128. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  129. var h codecSelfer19780
  130. z, r := GenHelperDecoder(d)
  131. _, _, _ = h, z, r
  132. if false {
  133. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  134. z.DecExtension(x, yyxt1)
  135. } else {
  136. *x = (wrapString)(r.DecodeString())
  137. }
  138. }
  139. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  140. var h codecSelfer19780
  141. z, r := GenHelperEncoder(e)
  142. _, _, _ = h, z, r
  143. if x == nil {
  144. r.EncodeNil()
  145. } else {
  146. if false {
  147. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  148. z.EncExtension(x, yyxt1)
  149. } else {
  150. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  151. }
  152. }
  153. }
  154. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  155. var h codecSelfer19780
  156. z, r := GenHelperDecoder(d)
  157. _, _, _ = h, z, r
  158. if false {
  159. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  160. z.DecExtension(x, yyxt1)
  161. } else {
  162. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  163. }
  164. }
  165. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  166. var h codecSelfer19780
  167. z, r := GenHelperEncoder(e)
  168. _, _, _ = h, z, r
  169. if x == nil {
  170. r.EncodeNil()
  171. } else {
  172. if false {
  173. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  174. z.EncExtension(x, yyxt1)
  175. } else {
  176. h.encwrapStringSlice((wrapStringSlice)(x), e)
  177. }
  178. }
  179. }
  180. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  181. var h codecSelfer19780
  182. z, r := GenHelperDecoder(d)
  183. _, _, _ = h, z, r
  184. if false {
  185. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  186. z.DecExtension(x, yyxt1)
  187. } else {
  188. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  189. }
  190. }
  191. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  192. var h codecSelfer19780
  193. z, r := GenHelperEncoder(e)
  194. _, _, _ = h, z, r
  195. if x == nil {
  196. r.EncodeNil()
  197. } else {
  198. if false {
  199. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  200. z.EncExtension(x, yyxt1)
  201. } else {
  202. yysep2 := !z.EncBinary()
  203. yy2arr2 := z.EncBasicHandle().StructToArray
  204. _, _ = yysep2, yy2arr2
  205. const yyr2 bool = false // struct tag has 'toArray'
  206. var yyq2 = [1]bool{ // should field at this index be written?
  207. false || codecSelfer19780False() || len(x.BB.CC.DD) != 0, // BB
  208. }
  209. _ = yyq2
  210. if yyr2 || yy2arr2 {
  211. r.WriteArrayStart(1)
  212. } else {
  213. var yynn2 int
  214. for _, b := range yyq2 {
  215. if b {
  216. yynn2++
  217. }
  218. }
  219. r.WriteMapStart(yynn2)
  220. yynn2 = 0
  221. }
  222. if yyr2 || yy2arr2 {
  223. r.WriteArrayElem()
  224. if yyq2[0] {
  225. yy4 := &x.BB
  226. yy4.CodecEncodeSelf(e)
  227. } else {
  228. r.EncodeNil()
  229. }
  230. } else {
  231. if yyq2[0] {
  232. r.WriteMapElemKey()
  233. if z.IsJSONHandle() {
  234. z.WriteStr("\"BB\"")
  235. } else {
  236. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  237. }
  238. r.WriteMapElemValue()
  239. yy6 := &x.BB
  240. yy6.CodecEncodeSelf(e)
  241. }
  242. }
  243. if yyr2 || yy2arr2 {
  244. r.WriteArrayEnd()
  245. } else {
  246. r.WriteMapEnd()
  247. }
  248. }
  249. }
  250. }
  251. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  252. var h codecSelfer19780
  253. z, r := GenHelperDecoder(d)
  254. _, _, _ = h, z, r
  255. if false {
  256. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  257. z.DecExtension(x, yyxt1)
  258. } else {
  259. yyct2 := r.ContainerType()
  260. if yyct2 == codecSelferValueTypeMap19780 {
  261. yyl2 := r.ReadMapStart()
  262. if yyl2 == 0 {
  263. r.ReadMapEnd()
  264. } else {
  265. x.codecDecodeSelfFromMap(yyl2, d)
  266. }
  267. } else if yyct2 == codecSelferValueTypeArray19780 {
  268. yyl2 := r.ReadArrayStart()
  269. if yyl2 == 0 {
  270. r.ReadArrayEnd()
  271. } else {
  272. x.codecDecodeSelfFromArray(yyl2, d)
  273. }
  274. } else {
  275. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  276. }
  277. }
  278. }
  279. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  280. var h codecSelfer19780
  281. z, r := GenHelperDecoder(d)
  282. _, _, _ = h, z, r
  283. var yyhl3 bool = l >= 0
  284. for yyj3 := 0; ; yyj3++ {
  285. if yyhl3 {
  286. if yyj3 >= l {
  287. break
  288. }
  289. } else {
  290. if r.CheckBreak() {
  291. break
  292. }
  293. }
  294. r.ReadMapElemKey()
  295. yys3 := z.StringView(r.DecodeStringAsBytes())
  296. r.ReadMapElemValue()
  297. switch yys3 {
  298. case "BB":
  299. if r.TryDecodeAsNil() {
  300. x.BB = codecgenB{}
  301. } else {
  302. x.BB.CodecDecodeSelf(d)
  303. }
  304. default:
  305. z.DecStructFieldNotFound(-1, yys3)
  306. } // end switch yys3
  307. } // end for yyj3
  308. r.ReadMapEnd()
  309. }
  310. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  311. var h codecSelfer19780
  312. z, r := GenHelperDecoder(d)
  313. _, _, _ = h, z, r
  314. var yyj5 int
  315. var yyb5 bool
  316. var yyhl5 bool = l >= 0
  317. yyj5++
  318. if yyhl5 {
  319. yyb5 = yyj5 > l
  320. } else {
  321. yyb5 = r.CheckBreak()
  322. }
  323. if yyb5 {
  324. r.ReadArrayEnd()
  325. return
  326. }
  327. r.ReadArrayElem()
  328. if r.TryDecodeAsNil() {
  329. x.BB = codecgenB{}
  330. } else {
  331. x.BB.CodecDecodeSelf(d)
  332. }
  333. for {
  334. yyj5++
  335. if yyhl5 {
  336. yyb5 = yyj5 > l
  337. } else {
  338. yyb5 = r.CheckBreak()
  339. }
  340. if yyb5 {
  341. break
  342. }
  343. r.ReadArrayElem()
  344. z.DecStructFieldNotFound(yyj5-1, "")
  345. }
  346. r.ReadArrayEnd()
  347. }
  348. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  349. var h codecSelfer19780
  350. z, r := GenHelperEncoder(e)
  351. _, _, _ = h, z, r
  352. if x == nil {
  353. r.EncodeNil()
  354. } else {
  355. if false {
  356. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  357. z.EncExtension(x, yyxt1)
  358. } else {
  359. yysep2 := !z.EncBinary()
  360. yy2arr2 := z.EncBasicHandle().StructToArray
  361. _, _ = yysep2, yy2arr2
  362. const yyr2 bool = false // struct tag has 'toArray'
  363. if yyr2 || yy2arr2 {
  364. r.WriteArrayStart(1)
  365. } else {
  366. r.WriteMapStart(1)
  367. }
  368. if yyr2 || yy2arr2 {
  369. r.WriteArrayElem()
  370. yy4 := &x.CC
  371. yy4.CodecEncodeSelf(e)
  372. } else {
  373. r.WriteMapElemKey()
  374. if z.IsJSONHandle() {
  375. z.WriteStr("\"CC\"")
  376. } else {
  377. r.EncodeStringEnc(codecSelferCcUTF819780, `CC`)
  378. }
  379. r.WriteMapElemValue()
  380. yy6 := &x.CC
  381. yy6.CodecEncodeSelf(e)
  382. }
  383. if yyr2 || yy2arr2 {
  384. r.WriteArrayEnd()
  385. } else {
  386. r.WriteMapEnd()
  387. }
  388. }
  389. }
  390. }
  391. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  392. var h codecSelfer19780
  393. z, r := GenHelperDecoder(d)
  394. _, _, _ = h, z, r
  395. if false {
  396. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  397. z.DecExtension(x, yyxt1)
  398. } else {
  399. yyct2 := r.ContainerType()
  400. if yyct2 == codecSelferValueTypeMap19780 {
  401. yyl2 := r.ReadMapStart()
  402. if yyl2 == 0 {
  403. r.ReadMapEnd()
  404. } else {
  405. x.codecDecodeSelfFromMap(yyl2, d)
  406. }
  407. } else if yyct2 == codecSelferValueTypeArray19780 {
  408. yyl2 := r.ReadArrayStart()
  409. if yyl2 == 0 {
  410. r.ReadArrayEnd()
  411. } else {
  412. x.codecDecodeSelfFromArray(yyl2, d)
  413. }
  414. } else {
  415. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  416. }
  417. }
  418. }
  419. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  420. var h codecSelfer19780
  421. z, r := GenHelperDecoder(d)
  422. _, _, _ = h, z, r
  423. var yyhl3 bool = l >= 0
  424. for yyj3 := 0; ; yyj3++ {
  425. if yyhl3 {
  426. if yyj3 >= l {
  427. break
  428. }
  429. } else {
  430. if r.CheckBreak() {
  431. break
  432. }
  433. }
  434. r.ReadMapElemKey()
  435. yys3 := z.StringView(r.DecodeStringAsBytes())
  436. r.ReadMapElemValue()
  437. switch yys3 {
  438. case "CC":
  439. if r.TryDecodeAsNil() {
  440. x.CC = codecgenC{}
  441. } else {
  442. x.CC.CodecDecodeSelf(d)
  443. }
  444. default:
  445. z.DecStructFieldNotFound(-1, yys3)
  446. } // end switch yys3
  447. } // end for yyj3
  448. r.ReadMapEnd()
  449. }
  450. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  451. var h codecSelfer19780
  452. z, r := GenHelperDecoder(d)
  453. _, _, _ = h, z, r
  454. var yyj5 int
  455. var yyb5 bool
  456. var yyhl5 bool = l >= 0
  457. yyj5++
  458. if yyhl5 {
  459. yyb5 = yyj5 > l
  460. } else {
  461. yyb5 = r.CheckBreak()
  462. }
  463. if yyb5 {
  464. r.ReadArrayEnd()
  465. return
  466. }
  467. r.ReadArrayElem()
  468. if r.TryDecodeAsNil() {
  469. x.CC = codecgenC{}
  470. } else {
  471. x.CC.CodecDecodeSelf(d)
  472. }
  473. for {
  474. yyj5++
  475. if yyhl5 {
  476. yyb5 = yyj5 > l
  477. } else {
  478. yyb5 = r.CheckBreak()
  479. }
  480. if yyb5 {
  481. break
  482. }
  483. r.ReadArrayElem()
  484. z.DecStructFieldNotFound(yyj5-1, "")
  485. }
  486. r.ReadArrayEnd()
  487. }
  488. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  489. var h codecSelfer19780
  490. z, r := GenHelperEncoder(e)
  491. _, _, _ = h, z, r
  492. if x == nil {
  493. r.EncodeNil()
  494. } else {
  495. if false {
  496. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  497. z.EncExtension(x, yyxt1)
  498. } else {
  499. yysep2 := !z.EncBinary()
  500. yy2arr2 := z.EncBasicHandle().StructToArray
  501. _, _ = yysep2, yy2arr2
  502. const yyr2 bool = false // struct tag has 'toArray'
  503. if yyr2 || yy2arr2 {
  504. r.WriteArrayStart(1)
  505. } else {
  506. r.WriteMapStart(1)
  507. }
  508. if yyr2 || yy2arr2 {
  509. r.WriteArrayElem()
  510. if x.DD == nil {
  511. r.EncodeNil()
  512. } else {
  513. if false {
  514. } else {
  515. r.EncodeStringBytesRaw([]byte(x.DD))
  516. }
  517. }
  518. } else {
  519. r.WriteMapElemKey()
  520. if z.IsJSONHandle() {
  521. z.WriteStr("\"DD\"")
  522. } else {
  523. r.EncodeStringEnc(codecSelferCcUTF819780, `DD`)
  524. }
  525. r.WriteMapElemValue()
  526. if x.DD == nil {
  527. r.EncodeNil()
  528. } else {
  529. if false {
  530. } else {
  531. r.EncodeStringBytesRaw([]byte(x.DD))
  532. }
  533. }
  534. }
  535. if yyr2 || yy2arr2 {
  536. r.WriteArrayEnd()
  537. } else {
  538. r.WriteMapEnd()
  539. }
  540. }
  541. }
  542. }
  543. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  544. var h codecSelfer19780
  545. z, r := GenHelperDecoder(d)
  546. _, _, _ = h, z, r
  547. if false {
  548. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  549. z.DecExtension(x, yyxt1)
  550. } else {
  551. yyct2 := r.ContainerType()
  552. if yyct2 == codecSelferValueTypeMap19780 {
  553. yyl2 := r.ReadMapStart()
  554. if yyl2 == 0 {
  555. r.ReadMapEnd()
  556. } else {
  557. x.codecDecodeSelfFromMap(yyl2, d)
  558. }
  559. } else if yyct2 == codecSelferValueTypeArray19780 {
  560. yyl2 := r.ReadArrayStart()
  561. if yyl2 == 0 {
  562. r.ReadArrayEnd()
  563. } else {
  564. x.codecDecodeSelfFromArray(yyl2, d)
  565. }
  566. } else {
  567. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  568. }
  569. }
  570. }
  571. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  572. var h codecSelfer19780
  573. z, r := GenHelperDecoder(d)
  574. _, _, _ = h, z, r
  575. var yyhl3 bool = l >= 0
  576. for yyj3 := 0; ; yyj3++ {
  577. if yyhl3 {
  578. if yyj3 >= l {
  579. break
  580. }
  581. } else {
  582. if r.CheckBreak() {
  583. break
  584. }
  585. }
  586. r.ReadMapElemKey()
  587. yys3 := z.StringView(r.DecodeStringAsBytes())
  588. r.ReadMapElemValue()
  589. switch yys3 {
  590. case "DD":
  591. if r.TryDecodeAsNil() {
  592. x.DD = nil
  593. } else {
  594. if false {
  595. } else {
  596. x.DD = r.DecodeBytes(([]byte)(x.DD), false)
  597. }
  598. }
  599. default:
  600. z.DecStructFieldNotFound(-1, yys3)
  601. } // end switch yys3
  602. } // end for yyj3
  603. r.ReadMapEnd()
  604. }
  605. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  606. var h codecSelfer19780
  607. z, r := GenHelperDecoder(d)
  608. _, _, _ = h, z, r
  609. var yyj6 int
  610. var yyb6 bool
  611. var yyhl6 bool = l >= 0
  612. yyj6++
  613. if yyhl6 {
  614. yyb6 = yyj6 > l
  615. } else {
  616. yyb6 = r.CheckBreak()
  617. }
  618. if yyb6 {
  619. r.ReadArrayEnd()
  620. return
  621. }
  622. r.ReadArrayElem()
  623. if r.TryDecodeAsNil() {
  624. x.DD = nil
  625. } else {
  626. if false {
  627. } else {
  628. x.DD = r.DecodeBytes(([]byte)(x.DD), false)
  629. }
  630. }
  631. for {
  632. yyj6++
  633. if yyhl6 {
  634. yyb6 = yyj6 > l
  635. } else {
  636. yyb6 = r.CheckBreak()
  637. }
  638. if yyb6 {
  639. break
  640. }
  641. r.ReadArrayElem()
  642. z.DecStructFieldNotFound(yyj6-1, "")
  643. }
  644. r.ReadArrayEnd()
  645. }
  646. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  647. var h codecSelfer19780
  648. z, r := GenHelperEncoder(e)
  649. _, _, _ = h, z, r
  650. if x == nil {
  651. r.EncodeNil()
  652. } else {
  653. if false {
  654. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  655. z.EncExtension(x, yyxt1)
  656. } else {
  657. yysep2 := !z.EncBinary()
  658. yy2arr2 := z.EncBasicHandle().StructToArray
  659. _, _ = yysep2, yy2arr2
  660. const yyr2 bool = false // struct tag has 'toArray'
  661. if yyr2 || yy2arr2 {
  662. r.WriteArrayStart(1)
  663. } else {
  664. r.WriteMapStart(1)
  665. }
  666. if yyr2 || yy2arr2 {
  667. r.WriteArrayElem()
  668. if false {
  669. } else {
  670. r.EncodeInt(int64(x.TestCodecgenG))
  671. }
  672. } else {
  673. r.WriteMapElemKey()
  674. if z.IsJSONHandle() {
  675. z.WriteStr("\"TestCodecgenG\"")
  676. } else {
  677. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  678. }
  679. r.WriteMapElemValue()
  680. if false {
  681. } else {
  682. r.EncodeInt(int64(x.TestCodecgenG))
  683. }
  684. }
  685. if yyr2 || yy2arr2 {
  686. r.WriteArrayEnd()
  687. } else {
  688. r.WriteMapEnd()
  689. }
  690. }
  691. }
  692. }
  693. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  694. var h codecSelfer19780
  695. z, r := GenHelperDecoder(d)
  696. _, _, _ = h, z, r
  697. if false {
  698. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  699. z.DecExtension(x, yyxt1)
  700. } else {
  701. yyct2 := r.ContainerType()
  702. if yyct2 == codecSelferValueTypeMap19780 {
  703. yyl2 := r.ReadMapStart()
  704. if yyl2 == 0 {
  705. r.ReadMapEnd()
  706. } else {
  707. x.codecDecodeSelfFromMap(yyl2, d)
  708. }
  709. } else if yyct2 == codecSelferValueTypeArray19780 {
  710. yyl2 := r.ReadArrayStart()
  711. if yyl2 == 0 {
  712. r.ReadArrayEnd()
  713. } else {
  714. x.codecDecodeSelfFromArray(yyl2, d)
  715. }
  716. } else {
  717. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  718. }
  719. }
  720. }
  721. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  722. var h codecSelfer19780
  723. z, r := GenHelperDecoder(d)
  724. _, _, _ = h, z, r
  725. var yyhl3 bool = l >= 0
  726. for yyj3 := 0; ; yyj3++ {
  727. if yyhl3 {
  728. if yyj3 >= l {
  729. break
  730. }
  731. } else {
  732. if r.CheckBreak() {
  733. break
  734. }
  735. }
  736. r.ReadMapElemKey()
  737. yys3 := z.StringView(r.DecodeStringAsBytes())
  738. r.ReadMapElemValue()
  739. switch yys3 {
  740. case "TestCodecgenG":
  741. if r.TryDecodeAsNil() {
  742. x.TestCodecgenG = 0
  743. } else {
  744. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  745. }
  746. default:
  747. z.DecStructFieldNotFound(-1, yys3)
  748. } // end switch yys3
  749. } // end for yyj3
  750. r.ReadMapEnd()
  751. }
  752. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  753. var h codecSelfer19780
  754. z, r := GenHelperDecoder(d)
  755. _, _, _ = h, z, r
  756. var yyj5 int
  757. var yyb5 bool
  758. var yyhl5 bool = l >= 0
  759. yyj5++
  760. if yyhl5 {
  761. yyb5 = yyj5 > l
  762. } else {
  763. yyb5 = r.CheckBreak()
  764. }
  765. if yyb5 {
  766. r.ReadArrayEnd()
  767. return
  768. }
  769. r.ReadArrayElem()
  770. if r.TryDecodeAsNil() {
  771. x.TestCodecgenG = 0
  772. } else {
  773. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  774. }
  775. for {
  776. yyj5++
  777. if yyhl5 {
  778. yyb5 = yyj5 > l
  779. } else {
  780. yyb5 = r.CheckBreak()
  781. }
  782. if yyb5 {
  783. break
  784. }
  785. r.ReadArrayElem()
  786. z.DecStructFieldNotFound(yyj5-1, "")
  787. }
  788. r.ReadArrayEnd()
  789. }
  790. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  791. var h codecSelfer19780
  792. z, r := GenHelperEncoder(e)
  793. _, _, _ = h, z, r
  794. if x == nil {
  795. r.EncodeNil()
  796. } else {
  797. if false {
  798. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  799. z.EncExtension(x, yyxt1)
  800. } else {
  801. yysep2 := !z.EncBinary()
  802. yy2arr2 := z.EncBasicHandle().StructToArray
  803. _, _ = yysep2, yy2arr2
  804. const yyr2 bool = false // struct tag has 'toArray'
  805. if yyr2 || yy2arr2 {
  806. r.WriteArrayStart(1)
  807. } else {
  808. r.WriteMapStart(1)
  809. }
  810. if yyr2 || yy2arr2 {
  811. r.WriteArrayElem()
  812. if false {
  813. } else {
  814. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  815. }
  816. } else {
  817. r.WriteMapElemKey()
  818. if z.IsJSONHandle() {
  819. z.WriteStr("\"TestCodecgenG\"")
  820. } else {
  821. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  822. }
  823. r.WriteMapElemValue()
  824. if false {
  825. } else {
  826. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  827. }
  828. }
  829. if yyr2 || yy2arr2 {
  830. r.WriteArrayEnd()
  831. } else {
  832. r.WriteMapEnd()
  833. }
  834. }
  835. }
  836. }
  837. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  838. var h codecSelfer19780
  839. z, r := GenHelperDecoder(d)
  840. _, _, _ = h, z, r
  841. if false {
  842. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  843. z.DecExtension(x, yyxt1)
  844. } else {
  845. yyct2 := r.ContainerType()
  846. if yyct2 == codecSelferValueTypeMap19780 {
  847. yyl2 := r.ReadMapStart()
  848. if yyl2 == 0 {
  849. r.ReadMapEnd()
  850. } else {
  851. x.codecDecodeSelfFromMap(yyl2, d)
  852. }
  853. } else if yyct2 == codecSelferValueTypeArray19780 {
  854. yyl2 := r.ReadArrayStart()
  855. if yyl2 == 0 {
  856. r.ReadArrayEnd()
  857. } else {
  858. x.codecDecodeSelfFromArray(yyl2, d)
  859. }
  860. } else {
  861. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  862. }
  863. }
  864. }
  865. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  866. var h codecSelfer19780
  867. z, r := GenHelperDecoder(d)
  868. _, _, _ = h, z, r
  869. var yyhl3 bool = l >= 0
  870. for yyj3 := 0; ; yyj3++ {
  871. if yyhl3 {
  872. if yyj3 >= l {
  873. break
  874. }
  875. } else {
  876. if r.CheckBreak() {
  877. break
  878. }
  879. }
  880. r.ReadMapElemKey()
  881. yys3 := z.StringView(r.DecodeStringAsBytes())
  882. r.ReadMapElemValue()
  883. switch yys3 {
  884. case "TestCodecgenG":
  885. if r.TryDecodeAsNil() {
  886. x.TestCodecgenG.TestCodecgenG = 0
  887. } else {
  888. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  889. }
  890. default:
  891. z.DecStructFieldNotFound(-1, yys3)
  892. } // end switch yys3
  893. } // end for yyj3
  894. r.ReadMapEnd()
  895. }
  896. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  897. var h codecSelfer19780
  898. z, r := GenHelperDecoder(d)
  899. _, _, _ = h, z, r
  900. var yyj5 int
  901. var yyb5 bool
  902. var yyhl5 bool = l >= 0
  903. yyj5++
  904. if yyhl5 {
  905. yyb5 = yyj5 > l
  906. } else {
  907. yyb5 = r.CheckBreak()
  908. }
  909. if yyb5 {
  910. r.ReadArrayEnd()
  911. return
  912. }
  913. r.ReadArrayElem()
  914. if r.TryDecodeAsNil() {
  915. x.TestCodecgenG.TestCodecgenG = 0
  916. } else {
  917. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  918. }
  919. for {
  920. yyj5++
  921. if yyhl5 {
  922. yyb5 = yyj5 > l
  923. } else {
  924. yyb5 = r.CheckBreak()
  925. }
  926. if yyb5 {
  927. break
  928. }
  929. r.ReadArrayElem()
  930. z.DecStructFieldNotFound(yyj5-1, "")
  931. }
  932. r.ReadArrayEnd()
  933. }
  934. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  935. var h codecSelfer19780
  936. z, r := GenHelperEncoder(e)
  937. _, _, _ = h, z, r
  938. if x == nil {
  939. r.EncodeNil()
  940. } else {
  941. if false {
  942. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  943. z.EncExtension(x, yyxt1)
  944. } else {
  945. yysep2 := !z.EncBinary()
  946. yy2arr2 := z.EncBasicHandle().StructToArray
  947. _, _ = yysep2, yy2arr2
  948. const yyr2 bool = false // struct tag has 'toArray'
  949. if yyr2 || yy2arr2 {
  950. r.WriteArrayStart(1)
  951. } else {
  952. r.WriteMapStart(1)
  953. }
  954. if yyr2 || yy2arr2 {
  955. r.WriteArrayElem()
  956. if false {
  957. } else {
  958. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  959. }
  960. } else {
  961. r.WriteMapElemKey()
  962. if z.IsJSONHandle() {
  963. z.WriteStr("\"TestCodecgenG\"")
  964. } else {
  965. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  966. }
  967. r.WriteMapElemValue()
  968. if false {
  969. } else {
  970. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  971. }
  972. }
  973. if yyr2 || yy2arr2 {
  974. r.WriteArrayEnd()
  975. } else {
  976. r.WriteMapEnd()
  977. }
  978. }
  979. }
  980. }
  981. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  982. var h codecSelfer19780
  983. z, r := GenHelperDecoder(d)
  984. _, _, _ = h, z, r
  985. if false {
  986. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  987. z.DecExtension(x, yyxt1)
  988. } else {
  989. yyct2 := r.ContainerType()
  990. if yyct2 == codecSelferValueTypeMap19780 {
  991. yyl2 := r.ReadMapStart()
  992. if yyl2 == 0 {
  993. r.ReadMapEnd()
  994. } else {
  995. x.codecDecodeSelfFromMap(yyl2, d)
  996. }
  997. } else if yyct2 == codecSelferValueTypeArray19780 {
  998. yyl2 := r.ReadArrayStart()
  999. if yyl2 == 0 {
  1000. r.ReadArrayEnd()
  1001. } else {
  1002. x.codecDecodeSelfFromArray(yyl2, d)
  1003. }
  1004. } else {
  1005. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1006. }
  1007. }
  1008. }
  1009. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  1010. var h codecSelfer19780
  1011. z, r := GenHelperDecoder(d)
  1012. _, _, _ = h, z, r
  1013. var yyhl3 bool = l >= 0
  1014. for yyj3 := 0; ; yyj3++ {
  1015. if yyhl3 {
  1016. if yyj3 >= l {
  1017. break
  1018. }
  1019. } else {
  1020. if r.CheckBreak() {
  1021. break
  1022. }
  1023. }
  1024. r.ReadMapElemKey()
  1025. yys3 := z.StringView(r.DecodeStringAsBytes())
  1026. r.ReadMapElemValue()
  1027. switch yys3 {
  1028. case "TestCodecgenG":
  1029. if r.TryDecodeAsNil() {
  1030. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  1031. } else {
  1032. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  1033. }
  1034. default:
  1035. z.DecStructFieldNotFound(-1, yys3)
  1036. } // end switch yys3
  1037. } // end for yyj3
  1038. r.ReadMapEnd()
  1039. }
  1040. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  1041. var h codecSelfer19780
  1042. z, r := GenHelperDecoder(d)
  1043. _, _, _ = h, z, r
  1044. var yyj5 int
  1045. var yyb5 bool
  1046. var yyhl5 bool = l >= 0
  1047. yyj5++
  1048. if yyhl5 {
  1049. yyb5 = yyj5 > l
  1050. } else {
  1051. yyb5 = r.CheckBreak()
  1052. }
  1053. if yyb5 {
  1054. r.ReadArrayEnd()
  1055. return
  1056. }
  1057. r.ReadArrayElem()
  1058. if r.TryDecodeAsNil() {
  1059. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  1060. } else {
  1061. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  1062. }
  1063. for {
  1064. yyj5++
  1065. if yyhl5 {
  1066. yyb5 = yyj5 > l
  1067. } else {
  1068. yyb5 = r.CheckBreak()
  1069. }
  1070. if yyb5 {
  1071. break
  1072. }
  1073. r.ReadArrayElem()
  1074. z.DecStructFieldNotFound(yyj5-1, "")
  1075. }
  1076. r.ReadArrayEnd()
  1077. }
  1078. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  1079. var h codecSelfer19780
  1080. z, r := GenHelperEncoder(e)
  1081. _, _, _ = h, z, r
  1082. if x == nil {
  1083. r.EncodeNil()
  1084. } else {
  1085. if false {
  1086. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1087. z.EncExtension(x, yyxt1)
  1088. } else {
  1089. yysep2 := !z.EncBinary()
  1090. yy2arr2 := z.EncBasicHandle().StructToArray
  1091. _, _ = yysep2, yy2arr2
  1092. const yyr2 bool = false // struct tag has 'toArray'
  1093. if yyr2 || yy2arr2 {
  1094. r.WriteArrayStart(2)
  1095. } else {
  1096. r.WriteMapStart(2)
  1097. }
  1098. if yyr2 || yy2arr2 {
  1099. r.WriteArrayElem()
  1100. if false {
  1101. } else {
  1102. if z.EncBasicHandle().StringToRaw {
  1103. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1104. } else {
  1105. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1106. }
  1107. }
  1108. } else {
  1109. r.WriteMapElemKey()
  1110. if z.IsJSONHandle() {
  1111. z.WriteStr("\"S\"")
  1112. } else {
  1113. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1114. }
  1115. r.WriteMapElemValue()
  1116. if false {
  1117. } else {
  1118. if z.EncBasicHandle().StringToRaw {
  1119. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1120. } else {
  1121. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1122. }
  1123. }
  1124. }
  1125. if yyr2 || yy2arr2 {
  1126. r.WriteArrayElem()
  1127. if false {
  1128. } else {
  1129. r.EncodeUint(uint64(x.U))
  1130. }
  1131. } else {
  1132. r.WriteMapElemKey()
  1133. if z.IsJSONHandle() {
  1134. z.WriteStr("\"U\"")
  1135. } else {
  1136. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  1137. }
  1138. r.WriteMapElemValue()
  1139. if false {
  1140. } else {
  1141. r.EncodeUint(uint64(x.U))
  1142. }
  1143. }
  1144. if yyr2 || yy2arr2 {
  1145. r.WriteArrayEnd()
  1146. } else {
  1147. r.WriteMapEnd()
  1148. }
  1149. }
  1150. }
  1151. }
  1152. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  1153. var h codecSelfer19780
  1154. z, r := GenHelperDecoder(d)
  1155. _, _, _ = h, z, r
  1156. if false {
  1157. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1158. z.DecExtension(x, yyxt1)
  1159. } else {
  1160. yyct2 := r.ContainerType()
  1161. if yyct2 == codecSelferValueTypeMap19780 {
  1162. yyl2 := r.ReadMapStart()
  1163. if yyl2 == 0 {
  1164. r.ReadMapEnd()
  1165. } else {
  1166. x.codecDecodeSelfFromMap(yyl2, d)
  1167. }
  1168. } else if yyct2 == codecSelferValueTypeArray19780 {
  1169. yyl2 := r.ReadArrayStart()
  1170. if yyl2 == 0 {
  1171. r.ReadArrayEnd()
  1172. } else {
  1173. x.codecDecodeSelfFromArray(yyl2, d)
  1174. }
  1175. } else {
  1176. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1177. }
  1178. }
  1179. }
  1180. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  1181. var h codecSelfer19780
  1182. z, r := GenHelperDecoder(d)
  1183. _, _, _ = h, z, r
  1184. var yyhl3 bool = l >= 0
  1185. for yyj3 := 0; ; yyj3++ {
  1186. if yyhl3 {
  1187. if yyj3 >= l {
  1188. break
  1189. }
  1190. } else {
  1191. if r.CheckBreak() {
  1192. break
  1193. }
  1194. }
  1195. r.ReadMapElemKey()
  1196. yys3 := z.StringView(r.DecodeStringAsBytes())
  1197. r.ReadMapElemValue()
  1198. switch yys3 {
  1199. case "S":
  1200. if r.TryDecodeAsNil() {
  1201. x.S = ""
  1202. } else {
  1203. x.S = (string)(r.DecodeString())
  1204. }
  1205. case "U":
  1206. if r.TryDecodeAsNil() {
  1207. x.U = 0
  1208. } else {
  1209. x.U = (uint64)(r.DecodeUint64())
  1210. }
  1211. default:
  1212. z.DecStructFieldNotFound(-1, yys3)
  1213. } // end switch yys3
  1214. } // end for yyj3
  1215. r.ReadMapEnd()
  1216. }
  1217. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  1218. var h codecSelfer19780
  1219. z, r := GenHelperDecoder(d)
  1220. _, _, _ = h, z, r
  1221. var yyj6 int
  1222. var yyb6 bool
  1223. var yyhl6 bool = l >= 0
  1224. yyj6++
  1225. if yyhl6 {
  1226. yyb6 = yyj6 > l
  1227. } else {
  1228. yyb6 = r.CheckBreak()
  1229. }
  1230. if yyb6 {
  1231. r.ReadArrayEnd()
  1232. return
  1233. }
  1234. r.ReadArrayElem()
  1235. if r.TryDecodeAsNil() {
  1236. x.S = ""
  1237. } else {
  1238. x.S = (string)(r.DecodeString())
  1239. }
  1240. yyj6++
  1241. if yyhl6 {
  1242. yyb6 = yyj6 > l
  1243. } else {
  1244. yyb6 = r.CheckBreak()
  1245. }
  1246. if yyb6 {
  1247. r.ReadArrayEnd()
  1248. return
  1249. }
  1250. r.ReadArrayElem()
  1251. if r.TryDecodeAsNil() {
  1252. x.U = 0
  1253. } else {
  1254. x.U = (uint64)(r.DecodeUint64())
  1255. }
  1256. for {
  1257. yyj6++
  1258. if yyhl6 {
  1259. yyb6 = yyj6 > l
  1260. } else {
  1261. yyb6 = r.CheckBreak()
  1262. }
  1263. if yyb6 {
  1264. break
  1265. }
  1266. r.ReadArrayElem()
  1267. z.DecStructFieldNotFound(yyj6-1, "")
  1268. }
  1269. r.ReadArrayEnd()
  1270. }
  1271. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  1272. var h codecSelfer19780
  1273. z, r := GenHelperEncoder(e)
  1274. _, _, _ = h, z, r
  1275. if x == nil {
  1276. r.EncodeNil()
  1277. } else {
  1278. if false {
  1279. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1280. z.EncExtension(x, yyxt1)
  1281. } else {
  1282. yysep2 := !z.EncBinary()
  1283. yy2arr2 := z.EncBasicHandle().StructToArray
  1284. _, _ = yysep2, yy2arr2
  1285. const yyr2 bool = false // struct tag has 'toArray'
  1286. if yyr2 || yy2arr2 {
  1287. r.WriteArrayStart(15)
  1288. } else {
  1289. r.WriteMapStart(15)
  1290. }
  1291. if yyr2 || yy2arr2 {
  1292. r.WriteArrayElem()
  1293. if false {
  1294. } else {
  1295. if z.EncBasicHandle().StringToRaw {
  1296. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  1297. } else {
  1298. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  1299. }
  1300. }
  1301. } else {
  1302. r.WriteMapElemKey()
  1303. if z.IsJSONHandle() {
  1304. z.WriteStr("\"AS\"")
  1305. } else {
  1306. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  1307. }
  1308. r.WriteMapElemValue()
  1309. if false {
  1310. } else {
  1311. if z.EncBasicHandle().StringToRaw {
  1312. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  1313. } else {
  1314. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  1315. }
  1316. }
  1317. }
  1318. if yyr2 || yy2arr2 {
  1319. r.WriteArrayElem()
  1320. if false {
  1321. } else {
  1322. r.EncodeInt(int64(x.AI64))
  1323. }
  1324. } else {
  1325. r.WriteMapElemKey()
  1326. if z.IsJSONHandle() {
  1327. z.WriteStr("\"AI64\"")
  1328. } else {
  1329. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  1330. }
  1331. r.WriteMapElemValue()
  1332. if false {
  1333. } else {
  1334. r.EncodeInt(int64(x.AI64))
  1335. }
  1336. }
  1337. if yyr2 || yy2arr2 {
  1338. r.WriteArrayElem()
  1339. if false {
  1340. } else {
  1341. r.EncodeInt(int64(x.AI16))
  1342. }
  1343. } else {
  1344. r.WriteMapElemKey()
  1345. if z.IsJSONHandle() {
  1346. z.WriteStr("\"AI16\"")
  1347. } else {
  1348. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  1349. }
  1350. r.WriteMapElemValue()
  1351. if false {
  1352. } else {
  1353. r.EncodeInt(int64(x.AI16))
  1354. }
  1355. }
  1356. if yyr2 || yy2arr2 {
  1357. r.WriteArrayElem()
  1358. if false {
  1359. } else {
  1360. r.EncodeUint(uint64(x.AUi64))
  1361. }
  1362. } else {
  1363. r.WriteMapElemKey()
  1364. if z.IsJSONHandle() {
  1365. z.WriteStr("\"AUi64\"")
  1366. } else {
  1367. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  1368. }
  1369. r.WriteMapElemValue()
  1370. if false {
  1371. } else {
  1372. r.EncodeUint(uint64(x.AUi64))
  1373. }
  1374. }
  1375. if yyr2 || yy2arr2 {
  1376. r.WriteArrayElem()
  1377. if x.ASslice == nil {
  1378. r.EncodeNil()
  1379. } else {
  1380. if false {
  1381. } else {
  1382. z.F.EncSliceStringV(x.ASslice, e)
  1383. }
  1384. }
  1385. } else {
  1386. r.WriteMapElemKey()
  1387. if z.IsJSONHandle() {
  1388. z.WriteStr("\"ASslice\"")
  1389. } else {
  1390. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  1391. }
  1392. r.WriteMapElemValue()
  1393. if x.ASslice == nil {
  1394. r.EncodeNil()
  1395. } else {
  1396. if false {
  1397. } else {
  1398. z.F.EncSliceStringV(x.ASslice, e)
  1399. }
  1400. }
  1401. }
  1402. if yyr2 || yy2arr2 {
  1403. r.WriteArrayElem()
  1404. if x.AI64slice == nil {
  1405. r.EncodeNil()
  1406. } else {
  1407. if false {
  1408. } else {
  1409. z.F.EncSliceInt64V(x.AI64slice, e)
  1410. }
  1411. }
  1412. } else {
  1413. r.WriteMapElemKey()
  1414. if z.IsJSONHandle() {
  1415. z.WriteStr("\"AI64slice\"")
  1416. } else {
  1417. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  1418. }
  1419. r.WriteMapElemValue()
  1420. if x.AI64slice == nil {
  1421. r.EncodeNil()
  1422. } else {
  1423. if false {
  1424. } else {
  1425. z.F.EncSliceInt64V(x.AI64slice, e)
  1426. }
  1427. }
  1428. }
  1429. if yyr2 || yy2arr2 {
  1430. r.WriteArrayElem()
  1431. if x.AUi64slice == nil {
  1432. r.EncodeNil()
  1433. } else {
  1434. if false {
  1435. } else {
  1436. z.F.EncSliceUint64V(x.AUi64slice, e)
  1437. }
  1438. }
  1439. } else {
  1440. r.WriteMapElemKey()
  1441. if z.IsJSONHandle() {
  1442. z.WriteStr("\"AUi64slice\"")
  1443. } else {
  1444. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  1445. }
  1446. r.WriteMapElemValue()
  1447. if x.AUi64slice == nil {
  1448. r.EncodeNil()
  1449. } else {
  1450. if false {
  1451. } else {
  1452. z.F.EncSliceUint64V(x.AUi64slice, e)
  1453. }
  1454. }
  1455. }
  1456. if yyr2 || yy2arr2 {
  1457. r.WriteArrayElem()
  1458. if x.AF64slice == nil {
  1459. r.EncodeNil()
  1460. } else {
  1461. if false {
  1462. } else {
  1463. z.F.EncSliceFloat64V(x.AF64slice, e)
  1464. }
  1465. }
  1466. } else {
  1467. r.WriteMapElemKey()
  1468. if z.IsJSONHandle() {
  1469. z.WriteStr("\"AF64slice\"")
  1470. } else {
  1471. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  1472. }
  1473. r.WriteMapElemValue()
  1474. if x.AF64slice == nil {
  1475. r.EncodeNil()
  1476. } else {
  1477. if false {
  1478. } else {
  1479. z.F.EncSliceFloat64V(x.AF64slice, e)
  1480. }
  1481. }
  1482. }
  1483. if yyr2 || yy2arr2 {
  1484. r.WriteArrayElem()
  1485. if x.AF32slice == nil {
  1486. r.EncodeNil()
  1487. } else {
  1488. if false {
  1489. } else {
  1490. z.F.EncSliceFloat32V(x.AF32slice, e)
  1491. }
  1492. }
  1493. } else {
  1494. r.WriteMapElemKey()
  1495. if z.IsJSONHandle() {
  1496. z.WriteStr("\"AF32slice\"")
  1497. } else {
  1498. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  1499. }
  1500. r.WriteMapElemValue()
  1501. if x.AF32slice == nil {
  1502. r.EncodeNil()
  1503. } else {
  1504. if false {
  1505. } else {
  1506. z.F.EncSliceFloat32V(x.AF32slice, e)
  1507. }
  1508. }
  1509. }
  1510. if yyr2 || yy2arr2 {
  1511. r.WriteArrayElem()
  1512. if x.AMSU16 == nil {
  1513. r.EncodeNil()
  1514. } else {
  1515. if false {
  1516. } else {
  1517. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  1518. }
  1519. }
  1520. } else {
  1521. r.WriteMapElemKey()
  1522. if z.IsJSONHandle() {
  1523. z.WriteStr("\"AMSU16\"")
  1524. } else {
  1525. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  1526. }
  1527. r.WriteMapElemValue()
  1528. if x.AMSU16 == nil {
  1529. r.EncodeNil()
  1530. } else {
  1531. if false {
  1532. } else {
  1533. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  1534. }
  1535. }
  1536. }
  1537. if yyr2 || yy2arr2 {
  1538. r.WriteArrayElem()
  1539. yy34 := &x.AI64arr0
  1540. if false {
  1541. } else {
  1542. h.encArray0int64((*[0]int64)(yy34), e)
  1543. }
  1544. } else {
  1545. r.WriteMapElemKey()
  1546. if z.IsJSONHandle() {
  1547. z.WriteStr("\"AI64arr0\"")
  1548. } else {
  1549. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  1550. }
  1551. r.WriteMapElemValue()
  1552. yy36 := &x.AI64arr0
  1553. if false {
  1554. } else {
  1555. h.encArray0int64((*[0]int64)(yy36), e)
  1556. }
  1557. }
  1558. if yyr2 || yy2arr2 {
  1559. r.WriteArrayElem()
  1560. if x.A164slice0 == nil {
  1561. r.EncodeNil()
  1562. } else {
  1563. if false {
  1564. } else {
  1565. z.F.EncSliceInt64V(x.A164slice0, e)
  1566. }
  1567. }
  1568. } else {
  1569. r.WriteMapElemKey()
  1570. if z.IsJSONHandle() {
  1571. z.WriteStr("\"A164slice0\"")
  1572. } else {
  1573. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  1574. }
  1575. r.WriteMapElemValue()
  1576. if x.A164slice0 == nil {
  1577. r.EncodeNil()
  1578. } else {
  1579. if false {
  1580. } else {
  1581. z.F.EncSliceInt64V(x.A164slice0, e)
  1582. }
  1583. }
  1584. }
  1585. if yyr2 || yy2arr2 {
  1586. r.WriteArrayElem()
  1587. if x.AUi64sliceN == nil {
  1588. r.EncodeNil()
  1589. } else {
  1590. if false {
  1591. } else {
  1592. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  1593. }
  1594. }
  1595. } else {
  1596. r.WriteMapElemKey()
  1597. if z.IsJSONHandle() {
  1598. z.WriteStr("\"AUi64sliceN\"")
  1599. } else {
  1600. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  1601. }
  1602. r.WriteMapElemValue()
  1603. if x.AUi64sliceN == nil {
  1604. r.EncodeNil()
  1605. } else {
  1606. if false {
  1607. } else {
  1608. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  1609. }
  1610. }
  1611. }
  1612. if yyr2 || yy2arr2 {
  1613. r.WriteArrayElem()
  1614. if x.AMSU16N == nil {
  1615. r.EncodeNil()
  1616. } else {
  1617. if false {
  1618. } else {
  1619. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  1620. }
  1621. }
  1622. } else {
  1623. r.WriteMapElemKey()
  1624. if z.IsJSONHandle() {
  1625. z.WriteStr("\"AMSU16N\"")
  1626. } else {
  1627. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  1628. }
  1629. r.WriteMapElemValue()
  1630. if x.AMSU16N == nil {
  1631. r.EncodeNil()
  1632. } else {
  1633. if false {
  1634. } else {
  1635. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  1636. }
  1637. }
  1638. }
  1639. if yyr2 || yy2arr2 {
  1640. r.WriteArrayElem()
  1641. if x.AMSU16E == nil {
  1642. r.EncodeNil()
  1643. } else {
  1644. if false {
  1645. } else {
  1646. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  1647. }
  1648. }
  1649. } else {
  1650. r.WriteMapElemKey()
  1651. if z.IsJSONHandle() {
  1652. z.WriteStr("\"AMSU16E\"")
  1653. } else {
  1654. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  1655. }
  1656. r.WriteMapElemValue()
  1657. if x.AMSU16E == nil {
  1658. r.EncodeNil()
  1659. } else {
  1660. if false {
  1661. } else {
  1662. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  1663. }
  1664. }
  1665. }
  1666. if yyr2 || yy2arr2 {
  1667. r.WriteArrayEnd()
  1668. } else {
  1669. r.WriteMapEnd()
  1670. }
  1671. }
  1672. }
  1673. }
  1674. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  1675. var h codecSelfer19780
  1676. z, r := GenHelperDecoder(d)
  1677. _, _, _ = h, z, r
  1678. if false {
  1679. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1680. z.DecExtension(x, yyxt1)
  1681. } else {
  1682. yyct2 := r.ContainerType()
  1683. if yyct2 == codecSelferValueTypeMap19780 {
  1684. yyl2 := r.ReadMapStart()
  1685. if yyl2 == 0 {
  1686. r.ReadMapEnd()
  1687. } else {
  1688. x.codecDecodeSelfFromMap(yyl2, d)
  1689. }
  1690. } else if yyct2 == codecSelferValueTypeArray19780 {
  1691. yyl2 := r.ReadArrayStart()
  1692. if yyl2 == 0 {
  1693. r.ReadArrayEnd()
  1694. } else {
  1695. x.codecDecodeSelfFromArray(yyl2, d)
  1696. }
  1697. } else {
  1698. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1699. }
  1700. }
  1701. }
  1702. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  1703. var h codecSelfer19780
  1704. z, r := GenHelperDecoder(d)
  1705. _, _, _ = h, z, r
  1706. var yyhl3 bool = l >= 0
  1707. for yyj3 := 0; ; yyj3++ {
  1708. if yyhl3 {
  1709. if yyj3 >= l {
  1710. break
  1711. }
  1712. } else {
  1713. if r.CheckBreak() {
  1714. break
  1715. }
  1716. }
  1717. r.ReadMapElemKey()
  1718. yys3 := z.StringView(r.DecodeStringAsBytes())
  1719. r.ReadMapElemValue()
  1720. switch yys3 {
  1721. case "AS":
  1722. if r.TryDecodeAsNil() {
  1723. x.AS = ""
  1724. } else {
  1725. x.AS = (string)(r.DecodeString())
  1726. }
  1727. case "AI64":
  1728. if r.TryDecodeAsNil() {
  1729. x.AI64 = 0
  1730. } else {
  1731. x.AI64 = (int64)(r.DecodeInt64())
  1732. }
  1733. case "AI16":
  1734. if r.TryDecodeAsNil() {
  1735. x.AI16 = 0
  1736. } else {
  1737. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  1738. }
  1739. case "AUi64":
  1740. if r.TryDecodeAsNil() {
  1741. x.AUi64 = 0
  1742. } else {
  1743. x.AUi64 = (uint64)(r.DecodeUint64())
  1744. }
  1745. case "ASslice":
  1746. if r.TryDecodeAsNil() {
  1747. x.ASslice = nil
  1748. } else {
  1749. if false {
  1750. } else {
  1751. z.F.DecSliceStringX(&x.ASslice, d)
  1752. }
  1753. }
  1754. case "AI64slice":
  1755. if r.TryDecodeAsNil() {
  1756. x.AI64slice = nil
  1757. } else {
  1758. if false {
  1759. } else {
  1760. z.F.DecSliceInt64X(&x.AI64slice, d)
  1761. }
  1762. }
  1763. case "AUi64slice":
  1764. if r.TryDecodeAsNil() {
  1765. x.AUi64slice = nil
  1766. } else {
  1767. if false {
  1768. } else {
  1769. z.F.DecSliceUint64X(&x.AUi64slice, d)
  1770. }
  1771. }
  1772. case "AF64slice":
  1773. if r.TryDecodeAsNil() {
  1774. x.AF64slice = nil
  1775. } else {
  1776. if false {
  1777. } else {
  1778. z.F.DecSliceFloat64X(&x.AF64slice, d)
  1779. }
  1780. }
  1781. case "AF32slice":
  1782. if r.TryDecodeAsNil() {
  1783. x.AF32slice = nil
  1784. } else {
  1785. if false {
  1786. } else {
  1787. z.F.DecSliceFloat32X(&x.AF32slice, d)
  1788. }
  1789. }
  1790. case "AMSU16":
  1791. if r.TryDecodeAsNil() {
  1792. x.AMSU16 = nil
  1793. } else {
  1794. if false {
  1795. } else {
  1796. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  1797. }
  1798. }
  1799. case "AI64arr0":
  1800. if r.TryDecodeAsNil() {
  1801. x.AI64arr0 = [0]int64{}
  1802. } else {
  1803. if false {
  1804. } else {
  1805. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  1806. }
  1807. }
  1808. case "A164slice0":
  1809. if r.TryDecodeAsNil() {
  1810. x.A164slice0 = nil
  1811. } else {
  1812. if false {
  1813. } else {
  1814. z.F.DecSliceInt64X(&x.A164slice0, d)
  1815. }
  1816. }
  1817. case "AUi64sliceN":
  1818. if r.TryDecodeAsNil() {
  1819. x.AUi64sliceN = nil
  1820. } else {
  1821. if false {
  1822. } else {
  1823. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  1824. }
  1825. }
  1826. case "AMSU16N":
  1827. if r.TryDecodeAsNil() {
  1828. x.AMSU16N = nil
  1829. } else {
  1830. if false {
  1831. } else {
  1832. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  1833. }
  1834. }
  1835. case "AMSU16E":
  1836. if r.TryDecodeAsNil() {
  1837. x.AMSU16E = nil
  1838. } else {
  1839. if false {
  1840. } else {
  1841. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  1842. }
  1843. }
  1844. default:
  1845. z.DecStructFieldNotFound(-1, yys3)
  1846. } // end switch yys3
  1847. } // end for yyj3
  1848. r.ReadMapEnd()
  1849. }
  1850. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  1851. var h codecSelfer19780
  1852. z, r := GenHelperDecoder(d)
  1853. _, _, _ = h, z, r
  1854. var yyj30 int
  1855. var yyb30 bool
  1856. var yyhl30 bool = l >= 0
  1857. yyj30++
  1858. if yyhl30 {
  1859. yyb30 = yyj30 > l
  1860. } else {
  1861. yyb30 = r.CheckBreak()
  1862. }
  1863. if yyb30 {
  1864. r.ReadArrayEnd()
  1865. return
  1866. }
  1867. r.ReadArrayElem()
  1868. if r.TryDecodeAsNil() {
  1869. x.AS = ""
  1870. } else {
  1871. x.AS = (string)(r.DecodeString())
  1872. }
  1873. yyj30++
  1874. if yyhl30 {
  1875. yyb30 = yyj30 > l
  1876. } else {
  1877. yyb30 = r.CheckBreak()
  1878. }
  1879. if yyb30 {
  1880. r.ReadArrayEnd()
  1881. return
  1882. }
  1883. r.ReadArrayElem()
  1884. if r.TryDecodeAsNil() {
  1885. x.AI64 = 0
  1886. } else {
  1887. x.AI64 = (int64)(r.DecodeInt64())
  1888. }
  1889. yyj30++
  1890. if yyhl30 {
  1891. yyb30 = yyj30 > l
  1892. } else {
  1893. yyb30 = r.CheckBreak()
  1894. }
  1895. if yyb30 {
  1896. r.ReadArrayEnd()
  1897. return
  1898. }
  1899. r.ReadArrayElem()
  1900. if r.TryDecodeAsNil() {
  1901. x.AI16 = 0
  1902. } else {
  1903. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  1904. }
  1905. yyj30++
  1906. if yyhl30 {
  1907. yyb30 = yyj30 > l
  1908. } else {
  1909. yyb30 = r.CheckBreak()
  1910. }
  1911. if yyb30 {
  1912. r.ReadArrayEnd()
  1913. return
  1914. }
  1915. r.ReadArrayElem()
  1916. if r.TryDecodeAsNil() {
  1917. x.AUi64 = 0
  1918. } else {
  1919. x.AUi64 = (uint64)(r.DecodeUint64())
  1920. }
  1921. yyj30++
  1922. if yyhl30 {
  1923. yyb30 = yyj30 > l
  1924. } else {
  1925. yyb30 = r.CheckBreak()
  1926. }
  1927. if yyb30 {
  1928. r.ReadArrayEnd()
  1929. return
  1930. }
  1931. r.ReadArrayElem()
  1932. if r.TryDecodeAsNil() {
  1933. x.ASslice = nil
  1934. } else {
  1935. if false {
  1936. } else {
  1937. z.F.DecSliceStringX(&x.ASslice, d)
  1938. }
  1939. }
  1940. yyj30++
  1941. if yyhl30 {
  1942. yyb30 = yyj30 > l
  1943. } else {
  1944. yyb30 = r.CheckBreak()
  1945. }
  1946. if yyb30 {
  1947. r.ReadArrayEnd()
  1948. return
  1949. }
  1950. r.ReadArrayElem()
  1951. if r.TryDecodeAsNil() {
  1952. x.AI64slice = nil
  1953. } else {
  1954. if false {
  1955. } else {
  1956. z.F.DecSliceInt64X(&x.AI64slice, d)
  1957. }
  1958. }
  1959. yyj30++
  1960. if yyhl30 {
  1961. yyb30 = yyj30 > l
  1962. } else {
  1963. yyb30 = r.CheckBreak()
  1964. }
  1965. if yyb30 {
  1966. r.ReadArrayEnd()
  1967. return
  1968. }
  1969. r.ReadArrayElem()
  1970. if r.TryDecodeAsNil() {
  1971. x.AUi64slice = nil
  1972. } else {
  1973. if false {
  1974. } else {
  1975. z.F.DecSliceUint64X(&x.AUi64slice, d)
  1976. }
  1977. }
  1978. yyj30++
  1979. if yyhl30 {
  1980. yyb30 = yyj30 > l
  1981. } else {
  1982. yyb30 = r.CheckBreak()
  1983. }
  1984. if yyb30 {
  1985. r.ReadArrayEnd()
  1986. return
  1987. }
  1988. r.ReadArrayElem()
  1989. if r.TryDecodeAsNil() {
  1990. x.AF64slice = nil
  1991. } else {
  1992. if false {
  1993. } else {
  1994. z.F.DecSliceFloat64X(&x.AF64slice, d)
  1995. }
  1996. }
  1997. yyj30++
  1998. if yyhl30 {
  1999. yyb30 = yyj30 > l
  2000. } else {
  2001. yyb30 = r.CheckBreak()
  2002. }
  2003. if yyb30 {
  2004. r.ReadArrayEnd()
  2005. return
  2006. }
  2007. r.ReadArrayElem()
  2008. if r.TryDecodeAsNil() {
  2009. x.AF32slice = nil
  2010. } else {
  2011. if false {
  2012. } else {
  2013. z.F.DecSliceFloat32X(&x.AF32slice, d)
  2014. }
  2015. }
  2016. yyj30++
  2017. if yyhl30 {
  2018. yyb30 = yyj30 > l
  2019. } else {
  2020. yyb30 = r.CheckBreak()
  2021. }
  2022. if yyb30 {
  2023. r.ReadArrayEnd()
  2024. return
  2025. }
  2026. r.ReadArrayElem()
  2027. if r.TryDecodeAsNil() {
  2028. x.AMSU16 = nil
  2029. } else {
  2030. if false {
  2031. } else {
  2032. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  2033. }
  2034. }
  2035. yyj30++
  2036. if yyhl30 {
  2037. yyb30 = yyj30 > l
  2038. } else {
  2039. yyb30 = r.CheckBreak()
  2040. }
  2041. if yyb30 {
  2042. r.ReadArrayEnd()
  2043. return
  2044. }
  2045. r.ReadArrayElem()
  2046. if r.TryDecodeAsNil() {
  2047. x.AI64arr0 = [0]int64{}
  2048. } else {
  2049. if false {
  2050. } else {
  2051. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  2052. }
  2053. }
  2054. yyj30++
  2055. if yyhl30 {
  2056. yyb30 = yyj30 > l
  2057. } else {
  2058. yyb30 = r.CheckBreak()
  2059. }
  2060. if yyb30 {
  2061. r.ReadArrayEnd()
  2062. return
  2063. }
  2064. r.ReadArrayElem()
  2065. if r.TryDecodeAsNil() {
  2066. x.A164slice0 = nil
  2067. } else {
  2068. if false {
  2069. } else {
  2070. z.F.DecSliceInt64X(&x.A164slice0, d)
  2071. }
  2072. }
  2073. yyj30++
  2074. if yyhl30 {
  2075. yyb30 = yyj30 > l
  2076. } else {
  2077. yyb30 = r.CheckBreak()
  2078. }
  2079. if yyb30 {
  2080. r.ReadArrayEnd()
  2081. return
  2082. }
  2083. r.ReadArrayElem()
  2084. if r.TryDecodeAsNil() {
  2085. x.AUi64sliceN = nil
  2086. } else {
  2087. if false {
  2088. } else {
  2089. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  2090. }
  2091. }
  2092. yyj30++
  2093. if yyhl30 {
  2094. yyb30 = yyj30 > l
  2095. } else {
  2096. yyb30 = r.CheckBreak()
  2097. }
  2098. if yyb30 {
  2099. r.ReadArrayEnd()
  2100. return
  2101. }
  2102. r.ReadArrayElem()
  2103. if r.TryDecodeAsNil() {
  2104. x.AMSU16N = nil
  2105. } else {
  2106. if false {
  2107. } else {
  2108. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  2109. }
  2110. }
  2111. yyj30++
  2112. if yyhl30 {
  2113. yyb30 = yyj30 > l
  2114. } else {
  2115. yyb30 = r.CheckBreak()
  2116. }
  2117. if yyb30 {
  2118. r.ReadArrayEnd()
  2119. return
  2120. }
  2121. r.ReadArrayElem()
  2122. if r.TryDecodeAsNil() {
  2123. x.AMSU16E = nil
  2124. } else {
  2125. if false {
  2126. } else {
  2127. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  2128. }
  2129. }
  2130. for {
  2131. yyj30++
  2132. if yyhl30 {
  2133. yyb30 = yyj30 > l
  2134. } else {
  2135. yyb30 = r.CheckBreak()
  2136. }
  2137. if yyb30 {
  2138. break
  2139. }
  2140. r.ReadArrayElem()
  2141. z.DecStructFieldNotFound(yyj30-1, "")
  2142. }
  2143. r.ReadArrayEnd()
  2144. }
  2145. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  2146. var h codecSelfer19780
  2147. z, r := GenHelperEncoder(e)
  2148. _, _, _ = h, z, r
  2149. if x == nil {
  2150. r.EncodeNil()
  2151. } else {
  2152. if false {
  2153. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  2154. z.EncExtension(x, yyxt1)
  2155. } else {
  2156. yysep2 := !z.EncBinary()
  2157. yy2arr2 := z.EncBasicHandle().StructToArray
  2158. _, _ = yysep2, yy2arr2
  2159. const yyr2 bool = false // struct tag has 'toArray'
  2160. if yyr2 || yy2arr2 {
  2161. r.WriteArrayStart(17)
  2162. } else {
  2163. r.WriteMapStart(17)
  2164. }
  2165. if yyr2 || yy2arr2 {
  2166. r.WriteArrayElem()
  2167. if false {
  2168. } else {
  2169. if z.EncBasicHandle().StringToRaw {
  2170. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2171. } else {
  2172. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2173. }
  2174. }
  2175. } else {
  2176. r.WriteMapElemKey()
  2177. if z.IsJSONHandle() {
  2178. z.WriteStr("\"S\"")
  2179. } else {
  2180. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  2181. }
  2182. r.WriteMapElemValue()
  2183. if false {
  2184. } else {
  2185. if z.EncBasicHandle().StringToRaw {
  2186. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2187. } else {
  2188. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2189. }
  2190. }
  2191. }
  2192. if yyr2 || yy2arr2 {
  2193. r.WriteArrayElem()
  2194. if false {
  2195. } else {
  2196. r.EncodeInt(int64(x.I64))
  2197. }
  2198. } else {
  2199. r.WriteMapElemKey()
  2200. if z.IsJSONHandle() {
  2201. z.WriteStr("\"I64\"")
  2202. } else {
  2203. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  2204. }
  2205. r.WriteMapElemValue()
  2206. if false {
  2207. } else {
  2208. r.EncodeInt(int64(x.I64))
  2209. }
  2210. }
  2211. if yyr2 || yy2arr2 {
  2212. r.WriteArrayElem()
  2213. if false {
  2214. } else {
  2215. r.EncodeInt(int64(x.I8))
  2216. }
  2217. } else {
  2218. r.WriteMapElemKey()
  2219. if z.IsJSONHandle() {
  2220. z.WriteStr("\"I8\"")
  2221. } else {
  2222. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  2223. }
  2224. r.WriteMapElemValue()
  2225. if false {
  2226. } else {
  2227. r.EncodeInt(int64(x.I8))
  2228. }
  2229. }
  2230. if yyr2 || yy2arr2 {
  2231. r.WriteArrayElem()
  2232. if false {
  2233. } else {
  2234. r.EncodeUint(uint64(x.Ui64))
  2235. }
  2236. } else {
  2237. r.WriteMapElemKey()
  2238. if z.IsJSONHandle() {
  2239. z.WriteStr("\"Ui64\"")
  2240. } else {
  2241. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  2242. }
  2243. r.WriteMapElemValue()
  2244. if false {
  2245. } else {
  2246. r.EncodeUint(uint64(x.Ui64))
  2247. }
  2248. }
  2249. if yyr2 || yy2arr2 {
  2250. r.WriteArrayElem()
  2251. if false {
  2252. } else {
  2253. r.EncodeUint(uint64(x.Ui8))
  2254. }
  2255. } else {
  2256. r.WriteMapElemKey()
  2257. if z.IsJSONHandle() {
  2258. z.WriteStr("\"Ui8\"")
  2259. } else {
  2260. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  2261. }
  2262. r.WriteMapElemValue()
  2263. if false {
  2264. } else {
  2265. r.EncodeUint(uint64(x.Ui8))
  2266. }
  2267. }
  2268. if yyr2 || yy2arr2 {
  2269. r.WriteArrayElem()
  2270. if false {
  2271. } else {
  2272. r.EncodeFloat64(float64(x.F64))
  2273. }
  2274. } else {
  2275. r.WriteMapElemKey()
  2276. if z.IsJSONHandle() {
  2277. z.WriteStr("\"F64\"")
  2278. } else {
  2279. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  2280. }
  2281. r.WriteMapElemValue()
  2282. if false {
  2283. } else {
  2284. r.EncodeFloat64(float64(x.F64))
  2285. }
  2286. }
  2287. if yyr2 || yy2arr2 {
  2288. r.WriteArrayElem()
  2289. if false {
  2290. } else {
  2291. r.EncodeFloat32(float32(x.F32))
  2292. }
  2293. } else {
  2294. r.WriteMapElemKey()
  2295. if z.IsJSONHandle() {
  2296. z.WriteStr("\"F32\"")
  2297. } else {
  2298. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  2299. }
  2300. r.WriteMapElemValue()
  2301. if false {
  2302. } else {
  2303. r.EncodeFloat32(float32(x.F32))
  2304. }
  2305. }
  2306. if yyr2 || yy2arr2 {
  2307. r.WriteArrayElem()
  2308. if false {
  2309. } else {
  2310. r.EncodeBool(bool(x.B))
  2311. }
  2312. } else {
  2313. r.WriteMapElemKey()
  2314. if z.IsJSONHandle() {
  2315. z.WriteStr("\"B\"")
  2316. } else {
  2317. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  2318. }
  2319. r.WriteMapElemValue()
  2320. if false {
  2321. } else {
  2322. r.EncodeBool(bool(x.B))
  2323. }
  2324. }
  2325. if yyr2 || yy2arr2 {
  2326. r.WriteArrayElem()
  2327. if x.Sslice == nil {
  2328. r.EncodeNil()
  2329. } else {
  2330. if false {
  2331. } else {
  2332. z.F.EncSliceStringV(x.Sslice, e)
  2333. }
  2334. }
  2335. } else {
  2336. r.WriteMapElemKey()
  2337. if z.IsJSONHandle() {
  2338. z.WriteStr("\"Sslice\"")
  2339. } else {
  2340. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  2341. }
  2342. r.WriteMapElemValue()
  2343. if x.Sslice == nil {
  2344. r.EncodeNil()
  2345. } else {
  2346. if false {
  2347. } else {
  2348. z.F.EncSliceStringV(x.Sslice, e)
  2349. }
  2350. }
  2351. }
  2352. if yyr2 || yy2arr2 {
  2353. r.WriteArrayElem()
  2354. if x.I16slice == nil {
  2355. r.EncodeNil()
  2356. } else {
  2357. if false {
  2358. } else {
  2359. z.F.EncSliceInt16V(x.I16slice, e)
  2360. }
  2361. }
  2362. } else {
  2363. r.WriteMapElemKey()
  2364. if z.IsJSONHandle() {
  2365. z.WriteStr("\"I16slice\"")
  2366. } else {
  2367. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  2368. }
  2369. r.WriteMapElemValue()
  2370. if x.I16slice == nil {
  2371. r.EncodeNil()
  2372. } else {
  2373. if false {
  2374. } else {
  2375. z.F.EncSliceInt16V(x.I16slice, e)
  2376. }
  2377. }
  2378. }
  2379. if yyr2 || yy2arr2 {
  2380. r.WriteArrayElem()
  2381. if x.Ui64slice == nil {
  2382. r.EncodeNil()
  2383. } else {
  2384. if false {
  2385. } else {
  2386. z.F.EncSliceUint64V(x.Ui64slice, e)
  2387. }
  2388. }
  2389. } else {
  2390. r.WriteMapElemKey()
  2391. if z.IsJSONHandle() {
  2392. z.WriteStr("\"Ui64slice\"")
  2393. } else {
  2394. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  2395. }
  2396. r.WriteMapElemValue()
  2397. if x.Ui64slice == nil {
  2398. r.EncodeNil()
  2399. } else {
  2400. if false {
  2401. } else {
  2402. z.F.EncSliceUint64V(x.Ui64slice, e)
  2403. }
  2404. }
  2405. }
  2406. if yyr2 || yy2arr2 {
  2407. r.WriteArrayElem()
  2408. if x.Ui8slice == nil {
  2409. r.EncodeNil()
  2410. } else {
  2411. if false {
  2412. } else {
  2413. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2414. }
  2415. }
  2416. } else {
  2417. r.WriteMapElemKey()
  2418. if z.IsJSONHandle() {
  2419. z.WriteStr("\"Ui8slice\"")
  2420. } else {
  2421. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  2422. }
  2423. r.WriteMapElemValue()
  2424. if x.Ui8slice == nil {
  2425. r.EncodeNil()
  2426. } else {
  2427. if false {
  2428. } else {
  2429. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2430. }
  2431. }
  2432. }
  2433. if yyr2 || yy2arr2 {
  2434. r.WriteArrayElem()
  2435. if x.Bslice == nil {
  2436. r.EncodeNil()
  2437. } else {
  2438. if false {
  2439. } else {
  2440. z.F.EncSliceBoolV(x.Bslice, e)
  2441. }
  2442. }
  2443. } else {
  2444. r.WriteMapElemKey()
  2445. if z.IsJSONHandle() {
  2446. z.WriteStr("\"Bslice\"")
  2447. } else {
  2448. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  2449. }
  2450. r.WriteMapElemValue()
  2451. if x.Bslice == nil {
  2452. r.EncodeNil()
  2453. } else {
  2454. if false {
  2455. } else {
  2456. z.F.EncSliceBoolV(x.Bslice, e)
  2457. }
  2458. }
  2459. }
  2460. if yyr2 || yy2arr2 {
  2461. r.WriteArrayElem()
  2462. if x.Iptrslice == nil {
  2463. r.EncodeNil()
  2464. } else {
  2465. if false {
  2466. } else {
  2467. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2468. }
  2469. }
  2470. } else {
  2471. r.WriteMapElemKey()
  2472. if z.IsJSONHandle() {
  2473. z.WriteStr("\"Iptrslice\"")
  2474. } else {
  2475. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  2476. }
  2477. r.WriteMapElemValue()
  2478. if x.Iptrslice == nil {
  2479. r.EncodeNil()
  2480. } else {
  2481. if false {
  2482. } else {
  2483. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2484. }
  2485. }
  2486. }
  2487. if yyr2 || yy2arr2 {
  2488. r.WriteArrayElem()
  2489. if x.WrapSliceInt64 == nil {
  2490. r.EncodeNil()
  2491. } else {
  2492. x.WrapSliceInt64.CodecEncodeSelf(e)
  2493. }
  2494. } else {
  2495. r.WriteMapElemKey()
  2496. if z.IsJSONHandle() {
  2497. z.WriteStr("\"WrapSliceInt64\"")
  2498. } else {
  2499. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  2500. }
  2501. r.WriteMapElemValue()
  2502. if x.WrapSliceInt64 == nil {
  2503. r.EncodeNil()
  2504. } else {
  2505. x.WrapSliceInt64.CodecEncodeSelf(e)
  2506. }
  2507. }
  2508. if yyr2 || yy2arr2 {
  2509. r.WriteArrayElem()
  2510. if x.WrapSliceString == nil {
  2511. r.EncodeNil()
  2512. } else {
  2513. x.WrapSliceString.CodecEncodeSelf(e)
  2514. }
  2515. } else {
  2516. r.WriteMapElemKey()
  2517. if z.IsJSONHandle() {
  2518. z.WriteStr("\"WrapSliceString\"")
  2519. } else {
  2520. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  2521. }
  2522. r.WriteMapElemValue()
  2523. if x.WrapSliceString == nil {
  2524. r.EncodeNil()
  2525. } else {
  2526. x.WrapSliceString.CodecEncodeSelf(e)
  2527. }
  2528. }
  2529. if yyr2 || yy2arr2 {
  2530. r.WriteArrayElem()
  2531. if x.Msi64 == nil {
  2532. r.EncodeNil()
  2533. } else {
  2534. if false {
  2535. } else {
  2536. z.F.EncMapStringInt64V(x.Msi64, e)
  2537. }
  2538. }
  2539. } else {
  2540. r.WriteMapElemKey()
  2541. if z.IsJSONHandle() {
  2542. z.WriteStr("\"Msi64\"")
  2543. } else {
  2544. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  2545. }
  2546. r.WriteMapElemValue()
  2547. if x.Msi64 == nil {
  2548. r.EncodeNil()
  2549. } else {
  2550. if false {
  2551. } else {
  2552. z.F.EncMapStringInt64V(x.Msi64, e)
  2553. }
  2554. }
  2555. }
  2556. if yyr2 || yy2arr2 {
  2557. r.WriteArrayEnd()
  2558. } else {
  2559. r.WriteMapEnd()
  2560. }
  2561. }
  2562. }
  2563. }
  2564. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  2565. var h codecSelfer19780
  2566. z, r := GenHelperDecoder(d)
  2567. _, _, _ = h, z, r
  2568. if false {
  2569. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  2570. z.DecExtension(x, yyxt1)
  2571. } else {
  2572. yyct2 := r.ContainerType()
  2573. if yyct2 == codecSelferValueTypeMap19780 {
  2574. yyl2 := r.ReadMapStart()
  2575. if yyl2 == 0 {
  2576. r.ReadMapEnd()
  2577. } else {
  2578. x.codecDecodeSelfFromMap(yyl2, d)
  2579. }
  2580. } else if yyct2 == codecSelferValueTypeArray19780 {
  2581. yyl2 := r.ReadArrayStart()
  2582. if yyl2 == 0 {
  2583. r.ReadArrayEnd()
  2584. } else {
  2585. x.codecDecodeSelfFromArray(yyl2, d)
  2586. }
  2587. } else {
  2588. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2589. }
  2590. }
  2591. }
  2592. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  2593. var h codecSelfer19780
  2594. z, r := GenHelperDecoder(d)
  2595. _, _, _ = h, z, r
  2596. var yyhl3 bool = l >= 0
  2597. for yyj3 := 0; ; yyj3++ {
  2598. if yyhl3 {
  2599. if yyj3 >= l {
  2600. break
  2601. }
  2602. } else {
  2603. if r.CheckBreak() {
  2604. break
  2605. }
  2606. }
  2607. r.ReadMapElemKey()
  2608. yys3 := z.StringView(r.DecodeStringAsBytes())
  2609. r.ReadMapElemValue()
  2610. switch yys3 {
  2611. case "S":
  2612. if r.TryDecodeAsNil() {
  2613. x.S = ""
  2614. } else {
  2615. x.S = (string)(r.DecodeString())
  2616. }
  2617. case "I64":
  2618. if r.TryDecodeAsNil() {
  2619. x.I64 = 0
  2620. } else {
  2621. x.I64 = (int64)(r.DecodeInt64())
  2622. }
  2623. case "I8":
  2624. if r.TryDecodeAsNil() {
  2625. x.I8 = 0
  2626. } else {
  2627. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2628. }
  2629. case "Ui64":
  2630. if r.TryDecodeAsNil() {
  2631. x.Ui64 = 0
  2632. } else {
  2633. x.Ui64 = (uint64)(r.DecodeUint64())
  2634. }
  2635. case "Ui8":
  2636. if r.TryDecodeAsNil() {
  2637. x.Ui8 = 0
  2638. } else {
  2639. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2640. }
  2641. case "F64":
  2642. if r.TryDecodeAsNil() {
  2643. x.F64 = 0
  2644. } else {
  2645. x.F64 = (float64)(r.DecodeFloat64())
  2646. }
  2647. case "F32":
  2648. if r.TryDecodeAsNil() {
  2649. x.F32 = 0
  2650. } else {
  2651. x.F32 = (float32)(r.DecodeFloat32As64())
  2652. }
  2653. case "B":
  2654. if r.TryDecodeAsNil() {
  2655. x.B = false
  2656. } else {
  2657. x.B = (bool)(r.DecodeBool())
  2658. }
  2659. case "Sslice":
  2660. if r.TryDecodeAsNil() {
  2661. x.Sslice = nil
  2662. } else {
  2663. if false {
  2664. } else {
  2665. z.F.DecSliceStringX(&x.Sslice, d)
  2666. }
  2667. }
  2668. case "I16slice":
  2669. if r.TryDecodeAsNil() {
  2670. x.I16slice = nil
  2671. } else {
  2672. if false {
  2673. } else {
  2674. z.F.DecSliceInt16X(&x.I16slice, d)
  2675. }
  2676. }
  2677. case "Ui64slice":
  2678. if r.TryDecodeAsNil() {
  2679. x.Ui64slice = nil
  2680. } else {
  2681. if false {
  2682. } else {
  2683. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2684. }
  2685. }
  2686. case "Ui8slice":
  2687. if r.TryDecodeAsNil() {
  2688. x.Ui8slice = nil
  2689. } else {
  2690. if false {
  2691. } else {
  2692. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2693. }
  2694. }
  2695. case "Bslice":
  2696. if r.TryDecodeAsNil() {
  2697. x.Bslice = nil
  2698. } else {
  2699. if false {
  2700. } else {
  2701. z.F.DecSliceBoolX(&x.Bslice, d)
  2702. }
  2703. }
  2704. case "Iptrslice":
  2705. if r.TryDecodeAsNil() {
  2706. x.Iptrslice = nil
  2707. } else {
  2708. if false {
  2709. } else {
  2710. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2711. }
  2712. }
  2713. case "WrapSliceInt64":
  2714. if r.TryDecodeAsNil() {
  2715. x.WrapSliceInt64 = nil
  2716. } else {
  2717. x.WrapSliceInt64.CodecDecodeSelf(d)
  2718. }
  2719. case "WrapSliceString":
  2720. if r.TryDecodeAsNil() {
  2721. x.WrapSliceString = nil
  2722. } else {
  2723. x.WrapSliceString.CodecDecodeSelf(d)
  2724. }
  2725. case "Msi64":
  2726. if r.TryDecodeAsNil() {
  2727. x.Msi64 = nil
  2728. } else {
  2729. if false {
  2730. } else {
  2731. z.F.DecMapStringInt64X(&x.Msi64, d)
  2732. }
  2733. }
  2734. default:
  2735. z.DecStructFieldNotFound(-1, yys3)
  2736. } // end switch yys3
  2737. } // end for yyj3
  2738. r.ReadMapEnd()
  2739. }
  2740. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  2741. var h codecSelfer19780
  2742. z, r := GenHelperDecoder(d)
  2743. _, _, _ = h, z, r
  2744. var yyj28 int
  2745. var yyb28 bool
  2746. var yyhl28 bool = l >= 0
  2747. yyj28++
  2748. if yyhl28 {
  2749. yyb28 = yyj28 > l
  2750. } else {
  2751. yyb28 = r.CheckBreak()
  2752. }
  2753. if yyb28 {
  2754. r.ReadArrayEnd()
  2755. return
  2756. }
  2757. r.ReadArrayElem()
  2758. if r.TryDecodeAsNil() {
  2759. x.S = ""
  2760. } else {
  2761. x.S = (string)(r.DecodeString())
  2762. }
  2763. yyj28++
  2764. if yyhl28 {
  2765. yyb28 = yyj28 > l
  2766. } else {
  2767. yyb28 = r.CheckBreak()
  2768. }
  2769. if yyb28 {
  2770. r.ReadArrayEnd()
  2771. return
  2772. }
  2773. r.ReadArrayElem()
  2774. if r.TryDecodeAsNil() {
  2775. x.I64 = 0
  2776. } else {
  2777. x.I64 = (int64)(r.DecodeInt64())
  2778. }
  2779. yyj28++
  2780. if yyhl28 {
  2781. yyb28 = yyj28 > l
  2782. } else {
  2783. yyb28 = r.CheckBreak()
  2784. }
  2785. if yyb28 {
  2786. r.ReadArrayEnd()
  2787. return
  2788. }
  2789. r.ReadArrayElem()
  2790. if r.TryDecodeAsNil() {
  2791. x.I8 = 0
  2792. } else {
  2793. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2794. }
  2795. yyj28++
  2796. if yyhl28 {
  2797. yyb28 = yyj28 > l
  2798. } else {
  2799. yyb28 = r.CheckBreak()
  2800. }
  2801. if yyb28 {
  2802. r.ReadArrayEnd()
  2803. return
  2804. }
  2805. r.ReadArrayElem()
  2806. if r.TryDecodeAsNil() {
  2807. x.Ui64 = 0
  2808. } else {
  2809. x.Ui64 = (uint64)(r.DecodeUint64())
  2810. }
  2811. yyj28++
  2812. if yyhl28 {
  2813. yyb28 = yyj28 > l
  2814. } else {
  2815. yyb28 = r.CheckBreak()
  2816. }
  2817. if yyb28 {
  2818. r.ReadArrayEnd()
  2819. return
  2820. }
  2821. r.ReadArrayElem()
  2822. if r.TryDecodeAsNil() {
  2823. x.Ui8 = 0
  2824. } else {
  2825. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2826. }
  2827. yyj28++
  2828. if yyhl28 {
  2829. yyb28 = yyj28 > l
  2830. } else {
  2831. yyb28 = r.CheckBreak()
  2832. }
  2833. if yyb28 {
  2834. r.ReadArrayEnd()
  2835. return
  2836. }
  2837. r.ReadArrayElem()
  2838. if r.TryDecodeAsNil() {
  2839. x.F64 = 0
  2840. } else {
  2841. x.F64 = (float64)(r.DecodeFloat64())
  2842. }
  2843. yyj28++
  2844. if yyhl28 {
  2845. yyb28 = yyj28 > l
  2846. } else {
  2847. yyb28 = r.CheckBreak()
  2848. }
  2849. if yyb28 {
  2850. r.ReadArrayEnd()
  2851. return
  2852. }
  2853. r.ReadArrayElem()
  2854. if r.TryDecodeAsNil() {
  2855. x.F32 = 0
  2856. } else {
  2857. x.F32 = (float32)(r.DecodeFloat32As64())
  2858. }
  2859. yyj28++
  2860. if yyhl28 {
  2861. yyb28 = yyj28 > l
  2862. } else {
  2863. yyb28 = r.CheckBreak()
  2864. }
  2865. if yyb28 {
  2866. r.ReadArrayEnd()
  2867. return
  2868. }
  2869. r.ReadArrayElem()
  2870. if r.TryDecodeAsNil() {
  2871. x.B = false
  2872. } else {
  2873. x.B = (bool)(r.DecodeBool())
  2874. }
  2875. yyj28++
  2876. if yyhl28 {
  2877. yyb28 = yyj28 > l
  2878. } else {
  2879. yyb28 = r.CheckBreak()
  2880. }
  2881. if yyb28 {
  2882. r.ReadArrayEnd()
  2883. return
  2884. }
  2885. r.ReadArrayElem()
  2886. if r.TryDecodeAsNil() {
  2887. x.Sslice = nil
  2888. } else {
  2889. if false {
  2890. } else {
  2891. z.F.DecSliceStringX(&x.Sslice, d)
  2892. }
  2893. }
  2894. yyj28++
  2895. if yyhl28 {
  2896. yyb28 = yyj28 > l
  2897. } else {
  2898. yyb28 = r.CheckBreak()
  2899. }
  2900. if yyb28 {
  2901. r.ReadArrayEnd()
  2902. return
  2903. }
  2904. r.ReadArrayElem()
  2905. if r.TryDecodeAsNil() {
  2906. x.I16slice = nil
  2907. } else {
  2908. if false {
  2909. } else {
  2910. z.F.DecSliceInt16X(&x.I16slice, d)
  2911. }
  2912. }
  2913. yyj28++
  2914. if yyhl28 {
  2915. yyb28 = yyj28 > l
  2916. } else {
  2917. yyb28 = r.CheckBreak()
  2918. }
  2919. if yyb28 {
  2920. r.ReadArrayEnd()
  2921. return
  2922. }
  2923. r.ReadArrayElem()
  2924. if r.TryDecodeAsNil() {
  2925. x.Ui64slice = nil
  2926. } else {
  2927. if false {
  2928. } else {
  2929. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2930. }
  2931. }
  2932. yyj28++
  2933. if yyhl28 {
  2934. yyb28 = yyj28 > l
  2935. } else {
  2936. yyb28 = r.CheckBreak()
  2937. }
  2938. if yyb28 {
  2939. r.ReadArrayEnd()
  2940. return
  2941. }
  2942. r.ReadArrayElem()
  2943. if r.TryDecodeAsNil() {
  2944. x.Ui8slice = nil
  2945. } else {
  2946. if false {
  2947. } else {
  2948. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2949. }
  2950. }
  2951. yyj28++
  2952. if yyhl28 {
  2953. yyb28 = yyj28 > l
  2954. } else {
  2955. yyb28 = r.CheckBreak()
  2956. }
  2957. if yyb28 {
  2958. r.ReadArrayEnd()
  2959. return
  2960. }
  2961. r.ReadArrayElem()
  2962. if r.TryDecodeAsNil() {
  2963. x.Bslice = nil
  2964. } else {
  2965. if false {
  2966. } else {
  2967. z.F.DecSliceBoolX(&x.Bslice, d)
  2968. }
  2969. }
  2970. yyj28++
  2971. if yyhl28 {
  2972. yyb28 = yyj28 > l
  2973. } else {
  2974. yyb28 = r.CheckBreak()
  2975. }
  2976. if yyb28 {
  2977. r.ReadArrayEnd()
  2978. return
  2979. }
  2980. r.ReadArrayElem()
  2981. if r.TryDecodeAsNil() {
  2982. x.Iptrslice = nil
  2983. } else {
  2984. if false {
  2985. } else {
  2986. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2987. }
  2988. }
  2989. yyj28++
  2990. if yyhl28 {
  2991. yyb28 = yyj28 > l
  2992. } else {
  2993. yyb28 = r.CheckBreak()
  2994. }
  2995. if yyb28 {
  2996. r.ReadArrayEnd()
  2997. return
  2998. }
  2999. r.ReadArrayElem()
  3000. if r.TryDecodeAsNil() {
  3001. x.WrapSliceInt64 = nil
  3002. } else {
  3003. x.WrapSliceInt64.CodecDecodeSelf(d)
  3004. }
  3005. yyj28++
  3006. if yyhl28 {
  3007. yyb28 = yyj28 > l
  3008. } else {
  3009. yyb28 = r.CheckBreak()
  3010. }
  3011. if yyb28 {
  3012. r.ReadArrayEnd()
  3013. return
  3014. }
  3015. r.ReadArrayElem()
  3016. if r.TryDecodeAsNil() {
  3017. x.WrapSliceString = nil
  3018. } else {
  3019. x.WrapSliceString.CodecDecodeSelf(d)
  3020. }
  3021. yyj28++
  3022. if yyhl28 {
  3023. yyb28 = yyj28 > l
  3024. } else {
  3025. yyb28 = r.CheckBreak()
  3026. }
  3027. if yyb28 {
  3028. r.ReadArrayEnd()
  3029. return
  3030. }
  3031. r.ReadArrayElem()
  3032. if r.TryDecodeAsNil() {
  3033. x.Msi64 = nil
  3034. } else {
  3035. if false {
  3036. } else {
  3037. z.F.DecMapStringInt64X(&x.Msi64, d)
  3038. }
  3039. }
  3040. for {
  3041. yyj28++
  3042. if yyhl28 {
  3043. yyb28 = yyj28 > l
  3044. } else {
  3045. yyb28 = r.CheckBreak()
  3046. }
  3047. if yyb28 {
  3048. break
  3049. }
  3050. r.ReadArrayElem()
  3051. z.DecStructFieldNotFound(yyj28-1, "")
  3052. }
  3053. r.ReadArrayEnd()
  3054. }
  3055. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  3056. var h codecSelfer19780
  3057. z, r := GenHelperEncoder(e)
  3058. _, _, _ = h, z, r
  3059. if x == nil {
  3060. r.EncodeNil()
  3061. } else {
  3062. if false {
  3063. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  3064. z.EncExtension(x, yyxt1)
  3065. } else {
  3066. yysep2 := !z.EncBinary()
  3067. yy2arr2 := z.EncBasicHandle().StructToArray
  3068. _, _ = yysep2, yy2arr2
  3069. const yyr2 bool = false // struct tag has 'toArray'
  3070. if yyr2 || yy2arr2 {
  3071. r.WriteArrayStart(49)
  3072. } else {
  3073. r.WriteMapStart(49)
  3074. }
  3075. if yyr2 || yy2arr2 {
  3076. r.WriteArrayElem()
  3077. if false {
  3078. } else {
  3079. if z.EncBasicHandle().StringToRaw {
  3080. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  3081. } else {
  3082. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  3083. }
  3084. }
  3085. } else {
  3086. r.WriteMapElemKey()
  3087. if z.IsJSONHandle() {
  3088. z.WriteStr("\"S\"")
  3089. } else {
  3090. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3091. }
  3092. r.WriteMapElemValue()
  3093. if false {
  3094. } else {
  3095. if z.EncBasicHandle().StringToRaw {
  3096. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  3097. } else {
  3098. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  3099. }
  3100. }
  3101. }
  3102. if yyr2 || yy2arr2 {
  3103. r.WriteArrayElem()
  3104. if false {
  3105. } else {
  3106. r.EncodeInt(int64(x.I64))
  3107. }
  3108. } else {
  3109. r.WriteMapElemKey()
  3110. if z.IsJSONHandle() {
  3111. z.WriteStr("\"I64\"")
  3112. } else {
  3113. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3114. }
  3115. r.WriteMapElemValue()
  3116. if false {
  3117. } else {
  3118. r.EncodeInt(int64(x.I64))
  3119. }
  3120. }
  3121. if yyr2 || yy2arr2 {
  3122. r.WriteArrayElem()
  3123. if false {
  3124. } else {
  3125. r.EncodeInt(int64(x.I32))
  3126. }
  3127. } else {
  3128. r.WriteMapElemKey()
  3129. if z.IsJSONHandle() {
  3130. z.WriteStr("\"I32\"")
  3131. } else {
  3132. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3133. }
  3134. r.WriteMapElemValue()
  3135. if false {
  3136. } else {
  3137. r.EncodeInt(int64(x.I32))
  3138. }
  3139. }
  3140. if yyr2 || yy2arr2 {
  3141. r.WriteArrayElem()
  3142. if false {
  3143. } else {
  3144. r.EncodeInt(int64(x.I16))
  3145. }
  3146. } else {
  3147. r.WriteMapElemKey()
  3148. if z.IsJSONHandle() {
  3149. z.WriteStr("\"I16\"")
  3150. } else {
  3151. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3152. }
  3153. r.WriteMapElemValue()
  3154. if false {
  3155. } else {
  3156. r.EncodeInt(int64(x.I16))
  3157. }
  3158. }
  3159. if yyr2 || yy2arr2 {
  3160. r.WriteArrayElem()
  3161. if false {
  3162. } else {
  3163. r.EncodeInt(int64(x.I8))
  3164. }
  3165. } else {
  3166. r.WriteMapElemKey()
  3167. if z.IsJSONHandle() {
  3168. z.WriteStr("\"I8\"")
  3169. } else {
  3170. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3171. }
  3172. r.WriteMapElemValue()
  3173. if false {
  3174. } else {
  3175. r.EncodeInt(int64(x.I8))
  3176. }
  3177. }
  3178. if yyr2 || yy2arr2 {
  3179. r.WriteArrayElem()
  3180. if false {
  3181. } else {
  3182. r.EncodeInt(int64(x.I64n))
  3183. }
  3184. } else {
  3185. r.WriteMapElemKey()
  3186. if z.IsJSONHandle() {
  3187. z.WriteStr("\"I64n\"")
  3188. } else {
  3189. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3190. }
  3191. r.WriteMapElemValue()
  3192. if false {
  3193. } else {
  3194. r.EncodeInt(int64(x.I64n))
  3195. }
  3196. }
  3197. if yyr2 || yy2arr2 {
  3198. r.WriteArrayElem()
  3199. if false {
  3200. } else {
  3201. r.EncodeInt(int64(x.I32n))
  3202. }
  3203. } else {
  3204. r.WriteMapElemKey()
  3205. if z.IsJSONHandle() {
  3206. z.WriteStr("\"I32n\"")
  3207. } else {
  3208. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3209. }
  3210. r.WriteMapElemValue()
  3211. if false {
  3212. } else {
  3213. r.EncodeInt(int64(x.I32n))
  3214. }
  3215. }
  3216. if yyr2 || yy2arr2 {
  3217. r.WriteArrayElem()
  3218. if false {
  3219. } else {
  3220. r.EncodeInt(int64(x.I16n))
  3221. }
  3222. } else {
  3223. r.WriteMapElemKey()
  3224. if z.IsJSONHandle() {
  3225. z.WriteStr("\"I16n\"")
  3226. } else {
  3227. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3228. }
  3229. r.WriteMapElemValue()
  3230. if false {
  3231. } else {
  3232. r.EncodeInt(int64(x.I16n))
  3233. }
  3234. }
  3235. if yyr2 || yy2arr2 {
  3236. r.WriteArrayElem()
  3237. if false {
  3238. } else {
  3239. r.EncodeInt(int64(x.I8n))
  3240. }
  3241. } else {
  3242. r.WriteMapElemKey()
  3243. if z.IsJSONHandle() {
  3244. z.WriteStr("\"I8n\"")
  3245. } else {
  3246. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3247. }
  3248. r.WriteMapElemValue()
  3249. if false {
  3250. } else {
  3251. r.EncodeInt(int64(x.I8n))
  3252. }
  3253. }
  3254. if yyr2 || yy2arr2 {
  3255. r.WriteArrayElem()
  3256. if false {
  3257. } else {
  3258. r.EncodeUint(uint64(x.Ui64))
  3259. }
  3260. } else {
  3261. r.WriteMapElemKey()
  3262. if z.IsJSONHandle() {
  3263. z.WriteStr("\"Ui64\"")
  3264. } else {
  3265. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3266. }
  3267. r.WriteMapElemValue()
  3268. if false {
  3269. } else {
  3270. r.EncodeUint(uint64(x.Ui64))
  3271. }
  3272. }
  3273. if yyr2 || yy2arr2 {
  3274. r.WriteArrayElem()
  3275. if false {
  3276. } else {
  3277. r.EncodeUint(uint64(x.Ui32))
  3278. }
  3279. } else {
  3280. r.WriteMapElemKey()
  3281. if z.IsJSONHandle() {
  3282. z.WriteStr("\"Ui32\"")
  3283. } else {
  3284. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3285. }
  3286. r.WriteMapElemValue()
  3287. if false {
  3288. } else {
  3289. r.EncodeUint(uint64(x.Ui32))
  3290. }
  3291. }
  3292. if yyr2 || yy2arr2 {
  3293. r.WriteArrayElem()
  3294. if false {
  3295. } else {
  3296. r.EncodeUint(uint64(x.Ui16))
  3297. }
  3298. } else {
  3299. r.WriteMapElemKey()
  3300. if z.IsJSONHandle() {
  3301. z.WriteStr("\"Ui16\"")
  3302. } else {
  3303. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3304. }
  3305. r.WriteMapElemValue()
  3306. if false {
  3307. } else {
  3308. r.EncodeUint(uint64(x.Ui16))
  3309. }
  3310. }
  3311. if yyr2 || yy2arr2 {
  3312. r.WriteArrayElem()
  3313. if false {
  3314. } else {
  3315. r.EncodeUint(uint64(x.Ui8))
  3316. }
  3317. } else {
  3318. r.WriteMapElemKey()
  3319. if z.IsJSONHandle() {
  3320. z.WriteStr("\"Ui8\"")
  3321. } else {
  3322. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  3323. }
  3324. r.WriteMapElemValue()
  3325. if false {
  3326. } else {
  3327. r.EncodeUint(uint64(x.Ui8))
  3328. }
  3329. }
  3330. if yyr2 || yy2arr2 {
  3331. r.WriteArrayElem()
  3332. if false {
  3333. } else {
  3334. r.EncodeFloat64(float64(x.F64))
  3335. }
  3336. } else {
  3337. r.WriteMapElemKey()
  3338. if z.IsJSONHandle() {
  3339. z.WriteStr("\"F64\"")
  3340. } else {
  3341. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  3342. }
  3343. r.WriteMapElemValue()
  3344. if false {
  3345. } else {
  3346. r.EncodeFloat64(float64(x.F64))
  3347. }
  3348. }
  3349. if yyr2 || yy2arr2 {
  3350. r.WriteArrayElem()
  3351. if false {
  3352. } else {
  3353. r.EncodeFloat32(float32(x.F32))
  3354. }
  3355. } else {
  3356. r.WriteMapElemKey()
  3357. if z.IsJSONHandle() {
  3358. z.WriteStr("\"F32\"")
  3359. } else {
  3360. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  3361. }
  3362. r.WriteMapElemValue()
  3363. if false {
  3364. } else {
  3365. r.EncodeFloat32(float32(x.F32))
  3366. }
  3367. }
  3368. if yyr2 || yy2arr2 {
  3369. r.WriteArrayElem()
  3370. if false {
  3371. } else {
  3372. r.EncodeBool(bool(x.B))
  3373. }
  3374. } else {
  3375. r.WriteMapElemKey()
  3376. if z.IsJSONHandle() {
  3377. z.WriteStr("\"B\"")
  3378. } else {
  3379. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  3380. }
  3381. r.WriteMapElemValue()
  3382. if false {
  3383. } else {
  3384. r.EncodeBool(bool(x.B))
  3385. }
  3386. }
  3387. if yyr2 || yy2arr2 {
  3388. r.WriteArrayElem()
  3389. if false {
  3390. } else {
  3391. r.EncodeUint(uint64(x.By))
  3392. }
  3393. } else {
  3394. r.WriteMapElemKey()
  3395. if z.IsJSONHandle() {
  3396. z.WriteStr("\"By\"")
  3397. } else {
  3398. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  3399. }
  3400. r.WriteMapElemValue()
  3401. if false {
  3402. } else {
  3403. r.EncodeUint(uint64(x.By))
  3404. }
  3405. }
  3406. if yyr2 || yy2arr2 {
  3407. r.WriteArrayElem()
  3408. if x.Sslice == nil {
  3409. r.EncodeNil()
  3410. } else {
  3411. if false {
  3412. } else {
  3413. z.F.EncSliceStringV(x.Sslice, e)
  3414. }
  3415. }
  3416. } else {
  3417. r.WriteMapElemKey()
  3418. if z.IsJSONHandle() {
  3419. z.WriteStr("\"Sslice\"")
  3420. } else {
  3421. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  3422. }
  3423. r.WriteMapElemValue()
  3424. if x.Sslice == nil {
  3425. r.EncodeNil()
  3426. } else {
  3427. if false {
  3428. } else {
  3429. z.F.EncSliceStringV(x.Sslice, e)
  3430. }
  3431. }
  3432. }
  3433. if yyr2 || yy2arr2 {
  3434. r.WriteArrayElem()
  3435. if x.I64slice == nil {
  3436. r.EncodeNil()
  3437. } else {
  3438. if false {
  3439. } else {
  3440. z.F.EncSliceInt64V(x.I64slice, e)
  3441. }
  3442. }
  3443. } else {
  3444. r.WriteMapElemKey()
  3445. if z.IsJSONHandle() {
  3446. z.WriteStr("\"I64slice\"")
  3447. } else {
  3448. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  3449. }
  3450. r.WriteMapElemValue()
  3451. if x.I64slice == nil {
  3452. r.EncodeNil()
  3453. } else {
  3454. if false {
  3455. } else {
  3456. z.F.EncSliceInt64V(x.I64slice, e)
  3457. }
  3458. }
  3459. }
  3460. if yyr2 || yy2arr2 {
  3461. r.WriteArrayElem()
  3462. if x.I16slice == nil {
  3463. r.EncodeNil()
  3464. } else {
  3465. if false {
  3466. } else {
  3467. z.F.EncSliceInt16V(x.I16slice, e)
  3468. }
  3469. }
  3470. } else {
  3471. r.WriteMapElemKey()
  3472. if z.IsJSONHandle() {
  3473. z.WriteStr("\"I16slice\"")
  3474. } else {
  3475. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  3476. }
  3477. r.WriteMapElemValue()
  3478. if x.I16slice == nil {
  3479. r.EncodeNil()
  3480. } else {
  3481. if false {
  3482. } else {
  3483. z.F.EncSliceInt16V(x.I16slice, e)
  3484. }
  3485. }
  3486. }
  3487. if yyr2 || yy2arr2 {
  3488. r.WriteArrayElem()
  3489. if x.Ui64slice == nil {
  3490. r.EncodeNil()
  3491. } else {
  3492. if false {
  3493. } else {
  3494. z.F.EncSliceUint64V(x.Ui64slice, e)
  3495. }
  3496. }
  3497. } else {
  3498. r.WriteMapElemKey()
  3499. if z.IsJSONHandle() {
  3500. z.WriteStr("\"Ui64slice\"")
  3501. } else {
  3502. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  3503. }
  3504. r.WriteMapElemValue()
  3505. if x.Ui64slice == nil {
  3506. r.EncodeNil()
  3507. } else {
  3508. if false {
  3509. } else {
  3510. z.F.EncSliceUint64V(x.Ui64slice, e)
  3511. }
  3512. }
  3513. }
  3514. if yyr2 || yy2arr2 {
  3515. r.WriteArrayElem()
  3516. if x.Ui8slice == nil {
  3517. r.EncodeNil()
  3518. } else {
  3519. if false {
  3520. } else {
  3521. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  3522. }
  3523. }
  3524. } else {
  3525. r.WriteMapElemKey()
  3526. if z.IsJSONHandle() {
  3527. z.WriteStr("\"Ui8slice\"")
  3528. } else {
  3529. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  3530. }
  3531. r.WriteMapElemValue()
  3532. if x.Ui8slice == nil {
  3533. r.EncodeNil()
  3534. } else {
  3535. if false {
  3536. } else {
  3537. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  3538. }
  3539. }
  3540. }
  3541. if yyr2 || yy2arr2 {
  3542. r.WriteArrayElem()
  3543. if x.Bslice == nil {
  3544. r.EncodeNil()
  3545. } else {
  3546. if false {
  3547. } else {
  3548. z.F.EncSliceBoolV(x.Bslice, e)
  3549. }
  3550. }
  3551. } else {
  3552. r.WriteMapElemKey()
  3553. if z.IsJSONHandle() {
  3554. z.WriteStr("\"Bslice\"")
  3555. } else {
  3556. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  3557. }
  3558. r.WriteMapElemValue()
  3559. if x.Bslice == nil {
  3560. r.EncodeNil()
  3561. } else {
  3562. if false {
  3563. } else {
  3564. z.F.EncSliceBoolV(x.Bslice, e)
  3565. }
  3566. }
  3567. }
  3568. if yyr2 || yy2arr2 {
  3569. r.WriteArrayElem()
  3570. if x.Byslice == nil {
  3571. r.EncodeNil()
  3572. } else {
  3573. if false {
  3574. } else {
  3575. r.EncodeStringBytesRaw([]byte(x.Byslice))
  3576. }
  3577. }
  3578. } else {
  3579. r.WriteMapElemKey()
  3580. if z.IsJSONHandle() {
  3581. z.WriteStr("\"Byslice\"")
  3582. } else {
  3583. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  3584. }
  3585. r.WriteMapElemValue()
  3586. if x.Byslice == nil {
  3587. r.EncodeNil()
  3588. } else {
  3589. if false {
  3590. } else {
  3591. r.EncodeStringBytesRaw([]byte(x.Byslice))
  3592. }
  3593. }
  3594. }
  3595. if yyr2 || yy2arr2 {
  3596. r.WriteArrayElem()
  3597. if x.Iptrslice == nil {
  3598. r.EncodeNil()
  3599. } else {
  3600. if false {
  3601. } else {
  3602. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  3603. }
  3604. }
  3605. } else {
  3606. r.WriteMapElemKey()
  3607. if z.IsJSONHandle() {
  3608. z.WriteStr("\"Iptrslice\"")
  3609. } else {
  3610. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  3611. }
  3612. r.WriteMapElemValue()
  3613. if x.Iptrslice == nil {
  3614. r.EncodeNil()
  3615. } else {
  3616. if false {
  3617. } else {
  3618. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  3619. }
  3620. }
  3621. }
  3622. if yyr2 || yy2arr2 {
  3623. r.WriteArrayElem()
  3624. if x.WrapSliceInt64 == nil {
  3625. r.EncodeNil()
  3626. } else {
  3627. x.WrapSliceInt64.CodecEncodeSelf(e)
  3628. }
  3629. } else {
  3630. r.WriteMapElemKey()
  3631. if z.IsJSONHandle() {
  3632. z.WriteStr("\"WrapSliceInt64\"")
  3633. } else {
  3634. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  3635. }
  3636. r.WriteMapElemValue()
  3637. if x.WrapSliceInt64 == nil {
  3638. r.EncodeNil()
  3639. } else {
  3640. x.WrapSliceInt64.CodecEncodeSelf(e)
  3641. }
  3642. }
  3643. if yyr2 || yy2arr2 {
  3644. r.WriteArrayElem()
  3645. if x.WrapSliceString == nil {
  3646. r.EncodeNil()
  3647. } else {
  3648. x.WrapSliceString.CodecEncodeSelf(e)
  3649. }
  3650. } else {
  3651. r.WriteMapElemKey()
  3652. if z.IsJSONHandle() {
  3653. z.WriteStr("\"WrapSliceString\"")
  3654. } else {
  3655. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  3656. }
  3657. r.WriteMapElemValue()
  3658. if x.WrapSliceString == nil {
  3659. r.EncodeNil()
  3660. } else {
  3661. x.WrapSliceString.CodecEncodeSelf(e)
  3662. }
  3663. }
  3664. if yyr2 || yy2arr2 {
  3665. r.WriteArrayElem()
  3666. if x.Msi64 == nil {
  3667. r.EncodeNil()
  3668. } else {
  3669. if false {
  3670. } else {
  3671. z.F.EncMapStringInt64V(x.Msi64, e)
  3672. }
  3673. }
  3674. } else {
  3675. r.WriteMapElemKey()
  3676. if z.IsJSONHandle() {
  3677. z.WriteStr("\"Msi64\"")
  3678. } else {
  3679. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  3680. }
  3681. r.WriteMapElemValue()
  3682. if x.Msi64 == nil {
  3683. r.EncodeNil()
  3684. } else {
  3685. if false {
  3686. } else {
  3687. z.F.EncMapStringInt64V(x.Msi64, e)
  3688. }
  3689. }
  3690. }
  3691. if yyr2 || yy2arr2 {
  3692. r.WriteArrayElem()
  3693. yy88 := &x.Simplef
  3694. yy88.CodecEncodeSelf(e)
  3695. } else {
  3696. r.WriteMapElemKey()
  3697. if z.IsJSONHandle() {
  3698. z.WriteStr("\"Simplef\"")
  3699. } else {
  3700. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  3701. }
  3702. r.WriteMapElemValue()
  3703. yy90 := &x.Simplef
  3704. yy90.CodecEncodeSelf(e)
  3705. }
  3706. if yyr2 || yy2arr2 {
  3707. r.WriteArrayElem()
  3708. if x.SstrUi64T == nil {
  3709. r.EncodeNil()
  3710. } else {
  3711. if false {
  3712. } else {
  3713. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  3714. }
  3715. }
  3716. } else {
  3717. r.WriteMapElemKey()
  3718. if z.IsJSONHandle() {
  3719. z.WriteStr("\"SstrUi64T\"")
  3720. } else {
  3721. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  3722. }
  3723. r.WriteMapElemValue()
  3724. if x.SstrUi64T == nil {
  3725. r.EncodeNil()
  3726. } else {
  3727. if false {
  3728. } else {
  3729. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  3730. }
  3731. }
  3732. }
  3733. if yyr2 || yy2arr2 {
  3734. r.WriteArrayElem()
  3735. if false {
  3736. } else {
  3737. if z.EncBasicHandle().StringToRaw {
  3738. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  3739. } else {
  3740. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  3741. }
  3742. }
  3743. } else {
  3744. r.WriteMapElemKey()
  3745. if z.IsJSONHandle() {
  3746. z.WriteStr("\"AS\"")
  3747. } else {
  3748. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  3749. }
  3750. r.WriteMapElemValue()
  3751. if false {
  3752. } else {
  3753. if z.EncBasicHandle().StringToRaw {
  3754. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  3755. } else {
  3756. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  3757. }
  3758. }
  3759. }
  3760. if yyr2 || yy2arr2 {
  3761. r.WriteArrayElem()
  3762. if false {
  3763. } else {
  3764. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  3765. }
  3766. } else {
  3767. r.WriteMapElemKey()
  3768. if z.IsJSONHandle() {
  3769. z.WriteStr("\"AI64\"")
  3770. } else {
  3771. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  3772. }
  3773. r.WriteMapElemValue()
  3774. if false {
  3775. } else {
  3776. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  3777. }
  3778. }
  3779. if yyr2 || yy2arr2 {
  3780. r.WriteArrayElem()
  3781. if false {
  3782. } else {
  3783. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  3784. }
  3785. } else {
  3786. r.WriteMapElemKey()
  3787. if z.IsJSONHandle() {
  3788. z.WriteStr("\"AI16\"")
  3789. } else {
  3790. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  3791. }
  3792. r.WriteMapElemValue()
  3793. if false {
  3794. } else {
  3795. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  3796. }
  3797. }
  3798. if yyr2 || yy2arr2 {
  3799. r.WriteArrayElem()
  3800. if false {
  3801. } else {
  3802. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  3803. }
  3804. } else {
  3805. r.WriteMapElemKey()
  3806. if z.IsJSONHandle() {
  3807. z.WriteStr("\"AUi64\"")
  3808. } else {
  3809. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  3810. }
  3811. r.WriteMapElemValue()
  3812. if false {
  3813. } else {
  3814. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  3815. }
  3816. }
  3817. if yyr2 || yy2arr2 {
  3818. r.WriteArrayElem()
  3819. if x.AnonInTestStruc.ASslice == nil {
  3820. r.EncodeNil()
  3821. } else {
  3822. if false {
  3823. } else {
  3824. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  3825. }
  3826. }
  3827. } else {
  3828. r.WriteMapElemKey()
  3829. if z.IsJSONHandle() {
  3830. z.WriteStr("\"ASslice\"")
  3831. } else {
  3832. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  3833. }
  3834. r.WriteMapElemValue()
  3835. if x.AnonInTestStruc.ASslice == nil {
  3836. r.EncodeNil()
  3837. } else {
  3838. if false {
  3839. } else {
  3840. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  3841. }
  3842. }
  3843. }
  3844. if yyr2 || yy2arr2 {
  3845. r.WriteArrayElem()
  3846. if x.AnonInTestStruc.AI64slice == nil {
  3847. r.EncodeNil()
  3848. } else {
  3849. if false {
  3850. } else {
  3851. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  3852. }
  3853. }
  3854. } else {
  3855. r.WriteMapElemKey()
  3856. if z.IsJSONHandle() {
  3857. z.WriteStr("\"AI64slice\"")
  3858. } else {
  3859. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  3860. }
  3861. r.WriteMapElemValue()
  3862. if x.AnonInTestStruc.AI64slice == nil {
  3863. r.EncodeNil()
  3864. } else {
  3865. if false {
  3866. } else {
  3867. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  3868. }
  3869. }
  3870. }
  3871. if yyr2 || yy2arr2 {
  3872. r.WriteArrayElem()
  3873. if x.AnonInTestStruc.AUi64slice == nil {
  3874. r.EncodeNil()
  3875. } else {
  3876. if false {
  3877. } else {
  3878. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  3879. }
  3880. }
  3881. } else {
  3882. r.WriteMapElemKey()
  3883. if z.IsJSONHandle() {
  3884. z.WriteStr("\"AUi64slice\"")
  3885. } else {
  3886. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3887. }
  3888. r.WriteMapElemValue()
  3889. if x.AnonInTestStruc.AUi64slice == nil {
  3890. r.EncodeNil()
  3891. } else {
  3892. if false {
  3893. } else {
  3894. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  3895. }
  3896. }
  3897. }
  3898. if yyr2 || yy2arr2 {
  3899. r.WriteArrayElem()
  3900. if x.AnonInTestStruc.AF64slice == nil {
  3901. r.EncodeNil()
  3902. } else {
  3903. if false {
  3904. } else {
  3905. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  3906. }
  3907. }
  3908. } else {
  3909. r.WriteMapElemKey()
  3910. if z.IsJSONHandle() {
  3911. z.WriteStr("\"AF64slice\"")
  3912. } else {
  3913. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3914. }
  3915. r.WriteMapElemValue()
  3916. if x.AnonInTestStruc.AF64slice == nil {
  3917. r.EncodeNil()
  3918. } else {
  3919. if false {
  3920. } else {
  3921. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  3922. }
  3923. }
  3924. }
  3925. if yyr2 || yy2arr2 {
  3926. r.WriteArrayElem()
  3927. if x.AnonInTestStruc.AF32slice == nil {
  3928. r.EncodeNil()
  3929. } else {
  3930. if false {
  3931. } else {
  3932. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  3933. }
  3934. }
  3935. } else {
  3936. r.WriteMapElemKey()
  3937. if z.IsJSONHandle() {
  3938. z.WriteStr("\"AF32slice\"")
  3939. } else {
  3940. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3941. }
  3942. r.WriteMapElemValue()
  3943. if x.AnonInTestStruc.AF32slice == nil {
  3944. r.EncodeNil()
  3945. } else {
  3946. if false {
  3947. } else {
  3948. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  3949. }
  3950. }
  3951. }
  3952. if yyr2 || yy2arr2 {
  3953. r.WriteArrayElem()
  3954. if x.AnonInTestStruc.AMSU16 == nil {
  3955. r.EncodeNil()
  3956. } else {
  3957. if false {
  3958. } else {
  3959. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  3960. }
  3961. }
  3962. } else {
  3963. r.WriteMapElemKey()
  3964. if z.IsJSONHandle() {
  3965. z.WriteStr("\"AMSU16\"")
  3966. } else {
  3967. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3968. }
  3969. r.WriteMapElemValue()
  3970. if x.AnonInTestStruc.AMSU16 == nil {
  3971. r.EncodeNil()
  3972. } else {
  3973. if false {
  3974. } else {
  3975. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  3976. }
  3977. }
  3978. }
  3979. if yyr2 || yy2arr2 {
  3980. r.WriteArrayElem()
  3981. yy126 := &x.AnonInTestStruc.AI64arr0
  3982. if false {
  3983. } else {
  3984. h.encArray0int64((*[0]int64)(yy126), e)
  3985. }
  3986. } else {
  3987. r.WriteMapElemKey()
  3988. if z.IsJSONHandle() {
  3989. z.WriteStr("\"AI64arr0\"")
  3990. } else {
  3991. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3992. }
  3993. r.WriteMapElemValue()
  3994. yy128 := &x.AnonInTestStruc.AI64arr0
  3995. if false {
  3996. } else {
  3997. h.encArray0int64((*[0]int64)(yy128), e)
  3998. }
  3999. }
  4000. if yyr2 || yy2arr2 {
  4001. r.WriteArrayElem()
  4002. if x.AnonInTestStruc.A164slice0 == nil {
  4003. r.EncodeNil()
  4004. } else {
  4005. if false {
  4006. } else {
  4007. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  4008. }
  4009. }
  4010. } else {
  4011. r.WriteMapElemKey()
  4012. if z.IsJSONHandle() {
  4013. z.WriteStr("\"A164slice0\"")
  4014. } else {
  4015. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  4016. }
  4017. r.WriteMapElemValue()
  4018. if x.AnonInTestStruc.A164slice0 == nil {
  4019. r.EncodeNil()
  4020. } else {
  4021. if false {
  4022. } else {
  4023. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  4024. }
  4025. }
  4026. }
  4027. if yyr2 || yy2arr2 {
  4028. r.WriteArrayElem()
  4029. if x.AnonInTestStruc.AUi64sliceN == nil {
  4030. r.EncodeNil()
  4031. } else {
  4032. if false {
  4033. } else {
  4034. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  4035. }
  4036. }
  4037. } else {
  4038. r.WriteMapElemKey()
  4039. if z.IsJSONHandle() {
  4040. z.WriteStr("\"AUi64sliceN\"")
  4041. } else {
  4042. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  4043. }
  4044. r.WriteMapElemValue()
  4045. if x.AnonInTestStruc.AUi64sliceN == nil {
  4046. r.EncodeNil()
  4047. } else {
  4048. if false {
  4049. } else {
  4050. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  4051. }
  4052. }
  4053. }
  4054. if yyr2 || yy2arr2 {
  4055. r.WriteArrayElem()
  4056. if x.AnonInTestStruc.AMSU16N == nil {
  4057. r.EncodeNil()
  4058. } else {
  4059. if false {
  4060. } else {
  4061. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  4062. }
  4063. }
  4064. } else {
  4065. r.WriteMapElemKey()
  4066. if z.IsJSONHandle() {
  4067. z.WriteStr("\"AMSU16N\"")
  4068. } else {
  4069. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  4070. }
  4071. r.WriteMapElemValue()
  4072. if x.AnonInTestStruc.AMSU16N == nil {
  4073. r.EncodeNil()
  4074. } else {
  4075. if false {
  4076. } else {
  4077. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  4078. }
  4079. }
  4080. }
  4081. if yyr2 || yy2arr2 {
  4082. r.WriteArrayElem()
  4083. if x.AnonInTestStruc.AMSU16E == nil {
  4084. r.EncodeNil()
  4085. } else {
  4086. if false {
  4087. } else {
  4088. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  4089. }
  4090. }
  4091. } else {
  4092. r.WriteMapElemKey()
  4093. if z.IsJSONHandle() {
  4094. z.WriteStr("\"AMSU16E\"")
  4095. } else {
  4096. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  4097. }
  4098. r.WriteMapElemValue()
  4099. if x.AnonInTestStruc.AMSU16E == nil {
  4100. r.EncodeNil()
  4101. } else {
  4102. if false {
  4103. } else {
  4104. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  4105. }
  4106. }
  4107. }
  4108. if yyr2 || yy2arr2 {
  4109. r.WriteArrayElem()
  4110. yy143 := &x.NotAnon
  4111. yy143.CodecEncodeSelf(e)
  4112. } else {
  4113. r.WriteMapElemKey()
  4114. if z.IsJSONHandle() {
  4115. z.WriteStr("\"NotAnon\"")
  4116. } else {
  4117. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  4118. }
  4119. r.WriteMapElemValue()
  4120. yy145 := &x.NotAnon
  4121. yy145.CodecEncodeSelf(e)
  4122. }
  4123. if yyr2 || yy2arr2 {
  4124. r.WriteArrayElem()
  4125. if x.Nmap == nil {
  4126. r.EncodeNil()
  4127. } else {
  4128. if false {
  4129. } else {
  4130. z.F.EncMapStringBoolV(x.Nmap, e)
  4131. }
  4132. }
  4133. } else {
  4134. r.WriteMapElemKey()
  4135. if z.IsJSONHandle() {
  4136. z.WriteStr("\"Nmap\"")
  4137. } else {
  4138. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  4139. }
  4140. r.WriteMapElemValue()
  4141. if x.Nmap == nil {
  4142. r.EncodeNil()
  4143. } else {
  4144. if false {
  4145. } else {
  4146. z.F.EncMapStringBoolV(x.Nmap, e)
  4147. }
  4148. }
  4149. }
  4150. if yyr2 || yy2arr2 {
  4151. r.WriteArrayElem()
  4152. if x.Nslice == nil {
  4153. r.EncodeNil()
  4154. } else {
  4155. if false {
  4156. } else {
  4157. r.EncodeStringBytesRaw([]byte(x.Nslice))
  4158. }
  4159. }
  4160. } else {
  4161. r.WriteMapElemKey()
  4162. if z.IsJSONHandle() {
  4163. z.WriteStr("\"Nslice\"")
  4164. } else {
  4165. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  4166. }
  4167. r.WriteMapElemValue()
  4168. if x.Nslice == nil {
  4169. r.EncodeNil()
  4170. } else {
  4171. if false {
  4172. } else {
  4173. r.EncodeStringBytesRaw([]byte(x.Nslice))
  4174. }
  4175. }
  4176. }
  4177. var yyn153 bool
  4178. if x.Nint64 == nil {
  4179. yyn153 = true
  4180. goto LABEL153
  4181. }
  4182. LABEL153:
  4183. if yyr2 || yy2arr2 {
  4184. if yyn153 {
  4185. r.WriteArrayElem()
  4186. r.EncodeNil()
  4187. } else {
  4188. r.WriteArrayElem()
  4189. if x.Nint64 == nil {
  4190. r.EncodeNil()
  4191. } else {
  4192. yy154 := *x.Nint64
  4193. if false {
  4194. } else {
  4195. r.EncodeInt(int64(yy154))
  4196. }
  4197. }
  4198. }
  4199. } else {
  4200. r.WriteMapElemKey()
  4201. if z.IsJSONHandle() {
  4202. z.WriteStr("\"Nint64\"")
  4203. } else {
  4204. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  4205. }
  4206. r.WriteMapElemValue()
  4207. if yyn153 {
  4208. r.EncodeNil()
  4209. } else {
  4210. if x.Nint64 == nil {
  4211. r.EncodeNil()
  4212. } else {
  4213. yy156 := *x.Nint64
  4214. if false {
  4215. } else {
  4216. r.EncodeInt(int64(yy156))
  4217. }
  4218. }
  4219. }
  4220. }
  4221. if yyr2 || yy2arr2 {
  4222. r.WriteArrayEnd()
  4223. } else {
  4224. r.WriteMapEnd()
  4225. }
  4226. }
  4227. }
  4228. }
  4229. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  4230. var h codecSelfer19780
  4231. z, r := GenHelperDecoder(d)
  4232. _, _, _ = h, z, r
  4233. if false {
  4234. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  4235. z.DecExtension(x, yyxt1)
  4236. } else {
  4237. yyct2 := r.ContainerType()
  4238. if yyct2 == codecSelferValueTypeMap19780 {
  4239. yyl2 := r.ReadMapStart()
  4240. if yyl2 == 0 {
  4241. r.ReadMapEnd()
  4242. } else {
  4243. x.codecDecodeSelfFromMap(yyl2, d)
  4244. }
  4245. } else if yyct2 == codecSelferValueTypeArray19780 {
  4246. yyl2 := r.ReadArrayStart()
  4247. if yyl2 == 0 {
  4248. r.ReadArrayEnd()
  4249. } else {
  4250. x.codecDecodeSelfFromArray(yyl2, d)
  4251. }
  4252. } else {
  4253. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4254. }
  4255. }
  4256. }
  4257. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  4258. var h codecSelfer19780
  4259. z, r := GenHelperDecoder(d)
  4260. _, _, _ = h, z, r
  4261. var yyhl3 bool = l >= 0
  4262. for yyj3 := 0; ; yyj3++ {
  4263. if yyhl3 {
  4264. if yyj3 >= l {
  4265. break
  4266. }
  4267. } else {
  4268. if r.CheckBreak() {
  4269. break
  4270. }
  4271. }
  4272. r.ReadMapElemKey()
  4273. yys3 := z.StringView(r.DecodeStringAsBytes())
  4274. r.ReadMapElemValue()
  4275. switch yys3 {
  4276. case "S":
  4277. if r.TryDecodeAsNil() {
  4278. x.S = ""
  4279. } else {
  4280. x.S = (string)(r.DecodeString())
  4281. }
  4282. case "I64":
  4283. if r.TryDecodeAsNil() {
  4284. x.I64 = 0
  4285. } else {
  4286. x.I64 = (int64)(r.DecodeInt64())
  4287. }
  4288. case "I32":
  4289. if r.TryDecodeAsNil() {
  4290. x.I32 = 0
  4291. } else {
  4292. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4293. }
  4294. case "I16":
  4295. if r.TryDecodeAsNil() {
  4296. x.I16 = 0
  4297. } else {
  4298. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4299. }
  4300. case "I8":
  4301. if r.TryDecodeAsNil() {
  4302. x.I8 = 0
  4303. } else {
  4304. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4305. }
  4306. case "I64n":
  4307. if r.TryDecodeAsNil() {
  4308. x.I64n = 0
  4309. } else {
  4310. x.I64n = (int64)(r.DecodeInt64())
  4311. }
  4312. case "I32n":
  4313. if r.TryDecodeAsNil() {
  4314. x.I32n = 0
  4315. } else {
  4316. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4317. }
  4318. case "I16n":
  4319. if r.TryDecodeAsNil() {
  4320. x.I16n = 0
  4321. } else {
  4322. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4323. }
  4324. case "I8n":
  4325. if r.TryDecodeAsNil() {
  4326. x.I8n = 0
  4327. } else {
  4328. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4329. }
  4330. case "Ui64":
  4331. if r.TryDecodeAsNil() {
  4332. x.Ui64 = 0
  4333. } else {
  4334. x.Ui64 = (uint64)(r.DecodeUint64())
  4335. }
  4336. case "Ui32":
  4337. if r.TryDecodeAsNil() {
  4338. x.Ui32 = 0
  4339. } else {
  4340. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4341. }
  4342. case "Ui16":
  4343. if r.TryDecodeAsNil() {
  4344. x.Ui16 = 0
  4345. } else {
  4346. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4347. }
  4348. case "Ui8":
  4349. if r.TryDecodeAsNil() {
  4350. x.Ui8 = 0
  4351. } else {
  4352. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4353. }
  4354. case "F64":
  4355. if r.TryDecodeAsNil() {
  4356. x.F64 = 0
  4357. } else {
  4358. x.F64 = (float64)(r.DecodeFloat64())
  4359. }
  4360. case "F32":
  4361. if r.TryDecodeAsNil() {
  4362. x.F32 = 0
  4363. } else {
  4364. x.F32 = (float32)(r.DecodeFloat32As64())
  4365. }
  4366. case "B":
  4367. if r.TryDecodeAsNil() {
  4368. x.B = false
  4369. } else {
  4370. x.B = (bool)(r.DecodeBool())
  4371. }
  4372. case "By":
  4373. if r.TryDecodeAsNil() {
  4374. x.By = 0
  4375. } else {
  4376. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4377. }
  4378. case "Sslice":
  4379. if r.TryDecodeAsNil() {
  4380. x.Sslice = nil
  4381. } else {
  4382. if false {
  4383. } else {
  4384. z.F.DecSliceStringX(&x.Sslice, d)
  4385. }
  4386. }
  4387. case "I64slice":
  4388. if r.TryDecodeAsNil() {
  4389. x.I64slice = nil
  4390. } else {
  4391. if false {
  4392. } else {
  4393. z.F.DecSliceInt64X(&x.I64slice, d)
  4394. }
  4395. }
  4396. case "I16slice":
  4397. if r.TryDecodeAsNil() {
  4398. x.I16slice = nil
  4399. } else {
  4400. if false {
  4401. } else {
  4402. z.F.DecSliceInt16X(&x.I16slice, d)
  4403. }
  4404. }
  4405. case "Ui64slice":
  4406. if r.TryDecodeAsNil() {
  4407. x.Ui64slice = nil
  4408. } else {
  4409. if false {
  4410. } else {
  4411. z.F.DecSliceUint64X(&x.Ui64slice, d)
  4412. }
  4413. }
  4414. case "Ui8slice":
  4415. if r.TryDecodeAsNil() {
  4416. x.Ui8slice = nil
  4417. } else {
  4418. if false {
  4419. } else {
  4420. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  4421. }
  4422. }
  4423. case "Bslice":
  4424. if r.TryDecodeAsNil() {
  4425. x.Bslice = nil
  4426. } else {
  4427. if false {
  4428. } else {
  4429. z.F.DecSliceBoolX(&x.Bslice, d)
  4430. }
  4431. }
  4432. case "Byslice":
  4433. if r.TryDecodeAsNil() {
  4434. x.Byslice = nil
  4435. } else {
  4436. if false {
  4437. } else {
  4438. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  4439. }
  4440. }
  4441. case "Iptrslice":
  4442. if r.TryDecodeAsNil() {
  4443. x.Iptrslice = nil
  4444. } else {
  4445. if false {
  4446. } else {
  4447. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  4448. }
  4449. }
  4450. case "WrapSliceInt64":
  4451. if r.TryDecodeAsNil() {
  4452. x.WrapSliceInt64 = nil
  4453. } else {
  4454. x.WrapSliceInt64.CodecDecodeSelf(d)
  4455. }
  4456. case "WrapSliceString":
  4457. if r.TryDecodeAsNil() {
  4458. x.WrapSliceString = nil
  4459. } else {
  4460. x.WrapSliceString.CodecDecodeSelf(d)
  4461. }
  4462. case "Msi64":
  4463. if r.TryDecodeAsNil() {
  4464. x.Msi64 = nil
  4465. } else {
  4466. if false {
  4467. } else {
  4468. z.F.DecMapStringInt64X(&x.Msi64, d)
  4469. }
  4470. }
  4471. case "Simplef":
  4472. if r.TryDecodeAsNil() {
  4473. x.Simplef = testSimpleFields{}
  4474. } else {
  4475. x.Simplef.CodecDecodeSelf(d)
  4476. }
  4477. case "SstrUi64T":
  4478. if r.TryDecodeAsNil() {
  4479. x.SstrUi64T = nil
  4480. } else {
  4481. if false {
  4482. } else {
  4483. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  4484. }
  4485. }
  4486. case "AS":
  4487. if r.TryDecodeAsNil() {
  4488. x.AnonInTestStruc.AS = ""
  4489. } else {
  4490. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  4491. }
  4492. case "AI64":
  4493. if r.TryDecodeAsNil() {
  4494. x.AnonInTestStruc.AI64 = 0
  4495. } else {
  4496. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4497. }
  4498. case "AI16":
  4499. if r.TryDecodeAsNil() {
  4500. x.AnonInTestStruc.AI16 = 0
  4501. } else {
  4502. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4503. }
  4504. case "AUi64":
  4505. if r.TryDecodeAsNil() {
  4506. x.AnonInTestStruc.AUi64 = 0
  4507. } else {
  4508. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4509. }
  4510. case "ASslice":
  4511. if r.TryDecodeAsNil() {
  4512. x.AnonInTestStruc.ASslice = nil
  4513. } else {
  4514. if false {
  4515. } else {
  4516. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  4517. }
  4518. }
  4519. case "AI64slice":
  4520. if r.TryDecodeAsNil() {
  4521. x.AnonInTestStruc.AI64slice = nil
  4522. } else {
  4523. if false {
  4524. } else {
  4525. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  4526. }
  4527. }
  4528. case "AUi64slice":
  4529. if r.TryDecodeAsNil() {
  4530. x.AnonInTestStruc.AUi64slice = nil
  4531. } else {
  4532. if false {
  4533. } else {
  4534. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  4535. }
  4536. }
  4537. case "AF64slice":
  4538. if r.TryDecodeAsNil() {
  4539. x.AnonInTestStruc.AF64slice = nil
  4540. } else {
  4541. if false {
  4542. } else {
  4543. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  4544. }
  4545. }
  4546. case "AF32slice":
  4547. if r.TryDecodeAsNil() {
  4548. x.AnonInTestStruc.AF32slice = nil
  4549. } else {
  4550. if false {
  4551. } else {
  4552. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  4553. }
  4554. }
  4555. case "AMSU16":
  4556. if r.TryDecodeAsNil() {
  4557. x.AnonInTestStruc.AMSU16 = nil
  4558. } else {
  4559. if false {
  4560. } else {
  4561. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  4562. }
  4563. }
  4564. case "AI64arr0":
  4565. if r.TryDecodeAsNil() {
  4566. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  4567. } else {
  4568. if false {
  4569. } else {
  4570. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  4571. }
  4572. }
  4573. case "A164slice0":
  4574. if r.TryDecodeAsNil() {
  4575. x.AnonInTestStruc.A164slice0 = nil
  4576. } else {
  4577. if false {
  4578. } else {
  4579. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  4580. }
  4581. }
  4582. case "AUi64sliceN":
  4583. if r.TryDecodeAsNil() {
  4584. x.AnonInTestStruc.AUi64sliceN = nil
  4585. } else {
  4586. if false {
  4587. } else {
  4588. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  4589. }
  4590. }
  4591. case "AMSU16N":
  4592. if r.TryDecodeAsNil() {
  4593. x.AnonInTestStruc.AMSU16N = nil
  4594. } else {
  4595. if false {
  4596. } else {
  4597. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  4598. }
  4599. }
  4600. case "AMSU16E":
  4601. if r.TryDecodeAsNil() {
  4602. x.AnonInTestStruc.AMSU16E = nil
  4603. } else {
  4604. if false {
  4605. } else {
  4606. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  4607. }
  4608. }
  4609. case "NotAnon":
  4610. if r.TryDecodeAsNil() {
  4611. x.NotAnon = AnonInTestStruc{}
  4612. } else {
  4613. x.NotAnon.CodecDecodeSelf(d)
  4614. }
  4615. case "Nmap":
  4616. if r.TryDecodeAsNil() {
  4617. x.Nmap = nil
  4618. } else {
  4619. if false {
  4620. } else {
  4621. z.F.DecMapStringBoolX(&x.Nmap, d)
  4622. }
  4623. }
  4624. case "Nslice":
  4625. if r.TryDecodeAsNil() {
  4626. x.Nslice = nil
  4627. } else {
  4628. if false {
  4629. } else {
  4630. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  4631. }
  4632. }
  4633. case "Nint64":
  4634. if r.TryDecodeAsNil() {
  4635. if true && x.Nint64 != nil {
  4636. x.Nint64 = nil
  4637. }
  4638. } else {
  4639. if x.Nint64 == nil {
  4640. x.Nint64 = new(int64)
  4641. }
  4642. if false {
  4643. } else {
  4644. *x.Nint64 = (int64)(r.DecodeInt64())
  4645. }
  4646. }
  4647. default:
  4648. z.DecStructFieldNotFound(-1, yys3)
  4649. } // end switch yys3
  4650. } // end for yyj3
  4651. r.ReadMapEnd()
  4652. }
  4653. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  4654. var h codecSelfer19780
  4655. z, r := GenHelperDecoder(d)
  4656. _, _, _ = h, z, r
  4657. var yyj77 int
  4658. var yyb77 bool
  4659. var yyhl77 bool = l >= 0
  4660. yyj77++
  4661. if yyhl77 {
  4662. yyb77 = yyj77 > l
  4663. } else {
  4664. yyb77 = r.CheckBreak()
  4665. }
  4666. if yyb77 {
  4667. r.ReadArrayEnd()
  4668. return
  4669. }
  4670. r.ReadArrayElem()
  4671. if r.TryDecodeAsNil() {
  4672. x.S = ""
  4673. } else {
  4674. x.S = (string)(r.DecodeString())
  4675. }
  4676. yyj77++
  4677. if yyhl77 {
  4678. yyb77 = yyj77 > l
  4679. } else {
  4680. yyb77 = r.CheckBreak()
  4681. }
  4682. if yyb77 {
  4683. r.ReadArrayEnd()
  4684. return
  4685. }
  4686. r.ReadArrayElem()
  4687. if r.TryDecodeAsNil() {
  4688. x.I64 = 0
  4689. } else {
  4690. x.I64 = (int64)(r.DecodeInt64())
  4691. }
  4692. yyj77++
  4693. if yyhl77 {
  4694. yyb77 = yyj77 > l
  4695. } else {
  4696. yyb77 = r.CheckBreak()
  4697. }
  4698. if yyb77 {
  4699. r.ReadArrayEnd()
  4700. return
  4701. }
  4702. r.ReadArrayElem()
  4703. if r.TryDecodeAsNil() {
  4704. x.I32 = 0
  4705. } else {
  4706. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4707. }
  4708. yyj77++
  4709. if yyhl77 {
  4710. yyb77 = yyj77 > l
  4711. } else {
  4712. yyb77 = r.CheckBreak()
  4713. }
  4714. if yyb77 {
  4715. r.ReadArrayEnd()
  4716. return
  4717. }
  4718. r.ReadArrayElem()
  4719. if r.TryDecodeAsNil() {
  4720. x.I16 = 0
  4721. } else {
  4722. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4723. }
  4724. yyj77++
  4725. if yyhl77 {
  4726. yyb77 = yyj77 > l
  4727. } else {
  4728. yyb77 = r.CheckBreak()
  4729. }
  4730. if yyb77 {
  4731. r.ReadArrayEnd()
  4732. return
  4733. }
  4734. r.ReadArrayElem()
  4735. if r.TryDecodeAsNil() {
  4736. x.I8 = 0
  4737. } else {
  4738. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4739. }
  4740. yyj77++
  4741. if yyhl77 {
  4742. yyb77 = yyj77 > l
  4743. } else {
  4744. yyb77 = r.CheckBreak()
  4745. }
  4746. if yyb77 {
  4747. r.ReadArrayEnd()
  4748. return
  4749. }
  4750. r.ReadArrayElem()
  4751. if r.TryDecodeAsNil() {
  4752. x.I64n = 0
  4753. } else {
  4754. x.I64n = (int64)(r.DecodeInt64())
  4755. }
  4756. yyj77++
  4757. if yyhl77 {
  4758. yyb77 = yyj77 > l
  4759. } else {
  4760. yyb77 = r.CheckBreak()
  4761. }
  4762. if yyb77 {
  4763. r.ReadArrayEnd()
  4764. return
  4765. }
  4766. r.ReadArrayElem()
  4767. if r.TryDecodeAsNil() {
  4768. x.I32n = 0
  4769. } else {
  4770. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4771. }
  4772. yyj77++
  4773. if yyhl77 {
  4774. yyb77 = yyj77 > l
  4775. } else {
  4776. yyb77 = r.CheckBreak()
  4777. }
  4778. if yyb77 {
  4779. r.ReadArrayEnd()
  4780. return
  4781. }
  4782. r.ReadArrayElem()
  4783. if r.TryDecodeAsNil() {
  4784. x.I16n = 0
  4785. } else {
  4786. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4787. }
  4788. yyj77++
  4789. if yyhl77 {
  4790. yyb77 = yyj77 > l
  4791. } else {
  4792. yyb77 = r.CheckBreak()
  4793. }
  4794. if yyb77 {
  4795. r.ReadArrayEnd()
  4796. return
  4797. }
  4798. r.ReadArrayElem()
  4799. if r.TryDecodeAsNil() {
  4800. x.I8n = 0
  4801. } else {
  4802. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4803. }
  4804. yyj77++
  4805. if yyhl77 {
  4806. yyb77 = yyj77 > l
  4807. } else {
  4808. yyb77 = r.CheckBreak()
  4809. }
  4810. if yyb77 {
  4811. r.ReadArrayEnd()
  4812. return
  4813. }
  4814. r.ReadArrayElem()
  4815. if r.TryDecodeAsNil() {
  4816. x.Ui64 = 0
  4817. } else {
  4818. x.Ui64 = (uint64)(r.DecodeUint64())
  4819. }
  4820. yyj77++
  4821. if yyhl77 {
  4822. yyb77 = yyj77 > l
  4823. } else {
  4824. yyb77 = r.CheckBreak()
  4825. }
  4826. if yyb77 {
  4827. r.ReadArrayEnd()
  4828. return
  4829. }
  4830. r.ReadArrayElem()
  4831. if r.TryDecodeAsNil() {
  4832. x.Ui32 = 0
  4833. } else {
  4834. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4835. }
  4836. yyj77++
  4837. if yyhl77 {
  4838. yyb77 = yyj77 > l
  4839. } else {
  4840. yyb77 = r.CheckBreak()
  4841. }
  4842. if yyb77 {
  4843. r.ReadArrayEnd()
  4844. return
  4845. }
  4846. r.ReadArrayElem()
  4847. if r.TryDecodeAsNil() {
  4848. x.Ui16 = 0
  4849. } else {
  4850. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4851. }
  4852. yyj77++
  4853. if yyhl77 {
  4854. yyb77 = yyj77 > l
  4855. } else {
  4856. yyb77 = r.CheckBreak()
  4857. }
  4858. if yyb77 {
  4859. r.ReadArrayEnd()
  4860. return
  4861. }
  4862. r.ReadArrayElem()
  4863. if r.TryDecodeAsNil() {
  4864. x.Ui8 = 0
  4865. } else {
  4866. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4867. }
  4868. yyj77++
  4869. if yyhl77 {
  4870. yyb77 = yyj77 > l
  4871. } else {
  4872. yyb77 = r.CheckBreak()
  4873. }
  4874. if yyb77 {
  4875. r.ReadArrayEnd()
  4876. return
  4877. }
  4878. r.ReadArrayElem()
  4879. if r.TryDecodeAsNil() {
  4880. x.F64 = 0
  4881. } else {
  4882. x.F64 = (float64)(r.DecodeFloat64())
  4883. }
  4884. yyj77++
  4885. if yyhl77 {
  4886. yyb77 = yyj77 > l
  4887. } else {
  4888. yyb77 = r.CheckBreak()
  4889. }
  4890. if yyb77 {
  4891. r.ReadArrayEnd()
  4892. return
  4893. }
  4894. r.ReadArrayElem()
  4895. if r.TryDecodeAsNil() {
  4896. x.F32 = 0
  4897. } else {
  4898. x.F32 = (float32)(r.DecodeFloat32As64())
  4899. }
  4900. yyj77++
  4901. if yyhl77 {
  4902. yyb77 = yyj77 > l
  4903. } else {
  4904. yyb77 = r.CheckBreak()
  4905. }
  4906. if yyb77 {
  4907. r.ReadArrayEnd()
  4908. return
  4909. }
  4910. r.ReadArrayElem()
  4911. if r.TryDecodeAsNil() {
  4912. x.B = false
  4913. } else {
  4914. x.B = (bool)(r.DecodeBool())
  4915. }
  4916. yyj77++
  4917. if yyhl77 {
  4918. yyb77 = yyj77 > l
  4919. } else {
  4920. yyb77 = r.CheckBreak()
  4921. }
  4922. if yyb77 {
  4923. r.ReadArrayEnd()
  4924. return
  4925. }
  4926. r.ReadArrayElem()
  4927. if r.TryDecodeAsNil() {
  4928. x.By = 0
  4929. } else {
  4930. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4931. }
  4932. yyj77++
  4933. if yyhl77 {
  4934. yyb77 = yyj77 > l
  4935. } else {
  4936. yyb77 = r.CheckBreak()
  4937. }
  4938. if yyb77 {
  4939. r.ReadArrayEnd()
  4940. return
  4941. }
  4942. r.ReadArrayElem()
  4943. if r.TryDecodeAsNil() {
  4944. x.Sslice = nil
  4945. } else {
  4946. if false {
  4947. } else {
  4948. z.F.DecSliceStringX(&x.Sslice, d)
  4949. }
  4950. }
  4951. yyj77++
  4952. if yyhl77 {
  4953. yyb77 = yyj77 > l
  4954. } else {
  4955. yyb77 = r.CheckBreak()
  4956. }
  4957. if yyb77 {
  4958. r.ReadArrayEnd()
  4959. return
  4960. }
  4961. r.ReadArrayElem()
  4962. if r.TryDecodeAsNil() {
  4963. x.I64slice = nil
  4964. } else {
  4965. if false {
  4966. } else {
  4967. z.F.DecSliceInt64X(&x.I64slice, d)
  4968. }
  4969. }
  4970. yyj77++
  4971. if yyhl77 {
  4972. yyb77 = yyj77 > l
  4973. } else {
  4974. yyb77 = r.CheckBreak()
  4975. }
  4976. if yyb77 {
  4977. r.ReadArrayEnd()
  4978. return
  4979. }
  4980. r.ReadArrayElem()
  4981. if r.TryDecodeAsNil() {
  4982. x.I16slice = nil
  4983. } else {
  4984. if false {
  4985. } else {
  4986. z.F.DecSliceInt16X(&x.I16slice, d)
  4987. }
  4988. }
  4989. yyj77++
  4990. if yyhl77 {
  4991. yyb77 = yyj77 > l
  4992. } else {
  4993. yyb77 = r.CheckBreak()
  4994. }
  4995. if yyb77 {
  4996. r.ReadArrayEnd()
  4997. return
  4998. }
  4999. r.ReadArrayElem()
  5000. if r.TryDecodeAsNil() {
  5001. x.Ui64slice = nil
  5002. } else {
  5003. if false {
  5004. } else {
  5005. z.F.DecSliceUint64X(&x.Ui64slice, d)
  5006. }
  5007. }
  5008. yyj77++
  5009. if yyhl77 {
  5010. yyb77 = yyj77 > l
  5011. } else {
  5012. yyb77 = r.CheckBreak()
  5013. }
  5014. if yyb77 {
  5015. r.ReadArrayEnd()
  5016. return
  5017. }
  5018. r.ReadArrayElem()
  5019. if r.TryDecodeAsNil() {
  5020. x.Ui8slice = nil
  5021. } else {
  5022. if false {
  5023. } else {
  5024. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  5025. }
  5026. }
  5027. yyj77++
  5028. if yyhl77 {
  5029. yyb77 = yyj77 > l
  5030. } else {
  5031. yyb77 = r.CheckBreak()
  5032. }
  5033. if yyb77 {
  5034. r.ReadArrayEnd()
  5035. return
  5036. }
  5037. r.ReadArrayElem()
  5038. if r.TryDecodeAsNil() {
  5039. x.Bslice = nil
  5040. } else {
  5041. if false {
  5042. } else {
  5043. z.F.DecSliceBoolX(&x.Bslice, d)
  5044. }
  5045. }
  5046. yyj77++
  5047. if yyhl77 {
  5048. yyb77 = yyj77 > l
  5049. } else {
  5050. yyb77 = r.CheckBreak()
  5051. }
  5052. if yyb77 {
  5053. r.ReadArrayEnd()
  5054. return
  5055. }
  5056. r.ReadArrayElem()
  5057. if r.TryDecodeAsNil() {
  5058. x.Byslice = nil
  5059. } else {
  5060. if false {
  5061. } else {
  5062. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  5063. }
  5064. }
  5065. yyj77++
  5066. if yyhl77 {
  5067. yyb77 = yyj77 > l
  5068. } else {
  5069. yyb77 = r.CheckBreak()
  5070. }
  5071. if yyb77 {
  5072. r.ReadArrayEnd()
  5073. return
  5074. }
  5075. r.ReadArrayElem()
  5076. if r.TryDecodeAsNil() {
  5077. x.Iptrslice = nil
  5078. } else {
  5079. if false {
  5080. } else {
  5081. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  5082. }
  5083. }
  5084. yyj77++
  5085. if yyhl77 {
  5086. yyb77 = yyj77 > l
  5087. } else {
  5088. yyb77 = r.CheckBreak()
  5089. }
  5090. if yyb77 {
  5091. r.ReadArrayEnd()
  5092. return
  5093. }
  5094. r.ReadArrayElem()
  5095. if r.TryDecodeAsNil() {
  5096. x.WrapSliceInt64 = nil
  5097. } else {
  5098. x.WrapSliceInt64.CodecDecodeSelf(d)
  5099. }
  5100. yyj77++
  5101. if yyhl77 {
  5102. yyb77 = yyj77 > l
  5103. } else {
  5104. yyb77 = r.CheckBreak()
  5105. }
  5106. if yyb77 {
  5107. r.ReadArrayEnd()
  5108. return
  5109. }
  5110. r.ReadArrayElem()
  5111. if r.TryDecodeAsNil() {
  5112. x.WrapSliceString = nil
  5113. } else {
  5114. x.WrapSliceString.CodecDecodeSelf(d)
  5115. }
  5116. yyj77++
  5117. if yyhl77 {
  5118. yyb77 = yyj77 > l
  5119. } else {
  5120. yyb77 = r.CheckBreak()
  5121. }
  5122. if yyb77 {
  5123. r.ReadArrayEnd()
  5124. return
  5125. }
  5126. r.ReadArrayElem()
  5127. if r.TryDecodeAsNil() {
  5128. x.Msi64 = nil
  5129. } else {
  5130. if false {
  5131. } else {
  5132. z.F.DecMapStringInt64X(&x.Msi64, d)
  5133. }
  5134. }
  5135. yyj77++
  5136. if yyhl77 {
  5137. yyb77 = yyj77 > l
  5138. } else {
  5139. yyb77 = r.CheckBreak()
  5140. }
  5141. if yyb77 {
  5142. r.ReadArrayEnd()
  5143. return
  5144. }
  5145. r.ReadArrayElem()
  5146. if r.TryDecodeAsNil() {
  5147. x.Simplef = testSimpleFields{}
  5148. } else {
  5149. x.Simplef.CodecDecodeSelf(d)
  5150. }
  5151. yyj77++
  5152. if yyhl77 {
  5153. yyb77 = yyj77 > l
  5154. } else {
  5155. yyb77 = r.CheckBreak()
  5156. }
  5157. if yyb77 {
  5158. r.ReadArrayEnd()
  5159. return
  5160. }
  5161. r.ReadArrayElem()
  5162. if r.TryDecodeAsNil() {
  5163. x.SstrUi64T = nil
  5164. } else {
  5165. if false {
  5166. } else {
  5167. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  5168. }
  5169. }
  5170. yyj77++
  5171. if yyhl77 {
  5172. yyb77 = yyj77 > l
  5173. } else {
  5174. yyb77 = r.CheckBreak()
  5175. }
  5176. if yyb77 {
  5177. r.ReadArrayEnd()
  5178. return
  5179. }
  5180. r.ReadArrayElem()
  5181. if r.TryDecodeAsNil() {
  5182. x.AnonInTestStruc.AS = ""
  5183. } else {
  5184. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  5185. }
  5186. yyj77++
  5187. if yyhl77 {
  5188. yyb77 = yyj77 > l
  5189. } else {
  5190. yyb77 = r.CheckBreak()
  5191. }
  5192. if yyb77 {
  5193. r.ReadArrayEnd()
  5194. return
  5195. }
  5196. r.ReadArrayElem()
  5197. if r.TryDecodeAsNil() {
  5198. x.AnonInTestStruc.AI64 = 0
  5199. } else {
  5200. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  5201. }
  5202. yyj77++
  5203. if yyhl77 {
  5204. yyb77 = yyj77 > l
  5205. } else {
  5206. yyb77 = r.CheckBreak()
  5207. }
  5208. if yyb77 {
  5209. r.ReadArrayEnd()
  5210. return
  5211. }
  5212. r.ReadArrayElem()
  5213. if r.TryDecodeAsNil() {
  5214. x.AnonInTestStruc.AI16 = 0
  5215. } else {
  5216. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  5217. }
  5218. yyj77++
  5219. if yyhl77 {
  5220. yyb77 = yyj77 > l
  5221. } else {
  5222. yyb77 = r.CheckBreak()
  5223. }
  5224. if yyb77 {
  5225. r.ReadArrayEnd()
  5226. return
  5227. }
  5228. r.ReadArrayElem()
  5229. if r.TryDecodeAsNil() {
  5230. x.AnonInTestStruc.AUi64 = 0
  5231. } else {
  5232. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  5233. }
  5234. yyj77++
  5235. if yyhl77 {
  5236. yyb77 = yyj77 > l
  5237. } else {
  5238. yyb77 = r.CheckBreak()
  5239. }
  5240. if yyb77 {
  5241. r.ReadArrayEnd()
  5242. return
  5243. }
  5244. r.ReadArrayElem()
  5245. if r.TryDecodeAsNil() {
  5246. x.AnonInTestStruc.ASslice = nil
  5247. } else {
  5248. if false {
  5249. } else {
  5250. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  5251. }
  5252. }
  5253. yyj77++
  5254. if yyhl77 {
  5255. yyb77 = yyj77 > l
  5256. } else {
  5257. yyb77 = r.CheckBreak()
  5258. }
  5259. if yyb77 {
  5260. r.ReadArrayEnd()
  5261. return
  5262. }
  5263. r.ReadArrayElem()
  5264. if r.TryDecodeAsNil() {
  5265. x.AnonInTestStruc.AI64slice = nil
  5266. } else {
  5267. if false {
  5268. } else {
  5269. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  5270. }
  5271. }
  5272. yyj77++
  5273. if yyhl77 {
  5274. yyb77 = yyj77 > l
  5275. } else {
  5276. yyb77 = r.CheckBreak()
  5277. }
  5278. if yyb77 {
  5279. r.ReadArrayEnd()
  5280. return
  5281. }
  5282. r.ReadArrayElem()
  5283. if r.TryDecodeAsNil() {
  5284. x.AnonInTestStruc.AUi64slice = nil
  5285. } else {
  5286. if false {
  5287. } else {
  5288. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  5289. }
  5290. }
  5291. yyj77++
  5292. if yyhl77 {
  5293. yyb77 = yyj77 > l
  5294. } else {
  5295. yyb77 = r.CheckBreak()
  5296. }
  5297. if yyb77 {
  5298. r.ReadArrayEnd()
  5299. return
  5300. }
  5301. r.ReadArrayElem()
  5302. if r.TryDecodeAsNil() {
  5303. x.AnonInTestStruc.AF64slice = nil
  5304. } else {
  5305. if false {
  5306. } else {
  5307. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  5308. }
  5309. }
  5310. yyj77++
  5311. if yyhl77 {
  5312. yyb77 = yyj77 > l
  5313. } else {
  5314. yyb77 = r.CheckBreak()
  5315. }
  5316. if yyb77 {
  5317. r.ReadArrayEnd()
  5318. return
  5319. }
  5320. r.ReadArrayElem()
  5321. if r.TryDecodeAsNil() {
  5322. x.AnonInTestStruc.AF32slice = nil
  5323. } else {
  5324. if false {
  5325. } else {
  5326. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  5327. }
  5328. }
  5329. yyj77++
  5330. if yyhl77 {
  5331. yyb77 = yyj77 > l
  5332. } else {
  5333. yyb77 = r.CheckBreak()
  5334. }
  5335. if yyb77 {
  5336. r.ReadArrayEnd()
  5337. return
  5338. }
  5339. r.ReadArrayElem()
  5340. if r.TryDecodeAsNil() {
  5341. x.AnonInTestStruc.AMSU16 = nil
  5342. } else {
  5343. if false {
  5344. } else {
  5345. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  5346. }
  5347. }
  5348. yyj77++
  5349. if yyhl77 {
  5350. yyb77 = yyj77 > l
  5351. } else {
  5352. yyb77 = r.CheckBreak()
  5353. }
  5354. if yyb77 {
  5355. r.ReadArrayEnd()
  5356. return
  5357. }
  5358. r.ReadArrayElem()
  5359. if r.TryDecodeAsNil() {
  5360. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  5361. } else {
  5362. if false {
  5363. } else {
  5364. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  5365. }
  5366. }
  5367. yyj77++
  5368. if yyhl77 {
  5369. yyb77 = yyj77 > l
  5370. } else {
  5371. yyb77 = r.CheckBreak()
  5372. }
  5373. if yyb77 {
  5374. r.ReadArrayEnd()
  5375. return
  5376. }
  5377. r.ReadArrayElem()
  5378. if r.TryDecodeAsNil() {
  5379. x.AnonInTestStruc.A164slice0 = nil
  5380. } else {
  5381. if false {
  5382. } else {
  5383. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  5384. }
  5385. }
  5386. yyj77++
  5387. if yyhl77 {
  5388. yyb77 = yyj77 > l
  5389. } else {
  5390. yyb77 = r.CheckBreak()
  5391. }
  5392. if yyb77 {
  5393. r.ReadArrayEnd()
  5394. return
  5395. }
  5396. r.ReadArrayElem()
  5397. if r.TryDecodeAsNil() {
  5398. x.AnonInTestStruc.AUi64sliceN = nil
  5399. } else {
  5400. if false {
  5401. } else {
  5402. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  5403. }
  5404. }
  5405. yyj77++
  5406. if yyhl77 {
  5407. yyb77 = yyj77 > l
  5408. } else {
  5409. yyb77 = r.CheckBreak()
  5410. }
  5411. if yyb77 {
  5412. r.ReadArrayEnd()
  5413. return
  5414. }
  5415. r.ReadArrayElem()
  5416. if r.TryDecodeAsNil() {
  5417. x.AnonInTestStruc.AMSU16N = nil
  5418. } else {
  5419. if false {
  5420. } else {
  5421. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  5422. }
  5423. }
  5424. yyj77++
  5425. if yyhl77 {
  5426. yyb77 = yyj77 > l
  5427. } else {
  5428. yyb77 = r.CheckBreak()
  5429. }
  5430. if yyb77 {
  5431. r.ReadArrayEnd()
  5432. return
  5433. }
  5434. r.ReadArrayElem()
  5435. if r.TryDecodeAsNil() {
  5436. x.AnonInTestStruc.AMSU16E = nil
  5437. } else {
  5438. if false {
  5439. } else {
  5440. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  5441. }
  5442. }
  5443. yyj77++
  5444. if yyhl77 {
  5445. yyb77 = yyj77 > l
  5446. } else {
  5447. yyb77 = r.CheckBreak()
  5448. }
  5449. if yyb77 {
  5450. r.ReadArrayEnd()
  5451. return
  5452. }
  5453. r.ReadArrayElem()
  5454. if r.TryDecodeAsNil() {
  5455. x.NotAnon = AnonInTestStruc{}
  5456. } else {
  5457. x.NotAnon.CodecDecodeSelf(d)
  5458. }
  5459. yyj77++
  5460. if yyhl77 {
  5461. yyb77 = yyj77 > l
  5462. } else {
  5463. yyb77 = r.CheckBreak()
  5464. }
  5465. if yyb77 {
  5466. r.ReadArrayEnd()
  5467. return
  5468. }
  5469. r.ReadArrayElem()
  5470. if r.TryDecodeAsNil() {
  5471. x.Nmap = nil
  5472. } else {
  5473. if false {
  5474. } else {
  5475. z.F.DecMapStringBoolX(&x.Nmap, d)
  5476. }
  5477. }
  5478. yyj77++
  5479. if yyhl77 {
  5480. yyb77 = yyj77 > l
  5481. } else {
  5482. yyb77 = r.CheckBreak()
  5483. }
  5484. if yyb77 {
  5485. r.ReadArrayEnd()
  5486. return
  5487. }
  5488. r.ReadArrayElem()
  5489. if r.TryDecodeAsNil() {
  5490. x.Nslice = nil
  5491. } else {
  5492. if false {
  5493. } else {
  5494. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  5495. }
  5496. }
  5497. yyj77++
  5498. if yyhl77 {
  5499. yyb77 = yyj77 > l
  5500. } else {
  5501. yyb77 = r.CheckBreak()
  5502. }
  5503. if yyb77 {
  5504. r.ReadArrayEnd()
  5505. return
  5506. }
  5507. r.ReadArrayElem()
  5508. if r.TryDecodeAsNil() {
  5509. if true && x.Nint64 != nil {
  5510. x.Nint64 = nil
  5511. }
  5512. } else {
  5513. if x.Nint64 == nil {
  5514. x.Nint64 = new(int64)
  5515. }
  5516. if false {
  5517. } else {
  5518. *x.Nint64 = (int64)(r.DecodeInt64())
  5519. }
  5520. }
  5521. for {
  5522. yyj77++
  5523. if yyhl77 {
  5524. yyb77 = yyj77 > l
  5525. } else {
  5526. yyb77 = r.CheckBreak()
  5527. }
  5528. if yyb77 {
  5529. break
  5530. }
  5531. r.ReadArrayElem()
  5532. z.DecStructFieldNotFound(yyj77-1, "")
  5533. }
  5534. r.ReadArrayEnd()
  5535. }
  5536. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  5537. var h codecSelfer19780
  5538. z, r := GenHelperEncoder(e)
  5539. _, _, _ = h, z, r
  5540. if x == nil {
  5541. r.EncodeNil()
  5542. } else {
  5543. if false {
  5544. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  5545. z.EncExtension(x, yyxt1)
  5546. } else {
  5547. yysep2 := !z.EncBinary()
  5548. yy2arr2 := z.EncBasicHandle().StructToArray
  5549. _, _ = yysep2, yy2arr2
  5550. const yyr2 bool = false // struct tag has 'toArray'
  5551. if yyr2 || yy2arr2 {
  5552. r.WriteArrayStart(53)
  5553. } else {
  5554. r.WriteMapStart(53)
  5555. }
  5556. if yyr2 || yy2arr2 {
  5557. r.WriteArrayElem()
  5558. if false {
  5559. } else {
  5560. if z.EncBasicHandle().StringToRaw {
  5561. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  5562. } else {
  5563. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  5564. }
  5565. }
  5566. } else {
  5567. r.WriteMapElemKey()
  5568. if z.IsJSONHandle() {
  5569. z.WriteStr("\"S\"")
  5570. } else {
  5571. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  5572. }
  5573. r.WriteMapElemValue()
  5574. if false {
  5575. } else {
  5576. if z.EncBasicHandle().StringToRaw {
  5577. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  5578. } else {
  5579. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  5580. }
  5581. }
  5582. }
  5583. if yyr2 || yy2arr2 {
  5584. r.WriteArrayElem()
  5585. if false {
  5586. } else {
  5587. r.EncodeInt(int64(x.TestStrucCommon.I64))
  5588. }
  5589. } else {
  5590. r.WriteMapElemKey()
  5591. if z.IsJSONHandle() {
  5592. z.WriteStr("\"I64\"")
  5593. } else {
  5594. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  5595. }
  5596. r.WriteMapElemValue()
  5597. if false {
  5598. } else {
  5599. r.EncodeInt(int64(x.TestStrucCommon.I64))
  5600. }
  5601. }
  5602. if yyr2 || yy2arr2 {
  5603. r.WriteArrayElem()
  5604. if false {
  5605. } else {
  5606. r.EncodeInt(int64(x.TestStrucCommon.I32))
  5607. }
  5608. } else {
  5609. r.WriteMapElemKey()
  5610. if z.IsJSONHandle() {
  5611. z.WriteStr("\"I32\"")
  5612. } else {
  5613. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  5614. }
  5615. r.WriteMapElemValue()
  5616. if false {
  5617. } else {
  5618. r.EncodeInt(int64(x.TestStrucCommon.I32))
  5619. }
  5620. }
  5621. if yyr2 || yy2arr2 {
  5622. r.WriteArrayElem()
  5623. if false {
  5624. } else {
  5625. r.EncodeInt(int64(x.TestStrucCommon.I16))
  5626. }
  5627. } else {
  5628. r.WriteMapElemKey()
  5629. if z.IsJSONHandle() {
  5630. z.WriteStr("\"I16\"")
  5631. } else {
  5632. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  5633. }
  5634. r.WriteMapElemValue()
  5635. if false {
  5636. } else {
  5637. r.EncodeInt(int64(x.TestStrucCommon.I16))
  5638. }
  5639. }
  5640. if yyr2 || yy2arr2 {
  5641. r.WriteArrayElem()
  5642. if false {
  5643. } else {
  5644. r.EncodeInt(int64(x.TestStrucCommon.I8))
  5645. }
  5646. } else {
  5647. r.WriteMapElemKey()
  5648. if z.IsJSONHandle() {
  5649. z.WriteStr("\"I8\"")
  5650. } else {
  5651. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  5652. }
  5653. r.WriteMapElemValue()
  5654. if false {
  5655. } else {
  5656. r.EncodeInt(int64(x.TestStrucCommon.I8))
  5657. }
  5658. }
  5659. if yyr2 || yy2arr2 {
  5660. r.WriteArrayElem()
  5661. if false {
  5662. } else {
  5663. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  5664. }
  5665. } else {
  5666. r.WriteMapElemKey()
  5667. if z.IsJSONHandle() {
  5668. z.WriteStr("\"I64n\"")
  5669. } else {
  5670. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  5671. }
  5672. r.WriteMapElemValue()
  5673. if false {
  5674. } else {
  5675. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  5676. }
  5677. }
  5678. if yyr2 || yy2arr2 {
  5679. r.WriteArrayElem()
  5680. if false {
  5681. } else {
  5682. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  5683. }
  5684. } else {
  5685. r.WriteMapElemKey()
  5686. if z.IsJSONHandle() {
  5687. z.WriteStr("\"I32n\"")
  5688. } else {
  5689. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  5690. }
  5691. r.WriteMapElemValue()
  5692. if false {
  5693. } else {
  5694. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  5695. }
  5696. }
  5697. if yyr2 || yy2arr2 {
  5698. r.WriteArrayElem()
  5699. if false {
  5700. } else {
  5701. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  5702. }
  5703. } else {
  5704. r.WriteMapElemKey()
  5705. if z.IsJSONHandle() {
  5706. z.WriteStr("\"I16n\"")
  5707. } else {
  5708. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  5709. }
  5710. r.WriteMapElemValue()
  5711. if false {
  5712. } else {
  5713. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  5714. }
  5715. }
  5716. if yyr2 || yy2arr2 {
  5717. r.WriteArrayElem()
  5718. if false {
  5719. } else {
  5720. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  5721. }
  5722. } else {
  5723. r.WriteMapElemKey()
  5724. if z.IsJSONHandle() {
  5725. z.WriteStr("\"I8n\"")
  5726. } else {
  5727. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  5728. }
  5729. r.WriteMapElemValue()
  5730. if false {
  5731. } else {
  5732. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  5733. }
  5734. }
  5735. if yyr2 || yy2arr2 {
  5736. r.WriteArrayElem()
  5737. if false {
  5738. } else {
  5739. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  5740. }
  5741. } else {
  5742. r.WriteMapElemKey()
  5743. if z.IsJSONHandle() {
  5744. z.WriteStr("\"Ui64\"")
  5745. } else {
  5746. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  5747. }
  5748. r.WriteMapElemValue()
  5749. if false {
  5750. } else {
  5751. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  5752. }
  5753. }
  5754. if yyr2 || yy2arr2 {
  5755. r.WriteArrayElem()
  5756. if false {
  5757. } else {
  5758. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  5759. }
  5760. } else {
  5761. r.WriteMapElemKey()
  5762. if z.IsJSONHandle() {
  5763. z.WriteStr("\"Ui32\"")
  5764. } else {
  5765. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  5766. }
  5767. r.WriteMapElemValue()
  5768. if false {
  5769. } else {
  5770. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  5771. }
  5772. }
  5773. if yyr2 || yy2arr2 {
  5774. r.WriteArrayElem()
  5775. if false {
  5776. } else {
  5777. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  5778. }
  5779. } else {
  5780. r.WriteMapElemKey()
  5781. if z.IsJSONHandle() {
  5782. z.WriteStr("\"Ui16\"")
  5783. } else {
  5784. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  5785. }
  5786. r.WriteMapElemValue()
  5787. if false {
  5788. } else {
  5789. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  5790. }
  5791. }
  5792. if yyr2 || yy2arr2 {
  5793. r.WriteArrayElem()
  5794. if false {
  5795. } else {
  5796. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  5797. }
  5798. } else {
  5799. r.WriteMapElemKey()
  5800. if z.IsJSONHandle() {
  5801. z.WriteStr("\"Ui8\"")
  5802. } else {
  5803. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  5804. }
  5805. r.WriteMapElemValue()
  5806. if false {
  5807. } else {
  5808. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  5809. }
  5810. }
  5811. if yyr2 || yy2arr2 {
  5812. r.WriteArrayElem()
  5813. if false {
  5814. } else {
  5815. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  5816. }
  5817. } else {
  5818. r.WriteMapElemKey()
  5819. if z.IsJSONHandle() {
  5820. z.WriteStr("\"F64\"")
  5821. } else {
  5822. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  5823. }
  5824. r.WriteMapElemValue()
  5825. if false {
  5826. } else {
  5827. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  5828. }
  5829. }
  5830. if yyr2 || yy2arr2 {
  5831. r.WriteArrayElem()
  5832. if false {
  5833. } else {
  5834. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  5835. }
  5836. } else {
  5837. r.WriteMapElemKey()
  5838. if z.IsJSONHandle() {
  5839. z.WriteStr("\"F32\"")
  5840. } else {
  5841. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  5842. }
  5843. r.WriteMapElemValue()
  5844. if false {
  5845. } else {
  5846. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  5847. }
  5848. }
  5849. if yyr2 || yy2arr2 {
  5850. r.WriteArrayElem()
  5851. if false {
  5852. } else {
  5853. r.EncodeBool(bool(x.TestStrucCommon.B))
  5854. }
  5855. } else {
  5856. r.WriteMapElemKey()
  5857. if z.IsJSONHandle() {
  5858. z.WriteStr("\"B\"")
  5859. } else {
  5860. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  5861. }
  5862. r.WriteMapElemValue()
  5863. if false {
  5864. } else {
  5865. r.EncodeBool(bool(x.TestStrucCommon.B))
  5866. }
  5867. }
  5868. if yyr2 || yy2arr2 {
  5869. r.WriteArrayElem()
  5870. if false {
  5871. } else {
  5872. r.EncodeUint(uint64(x.TestStrucCommon.By))
  5873. }
  5874. } else {
  5875. r.WriteMapElemKey()
  5876. if z.IsJSONHandle() {
  5877. z.WriteStr("\"By\"")
  5878. } else {
  5879. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  5880. }
  5881. r.WriteMapElemValue()
  5882. if false {
  5883. } else {
  5884. r.EncodeUint(uint64(x.TestStrucCommon.By))
  5885. }
  5886. }
  5887. if yyr2 || yy2arr2 {
  5888. r.WriteArrayElem()
  5889. if x.TestStrucCommon.Sslice == nil {
  5890. r.EncodeNil()
  5891. } else {
  5892. if false {
  5893. } else {
  5894. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  5895. }
  5896. }
  5897. } else {
  5898. r.WriteMapElemKey()
  5899. if z.IsJSONHandle() {
  5900. z.WriteStr("\"Sslice\"")
  5901. } else {
  5902. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  5903. }
  5904. r.WriteMapElemValue()
  5905. if x.TestStrucCommon.Sslice == nil {
  5906. r.EncodeNil()
  5907. } else {
  5908. if false {
  5909. } else {
  5910. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  5911. }
  5912. }
  5913. }
  5914. if yyr2 || yy2arr2 {
  5915. r.WriteArrayElem()
  5916. if x.TestStrucCommon.I64slice == nil {
  5917. r.EncodeNil()
  5918. } else {
  5919. if false {
  5920. } else {
  5921. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  5922. }
  5923. }
  5924. } else {
  5925. r.WriteMapElemKey()
  5926. if z.IsJSONHandle() {
  5927. z.WriteStr("\"I64slice\"")
  5928. } else {
  5929. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  5930. }
  5931. r.WriteMapElemValue()
  5932. if x.TestStrucCommon.I64slice == nil {
  5933. r.EncodeNil()
  5934. } else {
  5935. if false {
  5936. } else {
  5937. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  5938. }
  5939. }
  5940. }
  5941. if yyr2 || yy2arr2 {
  5942. r.WriteArrayElem()
  5943. if x.TestStrucCommon.I16slice == nil {
  5944. r.EncodeNil()
  5945. } else {
  5946. if false {
  5947. } else {
  5948. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  5949. }
  5950. }
  5951. } else {
  5952. r.WriteMapElemKey()
  5953. if z.IsJSONHandle() {
  5954. z.WriteStr("\"I16slice\"")
  5955. } else {
  5956. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  5957. }
  5958. r.WriteMapElemValue()
  5959. if x.TestStrucCommon.I16slice == nil {
  5960. r.EncodeNil()
  5961. } else {
  5962. if false {
  5963. } else {
  5964. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  5965. }
  5966. }
  5967. }
  5968. if yyr2 || yy2arr2 {
  5969. r.WriteArrayElem()
  5970. if x.TestStrucCommon.Ui64slice == nil {
  5971. r.EncodeNil()
  5972. } else {
  5973. if false {
  5974. } else {
  5975. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  5976. }
  5977. }
  5978. } else {
  5979. r.WriteMapElemKey()
  5980. if z.IsJSONHandle() {
  5981. z.WriteStr("\"Ui64slice\"")
  5982. } else {
  5983. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  5984. }
  5985. r.WriteMapElemValue()
  5986. if x.TestStrucCommon.Ui64slice == nil {
  5987. r.EncodeNil()
  5988. } else {
  5989. if false {
  5990. } else {
  5991. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  5992. }
  5993. }
  5994. }
  5995. if yyr2 || yy2arr2 {
  5996. r.WriteArrayElem()
  5997. if x.TestStrucCommon.Ui8slice == nil {
  5998. r.EncodeNil()
  5999. } else {
  6000. if false {
  6001. } else {
  6002. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  6003. }
  6004. }
  6005. } else {
  6006. r.WriteMapElemKey()
  6007. if z.IsJSONHandle() {
  6008. z.WriteStr("\"Ui8slice\"")
  6009. } else {
  6010. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  6011. }
  6012. r.WriteMapElemValue()
  6013. if x.TestStrucCommon.Ui8slice == nil {
  6014. r.EncodeNil()
  6015. } else {
  6016. if false {
  6017. } else {
  6018. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  6019. }
  6020. }
  6021. }
  6022. if yyr2 || yy2arr2 {
  6023. r.WriteArrayElem()
  6024. if x.TestStrucCommon.Bslice == nil {
  6025. r.EncodeNil()
  6026. } else {
  6027. if false {
  6028. } else {
  6029. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  6030. }
  6031. }
  6032. } else {
  6033. r.WriteMapElemKey()
  6034. if z.IsJSONHandle() {
  6035. z.WriteStr("\"Bslice\"")
  6036. } else {
  6037. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  6038. }
  6039. r.WriteMapElemValue()
  6040. if x.TestStrucCommon.Bslice == nil {
  6041. r.EncodeNil()
  6042. } else {
  6043. if false {
  6044. } else {
  6045. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  6046. }
  6047. }
  6048. }
  6049. if yyr2 || yy2arr2 {
  6050. r.WriteArrayElem()
  6051. if x.TestStrucCommon.Byslice == nil {
  6052. r.EncodeNil()
  6053. } else {
  6054. if false {
  6055. } else {
  6056. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  6057. }
  6058. }
  6059. } else {
  6060. r.WriteMapElemKey()
  6061. if z.IsJSONHandle() {
  6062. z.WriteStr("\"Byslice\"")
  6063. } else {
  6064. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  6065. }
  6066. r.WriteMapElemValue()
  6067. if x.TestStrucCommon.Byslice == nil {
  6068. r.EncodeNil()
  6069. } else {
  6070. if false {
  6071. } else {
  6072. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  6073. }
  6074. }
  6075. }
  6076. if yyr2 || yy2arr2 {
  6077. r.WriteArrayElem()
  6078. if x.TestStrucCommon.Iptrslice == nil {
  6079. r.EncodeNil()
  6080. } else {
  6081. if false {
  6082. } else {
  6083. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  6084. }
  6085. }
  6086. } else {
  6087. r.WriteMapElemKey()
  6088. if z.IsJSONHandle() {
  6089. z.WriteStr("\"Iptrslice\"")
  6090. } else {
  6091. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  6092. }
  6093. r.WriteMapElemValue()
  6094. if x.TestStrucCommon.Iptrslice == nil {
  6095. r.EncodeNil()
  6096. } else {
  6097. if false {
  6098. } else {
  6099. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  6100. }
  6101. }
  6102. }
  6103. if yyr2 || yy2arr2 {
  6104. r.WriteArrayElem()
  6105. if x.TestStrucCommon.WrapSliceInt64 == nil {
  6106. r.EncodeNil()
  6107. } else {
  6108. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  6109. }
  6110. } else {
  6111. r.WriteMapElemKey()
  6112. if z.IsJSONHandle() {
  6113. z.WriteStr("\"WrapSliceInt64\"")
  6114. } else {
  6115. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  6116. }
  6117. r.WriteMapElemValue()
  6118. if x.TestStrucCommon.WrapSliceInt64 == nil {
  6119. r.EncodeNil()
  6120. } else {
  6121. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  6122. }
  6123. }
  6124. if yyr2 || yy2arr2 {
  6125. r.WriteArrayElem()
  6126. if x.TestStrucCommon.WrapSliceString == nil {
  6127. r.EncodeNil()
  6128. } else {
  6129. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  6130. }
  6131. } else {
  6132. r.WriteMapElemKey()
  6133. if z.IsJSONHandle() {
  6134. z.WriteStr("\"WrapSliceString\"")
  6135. } else {
  6136. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  6137. }
  6138. r.WriteMapElemValue()
  6139. if x.TestStrucCommon.WrapSliceString == nil {
  6140. r.EncodeNil()
  6141. } else {
  6142. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  6143. }
  6144. }
  6145. if yyr2 || yy2arr2 {
  6146. r.WriteArrayElem()
  6147. if x.TestStrucCommon.Msi64 == nil {
  6148. r.EncodeNil()
  6149. } else {
  6150. if false {
  6151. } else {
  6152. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  6153. }
  6154. }
  6155. } else {
  6156. r.WriteMapElemKey()
  6157. if z.IsJSONHandle() {
  6158. z.WriteStr("\"Msi64\"")
  6159. } else {
  6160. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  6161. }
  6162. r.WriteMapElemValue()
  6163. if x.TestStrucCommon.Msi64 == nil {
  6164. r.EncodeNil()
  6165. } else {
  6166. if false {
  6167. } else {
  6168. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  6169. }
  6170. }
  6171. }
  6172. if yyr2 || yy2arr2 {
  6173. r.WriteArrayElem()
  6174. yy88 := &x.TestStrucCommon.Simplef
  6175. yy88.CodecEncodeSelf(e)
  6176. } else {
  6177. r.WriteMapElemKey()
  6178. if z.IsJSONHandle() {
  6179. z.WriteStr("\"Simplef\"")
  6180. } else {
  6181. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  6182. }
  6183. r.WriteMapElemValue()
  6184. yy90 := &x.TestStrucCommon.Simplef
  6185. yy90.CodecEncodeSelf(e)
  6186. }
  6187. if yyr2 || yy2arr2 {
  6188. r.WriteArrayElem()
  6189. if x.TestStrucCommon.SstrUi64T == nil {
  6190. r.EncodeNil()
  6191. } else {
  6192. if false {
  6193. } else {
  6194. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  6195. }
  6196. }
  6197. } else {
  6198. r.WriteMapElemKey()
  6199. if z.IsJSONHandle() {
  6200. z.WriteStr("\"SstrUi64T\"")
  6201. } else {
  6202. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  6203. }
  6204. r.WriteMapElemValue()
  6205. if x.TestStrucCommon.SstrUi64T == nil {
  6206. r.EncodeNil()
  6207. } else {
  6208. if false {
  6209. } else {
  6210. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  6211. }
  6212. }
  6213. }
  6214. if yyr2 || yy2arr2 {
  6215. r.WriteArrayElem()
  6216. if false {
  6217. } else {
  6218. if z.EncBasicHandle().StringToRaw {
  6219. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  6220. } else {
  6221. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  6222. }
  6223. }
  6224. } else {
  6225. r.WriteMapElemKey()
  6226. if z.IsJSONHandle() {
  6227. z.WriteStr("\"AS\"")
  6228. } else {
  6229. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  6230. }
  6231. r.WriteMapElemValue()
  6232. if false {
  6233. } else {
  6234. if z.EncBasicHandle().StringToRaw {
  6235. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  6236. } else {
  6237. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  6238. }
  6239. }
  6240. }
  6241. if yyr2 || yy2arr2 {
  6242. r.WriteArrayElem()
  6243. if false {
  6244. } else {
  6245. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  6246. }
  6247. } else {
  6248. r.WriteMapElemKey()
  6249. if z.IsJSONHandle() {
  6250. z.WriteStr("\"AI64\"")
  6251. } else {
  6252. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  6253. }
  6254. r.WriteMapElemValue()
  6255. if false {
  6256. } else {
  6257. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  6258. }
  6259. }
  6260. if yyr2 || yy2arr2 {
  6261. r.WriteArrayElem()
  6262. if false {
  6263. } else {
  6264. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  6265. }
  6266. } else {
  6267. r.WriteMapElemKey()
  6268. if z.IsJSONHandle() {
  6269. z.WriteStr("\"AI16\"")
  6270. } else {
  6271. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  6272. }
  6273. r.WriteMapElemValue()
  6274. if false {
  6275. } else {
  6276. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  6277. }
  6278. }
  6279. if yyr2 || yy2arr2 {
  6280. r.WriteArrayElem()
  6281. if false {
  6282. } else {
  6283. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  6284. }
  6285. } else {
  6286. r.WriteMapElemKey()
  6287. if z.IsJSONHandle() {
  6288. z.WriteStr("\"AUi64\"")
  6289. } else {
  6290. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  6291. }
  6292. r.WriteMapElemValue()
  6293. if false {
  6294. } else {
  6295. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  6296. }
  6297. }
  6298. if yyr2 || yy2arr2 {
  6299. r.WriteArrayElem()
  6300. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  6301. r.EncodeNil()
  6302. } else {
  6303. if false {
  6304. } else {
  6305. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  6306. }
  6307. }
  6308. } else {
  6309. r.WriteMapElemKey()
  6310. if z.IsJSONHandle() {
  6311. z.WriteStr("\"ASslice\"")
  6312. } else {
  6313. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  6314. }
  6315. r.WriteMapElemValue()
  6316. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  6317. r.EncodeNil()
  6318. } else {
  6319. if false {
  6320. } else {
  6321. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  6322. }
  6323. }
  6324. }
  6325. if yyr2 || yy2arr2 {
  6326. r.WriteArrayElem()
  6327. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  6328. r.EncodeNil()
  6329. } else {
  6330. if false {
  6331. } else {
  6332. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  6333. }
  6334. }
  6335. } else {
  6336. r.WriteMapElemKey()
  6337. if z.IsJSONHandle() {
  6338. z.WriteStr("\"AI64slice\"")
  6339. } else {
  6340. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  6341. }
  6342. r.WriteMapElemValue()
  6343. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  6344. r.EncodeNil()
  6345. } else {
  6346. if false {
  6347. } else {
  6348. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  6349. }
  6350. }
  6351. }
  6352. if yyr2 || yy2arr2 {
  6353. r.WriteArrayElem()
  6354. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  6355. r.EncodeNil()
  6356. } else {
  6357. if false {
  6358. } else {
  6359. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  6360. }
  6361. }
  6362. } else {
  6363. r.WriteMapElemKey()
  6364. if z.IsJSONHandle() {
  6365. z.WriteStr("\"AUi64slice\"")
  6366. } else {
  6367. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  6368. }
  6369. r.WriteMapElemValue()
  6370. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  6371. r.EncodeNil()
  6372. } else {
  6373. if false {
  6374. } else {
  6375. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  6376. }
  6377. }
  6378. }
  6379. if yyr2 || yy2arr2 {
  6380. r.WriteArrayElem()
  6381. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  6382. r.EncodeNil()
  6383. } else {
  6384. if false {
  6385. } else {
  6386. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  6387. }
  6388. }
  6389. } else {
  6390. r.WriteMapElemKey()
  6391. if z.IsJSONHandle() {
  6392. z.WriteStr("\"AF64slice\"")
  6393. } else {
  6394. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  6395. }
  6396. r.WriteMapElemValue()
  6397. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  6398. r.EncodeNil()
  6399. } else {
  6400. if false {
  6401. } else {
  6402. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  6403. }
  6404. }
  6405. }
  6406. if yyr2 || yy2arr2 {
  6407. r.WriteArrayElem()
  6408. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  6409. r.EncodeNil()
  6410. } else {
  6411. if false {
  6412. } else {
  6413. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  6414. }
  6415. }
  6416. } else {
  6417. r.WriteMapElemKey()
  6418. if z.IsJSONHandle() {
  6419. z.WriteStr("\"AF32slice\"")
  6420. } else {
  6421. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  6422. }
  6423. r.WriteMapElemValue()
  6424. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  6425. r.EncodeNil()
  6426. } else {
  6427. if false {
  6428. } else {
  6429. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  6430. }
  6431. }
  6432. }
  6433. if yyr2 || yy2arr2 {
  6434. r.WriteArrayElem()
  6435. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  6436. r.EncodeNil()
  6437. } else {
  6438. if false {
  6439. } else {
  6440. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  6441. }
  6442. }
  6443. } else {
  6444. r.WriteMapElemKey()
  6445. if z.IsJSONHandle() {
  6446. z.WriteStr("\"AMSU16\"")
  6447. } else {
  6448. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  6449. }
  6450. r.WriteMapElemValue()
  6451. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  6452. r.EncodeNil()
  6453. } else {
  6454. if false {
  6455. } else {
  6456. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  6457. }
  6458. }
  6459. }
  6460. if yyr2 || yy2arr2 {
  6461. r.WriteArrayElem()
  6462. yy126 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  6463. if false {
  6464. } else {
  6465. h.encArray0int64((*[0]int64)(yy126), e)
  6466. }
  6467. } else {
  6468. r.WriteMapElemKey()
  6469. if z.IsJSONHandle() {
  6470. z.WriteStr("\"AI64arr0\"")
  6471. } else {
  6472. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  6473. }
  6474. r.WriteMapElemValue()
  6475. yy128 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  6476. if false {
  6477. } else {
  6478. h.encArray0int64((*[0]int64)(yy128), e)
  6479. }
  6480. }
  6481. if yyr2 || yy2arr2 {
  6482. r.WriteArrayElem()
  6483. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  6484. r.EncodeNil()
  6485. } else {
  6486. if false {
  6487. } else {
  6488. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  6489. }
  6490. }
  6491. } else {
  6492. r.WriteMapElemKey()
  6493. if z.IsJSONHandle() {
  6494. z.WriteStr("\"A164slice0\"")
  6495. } else {
  6496. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  6497. }
  6498. r.WriteMapElemValue()
  6499. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  6500. r.EncodeNil()
  6501. } else {
  6502. if false {
  6503. } else {
  6504. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  6505. }
  6506. }
  6507. }
  6508. if yyr2 || yy2arr2 {
  6509. r.WriteArrayElem()
  6510. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  6511. r.EncodeNil()
  6512. } else {
  6513. if false {
  6514. } else {
  6515. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  6516. }
  6517. }
  6518. } else {
  6519. r.WriteMapElemKey()
  6520. if z.IsJSONHandle() {
  6521. z.WriteStr("\"AUi64sliceN\"")
  6522. } else {
  6523. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  6524. }
  6525. r.WriteMapElemValue()
  6526. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  6527. r.EncodeNil()
  6528. } else {
  6529. if false {
  6530. } else {
  6531. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  6532. }
  6533. }
  6534. }
  6535. if yyr2 || yy2arr2 {
  6536. r.WriteArrayElem()
  6537. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  6538. r.EncodeNil()
  6539. } else {
  6540. if false {
  6541. } else {
  6542. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  6543. }
  6544. }
  6545. } else {
  6546. r.WriteMapElemKey()
  6547. if z.IsJSONHandle() {
  6548. z.WriteStr("\"AMSU16N\"")
  6549. } else {
  6550. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  6551. }
  6552. r.WriteMapElemValue()
  6553. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  6554. r.EncodeNil()
  6555. } else {
  6556. if false {
  6557. } else {
  6558. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  6559. }
  6560. }
  6561. }
  6562. if yyr2 || yy2arr2 {
  6563. r.WriteArrayElem()
  6564. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  6565. r.EncodeNil()
  6566. } else {
  6567. if false {
  6568. } else {
  6569. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  6570. }
  6571. }
  6572. } else {
  6573. r.WriteMapElemKey()
  6574. if z.IsJSONHandle() {
  6575. z.WriteStr("\"AMSU16E\"")
  6576. } else {
  6577. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  6578. }
  6579. r.WriteMapElemValue()
  6580. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  6581. r.EncodeNil()
  6582. } else {
  6583. if false {
  6584. } else {
  6585. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  6586. }
  6587. }
  6588. }
  6589. if yyr2 || yy2arr2 {
  6590. r.WriteArrayElem()
  6591. yy143 := &x.TestStrucCommon.NotAnon
  6592. yy143.CodecEncodeSelf(e)
  6593. } else {
  6594. r.WriteMapElemKey()
  6595. if z.IsJSONHandle() {
  6596. z.WriteStr("\"NotAnon\"")
  6597. } else {
  6598. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  6599. }
  6600. r.WriteMapElemValue()
  6601. yy145 := &x.TestStrucCommon.NotAnon
  6602. yy145.CodecEncodeSelf(e)
  6603. }
  6604. if yyr2 || yy2arr2 {
  6605. r.WriteArrayElem()
  6606. if x.TestStrucCommon.Nmap == nil {
  6607. r.EncodeNil()
  6608. } else {
  6609. if false {
  6610. } else {
  6611. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  6612. }
  6613. }
  6614. } else {
  6615. r.WriteMapElemKey()
  6616. if z.IsJSONHandle() {
  6617. z.WriteStr("\"Nmap\"")
  6618. } else {
  6619. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  6620. }
  6621. r.WriteMapElemValue()
  6622. if x.TestStrucCommon.Nmap == nil {
  6623. r.EncodeNil()
  6624. } else {
  6625. if false {
  6626. } else {
  6627. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  6628. }
  6629. }
  6630. }
  6631. if yyr2 || yy2arr2 {
  6632. r.WriteArrayElem()
  6633. if x.TestStrucCommon.Nslice == nil {
  6634. r.EncodeNil()
  6635. } else {
  6636. if false {
  6637. } else {
  6638. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  6639. }
  6640. }
  6641. } else {
  6642. r.WriteMapElemKey()
  6643. if z.IsJSONHandle() {
  6644. z.WriteStr("\"Nslice\"")
  6645. } else {
  6646. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  6647. }
  6648. r.WriteMapElemValue()
  6649. if x.TestStrucCommon.Nslice == nil {
  6650. r.EncodeNil()
  6651. } else {
  6652. if false {
  6653. } else {
  6654. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  6655. }
  6656. }
  6657. }
  6658. var yyn153 bool
  6659. if x.TestStrucCommon.Nint64 == nil {
  6660. yyn153 = true
  6661. goto LABEL153
  6662. }
  6663. LABEL153:
  6664. if yyr2 || yy2arr2 {
  6665. if yyn153 {
  6666. r.WriteArrayElem()
  6667. r.EncodeNil()
  6668. } else {
  6669. r.WriteArrayElem()
  6670. if x.TestStrucCommon.Nint64 == nil {
  6671. r.EncodeNil()
  6672. } else {
  6673. yy154 := *x.TestStrucCommon.Nint64
  6674. if false {
  6675. } else {
  6676. r.EncodeInt(int64(yy154))
  6677. }
  6678. }
  6679. }
  6680. } else {
  6681. r.WriteMapElemKey()
  6682. if z.IsJSONHandle() {
  6683. z.WriteStr("\"Nint64\"")
  6684. } else {
  6685. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  6686. }
  6687. r.WriteMapElemValue()
  6688. if yyn153 {
  6689. r.EncodeNil()
  6690. } else {
  6691. if x.TestStrucCommon.Nint64 == nil {
  6692. r.EncodeNil()
  6693. } else {
  6694. yy156 := *x.TestStrucCommon.Nint64
  6695. if false {
  6696. } else {
  6697. r.EncodeInt(int64(yy156))
  6698. }
  6699. }
  6700. }
  6701. }
  6702. if yyr2 || yy2arr2 {
  6703. r.WriteArrayElem()
  6704. if x.Mtsptr == nil {
  6705. r.EncodeNil()
  6706. } else {
  6707. if false {
  6708. } else {
  6709. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  6710. }
  6711. }
  6712. } else {
  6713. r.WriteMapElemKey()
  6714. if z.IsJSONHandle() {
  6715. z.WriteStr("\"Mtsptr\"")
  6716. } else {
  6717. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  6718. }
  6719. r.WriteMapElemValue()
  6720. if x.Mtsptr == nil {
  6721. r.EncodeNil()
  6722. } else {
  6723. if false {
  6724. } else {
  6725. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  6726. }
  6727. }
  6728. }
  6729. if yyr2 || yy2arr2 {
  6730. r.WriteArrayElem()
  6731. if x.Mts == nil {
  6732. r.EncodeNil()
  6733. } else {
  6734. if false {
  6735. } else {
  6736. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  6737. }
  6738. }
  6739. } else {
  6740. r.WriteMapElemKey()
  6741. if z.IsJSONHandle() {
  6742. z.WriteStr("\"Mts\"")
  6743. } else {
  6744. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  6745. }
  6746. r.WriteMapElemValue()
  6747. if x.Mts == nil {
  6748. r.EncodeNil()
  6749. } else {
  6750. if false {
  6751. } else {
  6752. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  6753. }
  6754. }
  6755. }
  6756. if yyr2 || yy2arr2 {
  6757. r.WriteArrayElem()
  6758. if x.Its == nil {
  6759. r.EncodeNil()
  6760. } else {
  6761. if false {
  6762. } else {
  6763. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  6764. }
  6765. }
  6766. } else {
  6767. r.WriteMapElemKey()
  6768. if z.IsJSONHandle() {
  6769. z.WriteStr("\"Its\"")
  6770. } else {
  6771. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  6772. }
  6773. r.WriteMapElemValue()
  6774. if x.Its == nil {
  6775. r.EncodeNil()
  6776. } else {
  6777. if false {
  6778. } else {
  6779. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  6780. }
  6781. }
  6782. }
  6783. var yyn167 bool
  6784. if x.Nteststruc == nil {
  6785. yyn167 = true
  6786. goto LABEL167
  6787. }
  6788. LABEL167:
  6789. if yyr2 || yy2arr2 {
  6790. if yyn167 {
  6791. r.WriteArrayElem()
  6792. r.EncodeNil()
  6793. } else {
  6794. r.WriteArrayElem()
  6795. if x.Nteststruc == nil {
  6796. r.EncodeNil()
  6797. } else {
  6798. x.Nteststruc.CodecEncodeSelf(e)
  6799. }
  6800. }
  6801. } else {
  6802. r.WriteMapElemKey()
  6803. if z.IsJSONHandle() {
  6804. z.WriteStr("\"Nteststruc\"")
  6805. } else {
  6806. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  6807. }
  6808. r.WriteMapElemValue()
  6809. if yyn167 {
  6810. r.EncodeNil()
  6811. } else {
  6812. if x.Nteststruc == nil {
  6813. r.EncodeNil()
  6814. } else {
  6815. x.Nteststruc.CodecEncodeSelf(e)
  6816. }
  6817. }
  6818. }
  6819. if yyr2 || yy2arr2 {
  6820. r.WriteArrayEnd()
  6821. } else {
  6822. r.WriteMapEnd()
  6823. }
  6824. }
  6825. }
  6826. }
  6827. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  6828. var h codecSelfer19780
  6829. z, r := GenHelperDecoder(d)
  6830. _, _, _ = h, z, r
  6831. if false {
  6832. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  6833. z.DecExtension(x, yyxt1)
  6834. } else {
  6835. yyct2 := r.ContainerType()
  6836. if yyct2 == codecSelferValueTypeMap19780 {
  6837. yyl2 := r.ReadMapStart()
  6838. if yyl2 == 0 {
  6839. r.ReadMapEnd()
  6840. } else {
  6841. x.codecDecodeSelfFromMap(yyl2, d)
  6842. }
  6843. } else if yyct2 == codecSelferValueTypeArray19780 {
  6844. yyl2 := r.ReadArrayStart()
  6845. if yyl2 == 0 {
  6846. r.ReadArrayEnd()
  6847. } else {
  6848. x.codecDecodeSelfFromArray(yyl2, d)
  6849. }
  6850. } else {
  6851. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6852. }
  6853. }
  6854. }
  6855. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  6856. var h codecSelfer19780
  6857. z, r := GenHelperDecoder(d)
  6858. _, _, _ = h, z, r
  6859. var yyhl3 bool = l >= 0
  6860. for yyj3 := 0; ; yyj3++ {
  6861. if yyhl3 {
  6862. if yyj3 >= l {
  6863. break
  6864. }
  6865. } else {
  6866. if r.CheckBreak() {
  6867. break
  6868. }
  6869. }
  6870. r.ReadMapElemKey()
  6871. yys3 := z.StringView(r.DecodeStringAsBytes())
  6872. r.ReadMapElemValue()
  6873. switch yys3 {
  6874. case "S":
  6875. if r.TryDecodeAsNil() {
  6876. x.TestStrucCommon.S = ""
  6877. } else {
  6878. x.TestStrucCommon.S = (string)(r.DecodeString())
  6879. }
  6880. case "I64":
  6881. if r.TryDecodeAsNil() {
  6882. x.TestStrucCommon.I64 = 0
  6883. } else {
  6884. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  6885. }
  6886. case "I32":
  6887. if r.TryDecodeAsNil() {
  6888. x.TestStrucCommon.I32 = 0
  6889. } else {
  6890. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6891. }
  6892. case "I16":
  6893. if r.TryDecodeAsNil() {
  6894. x.TestStrucCommon.I16 = 0
  6895. } else {
  6896. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6897. }
  6898. case "I8":
  6899. if r.TryDecodeAsNil() {
  6900. x.TestStrucCommon.I8 = 0
  6901. } else {
  6902. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6903. }
  6904. case "I64n":
  6905. if r.TryDecodeAsNil() {
  6906. x.TestStrucCommon.I64n = 0
  6907. } else {
  6908. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  6909. }
  6910. case "I32n":
  6911. if r.TryDecodeAsNil() {
  6912. x.TestStrucCommon.I32n = 0
  6913. } else {
  6914. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6915. }
  6916. case "I16n":
  6917. if r.TryDecodeAsNil() {
  6918. x.TestStrucCommon.I16n = 0
  6919. } else {
  6920. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6921. }
  6922. case "I8n":
  6923. if r.TryDecodeAsNil() {
  6924. x.TestStrucCommon.I8n = 0
  6925. } else {
  6926. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6927. }
  6928. case "Ui64":
  6929. if r.TryDecodeAsNil() {
  6930. x.TestStrucCommon.Ui64 = 0
  6931. } else {
  6932. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  6933. }
  6934. case "Ui32":
  6935. if r.TryDecodeAsNil() {
  6936. x.TestStrucCommon.Ui32 = 0
  6937. } else {
  6938. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6939. }
  6940. case "Ui16":
  6941. if r.TryDecodeAsNil() {
  6942. x.TestStrucCommon.Ui16 = 0
  6943. } else {
  6944. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6945. }
  6946. case "Ui8":
  6947. if r.TryDecodeAsNil() {
  6948. x.TestStrucCommon.Ui8 = 0
  6949. } else {
  6950. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6951. }
  6952. case "F64":
  6953. if r.TryDecodeAsNil() {
  6954. x.TestStrucCommon.F64 = 0
  6955. } else {
  6956. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  6957. }
  6958. case "F32":
  6959. if r.TryDecodeAsNil() {
  6960. x.TestStrucCommon.F32 = 0
  6961. } else {
  6962. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  6963. }
  6964. case "B":
  6965. if r.TryDecodeAsNil() {
  6966. x.TestStrucCommon.B = false
  6967. } else {
  6968. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  6969. }
  6970. case "By":
  6971. if r.TryDecodeAsNil() {
  6972. x.TestStrucCommon.By = 0
  6973. } else {
  6974. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6975. }
  6976. case "Sslice":
  6977. if r.TryDecodeAsNil() {
  6978. x.TestStrucCommon.Sslice = nil
  6979. } else {
  6980. if false {
  6981. } else {
  6982. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  6983. }
  6984. }
  6985. case "I64slice":
  6986. if r.TryDecodeAsNil() {
  6987. x.TestStrucCommon.I64slice = nil
  6988. } else {
  6989. if false {
  6990. } else {
  6991. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  6992. }
  6993. }
  6994. case "I16slice":
  6995. if r.TryDecodeAsNil() {
  6996. x.TestStrucCommon.I16slice = nil
  6997. } else {
  6998. if false {
  6999. } else {
  7000. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  7001. }
  7002. }
  7003. case "Ui64slice":
  7004. if r.TryDecodeAsNil() {
  7005. x.TestStrucCommon.Ui64slice = nil
  7006. } else {
  7007. if false {
  7008. } else {
  7009. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  7010. }
  7011. }
  7012. case "Ui8slice":
  7013. if r.TryDecodeAsNil() {
  7014. x.TestStrucCommon.Ui8slice = nil
  7015. } else {
  7016. if false {
  7017. } else {
  7018. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  7019. }
  7020. }
  7021. case "Bslice":
  7022. if r.TryDecodeAsNil() {
  7023. x.TestStrucCommon.Bslice = nil
  7024. } else {
  7025. if false {
  7026. } else {
  7027. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  7028. }
  7029. }
  7030. case "Byslice":
  7031. if r.TryDecodeAsNil() {
  7032. x.TestStrucCommon.Byslice = nil
  7033. } else {
  7034. if false {
  7035. } else {
  7036. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  7037. }
  7038. }
  7039. case "Iptrslice":
  7040. if r.TryDecodeAsNil() {
  7041. x.TestStrucCommon.Iptrslice = nil
  7042. } else {
  7043. if false {
  7044. } else {
  7045. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  7046. }
  7047. }
  7048. case "WrapSliceInt64":
  7049. if r.TryDecodeAsNil() {
  7050. x.TestStrucCommon.WrapSliceInt64 = nil
  7051. } else {
  7052. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  7053. }
  7054. case "WrapSliceString":
  7055. if r.TryDecodeAsNil() {
  7056. x.TestStrucCommon.WrapSliceString = nil
  7057. } else {
  7058. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  7059. }
  7060. case "Msi64":
  7061. if r.TryDecodeAsNil() {
  7062. x.TestStrucCommon.Msi64 = nil
  7063. } else {
  7064. if false {
  7065. } else {
  7066. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  7067. }
  7068. }
  7069. case "Simplef":
  7070. if r.TryDecodeAsNil() {
  7071. x.TestStrucCommon.Simplef = testSimpleFields{}
  7072. } else {
  7073. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  7074. }
  7075. case "SstrUi64T":
  7076. if r.TryDecodeAsNil() {
  7077. x.TestStrucCommon.SstrUi64T = nil
  7078. } else {
  7079. if false {
  7080. } else {
  7081. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  7082. }
  7083. }
  7084. case "AS":
  7085. if r.TryDecodeAsNil() {
  7086. x.TestStrucCommon.AnonInTestStruc.AS = ""
  7087. } else {
  7088. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  7089. }
  7090. case "AI64":
  7091. if r.TryDecodeAsNil() {
  7092. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  7093. } else {
  7094. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  7095. }
  7096. case "AI16":
  7097. if r.TryDecodeAsNil() {
  7098. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  7099. } else {
  7100. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  7101. }
  7102. case "AUi64":
  7103. if r.TryDecodeAsNil() {
  7104. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  7105. } else {
  7106. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  7107. }
  7108. case "ASslice":
  7109. if r.TryDecodeAsNil() {
  7110. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  7111. } else {
  7112. if false {
  7113. } else {
  7114. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  7115. }
  7116. }
  7117. case "AI64slice":
  7118. if r.TryDecodeAsNil() {
  7119. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  7120. } else {
  7121. if false {
  7122. } else {
  7123. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  7124. }
  7125. }
  7126. case "AUi64slice":
  7127. if r.TryDecodeAsNil() {
  7128. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  7129. } else {
  7130. if false {
  7131. } else {
  7132. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  7133. }
  7134. }
  7135. case "AF64slice":
  7136. if r.TryDecodeAsNil() {
  7137. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  7138. } else {
  7139. if false {
  7140. } else {
  7141. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  7142. }
  7143. }
  7144. case "AF32slice":
  7145. if r.TryDecodeAsNil() {
  7146. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  7147. } else {
  7148. if false {
  7149. } else {
  7150. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  7151. }
  7152. }
  7153. case "AMSU16":
  7154. if r.TryDecodeAsNil() {
  7155. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  7156. } else {
  7157. if false {
  7158. } else {
  7159. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  7160. }
  7161. }
  7162. case "AI64arr0":
  7163. if r.TryDecodeAsNil() {
  7164. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  7165. } else {
  7166. if false {
  7167. } else {
  7168. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  7169. }
  7170. }
  7171. case "A164slice0":
  7172. if r.TryDecodeAsNil() {
  7173. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  7174. } else {
  7175. if false {
  7176. } else {
  7177. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  7178. }
  7179. }
  7180. case "AUi64sliceN":
  7181. if r.TryDecodeAsNil() {
  7182. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  7183. } else {
  7184. if false {
  7185. } else {
  7186. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  7187. }
  7188. }
  7189. case "AMSU16N":
  7190. if r.TryDecodeAsNil() {
  7191. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  7192. } else {
  7193. if false {
  7194. } else {
  7195. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  7196. }
  7197. }
  7198. case "AMSU16E":
  7199. if r.TryDecodeAsNil() {
  7200. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  7201. } else {
  7202. if false {
  7203. } else {
  7204. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  7205. }
  7206. }
  7207. case "NotAnon":
  7208. if r.TryDecodeAsNil() {
  7209. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  7210. } else {
  7211. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  7212. }
  7213. case "Nmap":
  7214. if r.TryDecodeAsNil() {
  7215. x.TestStrucCommon.Nmap = nil
  7216. } else {
  7217. if false {
  7218. } else {
  7219. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  7220. }
  7221. }
  7222. case "Nslice":
  7223. if r.TryDecodeAsNil() {
  7224. x.TestStrucCommon.Nslice = nil
  7225. } else {
  7226. if false {
  7227. } else {
  7228. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  7229. }
  7230. }
  7231. case "Nint64":
  7232. if r.TryDecodeAsNil() {
  7233. if true && x.TestStrucCommon.Nint64 != nil {
  7234. x.TestStrucCommon.Nint64 = nil
  7235. }
  7236. } else {
  7237. if x.TestStrucCommon.Nint64 == nil {
  7238. x.TestStrucCommon.Nint64 = new(int64)
  7239. }
  7240. if false {
  7241. } else {
  7242. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  7243. }
  7244. }
  7245. case "Mtsptr":
  7246. if r.TryDecodeAsNil() {
  7247. x.Mtsptr = nil
  7248. } else {
  7249. if false {
  7250. } else {
  7251. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  7252. }
  7253. }
  7254. case "Mts":
  7255. if r.TryDecodeAsNil() {
  7256. x.Mts = nil
  7257. } else {
  7258. if false {
  7259. } else {
  7260. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  7261. }
  7262. }
  7263. case "Its":
  7264. if r.TryDecodeAsNil() {
  7265. x.Its = nil
  7266. } else {
  7267. if false {
  7268. } else {
  7269. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  7270. }
  7271. }
  7272. case "Nteststruc":
  7273. if r.TryDecodeAsNil() {
  7274. if true && x.Nteststruc != nil {
  7275. x.Nteststruc = nil
  7276. }
  7277. } else {
  7278. if x.Nteststruc == nil {
  7279. x.Nteststruc = new(TestStruc)
  7280. }
  7281. x.Nteststruc.CodecDecodeSelf(d)
  7282. }
  7283. default:
  7284. z.DecStructFieldNotFound(-1, yys3)
  7285. } // end switch yys3
  7286. } // end for yyj3
  7287. r.ReadMapEnd()
  7288. }
  7289. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  7290. var h codecSelfer19780
  7291. z, r := GenHelperDecoder(d)
  7292. _, _, _ = h, z, r
  7293. var yyj84 int
  7294. var yyb84 bool
  7295. var yyhl84 bool = l >= 0
  7296. yyj84++
  7297. if yyhl84 {
  7298. yyb84 = yyj84 > l
  7299. } else {
  7300. yyb84 = r.CheckBreak()
  7301. }
  7302. if yyb84 {
  7303. r.ReadArrayEnd()
  7304. return
  7305. }
  7306. r.ReadArrayElem()
  7307. if r.TryDecodeAsNil() {
  7308. x.TestStrucCommon.S = ""
  7309. } else {
  7310. x.TestStrucCommon.S = (string)(r.DecodeString())
  7311. }
  7312. yyj84++
  7313. if yyhl84 {
  7314. yyb84 = yyj84 > l
  7315. } else {
  7316. yyb84 = r.CheckBreak()
  7317. }
  7318. if yyb84 {
  7319. r.ReadArrayEnd()
  7320. return
  7321. }
  7322. r.ReadArrayElem()
  7323. if r.TryDecodeAsNil() {
  7324. x.TestStrucCommon.I64 = 0
  7325. } else {
  7326. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  7327. }
  7328. yyj84++
  7329. if yyhl84 {
  7330. yyb84 = yyj84 > l
  7331. } else {
  7332. yyb84 = r.CheckBreak()
  7333. }
  7334. if yyb84 {
  7335. r.ReadArrayEnd()
  7336. return
  7337. }
  7338. r.ReadArrayElem()
  7339. if r.TryDecodeAsNil() {
  7340. x.TestStrucCommon.I32 = 0
  7341. } else {
  7342. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  7343. }
  7344. yyj84++
  7345. if yyhl84 {
  7346. yyb84 = yyj84 > l
  7347. } else {
  7348. yyb84 = r.CheckBreak()
  7349. }
  7350. if yyb84 {
  7351. r.ReadArrayEnd()
  7352. return
  7353. }
  7354. r.ReadArrayElem()
  7355. if r.TryDecodeAsNil() {
  7356. x.TestStrucCommon.I16 = 0
  7357. } else {
  7358. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  7359. }
  7360. yyj84++
  7361. if yyhl84 {
  7362. yyb84 = yyj84 > l
  7363. } else {
  7364. yyb84 = r.CheckBreak()
  7365. }
  7366. if yyb84 {
  7367. r.ReadArrayEnd()
  7368. return
  7369. }
  7370. r.ReadArrayElem()
  7371. if r.TryDecodeAsNil() {
  7372. x.TestStrucCommon.I8 = 0
  7373. } else {
  7374. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  7375. }
  7376. yyj84++
  7377. if yyhl84 {
  7378. yyb84 = yyj84 > l
  7379. } else {
  7380. yyb84 = r.CheckBreak()
  7381. }
  7382. if yyb84 {
  7383. r.ReadArrayEnd()
  7384. return
  7385. }
  7386. r.ReadArrayElem()
  7387. if r.TryDecodeAsNil() {
  7388. x.TestStrucCommon.I64n = 0
  7389. } else {
  7390. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  7391. }
  7392. yyj84++
  7393. if yyhl84 {
  7394. yyb84 = yyj84 > l
  7395. } else {
  7396. yyb84 = r.CheckBreak()
  7397. }
  7398. if yyb84 {
  7399. r.ReadArrayEnd()
  7400. return
  7401. }
  7402. r.ReadArrayElem()
  7403. if r.TryDecodeAsNil() {
  7404. x.TestStrucCommon.I32n = 0
  7405. } else {
  7406. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  7407. }
  7408. yyj84++
  7409. if yyhl84 {
  7410. yyb84 = yyj84 > l
  7411. } else {
  7412. yyb84 = r.CheckBreak()
  7413. }
  7414. if yyb84 {
  7415. r.ReadArrayEnd()
  7416. return
  7417. }
  7418. r.ReadArrayElem()
  7419. if r.TryDecodeAsNil() {
  7420. x.TestStrucCommon.I16n = 0
  7421. } else {
  7422. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  7423. }
  7424. yyj84++
  7425. if yyhl84 {
  7426. yyb84 = yyj84 > l
  7427. } else {
  7428. yyb84 = r.CheckBreak()
  7429. }
  7430. if yyb84 {
  7431. r.ReadArrayEnd()
  7432. return
  7433. }
  7434. r.ReadArrayElem()
  7435. if r.TryDecodeAsNil() {
  7436. x.TestStrucCommon.I8n = 0
  7437. } else {
  7438. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  7439. }
  7440. yyj84++
  7441. if yyhl84 {
  7442. yyb84 = yyj84 > l
  7443. } else {
  7444. yyb84 = r.CheckBreak()
  7445. }
  7446. if yyb84 {
  7447. r.ReadArrayEnd()
  7448. return
  7449. }
  7450. r.ReadArrayElem()
  7451. if r.TryDecodeAsNil() {
  7452. x.TestStrucCommon.Ui64 = 0
  7453. } else {
  7454. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  7455. }
  7456. yyj84++
  7457. if yyhl84 {
  7458. yyb84 = yyj84 > l
  7459. } else {
  7460. yyb84 = r.CheckBreak()
  7461. }
  7462. if yyb84 {
  7463. r.ReadArrayEnd()
  7464. return
  7465. }
  7466. r.ReadArrayElem()
  7467. if r.TryDecodeAsNil() {
  7468. x.TestStrucCommon.Ui32 = 0
  7469. } else {
  7470. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  7471. }
  7472. yyj84++
  7473. if yyhl84 {
  7474. yyb84 = yyj84 > l
  7475. } else {
  7476. yyb84 = r.CheckBreak()
  7477. }
  7478. if yyb84 {
  7479. r.ReadArrayEnd()
  7480. return
  7481. }
  7482. r.ReadArrayElem()
  7483. if r.TryDecodeAsNil() {
  7484. x.TestStrucCommon.Ui16 = 0
  7485. } else {
  7486. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  7487. }
  7488. yyj84++
  7489. if yyhl84 {
  7490. yyb84 = yyj84 > l
  7491. } else {
  7492. yyb84 = r.CheckBreak()
  7493. }
  7494. if yyb84 {
  7495. r.ReadArrayEnd()
  7496. return
  7497. }
  7498. r.ReadArrayElem()
  7499. if r.TryDecodeAsNil() {
  7500. x.TestStrucCommon.Ui8 = 0
  7501. } else {
  7502. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  7503. }
  7504. yyj84++
  7505. if yyhl84 {
  7506. yyb84 = yyj84 > l
  7507. } else {
  7508. yyb84 = r.CheckBreak()
  7509. }
  7510. if yyb84 {
  7511. r.ReadArrayEnd()
  7512. return
  7513. }
  7514. r.ReadArrayElem()
  7515. if r.TryDecodeAsNil() {
  7516. x.TestStrucCommon.F64 = 0
  7517. } else {
  7518. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  7519. }
  7520. yyj84++
  7521. if yyhl84 {
  7522. yyb84 = yyj84 > l
  7523. } else {
  7524. yyb84 = r.CheckBreak()
  7525. }
  7526. if yyb84 {
  7527. r.ReadArrayEnd()
  7528. return
  7529. }
  7530. r.ReadArrayElem()
  7531. if r.TryDecodeAsNil() {
  7532. x.TestStrucCommon.F32 = 0
  7533. } else {
  7534. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  7535. }
  7536. yyj84++
  7537. if yyhl84 {
  7538. yyb84 = yyj84 > l
  7539. } else {
  7540. yyb84 = r.CheckBreak()
  7541. }
  7542. if yyb84 {
  7543. r.ReadArrayEnd()
  7544. return
  7545. }
  7546. r.ReadArrayElem()
  7547. if r.TryDecodeAsNil() {
  7548. x.TestStrucCommon.B = false
  7549. } else {
  7550. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  7551. }
  7552. yyj84++
  7553. if yyhl84 {
  7554. yyb84 = yyj84 > l
  7555. } else {
  7556. yyb84 = r.CheckBreak()
  7557. }
  7558. if yyb84 {
  7559. r.ReadArrayEnd()
  7560. return
  7561. }
  7562. r.ReadArrayElem()
  7563. if r.TryDecodeAsNil() {
  7564. x.TestStrucCommon.By = 0
  7565. } else {
  7566. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  7567. }
  7568. yyj84++
  7569. if yyhl84 {
  7570. yyb84 = yyj84 > l
  7571. } else {
  7572. yyb84 = r.CheckBreak()
  7573. }
  7574. if yyb84 {
  7575. r.ReadArrayEnd()
  7576. return
  7577. }
  7578. r.ReadArrayElem()
  7579. if r.TryDecodeAsNil() {
  7580. x.TestStrucCommon.Sslice = nil
  7581. } else {
  7582. if false {
  7583. } else {
  7584. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  7585. }
  7586. }
  7587. yyj84++
  7588. if yyhl84 {
  7589. yyb84 = yyj84 > l
  7590. } else {
  7591. yyb84 = r.CheckBreak()
  7592. }
  7593. if yyb84 {
  7594. r.ReadArrayEnd()
  7595. return
  7596. }
  7597. r.ReadArrayElem()
  7598. if r.TryDecodeAsNil() {
  7599. x.TestStrucCommon.I64slice = nil
  7600. } else {
  7601. if false {
  7602. } else {
  7603. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  7604. }
  7605. }
  7606. yyj84++
  7607. if yyhl84 {
  7608. yyb84 = yyj84 > l
  7609. } else {
  7610. yyb84 = r.CheckBreak()
  7611. }
  7612. if yyb84 {
  7613. r.ReadArrayEnd()
  7614. return
  7615. }
  7616. r.ReadArrayElem()
  7617. if r.TryDecodeAsNil() {
  7618. x.TestStrucCommon.I16slice = nil
  7619. } else {
  7620. if false {
  7621. } else {
  7622. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  7623. }
  7624. }
  7625. yyj84++
  7626. if yyhl84 {
  7627. yyb84 = yyj84 > l
  7628. } else {
  7629. yyb84 = r.CheckBreak()
  7630. }
  7631. if yyb84 {
  7632. r.ReadArrayEnd()
  7633. return
  7634. }
  7635. r.ReadArrayElem()
  7636. if r.TryDecodeAsNil() {
  7637. x.TestStrucCommon.Ui64slice = nil
  7638. } else {
  7639. if false {
  7640. } else {
  7641. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  7642. }
  7643. }
  7644. yyj84++
  7645. if yyhl84 {
  7646. yyb84 = yyj84 > l
  7647. } else {
  7648. yyb84 = r.CheckBreak()
  7649. }
  7650. if yyb84 {
  7651. r.ReadArrayEnd()
  7652. return
  7653. }
  7654. r.ReadArrayElem()
  7655. if r.TryDecodeAsNil() {
  7656. x.TestStrucCommon.Ui8slice = nil
  7657. } else {
  7658. if false {
  7659. } else {
  7660. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  7661. }
  7662. }
  7663. yyj84++
  7664. if yyhl84 {
  7665. yyb84 = yyj84 > l
  7666. } else {
  7667. yyb84 = r.CheckBreak()
  7668. }
  7669. if yyb84 {
  7670. r.ReadArrayEnd()
  7671. return
  7672. }
  7673. r.ReadArrayElem()
  7674. if r.TryDecodeAsNil() {
  7675. x.TestStrucCommon.Bslice = nil
  7676. } else {
  7677. if false {
  7678. } else {
  7679. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  7680. }
  7681. }
  7682. yyj84++
  7683. if yyhl84 {
  7684. yyb84 = yyj84 > l
  7685. } else {
  7686. yyb84 = r.CheckBreak()
  7687. }
  7688. if yyb84 {
  7689. r.ReadArrayEnd()
  7690. return
  7691. }
  7692. r.ReadArrayElem()
  7693. if r.TryDecodeAsNil() {
  7694. x.TestStrucCommon.Byslice = nil
  7695. } else {
  7696. if false {
  7697. } else {
  7698. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  7699. }
  7700. }
  7701. yyj84++
  7702. if yyhl84 {
  7703. yyb84 = yyj84 > l
  7704. } else {
  7705. yyb84 = r.CheckBreak()
  7706. }
  7707. if yyb84 {
  7708. r.ReadArrayEnd()
  7709. return
  7710. }
  7711. r.ReadArrayElem()
  7712. if r.TryDecodeAsNil() {
  7713. x.TestStrucCommon.Iptrslice = nil
  7714. } else {
  7715. if false {
  7716. } else {
  7717. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  7718. }
  7719. }
  7720. yyj84++
  7721. if yyhl84 {
  7722. yyb84 = yyj84 > l
  7723. } else {
  7724. yyb84 = r.CheckBreak()
  7725. }
  7726. if yyb84 {
  7727. r.ReadArrayEnd()
  7728. return
  7729. }
  7730. r.ReadArrayElem()
  7731. if r.TryDecodeAsNil() {
  7732. x.TestStrucCommon.WrapSliceInt64 = nil
  7733. } else {
  7734. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  7735. }
  7736. yyj84++
  7737. if yyhl84 {
  7738. yyb84 = yyj84 > l
  7739. } else {
  7740. yyb84 = r.CheckBreak()
  7741. }
  7742. if yyb84 {
  7743. r.ReadArrayEnd()
  7744. return
  7745. }
  7746. r.ReadArrayElem()
  7747. if r.TryDecodeAsNil() {
  7748. x.TestStrucCommon.WrapSliceString = nil
  7749. } else {
  7750. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  7751. }
  7752. yyj84++
  7753. if yyhl84 {
  7754. yyb84 = yyj84 > l
  7755. } else {
  7756. yyb84 = r.CheckBreak()
  7757. }
  7758. if yyb84 {
  7759. r.ReadArrayEnd()
  7760. return
  7761. }
  7762. r.ReadArrayElem()
  7763. if r.TryDecodeAsNil() {
  7764. x.TestStrucCommon.Msi64 = nil
  7765. } else {
  7766. if false {
  7767. } else {
  7768. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  7769. }
  7770. }
  7771. yyj84++
  7772. if yyhl84 {
  7773. yyb84 = yyj84 > l
  7774. } else {
  7775. yyb84 = r.CheckBreak()
  7776. }
  7777. if yyb84 {
  7778. r.ReadArrayEnd()
  7779. return
  7780. }
  7781. r.ReadArrayElem()
  7782. if r.TryDecodeAsNil() {
  7783. x.TestStrucCommon.Simplef = testSimpleFields{}
  7784. } else {
  7785. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  7786. }
  7787. yyj84++
  7788. if yyhl84 {
  7789. yyb84 = yyj84 > l
  7790. } else {
  7791. yyb84 = r.CheckBreak()
  7792. }
  7793. if yyb84 {
  7794. r.ReadArrayEnd()
  7795. return
  7796. }
  7797. r.ReadArrayElem()
  7798. if r.TryDecodeAsNil() {
  7799. x.TestStrucCommon.SstrUi64T = nil
  7800. } else {
  7801. if false {
  7802. } else {
  7803. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  7804. }
  7805. }
  7806. yyj84++
  7807. if yyhl84 {
  7808. yyb84 = yyj84 > l
  7809. } else {
  7810. yyb84 = r.CheckBreak()
  7811. }
  7812. if yyb84 {
  7813. r.ReadArrayEnd()
  7814. return
  7815. }
  7816. r.ReadArrayElem()
  7817. if r.TryDecodeAsNil() {
  7818. x.TestStrucCommon.AnonInTestStruc.AS = ""
  7819. } else {
  7820. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  7821. }
  7822. yyj84++
  7823. if yyhl84 {
  7824. yyb84 = yyj84 > l
  7825. } else {
  7826. yyb84 = r.CheckBreak()
  7827. }
  7828. if yyb84 {
  7829. r.ReadArrayEnd()
  7830. return
  7831. }
  7832. r.ReadArrayElem()
  7833. if r.TryDecodeAsNil() {
  7834. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  7835. } else {
  7836. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  7837. }
  7838. yyj84++
  7839. if yyhl84 {
  7840. yyb84 = yyj84 > l
  7841. } else {
  7842. yyb84 = r.CheckBreak()
  7843. }
  7844. if yyb84 {
  7845. r.ReadArrayEnd()
  7846. return
  7847. }
  7848. r.ReadArrayElem()
  7849. if r.TryDecodeAsNil() {
  7850. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  7851. } else {
  7852. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  7853. }
  7854. yyj84++
  7855. if yyhl84 {
  7856. yyb84 = yyj84 > l
  7857. } else {
  7858. yyb84 = r.CheckBreak()
  7859. }
  7860. if yyb84 {
  7861. r.ReadArrayEnd()
  7862. return
  7863. }
  7864. r.ReadArrayElem()
  7865. if r.TryDecodeAsNil() {
  7866. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  7867. } else {
  7868. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  7869. }
  7870. yyj84++
  7871. if yyhl84 {
  7872. yyb84 = yyj84 > l
  7873. } else {
  7874. yyb84 = r.CheckBreak()
  7875. }
  7876. if yyb84 {
  7877. r.ReadArrayEnd()
  7878. return
  7879. }
  7880. r.ReadArrayElem()
  7881. if r.TryDecodeAsNil() {
  7882. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  7883. } else {
  7884. if false {
  7885. } else {
  7886. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  7887. }
  7888. }
  7889. yyj84++
  7890. if yyhl84 {
  7891. yyb84 = yyj84 > l
  7892. } else {
  7893. yyb84 = r.CheckBreak()
  7894. }
  7895. if yyb84 {
  7896. r.ReadArrayEnd()
  7897. return
  7898. }
  7899. r.ReadArrayElem()
  7900. if r.TryDecodeAsNil() {
  7901. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  7902. } else {
  7903. if false {
  7904. } else {
  7905. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  7906. }
  7907. }
  7908. yyj84++
  7909. if yyhl84 {
  7910. yyb84 = yyj84 > l
  7911. } else {
  7912. yyb84 = r.CheckBreak()
  7913. }
  7914. if yyb84 {
  7915. r.ReadArrayEnd()
  7916. return
  7917. }
  7918. r.ReadArrayElem()
  7919. if r.TryDecodeAsNil() {
  7920. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  7921. } else {
  7922. if false {
  7923. } else {
  7924. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  7925. }
  7926. }
  7927. yyj84++
  7928. if yyhl84 {
  7929. yyb84 = yyj84 > l
  7930. } else {
  7931. yyb84 = r.CheckBreak()
  7932. }
  7933. if yyb84 {
  7934. r.ReadArrayEnd()
  7935. return
  7936. }
  7937. r.ReadArrayElem()
  7938. if r.TryDecodeAsNil() {
  7939. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  7940. } else {
  7941. if false {
  7942. } else {
  7943. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  7944. }
  7945. }
  7946. yyj84++
  7947. if yyhl84 {
  7948. yyb84 = yyj84 > l
  7949. } else {
  7950. yyb84 = r.CheckBreak()
  7951. }
  7952. if yyb84 {
  7953. r.ReadArrayEnd()
  7954. return
  7955. }
  7956. r.ReadArrayElem()
  7957. if r.TryDecodeAsNil() {
  7958. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  7959. } else {
  7960. if false {
  7961. } else {
  7962. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  7963. }
  7964. }
  7965. yyj84++
  7966. if yyhl84 {
  7967. yyb84 = yyj84 > l
  7968. } else {
  7969. yyb84 = r.CheckBreak()
  7970. }
  7971. if yyb84 {
  7972. r.ReadArrayEnd()
  7973. return
  7974. }
  7975. r.ReadArrayElem()
  7976. if r.TryDecodeAsNil() {
  7977. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  7978. } else {
  7979. if false {
  7980. } else {
  7981. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  7982. }
  7983. }
  7984. yyj84++
  7985. if yyhl84 {
  7986. yyb84 = yyj84 > l
  7987. } else {
  7988. yyb84 = r.CheckBreak()
  7989. }
  7990. if yyb84 {
  7991. r.ReadArrayEnd()
  7992. return
  7993. }
  7994. r.ReadArrayElem()
  7995. if r.TryDecodeAsNil() {
  7996. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  7997. } else {
  7998. if false {
  7999. } else {
  8000. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  8001. }
  8002. }
  8003. yyj84++
  8004. if yyhl84 {
  8005. yyb84 = yyj84 > l
  8006. } else {
  8007. yyb84 = r.CheckBreak()
  8008. }
  8009. if yyb84 {
  8010. r.ReadArrayEnd()
  8011. return
  8012. }
  8013. r.ReadArrayElem()
  8014. if r.TryDecodeAsNil() {
  8015. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  8016. } else {
  8017. if false {
  8018. } else {
  8019. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  8020. }
  8021. }
  8022. yyj84++
  8023. if yyhl84 {
  8024. yyb84 = yyj84 > l
  8025. } else {
  8026. yyb84 = r.CheckBreak()
  8027. }
  8028. if yyb84 {
  8029. r.ReadArrayEnd()
  8030. return
  8031. }
  8032. r.ReadArrayElem()
  8033. if r.TryDecodeAsNil() {
  8034. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  8035. } else {
  8036. if false {
  8037. } else {
  8038. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  8039. }
  8040. }
  8041. yyj84++
  8042. if yyhl84 {
  8043. yyb84 = yyj84 > l
  8044. } else {
  8045. yyb84 = r.CheckBreak()
  8046. }
  8047. if yyb84 {
  8048. r.ReadArrayEnd()
  8049. return
  8050. }
  8051. r.ReadArrayElem()
  8052. if r.TryDecodeAsNil() {
  8053. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  8054. } else {
  8055. if false {
  8056. } else {
  8057. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  8058. }
  8059. }
  8060. yyj84++
  8061. if yyhl84 {
  8062. yyb84 = yyj84 > l
  8063. } else {
  8064. yyb84 = r.CheckBreak()
  8065. }
  8066. if yyb84 {
  8067. r.ReadArrayEnd()
  8068. return
  8069. }
  8070. r.ReadArrayElem()
  8071. if r.TryDecodeAsNil() {
  8072. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  8073. } else {
  8074. if false {
  8075. } else {
  8076. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  8077. }
  8078. }
  8079. yyj84++
  8080. if yyhl84 {
  8081. yyb84 = yyj84 > l
  8082. } else {
  8083. yyb84 = r.CheckBreak()
  8084. }
  8085. if yyb84 {
  8086. r.ReadArrayEnd()
  8087. return
  8088. }
  8089. r.ReadArrayElem()
  8090. if r.TryDecodeAsNil() {
  8091. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  8092. } else {
  8093. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  8094. }
  8095. yyj84++
  8096. if yyhl84 {
  8097. yyb84 = yyj84 > l
  8098. } else {
  8099. yyb84 = r.CheckBreak()
  8100. }
  8101. if yyb84 {
  8102. r.ReadArrayEnd()
  8103. return
  8104. }
  8105. r.ReadArrayElem()
  8106. if r.TryDecodeAsNil() {
  8107. x.TestStrucCommon.Nmap = nil
  8108. } else {
  8109. if false {
  8110. } else {
  8111. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  8112. }
  8113. }
  8114. yyj84++
  8115. if yyhl84 {
  8116. yyb84 = yyj84 > l
  8117. } else {
  8118. yyb84 = r.CheckBreak()
  8119. }
  8120. if yyb84 {
  8121. r.ReadArrayEnd()
  8122. return
  8123. }
  8124. r.ReadArrayElem()
  8125. if r.TryDecodeAsNil() {
  8126. x.TestStrucCommon.Nslice = nil
  8127. } else {
  8128. if false {
  8129. } else {
  8130. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  8131. }
  8132. }
  8133. yyj84++
  8134. if yyhl84 {
  8135. yyb84 = yyj84 > l
  8136. } else {
  8137. yyb84 = r.CheckBreak()
  8138. }
  8139. if yyb84 {
  8140. r.ReadArrayEnd()
  8141. return
  8142. }
  8143. r.ReadArrayElem()
  8144. if r.TryDecodeAsNil() {
  8145. if true && x.TestStrucCommon.Nint64 != nil {
  8146. x.TestStrucCommon.Nint64 = nil
  8147. }
  8148. } else {
  8149. if x.TestStrucCommon.Nint64 == nil {
  8150. x.TestStrucCommon.Nint64 = new(int64)
  8151. }
  8152. if false {
  8153. } else {
  8154. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  8155. }
  8156. }
  8157. yyj84++
  8158. if yyhl84 {
  8159. yyb84 = yyj84 > l
  8160. } else {
  8161. yyb84 = r.CheckBreak()
  8162. }
  8163. if yyb84 {
  8164. r.ReadArrayEnd()
  8165. return
  8166. }
  8167. r.ReadArrayElem()
  8168. if r.TryDecodeAsNil() {
  8169. x.Mtsptr = nil
  8170. } else {
  8171. if false {
  8172. } else {
  8173. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  8174. }
  8175. }
  8176. yyj84++
  8177. if yyhl84 {
  8178. yyb84 = yyj84 > l
  8179. } else {
  8180. yyb84 = r.CheckBreak()
  8181. }
  8182. if yyb84 {
  8183. r.ReadArrayEnd()
  8184. return
  8185. }
  8186. r.ReadArrayElem()
  8187. if r.TryDecodeAsNil() {
  8188. x.Mts = nil
  8189. } else {
  8190. if false {
  8191. } else {
  8192. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  8193. }
  8194. }
  8195. yyj84++
  8196. if yyhl84 {
  8197. yyb84 = yyj84 > l
  8198. } else {
  8199. yyb84 = r.CheckBreak()
  8200. }
  8201. if yyb84 {
  8202. r.ReadArrayEnd()
  8203. return
  8204. }
  8205. r.ReadArrayElem()
  8206. if r.TryDecodeAsNil() {
  8207. x.Its = nil
  8208. } else {
  8209. if false {
  8210. } else {
  8211. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  8212. }
  8213. }
  8214. yyj84++
  8215. if yyhl84 {
  8216. yyb84 = yyj84 > l
  8217. } else {
  8218. yyb84 = r.CheckBreak()
  8219. }
  8220. if yyb84 {
  8221. r.ReadArrayEnd()
  8222. return
  8223. }
  8224. r.ReadArrayElem()
  8225. if r.TryDecodeAsNil() {
  8226. if true && x.Nteststruc != nil {
  8227. x.Nteststruc = nil
  8228. }
  8229. } else {
  8230. if x.Nteststruc == nil {
  8231. x.Nteststruc = new(TestStruc)
  8232. }
  8233. x.Nteststruc.CodecDecodeSelf(d)
  8234. }
  8235. for {
  8236. yyj84++
  8237. if yyhl84 {
  8238. yyb84 = yyj84 > l
  8239. } else {
  8240. yyb84 = r.CheckBreak()
  8241. }
  8242. if yyb84 {
  8243. break
  8244. }
  8245. r.ReadArrayElem()
  8246. z.DecStructFieldNotFound(yyj84-1, "")
  8247. }
  8248. r.ReadArrayEnd()
  8249. }
  8250. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  8251. var h codecSelfer19780
  8252. z, r := GenHelperEncoder(e)
  8253. _, _, _ = h, z, r
  8254. if false {
  8255. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8256. z.EncExtension(x, yyxt1)
  8257. } else {
  8258. r.EncodeBool(bool(x))
  8259. }
  8260. }
  8261. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  8262. var h codecSelfer19780
  8263. z, r := GenHelperDecoder(d)
  8264. _, _, _ = h, z, r
  8265. if false {
  8266. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8267. z.DecExtension(x, yyxt1)
  8268. } else {
  8269. *x = (Bbool)(r.DecodeBool())
  8270. }
  8271. }
  8272. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  8273. var h codecSelfer19780
  8274. z, r := GenHelperEncoder(e)
  8275. _, _, _ = h, z, r
  8276. if x == nil {
  8277. r.EncodeNil()
  8278. } else {
  8279. if false {
  8280. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8281. z.EncExtension(x, yyxt1)
  8282. } else {
  8283. h.encAarray((*Aarray)(x), e)
  8284. }
  8285. }
  8286. }
  8287. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  8288. var h codecSelfer19780
  8289. z, r := GenHelperDecoder(d)
  8290. _, _, _ = h, z, r
  8291. if false {
  8292. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8293. z.DecExtension(x, yyxt1)
  8294. } else {
  8295. h.decAarray((*Aarray)(x), d)
  8296. }
  8297. }
  8298. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  8299. var h codecSelfer19780
  8300. z, r := GenHelperEncoder(e)
  8301. _, _, _ = h, z, r
  8302. if false {
  8303. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8304. z.EncExtension(x, yyxt1)
  8305. } else {
  8306. if z.EncBasicHandle().StringToRaw {
  8307. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  8308. } else {
  8309. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  8310. }
  8311. }
  8312. }
  8313. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  8314. var h codecSelfer19780
  8315. z, r := GenHelperDecoder(d)
  8316. _, _, _ = h, z, r
  8317. if false {
  8318. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8319. z.DecExtension(x, yyxt1)
  8320. } else {
  8321. *x = (Sstring)(r.DecodeString())
  8322. }
  8323. }
  8324. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  8325. var h codecSelfer19780
  8326. z, r := GenHelperEncoder(e)
  8327. _, _, _ = h, z, r
  8328. if x == nil {
  8329. r.EncodeNil()
  8330. } else {
  8331. if false {
  8332. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8333. z.EncExtension(x, yyxt1)
  8334. } else {
  8335. yysep2 := !z.EncBinary()
  8336. yy2arr2 := z.EncBasicHandle().StructToArray
  8337. _, _ = yysep2, yy2arr2
  8338. const yyr2 bool = false // struct tag has 'toArray'
  8339. if yyr2 || yy2arr2 {
  8340. r.WriteArrayStart(1)
  8341. } else {
  8342. r.WriteMapStart(1)
  8343. }
  8344. if yyr2 || yy2arr2 {
  8345. r.WriteArrayElem()
  8346. if false {
  8347. } else {
  8348. r.EncodeInt(int64(x.A))
  8349. }
  8350. } else {
  8351. r.WriteMapElemKey()
  8352. if z.IsJSONHandle() {
  8353. z.WriteStr("\"A\"")
  8354. } else {
  8355. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8356. }
  8357. r.WriteMapElemValue()
  8358. if false {
  8359. } else {
  8360. r.EncodeInt(int64(x.A))
  8361. }
  8362. }
  8363. if yyr2 || yy2arr2 {
  8364. r.WriteArrayEnd()
  8365. } else {
  8366. r.WriteMapEnd()
  8367. }
  8368. }
  8369. }
  8370. }
  8371. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  8372. var h codecSelfer19780
  8373. z, r := GenHelperDecoder(d)
  8374. _, _, _ = h, z, r
  8375. if false {
  8376. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8377. z.DecExtension(x, yyxt1)
  8378. } else {
  8379. yyct2 := r.ContainerType()
  8380. if yyct2 == codecSelferValueTypeMap19780 {
  8381. yyl2 := r.ReadMapStart()
  8382. if yyl2 == 0 {
  8383. r.ReadMapEnd()
  8384. } else {
  8385. x.codecDecodeSelfFromMap(yyl2, d)
  8386. }
  8387. } else if yyct2 == codecSelferValueTypeArray19780 {
  8388. yyl2 := r.ReadArrayStart()
  8389. if yyl2 == 0 {
  8390. r.ReadArrayEnd()
  8391. } else {
  8392. x.codecDecodeSelfFromArray(yyl2, d)
  8393. }
  8394. } else {
  8395. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8396. }
  8397. }
  8398. }
  8399. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  8400. var h codecSelfer19780
  8401. z, r := GenHelperDecoder(d)
  8402. _, _, _ = h, z, r
  8403. var yyhl3 bool = l >= 0
  8404. for yyj3 := 0; ; yyj3++ {
  8405. if yyhl3 {
  8406. if yyj3 >= l {
  8407. break
  8408. }
  8409. } else {
  8410. if r.CheckBreak() {
  8411. break
  8412. }
  8413. }
  8414. r.ReadMapElemKey()
  8415. yys3 := z.StringView(r.DecodeStringAsBytes())
  8416. r.ReadMapElemValue()
  8417. switch yys3 {
  8418. case "A":
  8419. if r.TryDecodeAsNil() {
  8420. x.A = 0
  8421. } else {
  8422. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8423. }
  8424. default:
  8425. z.DecStructFieldNotFound(-1, yys3)
  8426. } // end switch yys3
  8427. } // end for yyj3
  8428. r.ReadMapEnd()
  8429. }
  8430. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  8431. var h codecSelfer19780
  8432. z, r := GenHelperDecoder(d)
  8433. _, _, _ = h, z, r
  8434. var yyj5 int
  8435. var yyb5 bool
  8436. var yyhl5 bool = l >= 0
  8437. yyj5++
  8438. if yyhl5 {
  8439. yyb5 = yyj5 > l
  8440. } else {
  8441. yyb5 = r.CheckBreak()
  8442. }
  8443. if yyb5 {
  8444. r.ReadArrayEnd()
  8445. return
  8446. }
  8447. r.ReadArrayElem()
  8448. if r.TryDecodeAsNil() {
  8449. x.A = 0
  8450. } else {
  8451. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8452. }
  8453. for {
  8454. yyj5++
  8455. if yyhl5 {
  8456. yyb5 = yyj5 > l
  8457. } else {
  8458. yyb5 = r.CheckBreak()
  8459. }
  8460. if yyb5 {
  8461. break
  8462. }
  8463. r.ReadArrayElem()
  8464. z.DecStructFieldNotFound(yyj5-1, "")
  8465. }
  8466. r.ReadArrayEnd()
  8467. }
  8468. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  8469. var h codecSelfer19780
  8470. z, r := GenHelperEncoder(e)
  8471. _, _, _ = h, z, r
  8472. if x == nil {
  8473. r.EncodeNil()
  8474. } else {
  8475. if false {
  8476. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8477. z.EncExtension(x, yyxt1)
  8478. } else {
  8479. yysep2 := !z.EncBinary()
  8480. yy2arr2 := z.EncBasicHandle().StructToArray
  8481. _, _ = yysep2, yy2arr2
  8482. const yyr2 bool = false // struct tag has 'toArray'
  8483. if yyr2 || yy2arr2 {
  8484. r.WriteArrayStart(5)
  8485. } else {
  8486. r.WriteMapStart(5)
  8487. }
  8488. if yyr2 || yy2arr2 {
  8489. r.WriteArrayElem()
  8490. if false {
  8491. } else {
  8492. r.EncodeInt(int64(x.A))
  8493. }
  8494. } else {
  8495. r.WriteMapElemKey()
  8496. if z.IsJSONHandle() {
  8497. z.WriteStr("\"A\"")
  8498. } else {
  8499. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8500. }
  8501. r.WriteMapElemValue()
  8502. if false {
  8503. } else {
  8504. r.EncodeInt(int64(x.A))
  8505. }
  8506. }
  8507. if yyr2 || yy2arr2 {
  8508. r.WriteArrayElem()
  8509. if false {
  8510. } else {
  8511. r.EncodeBool(bool(x.B))
  8512. }
  8513. } else {
  8514. r.WriteMapElemKey()
  8515. if z.IsJSONHandle() {
  8516. z.WriteStr("\"B\"")
  8517. } else {
  8518. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8519. }
  8520. r.WriteMapElemValue()
  8521. if false {
  8522. } else {
  8523. r.EncodeBool(bool(x.B))
  8524. }
  8525. }
  8526. var yyn9 bool
  8527. if x.Ssmallptr == nil {
  8528. yyn9 = true
  8529. goto LABEL9
  8530. }
  8531. LABEL9:
  8532. if yyr2 || yy2arr2 {
  8533. if yyn9 {
  8534. r.WriteArrayElem()
  8535. r.EncodeNil()
  8536. } else {
  8537. r.WriteArrayElem()
  8538. if x.Ssmallptr == nil {
  8539. r.EncodeNil()
  8540. } else {
  8541. x.Ssmallptr.CodecEncodeSelf(e)
  8542. }
  8543. }
  8544. } else {
  8545. r.WriteMapElemKey()
  8546. if z.IsJSONHandle() {
  8547. z.WriteStr("\"Ssmallptr\"")
  8548. } else {
  8549. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  8550. }
  8551. r.WriteMapElemValue()
  8552. if yyn9 {
  8553. r.EncodeNil()
  8554. } else {
  8555. if x.Ssmallptr == nil {
  8556. r.EncodeNil()
  8557. } else {
  8558. x.Ssmallptr.CodecEncodeSelf(e)
  8559. }
  8560. }
  8561. }
  8562. var yyn12 bool
  8563. if x.Ssmall == nil {
  8564. yyn12 = true
  8565. goto LABEL12
  8566. }
  8567. LABEL12:
  8568. if yyr2 || yy2arr2 {
  8569. if yyn12 {
  8570. r.WriteArrayElem()
  8571. r.EncodeNil()
  8572. } else {
  8573. r.WriteArrayElem()
  8574. if x.Ssmall == nil {
  8575. r.EncodeNil()
  8576. } else {
  8577. x.Ssmall.CodecEncodeSelf(e)
  8578. }
  8579. }
  8580. } else {
  8581. r.WriteMapElemKey()
  8582. if z.IsJSONHandle() {
  8583. z.WriteStr("\"Ssmall\"")
  8584. } else {
  8585. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  8586. }
  8587. r.WriteMapElemValue()
  8588. if yyn12 {
  8589. r.EncodeNil()
  8590. } else {
  8591. if x.Ssmall == nil {
  8592. r.EncodeNil()
  8593. } else {
  8594. x.Ssmall.CodecEncodeSelf(e)
  8595. }
  8596. }
  8597. }
  8598. var yyn15 bool
  8599. if x.Sptr == nil {
  8600. yyn15 = true
  8601. goto LABEL15
  8602. }
  8603. LABEL15:
  8604. if yyr2 || yy2arr2 {
  8605. if yyn15 {
  8606. r.WriteArrayElem()
  8607. r.EncodeNil()
  8608. } else {
  8609. r.WriteArrayElem()
  8610. if x.Sptr == nil {
  8611. r.EncodeNil()
  8612. } else {
  8613. x.Sptr.CodecEncodeSelf(e)
  8614. }
  8615. }
  8616. } else {
  8617. r.WriteMapElemKey()
  8618. if z.IsJSONHandle() {
  8619. z.WriteStr("\"Sptr\"")
  8620. } else {
  8621. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  8622. }
  8623. r.WriteMapElemValue()
  8624. if yyn15 {
  8625. r.EncodeNil()
  8626. } else {
  8627. if x.Sptr == nil {
  8628. r.EncodeNil()
  8629. } else {
  8630. x.Sptr.CodecEncodeSelf(e)
  8631. }
  8632. }
  8633. }
  8634. if yyr2 || yy2arr2 {
  8635. r.WriteArrayEnd()
  8636. } else {
  8637. r.WriteMapEnd()
  8638. }
  8639. }
  8640. }
  8641. }
  8642. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  8643. var h codecSelfer19780
  8644. z, r := GenHelperDecoder(d)
  8645. _, _, _ = h, z, r
  8646. if false {
  8647. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8648. z.DecExtension(x, yyxt1)
  8649. } else {
  8650. yyct2 := r.ContainerType()
  8651. if yyct2 == codecSelferValueTypeMap19780 {
  8652. yyl2 := r.ReadMapStart()
  8653. if yyl2 == 0 {
  8654. r.ReadMapEnd()
  8655. } else {
  8656. x.codecDecodeSelfFromMap(yyl2, d)
  8657. }
  8658. } else if yyct2 == codecSelferValueTypeArray19780 {
  8659. yyl2 := r.ReadArrayStart()
  8660. if yyl2 == 0 {
  8661. r.ReadArrayEnd()
  8662. } else {
  8663. x.codecDecodeSelfFromArray(yyl2, d)
  8664. }
  8665. } else {
  8666. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8667. }
  8668. }
  8669. }
  8670. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  8671. var h codecSelfer19780
  8672. z, r := GenHelperDecoder(d)
  8673. _, _, _ = h, z, r
  8674. var yyhl3 bool = l >= 0
  8675. for yyj3 := 0; ; yyj3++ {
  8676. if yyhl3 {
  8677. if yyj3 >= l {
  8678. break
  8679. }
  8680. } else {
  8681. if r.CheckBreak() {
  8682. break
  8683. }
  8684. }
  8685. r.ReadMapElemKey()
  8686. yys3 := z.StringView(r.DecodeStringAsBytes())
  8687. r.ReadMapElemValue()
  8688. switch yys3 {
  8689. case "A":
  8690. if r.TryDecodeAsNil() {
  8691. x.A = 0
  8692. } else {
  8693. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8694. }
  8695. case "B":
  8696. if r.TryDecodeAsNil() {
  8697. x.B = false
  8698. } else {
  8699. x.B = (bool)(r.DecodeBool())
  8700. }
  8701. case "Ssmallptr":
  8702. if r.TryDecodeAsNil() {
  8703. if true && x.Ssmallptr != nil {
  8704. x.Ssmallptr = nil
  8705. }
  8706. } else {
  8707. if x.Ssmallptr == nil {
  8708. x.Ssmallptr = new(Sstructsmall)
  8709. }
  8710. x.Ssmallptr.CodecDecodeSelf(d)
  8711. }
  8712. case "Ssmall":
  8713. if r.TryDecodeAsNil() {
  8714. if true && x.Ssmall != nil {
  8715. x.Ssmall = nil
  8716. }
  8717. } else {
  8718. if x.Ssmall == nil {
  8719. x.Ssmall = new(Sstructsmall)
  8720. }
  8721. x.Ssmall.CodecDecodeSelf(d)
  8722. }
  8723. case "Sptr":
  8724. if r.TryDecodeAsNil() {
  8725. if true && x.Sptr != nil {
  8726. x.Sptr = nil
  8727. }
  8728. } else {
  8729. if x.Sptr == nil {
  8730. x.Sptr = new(Sstructbig)
  8731. }
  8732. x.Sptr.CodecDecodeSelf(d)
  8733. }
  8734. default:
  8735. z.DecStructFieldNotFound(-1, yys3)
  8736. } // end switch yys3
  8737. } // end for yyj3
  8738. r.ReadMapEnd()
  8739. }
  8740. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  8741. var h codecSelfer19780
  8742. z, r := GenHelperDecoder(d)
  8743. _, _, _ = h, z, r
  8744. var yyj9 int
  8745. var yyb9 bool
  8746. var yyhl9 bool = l >= 0
  8747. yyj9++
  8748. if yyhl9 {
  8749. yyb9 = yyj9 > l
  8750. } else {
  8751. yyb9 = r.CheckBreak()
  8752. }
  8753. if yyb9 {
  8754. r.ReadArrayEnd()
  8755. return
  8756. }
  8757. r.ReadArrayElem()
  8758. if r.TryDecodeAsNil() {
  8759. x.A = 0
  8760. } else {
  8761. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8762. }
  8763. yyj9++
  8764. if yyhl9 {
  8765. yyb9 = yyj9 > l
  8766. } else {
  8767. yyb9 = r.CheckBreak()
  8768. }
  8769. if yyb9 {
  8770. r.ReadArrayEnd()
  8771. return
  8772. }
  8773. r.ReadArrayElem()
  8774. if r.TryDecodeAsNil() {
  8775. x.B = false
  8776. } else {
  8777. x.B = (bool)(r.DecodeBool())
  8778. }
  8779. yyj9++
  8780. if yyhl9 {
  8781. yyb9 = yyj9 > l
  8782. } else {
  8783. yyb9 = r.CheckBreak()
  8784. }
  8785. if yyb9 {
  8786. r.ReadArrayEnd()
  8787. return
  8788. }
  8789. r.ReadArrayElem()
  8790. if r.TryDecodeAsNil() {
  8791. if true && x.Ssmallptr != nil {
  8792. x.Ssmallptr = nil
  8793. }
  8794. } else {
  8795. if x.Ssmallptr == nil {
  8796. x.Ssmallptr = new(Sstructsmall)
  8797. }
  8798. x.Ssmallptr.CodecDecodeSelf(d)
  8799. }
  8800. yyj9++
  8801. if yyhl9 {
  8802. yyb9 = yyj9 > l
  8803. } else {
  8804. yyb9 = r.CheckBreak()
  8805. }
  8806. if yyb9 {
  8807. r.ReadArrayEnd()
  8808. return
  8809. }
  8810. r.ReadArrayElem()
  8811. if r.TryDecodeAsNil() {
  8812. if true && x.Ssmall != nil {
  8813. x.Ssmall = nil
  8814. }
  8815. } else {
  8816. if x.Ssmall == nil {
  8817. x.Ssmall = new(Sstructsmall)
  8818. }
  8819. x.Ssmall.CodecDecodeSelf(d)
  8820. }
  8821. yyj9++
  8822. if yyhl9 {
  8823. yyb9 = yyj9 > l
  8824. } else {
  8825. yyb9 = r.CheckBreak()
  8826. }
  8827. if yyb9 {
  8828. r.ReadArrayEnd()
  8829. return
  8830. }
  8831. r.ReadArrayElem()
  8832. if r.TryDecodeAsNil() {
  8833. if true && x.Sptr != nil {
  8834. x.Sptr = nil
  8835. }
  8836. } else {
  8837. if x.Sptr == nil {
  8838. x.Sptr = new(Sstructbig)
  8839. }
  8840. x.Sptr.CodecDecodeSelf(d)
  8841. }
  8842. for {
  8843. yyj9++
  8844. if yyhl9 {
  8845. yyb9 = yyj9 > l
  8846. } else {
  8847. yyb9 = r.CheckBreak()
  8848. }
  8849. if yyb9 {
  8850. break
  8851. }
  8852. r.ReadArrayElem()
  8853. z.DecStructFieldNotFound(yyj9-1, "")
  8854. }
  8855. r.ReadArrayEnd()
  8856. }
  8857. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  8858. var h codecSelfer19780
  8859. z, r := GenHelperEncoder(e)
  8860. _, _, _ = h, z, r
  8861. if x == nil {
  8862. r.EncodeNil()
  8863. } else {
  8864. if false {
  8865. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8866. z.EncExtension(x, yyxt1)
  8867. } else {
  8868. yysep2 := !z.EncBinary()
  8869. yy2arr2 := z.EncBasicHandle().StructToArray
  8870. _, _ = yysep2, yy2arr2
  8871. const yyr2 bool = true // struct tag has 'toArray'
  8872. if yyr2 || yy2arr2 {
  8873. r.WriteArrayStart(5)
  8874. } else {
  8875. r.WriteMapStart(5)
  8876. }
  8877. if yyr2 || yy2arr2 {
  8878. r.WriteArrayElem()
  8879. if false {
  8880. } else {
  8881. r.EncodeInt(int64(x.A))
  8882. }
  8883. } else {
  8884. r.WriteMapElemKey()
  8885. if z.IsJSONHandle() {
  8886. z.WriteStr("\"A\"")
  8887. } else {
  8888. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8889. }
  8890. r.WriteMapElemValue()
  8891. if false {
  8892. } else {
  8893. r.EncodeInt(int64(x.A))
  8894. }
  8895. }
  8896. if yyr2 || yy2arr2 {
  8897. r.WriteArrayElem()
  8898. if false {
  8899. } else {
  8900. r.EncodeBool(bool(x.B))
  8901. }
  8902. } else {
  8903. r.WriteMapElemKey()
  8904. if z.IsJSONHandle() {
  8905. z.WriteStr("\"B\"")
  8906. } else {
  8907. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8908. }
  8909. r.WriteMapElemValue()
  8910. if false {
  8911. } else {
  8912. r.EncodeBool(bool(x.B))
  8913. }
  8914. }
  8915. var yyn9 bool
  8916. if x.Ssmallptr == nil {
  8917. yyn9 = true
  8918. goto LABEL9
  8919. }
  8920. LABEL9:
  8921. if yyr2 || yy2arr2 {
  8922. if yyn9 {
  8923. r.WriteArrayElem()
  8924. r.EncodeNil()
  8925. } else {
  8926. r.WriteArrayElem()
  8927. if x.Ssmallptr == nil {
  8928. r.EncodeNil()
  8929. } else {
  8930. x.Ssmallptr.CodecEncodeSelf(e)
  8931. }
  8932. }
  8933. } else {
  8934. r.WriteMapElemKey()
  8935. if z.IsJSONHandle() {
  8936. z.WriteStr("\"Ssmallptr\"")
  8937. } else {
  8938. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  8939. }
  8940. r.WriteMapElemValue()
  8941. if yyn9 {
  8942. r.EncodeNil()
  8943. } else {
  8944. if x.Ssmallptr == nil {
  8945. r.EncodeNil()
  8946. } else {
  8947. x.Ssmallptr.CodecEncodeSelf(e)
  8948. }
  8949. }
  8950. }
  8951. var yyn12 bool
  8952. if x.Ssmall == nil {
  8953. yyn12 = true
  8954. goto LABEL12
  8955. }
  8956. LABEL12:
  8957. if yyr2 || yy2arr2 {
  8958. if yyn12 {
  8959. r.WriteArrayElem()
  8960. r.EncodeNil()
  8961. } else {
  8962. r.WriteArrayElem()
  8963. if x.Ssmall == nil {
  8964. r.EncodeNil()
  8965. } else {
  8966. x.Ssmall.CodecEncodeSelf(e)
  8967. }
  8968. }
  8969. } else {
  8970. r.WriteMapElemKey()
  8971. if z.IsJSONHandle() {
  8972. z.WriteStr("\"Ssmall\"")
  8973. } else {
  8974. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  8975. }
  8976. r.WriteMapElemValue()
  8977. if yyn12 {
  8978. r.EncodeNil()
  8979. } else {
  8980. if x.Ssmall == nil {
  8981. r.EncodeNil()
  8982. } else {
  8983. x.Ssmall.CodecEncodeSelf(e)
  8984. }
  8985. }
  8986. }
  8987. var yyn15 bool
  8988. if x.Sptr == nil {
  8989. yyn15 = true
  8990. goto LABEL15
  8991. }
  8992. LABEL15:
  8993. if yyr2 || yy2arr2 {
  8994. if yyn15 {
  8995. r.WriteArrayElem()
  8996. r.EncodeNil()
  8997. } else {
  8998. r.WriteArrayElem()
  8999. if x.Sptr == nil {
  9000. r.EncodeNil()
  9001. } else {
  9002. x.Sptr.CodecEncodeSelf(e)
  9003. }
  9004. }
  9005. } else {
  9006. r.WriteMapElemKey()
  9007. if z.IsJSONHandle() {
  9008. z.WriteStr("\"Sptr\"")
  9009. } else {
  9010. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  9011. }
  9012. r.WriteMapElemValue()
  9013. if yyn15 {
  9014. r.EncodeNil()
  9015. } else {
  9016. if x.Sptr == nil {
  9017. r.EncodeNil()
  9018. } else {
  9019. x.Sptr.CodecEncodeSelf(e)
  9020. }
  9021. }
  9022. }
  9023. if yyr2 || yy2arr2 {
  9024. r.WriteArrayEnd()
  9025. } else {
  9026. r.WriteMapEnd()
  9027. }
  9028. }
  9029. }
  9030. }
  9031. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  9032. var h codecSelfer19780
  9033. z, r := GenHelperDecoder(d)
  9034. _, _, _ = h, z, r
  9035. if false {
  9036. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9037. z.DecExtension(x, yyxt1)
  9038. } else {
  9039. yyct2 := r.ContainerType()
  9040. if yyct2 == codecSelferValueTypeMap19780 {
  9041. yyl2 := r.ReadMapStart()
  9042. if yyl2 == 0 {
  9043. r.ReadMapEnd()
  9044. } else {
  9045. x.codecDecodeSelfFromMap(yyl2, d)
  9046. }
  9047. } else if yyct2 == codecSelferValueTypeArray19780 {
  9048. yyl2 := r.ReadArrayStart()
  9049. if yyl2 == 0 {
  9050. r.ReadArrayEnd()
  9051. } else {
  9052. x.codecDecodeSelfFromArray(yyl2, d)
  9053. }
  9054. } else {
  9055. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9056. }
  9057. }
  9058. }
  9059. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  9060. var h codecSelfer19780
  9061. z, r := GenHelperDecoder(d)
  9062. _, _, _ = h, z, r
  9063. var yyhl3 bool = l >= 0
  9064. for yyj3 := 0; ; yyj3++ {
  9065. if yyhl3 {
  9066. if yyj3 >= l {
  9067. break
  9068. }
  9069. } else {
  9070. if r.CheckBreak() {
  9071. break
  9072. }
  9073. }
  9074. r.ReadMapElemKey()
  9075. yys3 := z.StringView(r.DecodeStringAsBytes())
  9076. r.ReadMapElemValue()
  9077. switch yys3 {
  9078. case "A":
  9079. if r.TryDecodeAsNil() {
  9080. x.A = 0
  9081. } else {
  9082. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9083. }
  9084. case "B":
  9085. if r.TryDecodeAsNil() {
  9086. x.B = false
  9087. } else {
  9088. x.B = (bool)(r.DecodeBool())
  9089. }
  9090. case "Ssmallptr":
  9091. if r.TryDecodeAsNil() {
  9092. if true && x.Ssmallptr != nil {
  9093. x.Ssmallptr = nil
  9094. }
  9095. } else {
  9096. if x.Ssmallptr == nil {
  9097. x.Ssmallptr = new(Sstructsmall)
  9098. }
  9099. x.Ssmallptr.CodecDecodeSelf(d)
  9100. }
  9101. case "Ssmall":
  9102. if r.TryDecodeAsNil() {
  9103. if true && x.Ssmall != nil {
  9104. x.Ssmall = nil
  9105. }
  9106. } else {
  9107. if x.Ssmall == nil {
  9108. x.Ssmall = new(Sstructsmall)
  9109. }
  9110. x.Ssmall.CodecDecodeSelf(d)
  9111. }
  9112. case "Sptr":
  9113. if r.TryDecodeAsNil() {
  9114. if true && x.Sptr != nil {
  9115. x.Sptr = nil
  9116. }
  9117. } else {
  9118. if x.Sptr == nil {
  9119. x.Sptr = new(Sstructbig)
  9120. }
  9121. x.Sptr.CodecDecodeSelf(d)
  9122. }
  9123. default:
  9124. z.DecStructFieldNotFound(-1, yys3)
  9125. } // end switch yys3
  9126. } // end for yyj3
  9127. r.ReadMapEnd()
  9128. }
  9129. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  9130. var h codecSelfer19780
  9131. z, r := GenHelperDecoder(d)
  9132. _, _, _ = h, z, r
  9133. var yyj9 int
  9134. var yyb9 bool
  9135. var yyhl9 bool = l >= 0
  9136. yyj9++
  9137. if yyhl9 {
  9138. yyb9 = yyj9 > l
  9139. } else {
  9140. yyb9 = r.CheckBreak()
  9141. }
  9142. if yyb9 {
  9143. r.ReadArrayEnd()
  9144. return
  9145. }
  9146. r.ReadArrayElem()
  9147. if r.TryDecodeAsNil() {
  9148. x.A = 0
  9149. } else {
  9150. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9151. }
  9152. yyj9++
  9153. if yyhl9 {
  9154. yyb9 = yyj9 > l
  9155. } else {
  9156. yyb9 = r.CheckBreak()
  9157. }
  9158. if yyb9 {
  9159. r.ReadArrayEnd()
  9160. return
  9161. }
  9162. r.ReadArrayElem()
  9163. if r.TryDecodeAsNil() {
  9164. x.B = false
  9165. } else {
  9166. x.B = (bool)(r.DecodeBool())
  9167. }
  9168. yyj9++
  9169. if yyhl9 {
  9170. yyb9 = yyj9 > l
  9171. } else {
  9172. yyb9 = r.CheckBreak()
  9173. }
  9174. if yyb9 {
  9175. r.ReadArrayEnd()
  9176. return
  9177. }
  9178. r.ReadArrayElem()
  9179. if r.TryDecodeAsNil() {
  9180. if true && x.Ssmallptr != nil {
  9181. x.Ssmallptr = nil
  9182. }
  9183. } else {
  9184. if x.Ssmallptr == nil {
  9185. x.Ssmallptr = new(Sstructsmall)
  9186. }
  9187. x.Ssmallptr.CodecDecodeSelf(d)
  9188. }
  9189. yyj9++
  9190. if yyhl9 {
  9191. yyb9 = yyj9 > l
  9192. } else {
  9193. yyb9 = r.CheckBreak()
  9194. }
  9195. if yyb9 {
  9196. r.ReadArrayEnd()
  9197. return
  9198. }
  9199. r.ReadArrayElem()
  9200. if r.TryDecodeAsNil() {
  9201. if true && x.Ssmall != nil {
  9202. x.Ssmall = nil
  9203. }
  9204. } else {
  9205. if x.Ssmall == nil {
  9206. x.Ssmall = new(Sstructsmall)
  9207. }
  9208. x.Ssmall.CodecDecodeSelf(d)
  9209. }
  9210. yyj9++
  9211. if yyhl9 {
  9212. yyb9 = yyj9 > l
  9213. } else {
  9214. yyb9 = r.CheckBreak()
  9215. }
  9216. if yyb9 {
  9217. r.ReadArrayEnd()
  9218. return
  9219. }
  9220. r.ReadArrayElem()
  9221. if r.TryDecodeAsNil() {
  9222. if true && x.Sptr != nil {
  9223. x.Sptr = nil
  9224. }
  9225. } else {
  9226. if x.Sptr == nil {
  9227. x.Sptr = new(Sstructbig)
  9228. }
  9229. x.Sptr.CodecDecodeSelf(d)
  9230. }
  9231. for {
  9232. yyj9++
  9233. if yyhl9 {
  9234. yyb9 = yyj9 > l
  9235. } else {
  9236. yyb9 = r.CheckBreak()
  9237. }
  9238. if yyb9 {
  9239. break
  9240. }
  9241. r.ReadArrayElem()
  9242. z.DecStructFieldNotFound(yyj9-1, "")
  9243. }
  9244. r.ReadArrayEnd()
  9245. }
  9246. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  9247. var h codecSelfer19780
  9248. z, r := GenHelperEncoder(e)
  9249. _, _, _ = h, z, r
  9250. if x == nil {
  9251. r.EncodeNil()
  9252. } else {
  9253. if false {
  9254. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9255. z.EncExtension(x, yyxt1)
  9256. } else {
  9257. yysep2 := !z.EncBinary()
  9258. yy2arr2 := z.EncBasicHandle().StructToArray
  9259. _, _ = yysep2, yy2arr2
  9260. const yyr2 bool = false // struct tag has 'toArray'
  9261. if yyr2 || yy2arr2 {
  9262. r.WriteArrayStart(2)
  9263. } else {
  9264. r.WriteMapStart(2)
  9265. }
  9266. if yyr2 || yy2arr2 {
  9267. r.WriteArrayElem()
  9268. if false {
  9269. } else {
  9270. r.EncodeInt(int64(x.I))
  9271. }
  9272. } else {
  9273. r.WriteMapElemKey()
  9274. if z.IsJSONHandle() {
  9275. z.WriteStr("\"I\"")
  9276. } else {
  9277. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  9278. }
  9279. r.WriteMapElemValue()
  9280. if false {
  9281. } else {
  9282. r.EncodeInt(int64(x.I))
  9283. }
  9284. }
  9285. if yyr2 || yy2arr2 {
  9286. r.WriteArrayElem()
  9287. if false {
  9288. } else {
  9289. if z.EncBasicHandle().StringToRaw {
  9290. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9291. } else {
  9292. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9293. }
  9294. }
  9295. } else {
  9296. r.WriteMapElemKey()
  9297. if z.IsJSONHandle() {
  9298. z.WriteStr("\"S\"")
  9299. } else {
  9300. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9301. }
  9302. r.WriteMapElemValue()
  9303. if false {
  9304. } else {
  9305. if z.EncBasicHandle().StringToRaw {
  9306. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9307. } else {
  9308. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9309. }
  9310. }
  9311. }
  9312. if yyr2 || yy2arr2 {
  9313. r.WriteArrayEnd()
  9314. } else {
  9315. r.WriteMapEnd()
  9316. }
  9317. }
  9318. }
  9319. }
  9320. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  9321. var h codecSelfer19780
  9322. z, r := GenHelperDecoder(d)
  9323. _, _, _ = h, z, r
  9324. if false {
  9325. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9326. z.DecExtension(x, yyxt1)
  9327. } else {
  9328. yyct2 := r.ContainerType()
  9329. if yyct2 == codecSelferValueTypeMap19780 {
  9330. yyl2 := r.ReadMapStart()
  9331. if yyl2 == 0 {
  9332. r.ReadMapEnd()
  9333. } else {
  9334. x.codecDecodeSelfFromMap(yyl2, d)
  9335. }
  9336. } else if yyct2 == codecSelferValueTypeArray19780 {
  9337. yyl2 := r.ReadArrayStart()
  9338. if yyl2 == 0 {
  9339. r.ReadArrayEnd()
  9340. } else {
  9341. x.codecDecodeSelfFromArray(yyl2, d)
  9342. }
  9343. } else {
  9344. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9345. }
  9346. }
  9347. }
  9348. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  9349. var h codecSelfer19780
  9350. z, r := GenHelperDecoder(d)
  9351. _, _, _ = h, z, r
  9352. var yyhl3 bool = l >= 0
  9353. for yyj3 := 0; ; yyj3++ {
  9354. if yyhl3 {
  9355. if yyj3 >= l {
  9356. break
  9357. }
  9358. } else {
  9359. if r.CheckBreak() {
  9360. break
  9361. }
  9362. }
  9363. r.ReadMapElemKey()
  9364. yys3 := z.StringView(r.DecodeStringAsBytes())
  9365. r.ReadMapElemValue()
  9366. switch yys3 {
  9367. case "I":
  9368. if r.TryDecodeAsNil() {
  9369. x.I = 0
  9370. } else {
  9371. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9372. }
  9373. case "S":
  9374. if r.TryDecodeAsNil() {
  9375. x.S = ""
  9376. } else {
  9377. x.S = (string)(r.DecodeString())
  9378. }
  9379. default:
  9380. z.DecStructFieldNotFound(-1, yys3)
  9381. } // end switch yys3
  9382. } // end for yyj3
  9383. r.ReadMapEnd()
  9384. }
  9385. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  9386. var h codecSelfer19780
  9387. z, r := GenHelperDecoder(d)
  9388. _, _, _ = h, z, r
  9389. var yyj6 int
  9390. var yyb6 bool
  9391. var yyhl6 bool = l >= 0
  9392. yyj6++
  9393. if yyhl6 {
  9394. yyb6 = yyj6 > l
  9395. } else {
  9396. yyb6 = r.CheckBreak()
  9397. }
  9398. if yyb6 {
  9399. r.ReadArrayEnd()
  9400. return
  9401. }
  9402. r.ReadArrayElem()
  9403. if r.TryDecodeAsNil() {
  9404. x.I = 0
  9405. } else {
  9406. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9407. }
  9408. yyj6++
  9409. if yyhl6 {
  9410. yyb6 = yyj6 > l
  9411. } else {
  9412. yyb6 = r.CheckBreak()
  9413. }
  9414. if yyb6 {
  9415. r.ReadArrayEnd()
  9416. return
  9417. }
  9418. r.ReadArrayElem()
  9419. if r.TryDecodeAsNil() {
  9420. x.S = ""
  9421. } else {
  9422. x.S = (string)(r.DecodeString())
  9423. }
  9424. for {
  9425. yyj6++
  9426. if yyhl6 {
  9427. yyb6 = yyj6 > l
  9428. } else {
  9429. yyb6 = r.CheckBreak()
  9430. }
  9431. if yyb6 {
  9432. break
  9433. }
  9434. r.ReadArrayElem()
  9435. z.DecStructFieldNotFound(yyj6-1, "")
  9436. }
  9437. r.ReadArrayEnd()
  9438. }
  9439. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  9440. var h codecSelfer19780
  9441. z, r := GenHelperEncoder(e)
  9442. _, _, _ = h, z, r
  9443. if false {
  9444. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9445. z.EncExtension(x, yyxt1)
  9446. } else {
  9447. r.EncodeInt(int64(x))
  9448. }
  9449. }
  9450. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  9451. var h codecSelfer19780
  9452. z, r := GenHelperDecoder(d)
  9453. _, _, _ = h, z, r
  9454. if false {
  9455. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9456. z.DecExtension(x, yyxt1)
  9457. } else {
  9458. *x = (wrapInt64)(r.DecodeInt64())
  9459. }
  9460. }
  9461. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  9462. var h codecSelfer19780
  9463. z, r := GenHelperEncoder(e)
  9464. _, _, _ = h, z, r
  9465. if false {
  9466. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9467. z.EncExtension(x, yyxt1)
  9468. } else {
  9469. r.EncodeUint(uint64(x))
  9470. }
  9471. }
  9472. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  9473. var h codecSelfer19780
  9474. z, r := GenHelperDecoder(d)
  9475. _, _, _ = h, z, r
  9476. if false {
  9477. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9478. z.DecExtension(x, yyxt1)
  9479. } else {
  9480. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  9481. }
  9482. }
  9483. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  9484. var h codecSelfer19780
  9485. z, r := GenHelperEncoder(e)
  9486. _, _, _ = h, z, r
  9487. if x == nil {
  9488. r.EncodeNil()
  9489. } else {
  9490. if false {
  9491. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9492. z.EncExtension(x, yyxt1)
  9493. } else {
  9494. h.encwrapBytes((wrapBytes)(x), e)
  9495. }
  9496. }
  9497. }
  9498. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  9499. var h codecSelfer19780
  9500. z, r := GenHelperDecoder(d)
  9501. _, _, _ = h, z, r
  9502. if false {
  9503. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9504. z.DecExtension(x, yyxt1)
  9505. } else {
  9506. h.decwrapBytes((*wrapBytes)(x), d)
  9507. }
  9508. }
  9509. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  9510. var h codecSelfer19780
  9511. z, r := GenHelperEncoder(e)
  9512. _, _, _ = h, z, r
  9513. if x == nil {
  9514. r.EncodeNil()
  9515. } else {
  9516. if false {
  9517. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9518. z.EncExtension(x, yyxt1)
  9519. } else {
  9520. yysep2 := !z.EncBinary()
  9521. yy2arr2 := z.EncBasicHandle().StructToArray
  9522. _, _ = yysep2, yy2arr2
  9523. const yyr2 bool = false // struct tag has 'toArray'
  9524. if yyr2 || yy2arr2 {
  9525. r.WriteArrayStart(5)
  9526. } else {
  9527. r.WriteMapStart(5)
  9528. }
  9529. if yyr2 || yy2arr2 {
  9530. r.WriteArrayElem()
  9531. if x.Islice == nil {
  9532. r.EncodeNil()
  9533. } else {
  9534. if false {
  9535. } else {
  9536. z.F.EncSliceIntfV(x.Islice, e)
  9537. }
  9538. }
  9539. } else {
  9540. r.WriteMapElemKey()
  9541. if z.IsJSONHandle() {
  9542. z.WriteStr("\"Islice\"")
  9543. } else {
  9544. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  9545. }
  9546. r.WriteMapElemValue()
  9547. if x.Islice == nil {
  9548. r.EncodeNil()
  9549. } else {
  9550. if false {
  9551. } else {
  9552. z.F.EncSliceIntfV(x.Islice, e)
  9553. }
  9554. }
  9555. }
  9556. if yyr2 || yy2arr2 {
  9557. r.WriteArrayElem()
  9558. if x.Ms == nil {
  9559. r.EncodeNil()
  9560. } else {
  9561. if false {
  9562. } else {
  9563. z.F.EncMapStringIntfV(x.Ms, e)
  9564. }
  9565. }
  9566. } else {
  9567. r.WriteMapElemKey()
  9568. if z.IsJSONHandle() {
  9569. z.WriteStr("\"Ms\"")
  9570. } else {
  9571. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  9572. }
  9573. r.WriteMapElemValue()
  9574. if x.Ms == nil {
  9575. r.EncodeNil()
  9576. } else {
  9577. if false {
  9578. } else {
  9579. z.F.EncMapStringIntfV(x.Ms, e)
  9580. }
  9581. }
  9582. }
  9583. if yyr2 || yy2arr2 {
  9584. r.WriteArrayElem()
  9585. if x.Nintf == nil {
  9586. r.EncodeNil()
  9587. } else {
  9588. if false {
  9589. } else {
  9590. z.EncFallback(x.Nintf)
  9591. }
  9592. }
  9593. } else {
  9594. r.WriteMapElemKey()
  9595. if z.IsJSONHandle() {
  9596. z.WriteStr("\"Nintf\"")
  9597. } else {
  9598. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  9599. }
  9600. r.WriteMapElemValue()
  9601. if x.Nintf == nil {
  9602. r.EncodeNil()
  9603. } else {
  9604. if false {
  9605. } else {
  9606. z.EncFallback(x.Nintf)
  9607. }
  9608. }
  9609. }
  9610. if yyr2 || yy2arr2 {
  9611. r.WriteArrayElem()
  9612. if false {
  9613. } else if !z.EncBasicHandle().TimeNotBuiltin {
  9614. r.EncodeTime(x.T)
  9615. } else if yyxt13 := z.Extension(z.I2Rtid(x.T)); yyxt13 != nil {
  9616. z.EncExtension(x.T, yyxt13)
  9617. } else if z.EncBinary() {
  9618. z.EncBinaryMarshal(x.T)
  9619. } else if !z.EncBinary() && z.IsJSONHandle() {
  9620. z.EncJSONMarshal(x.T)
  9621. } else {
  9622. z.EncFallback(x.T)
  9623. }
  9624. } else {
  9625. r.WriteMapElemKey()
  9626. if z.IsJSONHandle() {
  9627. z.WriteStr("\"T\"")
  9628. } else {
  9629. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  9630. }
  9631. r.WriteMapElemValue()
  9632. if false {
  9633. } else if !z.EncBasicHandle().TimeNotBuiltin {
  9634. r.EncodeTime(x.T)
  9635. } else if yyxt14 := z.Extension(z.I2Rtid(x.T)); yyxt14 != nil {
  9636. z.EncExtension(x.T, yyxt14)
  9637. } else if z.EncBinary() {
  9638. z.EncBinaryMarshal(x.T)
  9639. } else if !z.EncBinary() && z.IsJSONHandle() {
  9640. z.EncJSONMarshal(x.T)
  9641. } else {
  9642. z.EncFallback(x.T)
  9643. }
  9644. }
  9645. var yyn15 bool
  9646. if x.Tptr == nil {
  9647. yyn15 = true
  9648. goto LABEL15
  9649. }
  9650. LABEL15:
  9651. if yyr2 || yy2arr2 {
  9652. if yyn15 {
  9653. r.WriteArrayElem()
  9654. r.EncodeNil()
  9655. } else {
  9656. r.WriteArrayElem()
  9657. if x.Tptr == nil {
  9658. r.EncodeNil()
  9659. } else {
  9660. yy16 := *x.Tptr
  9661. if false {
  9662. } else if !z.EncBasicHandle().TimeNotBuiltin {
  9663. r.EncodeTime(yy16)
  9664. } else if yyxt17 := z.Extension(z.I2Rtid(yy16)); yyxt17 != nil {
  9665. z.EncExtension(yy16, yyxt17)
  9666. } else if z.EncBinary() {
  9667. z.EncBinaryMarshal(yy16)
  9668. } else if !z.EncBinary() && z.IsJSONHandle() {
  9669. z.EncJSONMarshal(yy16)
  9670. } else {
  9671. z.EncFallback(yy16)
  9672. }
  9673. }
  9674. }
  9675. } else {
  9676. r.WriteMapElemKey()
  9677. if z.IsJSONHandle() {
  9678. z.WriteStr("\"Tptr\"")
  9679. } else {
  9680. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  9681. }
  9682. r.WriteMapElemValue()
  9683. if yyn15 {
  9684. r.EncodeNil()
  9685. } else {
  9686. if x.Tptr == nil {
  9687. r.EncodeNil()
  9688. } else {
  9689. yy18 := *x.Tptr
  9690. if false {
  9691. } else if !z.EncBasicHandle().TimeNotBuiltin {
  9692. r.EncodeTime(yy18)
  9693. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  9694. z.EncExtension(yy18, yyxt19)
  9695. } else if z.EncBinary() {
  9696. z.EncBinaryMarshal(yy18)
  9697. } else if !z.EncBinary() && z.IsJSONHandle() {
  9698. z.EncJSONMarshal(yy18)
  9699. } else {
  9700. z.EncFallback(yy18)
  9701. }
  9702. }
  9703. }
  9704. }
  9705. if yyr2 || yy2arr2 {
  9706. r.WriteArrayEnd()
  9707. } else {
  9708. r.WriteMapEnd()
  9709. }
  9710. }
  9711. }
  9712. }
  9713. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  9714. var h codecSelfer19780
  9715. z, r := GenHelperDecoder(d)
  9716. _, _, _ = h, z, r
  9717. if false {
  9718. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9719. z.DecExtension(x, yyxt1)
  9720. } else {
  9721. yyct2 := r.ContainerType()
  9722. if yyct2 == codecSelferValueTypeMap19780 {
  9723. yyl2 := r.ReadMapStart()
  9724. if yyl2 == 0 {
  9725. r.ReadMapEnd()
  9726. } else {
  9727. x.codecDecodeSelfFromMap(yyl2, d)
  9728. }
  9729. } else if yyct2 == codecSelferValueTypeArray19780 {
  9730. yyl2 := r.ReadArrayStart()
  9731. if yyl2 == 0 {
  9732. r.ReadArrayEnd()
  9733. } else {
  9734. x.codecDecodeSelfFromArray(yyl2, d)
  9735. }
  9736. } else {
  9737. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9738. }
  9739. }
  9740. }
  9741. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  9742. var h codecSelfer19780
  9743. z, r := GenHelperDecoder(d)
  9744. _, _, _ = h, z, r
  9745. var yyhl3 bool = l >= 0
  9746. for yyj3 := 0; ; yyj3++ {
  9747. if yyhl3 {
  9748. if yyj3 >= l {
  9749. break
  9750. }
  9751. } else {
  9752. if r.CheckBreak() {
  9753. break
  9754. }
  9755. }
  9756. r.ReadMapElemKey()
  9757. yys3 := z.StringView(r.DecodeStringAsBytes())
  9758. r.ReadMapElemValue()
  9759. switch yys3 {
  9760. case "Islice":
  9761. if r.TryDecodeAsNil() {
  9762. x.Islice = nil
  9763. } else {
  9764. if false {
  9765. } else {
  9766. z.F.DecSliceIntfX(&x.Islice, d)
  9767. }
  9768. }
  9769. case "Ms":
  9770. if r.TryDecodeAsNil() {
  9771. x.Ms = nil
  9772. } else {
  9773. if false {
  9774. } else {
  9775. z.F.DecMapStringIntfX(&x.Ms, d)
  9776. }
  9777. }
  9778. case "Nintf":
  9779. if r.TryDecodeAsNil() {
  9780. x.Nintf = nil
  9781. } else {
  9782. if false {
  9783. } else {
  9784. z.DecFallback(&x.Nintf, true)
  9785. }
  9786. }
  9787. case "T":
  9788. if r.TryDecodeAsNil() {
  9789. x.T = time.Time{}
  9790. } else {
  9791. if false {
  9792. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9793. x.T = r.DecodeTime()
  9794. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  9795. z.DecExtension(x.T, yyxt11)
  9796. } else if z.DecBinary() {
  9797. z.DecBinaryUnmarshal(&x.T)
  9798. } else if !z.DecBinary() && z.IsJSONHandle() {
  9799. z.DecJSONUnmarshal(&x.T)
  9800. } else {
  9801. z.DecFallback(&x.T, false)
  9802. }
  9803. }
  9804. case "Tptr":
  9805. if r.TryDecodeAsNil() {
  9806. if true && x.Tptr != nil {
  9807. x.Tptr = nil
  9808. }
  9809. } else {
  9810. if x.Tptr == nil {
  9811. x.Tptr = new(time.Time)
  9812. }
  9813. if false {
  9814. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9815. *x.Tptr = r.DecodeTime()
  9816. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  9817. z.DecExtension(x.Tptr, yyxt13)
  9818. } else if z.DecBinary() {
  9819. z.DecBinaryUnmarshal(x.Tptr)
  9820. } else if !z.DecBinary() && z.IsJSONHandle() {
  9821. z.DecJSONUnmarshal(x.Tptr)
  9822. } else {
  9823. z.DecFallback(x.Tptr, false)
  9824. }
  9825. }
  9826. default:
  9827. z.DecStructFieldNotFound(-1, yys3)
  9828. } // end switch yys3
  9829. } // end for yyj3
  9830. r.ReadMapEnd()
  9831. }
  9832. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  9833. var h codecSelfer19780
  9834. z, r := GenHelperDecoder(d)
  9835. _, _, _ = h, z, r
  9836. var yyj14 int
  9837. var yyb14 bool
  9838. var yyhl14 bool = l >= 0
  9839. yyj14++
  9840. if yyhl14 {
  9841. yyb14 = yyj14 > l
  9842. } else {
  9843. yyb14 = r.CheckBreak()
  9844. }
  9845. if yyb14 {
  9846. r.ReadArrayEnd()
  9847. return
  9848. }
  9849. r.ReadArrayElem()
  9850. if r.TryDecodeAsNil() {
  9851. x.Islice = nil
  9852. } else {
  9853. if false {
  9854. } else {
  9855. z.F.DecSliceIntfX(&x.Islice, d)
  9856. }
  9857. }
  9858. yyj14++
  9859. if yyhl14 {
  9860. yyb14 = yyj14 > l
  9861. } else {
  9862. yyb14 = r.CheckBreak()
  9863. }
  9864. if yyb14 {
  9865. r.ReadArrayEnd()
  9866. return
  9867. }
  9868. r.ReadArrayElem()
  9869. if r.TryDecodeAsNil() {
  9870. x.Ms = nil
  9871. } else {
  9872. if false {
  9873. } else {
  9874. z.F.DecMapStringIntfX(&x.Ms, d)
  9875. }
  9876. }
  9877. yyj14++
  9878. if yyhl14 {
  9879. yyb14 = yyj14 > l
  9880. } else {
  9881. yyb14 = r.CheckBreak()
  9882. }
  9883. if yyb14 {
  9884. r.ReadArrayEnd()
  9885. return
  9886. }
  9887. r.ReadArrayElem()
  9888. if r.TryDecodeAsNil() {
  9889. x.Nintf = nil
  9890. } else {
  9891. if false {
  9892. } else {
  9893. z.DecFallback(&x.Nintf, true)
  9894. }
  9895. }
  9896. yyj14++
  9897. if yyhl14 {
  9898. yyb14 = yyj14 > l
  9899. } else {
  9900. yyb14 = r.CheckBreak()
  9901. }
  9902. if yyb14 {
  9903. r.ReadArrayEnd()
  9904. return
  9905. }
  9906. r.ReadArrayElem()
  9907. if r.TryDecodeAsNil() {
  9908. x.T = time.Time{}
  9909. } else {
  9910. if false {
  9911. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9912. x.T = r.DecodeTime()
  9913. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  9914. z.DecExtension(x.T, yyxt22)
  9915. } else if z.DecBinary() {
  9916. z.DecBinaryUnmarshal(&x.T)
  9917. } else if !z.DecBinary() && z.IsJSONHandle() {
  9918. z.DecJSONUnmarshal(&x.T)
  9919. } else {
  9920. z.DecFallback(&x.T, false)
  9921. }
  9922. }
  9923. yyj14++
  9924. if yyhl14 {
  9925. yyb14 = yyj14 > l
  9926. } else {
  9927. yyb14 = r.CheckBreak()
  9928. }
  9929. if yyb14 {
  9930. r.ReadArrayEnd()
  9931. return
  9932. }
  9933. r.ReadArrayElem()
  9934. if r.TryDecodeAsNil() {
  9935. if true && x.Tptr != nil {
  9936. x.Tptr = nil
  9937. }
  9938. } else {
  9939. if x.Tptr == nil {
  9940. x.Tptr = new(time.Time)
  9941. }
  9942. if false {
  9943. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9944. *x.Tptr = r.DecodeTime()
  9945. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  9946. z.DecExtension(x.Tptr, yyxt24)
  9947. } else if z.DecBinary() {
  9948. z.DecBinaryUnmarshal(x.Tptr)
  9949. } else if !z.DecBinary() && z.IsJSONHandle() {
  9950. z.DecJSONUnmarshal(x.Tptr)
  9951. } else {
  9952. z.DecFallback(x.Tptr, false)
  9953. }
  9954. }
  9955. for {
  9956. yyj14++
  9957. if yyhl14 {
  9958. yyb14 = yyj14 > l
  9959. } else {
  9960. yyb14 = r.CheckBreak()
  9961. }
  9962. if yyb14 {
  9963. break
  9964. }
  9965. r.ReadArrayElem()
  9966. z.DecStructFieldNotFound(yyj14-1, "")
  9967. }
  9968. r.ReadArrayEnd()
  9969. }
  9970. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  9971. var h codecSelfer19780
  9972. z, r := GenHelperEncoder(e)
  9973. _, _, _ = h, z, r
  9974. if x == nil {
  9975. r.EncodeNil()
  9976. } else {
  9977. if false {
  9978. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9979. z.EncExtension(x, yyxt1)
  9980. } else {
  9981. yysep2 := !z.EncBinary()
  9982. yy2arr2 := z.EncBasicHandle().StructToArray
  9983. _, _ = yysep2, yy2arr2
  9984. const yyr2 bool = false // struct tag has 'toArray'
  9985. if yyr2 || yy2arr2 {
  9986. r.WriteArrayStart(2)
  9987. } else {
  9988. r.WriteMapStart(2)
  9989. }
  9990. if yyr2 || yy2arr2 {
  9991. r.WriteArrayElem()
  9992. if false {
  9993. } else {
  9994. if z.EncBasicHandle().StringToRaw {
  9995. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9996. } else {
  9997. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9998. }
  9999. }
  10000. } else {
  10001. r.WriteMapElemKey()
  10002. if z.IsJSONHandle() {
  10003. z.WriteStr("\"S\"")
  10004. } else {
  10005. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10006. }
  10007. r.WriteMapElemValue()
  10008. if false {
  10009. } else {
  10010. if z.EncBasicHandle().StringToRaw {
  10011. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10012. } else {
  10013. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10014. }
  10015. }
  10016. }
  10017. if yyr2 || yy2arr2 {
  10018. r.WriteArrayElem()
  10019. if false {
  10020. } else {
  10021. r.EncodeBool(bool(x.B))
  10022. }
  10023. } else {
  10024. r.WriteMapElemKey()
  10025. if z.IsJSONHandle() {
  10026. z.WriteStr("\"B\"")
  10027. } else {
  10028. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10029. }
  10030. r.WriteMapElemValue()
  10031. if false {
  10032. } else {
  10033. r.EncodeBool(bool(x.B))
  10034. }
  10035. }
  10036. if yyr2 || yy2arr2 {
  10037. r.WriteArrayEnd()
  10038. } else {
  10039. r.WriteMapEnd()
  10040. }
  10041. }
  10042. }
  10043. }
  10044. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  10045. var h codecSelfer19780
  10046. z, r := GenHelperDecoder(d)
  10047. _, _, _ = h, z, r
  10048. if false {
  10049. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10050. z.DecExtension(x, yyxt1)
  10051. } else {
  10052. yyct2 := r.ContainerType()
  10053. if yyct2 == codecSelferValueTypeMap19780 {
  10054. yyl2 := r.ReadMapStart()
  10055. if yyl2 == 0 {
  10056. r.ReadMapEnd()
  10057. } else {
  10058. x.codecDecodeSelfFromMap(yyl2, d)
  10059. }
  10060. } else if yyct2 == codecSelferValueTypeArray19780 {
  10061. yyl2 := r.ReadArrayStart()
  10062. if yyl2 == 0 {
  10063. r.ReadArrayEnd()
  10064. } else {
  10065. x.codecDecodeSelfFromArray(yyl2, d)
  10066. }
  10067. } else {
  10068. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10069. }
  10070. }
  10071. }
  10072. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  10073. var h codecSelfer19780
  10074. z, r := GenHelperDecoder(d)
  10075. _, _, _ = h, z, r
  10076. var yyhl3 bool = l >= 0
  10077. for yyj3 := 0; ; yyj3++ {
  10078. if yyhl3 {
  10079. if yyj3 >= l {
  10080. break
  10081. }
  10082. } else {
  10083. if r.CheckBreak() {
  10084. break
  10085. }
  10086. }
  10087. r.ReadMapElemKey()
  10088. yys3 := z.StringView(r.DecodeStringAsBytes())
  10089. r.ReadMapElemValue()
  10090. switch yys3 {
  10091. case "S":
  10092. if r.TryDecodeAsNil() {
  10093. x.S = ""
  10094. } else {
  10095. x.S = (string)(r.DecodeString())
  10096. }
  10097. case "B":
  10098. if r.TryDecodeAsNil() {
  10099. x.B = false
  10100. } else {
  10101. x.B = (bool)(r.DecodeBool())
  10102. }
  10103. default:
  10104. z.DecStructFieldNotFound(-1, yys3)
  10105. } // end switch yys3
  10106. } // end for yyj3
  10107. r.ReadMapEnd()
  10108. }
  10109. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  10110. var h codecSelfer19780
  10111. z, r := GenHelperDecoder(d)
  10112. _, _, _ = h, z, r
  10113. var yyj6 int
  10114. var yyb6 bool
  10115. var yyhl6 bool = l >= 0
  10116. yyj6++
  10117. if yyhl6 {
  10118. yyb6 = yyj6 > l
  10119. } else {
  10120. yyb6 = r.CheckBreak()
  10121. }
  10122. if yyb6 {
  10123. r.ReadArrayEnd()
  10124. return
  10125. }
  10126. r.ReadArrayElem()
  10127. if r.TryDecodeAsNil() {
  10128. x.S = ""
  10129. } else {
  10130. x.S = (string)(r.DecodeString())
  10131. }
  10132. yyj6++
  10133. if yyhl6 {
  10134. yyb6 = yyj6 > l
  10135. } else {
  10136. yyb6 = r.CheckBreak()
  10137. }
  10138. if yyb6 {
  10139. r.ReadArrayEnd()
  10140. return
  10141. }
  10142. r.ReadArrayElem()
  10143. if r.TryDecodeAsNil() {
  10144. x.B = false
  10145. } else {
  10146. x.B = (bool)(r.DecodeBool())
  10147. }
  10148. for {
  10149. yyj6++
  10150. if yyhl6 {
  10151. yyb6 = yyj6 > l
  10152. } else {
  10153. yyb6 = r.CheckBreak()
  10154. }
  10155. if yyb6 {
  10156. break
  10157. }
  10158. r.ReadArrayElem()
  10159. z.DecStructFieldNotFound(yyj6-1, "")
  10160. }
  10161. r.ReadArrayEnd()
  10162. }
  10163. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  10164. var h codecSelfer19780
  10165. z, r := GenHelperEncoder(e)
  10166. _, _, _ = h, z, r
  10167. if x == nil {
  10168. r.EncodeNil()
  10169. } else {
  10170. if false {
  10171. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10172. z.EncExtension(x, yyxt1)
  10173. } else {
  10174. yysep2 := !z.EncBinary()
  10175. yy2arr2 := z.EncBasicHandle().StructToArray
  10176. _, _ = yysep2, yy2arr2
  10177. const yyr2 bool = false // struct tag has 'toArray'
  10178. if yyr2 || yy2arr2 {
  10179. r.WriteArrayStart(4)
  10180. } else {
  10181. r.WriteMapStart(4)
  10182. }
  10183. if yyr2 || yy2arr2 {
  10184. r.WriteArrayElem()
  10185. if false {
  10186. } else {
  10187. if z.EncBasicHandle().StringToRaw {
  10188. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10189. } else {
  10190. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10191. }
  10192. }
  10193. } else {
  10194. r.WriteMapElemKey()
  10195. if z.IsJSONHandle() {
  10196. z.WriteStr("\"S\"")
  10197. } else {
  10198. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10199. }
  10200. r.WriteMapElemValue()
  10201. if false {
  10202. } else {
  10203. if z.EncBasicHandle().StringToRaw {
  10204. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10205. } else {
  10206. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10207. }
  10208. }
  10209. }
  10210. if yyr2 || yy2arr2 {
  10211. r.WriteArrayElem()
  10212. if false {
  10213. } else {
  10214. r.EncodeBool(bool(x.B))
  10215. }
  10216. } else {
  10217. r.WriteMapElemKey()
  10218. if z.IsJSONHandle() {
  10219. z.WriteStr("\"B\"")
  10220. } else {
  10221. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10222. }
  10223. r.WriteMapElemValue()
  10224. if false {
  10225. } else {
  10226. r.EncodeBool(bool(x.B))
  10227. }
  10228. }
  10229. if yyr2 || yy2arr2 {
  10230. r.WriteArrayElem()
  10231. if false {
  10232. } else {
  10233. r.EncodeFloat64(float64(x.F))
  10234. }
  10235. } else {
  10236. r.WriteMapElemKey()
  10237. if z.IsJSONHandle() {
  10238. z.WriteStr("\"F\"")
  10239. } else {
  10240. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  10241. }
  10242. r.WriteMapElemValue()
  10243. if false {
  10244. } else {
  10245. r.EncodeFloat64(float64(x.F))
  10246. }
  10247. }
  10248. if yyr2 || yy2arr2 {
  10249. r.WriteArrayElem()
  10250. if false {
  10251. } else {
  10252. r.EncodeInt(int64(x.I))
  10253. }
  10254. } else {
  10255. r.WriteMapElemKey()
  10256. if z.IsJSONHandle() {
  10257. z.WriteStr("\"I\"")
  10258. } else {
  10259. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  10260. }
  10261. r.WriteMapElemValue()
  10262. if false {
  10263. } else {
  10264. r.EncodeInt(int64(x.I))
  10265. }
  10266. }
  10267. if yyr2 || yy2arr2 {
  10268. r.WriteArrayEnd()
  10269. } else {
  10270. r.WriteMapEnd()
  10271. }
  10272. }
  10273. }
  10274. }
  10275. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  10276. var h codecSelfer19780
  10277. z, r := GenHelperDecoder(d)
  10278. _, _, _ = h, z, r
  10279. if false {
  10280. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10281. z.DecExtension(x, yyxt1)
  10282. } else {
  10283. yyct2 := r.ContainerType()
  10284. if yyct2 == codecSelferValueTypeMap19780 {
  10285. yyl2 := r.ReadMapStart()
  10286. if yyl2 == 0 {
  10287. r.ReadMapEnd()
  10288. } else {
  10289. x.codecDecodeSelfFromMap(yyl2, d)
  10290. }
  10291. } else if yyct2 == codecSelferValueTypeArray19780 {
  10292. yyl2 := r.ReadArrayStart()
  10293. if yyl2 == 0 {
  10294. r.ReadArrayEnd()
  10295. } else {
  10296. x.codecDecodeSelfFromArray(yyl2, d)
  10297. }
  10298. } else {
  10299. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10300. }
  10301. }
  10302. }
  10303. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  10304. var h codecSelfer19780
  10305. z, r := GenHelperDecoder(d)
  10306. _, _, _ = h, z, r
  10307. var yyhl3 bool = l >= 0
  10308. for yyj3 := 0; ; yyj3++ {
  10309. if yyhl3 {
  10310. if yyj3 >= l {
  10311. break
  10312. }
  10313. } else {
  10314. if r.CheckBreak() {
  10315. break
  10316. }
  10317. }
  10318. r.ReadMapElemKey()
  10319. yys3 := z.StringView(r.DecodeStringAsBytes())
  10320. r.ReadMapElemValue()
  10321. switch yys3 {
  10322. case "S":
  10323. if r.TryDecodeAsNil() {
  10324. x.S = ""
  10325. } else {
  10326. x.S = (string)(r.DecodeString())
  10327. }
  10328. case "B":
  10329. if r.TryDecodeAsNil() {
  10330. x.B = false
  10331. } else {
  10332. x.B = (bool)(r.DecodeBool())
  10333. }
  10334. case "F":
  10335. if r.TryDecodeAsNil() {
  10336. x.F = 0
  10337. } else {
  10338. x.F = (float64)(r.DecodeFloat64())
  10339. }
  10340. case "I":
  10341. if r.TryDecodeAsNil() {
  10342. x.I = 0
  10343. } else {
  10344. x.I = (int64)(r.DecodeInt64())
  10345. }
  10346. default:
  10347. z.DecStructFieldNotFound(-1, yys3)
  10348. } // end switch yys3
  10349. } // end for yyj3
  10350. r.ReadMapEnd()
  10351. }
  10352. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  10353. var h codecSelfer19780
  10354. z, r := GenHelperDecoder(d)
  10355. _, _, _ = h, z, r
  10356. var yyj8 int
  10357. var yyb8 bool
  10358. var yyhl8 bool = l >= 0
  10359. yyj8++
  10360. if yyhl8 {
  10361. yyb8 = yyj8 > l
  10362. } else {
  10363. yyb8 = r.CheckBreak()
  10364. }
  10365. if yyb8 {
  10366. r.ReadArrayEnd()
  10367. return
  10368. }
  10369. r.ReadArrayElem()
  10370. if r.TryDecodeAsNil() {
  10371. x.S = ""
  10372. } else {
  10373. x.S = (string)(r.DecodeString())
  10374. }
  10375. yyj8++
  10376. if yyhl8 {
  10377. yyb8 = yyj8 > l
  10378. } else {
  10379. yyb8 = r.CheckBreak()
  10380. }
  10381. if yyb8 {
  10382. r.ReadArrayEnd()
  10383. return
  10384. }
  10385. r.ReadArrayElem()
  10386. if r.TryDecodeAsNil() {
  10387. x.B = false
  10388. } else {
  10389. x.B = (bool)(r.DecodeBool())
  10390. }
  10391. yyj8++
  10392. if yyhl8 {
  10393. yyb8 = yyj8 > l
  10394. } else {
  10395. yyb8 = r.CheckBreak()
  10396. }
  10397. if yyb8 {
  10398. r.ReadArrayEnd()
  10399. return
  10400. }
  10401. r.ReadArrayElem()
  10402. if r.TryDecodeAsNil() {
  10403. x.F = 0
  10404. } else {
  10405. x.F = (float64)(r.DecodeFloat64())
  10406. }
  10407. yyj8++
  10408. if yyhl8 {
  10409. yyb8 = yyj8 > l
  10410. } else {
  10411. yyb8 = r.CheckBreak()
  10412. }
  10413. if yyb8 {
  10414. r.ReadArrayEnd()
  10415. return
  10416. }
  10417. r.ReadArrayElem()
  10418. if r.TryDecodeAsNil() {
  10419. x.I = 0
  10420. } else {
  10421. x.I = (int64)(r.DecodeInt64())
  10422. }
  10423. for {
  10424. yyj8++
  10425. if yyhl8 {
  10426. yyb8 = yyj8 > l
  10427. } else {
  10428. yyb8 = r.CheckBreak()
  10429. }
  10430. if yyb8 {
  10431. break
  10432. }
  10433. r.ReadArrayElem()
  10434. z.DecStructFieldNotFound(yyj8-1, "")
  10435. }
  10436. r.ReadArrayEnd()
  10437. }
  10438. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  10439. var h codecSelfer19780
  10440. z, r := GenHelperEncoder(e)
  10441. _, _, _ = h, z, r
  10442. if x == nil {
  10443. r.EncodeNil()
  10444. } else {
  10445. if false {
  10446. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10447. z.EncExtension(x, yyxt1)
  10448. } else {
  10449. yysep2 := !z.EncBinary()
  10450. yy2arr2 := z.EncBasicHandle().StructToArray
  10451. _, _ = yysep2, yy2arr2
  10452. const yyr2 bool = false // struct tag has 'toArray'
  10453. var yyq2 = [73]bool{ // should field at this index be written?
  10454. x.S != "", // S
  10455. x.I64 != 0, // I64
  10456. x.I32 != 0, // I32
  10457. x.I16 != 0, // I16
  10458. x.I8 != 0, // I8
  10459. x.I64n != 0, // I64n
  10460. x.I32n != 0, // I32n
  10461. x.I16n != 0, // I16n
  10462. x.I8n != 0, // I8n
  10463. x.Ui64 != 0, // Ui64
  10464. x.Ui32 != 0, // Ui32
  10465. x.Ui16 != 0, // Ui16
  10466. x.Ui8 != 0, // Ui8
  10467. x.F64 != 0, // F64
  10468. x.F32 != 0, // F32
  10469. x.B, // B
  10470. x.By != 0, // By
  10471. len(x.Sslice) != 0, // Sslice
  10472. len(x.I64slice) != 0, // I64slice
  10473. len(x.I16slice) != 0, // I16slice
  10474. len(x.Ui64slice) != 0, // Ui64slice
  10475. len(x.Ui8slice) != 0, // Ui8slice
  10476. len(x.Bslice) != 0, // Bslice
  10477. len(x.Byslice) != 0, // Byslice
  10478. len(x.Iptrslice) != 0, // Iptrslice
  10479. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  10480. len(x.WrapSliceString) != 0, // WrapSliceString
  10481. len(x.Msi64) != 0, // Msi64
  10482. 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
  10483. len(x.SstrUi64T) != 0, // SstrUi64T
  10484. x.AS != "", // AS
  10485. x.AI64 != 0, // AI64
  10486. x.AI16 != 0, // AI16
  10487. x.AUi64 != 0, // AUi64
  10488. len(x.ASslice) != 0, // ASslice
  10489. len(x.AI64slice) != 0, // AI64slice
  10490. len(x.AUi64slice) != 0, // AUi64slice
  10491. len(x.AF64slice) != 0, // AF64slice
  10492. len(x.AF32slice) != 0, // AF32slice
  10493. len(x.AMSU16) != 0, // AMSU16
  10494. len(x.AI64arr0) != 0, // AI64arr0
  10495. len(x.A164slice0) != 0, // A164slice0
  10496. len(x.AUi64sliceN) != 0, // AUi64sliceN
  10497. len(x.AMSU16N) != 0, // AMSU16N
  10498. len(x.AMSU16E) != 0, // AMSU16E
  10499. 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.A164slice0) != 0 || len(x.NotAnon.AUi64sliceN) != 0 || len(x.NotAnon.AMSU16N) != 0 || len(x.NotAnon.AMSU16E) != 0, // NotAnon
  10500. len(x.Nmap) != 0, // Nmap
  10501. len(x.Nslice) != 0, // Nslice
  10502. x.Nint64 != nil, // Nint64
  10503. len(x.Chstr) != 0, // Chstr
  10504. len(x.Mis) != 0, // Mis
  10505. len(x.Mbu64) != 0, // Mbu64
  10506. len(x.Miwu64s) != 0, // Miwu64s
  10507. len(x.Mfwss) != 0, // Mfwss
  10508. len(x.Mf32wss) != 0, // Mf32wss
  10509. len(x.Mui2wss) != 0, // Mui2wss
  10510. len(x.Msu2wss) != 0, // Msu2wss
  10511. x.Ci64 != 0, // Ci64
  10512. len(x.Swrapbytes) != 0, // Swrapbytes
  10513. len(x.Swrapuint8) != 0, // Swrapuint8
  10514. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  10515. len(x.Ui64array) != 0, // Ui64array
  10516. len(x.Ui64slicearray) != 0, // Ui64slicearray
  10517. len(x.SintfAarray) != 0, // SintfAarray
  10518. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  10519. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  10520. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  10521. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  10522. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  10523. len(x.Mtsptr) != 0, // Mtsptr
  10524. len(x.Mts) != 0, // Mts
  10525. len(x.Its) != 0, // Its
  10526. x.Nteststruc != nil, // Nteststruc
  10527. }
  10528. _ = yyq2
  10529. if yyr2 || yy2arr2 {
  10530. r.WriteArrayStart(73)
  10531. } else {
  10532. var yynn2 int
  10533. for _, b := range yyq2 {
  10534. if b {
  10535. yynn2++
  10536. }
  10537. }
  10538. r.WriteMapStart(yynn2)
  10539. yynn2 = 0
  10540. }
  10541. if yyr2 || yy2arr2 {
  10542. r.WriteArrayElem()
  10543. if yyq2[0] {
  10544. if false {
  10545. } else {
  10546. if z.EncBasicHandle().StringToRaw {
  10547. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  10548. } else {
  10549. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  10550. }
  10551. }
  10552. } else {
  10553. if z.EncBasicHandle().StringToRaw {
  10554. r.EncodeStringBytesRaw([]byte{})
  10555. } else {
  10556. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  10557. }
  10558. }
  10559. } else {
  10560. if yyq2[0] {
  10561. r.WriteMapElemKey()
  10562. if z.IsJSONHandle() {
  10563. z.WriteStr("\"S\"")
  10564. } else {
  10565. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10566. }
  10567. r.WriteMapElemValue()
  10568. if false {
  10569. } else {
  10570. if z.EncBasicHandle().StringToRaw {
  10571. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  10572. } else {
  10573. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  10574. }
  10575. }
  10576. }
  10577. }
  10578. if yyr2 || yy2arr2 {
  10579. r.WriteArrayElem()
  10580. if yyq2[1] {
  10581. if false {
  10582. } else {
  10583. r.EncodeInt(int64(x.TestStrucCommon.I64))
  10584. }
  10585. } else {
  10586. r.EncodeInt(0)
  10587. }
  10588. } else {
  10589. if yyq2[1] {
  10590. r.WriteMapElemKey()
  10591. if z.IsJSONHandle() {
  10592. z.WriteStr("\"I64\"")
  10593. } else {
  10594. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  10595. }
  10596. r.WriteMapElemValue()
  10597. if false {
  10598. } else {
  10599. r.EncodeInt(int64(x.TestStrucCommon.I64))
  10600. }
  10601. }
  10602. }
  10603. if yyr2 || yy2arr2 {
  10604. r.WriteArrayElem()
  10605. if yyq2[2] {
  10606. if false {
  10607. } else {
  10608. r.EncodeInt(int64(x.TestStrucCommon.I32))
  10609. }
  10610. } else {
  10611. r.EncodeInt(0)
  10612. }
  10613. } else {
  10614. if yyq2[2] {
  10615. r.WriteMapElemKey()
  10616. if z.IsJSONHandle() {
  10617. z.WriteStr("\"I32\"")
  10618. } else {
  10619. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  10620. }
  10621. r.WriteMapElemValue()
  10622. if false {
  10623. } else {
  10624. r.EncodeInt(int64(x.TestStrucCommon.I32))
  10625. }
  10626. }
  10627. }
  10628. if yyr2 || yy2arr2 {
  10629. r.WriteArrayElem()
  10630. if yyq2[3] {
  10631. if false {
  10632. } else {
  10633. r.EncodeInt(int64(x.TestStrucCommon.I16))
  10634. }
  10635. } else {
  10636. r.EncodeInt(0)
  10637. }
  10638. } else {
  10639. if yyq2[3] {
  10640. r.WriteMapElemKey()
  10641. if z.IsJSONHandle() {
  10642. z.WriteStr("\"I16\"")
  10643. } else {
  10644. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  10645. }
  10646. r.WriteMapElemValue()
  10647. if false {
  10648. } else {
  10649. r.EncodeInt(int64(x.TestStrucCommon.I16))
  10650. }
  10651. }
  10652. }
  10653. if yyr2 || yy2arr2 {
  10654. r.WriteArrayElem()
  10655. if yyq2[4] {
  10656. if false {
  10657. } else {
  10658. r.EncodeInt(int64(x.TestStrucCommon.I8))
  10659. }
  10660. } else {
  10661. r.EncodeInt(0)
  10662. }
  10663. } else {
  10664. if yyq2[4] {
  10665. r.WriteMapElemKey()
  10666. if z.IsJSONHandle() {
  10667. z.WriteStr("\"I8\"")
  10668. } else {
  10669. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  10670. }
  10671. r.WriteMapElemValue()
  10672. if false {
  10673. } else {
  10674. r.EncodeInt(int64(x.TestStrucCommon.I8))
  10675. }
  10676. }
  10677. }
  10678. if yyr2 || yy2arr2 {
  10679. r.WriteArrayElem()
  10680. if yyq2[5] {
  10681. if false {
  10682. } else {
  10683. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  10684. }
  10685. } else {
  10686. r.EncodeInt(0)
  10687. }
  10688. } else {
  10689. if yyq2[5] {
  10690. r.WriteMapElemKey()
  10691. if z.IsJSONHandle() {
  10692. z.WriteStr("\"I64n\"")
  10693. } else {
  10694. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  10695. }
  10696. r.WriteMapElemValue()
  10697. if false {
  10698. } else {
  10699. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  10700. }
  10701. }
  10702. }
  10703. if yyr2 || yy2arr2 {
  10704. r.WriteArrayElem()
  10705. if yyq2[6] {
  10706. if false {
  10707. } else {
  10708. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  10709. }
  10710. } else {
  10711. r.EncodeInt(0)
  10712. }
  10713. } else {
  10714. if yyq2[6] {
  10715. r.WriteMapElemKey()
  10716. if z.IsJSONHandle() {
  10717. z.WriteStr("\"I32n\"")
  10718. } else {
  10719. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  10720. }
  10721. r.WriteMapElemValue()
  10722. if false {
  10723. } else {
  10724. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  10725. }
  10726. }
  10727. }
  10728. if yyr2 || yy2arr2 {
  10729. r.WriteArrayElem()
  10730. if yyq2[7] {
  10731. if false {
  10732. } else {
  10733. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  10734. }
  10735. } else {
  10736. r.EncodeInt(0)
  10737. }
  10738. } else {
  10739. if yyq2[7] {
  10740. r.WriteMapElemKey()
  10741. if z.IsJSONHandle() {
  10742. z.WriteStr("\"I16n\"")
  10743. } else {
  10744. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  10745. }
  10746. r.WriteMapElemValue()
  10747. if false {
  10748. } else {
  10749. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  10750. }
  10751. }
  10752. }
  10753. if yyr2 || yy2arr2 {
  10754. r.WriteArrayElem()
  10755. if yyq2[8] {
  10756. if false {
  10757. } else {
  10758. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  10759. }
  10760. } else {
  10761. r.EncodeInt(0)
  10762. }
  10763. } else {
  10764. if yyq2[8] {
  10765. r.WriteMapElemKey()
  10766. if z.IsJSONHandle() {
  10767. z.WriteStr("\"I8n\"")
  10768. } else {
  10769. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  10770. }
  10771. r.WriteMapElemValue()
  10772. if false {
  10773. } else {
  10774. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  10775. }
  10776. }
  10777. }
  10778. if yyr2 || yy2arr2 {
  10779. r.WriteArrayElem()
  10780. if yyq2[9] {
  10781. if false {
  10782. } else {
  10783. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  10784. }
  10785. } else {
  10786. r.EncodeUint(0)
  10787. }
  10788. } else {
  10789. if yyq2[9] {
  10790. r.WriteMapElemKey()
  10791. if z.IsJSONHandle() {
  10792. z.WriteStr("\"Ui64\"")
  10793. } else {
  10794. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  10795. }
  10796. r.WriteMapElemValue()
  10797. if false {
  10798. } else {
  10799. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  10800. }
  10801. }
  10802. }
  10803. if yyr2 || yy2arr2 {
  10804. r.WriteArrayElem()
  10805. if yyq2[10] {
  10806. if false {
  10807. } else {
  10808. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  10809. }
  10810. } else {
  10811. r.EncodeUint(0)
  10812. }
  10813. } else {
  10814. if yyq2[10] {
  10815. r.WriteMapElemKey()
  10816. if z.IsJSONHandle() {
  10817. z.WriteStr("\"Ui32\"")
  10818. } else {
  10819. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  10820. }
  10821. r.WriteMapElemValue()
  10822. if false {
  10823. } else {
  10824. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  10825. }
  10826. }
  10827. }
  10828. if yyr2 || yy2arr2 {
  10829. r.WriteArrayElem()
  10830. if yyq2[11] {
  10831. if false {
  10832. } else {
  10833. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  10834. }
  10835. } else {
  10836. r.EncodeUint(0)
  10837. }
  10838. } else {
  10839. if yyq2[11] {
  10840. r.WriteMapElemKey()
  10841. if z.IsJSONHandle() {
  10842. z.WriteStr("\"Ui16\"")
  10843. } else {
  10844. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  10845. }
  10846. r.WriteMapElemValue()
  10847. if false {
  10848. } else {
  10849. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  10850. }
  10851. }
  10852. }
  10853. if yyr2 || yy2arr2 {
  10854. r.WriteArrayElem()
  10855. if yyq2[12] {
  10856. if false {
  10857. } else {
  10858. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  10859. }
  10860. } else {
  10861. r.EncodeUint(0)
  10862. }
  10863. } else {
  10864. if yyq2[12] {
  10865. r.WriteMapElemKey()
  10866. if z.IsJSONHandle() {
  10867. z.WriteStr("\"Ui8\"")
  10868. } else {
  10869. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  10870. }
  10871. r.WriteMapElemValue()
  10872. if false {
  10873. } else {
  10874. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  10875. }
  10876. }
  10877. }
  10878. if yyr2 || yy2arr2 {
  10879. r.WriteArrayElem()
  10880. if yyq2[13] {
  10881. if false {
  10882. } else {
  10883. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  10884. }
  10885. } else {
  10886. r.EncodeFloat64(0)
  10887. }
  10888. } else {
  10889. if yyq2[13] {
  10890. r.WriteMapElemKey()
  10891. if z.IsJSONHandle() {
  10892. z.WriteStr("\"F64\"")
  10893. } else {
  10894. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  10895. }
  10896. r.WriteMapElemValue()
  10897. if false {
  10898. } else {
  10899. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  10900. }
  10901. }
  10902. }
  10903. if yyr2 || yy2arr2 {
  10904. r.WriteArrayElem()
  10905. if yyq2[14] {
  10906. if false {
  10907. } else {
  10908. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  10909. }
  10910. } else {
  10911. r.EncodeFloat32(0)
  10912. }
  10913. } else {
  10914. if yyq2[14] {
  10915. r.WriteMapElemKey()
  10916. if z.IsJSONHandle() {
  10917. z.WriteStr("\"F32\"")
  10918. } else {
  10919. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  10920. }
  10921. r.WriteMapElemValue()
  10922. if false {
  10923. } else {
  10924. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  10925. }
  10926. }
  10927. }
  10928. if yyr2 || yy2arr2 {
  10929. r.WriteArrayElem()
  10930. if yyq2[15] {
  10931. if false {
  10932. } else {
  10933. r.EncodeBool(bool(x.TestStrucCommon.B))
  10934. }
  10935. } else {
  10936. r.EncodeBool(false)
  10937. }
  10938. } else {
  10939. if yyq2[15] {
  10940. r.WriteMapElemKey()
  10941. if z.IsJSONHandle() {
  10942. z.WriteStr("\"B\"")
  10943. } else {
  10944. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10945. }
  10946. r.WriteMapElemValue()
  10947. if false {
  10948. } else {
  10949. r.EncodeBool(bool(x.TestStrucCommon.B))
  10950. }
  10951. }
  10952. }
  10953. if yyr2 || yy2arr2 {
  10954. r.WriteArrayElem()
  10955. if yyq2[16] {
  10956. if false {
  10957. } else {
  10958. r.EncodeUint(uint64(x.TestStrucCommon.By))
  10959. }
  10960. } else {
  10961. r.EncodeUint(0)
  10962. }
  10963. } else {
  10964. if yyq2[16] {
  10965. r.WriteMapElemKey()
  10966. if z.IsJSONHandle() {
  10967. z.WriteStr("\"By\"")
  10968. } else {
  10969. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  10970. }
  10971. r.WriteMapElemValue()
  10972. if false {
  10973. } else {
  10974. r.EncodeUint(uint64(x.TestStrucCommon.By))
  10975. }
  10976. }
  10977. }
  10978. if yyr2 || yy2arr2 {
  10979. r.WriteArrayElem()
  10980. if yyq2[17] {
  10981. if x.TestStrucCommon.Sslice == nil {
  10982. r.EncodeNil()
  10983. } else {
  10984. if false {
  10985. } else {
  10986. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  10987. }
  10988. }
  10989. } else {
  10990. r.EncodeNil()
  10991. }
  10992. } else {
  10993. if yyq2[17] {
  10994. r.WriteMapElemKey()
  10995. if z.IsJSONHandle() {
  10996. z.WriteStr("\"Sslice\"")
  10997. } else {
  10998. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  10999. }
  11000. r.WriteMapElemValue()
  11001. if x.TestStrucCommon.Sslice == nil {
  11002. r.EncodeNil()
  11003. } else {
  11004. if false {
  11005. } else {
  11006. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  11007. }
  11008. }
  11009. }
  11010. }
  11011. if yyr2 || yy2arr2 {
  11012. r.WriteArrayElem()
  11013. if yyq2[18] {
  11014. if x.TestStrucCommon.I64slice == nil {
  11015. r.EncodeNil()
  11016. } else {
  11017. if false {
  11018. } else {
  11019. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  11020. }
  11021. }
  11022. } else {
  11023. r.EncodeNil()
  11024. }
  11025. } else {
  11026. if yyq2[18] {
  11027. r.WriteMapElemKey()
  11028. if z.IsJSONHandle() {
  11029. z.WriteStr("\"I64slice\"")
  11030. } else {
  11031. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  11032. }
  11033. r.WriteMapElemValue()
  11034. if x.TestStrucCommon.I64slice == nil {
  11035. r.EncodeNil()
  11036. } else {
  11037. if false {
  11038. } else {
  11039. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  11040. }
  11041. }
  11042. }
  11043. }
  11044. if yyr2 || yy2arr2 {
  11045. r.WriteArrayElem()
  11046. if yyq2[19] {
  11047. if x.TestStrucCommon.I16slice == nil {
  11048. r.EncodeNil()
  11049. } else {
  11050. if false {
  11051. } else {
  11052. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  11053. }
  11054. }
  11055. } else {
  11056. r.EncodeNil()
  11057. }
  11058. } else {
  11059. if yyq2[19] {
  11060. r.WriteMapElemKey()
  11061. if z.IsJSONHandle() {
  11062. z.WriteStr("\"I16slice\"")
  11063. } else {
  11064. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  11065. }
  11066. r.WriteMapElemValue()
  11067. if x.TestStrucCommon.I16slice == nil {
  11068. r.EncodeNil()
  11069. } else {
  11070. if false {
  11071. } else {
  11072. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  11073. }
  11074. }
  11075. }
  11076. }
  11077. if yyr2 || yy2arr2 {
  11078. r.WriteArrayElem()
  11079. if yyq2[20] {
  11080. if x.TestStrucCommon.Ui64slice == nil {
  11081. r.EncodeNil()
  11082. } else {
  11083. if false {
  11084. } else {
  11085. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  11086. }
  11087. }
  11088. } else {
  11089. r.EncodeNil()
  11090. }
  11091. } else {
  11092. if yyq2[20] {
  11093. r.WriteMapElemKey()
  11094. if z.IsJSONHandle() {
  11095. z.WriteStr("\"Ui64slice\"")
  11096. } else {
  11097. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  11098. }
  11099. r.WriteMapElemValue()
  11100. if x.TestStrucCommon.Ui64slice == nil {
  11101. r.EncodeNil()
  11102. } else {
  11103. if false {
  11104. } else {
  11105. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  11106. }
  11107. }
  11108. }
  11109. }
  11110. if yyr2 || yy2arr2 {
  11111. r.WriteArrayElem()
  11112. if yyq2[21] {
  11113. if x.TestStrucCommon.Ui8slice == nil {
  11114. r.EncodeNil()
  11115. } else {
  11116. if false {
  11117. } else {
  11118. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  11119. }
  11120. }
  11121. } else {
  11122. r.EncodeNil()
  11123. }
  11124. } else {
  11125. if yyq2[21] {
  11126. r.WriteMapElemKey()
  11127. if z.IsJSONHandle() {
  11128. z.WriteStr("\"Ui8slice\"")
  11129. } else {
  11130. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  11131. }
  11132. r.WriteMapElemValue()
  11133. if x.TestStrucCommon.Ui8slice == nil {
  11134. r.EncodeNil()
  11135. } else {
  11136. if false {
  11137. } else {
  11138. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  11139. }
  11140. }
  11141. }
  11142. }
  11143. if yyr2 || yy2arr2 {
  11144. r.WriteArrayElem()
  11145. if yyq2[22] {
  11146. if x.TestStrucCommon.Bslice == nil {
  11147. r.EncodeNil()
  11148. } else {
  11149. if false {
  11150. } else {
  11151. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  11152. }
  11153. }
  11154. } else {
  11155. r.EncodeNil()
  11156. }
  11157. } else {
  11158. if yyq2[22] {
  11159. r.WriteMapElemKey()
  11160. if z.IsJSONHandle() {
  11161. z.WriteStr("\"Bslice\"")
  11162. } else {
  11163. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  11164. }
  11165. r.WriteMapElemValue()
  11166. if x.TestStrucCommon.Bslice == nil {
  11167. r.EncodeNil()
  11168. } else {
  11169. if false {
  11170. } else {
  11171. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  11172. }
  11173. }
  11174. }
  11175. }
  11176. if yyr2 || yy2arr2 {
  11177. r.WriteArrayElem()
  11178. if yyq2[23] {
  11179. if x.TestStrucCommon.Byslice == nil {
  11180. r.EncodeNil()
  11181. } else {
  11182. if false {
  11183. } else {
  11184. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  11185. }
  11186. }
  11187. } else {
  11188. r.EncodeNil()
  11189. }
  11190. } else {
  11191. if yyq2[23] {
  11192. r.WriteMapElemKey()
  11193. if z.IsJSONHandle() {
  11194. z.WriteStr("\"Byslice\"")
  11195. } else {
  11196. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  11197. }
  11198. r.WriteMapElemValue()
  11199. if x.TestStrucCommon.Byslice == nil {
  11200. r.EncodeNil()
  11201. } else {
  11202. if false {
  11203. } else {
  11204. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  11205. }
  11206. }
  11207. }
  11208. }
  11209. if yyr2 || yy2arr2 {
  11210. r.WriteArrayElem()
  11211. if yyq2[24] {
  11212. if x.TestStrucCommon.Iptrslice == nil {
  11213. r.EncodeNil()
  11214. } else {
  11215. if false {
  11216. } else {
  11217. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  11218. }
  11219. }
  11220. } else {
  11221. r.EncodeNil()
  11222. }
  11223. } else {
  11224. if yyq2[24] {
  11225. r.WriteMapElemKey()
  11226. if z.IsJSONHandle() {
  11227. z.WriteStr("\"Iptrslice\"")
  11228. } else {
  11229. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  11230. }
  11231. r.WriteMapElemValue()
  11232. if x.TestStrucCommon.Iptrslice == nil {
  11233. r.EncodeNil()
  11234. } else {
  11235. if false {
  11236. } else {
  11237. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  11238. }
  11239. }
  11240. }
  11241. }
  11242. if yyr2 || yy2arr2 {
  11243. r.WriteArrayElem()
  11244. if yyq2[25] {
  11245. if x.TestStrucCommon.WrapSliceInt64 == nil {
  11246. r.EncodeNil()
  11247. } else {
  11248. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  11249. }
  11250. } else {
  11251. r.EncodeNil()
  11252. }
  11253. } else {
  11254. if yyq2[25] {
  11255. r.WriteMapElemKey()
  11256. if z.IsJSONHandle() {
  11257. z.WriteStr("\"WrapSliceInt64\"")
  11258. } else {
  11259. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  11260. }
  11261. r.WriteMapElemValue()
  11262. if x.TestStrucCommon.WrapSliceInt64 == nil {
  11263. r.EncodeNil()
  11264. } else {
  11265. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  11266. }
  11267. }
  11268. }
  11269. if yyr2 || yy2arr2 {
  11270. r.WriteArrayElem()
  11271. if yyq2[26] {
  11272. if x.TestStrucCommon.WrapSliceString == nil {
  11273. r.EncodeNil()
  11274. } else {
  11275. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  11276. }
  11277. } else {
  11278. r.EncodeNil()
  11279. }
  11280. } else {
  11281. if yyq2[26] {
  11282. r.WriteMapElemKey()
  11283. if z.IsJSONHandle() {
  11284. z.WriteStr("\"WrapSliceString\"")
  11285. } else {
  11286. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  11287. }
  11288. r.WriteMapElemValue()
  11289. if x.TestStrucCommon.WrapSliceString == nil {
  11290. r.EncodeNil()
  11291. } else {
  11292. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  11293. }
  11294. }
  11295. }
  11296. if yyr2 || yy2arr2 {
  11297. r.WriteArrayElem()
  11298. if yyq2[27] {
  11299. if x.TestStrucCommon.Msi64 == nil {
  11300. r.EncodeNil()
  11301. } else {
  11302. if false {
  11303. } else {
  11304. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  11305. }
  11306. }
  11307. } else {
  11308. r.EncodeNil()
  11309. }
  11310. } else {
  11311. if yyq2[27] {
  11312. r.WriteMapElemKey()
  11313. if z.IsJSONHandle() {
  11314. z.WriteStr("\"Msi64\"")
  11315. } else {
  11316. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  11317. }
  11318. r.WriteMapElemValue()
  11319. if x.TestStrucCommon.Msi64 == nil {
  11320. r.EncodeNil()
  11321. } else {
  11322. if false {
  11323. } else {
  11324. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  11325. }
  11326. }
  11327. }
  11328. }
  11329. if yyr2 || yy2arr2 {
  11330. r.WriteArrayElem()
  11331. if yyq2[28] {
  11332. yy88 := &x.TestStrucCommon.Simplef
  11333. yy88.CodecEncodeSelf(e)
  11334. } else {
  11335. r.EncodeNil()
  11336. }
  11337. } else {
  11338. if yyq2[28] {
  11339. r.WriteMapElemKey()
  11340. if z.IsJSONHandle() {
  11341. z.WriteStr("\"Simplef\"")
  11342. } else {
  11343. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  11344. }
  11345. r.WriteMapElemValue()
  11346. yy90 := &x.TestStrucCommon.Simplef
  11347. yy90.CodecEncodeSelf(e)
  11348. }
  11349. }
  11350. if yyr2 || yy2arr2 {
  11351. r.WriteArrayElem()
  11352. if yyq2[29] {
  11353. if x.TestStrucCommon.SstrUi64T == nil {
  11354. r.EncodeNil()
  11355. } else {
  11356. if false {
  11357. } else {
  11358. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  11359. }
  11360. }
  11361. } else {
  11362. r.EncodeNil()
  11363. }
  11364. } else {
  11365. if yyq2[29] {
  11366. r.WriteMapElemKey()
  11367. if z.IsJSONHandle() {
  11368. z.WriteStr("\"SstrUi64T\"")
  11369. } else {
  11370. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  11371. }
  11372. r.WriteMapElemValue()
  11373. if x.TestStrucCommon.SstrUi64T == nil {
  11374. r.EncodeNil()
  11375. } else {
  11376. if false {
  11377. } else {
  11378. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  11379. }
  11380. }
  11381. }
  11382. }
  11383. if yyr2 || yy2arr2 {
  11384. r.WriteArrayElem()
  11385. if yyq2[30] {
  11386. if false {
  11387. } else {
  11388. if z.EncBasicHandle().StringToRaw {
  11389. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  11390. } else {
  11391. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  11392. }
  11393. }
  11394. } else {
  11395. if z.EncBasicHandle().StringToRaw {
  11396. r.EncodeStringBytesRaw([]byte{})
  11397. } else {
  11398. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  11399. }
  11400. }
  11401. } else {
  11402. if yyq2[30] {
  11403. r.WriteMapElemKey()
  11404. if z.IsJSONHandle() {
  11405. z.WriteStr("\"AS\"")
  11406. } else {
  11407. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  11408. }
  11409. r.WriteMapElemValue()
  11410. if false {
  11411. } else {
  11412. if z.EncBasicHandle().StringToRaw {
  11413. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  11414. } else {
  11415. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  11416. }
  11417. }
  11418. }
  11419. }
  11420. if yyr2 || yy2arr2 {
  11421. r.WriteArrayElem()
  11422. if yyq2[31] {
  11423. if false {
  11424. } else {
  11425. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  11426. }
  11427. } else {
  11428. r.EncodeInt(0)
  11429. }
  11430. } else {
  11431. if yyq2[31] {
  11432. r.WriteMapElemKey()
  11433. if z.IsJSONHandle() {
  11434. z.WriteStr("\"AI64\"")
  11435. } else {
  11436. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  11437. }
  11438. r.WriteMapElemValue()
  11439. if false {
  11440. } else {
  11441. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  11442. }
  11443. }
  11444. }
  11445. if yyr2 || yy2arr2 {
  11446. r.WriteArrayElem()
  11447. if yyq2[32] {
  11448. if false {
  11449. } else {
  11450. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  11451. }
  11452. } else {
  11453. r.EncodeInt(0)
  11454. }
  11455. } else {
  11456. if yyq2[32] {
  11457. r.WriteMapElemKey()
  11458. if z.IsJSONHandle() {
  11459. z.WriteStr("\"AI16\"")
  11460. } else {
  11461. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  11462. }
  11463. r.WriteMapElemValue()
  11464. if false {
  11465. } else {
  11466. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  11467. }
  11468. }
  11469. }
  11470. if yyr2 || yy2arr2 {
  11471. r.WriteArrayElem()
  11472. if yyq2[33] {
  11473. if false {
  11474. } else {
  11475. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  11476. }
  11477. } else {
  11478. r.EncodeUint(0)
  11479. }
  11480. } else {
  11481. if yyq2[33] {
  11482. r.WriteMapElemKey()
  11483. if z.IsJSONHandle() {
  11484. z.WriteStr("\"AUi64\"")
  11485. } else {
  11486. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  11487. }
  11488. r.WriteMapElemValue()
  11489. if false {
  11490. } else {
  11491. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  11492. }
  11493. }
  11494. }
  11495. if yyr2 || yy2arr2 {
  11496. r.WriteArrayElem()
  11497. if yyq2[34] {
  11498. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  11499. r.EncodeNil()
  11500. } else {
  11501. if false {
  11502. } else {
  11503. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  11504. }
  11505. }
  11506. } else {
  11507. r.EncodeNil()
  11508. }
  11509. } else {
  11510. if yyq2[34] {
  11511. r.WriteMapElemKey()
  11512. if z.IsJSONHandle() {
  11513. z.WriteStr("\"ASslice\"")
  11514. } else {
  11515. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  11516. }
  11517. r.WriteMapElemValue()
  11518. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  11519. r.EncodeNil()
  11520. } else {
  11521. if false {
  11522. } else {
  11523. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  11524. }
  11525. }
  11526. }
  11527. }
  11528. if yyr2 || yy2arr2 {
  11529. r.WriteArrayElem()
  11530. if yyq2[35] {
  11531. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  11532. r.EncodeNil()
  11533. } else {
  11534. if false {
  11535. } else {
  11536. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  11537. }
  11538. }
  11539. } else {
  11540. r.EncodeNil()
  11541. }
  11542. } else {
  11543. if yyq2[35] {
  11544. r.WriteMapElemKey()
  11545. if z.IsJSONHandle() {
  11546. z.WriteStr("\"AI64slice\"")
  11547. } else {
  11548. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  11549. }
  11550. r.WriteMapElemValue()
  11551. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  11552. r.EncodeNil()
  11553. } else {
  11554. if false {
  11555. } else {
  11556. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  11557. }
  11558. }
  11559. }
  11560. }
  11561. if yyr2 || yy2arr2 {
  11562. r.WriteArrayElem()
  11563. if yyq2[36] {
  11564. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  11565. r.EncodeNil()
  11566. } else {
  11567. if false {
  11568. } else {
  11569. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  11570. }
  11571. }
  11572. } else {
  11573. r.EncodeNil()
  11574. }
  11575. } else {
  11576. if yyq2[36] {
  11577. r.WriteMapElemKey()
  11578. if z.IsJSONHandle() {
  11579. z.WriteStr("\"AUi64slice\"")
  11580. } else {
  11581. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  11582. }
  11583. r.WriteMapElemValue()
  11584. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  11585. r.EncodeNil()
  11586. } else {
  11587. if false {
  11588. } else {
  11589. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  11590. }
  11591. }
  11592. }
  11593. }
  11594. if yyr2 || yy2arr2 {
  11595. r.WriteArrayElem()
  11596. if yyq2[37] {
  11597. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  11598. r.EncodeNil()
  11599. } else {
  11600. if false {
  11601. } else {
  11602. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  11603. }
  11604. }
  11605. } else {
  11606. r.EncodeNil()
  11607. }
  11608. } else {
  11609. if yyq2[37] {
  11610. r.WriteMapElemKey()
  11611. if z.IsJSONHandle() {
  11612. z.WriteStr("\"AF64slice\"")
  11613. } else {
  11614. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  11615. }
  11616. r.WriteMapElemValue()
  11617. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  11618. r.EncodeNil()
  11619. } else {
  11620. if false {
  11621. } else {
  11622. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  11623. }
  11624. }
  11625. }
  11626. }
  11627. if yyr2 || yy2arr2 {
  11628. r.WriteArrayElem()
  11629. if yyq2[38] {
  11630. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  11631. r.EncodeNil()
  11632. } else {
  11633. if false {
  11634. } else {
  11635. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  11636. }
  11637. }
  11638. } else {
  11639. r.EncodeNil()
  11640. }
  11641. } else {
  11642. if yyq2[38] {
  11643. r.WriteMapElemKey()
  11644. if z.IsJSONHandle() {
  11645. z.WriteStr("\"AF32slice\"")
  11646. } else {
  11647. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  11648. }
  11649. r.WriteMapElemValue()
  11650. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  11651. r.EncodeNil()
  11652. } else {
  11653. if false {
  11654. } else {
  11655. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  11656. }
  11657. }
  11658. }
  11659. }
  11660. if yyr2 || yy2arr2 {
  11661. r.WriteArrayElem()
  11662. if yyq2[39] {
  11663. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  11664. r.EncodeNil()
  11665. } else {
  11666. if false {
  11667. } else {
  11668. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  11669. }
  11670. }
  11671. } else {
  11672. r.EncodeNil()
  11673. }
  11674. } else {
  11675. if yyq2[39] {
  11676. r.WriteMapElemKey()
  11677. if z.IsJSONHandle() {
  11678. z.WriteStr("\"AMSU16\"")
  11679. } else {
  11680. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  11681. }
  11682. r.WriteMapElemValue()
  11683. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  11684. r.EncodeNil()
  11685. } else {
  11686. if false {
  11687. } else {
  11688. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  11689. }
  11690. }
  11691. }
  11692. }
  11693. if yyr2 || yy2arr2 {
  11694. r.WriteArrayElem()
  11695. if yyq2[40] {
  11696. yy126 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  11697. if false {
  11698. } else {
  11699. h.encArray0int64((*[0]int64)(yy126), e)
  11700. }
  11701. } else {
  11702. r.EncodeNil()
  11703. }
  11704. } else {
  11705. if yyq2[40] {
  11706. r.WriteMapElemKey()
  11707. if z.IsJSONHandle() {
  11708. z.WriteStr("\"AI64arr0\"")
  11709. } else {
  11710. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  11711. }
  11712. r.WriteMapElemValue()
  11713. yy128 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  11714. if false {
  11715. } else {
  11716. h.encArray0int64((*[0]int64)(yy128), e)
  11717. }
  11718. }
  11719. }
  11720. if yyr2 || yy2arr2 {
  11721. r.WriteArrayElem()
  11722. if yyq2[41] {
  11723. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  11724. r.EncodeNil()
  11725. } else {
  11726. if false {
  11727. } else {
  11728. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  11729. }
  11730. }
  11731. } else {
  11732. r.EncodeNil()
  11733. }
  11734. } else {
  11735. if yyq2[41] {
  11736. r.WriteMapElemKey()
  11737. if z.IsJSONHandle() {
  11738. z.WriteStr("\"A164slice0\"")
  11739. } else {
  11740. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  11741. }
  11742. r.WriteMapElemValue()
  11743. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  11744. r.EncodeNil()
  11745. } else {
  11746. if false {
  11747. } else {
  11748. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  11749. }
  11750. }
  11751. }
  11752. }
  11753. if yyr2 || yy2arr2 {
  11754. r.WriteArrayElem()
  11755. if yyq2[42] {
  11756. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  11757. r.EncodeNil()
  11758. } else {
  11759. if false {
  11760. } else {
  11761. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  11762. }
  11763. }
  11764. } else {
  11765. r.EncodeNil()
  11766. }
  11767. } else {
  11768. if yyq2[42] {
  11769. r.WriteMapElemKey()
  11770. if z.IsJSONHandle() {
  11771. z.WriteStr("\"AUi64sliceN\"")
  11772. } else {
  11773. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  11774. }
  11775. r.WriteMapElemValue()
  11776. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  11777. r.EncodeNil()
  11778. } else {
  11779. if false {
  11780. } else {
  11781. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  11782. }
  11783. }
  11784. }
  11785. }
  11786. if yyr2 || yy2arr2 {
  11787. r.WriteArrayElem()
  11788. if yyq2[43] {
  11789. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  11790. r.EncodeNil()
  11791. } else {
  11792. if false {
  11793. } else {
  11794. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  11795. }
  11796. }
  11797. } else {
  11798. r.EncodeNil()
  11799. }
  11800. } else {
  11801. if yyq2[43] {
  11802. r.WriteMapElemKey()
  11803. if z.IsJSONHandle() {
  11804. z.WriteStr("\"AMSU16N\"")
  11805. } else {
  11806. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  11807. }
  11808. r.WriteMapElemValue()
  11809. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  11810. r.EncodeNil()
  11811. } else {
  11812. if false {
  11813. } else {
  11814. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  11815. }
  11816. }
  11817. }
  11818. }
  11819. if yyr2 || yy2arr2 {
  11820. r.WriteArrayElem()
  11821. if yyq2[44] {
  11822. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  11823. r.EncodeNil()
  11824. } else {
  11825. if false {
  11826. } else {
  11827. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  11828. }
  11829. }
  11830. } else {
  11831. r.EncodeNil()
  11832. }
  11833. } else {
  11834. if yyq2[44] {
  11835. r.WriteMapElemKey()
  11836. if z.IsJSONHandle() {
  11837. z.WriteStr("\"AMSU16E\"")
  11838. } else {
  11839. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  11840. }
  11841. r.WriteMapElemValue()
  11842. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  11843. r.EncodeNil()
  11844. } else {
  11845. if false {
  11846. } else {
  11847. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  11848. }
  11849. }
  11850. }
  11851. }
  11852. if yyr2 || yy2arr2 {
  11853. r.WriteArrayElem()
  11854. if yyq2[45] {
  11855. yy143 := &x.TestStrucCommon.NotAnon
  11856. yy143.CodecEncodeSelf(e)
  11857. } else {
  11858. r.EncodeNil()
  11859. }
  11860. } else {
  11861. if yyq2[45] {
  11862. r.WriteMapElemKey()
  11863. if z.IsJSONHandle() {
  11864. z.WriteStr("\"NotAnon\"")
  11865. } else {
  11866. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  11867. }
  11868. r.WriteMapElemValue()
  11869. yy145 := &x.TestStrucCommon.NotAnon
  11870. yy145.CodecEncodeSelf(e)
  11871. }
  11872. }
  11873. if yyr2 || yy2arr2 {
  11874. r.WriteArrayElem()
  11875. if yyq2[46] {
  11876. if x.TestStrucCommon.Nmap == nil {
  11877. r.EncodeNil()
  11878. } else {
  11879. if false {
  11880. } else {
  11881. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  11882. }
  11883. }
  11884. } else {
  11885. r.EncodeNil()
  11886. }
  11887. } else {
  11888. if yyq2[46] {
  11889. r.WriteMapElemKey()
  11890. if z.IsJSONHandle() {
  11891. z.WriteStr("\"Nmap\"")
  11892. } else {
  11893. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  11894. }
  11895. r.WriteMapElemValue()
  11896. if x.TestStrucCommon.Nmap == nil {
  11897. r.EncodeNil()
  11898. } else {
  11899. if false {
  11900. } else {
  11901. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  11902. }
  11903. }
  11904. }
  11905. }
  11906. if yyr2 || yy2arr2 {
  11907. r.WriteArrayElem()
  11908. if yyq2[47] {
  11909. if x.TestStrucCommon.Nslice == nil {
  11910. r.EncodeNil()
  11911. } else {
  11912. if false {
  11913. } else {
  11914. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  11915. }
  11916. }
  11917. } else {
  11918. r.EncodeNil()
  11919. }
  11920. } else {
  11921. if yyq2[47] {
  11922. r.WriteMapElemKey()
  11923. if z.IsJSONHandle() {
  11924. z.WriteStr("\"Nslice\"")
  11925. } else {
  11926. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  11927. }
  11928. r.WriteMapElemValue()
  11929. if x.TestStrucCommon.Nslice == nil {
  11930. r.EncodeNil()
  11931. } else {
  11932. if false {
  11933. } else {
  11934. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  11935. }
  11936. }
  11937. }
  11938. }
  11939. var yyn153 bool
  11940. if x.TestStrucCommon.Nint64 == nil {
  11941. yyn153 = true
  11942. goto LABEL153
  11943. }
  11944. LABEL153:
  11945. if yyr2 || yy2arr2 {
  11946. if yyn153 {
  11947. r.WriteArrayElem()
  11948. r.EncodeNil()
  11949. } else {
  11950. r.WriteArrayElem()
  11951. if yyq2[48] {
  11952. if x.TestStrucCommon.Nint64 == nil {
  11953. r.EncodeNil()
  11954. } else {
  11955. yy154 := *x.TestStrucCommon.Nint64
  11956. if false {
  11957. } else {
  11958. r.EncodeInt(int64(yy154))
  11959. }
  11960. }
  11961. } else {
  11962. r.EncodeNil()
  11963. }
  11964. }
  11965. } else {
  11966. if yyq2[48] {
  11967. r.WriteMapElemKey()
  11968. if z.IsJSONHandle() {
  11969. z.WriteStr("\"Nint64\"")
  11970. } else {
  11971. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  11972. }
  11973. r.WriteMapElemValue()
  11974. if yyn153 {
  11975. r.EncodeNil()
  11976. } else {
  11977. if x.TestStrucCommon.Nint64 == nil {
  11978. r.EncodeNil()
  11979. } else {
  11980. yy156 := *x.TestStrucCommon.Nint64
  11981. if false {
  11982. } else {
  11983. r.EncodeInt(int64(yy156))
  11984. }
  11985. }
  11986. }
  11987. }
  11988. }
  11989. if yyr2 || yy2arr2 {
  11990. r.WriteArrayElem()
  11991. if yyq2[49] {
  11992. if x.Chstr == nil {
  11993. r.EncodeNil()
  11994. } else {
  11995. if false {
  11996. } else {
  11997. h.encChanstring((chan string)(x.Chstr), e)
  11998. }
  11999. }
  12000. } else {
  12001. r.EncodeNil()
  12002. }
  12003. } else {
  12004. if yyq2[49] {
  12005. r.WriteMapElemKey()
  12006. if z.IsJSONHandle() {
  12007. z.WriteStr("\"Chstr\"")
  12008. } else {
  12009. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  12010. }
  12011. r.WriteMapElemValue()
  12012. if x.Chstr == nil {
  12013. r.EncodeNil()
  12014. } else {
  12015. if false {
  12016. } else {
  12017. h.encChanstring((chan string)(x.Chstr), e)
  12018. }
  12019. }
  12020. }
  12021. }
  12022. if yyr2 || yy2arr2 {
  12023. r.WriteArrayElem()
  12024. if yyq2[50] {
  12025. if x.Mis == nil {
  12026. r.EncodeNil()
  12027. } else {
  12028. if false {
  12029. } else {
  12030. z.F.EncMapIntStringV(x.Mis, e)
  12031. }
  12032. }
  12033. } else {
  12034. r.EncodeNil()
  12035. }
  12036. } else {
  12037. if yyq2[50] {
  12038. r.WriteMapElemKey()
  12039. if z.IsJSONHandle() {
  12040. z.WriteStr("\"Mis\"")
  12041. } else {
  12042. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  12043. }
  12044. r.WriteMapElemValue()
  12045. if x.Mis == nil {
  12046. r.EncodeNil()
  12047. } else {
  12048. if false {
  12049. } else {
  12050. z.F.EncMapIntStringV(x.Mis, e)
  12051. }
  12052. }
  12053. }
  12054. }
  12055. if yyr2 || yy2arr2 {
  12056. r.WriteArrayElem()
  12057. if yyq2[51] {
  12058. if x.Mbu64 == nil {
  12059. r.EncodeNil()
  12060. } else {
  12061. if false {
  12062. } else {
  12063. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  12064. }
  12065. }
  12066. } else {
  12067. r.EncodeNil()
  12068. }
  12069. } else {
  12070. if yyq2[51] {
  12071. r.WriteMapElemKey()
  12072. if z.IsJSONHandle() {
  12073. z.WriteStr("\"Mbu64\"")
  12074. } else {
  12075. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  12076. }
  12077. r.WriteMapElemValue()
  12078. if x.Mbu64 == nil {
  12079. r.EncodeNil()
  12080. } else {
  12081. if false {
  12082. } else {
  12083. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  12084. }
  12085. }
  12086. }
  12087. }
  12088. if yyr2 || yy2arr2 {
  12089. r.WriteArrayElem()
  12090. if yyq2[52] {
  12091. if x.Miwu64s == nil {
  12092. r.EncodeNil()
  12093. } else {
  12094. if false {
  12095. } else {
  12096. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  12097. }
  12098. }
  12099. } else {
  12100. r.EncodeNil()
  12101. }
  12102. } else {
  12103. if yyq2[52] {
  12104. r.WriteMapElemKey()
  12105. if z.IsJSONHandle() {
  12106. z.WriteStr("\"Miwu64s\"")
  12107. } else {
  12108. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  12109. }
  12110. r.WriteMapElemValue()
  12111. if x.Miwu64s == nil {
  12112. r.EncodeNil()
  12113. } else {
  12114. if false {
  12115. } else {
  12116. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  12117. }
  12118. }
  12119. }
  12120. }
  12121. if yyr2 || yy2arr2 {
  12122. r.WriteArrayElem()
  12123. if yyq2[53] {
  12124. if x.Mfwss == nil {
  12125. r.EncodeNil()
  12126. } else {
  12127. if false {
  12128. } else {
  12129. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  12130. }
  12131. }
  12132. } else {
  12133. r.EncodeNil()
  12134. }
  12135. } else {
  12136. if yyq2[53] {
  12137. r.WriteMapElemKey()
  12138. if z.IsJSONHandle() {
  12139. z.WriteStr("\"Mfwss\"")
  12140. } else {
  12141. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  12142. }
  12143. r.WriteMapElemValue()
  12144. if x.Mfwss == nil {
  12145. r.EncodeNil()
  12146. } else {
  12147. if false {
  12148. } else {
  12149. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  12150. }
  12151. }
  12152. }
  12153. }
  12154. if yyr2 || yy2arr2 {
  12155. r.WriteArrayElem()
  12156. if yyq2[54] {
  12157. if x.Mf32wss == nil {
  12158. r.EncodeNil()
  12159. } else {
  12160. if false {
  12161. } else {
  12162. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  12163. }
  12164. }
  12165. } else {
  12166. r.EncodeNil()
  12167. }
  12168. } else {
  12169. if yyq2[54] {
  12170. r.WriteMapElemKey()
  12171. if z.IsJSONHandle() {
  12172. z.WriteStr("\"Mf32wss\"")
  12173. } else {
  12174. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  12175. }
  12176. r.WriteMapElemValue()
  12177. if x.Mf32wss == nil {
  12178. r.EncodeNil()
  12179. } else {
  12180. if false {
  12181. } else {
  12182. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  12183. }
  12184. }
  12185. }
  12186. }
  12187. if yyr2 || yy2arr2 {
  12188. r.WriteArrayElem()
  12189. if yyq2[55] {
  12190. if x.Mui2wss == nil {
  12191. r.EncodeNil()
  12192. } else {
  12193. if false {
  12194. } else {
  12195. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  12196. }
  12197. }
  12198. } else {
  12199. r.EncodeNil()
  12200. }
  12201. } else {
  12202. if yyq2[55] {
  12203. r.WriteMapElemKey()
  12204. if z.IsJSONHandle() {
  12205. z.WriteStr("\"Mui2wss\"")
  12206. } else {
  12207. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  12208. }
  12209. r.WriteMapElemValue()
  12210. if x.Mui2wss == nil {
  12211. r.EncodeNil()
  12212. } else {
  12213. if false {
  12214. } else {
  12215. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  12216. }
  12217. }
  12218. }
  12219. }
  12220. if yyr2 || yy2arr2 {
  12221. r.WriteArrayElem()
  12222. if yyq2[56] {
  12223. if x.Msu2wss == nil {
  12224. r.EncodeNil()
  12225. } else {
  12226. if false {
  12227. } else {
  12228. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  12229. }
  12230. }
  12231. } else {
  12232. r.EncodeNil()
  12233. }
  12234. } else {
  12235. if yyq2[56] {
  12236. r.WriteMapElemKey()
  12237. if z.IsJSONHandle() {
  12238. z.WriteStr("\"Msu2wss\"")
  12239. } else {
  12240. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  12241. }
  12242. r.WriteMapElemValue()
  12243. if x.Msu2wss == nil {
  12244. r.EncodeNil()
  12245. } else {
  12246. if false {
  12247. } else {
  12248. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  12249. }
  12250. }
  12251. }
  12252. }
  12253. if yyr2 || yy2arr2 {
  12254. r.WriteArrayElem()
  12255. if yyq2[57] {
  12256. x.Ci64.CodecEncodeSelf(e)
  12257. } else {
  12258. r.EncodeInt(0)
  12259. }
  12260. } else {
  12261. if yyq2[57] {
  12262. r.WriteMapElemKey()
  12263. if z.IsJSONHandle() {
  12264. z.WriteStr("\"Ci64\"")
  12265. } else {
  12266. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  12267. }
  12268. r.WriteMapElemValue()
  12269. x.Ci64.CodecEncodeSelf(e)
  12270. }
  12271. }
  12272. if yyr2 || yy2arr2 {
  12273. r.WriteArrayElem()
  12274. if yyq2[58] {
  12275. if x.Swrapbytes == nil {
  12276. r.EncodeNil()
  12277. } else {
  12278. if false {
  12279. } else {
  12280. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  12281. }
  12282. }
  12283. } else {
  12284. r.EncodeNil()
  12285. }
  12286. } else {
  12287. if yyq2[58] {
  12288. r.WriteMapElemKey()
  12289. if z.IsJSONHandle() {
  12290. z.WriteStr("\"Swrapbytes\"")
  12291. } else {
  12292. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  12293. }
  12294. r.WriteMapElemValue()
  12295. if x.Swrapbytes == nil {
  12296. r.EncodeNil()
  12297. } else {
  12298. if false {
  12299. } else {
  12300. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  12301. }
  12302. }
  12303. }
  12304. }
  12305. if yyr2 || yy2arr2 {
  12306. r.WriteArrayElem()
  12307. if yyq2[59] {
  12308. if x.Swrapuint8 == nil {
  12309. r.EncodeNil()
  12310. } else {
  12311. if false {
  12312. } else {
  12313. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  12314. }
  12315. }
  12316. } else {
  12317. r.EncodeNil()
  12318. }
  12319. } else {
  12320. if yyq2[59] {
  12321. r.WriteMapElemKey()
  12322. if z.IsJSONHandle() {
  12323. z.WriteStr("\"Swrapuint8\"")
  12324. } else {
  12325. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  12326. }
  12327. r.WriteMapElemValue()
  12328. if x.Swrapuint8 == nil {
  12329. r.EncodeNil()
  12330. } else {
  12331. if false {
  12332. } else {
  12333. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  12334. }
  12335. }
  12336. }
  12337. }
  12338. if yyr2 || yy2arr2 {
  12339. r.WriteArrayElem()
  12340. if yyq2[60] {
  12341. yy192 := &x.ArrStrUi64T
  12342. if false {
  12343. } else {
  12344. h.encArray4stringUint64T((*[4]stringUint64T)(yy192), e)
  12345. }
  12346. } else {
  12347. r.EncodeNil()
  12348. }
  12349. } else {
  12350. if yyq2[60] {
  12351. r.WriteMapElemKey()
  12352. if z.IsJSONHandle() {
  12353. z.WriteStr("\"ArrStrUi64T\"")
  12354. } else {
  12355. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  12356. }
  12357. r.WriteMapElemValue()
  12358. yy194 := &x.ArrStrUi64T
  12359. if false {
  12360. } else {
  12361. h.encArray4stringUint64T((*[4]stringUint64T)(yy194), e)
  12362. }
  12363. }
  12364. }
  12365. if yyr2 || yy2arr2 {
  12366. r.WriteArrayElem()
  12367. if yyq2[61] {
  12368. yy197 := &x.Ui64array
  12369. if false {
  12370. } else {
  12371. h.encArray4uint64((*[4]uint64)(yy197), e)
  12372. }
  12373. } else {
  12374. r.EncodeNil()
  12375. }
  12376. } else {
  12377. if yyq2[61] {
  12378. r.WriteMapElemKey()
  12379. if z.IsJSONHandle() {
  12380. z.WriteStr("\"Ui64array\"")
  12381. } else {
  12382. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  12383. }
  12384. r.WriteMapElemValue()
  12385. yy199 := &x.Ui64array
  12386. if false {
  12387. } else {
  12388. h.encArray4uint64((*[4]uint64)(yy199), e)
  12389. }
  12390. }
  12391. }
  12392. if yyr2 || yy2arr2 {
  12393. r.WriteArrayElem()
  12394. if yyq2[62] {
  12395. if x.Ui64slicearray == nil {
  12396. r.EncodeNil()
  12397. } else {
  12398. if false {
  12399. } else {
  12400. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  12401. }
  12402. }
  12403. } else {
  12404. r.EncodeNil()
  12405. }
  12406. } else {
  12407. if yyq2[62] {
  12408. r.WriteMapElemKey()
  12409. if z.IsJSONHandle() {
  12410. z.WriteStr("\"Ui64slicearray\"")
  12411. } else {
  12412. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  12413. }
  12414. r.WriteMapElemValue()
  12415. if x.Ui64slicearray == nil {
  12416. r.EncodeNil()
  12417. } else {
  12418. if false {
  12419. } else {
  12420. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  12421. }
  12422. }
  12423. }
  12424. }
  12425. if yyr2 || yy2arr2 {
  12426. r.WriteArrayElem()
  12427. if yyq2[63] {
  12428. if x.SintfAarray == nil {
  12429. r.EncodeNil()
  12430. } else {
  12431. if false {
  12432. } else {
  12433. z.F.EncSliceIntfV(x.SintfAarray, e)
  12434. }
  12435. }
  12436. } else {
  12437. r.EncodeNil()
  12438. }
  12439. } else {
  12440. if yyq2[63] {
  12441. r.WriteMapElemKey()
  12442. if z.IsJSONHandle() {
  12443. z.WriteStr("\"SintfAarray\"")
  12444. } else {
  12445. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  12446. }
  12447. r.WriteMapElemValue()
  12448. if x.SintfAarray == nil {
  12449. r.EncodeNil()
  12450. } else {
  12451. if false {
  12452. } else {
  12453. z.F.EncSliceIntfV(x.SintfAarray, e)
  12454. }
  12455. }
  12456. }
  12457. }
  12458. var yyn207 bool
  12459. if x.AnonInTestStrucIntf == nil {
  12460. yyn207 = true
  12461. goto LABEL207
  12462. }
  12463. LABEL207:
  12464. if yyr2 || yy2arr2 {
  12465. if yyn207 {
  12466. r.WriteArrayElem()
  12467. r.EncodeNil()
  12468. } else {
  12469. r.WriteArrayElem()
  12470. if yyq2[64] {
  12471. if x.AnonInTestStrucIntf.Islice == nil {
  12472. r.EncodeNil()
  12473. } else {
  12474. if false {
  12475. } else {
  12476. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  12477. }
  12478. }
  12479. } else {
  12480. r.EncodeNil()
  12481. }
  12482. }
  12483. } else {
  12484. if yyq2[64] {
  12485. r.WriteMapElemKey()
  12486. if z.IsJSONHandle() {
  12487. z.WriteStr("\"Islice\"")
  12488. } else {
  12489. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  12490. }
  12491. r.WriteMapElemValue()
  12492. if yyn207 {
  12493. r.EncodeNil()
  12494. } else {
  12495. if x.AnonInTestStrucIntf.Islice == nil {
  12496. r.EncodeNil()
  12497. } else {
  12498. if false {
  12499. } else {
  12500. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  12501. }
  12502. }
  12503. }
  12504. }
  12505. }
  12506. var yyn210 bool
  12507. if x.AnonInTestStrucIntf == nil {
  12508. yyn210 = true
  12509. goto LABEL210
  12510. }
  12511. LABEL210:
  12512. if yyr2 || yy2arr2 {
  12513. if yyn210 {
  12514. r.WriteArrayElem()
  12515. r.EncodeNil()
  12516. } else {
  12517. r.WriteArrayElem()
  12518. if yyq2[65] {
  12519. if x.AnonInTestStrucIntf.Ms == nil {
  12520. r.EncodeNil()
  12521. } else {
  12522. if false {
  12523. } else {
  12524. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  12525. }
  12526. }
  12527. } else {
  12528. r.EncodeNil()
  12529. }
  12530. }
  12531. } else {
  12532. if yyq2[65] {
  12533. r.WriteMapElemKey()
  12534. if z.IsJSONHandle() {
  12535. z.WriteStr("\"Ms\"")
  12536. } else {
  12537. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  12538. }
  12539. r.WriteMapElemValue()
  12540. if yyn210 {
  12541. r.EncodeNil()
  12542. } else {
  12543. if x.AnonInTestStrucIntf.Ms == nil {
  12544. r.EncodeNil()
  12545. } else {
  12546. if false {
  12547. } else {
  12548. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  12549. }
  12550. }
  12551. }
  12552. }
  12553. }
  12554. var yyn213 bool
  12555. if x.AnonInTestStrucIntf == nil {
  12556. yyn213 = true
  12557. goto LABEL213
  12558. }
  12559. LABEL213:
  12560. if yyr2 || yy2arr2 {
  12561. if yyn213 {
  12562. r.WriteArrayElem()
  12563. r.EncodeNil()
  12564. } else {
  12565. r.WriteArrayElem()
  12566. if yyq2[66] {
  12567. if x.AnonInTestStrucIntf.Nintf == nil {
  12568. r.EncodeNil()
  12569. } else {
  12570. if false {
  12571. } else {
  12572. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  12573. }
  12574. }
  12575. } else {
  12576. r.EncodeNil()
  12577. }
  12578. }
  12579. } else {
  12580. if yyq2[66] {
  12581. r.WriteMapElemKey()
  12582. if z.IsJSONHandle() {
  12583. z.WriteStr("\"Nintf\"")
  12584. } else {
  12585. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  12586. }
  12587. r.WriteMapElemValue()
  12588. if yyn213 {
  12589. r.EncodeNil()
  12590. } else {
  12591. if x.AnonInTestStrucIntf.Nintf == nil {
  12592. r.EncodeNil()
  12593. } else {
  12594. if false {
  12595. } else {
  12596. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  12597. }
  12598. }
  12599. }
  12600. }
  12601. }
  12602. var yyn216 bool
  12603. if x.AnonInTestStrucIntf == nil {
  12604. yyn216 = true
  12605. goto LABEL216
  12606. }
  12607. LABEL216:
  12608. if yyr2 || yy2arr2 {
  12609. if yyn216 {
  12610. r.WriteArrayElem()
  12611. r.EncodeNil()
  12612. } else {
  12613. r.WriteArrayElem()
  12614. if yyq2[67] {
  12615. if false {
  12616. } else if !z.EncBasicHandle().TimeNotBuiltin {
  12617. r.EncodeTime(x.AnonInTestStrucIntf.T)
  12618. } else if yyxt217 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt217 != nil {
  12619. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt217)
  12620. } else if z.EncBinary() {
  12621. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  12622. } else if !z.EncBinary() && z.IsJSONHandle() {
  12623. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  12624. } else {
  12625. z.EncFallback(x.AnonInTestStrucIntf.T)
  12626. }
  12627. } else {
  12628. r.EncodeNil()
  12629. }
  12630. }
  12631. } else {
  12632. if yyq2[67] {
  12633. r.WriteMapElemKey()
  12634. if z.IsJSONHandle() {
  12635. z.WriteStr("\"T\"")
  12636. } else {
  12637. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  12638. }
  12639. r.WriteMapElemValue()
  12640. if yyn216 {
  12641. r.EncodeNil()
  12642. } else {
  12643. if false {
  12644. } else if !z.EncBasicHandle().TimeNotBuiltin {
  12645. r.EncodeTime(x.AnonInTestStrucIntf.T)
  12646. } else if yyxt218 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt218 != nil {
  12647. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt218)
  12648. } else if z.EncBinary() {
  12649. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  12650. } else if !z.EncBinary() && z.IsJSONHandle() {
  12651. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  12652. } else {
  12653. z.EncFallback(x.AnonInTestStrucIntf.T)
  12654. }
  12655. }
  12656. }
  12657. }
  12658. var yyn219 bool
  12659. if x.AnonInTestStrucIntf == nil {
  12660. yyn219 = true
  12661. goto LABEL219
  12662. }
  12663. if x.AnonInTestStrucIntf.Tptr == nil {
  12664. yyn219 = true
  12665. goto LABEL219
  12666. }
  12667. LABEL219:
  12668. if yyr2 || yy2arr2 {
  12669. if yyn219 {
  12670. r.WriteArrayElem()
  12671. r.EncodeNil()
  12672. } else {
  12673. r.WriteArrayElem()
  12674. if yyq2[68] {
  12675. if x.AnonInTestStrucIntf.Tptr == nil {
  12676. r.EncodeNil()
  12677. } else {
  12678. yy220 := *x.AnonInTestStrucIntf.Tptr
  12679. if false {
  12680. } else if !z.EncBasicHandle().TimeNotBuiltin {
  12681. r.EncodeTime(yy220)
  12682. } else if yyxt221 := z.Extension(z.I2Rtid(yy220)); yyxt221 != nil {
  12683. z.EncExtension(yy220, yyxt221)
  12684. } else if z.EncBinary() {
  12685. z.EncBinaryMarshal(yy220)
  12686. } else if !z.EncBinary() && z.IsJSONHandle() {
  12687. z.EncJSONMarshal(yy220)
  12688. } else {
  12689. z.EncFallback(yy220)
  12690. }
  12691. }
  12692. } else {
  12693. r.EncodeNil()
  12694. }
  12695. }
  12696. } else {
  12697. if yyq2[68] {
  12698. r.WriteMapElemKey()
  12699. if z.IsJSONHandle() {
  12700. z.WriteStr("\"Tptr\"")
  12701. } else {
  12702. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  12703. }
  12704. r.WriteMapElemValue()
  12705. if yyn219 {
  12706. r.EncodeNil()
  12707. } else {
  12708. if x.AnonInTestStrucIntf.Tptr == nil {
  12709. r.EncodeNil()
  12710. } else {
  12711. yy222 := *x.AnonInTestStrucIntf.Tptr
  12712. if false {
  12713. } else if !z.EncBasicHandle().TimeNotBuiltin {
  12714. r.EncodeTime(yy222)
  12715. } else if yyxt223 := z.Extension(z.I2Rtid(yy222)); yyxt223 != nil {
  12716. z.EncExtension(yy222, yyxt223)
  12717. } else if z.EncBinary() {
  12718. z.EncBinaryMarshal(yy222)
  12719. } else if !z.EncBinary() && z.IsJSONHandle() {
  12720. z.EncJSONMarshal(yy222)
  12721. } else {
  12722. z.EncFallback(yy222)
  12723. }
  12724. }
  12725. }
  12726. }
  12727. }
  12728. if yyr2 || yy2arr2 {
  12729. r.WriteArrayElem()
  12730. if yyq2[69] {
  12731. if x.Mtsptr == nil {
  12732. r.EncodeNil()
  12733. } else {
  12734. if false {
  12735. } else {
  12736. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  12737. }
  12738. }
  12739. } else {
  12740. r.EncodeNil()
  12741. }
  12742. } else {
  12743. if yyq2[69] {
  12744. r.WriteMapElemKey()
  12745. if z.IsJSONHandle() {
  12746. z.WriteStr("\"Mtsptr\"")
  12747. } else {
  12748. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  12749. }
  12750. r.WriteMapElemValue()
  12751. if x.Mtsptr == nil {
  12752. r.EncodeNil()
  12753. } else {
  12754. if false {
  12755. } else {
  12756. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  12757. }
  12758. }
  12759. }
  12760. }
  12761. if yyr2 || yy2arr2 {
  12762. r.WriteArrayElem()
  12763. if yyq2[70] {
  12764. if x.Mts == nil {
  12765. r.EncodeNil()
  12766. } else {
  12767. if false {
  12768. } else {
  12769. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  12770. }
  12771. }
  12772. } else {
  12773. r.EncodeNil()
  12774. }
  12775. } else {
  12776. if yyq2[70] {
  12777. r.WriteMapElemKey()
  12778. if z.IsJSONHandle() {
  12779. z.WriteStr("\"Mts\"")
  12780. } else {
  12781. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  12782. }
  12783. r.WriteMapElemValue()
  12784. if x.Mts == nil {
  12785. r.EncodeNil()
  12786. } else {
  12787. if false {
  12788. } else {
  12789. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  12790. }
  12791. }
  12792. }
  12793. }
  12794. if yyr2 || yy2arr2 {
  12795. r.WriteArrayElem()
  12796. if yyq2[71] {
  12797. if x.Its == nil {
  12798. r.EncodeNil()
  12799. } else {
  12800. if false {
  12801. } else {
  12802. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  12803. }
  12804. }
  12805. } else {
  12806. r.EncodeNil()
  12807. }
  12808. } else {
  12809. if yyq2[71] {
  12810. r.WriteMapElemKey()
  12811. if z.IsJSONHandle() {
  12812. z.WriteStr("\"Its\"")
  12813. } else {
  12814. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  12815. }
  12816. r.WriteMapElemValue()
  12817. if x.Its == nil {
  12818. r.EncodeNil()
  12819. } else {
  12820. if false {
  12821. } else {
  12822. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  12823. }
  12824. }
  12825. }
  12826. }
  12827. var yyn233 bool
  12828. if x.Nteststruc == nil {
  12829. yyn233 = true
  12830. goto LABEL233
  12831. }
  12832. LABEL233:
  12833. if yyr2 || yy2arr2 {
  12834. if yyn233 {
  12835. r.WriteArrayElem()
  12836. r.EncodeNil()
  12837. } else {
  12838. r.WriteArrayElem()
  12839. if yyq2[72] {
  12840. if x.Nteststruc == nil {
  12841. r.EncodeNil()
  12842. } else {
  12843. x.Nteststruc.CodecEncodeSelf(e)
  12844. }
  12845. } else {
  12846. r.EncodeNil()
  12847. }
  12848. }
  12849. } else {
  12850. if yyq2[72] {
  12851. r.WriteMapElemKey()
  12852. if z.IsJSONHandle() {
  12853. z.WriteStr("\"Nteststruc\"")
  12854. } else {
  12855. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  12856. }
  12857. r.WriteMapElemValue()
  12858. if yyn233 {
  12859. r.EncodeNil()
  12860. } else {
  12861. if x.Nteststruc == nil {
  12862. r.EncodeNil()
  12863. } else {
  12864. x.Nteststruc.CodecEncodeSelf(e)
  12865. }
  12866. }
  12867. }
  12868. }
  12869. if yyr2 || yy2arr2 {
  12870. r.WriteArrayEnd()
  12871. } else {
  12872. r.WriteMapEnd()
  12873. }
  12874. }
  12875. }
  12876. }
  12877. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  12878. var h codecSelfer19780
  12879. z, r := GenHelperDecoder(d)
  12880. _, _, _ = h, z, r
  12881. if false {
  12882. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  12883. z.DecExtension(x, yyxt1)
  12884. } else {
  12885. yyct2 := r.ContainerType()
  12886. if yyct2 == codecSelferValueTypeMap19780 {
  12887. yyl2 := r.ReadMapStart()
  12888. if yyl2 == 0 {
  12889. r.ReadMapEnd()
  12890. } else {
  12891. x.codecDecodeSelfFromMap(yyl2, d)
  12892. }
  12893. } else if yyct2 == codecSelferValueTypeArray19780 {
  12894. yyl2 := r.ReadArrayStart()
  12895. if yyl2 == 0 {
  12896. r.ReadArrayEnd()
  12897. } else {
  12898. x.codecDecodeSelfFromArray(yyl2, d)
  12899. }
  12900. } else {
  12901. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  12902. }
  12903. }
  12904. }
  12905. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  12906. var h codecSelfer19780
  12907. z, r := GenHelperDecoder(d)
  12908. _, _, _ = h, z, r
  12909. var yyhl3 bool = l >= 0
  12910. for yyj3 := 0; ; yyj3++ {
  12911. if yyhl3 {
  12912. if yyj3 >= l {
  12913. break
  12914. }
  12915. } else {
  12916. if r.CheckBreak() {
  12917. break
  12918. }
  12919. }
  12920. r.ReadMapElemKey()
  12921. yys3 := z.StringView(r.DecodeStringAsBytes())
  12922. r.ReadMapElemValue()
  12923. switch yys3 {
  12924. case "S":
  12925. if r.TryDecodeAsNil() {
  12926. x.TestStrucCommon.S = ""
  12927. } else {
  12928. x.TestStrucCommon.S = (string)(r.DecodeString())
  12929. }
  12930. case "I64":
  12931. if r.TryDecodeAsNil() {
  12932. x.TestStrucCommon.I64 = 0
  12933. } else {
  12934. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  12935. }
  12936. case "I32":
  12937. if r.TryDecodeAsNil() {
  12938. x.TestStrucCommon.I32 = 0
  12939. } else {
  12940. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12941. }
  12942. case "I16":
  12943. if r.TryDecodeAsNil() {
  12944. x.TestStrucCommon.I16 = 0
  12945. } else {
  12946. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12947. }
  12948. case "I8":
  12949. if r.TryDecodeAsNil() {
  12950. x.TestStrucCommon.I8 = 0
  12951. } else {
  12952. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12953. }
  12954. case "I64n":
  12955. if r.TryDecodeAsNil() {
  12956. x.TestStrucCommon.I64n = 0
  12957. } else {
  12958. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  12959. }
  12960. case "I32n":
  12961. if r.TryDecodeAsNil() {
  12962. x.TestStrucCommon.I32n = 0
  12963. } else {
  12964. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12965. }
  12966. case "I16n":
  12967. if r.TryDecodeAsNil() {
  12968. x.TestStrucCommon.I16n = 0
  12969. } else {
  12970. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12971. }
  12972. case "I8n":
  12973. if r.TryDecodeAsNil() {
  12974. x.TestStrucCommon.I8n = 0
  12975. } else {
  12976. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12977. }
  12978. case "Ui64":
  12979. if r.TryDecodeAsNil() {
  12980. x.TestStrucCommon.Ui64 = 0
  12981. } else {
  12982. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  12983. }
  12984. case "Ui32":
  12985. if r.TryDecodeAsNil() {
  12986. x.TestStrucCommon.Ui32 = 0
  12987. } else {
  12988. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12989. }
  12990. case "Ui16":
  12991. if r.TryDecodeAsNil() {
  12992. x.TestStrucCommon.Ui16 = 0
  12993. } else {
  12994. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12995. }
  12996. case "Ui8":
  12997. if r.TryDecodeAsNil() {
  12998. x.TestStrucCommon.Ui8 = 0
  12999. } else {
  13000. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13001. }
  13002. case "F64":
  13003. if r.TryDecodeAsNil() {
  13004. x.TestStrucCommon.F64 = 0
  13005. } else {
  13006. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  13007. }
  13008. case "F32":
  13009. if r.TryDecodeAsNil() {
  13010. x.TestStrucCommon.F32 = 0
  13011. } else {
  13012. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  13013. }
  13014. case "B":
  13015. if r.TryDecodeAsNil() {
  13016. x.TestStrucCommon.B = false
  13017. } else {
  13018. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  13019. }
  13020. case "By":
  13021. if r.TryDecodeAsNil() {
  13022. x.TestStrucCommon.By = 0
  13023. } else {
  13024. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13025. }
  13026. case "Sslice":
  13027. if r.TryDecodeAsNil() {
  13028. x.TestStrucCommon.Sslice = nil
  13029. } else {
  13030. if false {
  13031. } else {
  13032. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  13033. }
  13034. }
  13035. case "I64slice":
  13036. if r.TryDecodeAsNil() {
  13037. x.TestStrucCommon.I64slice = nil
  13038. } else {
  13039. if false {
  13040. } else {
  13041. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  13042. }
  13043. }
  13044. case "I16slice":
  13045. if r.TryDecodeAsNil() {
  13046. x.TestStrucCommon.I16slice = nil
  13047. } else {
  13048. if false {
  13049. } else {
  13050. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  13051. }
  13052. }
  13053. case "Ui64slice":
  13054. if r.TryDecodeAsNil() {
  13055. x.TestStrucCommon.Ui64slice = nil
  13056. } else {
  13057. if false {
  13058. } else {
  13059. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  13060. }
  13061. }
  13062. case "Ui8slice":
  13063. if r.TryDecodeAsNil() {
  13064. x.TestStrucCommon.Ui8slice = nil
  13065. } else {
  13066. if false {
  13067. } else {
  13068. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  13069. }
  13070. }
  13071. case "Bslice":
  13072. if r.TryDecodeAsNil() {
  13073. x.TestStrucCommon.Bslice = nil
  13074. } else {
  13075. if false {
  13076. } else {
  13077. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  13078. }
  13079. }
  13080. case "Byslice":
  13081. if r.TryDecodeAsNil() {
  13082. x.TestStrucCommon.Byslice = nil
  13083. } else {
  13084. if false {
  13085. } else {
  13086. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  13087. }
  13088. }
  13089. case "Iptrslice":
  13090. if r.TryDecodeAsNil() {
  13091. x.TestStrucCommon.Iptrslice = nil
  13092. } else {
  13093. if false {
  13094. } else {
  13095. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  13096. }
  13097. }
  13098. case "WrapSliceInt64":
  13099. if r.TryDecodeAsNil() {
  13100. x.TestStrucCommon.WrapSliceInt64 = nil
  13101. } else {
  13102. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  13103. }
  13104. case "WrapSliceString":
  13105. if r.TryDecodeAsNil() {
  13106. x.TestStrucCommon.WrapSliceString = nil
  13107. } else {
  13108. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  13109. }
  13110. case "Msi64":
  13111. if r.TryDecodeAsNil() {
  13112. x.TestStrucCommon.Msi64 = nil
  13113. } else {
  13114. if false {
  13115. } else {
  13116. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  13117. }
  13118. }
  13119. case "Simplef":
  13120. if r.TryDecodeAsNil() {
  13121. x.TestStrucCommon.Simplef = testSimpleFields{}
  13122. } else {
  13123. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  13124. }
  13125. case "SstrUi64T":
  13126. if r.TryDecodeAsNil() {
  13127. x.TestStrucCommon.SstrUi64T = nil
  13128. } else {
  13129. if false {
  13130. } else {
  13131. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  13132. }
  13133. }
  13134. case "AS":
  13135. if r.TryDecodeAsNil() {
  13136. x.TestStrucCommon.AnonInTestStruc.AS = ""
  13137. } else {
  13138. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  13139. }
  13140. case "AI64":
  13141. if r.TryDecodeAsNil() {
  13142. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  13143. } else {
  13144. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  13145. }
  13146. case "AI16":
  13147. if r.TryDecodeAsNil() {
  13148. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  13149. } else {
  13150. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13151. }
  13152. case "AUi64":
  13153. if r.TryDecodeAsNil() {
  13154. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  13155. } else {
  13156. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  13157. }
  13158. case "ASslice":
  13159. if r.TryDecodeAsNil() {
  13160. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  13161. } else {
  13162. if false {
  13163. } else {
  13164. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  13165. }
  13166. }
  13167. case "AI64slice":
  13168. if r.TryDecodeAsNil() {
  13169. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  13170. } else {
  13171. if false {
  13172. } else {
  13173. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  13174. }
  13175. }
  13176. case "AUi64slice":
  13177. if r.TryDecodeAsNil() {
  13178. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  13179. } else {
  13180. if false {
  13181. } else {
  13182. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  13183. }
  13184. }
  13185. case "AF64slice":
  13186. if r.TryDecodeAsNil() {
  13187. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  13188. } else {
  13189. if false {
  13190. } else {
  13191. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  13192. }
  13193. }
  13194. case "AF32slice":
  13195. if r.TryDecodeAsNil() {
  13196. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  13197. } else {
  13198. if false {
  13199. } else {
  13200. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  13201. }
  13202. }
  13203. case "AMSU16":
  13204. if r.TryDecodeAsNil() {
  13205. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  13206. } else {
  13207. if false {
  13208. } else {
  13209. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  13210. }
  13211. }
  13212. case "AI64arr0":
  13213. if r.TryDecodeAsNil() {
  13214. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  13215. } else {
  13216. if false {
  13217. } else {
  13218. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  13219. }
  13220. }
  13221. case "A164slice0":
  13222. if r.TryDecodeAsNil() {
  13223. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  13224. } else {
  13225. if false {
  13226. } else {
  13227. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  13228. }
  13229. }
  13230. case "AUi64sliceN":
  13231. if r.TryDecodeAsNil() {
  13232. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  13233. } else {
  13234. if false {
  13235. } else {
  13236. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  13237. }
  13238. }
  13239. case "AMSU16N":
  13240. if r.TryDecodeAsNil() {
  13241. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  13242. } else {
  13243. if false {
  13244. } else {
  13245. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  13246. }
  13247. }
  13248. case "AMSU16E":
  13249. if r.TryDecodeAsNil() {
  13250. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  13251. } else {
  13252. if false {
  13253. } else {
  13254. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  13255. }
  13256. }
  13257. case "NotAnon":
  13258. if r.TryDecodeAsNil() {
  13259. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  13260. } else {
  13261. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  13262. }
  13263. case "Nmap":
  13264. if r.TryDecodeAsNil() {
  13265. x.TestStrucCommon.Nmap = nil
  13266. } else {
  13267. if false {
  13268. } else {
  13269. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  13270. }
  13271. }
  13272. case "Nslice":
  13273. if r.TryDecodeAsNil() {
  13274. x.TestStrucCommon.Nslice = nil
  13275. } else {
  13276. if false {
  13277. } else {
  13278. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  13279. }
  13280. }
  13281. case "Nint64":
  13282. if r.TryDecodeAsNil() {
  13283. if true && x.TestStrucCommon.Nint64 != nil {
  13284. x.TestStrucCommon.Nint64 = nil
  13285. }
  13286. } else {
  13287. if x.TestStrucCommon.Nint64 == nil {
  13288. x.TestStrucCommon.Nint64 = new(int64)
  13289. }
  13290. if false {
  13291. } else {
  13292. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  13293. }
  13294. }
  13295. case "Chstr":
  13296. if r.TryDecodeAsNil() {
  13297. x.Chstr = nil
  13298. } else {
  13299. if false {
  13300. } else {
  13301. h.decChanstring((*chan string)(&x.Chstr), d)
  13302. }
  13303. }
  13304. case "Mis":
  13305. if r.TryDecodeAsNil() {
  13306. x.Mis = nil
  13307. } else {
  13308. if false {
  13309. } else {
  13310. z.F.DecMapIntStringX(&x.Mis, d)
  13311. }
  13312. }
  13313. case "Mbu64":
  13314. if r.TryDecodeAsNil() {
  13315. x.Mbu64 = nil
  13316. } else {
  13317. if false {
  13318. } else {
  13319. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  13320. }
  13321. }
  13322. case "Miwu64s":
  13323. if r.TryDecodeAsNil() {
  13324. x.Miwu64s = nil
  13325. } else {
  13326. if false {
  13327. } else {
  13328. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  13329. }
  13330. }
  13331. case "Mfwss":
  13332. if r.TryDecodeAsNil() {
  13333. x.Mfwss = nil
  13334. } else {
  13335. if false {
  13336. } else {
  13337. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  13338. }
  13339. }
  13340. case "Mf32wss":
  13341. if r.TryDecodeAsNil() {
  13342. x.Mf32wss = nil
  13343. } else {
  13344. if false {
  13345. } else {
  13346. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  13347. }
  13348. }
  13349. case "Mui2wss":
  13350. if r.TryDecodeAsNil() {
  13351. x.Mui2wss = nil
  13352. } else {
  13353. if false {
  13354. } else {
  13355. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  13356. }
  13357. }
  13358. case "Msu2wss":
  13359. if r.TryDecodeAsNil() {
  13360. x.Msu2wss = nil
  13361. } else {
  13362. if false {
  13363. } else {
  13364. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  13365. }
  13366. }
  13367. case "Ci64":
  13368. if r.TryDecodeAsNil() {
  13369. x.Ci64 = 0
  13370. } else {
  13371. x.Ci64.CodecDecodeSelf(d)
  13372. }
  13373. case "Swrapbytes":
  13374. if r.TryDecodeAsNil() {
  13375. x.Swrapbytes = nil
  13376. } else {
  13377. if false {
  13378. } else {
  13379. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  13380. }
  13381. }
  13382. case "Swrapuint8":
  13383. if r.TryDecodeAsNil() {
  13384. x.Swrapuint8 = nil
  13385. } else {
  13386. if false {
  13387. } else {
  13388. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  13389. }
  13390. }
  13391. case "ArrStrUi64T":
  13392. if r.TryDecodeAsNil() {
  13393. x.ArrStrUi64T = [4]stringUint64T{}
  13394. } else {
  13395. if false {
  13396. } else {
  13397. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  13398. }
  13399. }
  13400. case "Ui64array":
  13401. if r.TryDecodeAsNil() {
  13402. x.Ui64array = [4]uint64{}
  13403. } else {
  13404. if false {
  13405. } else {
  13406. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  13407. }
  13408. }
  13409. case "Ui64slicearray":
  13410. if r.TryDecodeAsNil() {
  13411. x.Ui64slicearray = nil
  13412. } else {
  13413. if false {
  13414. } else {
  13415. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  13416. }
  13417. }
  13418. case "SintfAarray":
  13419. if r.TryDecodeAsNil() {
  13420. x.SintfAarray = nil
  13421. } else {
  13422. if false {
  13423. } else {
  13424. z.F.DecSliceIntfX(&x.SintfAarray, d)
  13425. }
  13426. }
  13427. case "Islice":
  13428. if r.TryDecodeAsNil() {
  13429. if true && x.AnonInTestStrucIntf != nil {
  13430. x.AnonInTestStrucIntf.Islice = nil
  13431. }
  13432. } else {
  13433. if x.AnonInTestStrucIntf == nil {
  13434. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13435. }
  13436. if false {
  13437. } else {
  13438. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  13439. }
  13440. }
  13441. case "Ms":
  13442. if r.TryDecodeAsNil() {
  13443. if true && x.AnonInTestStrucIntf != nil {
  13444. x.AnonInTestStrucIntf.Ms = nil
  13445. }
  13446. } else {
  13447. if x.AnonInTestStrucIntf == nil {
  13448. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13449. }
  13450. if false {
  13451. } else {
  13452. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  13453. }
  13454. }
  13455. case "Nintf":
  13456. if r.TryDecodeAsNil() {
  13457. if true && x.AnonInTestStrucIntf != nil {
  13458. x.AnonInTestStrucIntf.Nintf = nil
  13459. }
  13460. } else {
  13461. if x.AnonInTestStrucIntf == nil {
  13462. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13463. }
  13464. if false {
  13465. } else {
  13466. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  13467. }
  13468. }
  13469. case "T":
  13470. if r.TryDecodeAsNil() {
  13471. if true && x.AnonInTestStrucIntf != nil {
  13472. x.AnonInTestStrucIntf.T = time.Time{}
  13473. }
  13474. } else {
  13475. if x.AnonInTestStrucIntf == nil {
  13476. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13477. }
  13478. if false {
  13479. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13480. x.AnonInTestStrucIntf.T = r.DecodeTime()
  13481. } else if yyxt113 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt113 != nil {
  13482. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt113)
  13483. } else if z.DecBinary() {
  13484. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  13485. } else if !z.DecBinary() && z.IsJSONHandle() {
  13486. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  13487. } else {
  13488. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  13489. }
  13490. }
  13491. case "Tptr":
  13492. if r.TryDecodeAsNil() {
  13493. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  13494. x.AnonInTestStrucIntf.Tptr = nil
  13495. }
  13496. } else {
  13497. if x.AnonInTestStrucIntf == nil {
  13498. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13499. }
  13500. if x.AnonInTestStrucIntf.Tptr == nil {
  13501. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  13502. }
  13503. if false {
  13504. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13505. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  13506. } else if yyxt115 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt115 != nil {
  13507. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt115)
  13508. } else if z.DecBinary() {
  13509. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  13510. } else if !z.DecBinary() && z.IsJSONHandle() {
  13511. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  13512. } else {
  13513. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  13514. }
  13515. }
  13516. case "Mtsptr":
  13517. if r.TryDecodeAsNil() {
  13518. x.Mtsptr = nil
  13519. } else {
  13520. if false {
  13521. } else {
  13522. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  13523. }
  13524. }
  13525. case "Mts":
  13526. if r.TryDecodeAsNil() {
  13527. x.Mts = nil
  13528. } else {
  13529. if false {
  13530. } else {
  13531. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  13532. }
  13533. }
  13534. case "Its":
  13535. if r.TryDecodeAsNil() {
  13536. x.Its = nil
  13537. } else {
  13538. if false {
  13539. } else {
  13540. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  13541. }
  13542. }
  13543. case "Nteststruc":
  13544. if r.TryDecodeAsNil() {
  13545. if true && x.Nteststruc != nil {
  13546. x.Nteststruc = nil
  13547. }
  13548. } else {
  13549. if x.Nteststruc == nil {
  13550. x.Nteststruc = new(TestStrucFlex)
  13551. }
  13552. x.Nteststruc.CodecDecodeSelf(d)
  13553. }
  13554. default:
  13555. z.DecStructFieldNotFound(-1, yys3)
  13556. } // end switch yys3
  13557. } // end for yyj3
  13558. r.ReadMapEnd()
  13559. }
  13560. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  13561. var h codecSelfer19780
  13562. z, r := GenHelperDecoder(d)
  13563. _, _, _ = h, z, r
  13564. var yyj123 int
  13565. var yyb123 bool
  13566. var yyhl123 bool = l >= 0
  13567. yyj123++
  13568. if yyhl123 {
  13569. yyb123 = yyj123 > l
  13570. } else {
  13571. yyb123 = r.CheckBreak()
  13572. }
  13573. if yyb123 {
  13574. r.ReadArrayEnd()
  13575. return
  13576. }
  13577. r.ReadArrayElem()
  13578. if r.TryDecodeAsNil() {
  13579. x.TestStrucCommon.S = ""
  13580. } else {
  13581. x.TestStrucCommon.S = (string)(r.DecodeString())
  13582. }
  13583. yyj123++
  13584. if yyhl123 {
  13585. yyb123 = yyj123 > l
  13586. } else {
  13587. yyb123 = r.CheckBreak()
  13588. }
  13589. if yyb123 {
  13590. r.ReadArrayEnd()
  13591. return
  13592. }
  13593. r.ReadArrayElem()
  13594. if r.TryDecodeAsNil() {
  13595. x.TestStrucCommon.I64 = 0
  13596. } else {
  13597. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  13598. }
  13599. yyj123++
  13600. if yyhl123 {
  13601. yyb123 = yyj123 > l
  13602. } else {
  13603. yyb123 = r.CheckBreak()
  13604. }
  13605. if yyb123 {
  13606. r.ReadArrayEnd()
  13607. return
  13608. }
  13609. r.ReadArrayElem()
  13610. if r.TryDecodeAsNil() {
  13611. x.TestStrucCommon.I32 = 0
  13612. } else {
  13613. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  13614. }
  13615. yyj123++
  13616. if yyhl123 {
  13617. yyb123 = yyj123 > l
  13618. } else {
  13619. yyb123 = r.CheckBreak()
  13620. }
  13621. if yyb123 {
  13622. r.ReadArrayEnd()
  13623. return
  13624. }
  13625. r.ReadArrayElem()
  13626. if r.TryDecodeAsNil() {
  13627. x.TestStrucCommon.I16 = 0
  13628. } else {
  13629. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13630. }
  13631. yyj123++
  13632. if yyhl123 {
  13633. yyb123 = yyj123 > l
  13634. } else {
  13635. yyb123 = r.CheckBreak()
  13636. }
  13637. if yyb123 {
  13638. r.ReadArrayEnd()
  13639. return
  13640. }
  13641. r.ReadArrayElem()
  13642. if r.TryDecodeAsNil() {
  13643. x.TestStrucCommon.I8 = 0
  13644. } else {
  13645. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  13646. }
  13647. yyj123++
  13648. if yyhl123 {
  13649. yyb123 = yyj123 > l
  13650. } else {
  13651. yyb123 = r.CheckBreak()
  13652. }
  13653. if yyb123 {
  13654. r.ReadArrayEnd()
  13655. return
  13656. }
  13657. r.ReadArrayElem()
  13658. if r.TryDecodeAsNil() {
  13659. x.TestStrucCommon.I64n = 0
  13660. } else {
  13661. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  13662. }
  13663. yyj123++
  13664. if yyhl123 {
  13665. yyb123 = yyj123 > l
  13666. } else {
  13667. yyb123 = r.CheckBreak()
  13668. }
  13669. if yyb123 {
  13670. r.ReadArrayEnd()
  13671. return
  13672. }
  13673. r.ReadArrayElem()
  13674. if r.TryDecodeAsNil() {
  13675. x.TestStrucCommon.I32n = 0
  13676. } else {
  13677. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  13678. }
  13679. yyj123++
  13680. if yyhl123 {
  13681. yyb123 = yyj123 > l
  13682. } else {
  13683. yyb123 = r.CheckBreak()
  13684. }
  13685. if yyb123 {
  13686. r.ReadArrayEnd()
  13687. return
  13688. }
  13689. r.ReadArrayElem()
  13690. if r.TryDecodeAsNil() {
  13691. x.TestStrucCommon.I16n = 0
  13692. } else {
  13693. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13694. }
  13695. yyj123++
  13696. if yyhl123 {
  13697. yyb123 = yyj123 > l
  13698. } else {
  13699. yyb123 = r.CheckBreak()
  13700. }
  13701. if yyb123 {
  13702. r.ReadArrayEnd()
  13703. return
  13704. }
  13705. r.ReadArrayElem()
  13706. if r.TryDecodeAsNil() {
  13707. x.TestStrucCommon.I8n = 0
  13708. } else {
  13709. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  13710. }
  13711. yyj123++
  13712. if yyhl123 {
  13713. yyb123 = yyj123 > l
  13714. } else {
  13715. yyb123 = r.CheckBreak()
  13716. }
  13717. if yyb123 {
  13718. r.ReadArrayEnd()
  13719. return
  13720. }
  13721. r.ReadArrayElem()
  13722. if r.TryDecodeAsNil() {
  13723. x.TestStrucCommon.Ui64 = 0
  13724. } else {
  13725. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  13726. }
  13727. yyj123++
  13728. if yyhl123 {
  13729. yyb123 = yyj123 > l
  13730. } else {
  13731. yyb123 = r.CheckBreak()
  13732. }
  13733. if yyb123 {
  13734. r.ReadArrayEnd()
  13735. return
  13736. }
  13737. r.ReadArrayElem()
  13738. if r.TryDecodeAsNil() {
  13739. x.TestStrucCommon.Ui32 = 0
  13740. } else {
  13741. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  13742. }
  13743. yyj123++
  13744. if yyhl123 {
  13745. yyb123 = yyj123 > l
  13746. } else {
  13747. yyb123 = r.CheckBreak()
  13748. }
  13749. if yyb123 {
  13750. r.ReadArrayEnd()
  13751. return
  13752. }
  13753. r.ReadArrayElem()
  13754. if r.TryDecodeAsNil() {
  13755. x.TestStrucCommon.Ui16 = 0
  13756. } else {
  13757. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  13758. }
  13759. yyj123++
  13760. if yyhl123 {
  13761. yyb123 = yyj123 > l
  13762. } else {
  13763. yyb123 = r.CheckBreak()
  13764. }
  13765. if yyb123 {
  13766. r.ReadArrayEnd()
  13767. return
  13768. }
  13769. r.ReadArrayElem()
  13770. if r.TryDecodeAsNil() {
  13771. x.TestStrucCommon.Ui8 = 0
  13772. } else {
  13773. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13774. }
  13775. yyj123++
  13776. if yyhl123 {
  13777. yyb123 = yyj123 > l
  13778. } else {
  13779. yyb123 = r.CheckBreak()
  13780. }
  13781. if yyb123 {
  13782. r.ReadArrayEnd()
  13783. return
  13784. }
  13785. r.ReadArrayElem()
  13786. if r.TryDecodeAsNil() {
  13787. x.TestStrucCommon.F64 = 0
  13788. } else {
  13789. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  13790. }
  13791. yyj123++
  13792. if yyhl123 {
  13793. yyb123 = yyj123 > l
  13794. } else {
  13795. yyb123 = r.CheckBreak()
  13796. }
  13797. if yyb123 {
  13798. r.ReadArrayEnd()
  13799. return
  13800. }
  13801. r.ReadArrayElem()
  13802. if r.TryDecodeAsNil() {
  13803. x.TestStrucCommon.F32 = 0
  13804. } else {
  13805. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  13806. }
  13807. yyj123++
  13808. if yyhl123 {
  13809. yyb123 = yyj123 > l
  13810. } else {
  13811. yyb123 = r.CheckBreak()
  13812. }
  13813. if yyb123 {
  13814. r.ReadArrayEnd()
  13815. return
  13816. }
  13817. r.ReadArrayElem()
  13818. if r.TryDecodeAsNil() {
  13819. x.TestStrucCommon.B = false
  13820. } else {
  13821. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  13822. }
  13823. yyj123++
  13824. if yyhl123 {
  13825. yyb123 = yyj123 > l
  13826. } else {
  13827. yyb123 = r.CheckBreak()
  13828. }
  13829. if yyb123 {
  13830. r.ReadArrayEnd()
  13831. return
  13832. }
  13833. r.ReadArrayElem()
  13834. if r.TryDecodeAsNil() {
  13835. x.TestStrucCommon.By = 0
  13836. } else {
  13837. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13838. }
  13839. yyj123++
  13840. if yyhl123 {
  13841. yyb123 = yyj123 > l
  13842. } else {
  13843. yyb123 = r.CheckBreak()
  13844. }
  13845. if yyb123 {
  13846. r.ReadArrayEnd()
  13847. return
  13848. }
  13849. r.ReadArrayElem()
  13850. if r.TryDecodeAsNil() {
  13851. x.TestStrucCommon.Sslice = nil
  13852. } else {
  13853. if false {
  13854. } else {
  13855. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  13856. }
  13857. }
  13858. yyj123++
  13859. if yyhl123 {
  13860. yyb123 = yyj123 > l
  13861. } else {
  13862. yyb123 = r.CheckBreak()
  13863. }
  13864. if yyb123 {
  13865. r.ReadArrayEnd()
  13866. return
  13867. }
  13868. r.ReadArrayElem()
  13869. if r.TryDecodeAsNil() {
  13870. x.TestStrucCommon.I64slice = nil
  13871. } else {
  13872. if false {
  13873. } else {
  13874. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  13875. }
  13876. }
  13877. yyj123++
  13878. if yyhl123 {
  13879. yyb123 = yyj123 > l
  13880. } else {
  13881. yyb123 = r.CheckBreak()
  13882. }
  13883. if yyb123 {
  13884. r.ReadArrayEnd()
  13885. return
  13886. }
  13887. r.ReadArrayElem()
  13888. if r.TryDecodeAsNil() {
  13889. x.TestStrucCommon.I16slice = nil
  13890. } else {
  13891. if false {
  13892. } else {
  13893. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  13894. }
  13895. }
  13896. yyj123++
  13897. if yyhl123 {
  13898. yyb123 = yyj123 > l
  13899. } else {
  13900. yyb123 = r.CheckBreak()
  13901. }
  13902. if yyb123 {
  13903. r.ReadArrayEnd()
  13904. return
  13905. }
  13906. r.ReadArrayElem()
  13907. if r.TryDecodeAsNil() {
  13908. x.TestStrucCommon.Ui64slice = nil
  13909. } else {
  13910. if false {
  13911. } else {
  13912. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  13913. }
  13914. }
  13915. yyj123++
  13916. if yyhl123 {
  13917. yyb123 = yyj123 > l
  13918. } else {
  13919. yyb123 = r.CheckBreak()
  13920. }
  13921. if yyb123 {
  13922. r.ReadArrayEnd()
  13923. return
  13924. }
  13925. r.ReadArrayElem()
  13926. if r.TryDecodeAsNil() {
  13927. x.TestStrucCommon.Ui8slice = nil
  13928. } else {
  13929. if false {
  13930. } else {
  13931. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  13932. }
  13933. }
  13934. yyj123++
  13935. if yyhl123 {
  13936. yyb123 = yyj123 > l
  13937. } else {
  13938. yyb123 = r.CheckBreak()
  13939. }
  13940. if yyb123 {
  13941. r.ReadArrayEnd()
  13942. return
  13943. }
  13944. r.ReadArrayElem()
  13945. if r.TryDecodeAsNil() {
  13946. x.TestStrucCommon.Bslice = nil
  13947. } else {
  13948. if false {
  13949. } else {
  13950. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  13951. }
  13952. }
  13953. yyj123++
  13954. if yyhl123 {
  13955. yyb123 = yyj123 > l
  13956. } else {
  13957. yyb123 = r.CheckBreak()
  13958. }
  13959. if yyb123 {
  13960. r.ReadArrayEnd()
  13961. return
  13962. }
  13963. r.ReadArrayElem()
  13964. if r.TryDecodeAsNil() {
  13965. x.TestStrucCommon.Byslice = nil
  13966. } else {
  13967. if false {
  13968. } else {
  13969. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  13970. }
  13971. }
  13972. yyj123++
  13973. if yyhl123 {
  13974. yyb123 = yyj123 > l
  13975. } else {
  13976. yyb123 = r.CheckBreak()
  13977. }
  13978. if yyb123 {
  13979. r.ReadArrayEnd()
  13980. return
  13981. }
  13982. r.ReadArrayElem()
  13983. if r.TryDecodeAsNil() {
  13984. x.TestStrucCommon.Iptrslice = nil
  13985. } else {
  13986. if false {
  13987. } else {
  13988. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  13989. }
  13990. }
  13991. yyj123++
  13992. if yyhl123 {
  13993. yyb123 = yyj123 > l
  13994. } else {
  13995. yyb123 = r.CheckBreak()
  13996. }
  13997. if yyb123 {
  13998. r.ReadArrayEnd()
  13999. return
  14000. }
  14001. r.ReadArrayElem()
  14002. if r.TryDecodeAsNil() {
  14003. x.TestStrucCommon.WrapSliceInt64 = nil
  14004. } else {
  14005. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  14006. }
  14007. yyj123++
  14008. if yyhl123 {
  14009. yyb123 = yyj123 > l
  14010. } else {
  14011. yyb123 = r.CheckBreak()
  14012. }
  14013. if yyb123 {
  14014. r.ReadArrayEnd()
  14015. return
  14016. }
  14017. r.ReadArrayElem()
  14018. if r.TryDecodeAsNil() {
  14019. x.TestStrucCommon.WrapSliceString = nil
  14020. } else {
  14021. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  14022. }
  14023. yyj123++
  14024. if yyhl123 {
  14025. yyb123 = yyj123 > l
  14026. } else {
  14027. yyb123 = r.CheckBreak()
  14028. }
  14029. if yyb123 {
  14030. r.ReadArrayEnd()
  14031. return
  14032. }
  14033. r.ReadArrayElem()
  14034. if r.TryDecodeAsNil() {
  14035. x.TestStrucCommon.Msi64 = nil
  14036. } else {
  14037. if false {
  14038. } else {
  14039. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  14040. }
  14041. }
  14042. yyj123++
  14043. if yyhl123 {
  14044. yyb123 = yyj123 > l
  14045. } else {
  14046. yyb123 = r.CheckBreak()
  14047. }
  14048. if yyb123 {
  14049. r.ReadArrayEnd()
  14050. return
  14051. }
  14052. r.ReadArrayElem()
  14053. if r.TryDecodeAsNil() {
  14054. x.TestStrucCommon.Simplef = testSimpleFields{}
  14055. } else {
  14056. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  14057. }
  14058. yyj123++
  14059. if yyhl123 {
  14060. yyb123 = yyj123 > l
  14061. } else {
  14062. yyb123 = r.CheckBreak()
  14063. }
  14064. if yyb123 {
  14065. r.ReadArrayEnd()
  14066. return
  14067. }
  14068. r.ReadArrayElem()
  14069. if r.TryDecodeAsNil() {
  14070. x.TestStrucCommon.SstrUi64T = nil
  14071. } else {
  14072. if false {
  14073. } else {
  14074. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  14075. }
  14076. }
  14077. yyj123++
  14078. if yyhl123 {
  14079. yyb123 = yyj123 > l
  14080. } else {
  14081. yyb123 = r.CheckBreak()
  14082. }
  14083. if yyb123 {
  14084. r.ReadArrayEnd()
  14085. return
  14086. }
  14087. r.ReadArrayElem()
  14088. if r.TryDecodeAsNil() {
  14089. x.TestStrucCommon.AnonInTestStruc.AS = ""
  14090. } else {
  14091. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  14092. }
  14093. yyj123++
  14094. if yyhl123 {
  14095. yyb123 = yyj123 > l
  14096. } else {
  14097. yyb123 = r.CheckBreak()
  14098. }
  14099. if yyb123 {
  14100. r.ReadArrayEnd()
  14101. return
  14102. }
  14103. r.ReadArrayElem()
  14104. if r.TryDecodeAsNil() {
  14105. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  14106. } else {
  14107. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  14108. }
  14109. yyj123++
  14110. if yyhl123 {
  14111. yyb123 = yyj123 > l
  14112. } else {
  14113. yyb123 = r.CheckBreak()
  14114. }
  14115. if yyb123 {
  14116. r.ReadArrayEnd()
  14117. return
  14118. }
  14119. r.ReadArrayElem()
  14120. if r.TryDecodeAsNil() {
  14121. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  14122. } else {
  14123. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  14124. }
  14125. yyj123++
  14126. if yyhl123 {
  14127. yyb123 = yyj123 > l
  14128. } else {
  14129. yyb123 = r.CheckBreak()
  14130. }
  14131. if yyb123 {
  14132. r.ReadArrayEnd()
  14133. return
  14134. }
  14135. r.ReadArrayElem()
  14136. if r.TryDecodeAsNil() {
  14137. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  14138. } else {
  14139. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  14140. }
  14141. yyj123++
  14142. if yyhl123 {
  14143. yyb123 = yyj123 > l
  14144. } else {
  14145. yyb123 = r.CheckBreak()
  14146. }
  14147. if yyb123 {
  14148. r.ReadArrayEnd()
  14149. return
  14150. }
  14151. r.ReadArrayElem()
  14152. if r.TryDecodeAsNil() {
  14153. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  14154. } else {
  14155. if false {
  14156. } else {
  14157. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  14158. }
  14159. }
  14160. yyj123++
  14161. if yyhl123 {
  14162. yyb123 = yyj123 > l
  14163. } else {
  14164. yyb123 = r.CheckBreak()
  14165. }
  14166. if yyb123 {
  14167. r.ReadArrayEnd()
  14168. return
  14169. }
  14170. r.ReadArrayElem()
  14171. if r.TryDecodeAsNil() {
  14172. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  14173. } else {
  14174. if false {
  14175. } else {
  14176. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  14177. }
  14178. }
  14179. yyj123++
  14180. if yyhl123 {
  14181. yyb123 = yyj123 > l
  14182. } else {
  14183. yyb123 = r.CheckBreak()
  14184. }
  14185. if yyb123 {
  14186. r.ReadArrayEnd()
  14187. return
  14188. }
  14189. r.ReadArrayElem()
  14190. if r.TryDecodeAsNil() {
  14191. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  14192. } else {
  14193. if false {
  14194. } else {
  14195. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  14196. }
  14197. }
  14198. yyj123++
  14199. if yyhl123 {
  14200. yyb123 = yyj123 > l
  14201. } else {
  14202. yyb123 = r.CheckBreak()
  14203. }
  14204. if yyb123 {
  14205. r.ReadArrayEnd()
  14206. return
  14207. }
  14208. r.ReadArrayElem()
  14209. if r.TryDecodeAsNil() {
  14210. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  14211. } else {
  14212. if false {
  14213. } else {
  14214. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  14215. }
  14216. }
  14217. yyj123++
  14218. if yyhl123 {
  14219. yyb123 = yyj123 > l
  14220. } else {
  14221. yyb123 = r.CheckBreak()
  14222. }
  14223. if yyb123 {
  14224. r.ReadArrayEnd()
  14225. return
  14226. }
  14227. r.ReadArrayElem()
  14228. if r.TryDecodeAsNil() {
  14229. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  14230. } else {
  14231. if false {
  14232. } else {
  14233. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  14234. }
  14235. }
  14236. yyj123++
  14237. if yyhl123 {
  14238. yyb123 = yyj123 > l
  14239. } else {
  14240. yyb123 = r.CheckBreak()
  14241. }
  14242. if yyb123 {
  14243. r.ReadArrayEnd()
  14244. return
  14245. }
  14246. r.ReadArrayElem()
  14247. if r.TryDecodeAsNil() {
  14248. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  14249. } else {
  14250. if false {
  14251. } else {
  14252. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  14253. }
  14254. }
  14255. yyj123++
  14256. if yyhl123 {
  14257. yyb123 = yyj123 > l
  14258. } else {
  14259. yyb123 = r.CheckBreak()
  14260. }
  14261. if yyb123 {
  14262. r.ReadArrayEnd()
  14263. return
  14264. }
  14265. r.ReadArrayElem()
  14266. if r.TryDecodeAsNil() {
  14267. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  14268. } else {
  14269. if false {
  14270. } else {
  14271. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  14272. }
  14273. }
  14274. yyj123++
  14275. if yyhl123 {
  14276. yyb123 = yyj123 > l
  14277. } else {
  14278. yyb123 = r.CheckBreak()
  14279. }
  14280. if yyb123 {
  14281. r.ReadArrayEnd()
  14282. return
  14283. }
  14284. r.ReadArrayElem()
  14285. if r.TryDecodeAsNil() {
  14286. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  14287. } else {
  14288. if false {
  14289. } else {
  14290. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  14291. }
  14292. }
  14293. yyj123++
  14294. if yyhl123 {
  14295. yyb123 = yyj123 > l
  14296. } else {
  14297. yyb123 = r.CheckBreak()
  14298. }
  14299. if yyb123 {
  14300. r.ReadArrayEnd()
  14301. return
  14302. }
  14303. r.ReadArrayElem()
  14304. if r.TryDecodeAsNil() {
  14305. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  14306. } else {
  14307. if false {
  14308. } else {
  14309. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  14310. }
  14311. }
  14312. yyj123++
  14313. if yyhl123 {
  14314. yyb123 = yyj123 > l
  14315. } else {
  14316. yyb123 = r.CheckBreak()
  14317. }
  14318. if yyb123 {
  14319. r.ReadArrayEnd()
  14320. return
  14321. }
  14322. r.ReadArrayElem()
  14323. if r.TryDecodeAsNil() {
  14324. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  14325. } else {
  14326. if false {
  14327. } else {
  14328. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  14329. }
  14330. }
  14331. yyj123++
  14332. if yyhl123 {
  14333. yyb123 = yyj123 > l
  14334. } else {
  14335. yyb123 = r.CheckBreak()
  14336. }
  14337. if yyb123 {
  14338. r.ReadArrayEnd()
  14339. return
  14340. }
  14341. r.ReadArrayElem()
  14342. if r.TryDecodeAsNil() {
  14343. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  14344. } else {
  14345. if false {
  14346. } else {
  14347. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  14348. }
  14349. }
  14350. yyj123++
  14351. if yyhl123 {
  14352. yyb123 = yyj123 > l
  14353. } else {
  14354. yyb123 = r.CheckBreak()
  14355. }
  14356. if yyb123 {
  14357. r.ReadArrayEnd()
  14358. return
  14359. }
  14360. r.ReadArrayElem()
  14361. if r.TryDecodeAsNil() {
  14362. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  14363. } else {
  14364. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  14365. }
  14366. yyj123++
  14367. if yyhl123 {
  14368. yyb123 = yyj123 > l
  14369. } else {
  14370. yyb123 = r.CheckBreak()
  14371. }
  14372. if yyb123 {
  14373. r.ReadArrayEnd()
  14374. return
  14375. }
  14376. r.ReadArrayElem()
  14377. if r.TryDecodeAsNil() {
  14378. x.TestStrucCommon.Nmap = nil
  14379. } else {
  14380. if false {
  14381. } else {
  14382. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  14383. }
  14384. }
  14385. yyj123++
  14386. if yyhl123 {
  14387. yyb123 = yyj123 > l
  14388. } else {
  14389. yyb123 = r.CheckBreak()
  14390. }
  14391. if yyb123 {
  14392. r.ReadArrayEnd()
  14393. return
  14394. }
  14395. r.ReadArrayElem()
  14396. if r.TryDecodeAsNil() {
  14397. x.TestStrucCommon.Nslice = nil
  14398. } else {
  14399. if false {
  14400. } else {
  14401. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  14402. }
  14403. }
  14404. yyj123++
  14405. if yyhl123 {
  14406. yyb123 = yyj123 > l
  14407. } else {
  14408. yyb123 = r.CheckBreak()
  14409. }
  14410. if yyb123 {
  14411. r.ReadArrayEnd()
  14412. return
  14413. }
  14414. r.ReadArrayElem()
  14415. if r.TryDecodeAsNil() {
  14416. if true && x.TestStrucCommon.Nint64 != nil {
  14417. x.TestStrucCommon.Nint64 = nil
  14418. }
  14419. } else {
  14420. if x.TestStrucCommon.Nint64 == nil {
  14421. x.TestStrucCommon.Nint64 = new(int64)
  14422. }
  14423. if false {
  14424. } else {
  14425. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  14426. }
  14427. }
  14428. yyj123++
  14429. if yyhl123 {
  14430. yyb123 = yyj123 > l
  14431. } else {
  14432. yyb123 = r.CheckBreak()
  14433. }
  14434. if yyb123 {
  14435. r.ReadArrayEnd()
  14436. return
  14437. }
  14438. r.ReadArrayElem()
  14439. if r.TryDecodeAsNil() {
  14440. x.Chstr = nil
  14441. } else {
  14442. if false {
  14443. } else {
  14444. h.decChanstring((*chan string)(&x.Chstr), d)
  14445. }
  14446. }
  14447. yyj123++
  14448. if yyhl123 {
  14449. yyb123 = yyj123 > l
  14450. } else {
  14451. yyb123 = r.CheckBreak()
  14452. }
  14453. if yyb123 {
  14454. r.ReadArrayEnd()
  14455. return
  14456. }
  14457. r.ReadArrayElem()
  14458. if r.TryDecodeAsNil() {
  14459. x.Mis = nil
  14460. } else {
  14461. if false {
  14462. } else {
  14463. z.F.DecMapIntStringX(&x.Mis, d)
  14464. }
  14465. }
  14466. yyj123++
  14467. if yyhl123 {
  14468. yyb123 = yyj123 > l
  14469. } else {
  14470. yyb123 = r.CheckBreak()
  14471. }
  14472. if yyb123 {
  14473. r.ReadArrayEnd()
  14474. return
  14475. }
  14476. r.ReadArrayElem()
  14477. if r.TryDecodeAsNil() {
  14478. x.Mbu64 = nil
  14479. } else {
  14480. if false {
  14481. } else {
  14482. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  14483. }
  14484. }
  14485. yyj123++
  14486. if yyhl123 {
  14487. yyb123 = yyj123 > l
  14488. } else {
  14489. yyb123 = r.CheckBreak()
  14490. }
  14491. if yyb123 {
  14492. r.ReadArrayEnd()
  14493. return
  14494. }
  14495. r.ReadArrayElem()
  14496. if r.TryDecodeAsNil() {
  14497. x.Miwu64s = nil
  14498. } else {
  14499. if false {
  14500. } else {
  14501. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  14502. }
  14503. }
  14504. yyj123++
  14505. if yyhl123 {
  14506. yyb123 = yyj123 > l
  14507. } else {
  14508. yyb123 = r.CheckBreak()
  14509. }
  14510. if yyb123 {
  14511. r.ReadArrayEnd()
  14512. return
  14513. }
  14514. r.ReadArrayElem()
  14515. if r.TryDecodeAsNil() {
  14516. x.Mfwss = nil
  14517. } else {
  14518. if false {
  14519. } else {
  14520. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  14521. }
  14522. }
  14523. yyj123++
  14524. if yyhl123 {
  14525. yyb123 = yyj123 > l
  14526. } else {
  14527. yyb123 = r.CheckBreak()
  14528. }
  14529. if yyb123 {
  14530. r.ReadArrayEnd()
  14531. return
  14532. }
  14533. r.ReadArrayElem()
  14534. if r.TryDecodeAsNil() {
  14535. x.Mf32wss = nil
  14536. } else {
  14537. if false {
  14538. } else {
  14539. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  14540. }
  14541. }
  14542. yyj123++
  14543. if yyhl123 {
  14544. yyb123 = yyj123 > l
  14545. } else {
  14546. yyb123 = r.CheckBreak()
  14547. }
  14548. if yyb123 {
  14549. r.ReadArrayEnd()
  14550. return
  14551. }
  14552. r.ReadArrayElem()
  14553. if r.TryDecodeAsNil() {
  14554. x.Mui2wss = nil
  14555. } else {
  14556. if false {
  14557. } else {
  14558. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  14559. }
  14560. }
  14561. yyj123++
  14562. if yyhl123 {
  14563. yyb123 = yyj123 > l
  14564. } else {
  14565. yyb123 = r.CheckBreak()
  14566. }
  14567. if yyb123 {
  14568. r.ReadArrayEnd()
  14569. return
  14570. }
  14571. r.ReadArrayElem()
  14572. if r.TryDecodeAsNil() {
  14573. x.Msu2wss = nil
  14574. } else {
  14575. if false {
  14576. } else {
  14577. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  14578. }
  14579. }
  14580. yyj123++
  14581. if yyhl123 {
  14582. yyb123 = yyj123 > l
  14583. } else {
  14584. yyb123 = r.CheckBreak()
  14585. }
  14586. if yyb123 {
  14587. r.ReadArrayEnd()
  14588. return
  14589. }
  14590. r.ReadArrayElem()
  14591. if r.TryDecodeAsNil() {
  14592. x.Ci64 = 0
  14593. } else {
  14594. x.Ci64.CodecDecodeSelf(d)
  14595. }
  14596. yyj123++
  14597. if yyhl123 {
  14598. yyb123 = yyj123 > l
  14599. } else {
  14600. yyb123 = r.CheckBreak()
  14601. }
  14602. if yyb123 {
  14603. r.ReadArrayEnd()
  14604. return
  14605. }
  14606. r.ReadArrayElem()
  14607. if r.TryDecodeAsNil() {
  14608. x.Swrapbytes = nil
  14609. } else {
  14610. if false {
  14611. } else {
  14612. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  14613. }
  14614. }
  14615. yyj123++
  14616. if yyhl123 {
  14617. yyb123 = yyj123 > l
  14618. } else {
  14619. yyb123 = r.CheckBreak()
  14620. }
  14621. if yyb123 {
  14622. r.ReadArrayEnd()
  14623. return
  14624. }
  14625. r.ReadArrayElem()
  14626. if r.TryDecodeAsNil() {
  14627. x.Swrapuint8 = nil
  14628. } else {
  14629. if false {
  14630. } else {
  14631. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  14632. }
  14633. }
  14634. yyj123++
  14635. if yyhl123 {
  14636. yyb123 = yyj123 > l
  14637. } else {
  14638. yyb123 = r.CheckBreak()
  14639. }
  14640. if yyb123 {
  14641. r.ReadArrayEnd()
  14642. return
  14643. }
  14644. r.ReadArrayElem()
  14645. if r.TryDecodeAsNil() {
  14646. x.ArrStrUi64T = [4]stringUint64T{}
  14647. } else {
  14648. if false {
  14649. } else {
  14650. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  14651. }
  14652. }
  14653. yyj123++
  14654. if yyhl123 {
  14655. yyb123 = yyj123 > l
  14656. } else {
  14657. yyb123 = r.CheckBreak()
  14658. }
  14659. if yyb123 {
  14660. r.ReadArrayEnd()
  14661. return
  14662. }
  14663. r.ReadArrayElem()
  14664. if r.TryDecodeAsNil() {
  14665. x.Ui64array = [4]uint64{}
  14666. } else {
  14667. if false {
  14668. } else {
  14669. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  14670. }
  14671. }
  14672. yyj123++
  14673. if yyhl123 {
  14674. yyb123 = yyj123 > l
  14675. } else {
  14676. yyb123 = r.CheckBreak()
  14677. }
  14678. if yyb123 {
  14679. r.ReadArrayEnd()
  14680. return
  14681. }
  14682. r.ReadArrayElem()
  14683. if r.TryDecodeAsNil() {
  14684. x.Ui64slicearray = nil
  14685. } else {
  14686. if false {
  14687. } else {
  14688. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  14689. }
  14690. }
  14691. yyj123++
  14692. if yyhl123 {
  14693. yyb123 = yyj123 > l
  14694. } else {
  14695. yyb123 = r.CheckBreak()
  14696. }
  14697. if yyb123 {
  14698. r.ReadArrayEnd()
  14699. return
  14700. }
  14701. r.ReadArrayElem()
  14702. if r.TryDecodeAsNil() {
  14703. x.SintfAarray = nil
  14704. } else {
  14705. if false {
  14706. } else {
  14707. z.F.DecSliceIntfX(&x.SintfAarray, d)
  14708. }
  14709. }
  14710. yyj123++
  14711. if yyhl123 {
  14712. yyb123 = yyj123 > l
  14713. } else {
  14714. yyb123 = r.CheckBreak()
  14715. }
  14716. if yyb123 {
  14717. r.ReadArrayEnd()
  14718. return
  14719. }
  14720. r.ReadArrayElem()
  14721. if r.TryDecodeAsNil() {
  14722. if true && x.AnonInTestStrucIntf != nil {
  14723. x.AnonInTestStrucIntf.Islice = nil
  14724. }
  14725. } else {
  14726. if x.AnonInTestStrucIntf == nil {
  14727. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14728. }
  14729. if false {
  14730. } else {
  14731. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  14732. }
  14733. }
  14734. yyj123++
  14735. if yyhl123 {
  14736. yyb123 = yyj123 > l
  14737. } else {
  14738. yyb123 = r.CheckBreak()
  14739. }
  14740. if yyb123 {
  14741. r.ReadArrayEnd()
  14742. return
  14743. }
  14744. r.ReadArrayElem()
  14745. if r.TryDecodeAsNil() {
  14746. if true && x.AnonInTestStrucIntf != nil {
  14747. x.AnonInTestStrucIntf.Ms = nil
  14748. }
  14749. } else {
  14750. if x.AnonInTestStrucIntf == nil {
  14751. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14752. }
  14753. if false {
  14754. } else {
  14755. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  14756. }
  14757. }
  14758. yyj123++
  14759. if yyhl123 {
  14760. yyb123 = yyj123 > l
  14761. } else {
  14762. yyb123 = r.CheckBreak()
  14763. }
  14764. if yyb123 {
  14765. r.ReadArrayEnd()
  14766. return
  14767. }
  14768. r.ReadArrayElem()
  14769. if r.TryDecodeAsNil() {
  14770. if true && x.AnonInTestStrucIntf != nil {
  14771. x.AnonInTestStrucIntf.Nintf = nil
  14772. }
  14773. } else {
  14774. if x.AnonInTestStrucIntf == nil {
  14775. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14776. }
  14777. if false {
  14778. } else {
  14779. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  14780. }
  14781. }
  14782. yyj123++
  14783. if yyhl123 {
  14784. yyb123 = yyj123 > l
  14785. } else {
  14786. yyb123 = r.CheckBreak()
  14787. }
  14788. if yyb123 {
  14789. r.ReadArrayEnd()
  14790. return
  14791. }
  14792. r.ReadArrayElem()
  14793. if r.TryDecodeAsNil() {
  14794. if true && x.AnonInTestStrucIntf != nil {
  14795. x.AnonInTestStrucIntf.T = time.Time{}
  14796. }
  14797. } else {
  14798. if x.AnonInTestStrucIntf == nil {
  14799. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14800. }
  14801. if false {
  14802. } else if !z.DecBasicHandle().TimeNotBuiltin {
  14803. x.AnonInTestStrucIntf.T = r.DecodeTime()
  14804. } else if yyxt233 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt233 != nil {
  14805. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt233)
  14806. } else if z.DecBinary() {
  14807. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  14808. } else if !z.DecBinary() && z.IsJSONHandle() {
  14809. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  14810. } else {
  14811. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  14812. }
  14813. }
  14814. yyj123++
  14815. if yyhl123 {
  14816. yyb123 = yyj123 > l
  14817. } else {
  14818. yyb123 = r.CheckBreak()
  14819. }
  14820. if yyb123 {
  14821. r.ReadArrayEnd()
  14822. return
  14823. }
  14824. r.ReadArrayElem()
  14825. if r.TryDecodeAsNil() {
  14826. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  14827. x.AnonInTestStrucIntf.Tptr = nil
  14828. }
  14829. } else {
  14830. if x.AnonInTestStrucIntf == nil {
  14831. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14832. }
  14833. if x.AnonInTestStrucIntf.Tptr == nil {
  14834. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  14835. }
  14836. if false {
  14837. } else if !z.DecBasicHandle().TimeNotBuiltin {
  14838. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  14839. } else if yyxt235 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt235 != nil {
  14840. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt235)
  14841. } else if z.DecBinary() {
  14842. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  14843. } else if !z.DecBinary() && z.IsJSONHandle() {
  14844. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  14845. } else {
  14846. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  14847. }
  14848. }
  14849. yyj123++
  14850. if yyhl123 {
  14851. yyb123 = yyj123 > l
  14852. } else {
  14853. yyb123 = r.CheckBreak()
  14854. }
  14855. if yyb123 {
  14856. r.ReadArrayEnd()
  14857. return
  14858. }
  14859. r.ReadArrayElem()
  14860. if r.TryDecodeAsNil() {
  14861. x.Mtsptr = nil
  14862. } else {
  14863. if false {
  14864. } else {
  14865. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  14866. }
  14867. }
  14868. yyj123++
  14869. if yyhl123 {
  14870. yyb123 = yyj123 > l
  14871. } else {
  14872. yyb123 = r.CheckBreak()
  14873. }
  14874. if yyb123 {
  14875. r.ReadArrayEnd()
  14876. return
  14877. }
  14878. r.ReadArrayElem()
  14879. if r.TryDecodeAsNil() {
  14880. x.Mts = nil
  14881. } else {
  14882. if false {
  14883. } else {
  14884. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  14885. }
  14886. }
  14887. yyj123++
  14888. if yyhl123 {
  14889. yyb123 = yyj123 > l
  14890. } else {
  14891. yyb123 = r.CheckBreak()
  14892. }
  14893. if yyb123 {
  14894. r.ReadArrayEnd()
  14895. return
  14896. }
  14897. r.ReadArrayElem()
  14898. if r.TryDecodeAsNil() {
  14899. x.Its = nil
  14900. } else {
  14901. if false {
  14902. } else {
  14903. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  14904. }
  14905. }
  14906. yyj123++
  14907. if yyhl123 {
  14908. yyb123 = yyj123 > l
  14909. } else {
  14910. yyb123 = r.CheckBreak()
  14911. }
  14912. if yyb123 {
  14913. r.ReadArrayEnd()
  14914. return
  14915. }
  14916. r.ReadArrayElem()
  14917. if r.TryDecodeAsNil() {
  14918. if true && x.Nteststruc != nil {
  14919. x.Nteststruc = nil
  14920. }
  14921. } else {
  14922. if x.Nteststruc == nil {
  14923. x.Nteststruc = new(TestStrucFlex)
  14924. }
  14925. x.Nteststruc.CodecDecodeSelf(d)
  14926. }
  14927. for {
  14928. yyj123++
  14929. if yyhl123 {
  14930. yyb123 = yyj123 > l
  14931. } else {
  14932. yyb123 = r.CheckBreak()
  14933. }
  14934. if yyb123 {
  14935. break
  14936. }
  14937. r.ReadArrayElem()
  14938. z.DecStructFieldNotFound(yyj123-1, "")
  14939. }
  14940. r.ReadArrayEnd()
  14941. }
  14942. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  14943. var h codecSelfer19780
  14944. z, r := GenHelperEncoder(e)
  14945. _, _, _ = h, z, r
  14946. r.WriteArrayStart(len(v))
  14947. for _, yyv1 := range v {
  14948. r.WriteArrayElem()
  14949. if false {
  14950. } else {
  14951. r.EncodeUint(uint64(yyv1))
  14952. }
  14953. }
  14954. r.WriteArrayEnd()
  14955. }
  14956. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  14957. var h codecSelfer19780
  14958. z, r := GenHelperDecoder(d)
  14959. _, _, _ = h, z, r
  14960. yyv1 := *v
  14961. yyh1, yyl1 := z.DecSliceHelperStart()
  14962. var yyc1 bool
  14963. _ = yyc1
  14964. if yyl1 == 0 {
  14965. if yyv1 == nil {
  14966. yyv1 = []uint64{}
  14967. yyc1 = true
  14968. } else if len(yyv1) != 0 {
  14969. yyv1 = yyv1[:0]
  14970. yyc1 = true
  14971. }
  14972. } else {
  14973. yyhl1 := yyl1 > 0
  14974. var yyrl1 int
  14975. _ = yyrl1
  14976. if yyhl1 {
  14977. if yyl1 > cap(yyv1) {
  14978. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14979. if yyrl1 <= cap(yyv1) {
  14980. yyv1 = yyv1[:yyrl1]
  14981. } else {
  14982. yyv1 = make([]uint64, yyrl1)
  14983. }
  14984. yyc1 = true
  14985. } else if yyl1 != len(yyv1) {
  14986. yyv1 = yyv1[:yyl1]
  14987. yyc1 = true
  14988. }
  14989. }
  14990. var yyj1 int
  14991. // var yydn1 bool
  14992. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14993. if yyj1 == 0 && yyv1 == nil {
  14994. if yyhl1 {
  14995. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14996. } else {
  14997. yyrl1 = 8
  14998. }
  14999. yyv1 = make([]uint64, yyrl1)
  15000. yyc1 = true
  15001. }
  15002. yyh1.ElemContainerState(yyj1)
  15003. var yydb1 bool
  15004. if yyj1 >= len(yyv1) {
  15005. yyv1 = append(yyv1, 0)
  15006. yyc1 = true
  15007. }
  15008. if yydb1 {
  15009. z.DecSwallow()
  15010. } else {
  15011. if r.TryDecodeAsNil() {
  15012. yyv1[yyj1] = 0
  15013. } else {
  15014. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  15015. }
  15016. }
  15017. }
  15018. if yyj1 < len(yyv1) {
  15019. yyv1 = yyv1[:yyj1]
  15020. yyc1 = true
  15021. } else if yyj1 == 0 && yyv1 == nil {
  15022. yyv1 = make([]uint64, 0)
  15023. yyc1 = true
  15024. }
  15025. }
  15026. yyh1.End()
  15027. if yyc1 {
  15028. *v = yyv1
  15029. }
  15030. }
  15031. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  15032. var h codecSelfer19780
  15033. z, r := GenHelperEncoder(e)
  15034. _, _, _ = h, z, r
  15035. r.WriteArrayStart(len(v))
  15036. for _, yyv1 := range v {
  15037. r.WriteArrayElem()
  15038. if false {
  15039. } else {
  15040. if z.EncBasicHandle().StringToRaw {
  15041. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15042. } else {
  15043. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15044. }
  15045. }
  15046. }
  15047. r.WriteArrayEnd()
  15048. }
  15049. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  15050. var h codecSelfer19780
  15051. z, r := GenHelperDecoder(d)
  15052. _, _, _ = h, z, r
  15053. yyv1 := *v
  15054. yyh1, yyl1 := z.DecSliceHelperStart()
  15055. var yyc1 bool
  15056. _ = yyc1
  15057. if yyl1 == 0 {
  15058. if yyv1 == nil {
  15059. yyv1 = []string{}
  15060. yyc1 = true
  15061. } else if len(yyv1) != 0 {
  15062. yyv1 = yyv1[:0]
  15063. yyc1 = true
  15064. }
  15065. } else {
  15066. yyhl1 := yyl1 > 0
  15067. var yyrl1 int
  15068. _ = yyrl1
  15069. if yyhl1 {
  15070. if yyl1 > cap(yyv1) {
  15071. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15072. if yyrl1 <= cap(yyv1) {
  15073. yyv1 = yyv1[:yyrl1]
  15074. } else {
  15075. yyv1 = make([]string, yyrl1)
  15076. }
  15077. yyc1 = true
  15078. } else if yyl1 != len(yyv1) {
  15079. yyv1 = yyv1[:yyl1]
  15080. yyc1 = true
  15081. }
  15082. }
  15083. var yyj1 int
  15084. // var yydn1 bool
  15085. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15086. if yyj1 == 0 && yyv1 == nil {
  15087. if yyhl1 {
  15088. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15089. } else {
  15090. yyrl1 = 8
  15091. }
  15092. yyv1 = make([]string, yyrl1)
  15093. yyc1 = true
  15094. }
  15095. yyh1.ElemContainerState(yyj1)
  15096. var yydb1 bool
  15097. if yyj1 >= len(yyv1) {
  15098. yyv1 = append(yyv1, "")
  15099. yyc1 = true
  15100. }
  15101. if yydb1 {
  15102. z.DecSwallow()
  15103. } else {
  15104. if r.TryDecodeAsNil() {
  15105. yyv1[yyj1] = ""
  15106. } else {
  15107. yyv1[yyj1] = (string)(r.DecodeString())
  15108. }
  15109. }
  15110. }
  15111. if yyj1 < len(yyv1) {
  15112. yyv1 = yyv1[:yyj1]
  15113. yyc1 = true
  15114. } else if yyj1 == 0 && yyv1 == nil {
  15115. yyv1 = make([]string, 0)
  15116. yyc1 = true
  15117. }
  15118. }
  15119. yyh1.End()
  15120. if yyc1 {
  15121. *v = yyv1
  15122. }
  15123. }
  15124. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  15125. var h codecSelfer19780
  15126. z, r := GenHelperEncoder(e)
  15127. _, _, _ = h, z, r
  15128. r.WriteArrayStart(len(v))
  15129. for _, yyv1 := range v {
  15130. r.WriteArrayElem()
  15131. yyv1.CodecEncodeSelf(e)
  15132. }
  15133. r.WriteArrayEnd()
  15134. }
  15135. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  15136. var h codecSelfer19780
  15137. z, r := GenHelperDecoder(d)
  15138. _, _, _ = h, z, r
  15139. yyv1 := *v
  15140. yyh1, yyl1 := z.DecSliceHelperStart()
  15141. var yyc1 bool
  15142. _ = yyc1
  15143. if yyl1 == 0 {
  15144. if yyv1 == nil {
  15145. yyv1 = []wrapUint64{}
  15146. yyc1 = true
  15147. } else if len(yyv1) != 0 {
  15148. yyv1 = yyv1[:0]
  15149. yyc1 = true
  15150. }
  15151. } else {
  15152. yyhl1 := yyl1 > 0
  15153. var yyrl1 int
  15154. _ = yyrl1
  15155. if yyhl1 {
  15156. if yyl1 > cap(yyv1) {
  15157. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15158. if yyrl1 <= cap(yyv1) {
  15159. yyv1 = yyv1[:yyrl1]
  15160. } else {
  15161. yyv1 = make([]wrapUint64, yyrl1)
  15162. }
  15163. yyc1 = true
  15164. } else if yyl1 != len(yyv1) {
  15165. yyv1 = yyv1[:yyl1]
  15166. yyc1 = true
  15167. }
  15168. }
  15169. var yyj1 int
  15170. // var yydn1 bool
  15171. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15172. if yyj1 == 0 && yyv1 == nil {
  15173. if yyhl1 {
  15174. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15175. } else {
  15176. yyrl1 = 8
  15177. }
  15178. yyv1 = make([]wrapUint64, yyrl1)
  15179. yyc1 = true
  15180. }
  15181. yyh1.ElemContainerState(yyj1)
  15182. var yydb1 bool
  15183. if yyj1 >= len(yyv1) {
  15184. yyv1 = append(yyv1, 0)
  15185. yyc1 = true
  15186. }
  15187. if yydb1 {
  15188. z.DecSwallow()
  15189. } else {
  15190. if r.TryDecodeAsNil() {
  15191. yyv1[yyj1] = 0
  15192. } else {
  15193. yyv1[yyj1].CodecDecodeSelf(d)
  15194. }
  15195. }
  15196. }
  15197. if yyj1 < len(yyv1) {
  15198. yyv1 = yyv1[:yyj1]
  15199. yyc1 = true
  15200. } else if yyj1 == 0 && yyv1 == nil {
  15201. yyv1 = make([]wrapUint64, 0)
  15202. yyc1 = true
  15203. }
  15204. }
  15205. yyh1.End()
  15206. if yyc1 {
  15207. *v = yyv1
  15208. }
  15209. }
  15210. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  15211. var h codecSelfer19780
  15212. z, r := GenHelperEncoder(e)
  15213. _, _, _ = h, z, r
  15214. r.WriteArrayStart(len(v))
  15215. for _, yyv1 := range v {
  15216. r.WriteArrayElem()
  15217. yyv1.CodecEncodeSelf(e)
  15218. }
  15219. r.WriteArrayEnd()
  15220. }
  15221. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  15222. var h codecSelfer19780
  15223. z, r := GenHelperDecoder(d)
  15224. _, _, _ = h, z, r
  15225. yyv1 := *v
  15226. yyh1, yyl1 := z.DecSliceHelperStart()
  15227. var yyc1 bool
  15228. _ = yyc1
  15229. if yyl1 == 0 {
  15230. if yyv1 == nil {
  15231. yyv1 = []wrapString{}
  15232. yyc1 = true
  15233. } else if len(yyv1) != 0 {
  15234. yyv1 = yyv1[:0]
  15235. yyc1 = true
  15236. }
  15237. } else {
  15238. yyhl1 := yyl1 > 0
  15239. var yyrl1 int
  15240. _ = yyrl1
  15241. if yyhl1 {
  15242. if yyl1 > cap(yyv1) {
  15243. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15244. if yyrl1 <= cap(yyv1) {
  15245. yyv1 = yyv1[:yyrl1]
  15246. } else {
  15247. yyv1 = make([]wrapString, yyrl1)
  15248. }
  15249. yyc1 = true
  15250. } else if yyl1 != len(yyv1) {
  15251. yyv1 = yyv1[:yyl1]
  15252. yyc1 = true
  15253. }
  15254. }
  15255. var yyj1 int
  15256. // var yydn1 bool
  15257. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15258. if yyj1 == 0 && yyv1 == nil {
  15259. if yyhl1 {
  15260. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15261. } else {
  15262. yyrl1 = 8
  15263. }
  15264. yyv1 = make([]wrapString, yyrl1)
  15265. yyc1 = true
  15266. }
  15267. yyh1.ElemContainerState(yyj1)
  15268. var yydb1 bool
  15269. if yyj1 >= len(yyv1) {
  15270. yyv1 = append(yyv1, "")
  15271. yyc1 = true
  15272. }
  15273. if yydb1 {
  15274. z.DecSwallow()
  15275. } else {
  15276. if r.TryDecodeAsNil() {
  15277. yyv1[yyj1] = ""
  15278. } else {
  15279. yyv1[yyj1].CodecDecodeSelf(d)
  15280. }
  15281. }
  15282. }
  15283. if yyj1 < len(yyv1) {
  15284. yyv1 = yyv1[:yyj1]
  15285. yyc1 = true
  15286. } else if yyj1 == 0 && yyv1 == nil {
  15287. yyv1 = make([]wrapString, 0)
  15288. yyc1 = true
  15289. }
  15290. }
  15291. yyh1.End()
  15292. if yyc1 {
  15293. *v = yyv1
  15294. }
  15295. }
  15296. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  15297. var h codecSelfer19780
  15298. z, r := GenHelperEncoder(e)
  15299. _, _, _ = h, z, r
  15300. r.WriteMapStart(len(v))
  15301. for yyk1, yyv1 := range v {
  15302. r.WriteMapElemKey()
  15303. if false {
  15304. } else {
  15305. if z.EncBasicHandle().StringToRaw {
  15306. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15307. } else {
  15308. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15309. }
  15310. }
  15311. r.WriteMapElemValue()
  15312. if false {
  15313. } else {
  15314. r.EncodeUint(uint64(yyv1))
  15315. }
  15316. }
  15317. r.WriteMapEnd()
  15318. }
  15319. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  15320. var h codecSelfer19780
  15321. z, r := GenHelperDecoder(d)
  15322. _, _, _ = h, z, r
  15323. yyv1 := *v
  15324. yyl1 := r.ReadMapStart()
  15325. yybh1 := z.DecBasicHandle()
  15326. if yyv1 == nil {
  15327. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  15328. yyv1 = make(map[string]uint16, yyrl1)
  15329. *v = yyv1
  15330. }
  15331. var yymk1 string
  15332. var yymv1 uint16
  15333. var yymg1, yymdn1 bool
  15334. if yybh1.MapValueReset {
  15335. }
  15336. if yyl1 != 0 {
  15337. yyhl1 := yyl1 > 0
  15338. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15339. r.ReadMapElemKey()
  15340. if r.TryDecodeAsNil() {
  15341. yymk1 = ""
  15342. } else {
  15343. yymk1 = (string)(r.DecodeString())
  15344. }
  15345. if yymg1 {
  15346. yymv1 = yyv1[yymk1]
  15347. }
  15348. r.ReadMapElemValue()
  15349. yymdn1 = false
  15350. if r.TryDecodeAsNil() {
  15351. yymdn1 = true
  15352. } else {
  15353. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  15354. }
  15355. if yymdn1 {
  15356. if yybh1.DeleteOnNilMapValue {
  15357. delete(yyv1, yymk1)
  15358. } else {
  15359. yyv1[yymk1] = 0
  15360. }
  15361. } else if yyv1 != nil {
  15362. yyv1[yymk1] = yymv1
  15363. }
  15364. }
  15365. } // else len==0: TODO: Should we clear map entries?
  15366. r.ReadMapEnd()
  15367. }
  15368. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  15369. var h codecSelfer19780
  15370. z, r := GenHelperEncoder(e)
  15371. _, _, _ = h, z, r
  15372. r.WriteArrayStart(len(v))
  15373. for _, yyv1 := range v {
  15374. r.WriteArrayElem()
  15375. if false {
  15376. } else {
  15377. r.EncodeInt(int64(yyv1))
  15378. }
  15379. }
  15380. r.WriteArrayEnd()
  15381. }
  15382. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  15383. var h codecSelfer19780
  15384. z, r := GenHelperDecoder(d)
  15385. _, _, _ = h, z, r
  15386. yyv1 := v
  15387. yyh1, yyl1 := z.DecSliceHelperStart()
  15388. if yyl1 == 0 {
  15389. } else {
  15390. yyhl1 := yyl1 > 0
  15391. var yyrl1 int
  15392. _ = yyrl1
  15393. var yyj1 int
  15394. // var yydn1 bool
  15395. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15396. yyh1.ElemContainerState(yyj1)
  15397. var yydb1 bool
  15398. if yyj1 >= len(yyv1) {
  15399. z.DecArrayCannotExpand(len(v), yyj1+1)
  15400. yydb1 = true
  15401. }
  15402. if yydb1 {
  15403. z.DecSwallow()
  15404. } else {
  15405. if r.TryDecodeAsNil() {
  15406. yyv1[yyj1] = 0
  15407. } else {
  15408. yyv1[yyj1] = (int64)(r.DecodeInt64())
  15409. }
  15410. }
  15411. }
  15412. }
  15413. yyh1.End()
  15414. }
  15415. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  15416. var h codecSelfer19780
  15417. z, r := GenHelperEncoder(e)
  15418. _, _, _ = h, z, r
  15419. r.WriteArrayStart(len(v))
  15420. for _, yyv1 := range v {
  15421. r.WriteArrayElem()
  15422. if yyv1 == nil {
  15423. r.EncodeNil()
  15424. } else {
  15425. yy2 := *yyv1
  15426. if false {
  15427. } else {
  15428. r.EncodeInt(int64(yy2))
  15429. }
  15430. }
  15431. }
  15432. r.WriteArrayEnd()
  15433. }
  15434. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  15435. var h codecSelfer19780
  15436. z, r := GenHelperDecoder(d)
  15437. _, _, _ = h, z, r
  15438. yyv1 := *v
  15439. yyh1, yyl1 := z.DecSliceHelperStart()
  15440. var yyc1 bool
  15441. _ = yyc1
  15442. if yyl1 == 0 {
  15443. if yyv1 == nil {
  15444. yyv1 = []*int64{}
  15445. yyc1 = true
  15446. } else if len(yyv1) != 0 {
  15447. yyv1 = yyv1[:0]
  15448. yyc1 = true
  15449. }
  15450. } else {
  15451. yyhl1 := yyl1 > 0
  15452. var yyrl1 int
  15453. _ = yyrl1
  15454. if yyhl1 {
  15455. if yyl1 > cap(yyv1) {
  15456. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15457. if yyrl1 <= cap(yyv1) {
  15458. yyv1 = yyv1[:yyrl1]
  15459. } else {
  15460. yyv1 = make([]*int64, yyrl1)
  15461. }
  15462. yyc1 = true
  15463. } else if yyl1 != len(yyv1) {
  15464. yyv1 = yyv1[:yyl1]
  15465. yyc1 = true
  15466. }
  15467. }
  15468. var yyj1 int
  15469. // var yydn1 bool
  15470. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15471. if yyj1 == 0 && yyv1 == nil {
  15472. if yyhl1 {
  15473. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15474. } else {
  15475. yyrl1 = 8
  15476. }
  15477. yyv1 = make([]*int64, yyrl1)
  15478. yyc1 = true
  15479. }
  15480. yyh1.ElemContainerState(yyj1)
  15481. var yydb1 bool
  15482. if yyj1 >= len(yyv1) {
  15483. yyv1 = append(yyv1, nil)
  15484. yyc1 = true
  15485. }
  15486. if yydb1 {
  15487. z.DecSwallow()
  15488. } else {
  15489. if r.TryDecodeAsNil() {
  15490. yyv1[yyj1] = nil
  15491. } else {
  15492. if yyv1[yyj1] == nil {
  15493. yyv1[yyj1] = new(int64)
  15494. }
  15495. if false {
  15496. } else {
  15497. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  15498. }
  15499. }
  15500. }
  15501. }
  15502. if yyj1 < len(yyv1) {
  15503. yyv1 = yyv1[:yyj1]
  15504. yyc1 = true
  15505. } else if yyj1 == 0 && yyv1 == nil {
  15506. yyv1 = make([]*int64, 0)
  15507. yyc1 = true
  15508. }
  15509. }
  15510. yyh1.End()
  15511. if yyc1 {
  15512. *v = yyv1
  15513. }
  15514. }
  15515. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  15516. var h codecSelfer19780
  15517. z, r := GenHelperEncoder(e)
  15518. _, _, _ = h, z, r
  15519. r.WriteArrayStart(len(v))
  15520. for _, yyv1 := range v {
  15521. r.WriteArrayElem()
  15522. yy2 := &yyv1
  15523. yy2.CodecEncodeSelf(e)
  15524. }
  15525. r.WriteArrayEnd()
  15526. }
  15527. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  15528. var h codecSelfer19780
  15529. z, r := GenHelperDecoder(d)
  15530. _, _, _ = h, z, r
  15531. yyv1 := *v
  15532. yyh1, yyl1 := z.DecSliceHelperStart()
  15533. var yyc1 bool
  15534. _ = yyc1
  15535. if yyl1 == 0 {
  15536. if yyv1 == nil {
  15537. yyv1 = []stringUint64T{}
  15538. yyc1 = true
  15539. } else if len(yyv1) != 0 {
  15540. yyv1 = yyv1[:0]
  15541. yyc1 = true
  15542. }
  15543. } else {
  15544. yyhl1 := yyl1 > 0
  15545. var yyrl1 int
  15546. _ = yyrl1
  15547. if yyhl1 {
  15548. if yyl1 > cap(yyv1) {
  15549. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15550. if yyrl1 <= cap(yyv1) {
  15551. yyv1 = yyv1[:yyrl1]
  15552. } else {
  15553. yyv1 = make([]stringUint64T, yyrl1)
  15554. }
  15555. yyc1 = true
  15556. } else if yyl1 != len(yyv1) {
  15557. yyv1 = yyv1[:yyl1]
  15558. yyc1 = true
  15559. }
  15560. }
  15561. var yyj1 int
  15562. // var yydn1 bool
  15563. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15564. if yyj1 == 0 && yyv1 == nil {
  15565. if yyhl1 {
  15566. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15567. } else {
  15568. yyrl1 = 8
  15569. }
  15570. yyv1 = make([]stringUint64T, yyrl1)
  15571. yyc1 = true
  15572. }
  15573. yyh1.ElemContainerState(yyj1)
  15574. var yydb1 bool
  15575. if yyj1 >= len(yyv1) {
  15576. yyv1 = append(yyv1, stringUint64T{})
  15577. yyc1 = true
  15578. }
  15579. if yydb1 {
  15580. z.DecSwallow()
  15581. } else {
  15582. if r.TryDecodeAsNil() {
  15583. yyv1[yyj1] = stringUint64T{}
  15584. } else {
  15585. yyv1[yyj1].CodecDecodeSelf(d)
  15586. }
  15587. }
  15588. }
  15589. if yyj1 < len(yyv1) {
  15590. yyv1 = yyv1[:yyj1]
  15591. yyc1 = true
  15592. } else if yyj1 == 0 && yyv1 == nil {
  15593. yyv1 = make([]stringUint64T, 0)
  15594. yyc1 = true
  15595. }
  15596. }
  15597. yyh1.End()
  15598. if yyc1 {
  15599. *v = yyv1
  15600. }
  15601. }
  15602. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  15603. var h codecSelfer19780
  15604. z, r := GenHelperEncoder(e)
  15605. _, _, _ = h, z, r
  15606. r.WriteMapStart(len(v))
  15607. for yyk1, yyv1 := range v {
  15608. r.WriteMapElemKey()
  15609. if false {
  15610. } else {
  15611. if z.EncBasicHandle().StringToRaw {
  15612. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15613. } else {
  15614. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15615. }
  15616. }
  15617. r.WriteMapElemValue()
  15618. if yyv1 == nil {
  15619. r.EncodeNil()
  15620. } else {
  15621. yyv1.CodecEncodeSelf(e)
  15622. }
  15623. }
  15624. r.WriteMapEnd()
  15625. }
  15626. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  15627. var h codecSelfer19780
  15628. z, r := GenHelperDecoder(d)
  15629. _, _, _ = h, z, r
  15630. yyv1 := *v
  15631. yyl1 := r.ReadMapStart()
  15632. yybh1 := z.DecBasicHandle()
  15633. if yyv1 == nil {
  15634. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  15635. yyv1 = make(map[string]*TestStruc, yyrl1)
  15636. *v = yyv1
  15637. }
  15638. var yymk1 string
  15639. var yymv1 *TestStruc
  15640. var yymg1, yymdn1, yyms1, yymok1 bool
  15641. if yybh1.MapValueReset {
  15642. yymg1 = true
  15643. }
  15644. if yyl1 != 0 {
  15645. yyhl1 := yyl1 > 0
  15646. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15647. r.ReadMapElemKey()
  15648. if r.TryDecodeAsNil() {
  15649. yymk1 = ""
  15650. } else {
  15651. yymk1 = (string)(r.DecodeString())
  15652. }
  15653. yyms1 = true
  15654. if yymg1 {
  15655. yymv1, yymok1 = yyv1[yymk1]
  15656. if yymok1 {
  15657. yyms1 = false
  15658. }
  15659. } else {
  15660. yymv1 = nil
  15661. }
  15662. r.ReadMapElemValue()
  15663. yymdn1 = false
  15664. if r.TryDecodeAsNil() {
  15665. yymdn1 = true
  15666. } else {
  15667. if yymv1 == nil {
  15668. yymv1 = new(TestStruc)
  15669. }
  15670. yymv1.CodecDecodeSelf(d)
  15671. }
  15672. if yymdn1 {
  15673. if yybh1.DeleteOnNilMapValue {
  15674. delete(yyv1, yymk1)
  15675. } else {
  15676. yyv1[yymk1] = nil
  15677. }
  15678. } else if yyms1 && yyv1 != nil {
  15679. yyv1[yymk1] = yymv1
  15680. }
  15681. }
  15682. } // else len==0: TODO: Should we clear map entries?
  15683. r.ReadMapEnd()
  15684. }
  15685. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  15686. var h codecSelfer19780
  15687. z, r := GenHelperEncoder(e)
  15688. _, _, _ = h, z, r
  15689. r.WriteMapStart(len(v))
  15690. for yyk1, yyv1 := range v {
  15691. r.WriteMapElemKey()
  15692. if false {
  15693. } else {
  15694. if z.EncBasicHandle().StringToRaw {
  15695. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15696. } else {
  15697. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15698. }
  15699. }
  15700. r.WriteMapElemValue()
  15701. yy3 := &yyv1
  15702. yy3.CodecEncodeSelf(e)
  15703. }
  15704. r.WriteMapEnd()
  15705. }
  15706. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  15707. var h codecSelfer19780
  15708. z, r := GenHelperDecoder(d)
  15709. _, _, _ = h, z, r
  15710. yyv1 := *v
  15711. yyl1 := r.ReadMapStart()
  15712. yybh1 := z.DecBasicHandle()
  15713. if yyv1 == nil {
  15714. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1184)
  15715. yyv1 = make(map[string]TestStruc, yyrl1)
  15716. *v = yyv1
  15717. }
  15718. var yymk1 string
  15719. var yymv1 TestStruc
  15720. var yymg1, yymdn1 bool
  15721. if yybh1.MapValueReset {
  15722. yymg1 = true
  15723. }
  15724. if yyl1 != 0 {
  15725. yyhl1 := yyl1 > 0
  15726. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15727. r.ReadMapElemKey()
  15728. if r.TryDecodeAsNil() {
  15729. yymk1 = ""
  15730. } else {
  15731. yymk1 = (string)(r.DecodeString())
  15732. }
  15733. if yymg1 {
  15734. yymv1 = yyv1[yymk1]
  15735. } else {
  15736. yymv1 = TestStruc{}
  15737. }
  15738. r.ReadMapElemValue()
  15739. yymdn1 = false
  15740. if r.TryDecodeAsNil() {
  15741. yymdn1 = true
  15742. } else {
  15743. yymv1.CodecDecodeSelf(d)
  15744. }
  15745. if yymdn1 {
  15746. if yybh1.DeleteOnNilMapValue {
  15747. delete(yyv1, yymk1)
  15748. } else {
  15749. yyv1[yymk1] = TestStruc{}
  15750. }
  15751. } else if yyv1 != nil {
  15752. yyv1[yymk1] = yymv1
  15753. }
  15754. }
  15755. } // else len==0: TODO: Should we clear map entries?
  15756. r.ReadMapEnd()
  15757. }
  15758. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  15759. var h codecSelfer19780
  15760. z, r := GenHelperEncoder(e)
  15761. _, _, _ = h, z, r
  15762. r.WriteArrayStart(len(v))
  15763. for _, yyv1 := range v {
  15764. r.WriteArrayElem()
  15765. if yyv1 == nil {
  15766. r.EncodeNil()
  15767. } else {
  15768. yyv1.CodecEncodeSelf(e)
  15769. }
  15770. }
  15771. r.WriteArrayEnd()
  15772. }
  15773. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  15774. var h codecSelfer19780
  15775. z, r := GenHelperDecoder(d)
  15776. _, _, _ = h, z, r
  15777. yyv1 := *v
  15778. yyh1, yyl1 := z.DecSliceHelperStart()
  15779. var yyc1 bool
  15780. _ = yyc1
  15781. if yyl1 == 0 {
  15782. if yyv1 == nil {
  15783. yyv1 = []*TestStruc{}
  15784. yyc1 = true
  15785. } else if len(yyv1) != 0 {
  15786. yyv1 = yyv1[:0]
  15787. yyc1 = true
  15788. }
  15789. } else {
  15790. yyhl1 := yyl1 > 0
  15791. var yyrl1 int
  15792. _ = yyrl1
  15793. if yyhl1 {
  15794. if yyl1 > cap(yyv1) {
  15795. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15796. if yyrl1 <= cap(yyv1) {
  15797. yyv1 = yyv1[:yyrl1]
  15798. } else {
  15799. yyv1 = make([]*TestStruc, yyrl1)
  15800. }
  15801. yyc1 = true
  15802. } else if yyl1 != len(yyv1) {
  15803. yyv1 = yyv1[:yyl1]
  15804. yyc1 = true
  15805. }
  15806. }
  15807. var yyj1 int
  15808. // var yydn1 bool
  15809. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15810. if yyj1 == 0 && yyv1 == nil {
  15811. if yyhl1 {
  15812. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15813. } else {
  15814. yyrl1 = 8
  15815. }
  15816. yyv1 = make([]*TestStruc, yyrl1)
  15817. yyc1 = true
  15818. }
  15819. yyh1.ElemContainerState(yyj1)
  15820. var yydb1 bool
  15821. if yyj1 >= len(yyv1) {
  15822. yyv1 = append(yyv1, nil)
  15823. yyc1 = true
  15824. }
  15825. if yydb1 {
  15826. z.DecSwallow()
  15827. } else {
  15828. if r.TryDecodeAsNil() {
  15829. yyv1[yyj1] = nil
  15830. } else {
  15831. if yyv1[yyj1] == nil {
  15832. yyv1[yyj1] = new(TestStruc)
  15833. }
  15834. yyv1[yyj1].CodecDecodeSelf(d)
  15835. }
  15836. }
  15837. }
  15838. if yyj1 < len(yyv1) {
  15839. yyv1 = yyv1[:yyj1]
  15840. yyc1 = true
  15841. } else if yyj1 == 0 && yyv1 == nil {
  15842. yyv1 = make([]*TestStruc, 0)
  15843. yyc1 = true
  15844. }
  15845. }
  15846. yyh1.End()
  15847. if yyc1 {
  15848. *v = yyv1
  15849. }
  15850. }
  15851. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  15852. var h codecSelfer19780
  15853. z, r := GenHelperEncoder(e)
  15854. _, _, _ = h, z, r
  15855. r.WriteArrayStart(len(v))
  15856. for _, yyv1 := range v {
  15857. r.WriteArrayElem()
  15858. if false {
  15859. } else {
  15860. if z.EncBasicHandle().StringToRaw {
  15861. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15862. } else {
  15863. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15864. }
  15865. }
  15866. }
  15867. r.WriteArrayEnd()
  15868. }
  15869. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  15870. var h codecSelfer19780
  15871. z, r := GenHelperDecoder(d)
  15872. _, _, _ = h, z, r
  15873. yyv1 := v
  15874. yyh1, yyl1 := z.DecSliceHelperStart()
  15875. if yyl1 == 0 {
  15876. } else {
  15877. yyhl1 := yyl1 > 0
  15878. var yyrl1 int
  15879. _ = yyrl1
  15880. var yyj1 int
  15881. // var yydn1 bool
  15882. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15883. yyh1.ElemContainerState(yyj1)
  15884. var yydb1 bool
  15885. if yyj1 >= len(yyv1) {
  15886. z.DecArrayCannotExpand(len(v), yyj1+1)
  15887. yydb1 = true
  15888. }
  15889. if yydb1 {
  15890. z.DecSwallow()
  15891. } else {
  15892. if r.TryDecodeAsNil() {
  15893. yyv1[yyj1] = ""
  15894. } else {
  15895. yyv1[yyj1] = (string)(r.DecodeString())
  15896. }
  15897. }
  15898. }
  15899. }
  15900. yyh1.End()
  15901. }
  15902. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  15903. var h codecSelfer19780
  15904. z, r := GenHelperEncoder(e)
  15905. _, _, _ = h, z, r
  15906. r.EncodeStringBytesRaw([]byte(v))
  15907. }
  15908. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  15909. var h codecSelfer19780
  15910. z, r := GenHelperDecoder(d)
  15911. _, _, _ = h, z, r
  15912. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  15913. }
  15914. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  15915. var h codecSelfer19780
  15916. z, r := GenHelperEncoder(e)
  15917. _, _, _ = h, z, r
  15918. if v == nil {
  15919. r.EncodeNil()
  15920. } else {
  15921. var sch1 []string
  15922. Lsch1:
  15923. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  15924. case timeout1 == 0: // only consume available
  15925. for {
  15926. select {
  15927. case b1 := <-v:
  15928. sch1 = append(sch1, b1)
  15929. default:
  15930. break Lsch1
  15931. }
  15932. }
  15933. case timeout1 > 0: // consume until timeout
  15934. tt1 := time.NewTimer(timeout1)
  15935. for {
  15936. select {
  15937. case b1 := <-v:
  15938. sch1 = append(sch1, b1)
  15939. case <-tt1.C:
  15940. // close(tt.C)
  15941. break Lsch1
  15942. }
  15943. }
  15944. default: // consume until close
  15945. for b1 := range v {
  15946. sch1 = append(sch1, b1)
  15947. }
  15948. }
  15949. r.WriteArrayStart(len(sch1))
  15950. for _, yyv1 := range sch1 {
  15951. r.WriteArrayElem()
  15952. if false {
  15953. } else {
  15954. if z.EncBasicHandle().StringToRaw {
  15955. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15956. } else {
  15957. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15958. }
  15959. }
  15960. }
  15961. r.WriteArrayEnd()
  15962. }
  15963. }
  15964. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  15965. var h codecSelfer19780
  15966. z, r := GenHelperDecoder(d)
  15967. _, _, _ = h, z, r
  15968. yyv1 := *v
  15969. yyh1, yyl1 := z.DecSliceHelperStart()
  15970. var yyc1 bool
  15971. _ = yyc1
  15972. if yyl1 == 0 {
  15973. if yyv1 == nil {
  15974. yyv1 = make(chan string, 0)
  15975. yyc1 = true
  15976. }
  15977. } else {
  15978. yyhl1 := yyl1 > 0
  15979. var yyrl1 int
  15980. _ = yyrl1
  15981. var yyj1 int
  15982. // var yydn1 bool
  15983. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15984. if yyj1 == 0 && yyv1 == nil {
  15985. if yyhl1 {
  15986. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15987. } else {
  15988. yyrl1 = 64
  15989. }
  15990. yyv1 = make(chan string, yyrl1)
  15991. yyc1 = true
  15992. }
  15993. yyh1.ElemContainerState(yyj1)
  15994. var yyvcx1 string
  15995. if r.TryDecodeAsNil() {
  15996. yyvcx1 = ""
  15997. } else {
  15998. yyvcx1 = (string)(r.DecodeString())
  15999. }
  16000. yyv1 <- yyvcx1
  16001. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  16002. }
  16003. }
  16004. yyh1.End()
  16005. if yyc1 {
  16006. *v = yyv1
  16007. }
  16008. }
  16009. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  16010. var h codecSelfer19780
  16011. z, r := GenHelperEncoder(e)
  16012. _, _, _ = h, z, r
  16013. r.WriteMapStart(len(v))
  16014. for yyk1, yyv1 := range v {
  16015. r.WriteMapElemKey()
  16016. if false {
  16017. } else {
  16018. r.EncodeBool(bool(yyk1))
  16019. }
  16020. r.WriteMapElemValue()
  16021. yy3 := &yyv1
  16022. if false {
  16023. } else {
  16024. z.EncFallback(yy3)
  16025. }
  16026. }
  16027. r.WriteMapEnd()
  16028. }
  16029. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  16030. var h codecSelfer19780
  16031. z, r := GenHelperDecoder(d)
  16032. _, _, _ = h, z, r
  16033. yyv1 := *v
  16034. yyl1 := r.ReadMapStart()
  16035. yybh1 := z.DecBasicHandle()
  16036. if yyv1 == nil {
  16037. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  16038. yyv1 = make(map[bool]struct{}, yyrl1)
  16039. *v = yyv1
  16040. }
  16041. var yymk1 bool
  16042. var yymv1 struct{}
  16043. var yymg1, yymdn1 bool
  16044. if yybh1.MapValueReset {
  16045. yymg1 = true
  16046. }
  16047. if yyl1 != 0 {
  16048. yyhl1 := yyl1 > 0
  16049. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16050. r.ReadMapElemKey()
  16051. if r.TryDecodeAsNil() {
  16052. yymk1 = false
  16053. } else {
  16054. yymk1 = (bool)(r.DecodeBool())
  16055. }
  16056. if yymg1 {
  16057. yymv1 = yyv1[yymk1]
  16058. } else {
  16059. yymv1 = struct{}{}
  16060. }
  16061. r.ReadMapElemValue()
  16062. yymdn1 = false
  16063. if r.TryDecodeAsNil() {
  16064. yymdn1 = true
  16065. } else {
  16066. if false {
  16067. } else {
  16068. z.DecFallback(&yymv1, false)
  16069. }
  16070. }
  16071. if yymdn1 {
  16072. if yybh1.DeleteOnNilMapValue {
  16073. delete(yyv1, yymk1)
  16074. } else {
  16075. yyv1[yymk1] = struct{}{}
  16076. }
  16077. } else if yyv1 != nil {
  16078. yyv1[yymk1] = yymv1
  16079. }
  16080. }
  16081. } // else len==0: TODO: Should we clear map entries?
  16082. r.ReadMapEnd()
  16083. }
  16084. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  16085. var h codecSelfer19780
  16086. z, r := GenHelperEncoder(e)
  16087. _, _, _ = h, z, r
  16088. r.WriteMapStart(len(v))
  16089. for yyk1, yyv1 := range v {
  16090. r.WriteMapElemKey()
  16091. if false {
  16092. } else {
  16093. r.EncodeInt(int64(yyk1))
  16094. }
  16095. r.WriteMapElemValue()
  16096. if yyv1 == nil {
  16097. r.EncodeNil()
  16098. } else {
  16099. yyv1.CodecEncodeSelf(e)
  16100. }
  16101. }
  16102. r.WriteMapEnd()
  16103. }
  16104. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  16105. var h codecSelfer19780
  16106. z, r := GenHelperDecoder(d)
  16107. _, _, _ = h, z, r
  16108. yyv1 := *v
  16109. yyl1 := r.ReadMapStart()
  16110. yybh1 := z.DecBasicHandle()
  16111. if yyv1 == nil {
  16112. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16113. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  16114. *v = yyv1
  16115. }
  16116. var yymk1 int
  16117. var yymv1 wrapUint64Slice
  16118. var yymg1, yymdn1 bool
  16119. if yybh1.MapValueReset {
  16120. yymg1 = true
  16121. }
  16122. if yyl1 != 0 {
  16123. yyhl1 := yyl1 > 0
  16124. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16125. r.ReadMapElemKey()
  16126. if r.TryDecodeAsNil() {
  16127. yymk1 = 0
  16128. } else {
  16129. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  16130. }
  16131. if yymg1 {
  16132. yymv1 = yyv1[yymk1]
  16133. } else {
  16134. yymv1 = nil
  16135. }
  16136. r.ReadMapElemValue()
  16137. yymdn1 = false
  16138. if r.TryDecodeAsNil() {
  16139. yymdn1 = true
  16140. } else {
  16141. yymv1.CodecDecodeSelf(d)
  16142. }
  16143. if yymdn1 {
  16144. if yybh1.DeleteOnNilMapValue {
  16145. delete(yyv1, yymk1)
  16146. } else {
  16147. yyv1[yymk1] = nil
  16148. }
  16149. } else if yyv1 != nil {
  16150. yyv1[yymk1] = yymv1
  16151. }
  16152. }
  16153. } // else len==0: TODO: Should we clear map entries?
  16154. r.ReadMapEnd()
  16155. }
  16156. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  16157. var h codecSelfer19780
  16158. z, r := GenHelperEncoder(e)
  16159. _, _, _ = h, z, r
  16160. r.WriteMapStart(len(v))
  16161. for yyk1, yyv1 := range v {
  16162. r.WriteMapElemKey()
  16163. if false {
  16164. } else {
  16165. r.EncodeFloat64(float64(yyk1))
  16166. }
  16167. r.WriteMapElemValue()
  16168. if yyv1 == nil {
  16169. r.EncodeNil()
  16170. } else {
  16171. yyv1.CodecEncodeSelf(e)
  16172. }
  16173. }
  16174. r.WriteMapEnd()
  16175. }
  16176. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  16177. var h codecSelfer19780
  16178. z, r := GenHelperDecoder(d)
  16179. _, _, _ = h, z, r
  16180. yyv1 := *v
  16181. yyl1 := r.ReadMapStart()
  16182. yybh1 := z.DecBasicHandle()
  16183. if yyv1 == nil {
  16184. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16185. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  16186. *v = yyv1
  16187. }
  16188. var yymk1 float64
  16189. var yymv1 wrapStringSlice
  16190. var yymg1, yymdn1 bool
  16191. if yybh1.MapValueReset {
  16192. yymg1 = true
  16193. }
  16194. if yyl1 != 0 {
  16195. yyhl1 := yyl1 > 0
  16196. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16197. r.ReadMapElemKey()
  16198. if r.TryDecodeAsNil() {
  16199. yymk1 = 0
  16200. } else {
  16201. yymk1 = (float64)(r.DecodeFloat64())
  16202. }
  16203. if yymg1 {
  16204. yymv1 = yyv1[yymk1]
  16205. } else {
  16206. yymv1 = nil
  16207. }
  16208. r.ReadMapElemValue()
  16209. yymdn1 = false
  16210. if r.TryDecodeAsNil() {
  16211. yymdn1 = true
  16212. } else {
  16213. yymv1.CodecDecodeSelf(d)
  16214. }
  16215. if yymdn1 {
  16216. if yybh1.DeleteOnNilMapValue {
  16217. delete(yyv1, yymk1)
  16218. } else {
  16219. yyv1[yymk1] = nil
  16220. }
  16221. } else if yyv1 != nil {
  16222. yyv1[yymk1] = yymv1
  16223. }
  16224. }
  16225. } // else len==0: TODO: Should we clear map entries?
  16226. r.ReadMapEnd()
  16227. }
  16228. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  16229. var h codecSelfer19780
  16230. z, r := GenHelperEncoder(e)
  16231. _, _, _ = h, z, r
  16232. r.WriteMapStart(len(v))
  16233. for yyk1, yyv1 := range v {
  16234. r.WriteMapElemKey()
  16235. if false {
  16236. } else {
  16237. r.EncodeFloat32(float32(yyk1))
  16238. }
  16239. r.WriteMapElemValue()
  16240. if yyv1 == nil {
  16241. r.EncodeNil()
  16242. } else {
  16243. yyv1.CodecEncodeSelf(e)
  16244. }
  16245. }
  16246. r.WriteMapEnd()
  16247. }
  16248. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  16249. var h codecSelfer19780
  16250. z, r := GenHelperDecoder(d)
  16251. _, _, _ = h, z, r
  16252. yyv1 := *v
  16253. yyl1 := r.ReadMapStart()
  16254. yybh1 := z.DecBasicHandle()
  16255. if yyv1 == nil {
  16256. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  16257. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  16258. *v = yyv1
  16259. }
  16260. var yymk1 float32
  16261. var yymv1 wrapStringSlice
  16262. var yymg1, yymdn1 bool
  16263. if yybh1.MapValueReset {
  16264. yymg1 = true
  16265. }
  16266. if yyl1 != 0 {
  16267. yyhl1 := yyl1 > 0
  16268. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16269. r.ReadMapElemKey()
  16270. if r.TryDecodeAsNil() {
  16271. yymk1 = 0
  16272. } else {
  16273. yymk1 = (float32)(r.DecodeFloat32As64())
  16274. }
  16275. if yymg1 {
  16276. yymv1 = yyv1[yymk1]
  16277. } else {
  16278. yymv1 = nil
  16279. }
  16280. r.ReadMapElemValue()
  16281. yymdn1 = false
  16282. if r.TryDecodeAsNil() {
  16283. yymdn1 = true
  16284. } else {
  16285. yymv1.CodecDecodeSelf(d)
  16286. }
  16287. if yymdn1 {
  16288. if yybh1.DeleteOnNilMapValue {
  16289. delete(yyv1, yymk1)
  16290. } else {
  16291. yyv1[yymk1] = nil
  16292. }
  16293. } else if yyv1 != nil {
  16294. yyv1[yymk1] = yymv1
  16295. }
  16296. }
  16297. } // else len==0: TODO: Should we clear map entries?
  16298. r.ReadMapEnd()
  16299. }
  16300. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  16301. var h codecSelfer19780
  16302. z, r := GenHelperEncoder(e)
  16303. _, _, _ = h, z, r
  16304. r.WriteMapStart(len(v))
  16305. for yyk1, yyv1 := range v {
  16306. r.WriteMapElemKey()
  16307. if false {
  16308. } else {
  16309. r.EncodeUint(uint64(yyk1))
  16310. }
  16311. r.WriteMapElemValue()
  16312. if yyv1 == nil {
  16313. r.EncodeNil()
  16314. } else {
  16315. yyv1.CodecEncodeSelf(e)
  16316. }
  16317. }
  16318. r.WriteMapEnd()
  16319. }
  16320. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  16321. var h codecSelfer19780
  16322. z, r := GenHelperDecoder(d)
  16323. _, _, _ = h, z, r
  16324. yyv1 := *v
  16325. yyl1 := r.ReadMapStart()
  16326. yybh1 := z.DecBasicHandle()
  16327. if yyv1 == nil {
  16328. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16329. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  16330. *v = yyv1
  16331. }
  16332. var yymk1 uint64
  16333. var yymv1 wrapStringSlice
  16334. var yymg1, yymdn1 bool
  16335. if yybh1.MapValueReset {
  16336. yymg1 = true
  16337. }
  16338. if yyl1 != 0 {
  16339. yyhl1 := yyl1 > 0
  16340. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16341. r.ReadMapElemKey()
  16342. if r.TryDecodeAsNil() {
  16343. yymk1 = 0
  16344. } else {
  16345. yymk1 = (uint64)(r.DecodeUint64())
  16346. }
  16347. if yymg1 {
  16348. yymv1 = yyv1[yymk1]
  16349. } else {
  16350. yymv1 = nil
  16351. }
  16352. r.ReadMapElemValue()
  16353. yymdn1 = false
  16354. if r.TryDecodeAsNil() {
  16355. yymdn1 = true
  16356. } else {
  16357. yymv1.CodecDecodeSelf(d)
  16358. }
  16359. if yymdn1 {
  16360. if yybh1.DeleteOnNilMapValue {
  16361. delete(yyv1, yymk1)
  16362. } else {
  16363. yyv1[yymk1] = nil
  16364. }
  16365. } else if yyv1 != nil {
  16366. yyv1[yymk1] = yymv1
  16367. }
  16368. }
  16369. } // else len==0: TODO: Should we clear map entries?
  16370. r.ReadMapEnd()
  16371. }
  16372. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  16373. var h codecSelfer19780
  16374. z, r := GenHelperEncoder(e)
  16375. _, _, _ = h, z, r
  16376. r.WriteMapStart(len(v))
  16377. for yyk1, yyv1 := range v {
  16378. r.WriteMapElemKey()
  16379. yy2 := &yyk1
  16380. yy2.CodecEncodeSelf(e)
  16381. r.WriteMapElemValue()
  16382. if yyv1 == nil {
  16383. r.EncodeNil()
  16384. } else {
  16385. yyv1.CodecEncodeSelf(e)
  16386. }
  16387. }
  16388. r.WriteMapEnd()
  16389. }
  16390. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  16391. var h codecSelfer19780
  16392. z, r := GenHelperDecoder(d)
  16393. _, _, _ = h, z, r
  16394. yyv1 := *v
  16395. yyl1 := r.ReadMapStart()
  16396. yybh1 := z.DecBasicHandle()
  16397. if yyv1 == nil {
  16398. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  16399. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  16400. *v = yyv1
  16401. }
  16402. var yymk1 stringUint64T
  16403. var yymv1 wrapStringSlice
  16404. var yymg1, yymdn1 bool
  16405. if yybh1.MapValueReset {
  16406. yymg1 = true
  16407. }
  16408. if yyl1 != 0 {
  16409. yyhl1 := yyl1 > 0
  16410. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16411. r.ReadMapElemKey()
  16412. if r.TryDecodeAsNil() {
  16413. yymk1 = stringUint64T{}
  16414. } else {
  16415. yymk1.CodecDecodeSelf(d)
  16416. }
  16417. if yymg1 {
  16418. yymv1 = yyv1[yymk1]
  16419. } else {
  16420. yymv1 = nil
  16421. }
  16422. r.ReadMapElemValue()
  16423. yymdn1 = false
  16424. if r.TryDecodeAsNil() {
  16425. yymdn1 = true
  16426. } else {
  16427. yymv1.CodecDecodeSelf(d)
  16428. }
  16429. if yymdn1 {
  16430. if yybh1.DeleteOnNilMapValue {
  16431. delete(yyv1, yymk1)
  16432. } else {
  16433. yyv1[yymk1] = nil
  16434. }
  16435. } else if yyv1 != nil {
  16436. yyv1[yymk1] = yymv1
  16437. }
  16438. }
  16439. } // else len==0: TODO: Should we clear map entries?
  16440. r.ReadMapEnd()
  16441. }
  16442. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  16443. var h codecSelfer19780
  16444. z, r := GenHelperEncoder(e)
  16445. _, _, _ = h, z, r
  16446. r.WriteArrayStart(len(v))
  16447. for _, yyv1 := range v {
  16448. r.WriteArrayElem()
  16449. if yyv1 == nil {
  16450. r.EncodeNil()
  16451. } else {
  16452. yyv1.CodecEncodeSelf(e)
  16453. }
  16454. }
  16455. r.WriteArrayEnd()
  16456. }
  16457. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  16458. var h codecSelfer19780
  16459. z, r := GenHelperDecoder(d)
  16460. _, _, _ = h, z, r
  16461. yyv1 := *v
  16462. yyh1, yyl1 := z.DecSliceHelperStart()
  16463. var yyc1 bool
  16464. _ = yyc1
  16465. if yyl1 == 0 {
  16466. if yyv1 == nil {
  16467. yyv1 = []wrapBytes{}
  16468. yyc1 = true
  16469. } else if len(yyv1) != 0 {
  16470. yyv1 = yyv1[:0]
  16471. yyc1 = true
  16472. }
  16473. } else {
  16474. yyhl1 := yyl1 > 0
  16475. var yyrl1 int
  16476. _ = yyrl1
  16477. if yyhl1 {
  16478. if yyl1 > cap(yyv1) {
  16479. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  16480. if yyrl1 <= cap(yyv1) {
  16481. yyv1 = yyv1[:yyrl1]
  16482. } else {
  16483. yyv1 = make([]wrapBytes, yyrl1)
  16484. }
  16485. yyc1 = true
  16486. } else if yyl1 != len(yyv1) {
  16487. yyv1 = yyv1[:yyl1]
  16488. yyc1 = true
  16489. }
  16490. }
  16491. var yyj1 int
  16492. // var yydn1 bool
  16493. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16494. if yyj1 == 0 && yyv1 == nil {
  16495. if yyhl1 {
  16496. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  16497. } else {
  16498. yyrl1 = 8
  16499. }
  16500. yyv1 = make([]wrapBytes, yyrl1)
  16501. yyc1 = true
  16502. }
  16503. yyh1.ElemContainerState(yyj1)
  16504. var yydb1 bool
  16505. if yyj1 >= len(yyv1) {
  16506. yyv1 = append(yyv1, nil)
  16507. yyc1 = true
  16508. }
  16509. if yydb1 {
  16510. z.DecSwallow()
  16511. } else {
  16512. if r.TryDecodeAsNil() {
  16513. yyv1[yyj1] = nil
  16514. } else {
  16515. yyv1[yyj1].CodecDecodeSelf(d)
  16516. }
  16517. }
  16518. }
  16519. if yyj1 < len(yyv1) {
  16520. yyv1 = yyv1[:yyj1]
  16521. yyc1 = true
  16522. } else if yyj1 == 0 && yyv1 == nil {
  16523. yyv1 = make([]wrapBytes, 0)
  16524. yyc1 = true
  16525. }
  16526. }
  16527. yyh1.End()
  16528. if yyc1 {
  16529. *v = yyv1
  16530. }
  16531. }
  16532. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  16533. var h codecSelfer19780
  16534. z, r := GenHelperEncoder(e)
  16535. _, _, _ = h, z, r
  16536. r.WriteArrayStart(len(v))
  16537. for _, yyv1 := range v {
  16538. r.WriteArrayElem()
  16539. yyv1.CodecEncodeSelf(e)
  16540. }
  16541. r.WriteArrayEnd()
  16542. }
  16543. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  16544. var h codecSelfer19780
  16545. z, r := GenHelperDecoder(d)
  16546. _, _, _ = h, z, r
  16547. yyv1 := *v
  16548. yyh1, yyl1 := z.DecSliceHelperStart()
  16549. var yyc1 bool
  16550. _ = yyc1
  16551. if yyl1 == 0 {
  16552. if yyv1 == nil {
  16553. yyv1 = []wrapUint8{}
  16554. yyc1 = true
  16555. } else if len(yyv1) != 0 {
  16556. yyv1 = yyv1[:0]
  16557. yyc1 = true
  16558. }
  16559. } else {
  16560. yyhl1 := yyl1 > 0
  16561. var yyrl1 int
  16562. _ = yyrl1
  16563. if yyhl1 {
  16564. if yyl1 > cap(yyv1) {
  16565. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  16566. if yyrl1 <= cap(yyv1) {
  16567. yyv1 = yyv1[:yyrl1]
  16568. } else {
  16569. yyv1 = make([]wrapUint8, yyrl1)
  16570. }
  16571. yyc1 = true
  16572. } else if yyl1 != len(yyv1) {
  16573. yyv1 = yyv1[:yyl1]
  16574. yyc1 = true
  16575. }
  16576. }
  16577. var yyj1 int
  16578. // var yydn1 bool
  16579. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16580. if yyj1 == 0 && yyv1 == nil {
  16581. if yyhl1 {
  16582. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  16583. } else {
  16584. yyrl1 = 8
  16585. }
  16586. yyv1 = make([]wrapUint8, yyrl1)
  16587. yyc1 = true
  16588. }
  16589. yyh1.ElemContainerState(yyj1)
  16590. var yydb1 bool
  16591. if yyj1 >= len(yyv1) {
  16592. yyv1 = append(yyv1, 0)
  16593. yyc1 = true
  16594. }
  16595. if yydb1 {
  16596. z.DecSwallow()
  16597. } else {
  16598. if r.TryDecodeAsNil() {
  16599. yyv1[yyj1] = 0
  16600. } else {
  16601. yyv1[yyj1].CodecDecodeSelf(d)
  16602. }
  16603. }
  16604. }
  16605. if yyj1 < len(yyv1) {
  16606. yyv1 = yyv1[:yyj1]
  16607. yyc1 = true
  16608. } else if yyj1 == 0 && yyv1 == nil {
  16609. yyv1 = make([]wrapUint8, 0)
  16610. yyc1 = true
  16611. }
  16612. }
  16613. yyh1.End()
  16614. if yyc1 {
  16615. *v = yyv1
  16616. }
  16617. }
  16618. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  16619. var h codecSelfer19780
  16620. z, r := GenHelperEncoder(e)
  16621. _, _, _ = h, z, r
  16622. r.WriteArrayStart(len(v))
  16623. for _, yyv1 := range v {
  16624. r.WriteArrayElem()
  16625. yy2 := &yyv1
  16626. yy2.CodecEncodeSelf(e)
  16627. }
  16628. r.WriteArrayEnd()
  16629. }
  16630. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  16631. var h codecSelfer19780
  16632. z, r := GenHelperDecoder(d)
  16633. _, _, _ = h, z, r
  16634. yyv1 := v
  16635. yyh1, yyl1 := z.DecSliceHelperStart()
  16636. if yyl1 == 0 {
  16637. } else {
  16638. yyhl1 := yyl1 > 0
  16639. var yyrl1 int
  16640. _ = yyrl1
  16641. var yyj1 int
  16642. // var yydn1 bool
  16643. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16644. yyh1.ElemContainerState(yyj1)
  16645. var yydb1 bool
  16646. if yyj1 >= len(yyv1) {
  16647. z.DecArrayCannotExpand(len(v), yyj1+1)
  16648. yydb1 = true
  16649. }
  16650. if yydb1 {
  16651. z.DecSwallow()
  16652. } else {
  16653. if r.TryDecodeAsNil() {
  16654. yyv1[yyj1] = stringUint64T{}
  16655. } else {
  16656. yyv1[yyj1].CodecDecodeSelf(d)
  16657. }
  16658. }
  16659. }
  16660. }
  16661. yyh1.End()
  16662. }
  16663. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  16664. var h codecSelfer19780
  16665. z, r := GenHelperEncoder(e)
  16666. _, _, _ = h, z, r
  16667. r.WriteArrayStart(len(v))
  16668. for _, yyv1 := range v {
  16669. r.WriteArrayElem()
  16670. if false {
  16671. } else {
  16672. r.EncodeUint(uint64(yyv1))
  16673. }
  16674. }
  16675. r.WriteArrayEnd()
  16676. }
  16677. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  16678. var h codecSelfer19780
  16679. z, r := GenHelperDecoder(d)
  16680. _, _, _ = h, z, r
  16681. yyv1 := v
  16682. yyh1, yyl1 := z.DecSliceHelperStart()
  16683. if yyl1 == 0 {
  16684. } else {
  16685. yyhl1 := yyl1 > 0
  16686. var yyrl1 int
  16687. _ = yyrl1
  16688. var yyj1 int
  16689. // var yydn1 bool
  16690. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16691. yyh1.ElemContainerState(yyj1)
  16692. var yydb1 bool
  16693. if yyj1 >= len(yyv1) {
  16694. z.DecArrayCannotExpand(len(v), yyj1+1)
  16695. yydb1 = true
  16696. }
  16697. if yydb1 {
  16698. z.DecSwallow()
  16699. } else {
  16700. if r.TryDecodeAsNil() {
  16701. yyv1[yyj1] = 0
  16702. } else {
  16703. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  16704. }
  16705. }
  16706. }
  16707. }
  16708. yyh1.End()
  16709. }
  16710. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  16711. var h codecSelfer19780
  16712. z, r := GenHelperEncoder(e)
  16713. _, _, _ = h, z, r
  16714. r.WriteArrayStart(len(v))
  16715. for _, yyv1 := range v {
  16716. r.WriteArrayElem()
  16717. if yyv1 == nil {
  16718. r.EncodeNil()
  16719. } else {
  16720. if false {
  16721. } else {
  16722. h.encArray4uint64((*[4]uint64)(yyv1), e)
  16723. }
  16724. }
  16725. }
  16726. r.WriteArrayEnd()
  16727. }
  16728. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  16729. var h codecSelfer19780
  16730. z, r := GenHelperDecoder(d)
  16731. _, _, _ = h, z, r
  16732. yyv1 := *v
  16733. yyh1, yyl1 := z.DecSliceHelperStart()
  16734. var yyc1 bool
  16735. _ = yyc1
  16736. if yyl1 == 0 {
  16737. if yyv1 == nil {
  16738. yyv1 = []*[4]uint64{}
  16739. yyc1 = true
  16740. } else if len(yyv1) != 0 {
  16741. yyv1 = yyv1[:0]
  16742. yyc1 = true
  16743. }
  16744. } else {
  16745. yyhl1 := yyl1 > 0
  16746. var yyrl1 int
  16747. _ = yyrl1
  16748. if yyhl1 {
  16749. if yyl1 > cap(yyv1) {
  16750. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16751. if yyrl1 <= cap(yyv1) {
  16752. yyv1 = yyv1[:yyrl1]
  16753. } else {
  16754. yyv1 = make([]*[4]uint64, yyrl1)
  16755. }
  16756. yyc1 = true
  16757. } else if yyl1 != len(yyv1) {
  16758. yyv1 = yyv1[:yyl1]
  16759. yyc1 = true
  16760. }
  16761. }
  16762. var yyj1 int
  16763. // var yydn1 bool
  16764. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16765. if yyj1 == 0 && yyv1 == nil {
  16766. if yyhl1 {
  16767. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16768. } else {
  16769. yyrl1 = 8
  16770. }
  16771. yyv1 = make([]*[4]uint64, yyrl1)
  16772. yyc1 = true
  16773. }
  16774. yyh1.ElemContainerState(yyj1)
  16775. var yydb1 bool
  16776. if yyj1 >= len(yyv1) {
  16777. yyv1 = append(yyv1, nil)
  16778. yyc1 = true
  16779. }
  16780. if yydb1 {
  16781. z.DecSwallow()
  16782. } else {
  16783. if r.TryDecodeAsNil() {
  16784. yyv1[yyj1] = nil
  16785. } else {
  16786. if yyv1[yyj1] == nil {
  16787. yyv1[yyj1] = new([4]uint64)
  16788. }
  16789. if false {
  16790. } else {
  16791. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  16792. }
  16793. }
  16794. }
  16795. }
  16796. if yyj1 < len(yyv1) {
  16797. yyv1 = yyv1[:yyj1]
  16798. yyc1 = true
  16799. } else if yyj1 == 0 && yyv1 == nil {
  16800. yyv1 = make([]*[4]uint64, 0)
  16801. yyc1 = true
  16802. }
  16803. }
  16804. yyh1.End()
  16805. if yyc1 {
  16806. *v = yyv1
  16807. }
  16808. }
  16809. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  16810. var h codecSelfer19780
  16811. z, r := GenHelperEncoder(e)
  16812. _, _, _ = h, z, r
  16813. r.WriteMapStart(len(v))
  16814. for yyk1, yyv1 := range v {
  16815. r.WriteMapElemKey()
  16816. if false {
  16817. } else {
  16818. if z.EncBasicHandle().StringToRaw {
  16819. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16820. } else {
  16821. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16822. }
  16823. }
  16824. r.WriteMapElemValue()
  16825. if yyv1 == nil {
  16826. r.EncodeNil()
  16827. } else {
  16828. yyv1.CodecEncodeSelf(e)
  16829. }
  16830. }
  16831. r.WriteMapEnd()
  16832. }
  16833. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  16834. var h codecSelfer19780
  16835. z, r := GenHelperDecoder(d)
  16836. _, _, _ = h, z, r
  16837. yyv1 := *v
  16838. yyl1 := r.ReadMapStart()
  16839. yybh1 := z.DecBasicHandle()
  16840. if yyv1 == nil {
  16841. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  16842. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  16843. *v = yyv1
  16844. }
  16845. var yymk1 string
  16846. var yymv1 *TestStrucFlex
  16847. var yymg1, yymdn1, yyms1, yymok1 bool
  16848. if yybh1.MapValueReset {
  16849. yymg1 = true
  16850. }
  16851. if yyl1 != 0 {
  16852. yyhl1 := yyl1 > 0
  16853. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16854. r.ReadMapElemKey()
  16855. if r.TryDecodeAsNil() {
  16856. yymk1 = ""
  16857. } else {
  16858. yymk1 = (string)(r.DecodeString())
  16859. }
  16860. yyms1 = true
  16861. if yymg1 {
  16862. yymv1, yymok1 = yyv1[yymk1]
  16863. if yymok1 {
  16864. yyms1 = false
  16865. }
  16866. } else {
  16867. yymv1 = nil
  16868. }
  16869. r.ReadMapElemValue()
  16870. yymdn1 = false
  16871. if r.TryDecodeAsNil() {
  16872. yymdn1 = true
  16873. } else {
  16874. if yymv1 == nil {
  16875. yymv1 = new(TestStrucFlex)
  16876. }
  16877. yymv1.CodecDecodeSelf(d)
  16878. }
  16879. if yymdn1 {
  16880. if yybh1.DeleteOnNilMapValue {
  16881. delete(yyv1, yymk1)
  16882. } else {
  16883. yyv1[yymk1] = nil
  16884. }
  16885. } else if yyms1 && yyv1 != nil {
  16886. yyv1[yymk1] = yymv1
  16887. }
  16888. }
  16889. } // else len==0: TODO: Should we clear map entries?
  16890. r.ReadMapEnd()
  16891. }
  16892. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  16893. var h codecSelfer19780
  16894. z, r := GenHelperEncoder(e)
  16895. _, _, _ = h, z, r
  16896. r.WriteMapStart(len(v))
  16897. for yyk1, yyv1 := range v {
  16898. r.WriteMapElemKey()
  16899. if false {
  16900. } else {
  16901. if z.EncBasicHandle().StringToRaw {
  16902. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16903. } else {
  16904. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16905. }
  16906. }
  16907. r.WriteMapElemValue()
  16908. yy3 := &yyv1
  16909. yy3.CodecEncodeSelf(e)
  16910. }
  16911. r.WriteMapEnd()
  16912. }
  16913. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  16914. var h codecSelfer19780
  16915. z, r := GenHelperDecoder(d)
  16916. _, _, _ = h, z, r
  16917. yyv1 := *v
  16918. yyl1 := r.ReadMapStart()
  16919. yybh1 := z.DecBasicHandle()
  16920. if yyv1 == nil {
  16921. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1488)
  16922. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  16923. *v = yyv1
  16924. }
  16925. var yymk1 string
  16926. var yymv1 TestStrucFlex
  16927. var yymg1, yymdn1 bool
  16928. if yybh1.MapValueReset {
  16929. yymg1 = true
  16930. }
  16931. if yyl1 != 0 {
  16932. yyhl1 := yyl1 > 0
  16933. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16934. r.ReadMapElemKey()
  16935. if r.TryDecodeAsNil() {
  16936. yymk1 = ""
  16937. } else {
  16938. yymk1 = (string)(r.DecodeString())
  16939. }
  16940. if yymg1 {
  16941. yymv1 = yyv1[yymk1]
  16942. } else {
  16943. yymv1 = TestStrucFlex{}
  16944. }
  16945. r.ReadMapElemValue()
  16946. yymdn1 = false
  16947. if r.TryDecodeAsNil() {
  16948. yymdn1 = true
  16949. } else {
  16950. yymv1.CodecDecodeSelf(d)
  16951. }
  16952. if yymdn1 {
  16953. if yybh1.DeleteOnNilMapValue {
  16954. delete(yyv1, yymk1)
  16955. } else {
  16956. yyv1[yymk1] = TestStrucFlex{}
  16957. }
  16958. } else if yyv1 != nil {
  16959. yyv1[yymk1] = yymv1
  16960. }
  16961. }
  16962. } // else len==0: TODO: Should we clear map entries?
  16963. r.ReadMapEnd()
  16964. }
  16965. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  16966. var h codecSelfer19780
  16967. z, r := GenHelperEncoder(e)
  16968. _, _, _ = h, z, r
  16969. r.WriteArrayStart(len(v))
  16970. for _, yyv1 := range v {
  16971. r.WriteArrayElem()
  16972. if yyv1 == nil {
  16973. r.EncodeNil()
  16974. } else {
  16975. yyv1.CodecEncodeSelf(e)
  16976. }
  16977. }
  16978. r.WriteArrayEnd()
  16979. }
  16980. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  16981. var h codecSelfer19780
  16982. z, r := GenHelperDecoder(d)
  16983. _, _, _ = h, z, r
  16984. yyv1 := *v
  16985. yyh1, yyl1 := z.DecSliceHelperStart()
  16986. var yyc1 bool
  16987. _ = yyc1
  16988. if yyl1 == 0 {
  16989. if yyv1 == nil {
  16990. yyv1 = []*TestStrucFlex{}
  16991. yyc1 = true
  16992. } else if len(yyv1) != 0 {
  16993. yyv1 = yyv1[:0]
  16994. yyc1 = true
  16995. }
  16996. } else {
  16997. yyhl1 := yyl1 > 0
  16998. var yyrl1 int
  16999. _ = yyrl1
  17000. if yyhl1 {
  17001. if yyl1 > cap(yyv1) {
  17002. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17003. if yyrl1 <= cap(yyv1) {
  17004. yyv1 = yyv1[:yyrl1]
  17005. } else {
  17006. yyv1 = make([]*TestStrucFlex, yyrl1)
  17007. }
  17008. yyc1 = true
  17009. } else if yyl1 != len(yyv1) {
  17010. yyv1 = yyv1[:yyl1]
  17011. yyc1 = true
  17012. }
  17013. }
  17014. var yyj1 int
  17015. // var yydn1 bool
  17016. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17017. if yyj1 == 0 && yyv1 == nil {
  17018. if yyhl1 {
  17019. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17020. } else {
  17021. yyrl1 = 8
  17022. }
  17023. yyv1 = make([]*TestStrucFlex, yyrl1)
  17024. yyc1 = true
  17025. }
  17026. yyh1.ElemContainerState(yyj1)
  17027. var yydb1 bool
  17028. if yyj1 >= len(yyv1) {
  17029. yyv1 = append(yyv1, nil)
  17030. yyc1 = true
  17031. }
  17032. if yydb1 {
  17033. z.DecSwallow()
  17034. } else {
  17035. if r.TryDecodeAsNil() {
  17036. yyv1[yyj1] = nil
  17037. } else {
  17038. if yyv1[yyj1] == nil {
  17039. yyv1[yyj1] = new(TestStrucFlex)
  17040. }
  17041. yyv1[yyj1].CodecDecodeSelf(d)
  17042. }
  17043. }
  17044. }
  17045. if yyj1 < len(yyv1) {
  17046. yyv1 = yyv1[:yyj1]
  17047. yyc1 = true
  17048. } else if yyj1 == 0 && yyv1 == nil {
  17049. yyv1 = make([]*TestStrucFlex, 0)
  17050. yyc1 = true
  17051. }
  17052. }
  17053. yyh1.End()
  17054. if yyc1 {
  17055. *v = yyv1
  17056. }
  17057. }