values_codecgen_generated_test.go 355 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973
  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 != 11 {
  30. _, file, _, _ := runtime.Caller(0)
  31. panic("codecgen version mismatch: current: 11, 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 *stringUint64T) 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. if yyr2 || yy2arr2 {
  207. r.WriteArrayStart(2)
  208. } else {
  209. r.WriteMapStart(2)
  210. }
  211. if yyr2 || yy2arr2 {
  212. r.WriteArrayElem()
  213. if false {
  214. } else {
  215. if z.EncBasicHandle().StringToRaw {
  216. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  217. } else {
  218. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  219. }
  220. }
  221. } else {
  222. r.WriteMapElemKey()
  223. if z.IsJSONHandle() {
  224. z.WriteStr("\"S\"")
  225. } else {
  226. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  227. }
  228. r.WriteMapElemValue()
  229. if false {
  230. } else {
  231. if z.EncBasicHandle().StringToRaw {
  232. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  233. } else {
  234. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  235. }
  236. }
  237. }
  238. if yyr2 || yy2arr2 {
  239. r.WriteArrayElem()
  240. if false {
  241. } else {
  242. r.EncodeUint(uint64(x.U))
  243. }
  244. } else {
  245. r.WriteMapElemKey()
  246. if z.IsJSONHandle() {
  247. z.WriteStr("\"U\"")
  248. } else {
  249. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  250. }
  251. r.WriteMapElemValue()
  252. if false {
  253. } else {
  254. r.EncodeUint(uint64(x.U))
  255. }
  256. }
  257. if yyr2 || yy2arr2 {
  258. r.WriteArrayEnd()
  259. } else {
  260. r.WriteMapEnd()
  261. }
  262. }
  263. }
  264. }
  265. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  266. var h codecSelfer19780
  267. z, r := GenHelperDecoder(d)
  268. _, _, _ = h, z, r
  269. if false {
  270. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  271. z.DecExtension(x, yyxt1)
  272. } else {
  273. yyct2 := r.ContainerType()
  274. if yyct2 == codecSelferValueTypeMap19780 {
  275. yyl2 := r.ReadMapStart()
  276. if yyl2 == 0 {
  277. r.ReadMapEnd()
  278. } else {
  279. x.codecDecodeSelfFromMap(yyl2, d)
  280. }
  281. } else if yyct2 == codecSelferValueTypeArray19780 {
  282. yyl2 := r.ReadArrayStart()
  283. if yyl2 == 0 {
  284. r.ReadArrayEnd()
  285. } else {
  286. x.codecDecodeSelfFromArray(yyl2, d)
  287. }
  288. } else {
  289. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  290. }
  291. }
  292. }
  293. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  294. var h codecSelfer19780
  295. z, r := GenHelperDecoder(d)
  296. _, _, _ = h, z, r
  297. var yyhl3 bool = l >= 0
  298. for yyj3 := 0; ; yyj3++ {
  299. if yyhl3 {
  300. if yyj3 >= l {
  301. break
  302. }
  303. } else {
  304. if r.CheckBreak() {
  305. break
  306. }
  307. }
  308. r.ReadMapElemKey()
  309. yys3 := z.StringView(r.DecodeStringAsBytes())
  310. r.ReadMapElemValue()
  311. switch yys3 {
  312. case "S":
  313. if r.TryDecodeAsNil() {
  314. x.S = ""
  315. } else {
  316. x.S = (string)(r.DecodeString())
  317. }
  318. case "U":
  319. if r.TryDecodeAsNil() {
  320. x.U = 0
  321. } else {
  322. x.U = (uint64)(r.DecodeUint64())
  323. }
  324. default:
  325. z.DecStructFieldNotFound(-1, yys3)
  326. } // end switch yys3
  327. } // end for yyj3
  328. r.ReadMapEnd()
  329. }
  330. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  331. var h codecSelfer19780
  332. z, r := GenHelperDecoder(d)
  333. _, _, _ = h, z, r
  334. var yyj6 int
  335. var yyb6 bool
  336. var yyhl6 bool = l >= 0
  337. yyj6++
  338. if yyhl6 {
  339. yyb6 = yyj6 > l
  340. } else {
  341. yyb6 = r.CheckBreak()
  342. }
  343. if yyb6 {
  344. r.ReadArrayEnd()
  345. return
  346. }
  347. r.ReadArrayElem()
  348. if r.TryDecodeAsNil() {
  349. x.S = ""
  350. } else {
  351. x.S = (string)(r.DecodeString())
  352. }
  353. yyj6++
  354. if yyhl6 {
  355. yyb6 = yyj6 > l
  356. } else {
  357. yyb6 = r.CheckBreak()
  358. }
  359. if yyb6 {
  360. r.ReadArrayEnd()
  361. return
  362. }
  363. r.ReadArrayElem()
  364. if r.TryDecodeAsNil() {
  365. x.U = 0
  366. } else {
  367. x.U = (uint64)(r.DecodeUint64())
  368. }
  369. for {
  370. yyj6++
  371. if yyhl6 {
  372. yyb6 = yyj6 > l
  373. } else {
  374. yyb6 = r.CheckBreak()
  375. }
  376. if yyb6 {
  377. break
  378. }
  379. r.ReadArrayElem()
  380. z.DecStructFieldNotFound(yyj6-1, "")
  381. }
  382. r.ReadArrayEnd()
  383. }
  384. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  385. var h codecSelfer19780
  386. z, r := GenHelperEncoder(e)
  387. _, _, _ = h, z, r
  388. if x == nil {
  389. r.EncodeNil()
  390. } else {
  391. if false {
  392. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  393. z.EncExtension(x, yyxt1)
  394. } else {
  395. yysep2 := !z.EncBinary()
  396. yy2arr2 := z.EncBasicHandle().StructToArray
  397. _, _ = yysep2, yy2arr2
  398. const yyr2 bool = false // struct tag has 'toArray'
  399. if yyr2 || yy2arr2 {
  400. r.WriteArrayStart(15)
  401. } else {
  402. r.WriteMapStart(15)
  403. }
  404. if yyr2 || yy2arr2 {
  405. r.WriteArrayElem()
  406. if false {
  407. } else {
  408. if z.EncBasicHandle().StringToRaw {
  409. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  410. } else {
  411. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  412. }
  413. }
  414. } else {
  415. r.WriteMapElemKey()
  416. if z.IsJSONHandle() {
  417. z.WriteStr("\"AS\"")
  418. } else {
  419. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  420. }
  421. r.WriteMapElemValue()
  422. if false {
  423. } else {
  424. if z.EncBasicHandle().StringToRaw {
  425. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  426. } else {
  427. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  428. }
  429. }
  430. }
  431. if yyr2 || yy2arr2 {
  432. r.WriteArrayElem()
  433. if false {
  434. } else {
  435. r.EncodeInt(int64(x.AI64))
  436. }
  437. } else {
  438. r.WriteMapElemKey()
  439. if z.IsJSONHandle() {
  440. z.WriteStr("\"AI64\"")
  441. } else {
  442. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  443. }
  444. r.WriteMapElemValue()
  445. if false {
  446. } else {
  447. r.EncodeInt(int64(x.AI64))
  448. }
  449. }
  450. if yyr2 || yy2arr2 {
  451. r.WriteArrayElem()
  452. if false {
  453. } else {
  454. r.EncodeInt(int64(x.AI16))
  455. }
  456. } else {
  457. r.WriteMapElemKey()
  458. if z.IsJSONHandle() {
  459. z.WriteStr("\"AI16\"")
  460. } else {
  461. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  462. }
  463. r.WriteMapElemValue()
  464. if false {
  465. } else {
  466. r.EncodeInt(int64(x.AI16))
  467. }
  468. }
  469. if yyr2 || yy2arr2 {
  470. r.WriteArrayElem()
  471. if false {
  472. } else {
  473. r.EncodeUint(uint64(x.AUi64))
  474. }
  475. } else {
  476. r.WriteMapElemKey()
  477. if z.IsJSONHandle() {
  478. z.WriteStr("\"AUi64\"")
  479. } else {
  480. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  481. }
  482. r.WriteMapElemValue()
  483. if false {
  484. } else {
  485. r.EncodeUint(uint64(x.AUi64))
  486. }
  487. }
  488. if yyr2 || yy2arr2 {
  489. r.WriteArrayElem()
  490. if x.ASslice == nil {
  491. r.EncodeNil()
  492. } else {
  493. if false {
  494. } else {
  495. z.F.EncSliceStringV(x.ASslice, e)
  496. }
  497. }
  498. } else {
  499. r.WriteMapElemKey()
  500. if z.IsJSONHandle() {
  501. z.WriteStr("\"ASslice\"")
  502. } else {
  503. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  504. }
  505. r.WriteMapElemValue()
  506. if x.ASslice == nil {
  507. r.EncodeNil()
  508. } else {
  509. if false {
  510. } else {
  511. z.F.EncSliceStringV(x.ASslice, e)
  512. }
  513. }
  514. }
  515. if yyr2 || yy2arr2 {
  516. r.WriteArrayElem()
  517. if x.AI64slice == nil {
  518. r.EncodeNil()
  519. } else {
  520. if false {
  521. } else {
  522. z.F.EncSliceInt64V(x.AI64slice, e)
  523. }
  524. }
  525. } else {
  526. r.WriteMapElemKey()
  527. if z.IsJSONHandle() {
  528. z.WriteStr("\"AI64slice\"")
  529. } else {
  530. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  531. }
  532. r.WriteMapElemValue()
  533. if x.AI64slice == nil {
  534. r.EncodeNil()
  535. } else {
  536. if false {
  537. } else {
  538. z.F.EncSliceInt64V(x.AI64slice, e)
  539. }
  540. }
  541. }
  542. if yyr2 || yy2arr2 {
  543. r.WriteArrayElem()
  544. if x.AUi64slice == nil {
  545. r.EncodeNil()
  546. } else {
  547. if false {
  548. } else {
  549. z.F.EncSliceUint64V(x.AUi64slice, e)
  550. }
  551. }
  552. } else {
  553. r.WriteMapElemKey()
  554. if z.IsJSONHandle() {
  555. z.WriteStr("\"AUi64slice\"")
  556. } else {
  557. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  558. }
  559. r.WriteMapElemValue()
  560. if x.AUi64slice == nil {
  561. r.EncodeNil()
  562. } else {
  563. if false {
  564. } else {
  565. z.F.EncSliceUint64V(x.AUi64slice, e)
  566. }
  567. }
  568. }
  569. if yyr2 || yy2arr2 {
  570. r.WriteArrayElem()
  571. if x.AF64slice == nil {
  572. r.EncodeNil()
  573. } else {
  574. if false {
  575. } else {
  576. z.F.EncSliceFloat64V(x.AF64slice, e)
  577. }
  578. }
  579. } else {
  580. r.WriteMapElemKey()
  581. if z.IsJSONHandle() {
  582. z.WriteStr("\"AF64slice\"")
  583. } else {
  584. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  585. }
  586. r.WriteMapElemValue()
  587. if x.AF64slice == nil {
  588. r.EncodeNil()
  589. } else {
  590. if false {
  591. } else {
  592. z.F.EncSliceFloat64V(x.AF64slice, e)
  593. }
  594. }
  595. }
  596. if yyr2 || yy2arr2 {
  597. r.WriteArrayElem()
  598. if x.AF32slice == nil {
  599. r.EncodeNil()
  600. } else {
  601. if false {
  602. } else {
  603. z.F.EncSliceFloat32V(x.AF32slice, e)
  604. }
  605. }
  606. } else {
  607. r.WriteMapElemKey()
  608. if z.IsJSONHandle() {
  609. z.WriteStr("\"AF32slice\"")
  610. } else {
  611. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  612. }
  613. r.WriteMapElemValue()
  614. if x.AF32slice == nil {
  615. r.EncodeNil()
  616. } else {
  617. if false {
  618. } else {
  619. z.F.EncSliceFloat32V(x.AF32slice, e)
  620. }
  621. }
  622. }
  623. if yyr2 || yy2arr2 {
  624. r.WriteArrayElem()
  625. if x.AMSU16 == nil {
  626. r.EncodeNil()
  627. } else {
  628. if false {
  629. } else {
  630. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  631. }
  632. }
  633. } else {
  634. r.WriteMapElemKey()
  635. if z.IsJSONHandle() {
  636. z.WriteStr("\"AMSU16\"")
  637. } else {
  638. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  639. }
  640. r.WriteMapElemValue()
  641. if x.AMSU16 == nil {
  642. r.EncodeNil()
  643. } else {
  644. if false {
  645. } else {
  646. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  647. }
  648. }
  649. }
  650. if yyr2 || yy2arr2 {
  651. r.WriteArrayElem()
  652. yy34 := &x.AI64arr0
  653. if false {
  654. } else {
  655. h.encArray0int64((*[0]int64)(yy34), e)
  656. }
  657. } else {
  658. r.WriteMapElemKey()
  659. if z.IsJSONHandle() {
  660. z.WriteStr("\"AI64arr0\"")
  661. } else {
  662. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  663. }
  664. r.WriteMapElemValue()
  665. yy36 := &x.AI64arr0
  666. if false {
  667. } else {
  668. h.encArray0int64((*[0]int64)(yy36), e)
  669. }
  670. }
  671. if yyr2 || yy2arr2 {
  672. r.WriteArrayElem()
  673. if x.A164slice0 == nil {
  674. r.EncodeNil()
  675. } else {
  676. if false {
  677. } else {
  678. z.F.EncSliceInt64V(x.A164slice0, e)
  679. }
  680. }
  681. } else {
  682. r.WriteMapElemKey()
  683. if z.IsJSONHandle() {
  684. z.WriteStr("\"A164slice0\"")
  685. } else {
  686. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  687. }
  688. r.WriteMapElemValue()
  689. if x.A164slice0 == nil {
  690. r.EncodeNil()
  691. } else {
  692. if false {
  693. } else {
  694. z.F.EncSliceInt64V(x.A164slice0, e)
  695. }
  696. }
  697. }
  698. if yyr2 || yy2arr2 {
  699. r.WriteArrayElem()
  700. if x.AUi64sliceN == nil {
  701. r.EncodeNil()
  702. } else {
  703. if false {
  704. } else {
  705. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  706. }
  707. }
  708. } else {
  709. r.WriteMapElemKey()
  710. if z.IsJSONHandle() {
  711. z.WriteStr("\"AUi64sliceN\"")
  712. } else {
  713. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  714. }
  715. r.WriteMapElemValue()
  716. if x.AUi64sliceN == nil {
  717. r.EncodeNil()
  718. } else {
  719. if false {
  720. } else {
  721. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  722. }
  723. }
  724. }
  725. if yyr2 || yy2arr2 {
  726. r.WriteArrayElem()
  727. if x.AMSU16N == nil {
  728. r.EncodeNil()
  729. } else {
  730. if false {
  731. } else {
  732. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  733. }
  734. }
  735. } else {
  736. r.WriteMapElemKey()
  737. if z.IsJSONHandle() {
  738. z.WriteStr("\"AMSU16N\"")
  739. } else {
  740. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  741. }
  742. r.WriteMapElemValue()
  743. if x.AMSU16N == nil {
  744. r.EncodeNil()
  745. } else {
  746. if false {
  747. } else {
  748. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  749. }
  750. }
  751. }
  752. if yyr2 || yy2arr2 {
  753. r.WriteArrayElem()
  754. if x.AMSU16E == nil {
  755. r.EncodeNil()
  756. } else {
  757. if false {
  758. } else {
  759. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  760. }
  761. }
  762. } else {
  763. r.WriteMapElemKey()
  764. if z.IsJSONHandle() {
  765. z.WriteStr("\"AMSU16E\"")
  766. } else {
  767. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  768. }
  769. r.WriteMapElemValue()
  770. if x.AMSU16E == nil {
  771. r.EncodeNil()
  772. } else {
  773. if false {
  774. } else {
  775. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  776. }
  777. }
  778. }
  779. if yyr2 || yy2arr2 {
  780. r.WriteArrayEnd()
  781. } else {
  782. r.WriteMapEnd()
  783. }
  784. }
  785. }
  786. }
  787. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  788. var h codecSelfer19780
  789. z, r := GenHelperDecoder(d)
  790. _, _, _ = h, z, r
  791. if false {
  792. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  793. z.DecExtension(x, yyxt1)
  794. } else {
  795. yyct2 := r.ContainerType()
  796. if yyct2 == codecSelferValueTypeMap19780 {
  797. yyl2 := r.ReadMapStart()
  798. if yyl2 == 0 {
  799. r.ReadMapEnd()
  800. } else {
  801. x.codecDecodeSelfFromMap(yyl2, d)
  802. }
  803. } else if yyct2 == codecSelferValueTypeArray19780 {
  804. yyl2 := r.ReadArrayStart()
  805. if yyl2 == 0 {
  806. r.ReadArrayEnd()
  807. } else {
  808. x.codecDecodeSelfFromArray(yyl2, d)
  809. }
  810. } else {
  811. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  812. }
  813. }
  814. }
  815. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  816. var h codecSelfer19780
  817. z, r := GenHelperDecoder(d)
  818. _, _, _ = h, z, r
  819. var yyhl3 bool = l >= 0
  820. for yyj3 := 0; ; yyj3++ {
  821. if yyhl3 {
  822. if yyj3 >= l {
  823. break
  824. }
  825. } else {
  826. if r.CheckBreak() {
  827. break
  828. }
  829. }
  830. r.ReadMapElemKey()
  831. yys3 := z.StringView(r.DecodeStringAsBytes())
  832. r.ReadMapElemValue()
  833. switch yys3 {
  834. case "AS":
  835. if r.TryDecodeAsNil() {
  836. x.AS = ""
  837. } else {
  838. x.AS = (string)(r.DecodeString())
  839. }
  840. case "AI64":
  841. if r.TryDecodeAsNil() {
  842. x.AI64 = 0
  843. } else {
  844. x.AI64 = (int64)(r.DecodeInt64())
  845. }
  846. case "AI16":
  847. if r.TryDecodeAsNil() {
  848. x.AI16 = 0
  849. } else {
  850. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  851. }
  852. case "AUi64":
  853. if r.TryDecodeAsNil() {
  854. x.AUi64 = 0
  855. } else {
  856. x.AUi64 = (uint64)(r.DecodeUint64())
  857. }
  858. case "ASslice":
  859. if r.TryDecodeAsNil() {
  860. x.ASslice = nil
  861. } else {
  862. if false {
  863. } else {
  864. z.F.DecSliceStringX(&x.ASslice, d)
  865. }
  866. }
  867. case "AI64slice":
  868. if r.TryDecodeAsNil() {
  869. x.AI64slice = nil
  870. } else {
  871. if false {
  872. } else {
  873. z.F.DecSliceInt64X(&x.AI64slice, d)
  874. }
  875. }
  876. case "AUi64slice":
  877. if r.TryDecodeAsNil() {
  878. x.AUi64slice = nil
  879. } else {
  880. if false {
  881. } else {
  882. z.F.DecSliceUint64X(&x.AUi64slice, d)
  883. }
  884. }
  885. case "AF64slice":
  886. if r.TryDecodeAsNil() {
  887. x.AF64slice = nil
  888. } else {
  889. if false {
  890. } else {
  891. z.F.DecSliceFloat64X(&x.AF64slice, d)
  892. }
  893. }
  894. case "AF32slice":
  895. if r.TryDecodeAsNil() {
  896. x.AF32slice = nil
  897. } else {
  898. if false {
  899. } else {
  900. z.F.DecSliceFloat32X(&x.AF32slice, d)
  901. }
  902. }
  903. case "AMSU16":
  904. if r.TryDecodeAsNil() {
  905. x.AMSU16 = nil
  906. } else {
  907. if false {
  908. } else {
  909. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  910. }
  911. }
  912. case "AI64arr0":
  913. if r.TryDecodeAsNil() {
  914. x.AI64arr0 = [0]int64{}
  915. } else {
  916. if false {
  917. } else {
  918. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  919. }
  920. }
  921. case "A164slice0":
  922. if r.TryDecodeAsNil() {
  923. x.A164slice0 = nil
  924. } else {
  925. if false {
  926. } else {
  927. z.F.DecSliceInt64X(&x.A164slice0, d)
  928. }
  929. }
  930. case "AUi64sliceN":
  931. if r.TryDecodeAsNil() {
  932. x.AUi64sliceN = nil
  933. } else {
  934. if false {
  935. } else {
  936. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  937. }
  938. }
  939. case "AMSU16N":
  940. if r.TryDecodeAsNil() {
  941. x.AMSU16N = nil
  942. } else {
  943. if false {
  944. } else {
  945. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  946. }
  947. }
  948. case "AMSU16E":
  949. if r.TryDecodeAsNil() {
  950. x.AMSU16E = nil
  951. } else {
  952. if false {
  953. } else {
  954. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  955. }
  956. }
  957. default:
  958. z.DecStructFieldNotFound(-1, yys3)
  959. } // end switch yys3
  960. } // end for yyj3
  961. r.ReadMapEnd()
  962. }
  963. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  964. var h codecSelfer19780
  965. z, r := GenHelperDecoder(d)
  966. _, _, _ = h, z, r
  967. var yyj30 int
  968. var yyb30 bool
  969. var yyhl30 bool = l >= 0
  970. yyj30++
  971. if yyhl30 {
  972. yyb30 = yyj30 > l
  973. } else {
  974. yyb30 = r.CheckBreak()
  975. }
  976. if yyb30 {
  977. r.ReadArrayEnd()
  978. return
  979. }
  980. r.ReadArrayElem()
  981. if r.TryDecodeAsNil() {
  982. x.AS = ""
  983. } else {
  984. x.AS = (string)(r.DecodeString())
  985. }
  986. yyj30++
  987. if yyhl30 {
  988. yyb30 = yyj30 > l
  989. } else {
  990. yyb30 = r.CheckBreak()
  991. }
  992. if yyb30 {
  993. r.ReadArrayEnd()
  994. return
  995. }
  996. r.ReadArrayElem()
  997. if r.TryDecodeAsNil() {
  998. x.AI64 = 0
  999. } else {
  1000. x.AI64 = (int64)(r.DecodeInt64())
  1001. }
  1002. yyj30++
  1003. if yyhl30 {
  1004. yyb30 = yyj30 > l
  1005. } else {
  1006. yyb30 = r.CheckBreak()
  1007. }
  1008. if yyb30 {
  1009. r.ReadArrayEnd()
  1010. return
  1011. }
  1012. r.ReadArrayElem()
  1013. if r.TryDecodeAsNil() {
  1014. x.AI16 = 0
  1015. } else {
  1016. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  1017. }
  1018. yyj30++
  1019. if yyhl30 {
  1020. yyb30 = yyj30 > l
  1021. } else {
  1022. yyb30 = r.CheckBreak()
  1023. }
  1024. if yyb30 {
  1025. r.ReadArrayEnd()
  1026. return
  1027. }
  1028. r.ReadArrayElem()
  1029. if r.TryDecodeAsNil() {
  1030. x.AUi64 = 0
  1031. } else {
  1032. x.AUi64 = (uint64)(r.DecodeUint64())
  1033. }
  1034. yyj30++
  1035. if yyhl30 {
  1036. yyb30 = yyj30 > l
  1037. } else {
  1038. yyb30 = r.CheckBreak()
  1039. }
  1040. if yyb30 {
  1041. r.ReadArrayEnd()
  1042. return
  1043. }
  1044. r.ReadArrayElem()
  1045. if r.TryDecodeAsNil() {
  1046. x.ASslice = nil
  1047. } else {
  1048. if false {
  1049. } else {
  1050. z.F.DecSliceStringX(&x.ASslice, d)
  1051. }
  1052. }
  1053. yyj30++
  1054. if yyhl30 {
  1055. yyb30 = yyj30 > l
  1056. } else {
  1057. yyb30 = r.CheckBreak()
  1058. }
  1059. if yyb30 {
  1060. r.ReadArrayEnd()
  1061. return
  1062. }
  1063. r.ReadArrayElem()
  1064. if r.TryDecodeAsNil() {
  1065. x.AI64slice = nil
  1066. } else {
  1067. if false {
  1068. } else {
  1069. z.F.DecSliceInt64X(&x.AI64slice, d)
  1070. }
  1071. }
  1072. yyj30++
  1073. if yyhl30 {
  1074. yyb30 = yyj30 > l
  1075. } else {
  1076. yyb30 = r.CheckBreak()
  1077. }
  1078. if yyb30 {
  1079. r.ReadArrayEnd()
  1080. return
  1081. }
  1082. r.ReadArrayElem()
  1083. if r.TryDecodeAsNil() {
  1084. x.AUi64slice = nil
  1085. } else {
  1086. if false {
  1087. } else {
  1088. z.F.DecSliceUint64X(&x.AUi64slice, d)
  1089. }
  1090. }
  1091. yyj30++
  1092. if yyhl30 {
  1093. yyb30 = yyj30 > l
  1094. } else {
  1095. yyb30 = r.CheckBreak()
  1096. }
  1097. if yyb30 {
  1098. r.ReadArrayEnd()
  1099. return
  1100. }
  1101. r.ReadArrayElem()
  1102. if r.TryDecodeAsNil() {
  1103. x.AF64slice = nil
  1104. } else {
  1105. if false {
  1106. } else {
  1107. z.F.DecSliceFloat64X(&x.AF64slice, d)
  1108. }
  1109. }
  1110. yyj30++
  1111. if yyhl30 {
  1112. yyb30 = yyj30 > l
  1113. } else {
  1114. yyb30 = r.CheckBreak()
  1115. }
  1116. if yyb30 {
  1117. r.ReadArrayEnd()
  1118. return
  1119. }
  1120. r.ReadArrayElem()
  1121. if r.TryDecodeAsNil() {
  1122. x.AF32slice = nil
  1123. } else {
  1124. if false {
  1125. } else {
  1126. z.F.DecSliceFloat32X(&x.AF32slice, d)
  1127. }
  1128. }
  1129. yyj30++
  1130. if yyhl30 {
  1131. yyb30 = yyj30 > l
  1132. } else {
  1133. yyb30 = r.CheckBreak()
  1134. }
  1135. if yyb30 {
  1136. r.ReadArrayEnd()
  1137. return
  1138. }
  1139. r.ReadArrayElem()
  1140. if r.TryDecodeAsNil() {
  1141. x.AMSU16 = nil
  1142. } else {
  1143. if false {
  1144. } else {
  1145. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  1146. }
  1147. }
  1148. yyj30++
  1149. if yyhl30 {
  1150. yyb30 = yyj30 > l
  1151. } else {
  1152. yyb30 = r.CheckBreak()
  1153. }
  1154. if yyb30 {
  1155. r.ReadArrayEnd()
  1156. return
  1157. }
  1158. r.ReadArrayElem()
  1159. if r.TryDecodeAsNil() {
  1160. x.AI64arr0 = [0]int64{}
  1161. } else {
  1162. if false {
  1163. } else {
  1164. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  1165. }
  1166. }
  1167. yyj30++
  1168. if yyhl30 {
  1169. yyb30 = yyj30 > l
  1170. } else {
  1171. yyb30 = r.CheckBreak()
  1172. }
  1173. if yyb30 {
  1174. r.ReadArrayEnd()
  1175. return
  1176. }
  1177. r.ReadArrayElem()
  1178. if r.TryDecodeAsNil() {
  1179. x.A164slice0 = nil
  1180. } else {
  1181. if false {
  1182. } else {
  1183. z.F.DecSliceInt64X(&x.A164slice0, d)
  1184. }
  1185. }
  1186. yyj30++
  1187. if yyhl30 {
  1188. yyb30 = yyj30 > l
  1189. } else {
  1190. yyb30 = r.CheckBreak()
  1191. }
  1192. if yyb30 {
  1193. r.ReadArrayEnd()
  1194. return
  1195. }
  1196. r.ReadArrayElem()
  1197. if r.TryDecodeAsNil() {
  1198. x.AUi64sliceN = nil
  1199. } else {
  1200. if false {
  1201. } else {
  1202. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  1203. }
  1204. }
  1205. yyj30++
  1206. if yyhl30 {
  1207. yyb30 = yyj30 > l
  1208. } else {
  1209. yyb30 = r.CheckBreak()
  1210. }
  1211. if yyb30 {
  1212. r.ReadArrayEnd()
  1213. return
  1214. }
  1215. r.ReadArrayElem()
  1216. if r.TryDecodeAsNil() {
  1217. x.AMSU16N = nil
  1218. } else {
  1219. if false {
  1220. } else {
  1221. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  1222. }
  1223. }
  1224. yyj30++
  1225. if yyhl30 {
  1226. yyb30 = yyj30 > l
  1227. } else {
  1228. yyb30 = r.CheckBreak()
  1229. }
  1230. if yyb30 {
  1231. r.ReadArrayEnd()
  1232. return
  1233. }
  1234. r.ReadArrayElem()
  1235. if r.TryDecodeAsNil() {
  1236. x.AMSU16E = nil
  1237. } else {
  1238. if false {
  1239. } else {
  1240. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  1241. }
  1242. }
  1243. for {
  1244. yyj30++
  1245. if yyhl30 {
  1246. yyb30 = yyj30 > l
  1247. } else {
  1248. yyb30 = r.CheckBreak()
  1249. }
  1250. if yyb30 {
  1251. break
  1252. }
  1253. r.ReadArrayElem()
  1254. z.DecStructFieldNotFound(yyj30-1, "")
  1255. }
  1256. r.ReadArrayEnd()
  1257. }
  1258. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  1259. var h codecSelfer19780
  1260. z, r := GenHelperEncoder(e)
  1261. _, _, _ = h, z, r
  1262. if x == nil {
  1263. r.EncodeNil()
  1264. } else {
  1265. if false {
  1266. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1267. z.EncExtension(x, yyxt1)
  1268. } else {
  1269. yysep2 := !z.EncBinary()
  1270. yy2arr2 := z.EncBasicHandle().StructToArray
  1271. _, _ = yysep2, yy2arr2
  1272. const yyr2 bool = false // struct tag has 'toArray'
  1273. if yyr2 || yy2arr2 {
  1274. r.WriteArrayStart(17)
  1275. } else {
  1276. r.WriteMapStart(17)
  1277. }
  1278. if yyr2 || yy2arr2 {
  1279. r.WriteArrayElem()
  1280. if false {
  1281. } else {
  1282. if z.EncBasicHandle().StringToRaw {
  1283. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1284. } else {
  1285. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1286. }
  1287. }
  1288. } else {
  1289. r.WriteMapElemKey()
  1290. if z.IsJSONHandle() {
  1291. z.WriteStr("\"S\"")
  1292. } else {
  1293. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1294. }
  1295. r.WriteMapElemValue()
  1296. if false {
  1297. } else {
  1298. if z.EncBasicHandle().StringToRaw {
  1299. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1300. } else {
  1301. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1302. }
  1303. }
  1304. }
  1305. if yyr2 || yy2arr2 {
  1306. r.WriteArrayElem()
  1307. if false {
  1308. } else {
  1309. r.EncodeInt(int64(x.I64))
  1310. }
  1311. } else {
  1312. r.WriteMapElemKey()
  1313. if z.IsJSONHandle() {
  1314. z.WriteStr("\"I64\"")
  1315. } else {
  1316. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1317. }
  1318. r.WriteMapElemValue()
  1319. if false {
  1320. } else {
  1321. r.EncodeInt(int64(x.I64))
  1322. }
  1323. }
  1324. if yyr2 || yy2arr2 {
  1325. r.WriteArrayElem()
  1326. if false {
  1327. } else {
  1328. r.EncodeInt(int64(x.I8))
  1329. }
  1330. } else {
  1331. r.WriteMapElemKey()
  1332. if z.IsJSONHandle() {
  1333. z.WriteStr("\"I8\"")
  1334. } else {
  1335. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1336. }
  1337. r.WriteMapElemValue()
  1338. if false {
  1339. } else {
  1340. r.EncodeInt(int64(x.I8))
  1341. }
  1342. }
  1343. if yyr2 || yy2arr2 {
  1344. r.WriteArrayElem()
  1345. if false {
  1346. } else {
  1347. r.EncodeUint(uint64(x.Ui64))
  1348. }
  1349. } else {
  1350. r.WriteMapElemKey()
  1351. if z.IsJSONHandle() {
  1352. z.WriteStr("\"Ui64\"")
  1353. } else {
  1354. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1355. }
  1356. r.WriteMapElemValue()
  1357. if false {
  1358. } else {
  1359. r.EncodeUint(uint64(x.Ui64))
  1360. }
  1361. }
  1362. if yyr2 || yy2arr2 {
  1363. r.WriteArrayElem()
  1364. if false {
  1365. } else {
  1366. r.EncodeUint(uint64(x.Ui8))
  1367. }
  1368. } else {
  1369. r.WriteMapElemKey()
  1370. if z.IsJSONHandle() {
  1371. z.WriteStr("\"Ui8\"")
  1372. } else {
  1373. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1374. }
  1375. r.WriteMapElemValue()
  1376. if false {
  1377. } else {
  1378. r.EncodeUint(uint64(x.Ui8))
  1379. }
  1380. }
  1381. if yyr2 || yy2arr2 {
  1382. r.WriteArrayElem()
  1383. if false {
  1384. } else {
  1385. r.EncodeFloat64(float64(x.F64))
  1386. }
  1387. } else {
  1388. r.WriteMapElemKey()
  1389. if z.IsJSONHandle() {
  1390. z.WriteStr("\"F64\"")
  1391. } else {
  1392. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1393. }
  1394. r.WriteMapElemValue()
  1395. if false {
  1396. } else {
  1397. r.EncodeFloat64(float64(x.F64))
  1398. }
  1399. }
  1400. if yyr2 || yy2arr2 {
  1401. r.WriteArrayElem()
  1402. if false {
  1403. } else {
  1404. r.EncodeFloat32(float32(x.F32))
  1405. }
  1406. } else {
  1407. r.WriteMapElemKey()
  1408. if z.IsJSONHandle() {
  1409. z.WriteStr("\"F32\"")
  1410. } else {
  1411. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1412. }
  1413. r.WriteMapElemValue()
  1414. if false {
  1415. } else {
  1416. r.EncodeFloat32(float32(x.F32))
  1417. }
  1418. }
  1419. if yyr2 || yy2arr2 {
  1420. r.WriteArrayElem()
  1421. if false {
  1422. } else {
  1423. r.EncodeBool(bool(x.B))
  1424. }
  1425. } else {
  1426. r.WriteMapElemKey()
  1427. if z.IsJSONHandle() {
  1428. z.WriteStr("\"B\"")
  1429. } else {
  1430. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1431. }
  1432. r.WriteMapElemValue()
  1433. if false {
  1434. } else {
  1435. r.EncodeBool(bool(x.B))
  1436. }
  1437. }
  1438. if yyr2 || yy2arr2 {
  1439. r.WriteArrayElem()
  1440. if x.Sslice == nil {
  1441. r.EncodeNil()
  1442. } else {
  1443. if false {
  1444. } else {
  1445. z.F.EncSliceStringV(x.Sslice, e)
  1446. }
  1447. }
  1448. } else {
  1449. r.WriteMapElemKey()
  1450. if z.IsJSONHandle() {
  1451. z.WriteStr("\"Sslice\"")
  1452. } else {
  1453. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1454. }
  1455. r.WriteMapElemValue()
  1456. if x.Sslice == nil {
  1457. r.EncodeNil()
  1458. } else {
  1459. if false {
  1460. } else {
  1461. z.F.EncSliceStringV(x.Sslice, e)
  1462. }
  1463. }
  1464. }
  1465. if yyr2 || yy2arr2 {
  1466. r.WriteArrayElem()
  1467. if x.I16slice == nil {
  1468. r.EncodeNil()
  1469. } else {
  1470. if false {
  1471. } else {
  1472. z.F.EncSliceInt16V(x.I16slice, e)
  1473. }
  1474. }
  1475. } else {
  1476. r.WriteMapElemKey()
  1477. if z.IsJSONHandle() {
  1478. z.WriteStr("\"I16slice\"")
  1479. } else {
  1480. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1481. }
  1482. r.WriteMapElemValue()
  1483. if x.I16slice == nil {
  1484. r.EncodeNil()
  1485. } else {
  1486. if false {
  1487. } else {
  1488. z.F.EncSliceInt16V(x.I16slice, e)
  1489. }
  1490. }
  1491. }
  1492. if yyr2 || yy2arr2 {
  1493. r.WriteArrayElem()
  1494. if x.Ui64slice == nil {
  1495. r.EncodeNil()
  1496. } else {
  1497. if false {
  1498. } else {
  1499. z.F.EncSliceUint64V(x.Ui64slice, e)
  1500. }
  1501. }
  1502. } else {
  1503. r.WriteMapElemKey()
  1504. if z.IsJSONHandle() {
  1505. z.WriteStr("\"Ui64slice\"")
  1506. } else {
  1507. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1508. }
  1509. r.WriteMapElemValue()
  1510. if x.Ui64slice == nil {
  1511. r.EncodeNil()
  1512. } else {
  1513. if false {
  1514. } else {
  1515. z.F.EncSliceUint64V(x.Ui64slice, e)
  1516. }
  1517. }
  1518. }
  1519. if yyr2 || yy2arr2 {
  1520. r.WriteArrayElem()
  1521. if x.Ui8slice == nil {
  1522. r.EncodeNil()
  1523. } else {
  1524. if false {
  1525. } else {
  1526. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1527. }
  1528. }
  1529. } else {
  1530. r.WriteMapElemKey()
  1531. if z.IsJSONHandle() {
  1532. z.WriteStr("\"Ui8slice\"")
  1533. } else {
  1534. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1535. }
  1536. r.WriteMapElemValue()
  1537. if x.Ui8slice == nil {
  1538. r.EncodeNil()
  1539. } else {
  1540. if false {
  1541. } else {
  1542. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1543. }
  1544. }
  1545. }
  1546. if yyr2 || yy2arr2 {
  1547. r.WriteArrayElem()
  1548. if x.Bslice == nil {
  1549. r.EncodeNil()
  1550. } else {
  1551. if false {
  1552. } else {
  1553. z.F.EncSliceBoolV(x.Bslice, e)
  1554. }
  1555. }
  1556. } else {
  1557. r.WriteMapElemKey()
  1558. if z.IsJSONHandle() {
  1559. z.WriteStr("\"Bslice\"")
  1560. } else {
  1561. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1562. }
  1563. r.WriteMapElemValue()
  1564. if x.Bslice == nil {
  1565. r.EncodeNil()
  1566. } else {
  1567. if false {
  1568. } else {
  1569. z.F.EncSliceBoolV(x.Bslice, e)
  1570. }
  1571. }
  1572. }
  1573. if yyr2 || yy2arr2 {
  1574. r.WriteArrayElem()
  1575. if x.Iptrslice == nil {
  1576. r.EncodeNil()
  1577. } else {
  1578. if false {
  1579. } else {
  1580. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1581. }
  1582. }
  1583. } else {
  1584. r.WriteMapElemKey()
  1585. if z.IsJSONHandle() {
  1586. z.WriteStr("\"Iptrslice\"")
  1587. } else {
  1588. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1589. }
  1590. r.WriteMapElemValue()
  1591. if x.Iptrslice == nil {
  1592. r.EncodeNil()
  1593. } else {
  1594. if false {
  1595. } else {
  1596. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1597. }
  1598. }
  1599. }
  1600. if yyr2 || yy2arr2 {
  1601. r.WriteArrayElem()
  1602. if x.WrapSliceInt64 == nil {
  1603. r.EncodeNil()
  1604. } else {
  1605. x.WrapSliceInt64.CodecEncodeSelf(e)
  1606. }
  1607. } else {
  1608. r.WriteMapElemKey()
  1609. if z.IsJSONHandle() {
  1610. z.WriteStr("\"WrapSliceInt64\"")
  1611. } else {
  1612. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1613. }
  1614. r.WriteMapElemValue()
  1615. if x.WrapSliceInt64 == nil {
  1616. r.EncodeNil()
  1617. } else {
  1618. x.WrapSliceInt64.CodecEncodeSelf(e)
  1619. }
  1620. }
  1621. if yyr2 || yy2arr2 {
  1622. r.WriteArrayElem()
  1623. if x.WrapSliceString == nil {
  1624. r.EncodeNil()
  1625. } else {
  1626. x.WrapSliceString.CodecEncodeSelf(e)
  1627. }
  1628. } else {
  1629. r.WriteMapElemKey()
  1630. if z.IsJSONHandle() {
  1631. z.WriteStr("\"WrapSliceString\"")
  1632. } else {
  1633. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1634. }
  1635. r.WriteMapElemValue()
  1636. if x.WrapSliceString == nil {
  1637. r.EncodeNil()
  1638. } else {
  1639. x.WrapSliceString.CodecEncodeSelf(e)
  1640. }
  1641. }
  1642. if yyr2 || yy2arr2 {
  1643. r.WriteArrayElem()
  1644. if x.Msi64 == nil {
  1645. r.EncodeNil()
  1646. } else {
  1647. if false {
  1648. } else {
  1649. z.F.EncMapStringInt64V(x.Msi64, e)
  1650. }
  1651. }
  1652. } else {
  1653. r.WriteMapElemKey()
  1654. if z.IsJSONHandle() {
  1655. z.WriteStr("\"Msi64\"")
  1656. } else {
  1657. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1658. }
  1659. r.WriteMapElemValue()
  1660. if x.Msi64 == nil {
  1661. r.EncodeNil()
  1662. } else {
  1663. if false {
  1664. } else {
  1665. z.F.EncMapStringInt64V(x.Msi64, e)
  1666. }
  1667. }
  1668. }
  1669. if yyr2 || yy2arr2 {
  1670. r.WriteArrayEnd()
  1671. } else {
  1672. r.WriteMapEnd()
  1673. }
  1674. }
  1675. }
  1676. }
  1677. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1678. var h codecSelfer19780
  1679. z, r := GenHelperDecoder(d)
  1680. _, _, _ = h, z, r
  1681. if false {
  1682. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1683. z.DecExtension(x, yyxt1)
  1684. } else {
  1685. yyct2 := r.ContainerType()
  1686. if yyct2 == codecSelferValueTypeMap19780 {
  1687. yyl2 := r.ReadMapStart()
  1688. if yyl2 == 0 {
  1689. r.ReadMapEnd()
  1690. } else {
  1691. x.codecDecodeSelfFromMap(yyl2, d)
  1692. }
  1693. } else if yyct2 == codecSelferValueTypeArray19780 {
  1694. yyl2 := r.ReadArrayStart()
  1695. if yyl2 == 0 {
  1696. r.ReadArrayEnd()
  1697. } else {
  1698. x.codecDecodeSelfFromArray(yyl2, d)
  1699. }
  1700. } else {
  1701. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1702. }
  1703. }
  1704. }
  1705. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1706. var h codecSelfer19780
  1707. z, r := GenHelperDecoder(d)
  1708. _, _, _ = h, z, r
  1709. var yyhl3 bool = l >= 0
  1710. for yyj3 := 0; ; yyj3++ {
  1711. if yyhl3 {
  1712. if yyj3 >= l {
  1713. break
  1714. }
  1715. } else {
  1716. if r.CheckBreak() {
  1717. break
  1718. }
  1719. }
  1720. r.ReadMapElemKey()
  1721. yys3 := z.StringView(r.DecodeStringAsBytes())
  1722. r.ReadMapElemValue()
  1723. switch yys3 {
  1724. case "S":
  1725. if r.TryDecodeAsNil() {
  1726. x.S = ""
  1727. } else {
  1728. x.S = (string)(r.DecodeString())
  1729. }
  1730. case "I64":
  1731. if r.TryDecodeAsNil() {
  1732. x.I64 = 0
  1733. } else {
  1734. x.I64 = (int64)(r.DecodeInt64())
  1735. }
  1736. case "I8":
  1737. if r.TryDecodeAsNil() {
  1738. x.I8 = 0
  1739. } else {
  1740. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1741. }
  1742. case "Ui64":
  1743. if r.TryDecodeAsNil() {
  1744. x.Ui64 = 0
  1745. } else {
  1746. x.Ui64 = (uint64)(r.DecodeUint64())
  1747. }
  1748. case "Ui8":
  1749. if r.TryDecodeAsNil() {
  1750. x.Ui8 = 0
  1751. } else {
  1752. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1753. }
  1754. case "F64":
  1755. if r.TryDecodeAsNil() {
  1756. x.F64 = 0
  1757. } else {
  1758. x.F64 = (float64)(r.DecodeFloat64())
  1759. }
  1760. case "F32":
  1761. if r.TryDecodeAsNil() {
  1762. x.F32 = 0
  1763. } else {
  1764. x.F32 = (float32)(r.DecodeFloat32As64())
  1765. }
  1766. case "B":
  1767. if r.TryDecodeAsNil() {
  1768. x.B = false
  1769. } else {
  1770. x.B = (bool)(r.DecodeBool())
  1771. }
  1772. case "Sslice":
  1773. if r.TryDecodeAsNil() {
  1774. x.Sslice = nil
  1775. } else {
  1776. if false {
  1777. } else {
  1778. z.F.DecSliceStringX(&x.Sslice, d)
  1779. }
  1780. }
  1781. case "I16slice":
  1782. if r.TryDecodeAsNil() {
  1783. x.I16slice = nil
  1784. } else {
  1785. if false {
  1786. } else {
  1787. z.F.DecSliceInt16X(&x.I16slice, d)
  1788. }
  1789. }
  1790. case "Ui64slice":
  1791. if r.TryDecodeAsNil() {
  1792. x.Ui64slice = nil
  1793. } else {
  1794. if false {
  1795. } else {
  1796. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1797. }
  1798. }
  1799. case "Ui8slice":
  1800. if r.TryDecodeAsNil() {
  1801. x.Ui8slice = nil
  1802. } else {
  1803. if false {
  1804. } else {
  1805. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1806. }
  1807. }
  1808. case "Bslice":
  1809. if r.TryDecodeAsNil() {
  1810. x.Bslice = nil
  1811. } else {
  1812. if false {
  1813. } else {
  1814. z.F.DecSliceBoolX(&x.Bslice, d)
  1815. }
  1816. }
  1817. case "Iptrslice":
  1818. if r.TryDecodeAsNil() {
  1819. x.Iptrslice = nil
  1820. } else {
  1821. if false {
  1822. } else {
  1823. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1824. }
  1825. }
  1826. case "WrapSliceInt64":
  1827. if r.TryDecodeAsNil() {
  1828. x.WrapSliceInt64 = nil
  1829. } else {
  1830. x.WrapSliceInt64.CodecDecodeSelf(d)
  1831. }
  1832. case "WrapSliceString":
  1833. if r.TryDecodeAsNil() {
  1834. x.WrapSliceString = nil
  1835. } else {
  1836. x.WrapSliceString.CodecDecodeSelf(d)
  1837. }
  1838. case "Msi64":
  1839. if r.TryDecodeAsNil() {
  1840. x.Msi64 = nil
  1841. } else {
  1842. if false {
  1843. } else {
  1844. z.F.DecMapStringInt64X(&x.Msi64, d)
  1845. }
  1846. }
  1847. default:
  1848. z.DecStructFieldNotFound(-1, yys3)
  1849. } // end switch yys3
  1850. } // end for yyj3
  1851. r.ReadMapEnd()
  1852. }
  1853. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1854. var h codecSelfer19780
  1855. z, r := GenHelperDecoder(d)
  1856. _, _, _ = h, z, r
  1857. var yyj28 int
  1858. var yyb28 bool
  1859. var yyhl28 bool = l >= 0
  1860. yyj28++
  1861. if yyhl28 {
  1862. yyb28 = yyj28 > l
  1863. } else {
  1864. yyb28 = r.CheckBreak()
  1865. }
  1866. if yyb28 {
  1867. r.ReadArrayEnd()
  1868. return
  1869. }
  1870. r.ReadArrayElem()
  1871. if r.TryDecodeAsNil() {
  1872. x.S = ""
  1873. } else {
  1874. x.S = (string)(r.DecodeString())
  1875. }
  1876. yyj28++
  1877. if yyhl28 {
  1878. yyb28 = yyj28 > l
  1879. } else {
  1880. yyb28 = r.CheckBreak()
  1881. }
  1882. if yyb28 {
  1883. r.ReadArrayEnd()
  1884. return
  1885. }
  1886. r.ReadArrayElem()
  1887. if r.TryDecodeAsNil() {
  1888. x.I64 = 0
  1889. } else {
  1890. x.I64 = (int64)(r.DecodeInt64())
  1891. }
  1892. yyj28++
  1893. if yyhl28 {
  1894. yyb28 = yyj28 > l
  1895. } else {
  1896. yyb28 = r.CheckBreak()
  1897. }
  1898. if yyb28 {
  1899. r.ReadArrayEnd()
  1900. return
  1901. }
  1902. r.ReadArrayElem()
  1903. if r.TryDecodeAsNil() {
  1904. x.I8 = 0
  1905. } else {
  1906. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1907. }
  1908. yyj28++
  1909. if yyhl28 {
  1910. yyb28 = yyj28 > l
  1911. } else {
  1912. yyb28 = r.CheckBreak()
  1913. }
  1914. if yyb28 {
  1915. r.ReadArrayEnd()
  1916. return
  1917. }
  1918. r.ReadArrayElem()
  1919. if r.TryDecodeAsNil() {
  1920. x.Ui64 = 0
  1921. } else {
  1922. x.Ui64 = (uint64)(r.DecodeUint64())
  1923. }
  1924. yyj28++
  1925. if yyhl28 {
  1926. yyb28 = yyj28 > l
  1927. } else {
  1928. yyb28 = r.CheckBreak()
  1929. }
  1930. if yyb28 {
  1931. r.ReadArrayEnd()
  1932. return
  1933. }
  1934. r.ReadArrayElem()
  1935. if r.TryDecodeAsNil() {
  1936. x.Ui8 = 0
  1937. } else {
  1938. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1939. }
  1940. yyj28++
  1941. if yyhl28 {
  1942. yyb28 = yyj28 > l
  1943. } else {
  1944. yyb28 = r.CheckBreak()
  1945. }
  1946. if yyb28 {
  1947. r.ReadArrayEnd()
  1948. return
  1949. }
  1950. r.ReadArrayElem()
  1951. if r.TryDecodeAsNil() {
  1952. x.F64 = 0
  1953. } else {
  1954. x.F64 = (float64)(r.DecodeFloat64())
  1955. }
  1956. yyj28++
  1957. if yyhl28 {
  1958. yyb28 = yyj28 > l
  1959. } else {
  1960. yyb28 = r.CheckBreak()
  1961. }
  1962. if yyb28 {
  1963. r.ReadArrayEnd()
  1964. return
  1965. }
  1966. r.ReadArrayElem()
  1967. if r.TryDecodeAsNil() {
  1968. x.F32 = 0
  1969. } else {
  1970. x.F32 = (float32)(r.DecodeFloat32As64())
  1971. }
  1972. yyj28++
  1973. if yyhl28 {
  1974. yyb28 = yyj28 > l
  1975. } else {
  1976. yyb28 = r.CheckBreak()
  1977. }
  1978. if yyb28 {
  1979. r.ReadArrayEnd()
  1980. return
  1981. }
  1982. r.ReadArrayElem()
  1983. if r.TryDecodeAsNil() {
  1984. x.B = false
  1985. } else {
  1986. x.B = (bool)(r.DecodeBool())
  1987. }
  1988. yyj28++
  1989. if yyhl28 {
  1990. yyb28 = yyj28 > l
  1991. } else {
  1992. yyb28 = r.CheckBreak()
  1993. }
  1994. if yyb28 {
  1995. r.ReadArrayEnd()
  1996. return
  1997. }
  1998. r.ReadArrayElem()
  1999. if r.TryDecodeAsNil() {
  2000. x.Sslice = nil
  2001. } else {
  2002. if false {
  2003. } else {
  2004. z.F.DecSliceStringX(&x.Sslice, d)
  2005. }
  2006. }
  2007. yyj28++
  2008. if yyhl28 {
  2009. yyb28 = yyj28 > l
  2010. } else {
  2011. yyb28 = r.CheckBreak()
  2012. }
  2013. if yyb28 {
  2014. r.ReadArrayEnd()
  2015. return
  2016. }
  2017. r.ReadArrayElem()
  2018. if r.TryDecodeAsNil() {
  2019. x.I16slice = nil
  2020. } else {
  2021. if false {
  2022. } else {
  2023. z.F.DecSliceInt16X(&x.I16slice, d)
  2024. }
  2025. }
  2026. yyj28++
  2027. if yyhl28 {
  2028. yyb28 = yyj28 > l
  2029. } else {
  2030. yyb28 = r.CheckBreak()
  2031. }
  2032. if yyb28 {
  2033. r.ReadArrayEnd()
  2034. return
  2035. }
  2036. r.ReadArrayElem()
  2037. if r.TryDecodeAsNil() {
  2038. x.Ui64slice = nil
  2039. } else {
  2040. if false {
  2041. } else {
  2042. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2043. }
  2044. }
  2045. yyj28++
  2046. if yyhl28 {
  2047. yyb28 = yyj28 > l
  2048. } else {
  2049. yyb28 = r.CheckBreak()
  2050. }
  2051. if yyb28 {
  2052. r.ReadArrayEnd()
  2053. return
  2054. }
  2055. r.ReadArrayElem()
  2056. if r.TryDecodeAsNil() {
  2057. x.Ui8slice = nil
  2058. } else {
  2059. if false {
  2060. } else {
  2061. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2062. }
  2063. }
  2064. yyj28++
  2065. if yyhl28 {
  2066. yyb28 = yyj28 > l
  2067. } else {
  2068. yyb28 = r.CheckBreak()
  2069. }
  2070. if yyb28 {
  2071. r.ReadArrayEnd()
  2072. return
  2073. }
  2074. r.ReadArrayElem()
  2075. if r.TryDecodeAsNil() {
  2076. x.Bslice = nil
  2077. } else {
  2078. if false {
  2079. } else {
  2080. z.F.DecSliceBoolX(&x.Bslice, d)
  2081. }
  2082. }
  2083. yyj28++
  2084. if yyhl28 {
  2085. yyb28 = yyj28 > l
  2086. } else {
  2087. yyb28 = r.CheckBreak()
  2088. }
  2089. if yyb28 {
  2090. r.ReadArrayEnd()
  2091. return
  2092. }
  2093. r.ReadArrayElem()
  2094. if r.TryDecodeAsNil() {
  2095. x.Iptrslice = nil
  2096. } else {
  2097. if false {
  2098. } else {
  2099. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2100. }
  2101. }
  2102. yyj28++
  2103. if yyhl28 {
  2104. yyb28 = yyj28 > l
  2105. } else {
  2106. yyb28 = r.CheckBreak()
  2107. }
  2108. if yyb28 {
  2109. r.ReadArrayEnd()
  2110. return
  2111. }
  2112. r.ReadArrayElem()
  2113. if r.TryDecodeAsNil() {
  2114. x.WrapSliceInt64 = nil
  2115. } else {
  2116. x.WrapSliceInt64.CodecDecodeSelf(d)
  2117. }
  2118. yyj28++
  2119. if yyhl28 {
  2120. yyb28 = yyj28 > l
  2121. } else {
  2122. yyb28 = r.CheckBreak()
  2123. }
  2124. if yyb28 {
  2125. r.ReadArrayEnd()
  2126. return
  2127. }
  2128. r.ReadArrayElem()
  2129. if r.TryDecodeAsNil() {
  2130. x.WrapSliceString = nil
  2131. } else {
  2132. x.WrapSliceString.CodecDecodeSelf(d)
  2133. }
  2134. yyj28++
  2135. if yyhl28 {
  2136. yyb28 = yyj28 > l
  2137. } else {
  2138. yyb28 = r.CheckBreak()
  2139. }
  2140. if yyb28 {
  2141. r.ReadArrayEnd()
  2142. return
  2143. }
  2144. r.ReadArrayElem()
  2145. if r.TryDecodeAsNil() {
  2146. x.Msi64 = nil
  2147. } else {
  2148. if false {
  2149. } else {
  2150. z.F.DecMapStringInt64X(&x.Msi64, d)
  2151. }
  2152. }
  2153. for {
  2154. yyj28++
  2155. if yyhl28 {
  2156. yyb28 = yyj28 > l
  2157. } else {
  2158. yyb28 = r.CheckBreak()
  2159. }
  2160. if yyb28 {
  2161. break
  2162. }
  2163. r.ReadArrayElem()
  2164. z.DecStructFieldNotFound(yyj28-1, "")
  2165. }
  2166. r.ReadArrayEnd()
  2167. }
  2168. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  2169. var h codecSelfer19780
  2170. z, r := GenHelperEncoder(e)
  2171. _, _, _ = h, z, r
  2172. if x == nil {
  2173. r.EncodeNil()
  2174. } else {
  2175. if false {
  2176. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  2177. z.EncExtension(x, yyxt1)
  2178. } else {
  2179. yysep2 := !z.EncBinary()
  2180. yy2arr2 := z.EncBasicHandle().StructToArray
  2181. _, _ = yysep2, yy2arr2
  2182. const yyr2 bool = false // struct tag has 'toArray'
  2183. if yyr2 || yy2arr2 {
  2184. r.WriteArrayStart(49)
  2185. } else {
  2186. r.WriteMapStart(49)
  2187. }
  2188. if yyr2 || yy2arr2 {
  2189. r.WriteArrayElem()
  2190. if false {
  2191. } else {
  2192. if z.EncBasicHandle().StringToRaw {
  2193. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2194. } else {
  2195. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2196. }
  2197. }
  2198. } else {
  2199. r.WriteMapElemKey()
  2200. if z.IsJSONHandle() {
  2201. z.WriteStr("\"S\"")
  2202. } else {
  2203. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  2204. }
  2205. r.WriteMapElemValue()
  2206. if false {
  2207. } else {
  2208. if z.EncBasicHandle().StringToRaw {
  2209. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2210. } else {
  2211. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2212. }
  2213. }
  2214. }
  2215. if yyr2 || yy2arr2 {
  2216. r.WriteArrayElem()
  2217. if false {
  2218. } else {
  2219. r.EncodeInt(int64(x.I64))
  2220. }
  2221. } else {
  2222. r.WriteMapElemKey()
  2223. if z.IsJSONHandle() {
  2224. z.WriteStr("\"I64\"")
  2225. } else {
  2226. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  2227. }
  2228. r.WriteMapElemValue()
  2229. if false {
  2230. } else {
  2231. r.EncodeInt(int64(x.I64))
  2232. }
  2233. }
  2234. if yyr2 || yy2arr2 {
  2235. r.WriteArrayElem()
  2236. if false {
  2237. } else {
  2238. r.EncodeInt(int64(x.I32))
  2239. }
  2240. } else {
  2241. r.WriteMapElemKey()
  2242. if z.IsJSONHandle() {
  2243. z.WriteStr("\"I32\"")
  2244. } else {
  2245. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  2246. }
  2247. r.WriteMapElemValue()
  2248. if false {
  2249. } else {
  2250. r.EncodeInt(int64(x.I32))
  2251. }
  2252. }
  2253. if yyr2 || yy2arr2 {
  2254. r.WriteArrayElem()
  2255. if false {
  2256. } else {
  2257. r.EncodeInt(int64(x.I16))
  2258. }
  2259. } else {
  2260. r.WriteMapElemKey()
  2261. if z.IsJSONHandle() {
  2262. z.WriteStr("\"I16\"")
  2263. } else {
  2264. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  2265. }
  2266. r.WriteMapElemValue()
  2267. if false {
  2268. } else {
  2269. r.EncodeInt(int64(x.I16))
  2270. }
  2271. }
  2272. if yyr2 || yy2arr2 {
  2273. r.WriteArrayElem()
  2274. if false {
  2275. } else {
  2276. r.EncodeInt(int64(x.I8))
  2277. }
  2278. } else {
  2279. r.WriteMapElemKey()
  2280. if z.IsJSONHandle() {
  2281. z.WriteStr("\"I8\"")
  2282. } else {
  2283. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  2284. }
  2285. r.WriteMapElemValue()
  2286. if false {
  2287. } else {
  2288. r.EncodeInt(int64(x.I8))
  2289. }
  2290. }
  2291. if yyr2 || yy2arr2 {
  2292. r.WriteArrayElem()
  2293. if false {
  2294. } else {
  2295. r.EncodeInt(int64(x.I64n))
  2296. }
  2297. } else {
  2298. r.WriteMapElemKey()
  2299. if z.IsJSONHandle() {
  2300. z.WriteStr("\"I64n\"")
  2301. } else {
  2302. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  2303. }
  2304. r.WriteMapElemValue()
  2305. if false {
  2306. } else {
  2307. r.EncodeInt(int64(x.I64n))
  2308. }
  2309. }
  2310. if yyr2 || yy2arr2 {
  2311. r.WriteArrayElem()
  2312. if false {
  2313. } else {
  2314. r.EncodeInt(int64(x.I32n))
  2315. }
  2316. } else {
  2317. r.WriteMapElemKey()
  2318. if z.IsJSONHandle() {
  2319. z.WriteStr("\"I32n\"")
  2320. } else {
  2321. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  2322. }
  2323. r.WriteMapElemValue()
  2324. if false {
  2325. } else {
  2326. r.EncodeInt(int64(x.I32n))
  2327. }
  2328. }
  2329. if yyr2 || yy2arr2 {
  2330. r.WriteArrayElem()
  2331. if false {
  2332. } else {
  2333. r.EncodeInt(int64(x.I16n))
  2334. }
  2335. } else {
  2336. r.WriteMapElemKey()
  2337. if z.IsJSONHandle() {
  2338. z.WriteStr("\"I16n\"")
  2339. } else {
  2340. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  2341. }
  2342. r.WriteMapElemValue()
  2343. if false {
  2344. } else {
  2345. r.EncodeInt(int64(x.I16n))
  2346. }
  2347. }
  2348. if yyr2 || yy2arr2 {
  2349. r.WriteArrayElem()
  2350. if false {
  2351. } else {
  2352. r.EncodeInt(int64(x.I8n))
  2353. }
  2354. } else {
  2355. r.WriteMapElemKey()
  2356. if z.IsJSONHandle() {
  2357. z.WriteStr("\"I8n\"")
  2358. } else {
  2359. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  2360. }
  2361. r.WriteMapElemValue()
  2362. if false {
  2363. } else {
  2364. r.EncodeInt(int64(x.I8n))
  2365. }
  2366. }
  2367. if yyr2 || yy2arr2 {
  2368. r.WriteArrayElem()
  2369. if false {
  2370. } else {
  2371. r.EncodeUint(uint64(x.Ui64))
  2372. }
  2373. } else {
  2374. r.WriteMapElemKey()
  2375. if z.IsJSONHandle() {
  2376. z.WriteStr("\"Ui64\"")
  2377. } else {
  2378. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  2379. }
  2380. r.WriteMapElemValue()
  2381. if false {
  2382. } else {
  2383. r.EncodeUint(uint64(x.Ui64))
  2384. }
  2385. }
  2386. if yyr2 || yy2arr2 {
  2387. r.WriteArrayElem()
  2388. if false {
  2389. } else {
  2390. r.EncodeUint(uint64(x.Ui32))
  2391. }
  2392. } else {
  2393. r.WriteMapElemKey()
  2394. if z.IsJSONHandle() {
  2395. z.WriteStr("\"Ui32\"")
  2396. } else {
  2397. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  2398. }
  2399. r.WriteMapElemValue()
  2400. if false {
  2401. } else {
  2402. r.EncodeUint(uint64(x.Ui32))
  2403. }
  2404. }
  2405. if yyr2 || yy2arr2 {
  2406. r.WriteArrayElem()
  2407. if false {
  2408. } else {
  2409. r.EncodeUint(uint64(x.Ui16))
  2410. }
  2411. } else {
  2412. r.WriteMapElemKey()
  2413. if z.IsJSONHandle() {
  2414. z.WriteStr("\"Ui16\"")
  2415. } else {
  2416. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  2417. }
  2418. r.WriteMapElemValue()
  2419. if false {
  2420. } else {
  2421. r.EncodeUint(uint64(x.Ui16))
  2422. }
  2423. }
  2424. if yyr2 || yy2arr2 {
  2425. r.WriteArrayElem()
  2426. if false {
  2427. } else {
  2428. r.EncodeUint(uint64(x.Ui8))
  2429. }
  2430. } else {
  2431. r.WriteMapElemKey()
  2432. if z.IsJSONHandle() {
  2433. z.WriteStr("\"Ui8\"")
  2434. } else {
  2435. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  2436. }
  2437. r.WriteMapElemValue()
  2438. if false {
  2439. } else {
  2440. r.EncodeUint(uint64(x.Ui8))
  2441. }
  2442. }
  2443. if yyr2 || yy2arr2 {
  2444. r.WriteArrayElem()
  2445. if false {
  2446. } else {
  2447. r.EncodeFloat64(float64(x.F64))
  2448. }
  2449. } else {
  2450. r.WriteMapElemKey()
  2451. if z.IsJSONHandle() {
  2452. z.WriteStr("\"F64\"")
  2453. } else {
  2454. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  2455. }
  2456. r.WriteMapElemValue()
  2457. if false {
  2458. } else {
  2459. r.EncodeFloat64(float64(x.F64))
  2460. }
  2461. }
  2462. if yyr2 || yy2arr2 {
  2463. r.WriteArrayElem()
  2464. if false {
  2465. } else {
  2466. r.EncodeFloat32(float32(x.F32))
  2467. }
  2468. } else {
  2469. r.WriteMapElemKey()
  2470. if z.IsJSONHandle() {
  2471. z.WriteStr("\"F32\"")
  2472. } else {
  2473. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  2474. }
  2475. r.WriteMapElemValue()
  2476. if false {
  2477. } else {
  2478. r.EncodeFloat32(float32(x.F32))
  2479. }
  2480. }
  2481. if yyr2 || yy2arr2 {
  2482. r.WriteArrayElem()
  2483. if false {
  2484. } else {
  2485. r.EncodeBool(bool(x.B))
  2486. }
  2487. } else {
  2488. r.WriteMapElemKey()
  2489. if z.IsJSONHandle() {
  2490. z.WriteStr("\"B\"")
  2491. } else {
  2492. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  2493. }
  2494. r.WriteMapElemValue()
  2495. if false {
  2496. } else {
  2497. r.EncodeBool(bool(x.B))
  2498. }
  2499. }
  2500. if yyr2 || yy2arr2 {
  2501. r.WriteArrayElem()
  2502. if false {
  2503. } else {
  2504. r.EncodeUint(uint64(x.By))
  2505. }
  2506. } else {
  2507. r.WriteMapElemKey()
  2508. if z.IsJSONHandle() {
  2509. z.WriteStr("\"By\"")
  2510. } else {
  2511. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  2512. }
  2513. r.WriteMapElemValue()
  2514. if false {
  2515. } else {
  2516. r.EncodeUint(uint64(x.By))
  2517. }
  2518. }
  2519. if yyr2 || yy2arr2 {
  2520. r.WriteArrayElem()
  2521. if x.Sslice == nil {
  2522. r.EncodeNil()
  2523. } else {
  2524. if false {
  2525. } else {
  2526. z.F.EncSliceStringV(x.Sslice, e)
  2527. }
  2528. }
  2529. } else {
  2530. r.WriteMapElemKey()
  2531. if z.IsJSONHandle() {
  2532. z.WriteStr("\"Sslice\"")
  2533. } else {
  2534. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  2535. }
  2536. r.WriteMapElemValue()
  2537. if x.Sslice == nil {
  2538. r.EncodeNil()
  2539. } else {
  2540. if false {
  2541. } else {
  2542. z.F.EncSliceStringV(x.Sslice, e)
  2543. }
  2544. }
  2545. }
  2546. if yyr2 || yy2arr2 {
  2547. r.WriteArrayElem()
  2548. if x.I64slice == nil {
  2549. r.EncodeNil()
  2550. } else {
  2551. if false {
  2552. } else {
  2553. z.F.EncSliceInt64V(x.I64slice, e)
  2554. }
  2555. }
  2556. } else {
  2557. r.WriteMapElemKey()
  2558. if z.IsJSONHandle() {
  2559. z.WriteStr("\"I64slice\"")
  2560. } else {
  2561. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  2562. }
  2563. r.WriteMapElemValue()
  2564. if x.I64slice == nil {
  2565. r.EncodeNil()
  2566. } else {
  2567. if false {
  2568. } else {
  2569. z.F.EncSliceInt64V(x.I64slice, e)
  2570. }
  2571. }
  2572. }
  2573. if yyr2 || yy2arr2 {
  2574. r.WriteArrayElem()
  2575. if x.I16slice == nil {
  2576. r.EncodeNil()
  2577. } else {
  2578. if false {
  2579. } else {
  2580. z.F.EncSliceInt16V(x.I16slice, e)
  2581. }
  2582. }
  2583. } else {
  2584. r.WriteMapElemKey()
  2585. if z.IsJSONHandle() {
  2586. z.WriteStr("\"I16slice\"")
  2587. } else {
  2588. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  2589. }
  2590. r.WriteMapElemValue()
  2591. if x.I16slice == nil {
  2592. r.EncodeNil()
  2593. } else {
  2594. if false {
  2595. } else {
  2596. z.F.EncSliceInt16V(x.I16slice, e)
  2597. }
  2598. }
  2599. }
  2600. if yyr2 || yy2arr2 {
  2601. r.WriteArrayElem()
  2602. if x.Ui64slice == nil {
  2603. r.EncodeNil()
  2604. } else {
  2605. if false {
  2606. } else {
  2607. z.F.EncSliceUint64V(x.Ui64slice, e)
  2608. }
  2609. }
  2610. } else {
  2611. r.WriteMapElemKey()
  2612. if z.IsJSONHandle() {
  2613. z.WriteStr("\"Ui64slice\"")
  2614. } else {
  2615. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  2616. }
  2617. r.WriteMapElemValue()
  2618. if x.Ui64slice == nil {
  2619. r.EncodeNil()
  2620. } else {
  2621. if false {
  2622. } else {
  2623. z.F.EncSliceUint64V(x.Ui64slice, e)
  2624. }
  2625. }
  2626. }
  2627. if yyr2 || yy2arr2 {
  2628. r.WriteArrayElem()
  2629. if x.Ui8slice == nil {
  2630. r.EncodeNil()
  2631. } else {
  2632. if false {
  2633. } else {
  2634. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2635. }
  2636. }
  2637. } else {
  2638. r.WriteMapElemKey()
  2639. if z.IsJSONHandle() {
  2640. z.WriteStr("\"Ui8slice\"")
  2641. } else {
  2642. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  2643. }
  2644. r.WriteMapElemValue()
  2645. if x.Ui8slice == nil {
  2646. r.EncodeNil()
  2647. } else {
  2648. if false {
  2649. } else {
  2650. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2651. }
  2652. }
  2653. }
  2654. if yyr2 || yy2arr2 {
  2655. r.WriteArrayElem()
  2656. if x.Bslice == nil {
  2657. r.EncodeNil()
  2658. } else {
  2659. if false {
  2660. } else {
  2661. z.F.EncSliceBoolV(x.Bslice, e)
  2662. }
  2663. }
  2664. } else {
  2665. r.WriteMapElemKey()
  2666. if z.IsJSONHandle() {
  2667. z.WriteStr("\"Bslice\"")
  2668. } else {
  2669. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  2670. }
  2671. r.WriteMapElemValue()
  2672. if x.Bslice == nil {
  2673. r.EncodeNil()
  2674. } else {
  2675. if false {
  2676. } else {
  2677. z.F.EncSliceBoolV(x.Bslice, e)
  2678. }
  2679. }
  2680. }
  2681. if yyr2 || yy2arr2 {
  2682. r.WriteArrayElem()
  2683. if x.Byslice == nil {
  2684. r.EncodeNil()
  2685. } else {
  2686. if false {
  2687. } else {
  2688. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2689. }
  2690. }
  2691. } else {
  2692. r.WriteMapElemKey()
  2693. if z.IsJSONHandle() {
  2694. z.WriteStr("\"Byslice\"")
  2695. } else {
  2696. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  2697. }
  2698. r.WriteMapElemValue()
  2699. if x.Byslice == nil {
  2700. r.EncodeNil()
  2701. } else {
  2702. if false {
  2703. } else {
  2704. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2705. }
  2706. }
  2707. }
  2708. if yyr2 || yy2arr2 {
  2709. r.WriteArrayElem()
  2710. if x.Iptrslice == nil {
  2711. r.EncodeNil()
  2712. } else {
  2713. if false {
  2714. } else {
  2715. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2716. }
  2717. }
  2718. } else {
  2719. r.WriteMapElemKey()
  2720. if z.IsJSONHandle() {
  2721. z.WriteStr("\"Iptrslice\"")
  2722. } else {
  2723. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  2724. }
  2725. r.WriteMapElemValue()
  2726. if x.Iptrslice == nil {
  2727. r.EncodeNil()
  2728. } else {
  2729. if false {
  2730. } else {
  2731. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2732. }
  2733. }
  2734. }
  2735. if yyr2 || yy2arr2 {
  2736. r.WriteArrayElem()
  2737. if x.WrapSliceInt64 == nil {
  2738. r.EncodeNil()
  2739. } else {
  2740. x.WrapSliceInt64.CodecEncodeSelf(e)
  2741. }
  2742. } else {
  2743. r.WriteMapElemKey()
  2744. if z.IsJSONHandle() {
  2745. z.WriteStr("\"WrapSliceInt64\"")
  2746. } else {
  2747. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  2748. }
  2749. r.WriteMapElemValue()
  2750. if x.WrapSliceInt64 == nil {
  2751. r.EncodeNil()
  2752. } else {
  2753. x.WrapSliceInt64.CodecEncodeSelf(e)
  2754. }
  2755. }
  2756. if yyr2 || yy2arr2 {
  2757. r.WriteArrayElem()
  2758. if x.WrapSliceString == nil {
  2759. r.EncodeNil()
  2760. } else {
  2761. x.WrapSliceString.CodecEncodeSelf(e)
  2762. }
  2763. } else {
  2764. r.WriteMapElemKey()
  2765. if z.IsJSONHandle() {
  2766. z.WriteStr("\"WrapSliceString\"")
  2767. } else {
  2768. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  2769. }
  2770. r.WriteMapElemValue()
  2771. if x.WrapSliceString == nil {
  2772. r.EncodeNil()
  2773. } else {
  2774. x.WrapSliceString.CodecEncodeSelf(e)
  2775. }
  2776. }
  2777. if yyr2 || yy2arr2 {
  2778. r.WriteArrayElem()
  2779. if x.Msi64 == nil {
  2780. r.EncodeNil()
  2781. } else {
  2782. if false {
  2783. } else {
  2784. z.F.EncMapStringInt64V(x.Msi64, e)
  2785. }
  2786. }
  2787. } else {
  2788. r.WriteMapElemKey()
  2789. if z.IsJSONHandle() {
  2790. z.WriteStr("\"Msi64\"")
  2791. } else {
  2792. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  2793. }
  2794. r.WriteMapElemValue()
  2795. if x.Msi64 == nil {
  2796. r.EncodeNil()
  2797. } else {
  2798. if false {
  2799. } else {
  2800. z.F.EncMapStringInt64V(x.Msi64, e)
  2801. }
  2802. }
  2803. }
  2804. if yyr2 || yy2arr2 {
  2805. r.WriteArrayElem()
  2806. yy88 := &x.Simplef
  2807. yy88.CodecEncodeSelf(e)
  2808. } else {
  2809. r.WriteMapElemKey()
  2810. if z.IsJSONHandle() {
  2811. z.WriteStr("\"Simplef\"")
  2812. } else {
  2813. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  2814. }
  2815. r.WriteMapElemValue()
  2816. yy90 := &x.Simplef
  2817. yy90.CodecEncodeSelf(e)
  2818. }
  2819. if yyr2 || yy2arr2 {
  2820. r.WriteArrayElem()
  2821. if x.SstrUi64T == nil {
  2822. r.EncodeNil()
  2823. } else {
  2824. if false {
  2825. } else {
  2826. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2827. }
  2828. }
  2829. } else {
  2830. r.WriteMapElemKey()
  2831. if z.IsJSONHandle() {
  2832. z.WriteStr("\"SstrUi64T\"")
  2833. } else {
  2834. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  2835. }
  2836. r.WriteMapElemValue()
  2837. if x.SstrUi64T == nil {
  2838. r.EncodeNil()
  2839. } else {
  2840. if false {
  2841. } else {
  2842. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2843. }
  2844. }
  2845. }
  2846. if yyr2 || yy2arr2 {
  2847. r.WriteArrayElem()
  2848. if false {
  2849. } else {
  2850. if z.EncBasicHandle().StringToRaw {
  2851. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  2852. } else {
  2853. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  2854. }
  2855. }
  2856. } else {
  2857. r.WriteMapElemKey()
  2858. if z.IsJSONHandle() {
  2859. z.WriteStr("\"AS\"")
  2860. } else {
  2861. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  2862. }
  2863. r.WriteMapElemValue()
  2864. if false {
  2865. } else {
  2866. if z.EncBasicHandle().StringToRaw {
  2867. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  2868. } else {
  2869. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  2870. }
  2871. }
  2872. }
  2873. if yyr2 || yy2arr2 {
  2874. r.WriteArrayElem()
  2875. if false {
  2876. } else {
  2877. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  2878. }
  2879. } else {
  2880. r.WriteMapElemKey()
  2881. if z.IsJSONHandle() {
  2882. z.WriteStr("\"AI64\"")
  2883. } else {
  2884. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  2885. }
  2886. r.WriteMapElemValue()
  2887. if false {
  2888. } else {
  2889. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  2890. }
  2891. }
  2892. if yyr2 || yy2arr2 {
  2893. r.WriteArrayElem()
  2894. if false {
  2895. } else {
  2896. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  2897. }
  2898. } else {
  2899. r.WriteMapElemKey()
  2900. if z.IsJSONHandle() {
  2901. z.WriteStr("\"AI16\"")
  2902. } else {
  2903. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  2904. }
  2905. r.WriteMapElemValue()
  2906. if false {
  2907. } else {
  2908. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  2909. }
  2910. }
  2911. if yyr2 || yy2arr2 {
  2912. r.WriteArrayElem()
  2913. if false {
  2914. } else {
  2915. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  2916. }
  2917. } else {
  2918. r.WriteMapElemKey()
  2919. if z.IsJSONHandle() {
  2920. z.WriteStr("\"AUi64\"")
  2921. } else {
  2922. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  2923. }
  2924. r.WriteMapElemValue()
  2925. if false {
  2926. } else {
  2927. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  2928. }
  2929. }
  2930. if yyr2 || yy2arr2 {
  2931. r.WriteArrayElem()
  2932. if x.AnonInTestStruc.ASslice == nil {
  2933. r.EncodeNil()
  2934. } else {
  2935. if false {
  2936. } else {
  2937. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  2938. }
  2939. }
  2940. } else {
  2941. r.WriteMapElemKey()
  2942. if z.IsJSONHandle() {
  2943. z.WriteStr("\"ASslice\"")
  2944. } else {
  2945. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  2946. }
  2947. r.WriteMapElemValue()
  2948. if x.AnonInTestStruc.ASslice == nil {
  2949. r.EncodeNil()
  2950. } else {
  2951. if false {
  2952. } else {
  2953. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  2954. }
  2955. }
  2956. }
  2957. if yyr2 || yy2arr2 {
  2958. r.WriteArrayElem()
  2959. if x.AnonInTestStruc.AI64slice == nil {
  2960. r.EncodeNil()
  2961. } else {
  2962. if false {
  2963. } else {
  2964. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  2965. }
  2966. }
  2967. } else {
  2968. r.WriteMapElemKey()
  2969. if z.IsJSONHandle() {
  2970. z.WriteStr("\"AI64slice\"")
  2971. } else {
  2972. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  2973. }
  2974. r.WriteMapElemValue()
  2975. if x.AnonInTestStruc.AI64slice == nil {
  2976. r.EncodeNil()
  2977. } else {
  2978. if false {
  2979. } else {
  2980. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  2981. }
  2982. }
  2983. }
  2984. if yyr2 || yy2arr2 {
  2985. r.WriteArrayElem()
  2986. if x.AnonInTestStruc.AUi64slice == nil {
  2987. r.EncodeNil()
  2988. } else {
  2989. if false {
  2990. } else {
  2991. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  2992. }
  2993. }
  2994. } else {
  2995. r.WriteMapElemKey()
  2996. if z.IsJSONHandle() {
  2997. z.WriteStr("\"AUi64slice\"")
  2998. } else {
  2999. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3000. }
  3001. r.WriteMapElemValue()
  3002. if x.AnonInTestStruc.AUi64slice == nil {
  3003. r.EncodeNil()
  3004. } else {
  3005. if false {
  3006. } else {
  3007. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  3008. }
  3009. }
  3010. }
  3011. if yyr2 || yy2arr2 {
  3012. r.WriteArrayElem()
  3013. if x.AnonInTestStruc.AF64slice == nil {
  3014. r.EncodeNil()
  3015. } else {
  3016. if false {
  3017. } else {
  3018. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  3019. }
  3020. }
  3021. } else {
  3022. r.WriteMapElemKey()
  3023. if z.IsJSONHandle() {
  3024. z.WriteStr("\"AF64slice\"")
  3025. } else {
  3026. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3027. }
  3028. r.WriteMapElemValue()
  3029. if x.AnonInTestStruc.AF64slice == nil {
  3030. r.EncodeNil()
  3031. } else {
  3032. if false {
  3033. } else {
  3034. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  3035. }
  3036. }
  3037. }
  3038. if yyr2 || yy2arr2 {
  3039. r.WriteArrayElem()
  3040. if x.AnonInTestStruc.AF32slice == nil {
  3041. r.EncodeNil()
  3042. } else {
  3043. if false {
  3044. } else {
  3045. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  3046. }
  3047. }
  3048. } else {
  3049. r.WriteMapElemKey()
  3050. if z.IsJSONHandle() {
  3051. z.WriteStr("\"AF32slice\"")
  3052. } else {
  3053. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3054. }
  3055. r.WriteMapElemValue()
  3056. if x.AnonInTestStruc.AF32slice == nil {
  3057. r.EncodeNil()
  3058. } else {
  3059. if false {
  3060. } else {
  3061. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  3062. }
  3063. }
  3064. }
  3065. if yyr2 || yy2arr2 {
  3066. r.WriteArrayElem()
  3067. if x.AnonInTestStruc.AMSU16 == nil {
  3068. r.EncodeNil()
  3069. } else {
  3070. if false {
  3071. } else {
  3072. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  3073. }
  3074. }
  3075. } else {
  3076. r.WriteMapElemKey()
  3077. if z.IsJSONHandle() {
  3078. z.WriteStr("\"AMSU16\"")
  3079. } else {
  3080. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3081. }
  3082. r.WriteMapElemValue()
  3083. if x.AnonInTestStruc.AMSU16 == nil {
  3084. r.EncodeNil()
  3085. } else {
  3086. if false {
  3087. } else {
  3088. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  3089. }
  3090. }
  3091. }
  3092. if yyr2 || yy2arr2 {
  3093. r.WriteArrayElem()
  3094. yy126 := &x.AnonInTestStruc.AI64arr0
  3095. if false {
  3096. } else {
  3097. h.encArray0int64((*[0]int64)(yy126), e)
  3098. }
  3099. } else {
  3100. r.WriteMapElemKey()
  3101. if z.IsJSONHandle() {
  3102. z.WriteStr("\"AI64arr0\"")
  3103. } else {
  3104. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3105. }
  3106. r.WriteMapElemValue()
  3107. yy128 := &x.AnonInTestStruc.AI64arr0
  3108. if false {
  3109. } else {
  3110. h.encArray0int64((*[0]int64)(yy128), e)
  3111. }
  3112. }
  3113. if yyr2 || yy2arr2 {
  3114. r.WriteArrayElem()
  3115. if x.AnonInTestStruc.A164slice0 == nil {
  3116. r.EncodeNil()
  3117. } else {
  3118. if false {
  3119. } else {
  3120. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  3121. }
  3122. }
  3123. } else {
  3124. r.WriteMapElemKey()
  3125. if z.IsJSONHandle() {
  3126. z.WriteStr("\"A164slice0\"")
  3127. } else {
  3128. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  3129. }
  3130. r.WriteMapElemValue()
  3131. if x.AnonInTestStruc.A164slice0 == nil {
  3132. r.EncodeNil()
  3133. } else {
  3134. if false {
  3135. } else {
  3136. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  3137. }
  3138. }
  3139. }
  3140. if yyr2 || yy2arr2 {
  3141. r.WriteArrayElem()
  3142. if x.AnonInTestStruc.AUi64sliceN == nil {
  3143. r.EncodeNil()
  3144. } else {
  3145. if false {
  3146. } else {
  3147. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  3148. }
  3149. }
  3150. } else {
  3151. r.WriteMapElemKey()
  3152. if z.IsJSONHandle() {
  3153. z.WriteStr("\"AUi64sliceN\"")
  3154. } else {
  3155. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3156. }
  3157. r.WriteMapElemValue()
  3158. if x.AnonInTestStruc.AUi64sliceN == nil {
  3159. r.EncodeNil()
  3160. } else {
  3161. if false {
  3162. } else {
  3163. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  3164. }
  3165. }
  3166. }
  3167. if yyr2 || yy2arr2 {
  3168. r.WriteArrayElem()
  3169. if x.AnonInTestStruc.AMSU16N == nil {
  3170. r.EncodeNil()
  3171. } else {
  3172. if false {
  3173. } else {
  3174. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  3175. }
  3176. }
  3177. } else {
  3178. r.WriteMapElemKey()
  3179. if z.IsJSONHandle() {
  3180. z.WriteStr("\"AMSU16N\"")
  3181. } else {
  3182. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3183. }
  3184. r.WriteMapElemValue()
  3185. if x.AnonInTestStruc.AMSU16N == nil {
  3186. r.EncodeNil()
  3187. } else {
  3188. if false {
  3189. } else {
  3190. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  3191. }
  3192. }
  3193. }
  3194. if yyr2 || yy2arr2 {
  3195. r.WriteArrayElem()
  3196. if x.AnonInTestStruc.AMSU16E == nil {
  3197. r.EncodeNil()
  3198. } else {
  3199. if false {
  3200. } else {
  3201. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  3202. }
  3203. }
  3204. } else {
  3205. r.WriteMapElemKey()
  3206. if z.IsJSONHandle() {
  3207. z.WriteStr("\"AMSU16E\"")
  3208. } else {
  3209. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3210. }
  3211. r.WriteMapElemValue()
  3212. if x.AnonInTestStruc.AMSU16E == nil {
  3213. r.EncodeNil()
  3214. } else {
  3215. if false {
  3216. } else {
  3217. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  3218. }
  3219. }
  3220. }
  3221. if yyr2 || yy2arr2 {
  3222. r.WriteArrayElem()
  3223. yy143 := &x.NotAnon
  3224. yy143.CodecEncodeSelf(e)
  3225. } else {
  3226. r.WriteMapElemKey()
  3227. if z.IsJSONHandle() {
  3228. z.WriteStr("\"NotAnon\"")
  3229. } else {
  3230. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3231. }
  3232. r.WriteMapElemValue()
  3233. yy145 := &x.NotAnon
  3234. yy145.CodecEncodeSelf(e)
  3235. }
  3236. if yyr2 || yy2arr2 {
  3237. r.WriteArrayElem()
  3238. if x.Nmap == nil {
  3239. r.EncodeNil()
  3240. } else {
  3241. if false {
  3242. } else {
  3243. z.F.EncMapStringBoolV(x.Nmap, e)
  3244. }
  3245. }
  3246. } else {
  3247. r.WriteMapElemKey()
  3248. if z.IsJSONHandle() {
  3249. z.WriteStr("\"Nmap\"")
  3250. } else {
  3251. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3252. }
  3253. r.WriteMapElemValue()
  3254. if x.Nmap == nil {
  3255. r.EncodeNil()
  3256. } else {
  3257. if false {
  3258. } else {
  3259. z.F.EncMapStringBoolV(x.Nmap, e)
  3260. }
  3261. }
  3262. }
  3263. if yyr2 || yy2arr2 {
  3264. r.WriteArrayElem()
  3265. if x.Nslice == nil {
  3266. r.EncodeNil()
  3267. } else {
  3268. if false {
  3269. } else {
  3270. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3271. }
  3272. }
  3273. } else {
  3274. r.WriteMapElemKey()
  3275. if z.IsJSONHandle() {
  3276. z.WriteStr("\"Nslice\"")
  3277. } else {
  3278. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3279. }
  3280. r.WriteMapElemValue()
  3281. if x.Nslice == nil {
  3282. r.EncodeNil()
  3283. } else {
  3284. if false {
  3285. } else {
  3286. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3287. }
  3288. }
  3289. }
  3290. var yyn153 bool
  3291. if x.Nint64 == nil {
  3292. yyn153 = true
  3293. goto LABEL153
  3294. }
  3295. LABEL153:
  3296. if yyr2 || yy2arr2 {
  3297. if yyn153 {
  3298. r.WriteArrayElem()
  3299. r.EncodeNil()
  3300. } else {
  3301. r.WriteArrayElem()
  3302. if x.Nint64 == nil {
  3303. r.EncodeNil()
  3304. } else {
  3305. yy154 := *x.Nint64
  3306. if false {
  3307. } else {
  3308. r.EncodeInt(int64(yy154))
  3309. }
  3310. }
  3311. }
  3312. } else {
  3313. r.WriteMapElemKey()
  3314. if z.IsJSONHandle() {
  3315. z.WriteStr("\"Nint64\"")
  3316. } else {
  3317. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3318. }
  3319. r.WriteMapElemValue()
  3320. if yyn153 {
  3321. r.EncodeNil()
  3322. } else {
  3323. if x.Nint64 == nil {
  3324. r.EncodeNil()
  3325. } else {
  3326. yy156 := *x.Nint64
  3327. if false {
  3328. } else {
  3329. r.EncodeInt(int64(yy156))
  3330. }
  3331. }
  3332. }
  3333. }
  3334. if yyr2 || yy2arr2 {
  3335. r.WriteArrayEnd()
  3336. } else {
  3337. r.WriteMapEnd()
  3338. }
  3339. }
  3340. }
  3341. }
  3342. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  3343. var h codecSelfer19780
  3344. z, r := GenHelperDecoder(d)
  3345. _, _, _ = h, z, r
  3346. if false {
  3347. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  3348. z.DecExtension(x, yyxt1)
  3349. } else {
  3350. yyct2 := r.ContainerType()
  3351. if yyct2 == codecSelferValueTypeMap19780 {
  3352. yyl2 := r.ReadMapStart()
  3353. if yyl2 == 0 {
  3354. r.ReadMapEnd()
  3355. } else {
  3356. x.codecDecodeSelfFromMap(yyl2, d)
  3357. }
  3358. } else if yyct2 == codecSelferValueTypeArray19780 {
  3359. yyl2 := r.ReadArrayStart()
  3360. if yyl2 == 0 {
  3361. r.ReadArrayEnd()
  3362. } else {
  3363. x.codecDecodeSelfFromArray(yyl2, d)
  3364. }
  3365. } else {
  3366. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3367. }
  3368. }
  3369. }
  3370. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  3371. var h codecSelfer19780
  3372. z, r := GenHelperDecoder(d)
  3373. _, _, _ = h, z, r
  3374. var yyhl3 bool = l >= 0
  3375. for yyj3 := 0; ; yyj3++ {
  3376. if yyhl3 {
  3377. if yyj3 >= l {
  3378. break
  3379. }
  3380. } else {
  3381. if r.CheckBreak() {
  3382. break
  3383. }
  3384. }
  3385. r.ReadMapElemKey()
  3386. yys3 := z.StringView(r.DecodeStringAsBytes())
  3387. r.ReadMapElemValue()
  3388. switch yys3 {
  3389. case "S":
  3390. if r.TryDecodeAsNil() {
  3391. x.S = ""
  3392. } else {
  3393. x.S = (string)(r.DecodeString())
  3394. }
  3395. case "I64":
  3396. if r.TryDecodeAsNil() {
  3397. x.I64 = 0
  3398. } else {
  3399. x.I64 = (int64)(r.DecodeInt64())
  3400. }
  3401. case "I32":
  3402. if r.TryDecodeAsNil() {
  3403. x.I32 = 0
  3404. } else {
  3405. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3406. }
  3407. case "I16":
  3408. if r.TryDecodeAsNil() {
  3409. x.I16 = 0
  3410. } else {
  3411. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3412. }
  3413. case "I8":
  3414. if r.TryDecodeAsNil() {
  3415. x.I8 = 0
  3416. } else {
  3417. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3418. }
  3419. case "I64n":
  3420. if r.TryDecodeAsNil() {
  3421. x.I64n = 0
  3422. } else {
  3423. x.I64n = (int64)(r.DecodeInt64())
  3424. }
  3425. case "I32n":
  3426. if r.TryDecodeAsNil() {
  3427. x.I32n = 0
  3428. } else {
  3429. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3430. }
  3431. case "I16n":
  3432. if r.TryDecodeAsNil() {
  3433. x.I16n = 0
  3434. } else {
  3435. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3436. }
  3437. case "I8n":
  3438. if r.TryDecodeAsNil() {
  3439. x.I8n = 0
  3440. } else {
  3441. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3442. }
  3443. case "Ui64":
  3444. if r.TryDecodeAsNil() {
  3445. x.Ui64 = 0
  3446. } else {
  3447. x.Ui64 = (uint64)(r.DecodeUint64())
  3448. }
  3449. case "Ui32":
  3450. if r.TryDecodeAsNil() {
  3451. x.Ui32 = 0
  3452. } else {
  3453. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3454. }
  3455. case "Ui16":
  3456. if r.TryDecodeAsNil() {
  3457. x.Ui16 = 0
  3458. } else {
  3459. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3460. }
  3461. case "Ui8":
  3462. if r.TryDecodeAsNil() {
  3463. x.Ui8 = 0
  3464. } else {
  3465. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3466. }
  3467. case "F64":
  3468. if r.TryDecodeAsNil() {
  3469. x.F64 = 0
  3470. } else {
  3471. x.F64 = (float64)(r.DecodeFloat64())
  3472. }
  3473. case "F32":
  3474. if r.TryDecodeAsNil() {
  3475. x.F32 = 0
  3476. } else {
  3477. x.F32 = (float32)(r.DecodeFloat32As64())
  3478. }
  3479. case "B":
  3480. if r.TryDecodeAsNil() {
  3481. x.B = false
  3482. } else {
  3483. x.B = (bool)(r.DecodeBool())
  3484. }
  3485. case "By":
  3486. if r.TryDecodeAsNil() {
  3487. x.By = 0
  3488. } else {
  3489. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3490. }
  3491. case "Sslice":
  3492. if r.TryDecodeAsNil() {
  3493. x.Sslice = nil
  3494. } else {
  3495. if false {
  3496. } else {
  3497. z.F.DecSliceStringX(&x.Sslice, d)
  3498. }
  3499. }
  3500. case "I64slice":
  3501. if r.TryDecodeAsNil() {
  3502. x.I64slice = nil
  3503. } else {
  3504. if false {
  3505. } else {
  3506. z.F.DecSliceInt64X(&x.I64slice, d)
  3507. }
  3508. }
  3509. case "I16slice":
  3510. if r.TryDecodeAsNil() {
  3511. x.I16slice = nil
  3512. } else {
  3513. if false {
  3514. } else {
  3515. z.F.DecSliceInt16X(&x.I16slice, d)
  3516. }
  3517. }
  3518. case "Ui64slice":
  3519. if r.TryDecodeAsNil() {
  3520. x.Ui64slice = nil
  3521. } else {
  3522. if false {
  3523. } else {
  3524. z.F.DecSliceUint64X(&x.Ui64slice, d)
  3525. }
  3526. }
  3527. case "Ui8slice":
  3528. if r.TryDecodeAsNil() {
  3529. x.Ui8slice = nil
  3530. } else {
  3531. if false {
  3532. } else {
  3533. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  3534. }
  3535. }
  3536. case "Bslice":
  3537. if r.TryDecodeAsNil() {
  3538. x.Bslice = nil
  3539. } else {
  3540. if false {
  3541. } else {
  3542. z.F.DecSliceBoolX(&x.Bslice, d)
  3543. }
  3544. }
  3545. case "Byslice":
  3546. if r.TryDecodeAsNil() {
  3547. x.Byslice = nil
  3548. } else {
  3549. if false {
  3550. } else {
  3551. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  3552. }
  3553. }
  3554. case "Iptrslice":
  3555. if r.TryDecodeAsNil() {
  3556. x.Iptrslice = nil
  3557. } else {
  3558. if false {
  3559. } else {
  3560. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  3561. }
  3562. }
  3563. case "WrapSliceInt64":
  3564. if r.TryDecodeAsNil() {
  3565. x.WrapSliceInt64 = nil
  3566. } else {
  3567. x.WrapSliceInt64.CodecDecodeSelf(d)
  3568. }
  3569. case "WrapSliceString":
  3570. if r.TryDecodeAsNil() {
  3571. x.WrapSliceString = nil
  3572. } else {
  3573. x.WrapSliceString.CodecDecodeSelf(d)
  3574. }
  3575. case "Msi64":
  3576. if r.TryDecodeAsNil() {
  3577. x.Msi64 = nil
  3578. } else {
  3579. if false {
  3580. } else {
  3581. z.F.DecMapStringInt64X(&x.Msi64, d)
  3582. }
  3583. }
  3584. case "Simplef":
  3585. if r.TryDecodeAsNil() {
  3586. x.Simplef = testSimpleFields{}
  3587. } else {
  3588. x.Simplef.CodecDecodeSelf(d)
  3589. }
  3590. case "SstrUi64T":
  3591. if r.TryDecodeAsNil() {
  3592. x.SstrUi64T = nil
  3593. } else {
  3594. if false {
  3595. } else {
  3596. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  3597. }
  3598. }
  3599. case "AS":
  3600. if r.TryDecodeAsNil() {
  3601. x.AnonInTestStruc.AS = ""
  3602. } else {
  3603. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  3604. }
  3605. case "AI64":
  3606. if r.TryDecodeAsNil() {
  3607. x.AnonInTestStruc.AI64 = 0
  3608. } else {
  3609. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  3610. }
  3611. case "AI16":
  3612. if r.TryDecodeAsNil() {
  3613. x.AnonInTestStruc.AI16 = 0
  3614. } else {
  3615. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3616. }
  3617. case "AUi64":
  3618. if r.TryDecodeAsNil() {
  3619. x.AnonInTestStruc.AUi64 = 0
  3620. } else {
  3621. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3622. }
  3623. case "ASslice":
  3624. if r.TryDecodeAsNil() {
  3625. x.AnonInTestStruc.ASslice = nil
  3626. } else {
  3627. if false {
  3628. } else {
  3629. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  3630. }
  3631. }
  3632. case "AI64slice":
  3633. if r.TryDecodeAsNil() {
  3634. x.AnonInTestStruc.AI64slice = nil
  3635. } else {
  3636. if false {
  3637. } else {
  3638. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  3639. }
  3640. }
  3641. case "AUi64slice":
  3642. if r.TryDecodeAsNil() {
  3643. x.AnonInTestStruc.AUi64slice = nil
  3644. } else {
  3645. if false {
  3646. } else {
  3647. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  3648. }
  3649. }
  3650. case "AF64slice":
  3651. if r.TryDecodeAsNil() {
  3652. x.AnonInTestStruc.AF64slice = nil
  3653. } else {
  3654. if false {
  3655. } else {
  3656. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  3657. }
  3658. }
  3659. case "AF32slice":
  3660. if r.TryDecodeAsNil() {
  3661. x.AnonInTestStruc.AF32slice = nil
  3662. } else {
  3663. if false {
  3664. } else {
  3665. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  3666. }
  3667. }
  3668. case "AMSU16":
  3669. if r.TryDecodeAsNil() {
  3670. x.AnonInTestStruc.AMSU16 = nil
  3671. } else {
  3672. if false {
  3673. } else {
  3674. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  3675. }
  3676. }
  3677. case "AI64arr0":
  3678. if r.TryDecodeAsNil() {
  3679. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3680. } else {
  3681. if false {
  3682. } else {
  3683. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  3684. }
  3685. }
  3686. case "A164slice0":
  3687. if r.TryDecodeAsNil() {
  3688. x.AnonInTestStruc.A164slice0 = nil
  3689. } else {
  3690. if false {
  3691. } else {
  3692. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  3693. }
  3694. }
  3695. case "AUi64sliceN":
  3696. if r.TryDecodeAsNil() {
  3697. x.AnonInTestStruc.AUi64sliceN = nil
  3698. } else {
  3699. if false {
  3700. } else {
  3701. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  3702. }
  3703. }
  3704. case "AMSU16N":
  3705. if r.TryDecodeAsNil() {
  3706. x.AnonInTestStruc.AMSU16N = nil
  3707. } else {
  3708. if false {
  3709. } else {
  3710. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  3711. }
  3712. }
  3713. case "AMSU16E":
  3714. if r.TryDecodeAsNil() {
  3715. x.AnonInTestStruc.AMSU16E = nil
  3716. } else {
  3717. if false {
  3718. } else {
  3719. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  3720. }
  3721. }
  3722. case "NotAnon":
  3723. if r.TryDecodeAsNil() {
  3724. x.NotAnon = AnonInTestStruc{}
  3725. } else {
  3726. x.NotAnon.CodecDecodeSelf(d)
  3727. }
  3728. case "Nmap":
  3729. if r.TryDecodeAsNil() {
  3730. x.Nmap = nil
  3731. } else {
  3732. if false {
  3733. } else {
  3734. z.F.DecMapStringBoolX(&x.Nmap, d)
  3735. }
  3736. }
  3737. case "Nslice":
  3738. if r.TryDecodeAsNil() {
  3739. x.Nslice = nil
  3740. } else {
  3741. if false {
  3742. } else {
  3743. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3744. }
  3745. }
  3746. case "Nint64":
  3747. if r.TryDecodeAsNil() {
  3748. if true && x.Nint64 != nil {
  3749. x.Nint64 = nil
  3750. }
  3751. } else {
  3752. if x.Nint64 == nil {
  3753. x.Nint64 = new(int64)
  3754. }
  3755. if false {
  3756. } else {
  3757. *x.Nint64 = (int64)(r.DecodeInt64())
  3758. }
  3759. }
  3760. default:
  3761. z.DecStructFieldNotFound(-1, yys3)
  3762. } // end switch yys3
  3763. } // end for yyj3
  3764. r.ReadMapEnd()
  3765. }
  3766. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  3767. var h codecSelfer19780
  3768. z, r := GenHelperDecoder(d)
  3769. _, _, _ = h, z, r
  3770. var yyj77 int
  3771. var yyb77 bool
  3772. var yyhl77 bool = l >= 0
  3773. yyj77++
  3774. if yyhl77 {
  3775. yyb77 = yyj77 > l
  3776. } else {
  3777. yyb77 = r.CheckBreak()
  3778. }
  3779. if yyb77 {
  3780. r.ReadArrayEnd()
  3781. return
  3782. }
  3783. r.ReadArrayElem()
  3784. if r.TryDecodeAsNil() {
  3785. x.S = ""
  3786. } else {
  3787. x.S = (string)(r.DecodeString())
  3788. }
  3789. yyj77++
  3790. if yyhl77 {
  3791. yyb77 = yyj77 > l
  3792. } else {
  3793. yyb77 = r.CheckBreak()
  3794. }
  3795. if yyb77 {
  3796. r.ReadArrayEnd()
  3797. return
  3798. }
  3799. r.ReadArrayElem()
  3800. if r.TryDecodeAsNil() {
  3801. x.I64 = 0
  3802. } else {
  3803. x.I64 = (int64)(r.DecodeInt64())
  3804. }
  3805. yyj77++
  3806. if yyhl77 {
  3807. yyb77 = yyj77 > l
  3808. } else {
  3809. yyb77 = r.CheckBreak()
  3810. }
  3811. if yyb77 {
  3812. r.ReadArrayEnd()
  3813. return
  3814. }
  3815. r.ReadArrayElem()
  3816. if r.TryDecodeAsNil() {
  3817. x.I32 = 0
  3818. } else {
  3819. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3820. }
  3821. yyj77++
  3822. if yyhl77 {
  3823. yyb77 = yyj77 > l
  3824. } else {
  3825. yyb77 = r.CheckBreak()
  3826. }
  3827. if yyb77 {
  3828. r.ReadArrayEnd()
  3829. return
  3830. }
  3831. r.ReadArrayElem()
  3832. if r.TryDecodeAsNil() {
  3833. x.I16 = 0
  3834. } else {
  3835. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3836. }
  3837. yyj77++
  3838. if yyhl77 {
  3839. yyb77 = yyj77 > l
  3840. } else {
  3841. yyb77 = r.CheckBreak()
  3842. }
  3843. if yyb77 {
  3844. r.ReadArrayEnd()
  3845. return
  3846. }
  3847. r.ReadArrayElem()
  3848. if r.TryDecodeAsNil() {
  3849. x.I8 = 0
  3850. } else {
  3851. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3852. }
  3853. yyj77++
  3854. if yyhl77 {
  3855. yyb77 = yyj77 > l
  3856. } else {
  3857. yyb77 = r.CheckBreak()
  3858. }
  3859. if yyb77 {
  3860. r.ReadArrayEnd()
  3861. return
  3862. }
  3863. r.ReadArrayElem()
  3864. if r.TryDecodeAsNil() {
  3865. x.I64n = 0
  3866. } else {
  3867. x.I64n = (int64)(r.DecodeInt64())
  3868. }
  3869. yyj77++
  3870. if yyhl77 {
  3871. yyb77 = yyj77 > l
  3872. } else {
  3873. yyb77 = r.CheckBreak()
  3874. }
  3875. if yyb77 {
  3876. r.ReadArrayEnd()
  3877. return
  3878. }
  3879. r.ReadArrayElem()
  3880. if r.TryDecodeAsNil() {
  3881. x.I32n = 0
  3882. } else {
  3883. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3884. }
  3885. yyj77++
  3886. if yyhl77 {
  3887. yyb77 = yyj77 > l
  3888. } else {
  3889. yyb77 = r.CheckBreak()
  3890. }
  3891. if yyb77 {
  3892. r.ReadArrayEnd()
  3893. return
  3894. }
  3895. r.ReadArrayElem()
  3896. if r.TryDecodeAsNil() {
  3897. x.I16n = 0
  3898. } else {
  3899. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3900. }
  3901. yyj77++
  3902. if yyhl77 {
  3903. yyb77 = yyj77 > l
  3904. } else {
  3905. yyb77 = r.CheckBreak()
  3906. }
  3907. if yyb77 {
  3908. r.ReadArrayEnd()
  3909. return
  3910. }
  3911. r.ReadArrayElem()
  3912. if r.TryDecodeAsNil() {
  3913. x.I8n = 0
  3914. } else {
  3915. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3916. }
  3917. yyj77++
  3918. if yyhl77 {
  3919. yyb77 = yyj77 > l
  3920. } else {
  3921. yyb77 = r.CheckBreak()
  3922. }
  3923. if yyb77 {
  3924. r.ReadArrayEnd()
  3925. return
  3926. }
  3927. r.ReadArrayElem()
  3928. if r.TryDecodeAsNil() {
  3929. x.Ui64 = 0
  3930. } else {
  3931. x.Ui64 = (uint64)(r.DecodeUint64())
  3932. }
  3933. yyj77++
  3934. if yyhl77 {
  3935. yyb77 = yyj77 > l
  3936. } else {
  3937. yyb77 = r.CheckBreak()
  3938. }
  3939. if yyb77 {
  3940. r.ReadArrayEnd()
  3941. return
  3942. }
  3943. r.ReadArrayElem()
  3944. if r.TryDecodeAsNil() {
  3945. x.Ui32 = 0
  3946. } else {
  3947. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3948. }
  3949. yyj77++
  3950. if yyhl77 {
  3951. yyb77 = yyj77 > l
  3952. } else {
  3953. yyb77 = r.CheckBreak()
  3954. }
  3955. if yyb77 {
  3956. r.ReadArrayEnd()
  3957. return
  3958. }
  3959. r.ReadArrayElem()
  3960. if r.TryDecodeAsNil() {
  3961. x.Ui16 = 0
  3962. } else {
  3963. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3964. }
  3965. yyj77++
  3966. if yyhl77 {
  3967. yyb77 = yyj77 > l
  3968. } else {
  3969. yyb77 = r.CheckBreak()
  3970. }
  3971. if yyb77 {
  3972. r.ReadArrayEnd()
  3973. return
  3974. }
  3975. r.ReadArrayElem()
  3976. if r.TryDecodeAsNil() {
  3977. x.Ui8 = 0
  3978. } else {
  3979. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3980. }
  3981. yyj77++
  3982. if yyhl77 {
  3983. yyb77 = yyj77 > l
  3984. } else {
  3985. yyb77 = r.CheckBreak()
  3986. }
  3987. if yyb77 {
  3988. r.ReadArrayEnd()
  3989. return
  3990. }
  3991. r.ReadArrayElem()
  3992. if r.TryDecodeAsNil() {
  3993. x.F64 = 0
  3994. } else {
  3995. x.F64 = (float64)(r.DecodeFloat64())
  3996. }
  3997. yyj77++
  3998. if yyhl77 {
  3999. yyb77 = yyj77 > l
  4000. } else {
  4001. yyb77 = r.CheckBreak()
  4002. }
  4003. if yyb77 {
  4004. r.ReadArrayEnd()
  4005. return
  4006. }
  4007. r.ReadArrayElem()
  4008. if r.TryDecodeAsNil() {
  4009. x.F32 = 0
  4010. } else {
  4011. x.F32 = (float32)(r.DecodeFloat32As64())
  4012. }
  4013. yyj77++
  4014. if yyhl77 {
  4015. yyb77 = yyj77 > l
  4016. } else {
  4017. yyb77 = r.CheckBreak()
  4018. }
  4019. if yyb77 {
  4020. r.ReadArrayEnd()
  4021. return
  4022. }
  4023. r.ReadArrayElem()
  4024. if r.TryDecodeAsNil() {
  4025. x.B = false
  4026. } else {
  4027. x.B = (bool)(r.DecodeBool())
  4028. }
  4029. yyj77++
  4030. if yyhl77 {
  4031. yyb77 = yyj77 > l
  4032. } else {
  4033. yyb77 = r.CheckBreak()
  4034. }
  4035. if yyb77 {
  4036. r.ReadArrayEnd()
  4037. return
  4038. }
  4039. r.ReadArrayElem()
  4040. if r.TryDecodeAsNil() {
  4041. x.By = 0
  4042. } else {
  4043. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4044. }
  4045. yyj77++
  4046. if yyhl77 {
  4047. yyb77 = yyj77 > l
  4048. } else {
  4049. yyb77 = r.CheckBreak()
  4050. }
  4051. if yyb77 {
  4052. r.ReadArrayEnd()
  4053. return
  4054. }
  4055. r.ReadArrayElem()
  4056. if r.TryDecodeAsNil() {
  4057. x.Sslice = nil
  4058. } else {
  4059. if false {
  4060. } else {
  4061. z.F.DecSliceStringX(&x.Sslice, d)
  4062. }
  4063. }
  4064. yyj77++
  4065. if yyhl77 {
  4066. yyb77 = yyj77 > l
  4067. } else {
  4068. yyb77 = r.CheckBreak()
  4069. }
  4070. if yyb77 {
  4071. r.ReadArrayEnd()
  4072. return
  4073. }
  4074. r.ReadArrayElem()
  4075. if r.TryDecodeAsNil() {
  4076. x.I64slice = nil
  4077. } else {
  4078. if false {
  4079. } else {
  4080. z.F.DecSliceInt64X(&x.I64slice, d)
  4081. }
  4082. }
  4083. yyj77++
  4084. if yyhl77 {
  4085. yyb77 = yyj77 > l
  4086. } else {
  4087. yyb77 = r.CheckBreak()
  4088. }
  4089. if yyb77 {
  4090. r.ReadArrayEnd()
  4091. return
  4092. }
  4093. r.ReadArrayElem()
  4094. if r.TryDecodeAsNil() {
  4095. x.I16slice = nil
  4096. } else {
  4097. if false {
  4098. } else {
  4099. z.F.DecSliceInt16X(&x.I16slice, d)
  4100. }
  4101. }
  4102. yyj77++
  4103. if yyhl77 {
  4104. yyb77 = yyj77 > l
  4105. } else {
  4106. yyb77 = r.CheckBreak()
  4107. }
  4108. if yyb77 {
  4109. r.ReadArrayEnd()
  4110. return
  4111. }
  4112. r.ReadArrayElem()
  4113. if r.TryDecodeAsNil() {
  4114. x.Ui64slice = nil
  4115. } else {
  4116. if false {
  4117. } else {
  4118. z.F.DecSliceUint64X(&x.Ui64slice, d)
  4119. }
  4120. }
  4121. yyj77++
  4122. if yyhl77 {
  4123. yyb77 = yyj77 > l
  4124. } else {
  4125. yyb77 = r.CheckBreak()
  4126. }
  4127. if yyb77 {
  4128. r.ReadArrayEnd()
  4129. return
  4130. }
  4131. r.ReadArrayElem()
  4132. if r.TryDecodeAsNil() {
  4133. x.Ui8slice = nil
  4134. } else {
  4135. if false {
  4136. } else {
  4137. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  4138. }
  4139. }
  4140. yyj77++
  4141. if yyhl77 {
  4142. yyb77 = yyj77 > l
  4143. } else {
  4144. yyb77 = r.CheckBreak()
  4145. }
  4146. if yyb77 {
  4147. r.ReadArrayEnd()
  4148. return
  4149. }
  4150. r.ReadArrayElem()
  4151. if r.TryDecodeAsNil() {
  4152. x.Bslice = nil
  4153. } else {
  4154. if false {
  4155. } else {
  4156. z.F.DecSliceBoolX(&x.Bslice, d)
  4157. }
  4158. }
  4159. yyj77++
  4160. if yyhl77 {
  4161. yyb77 = yyj77 > l
  4162. } else {
  4163. yyb77 = r.CheckBreak()
  4164. }
  4165. if yyb77 {
  4166. r.ReadArrayEnd()
  4167. return
  4168. }
  4169. r.ReadArrayElem()
  4170. if r.TryDecodeAsNil() {
  4171. x.Byslice = nil
  4172. } else {
  4173. if false {
  4174. } else {
  4175. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  4176. }
  4177. }
  4178. yyj77++
  4179. if yyhl77 {
  4180. yyb77 = yyj77 > l
  4181. } else {
  4182. yyb77 = r.CheckBreak()
  4183. }
  4184. if yyb77 {
  4185. r.ReadArrayEnd()
  4186. return
  4187. }
  4188. r.ReadArrayElem()
  4189. if r.TryDecodeAsNil() {
  4190. x.Iptrslice = nil
  4191. } else {
  4192. if false {
  4193. } else {
  4194. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  4195. }
  4196. }
  4197. yyj77++
  4198. if yyhl77 {
  4199. yyb77 = yyj77 > l
  4200. } else {
  4201. yyb77 = r.CheckBreak()
  4202. }
  4203. if yyb77 {
  4204. r.ReadArrayEnd()
  4205. return
  4206. }
  4207. r.ReadArrayElem()
  4208. if r.TryDecodeAsNil() {
  4209. x.WrapSliceInt64 = nil
  4210. } else {
  4211. x.WrapSliceInt64.CodecDecodeSelf(d)
  4212. }
  4213. yyj77++
  4214. if yyhl77 {
  4215. yyb77 = yyj77 > l
  4216. } else {
  4217. yyb77 = r.CheckBreak()
  4218. }
  4219. if yyb77 {
  4220. r.ReadArrayEnd()
  4221. return
  4222. }
  4223. r.ReadArrayElem()
  4224. if r.TryDecodeAsNil() {
  4225. x.WrapSliceString = nil
  4226. } else {
  4227. x.WrapSliceString.CodecDecodeSelf(d)
  4228. }
  4229. yyj77++
  4230. if yyhl77 {
  4231. yyb77 = yyj77 > l
  4232. } else {
  4233. yyb77 = r.CheckBreak()
  4234. }
  4235. if yyb77 {
  4236. r.ReadArrayEnd()
  4237. return
  4238. }
  4239. r.ReadArrayElem()
  4240. if r.TryDecodeAsNil() {
  4241. x.Msi64 = nil
  4242. } else {
  4243. if false {
  4244. } else {
  4245. z.F.DecMapStringInt64X(&x.Msi64, d)
  4246. }
  4247. }
  4248. yyj77++
  4249. if yyhl77 {
  4250. yyb77 = yyj77 > l
  4251. } else {
  4252. yyb77 = r.CheckBreak()
  4253. }
  4254. if yyb77 {
  4255. r.ReadArrayEnd()
  4256. return
  4257. }
  4258. r.ReadArrayElem()
  4259. if r.TryDecodeAsNil() {
  4260. x.Simplef = testSimpleFields{}
  4261. } else {
  4262. x.Simplef.CodecDecodeSelf(d)
  4263. }
  4264. yyj77++
  4265. if yyhl77 {
  4266. yyb77 = yyj77 > l
  4267. } else {
  4268. yyb77 = r.CheckBreak()
  4269. }
  4270. if yyb77 {
  4271. r.ReadArrayEnd()
  4272. return
  4273. }
  4274. r.ReadArrayElem()
  4275. if r.TryDecodeAsNil() {
  4276. x.SstrUi64T = nil
  4277. } else {
  4278. if false {
  4279. } else {
  4280. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  4281. }
  4282. }
  4283. yyj77++
  4284. if yyhl77 {
  4285. yyb77 = yyj77 > l
  4286. } else {
  4287. yyb77 = r.CheckBreak()
  4288. }
  4289. if yyb77 {
  4290. r.ReadArrayEnd()
  4291. return
  4292. }
  4293. r.ReadArrayElem()
  4294. if r.TryDecodeAsNil() {
  4295. x.AnonInTestStruc.AS = ""
  4296. } else {
  4297. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  4298. }
  4299. yyj77++
  4300. if yyhl77 {
  4301. yyb77 = yyj77 > l
  4302. } else {
  4303. yyb77 = r.CheckBreak()
  4304. }
  4305. if yyb77 {
  4306. r.ReadArrayEnd()
  4307. return
  4308. }
  4309. r.ReadArrayElem()
  4310. if r.TryDecodeAsNil() {
  4311. x.AnonInTestStruc.AI64 = 0
  4312. } else {
  4313. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4314. }
  4315. yyj77++
  4316. if yyhl77 {
  4317. yyb77 = yyj77 > l
  4318. } else {
  4319. yyb77 = r.CheckBreak()
  4320. }
  4321. if yyb77 {
  4322. r.ReadArrayEnd()
  4323. return
  4324. }
  4325. r.ReadArrayElem()
  4326. if r.TryDecodeAsNil() {
  4327. x.AnonInTestStruc.AI16 = 0
  4328. } else {
  4329. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4330. }
  4331. yyj77++
  4332. if yyhl77 {
  4333. yyb77 = yyj77 > l
  4334. } else {
  4335. yyb77 = r.CheckBreak()
  4336. }
  4337. if yyb77 {
  4338. r.ReadArrayEnd()
  4339. return
  4340. }
  4341. r.ReadArrayElem()
  4342. if r.TryDecodeAsNil() {
  4343. x.AnonInTestStruc.AUi64 = 0
  4344. } else {
  4345. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4346. }
  4347. yyj77++
  4348. if yyhl77 {
  4349. yyb77 = yyj77 > l
  4350. } else {
  4351. yyb77 = r.CheckBreak()
  4352. }
  4353. if yyb77 {
  4354. r.ReadArrayEnd()
  4355. return
  4356. }
  4357. r.ReadArrayElem()
  4358. if r.TryDecodeAsNil() {
  4359. x.AnonInTestStruc.ASslice = nil
  4360. } else {
  4361. if false {
  4362. } else {
  4363. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  4364. }
  4365. }
  4366. yyj77++
  4367. if yyhl77 {
  4368. yyb77 = yyj77 > l
  4369. } else {
  4370. yyb77 = r.CheckBreak()
  4371. }
  4372. if yyb77 {
  4373. r.ReadArrayEnd()
  4374. return
  4375. }
  4376. r.ReadArrayElem()
  4377. if r.TryDecodeAsNil() {
  4378. x.AnonInTestStruc.AI64slice = nil
  4379. } else {
  4380. if false {
  4381. } else {
  4382. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  4383. }
  4384. }
  4385. yyj77++
  4386. if yyhl77 {
  4387. yyb77 = yyj77 > l
  4388. } else {
  4389. yyb77 = r.CheckBreak()
  4390. }
  4391. if yyb77 {
  4392. r.ReadArrayEnd()
  4393. return
  4394. }
  4395. r.ReadArrayElem()
  4396. if r.TryDecodeAsNil() {
  4397. x.AnonInTestStruc.AUi64slice = nil
  4398. } else {
  4399. if false {
  4400. } else {
  4401. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  4402. }
  4403. }
  4404. yyj77++
  4405. if yyhl77 {
  4406. yyb77 = yyj77 > l
  4407. } else {
  4408. yyb77 = r.CheckBreak()
  4409. }
  4410. if yyb77 {
  4411. r.ReadArrayEnd()
  4412. return
  4413. }
  4414. r.ReadArrayElem()
  4415. if r.TryDecodeAsNil() {
  4416. x.AnonInTestStruc.AF64slice = nil
  4417. } else {
  4418. if false {
  4419. } else {
  4420. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  4421. }
  4422. }
  4423. yyj77++
  4424. if yyhl77 {
  4425. yyb77 = yyj77 > l
  4426. } else {
  4427. yyb77 = r.CheckBreak()
  4428. }
  4429. if yyb77 {
  4430. r.ReadArrayEnd()
  4431. return
  4432. }
  4433. r.ReadArrayElem()
  4434. if r.TryDecodeAsNil() {
  4435. x.AnonInTestStruc.AF32slice = nil
  4436. } else {
  4437. if false {
  4438. } else {
  4439. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  4440. }
  4441. }
  4442. yyj77++
  4443. if yyhl77 {
  4444. yyb77 = yyj77 > l
  4445. } else {
  4446. yyb77 = r.CheckBreak()
  4447. }
  4448. if yyb77 {
  4449. r.ReadArrayEnd()
  4450. return
  4451. }
  4452. r.ReadArrayElem()
  4453. if r.TryDecodeAsNil() {
  4454. x.AnonInTestStruc.AMSU16 = nil
  4455. } else {
  4456. if false {
  4457. } else {
  4458. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  4459. }
  4460. }
  4461. yyj77++
  4462. if yyhl77 {
  4463. yyb77 = yyj77 > l
  4464. } else {
  4465. yyb77 = r.CheckBreak()
  4466. }
  4467. if yyb77 {
  4468. r.ReadArrayEnd()
  4469. return
  4470. }
  4471. r.ReadArrayElem()
  4472. if r.TryDecodeAsNil() {
  4473. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  4474. } else {
  4475. if false {
  4476. } else {
  4477. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  4478. }
  4479. }
  4480. yyj77++
  4481. if yyhl77 {
  4482. yyb77 = yyj77 > l
  4483. } else {
  4484. yyb77 = r.CheckBreak()
  4485. }
  4486. if yyb77 {
  4487. r.ReadArrayEnd()
  4488. return
  4489. }
  4490. r.ReadArrayElem()
  4491. if r.TryDecodeAsNil() {
  4492. x.AnonInTestStruc.A164slice0 = nil
  4493. } else {
  4494. if false {
  4495. } else {
  4496. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  4497. }
  4498. }
  4499. yyj77++
  4500. if yyhl77 {
  4501. yyb77 = yyj77 > l
  4502. } else {
  4503. yyb77 = r.CheckBreak()
  4504. }
  4505. if yyb77 {
  4506. r.ReadArrayEnd()
  4507. return
  4508. }
  4509. r.ReadArrayElem()
  4510. if r.TryDecodeAsNil() {
  4511. x.AnonInTestStruc.AUi64sliceN = nil
  4512. } else {
  4513. if false {
  4514. } else {
  4515. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  4516. }
  4517. }
  4518. yyj77++
  4519. if yyhl77 {
  4520. yyb77 = yyj77 > l
  4521. } else {
  4522. yyb77 = r.CheckBreak()
  4523. }
  4524. if yyb77 {
  4525. r.ReadArrayEnd()
  4526. return
  4527. }
  4528. r.ReadArrayElem()
  4529. if r.TryDecodeAsNil() {
  4530. x.AnonInTestStruc.AMSU16N = nil
  4531. } else {
  4532. if false {
  4533. } else {
  4534. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  4535. }
  4536. }
  4537. yyj77++
  4538. if yyhl77 {
  4539. yyb77 = yyj77 > l
  4540. } else {
  4541. yyb77 = r.CheckBreak()
  4542. }
  4543. if yyb77 {
  4544. r.ReadArrayEnd()
  4545. return
  4546. }
  4547. r.ReadArrayElem()
  4548. if r.TryDecodeAsNil() {
  4549. x.AnonInTestStruc.AMSU16E = nil
  4550. } else {
  4551. if false {
  4552. } else {
  4553. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  4554. }
  4555. }
  4556. yyj77++
  4557. if yyhl77 {
  4558. yyb77 = yyj77 > l
  4559. } else {
  4560. yyb77 = r.CheckBreak()
  4561. }
  4562. if yyb77 {
  4563. r.ReadArrayEnd()
  4564. return
  4565. }
  4566. r.ReadArrayElem()
  4567. if r.TryDecodeAsNil() {
  4568. x.NotAnon = AnonInTestStruc{}
  4569. } else {
  4570. x.NotAnon.CodecDecodeSelf(d)
  4571. }
  4572. yyj77++
  4573. if yyhl77 {
  4574. yyb77 = yyj77 > l
  4575. } else {
  4576. yyb77 = r.CheckBreak()
  4577. }
  4578. if yyb77 {
  4579. r.ReadArrayEnd()
  4580. return
  4581. }
  4582. r.ReadArrayElem()
  4583. if r.TryDecodeAsNil() {
  4584. x.Nmap = nil
  4585. } else {
  4586. if false {
  4587. } else {
  4588. z.F.DecMapStringBoolX(&x.Nmap, d)
  4589. }
  4590. }
  4591. yyj77++
  4592. if yyhl77 {
  4593. yyb77 = yyj77 > l
  4594. } else {
  4595. yyb77 = r.CheckBreak()
  4596. }
  4597. if yyb77 {
  4598. r.ReadArrayEnd()
  4599. return
  4600. }
  4601. r.ReadArrayElem()
  4602. if r.TryDecodeAsNil() {
  4603. x.Nslice = nil
  4604. } else {
  4605. if false {
  4606. } else {
  4607. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  4608. }
  4609. }
  4610. yyj77++
  4611. if yyhl77 {
  4612. yyb77 = yyj77 > l
  4613. } else {
  4614. yyb77 = r.CheckBreak()
  4615. }
  4616. if yyb77 {
  4617. r.ReadArrayEnd()
  4618. return
  4619. }
  4620. r.ReadArrayElem()
  4621. if r.TryDecodeAsNil() {
  4622. if true && x.Nint64 != nil {
  4623. x.Nint64 = nil
  4624. }
  4625. } else {
  4626. if x.Nint64 == nil {
  4627. x.Nint64 = new(int64)
  4628. }
  4629. if false {
  4630. } else {
  4631. *x.Nint64 = (int64)(r.DecodeInt64())
  4632. }
  4633. }
  4634. for {
  4635. yyj77++
  4636. if yyhl77 {
  4637. yyb77 = yyj77 > l
  4638. } else {
  4639. yyb77 = r.CheckBreak()
  4640. }
  4641. if yyb77 {
  4642. break
  4643. }
  4644. r.ReadArrayElem()
  4645. z.DecStructFieldNotFound(yyj77-1, "")
  4646. }
  4647. r.ReadArrayEnd()
  4648. }
  4649. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  4650. var h codecSelfer19780
  4651. z, r := GenHelperEncoder(e)
  4652. _, _, _ = h, z, r
  4653. if x == nil {
  4654. r.EncodeNil()
  4655. } else {
  4656. if false {
  4657. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  4658. z.EncExtension(x, yyxt1)
  4659. } else {
  4660. yysep2 := !z.EncBinary()
  4661. yy2arr2 := z.EncBasicHandle().StructToArray
  4662. _, _ = yysep2, yy2arr2
  4663. const yyr2 bool = false // struct tag has 'toArray'
  4664. if yyr2 || yy2arr2 {
  4665. r.WriteArrayStart(53)
  4666. } else {
  4667. r.WriteMapStart(53)
  4668. }
  4669. if yyr2 || yy2arr2 {
  4670. r.WriteArrayElem()
  4671. if false {
  4672. } else {
  4673. if z.EncBasicHandle().StringToRaw {
  4674. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  4675. } else {
  4676. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  4677. }
  4678. }
  4679. } else {
  4680. r.WriteMapElemKey()
  4681. if z.IsJSONHandle() {
  4682. z.WriteStr("\"S\"")
  4683. } else {
  4684. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  4685. }
  4686. r.WriteMapElemValue()
  4687. if false {
  4688. } else {
  4689. if z.EncBasicHandle().StringToRaw {
  4690. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  4691. } else {
  4692. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  4693. }
  4694. }
  4695. }
  4696. if yyr2 || yy2arr2 {
  4697. r.WriteArrayElem()
  4698. if false {
  4699. } else {
  4700. r.EncodeInt(int64(x.TestStrucCommon.I64))
  4701. }
  4702. } else {
  4703. r.WriteMapElemKey()
  4704. if z.IsJSONHandle() {
  4705. z.WriteStr("\"I64\"")
  4706. } else {
  4707. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  4708. }
  4709. r.WriteMapElemValue()
  4710. if false {
  4711. } else {
  4712. r.EncodeInt(int64(x.TestStrucCommon.I64))
  4713. }
  4714. }
  4715. if yyr2 || yy2arr2 {
  4716. r.WriteArrayElem()
  4717. if false {
  4718. } else {
  4719. r.EncodeInt(int64(x.TestStrucCommon.I32))
  4720. }
  4721. } else {
  4722. r.WriteMapElemKey()
  4723. if z.IsJSONHandle() {
  4724. z.WriteStr("\"I32\"")
  4725. } else {
  4726. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  4727. }
  4728. r.WriteMapElemValue()
  4729. if false {
  4730. } else {
  4731. r.EncodeInt(int64(x.TestStrucCommon.I32))
  4732. }
  4733. }
  4734. if yyr2 || yy2arr2 {
  4735. r.WriteArrayElem()
  4736. if false {
  4737. } else {
  4738. r.EncodeInt(int64(x.TestStrucCommon.I16))
  4739. }
  4740. } else {
  4741. r.WriteMapElemKey()
  4742. if z.IsJSONHandle() {
  4743. z.WriteStr("\"I16\"")
  4744. } else {
  4745. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  4746. }
  4747. r.WriteMapElemValue()
  4748. if false {
  4749. } else {
  4750. r.EncodeInt(int64(x.TestStrucCommon.I16))
  4751. }
  4752. }
  4753. if yyr2 || yy2arr2 {
  4754. r.WriteArrayElem()
  4755. if false {
  4756. } else {
  4757. r.EncodeInt(int64(x.TestStrucCommon.I8))
  4758. }
  4759. } else {
  4760. r.WriteMapElemKey()
  4761. if z.IsJSONHandle() {
  4762. z.WriteStr("\"I8\"")
  4763. } else {
  4764. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  4765. }
  4766. r.WriteMapElemValue()
  4767. if false {
  4768. } else {
  4769. r.EncodeInt(int64(x.TestStrucCommon.I8))
  4770. }
  4771. }
  4772. if yyr2 || yy2arr2 {
  4773. r.WriteArrayElem()
  4774. if false {
  4775. } else {
  4776. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  4777. }
  4778. } else {
  4779. r.WriteMapElemKey()
  4780. if z.IsJSONHandle() {
  4781. z.WriteStr("\"I64n\"")
  4782. } else {
  4783. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  4784. }
  4785. r.WriteMapElemValue()
  4786. if false {
  4787. } else {
  4788. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  4789. }
  4790. }
  4791. if yyr2 || yy2arr2 {
  4792. r.WriteArrayElem()
  4793. if false {
  4794. } else {
  4795. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  4796. }
  4797. } else {
  4798. r.WriteMapElemKey()
  4799. if z.IsJSONHandle() {
  4800. z.WriteStr("\"I32n\"")
  4801. } else {
  4802. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  4803. }
  4804. r.WriteMapElemValue()
  4805. if false {
  4806. } else {
  4807. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  4808. }
  4809. }
  4810. if yyr2 || yy2arr2 {
  4811. r.WriteArrayElem()
  4812. if false {
  4813. } else {
  4814. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  4815. }
  4816. } else {
  4817. r.WriteMapElemKey()
  4818. if z.IsJSONHandle() {
  4819. z.WriteStr("\"I16n\"")
  4820. } else {
  4821. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  4822. }
  4823. r.WriteMapElemValue()
  4824. if false {
  4825. } else {
  4826. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  4827. }
  4828. }
  4829. if yyr2 || yy2arr2 {
  4830. r.WriteArrayElem()
  4831. if false {
  4832. } else {
  4833. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  4834. }
  4835. } else {
  4836. r.WriteMapElemKey()
  4837. if z.IsJSONHandle() {
  4838. z.WriteStr("\"I8n\"")
  4839. } else {
  4840. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  4841. }
  4842. r.WriteMapElemValue()
  4843. if false {
  4844. } else {
  4845. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  4846. }
  4847. }
  4848. if yyr2 || yy2arr2 {
  4849. r.WriteArrayElem()
  4850. if false {
  4851. } else {
  4852. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  4853. }
  4854. } else {
  4855. r.WriteMapElemKey()
  4856. if z.IsJSONHandle() {
  4857. z.WriteStr("\"Ui64\"")
  4858. } else {
  4859. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  4860. }
  4861. r.WriteMapElemValue()
  4862. if false {
  4863. } else {
  4864. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  4865. }
  4866. }
  4867. if yyr2 || yy2arr2 {
  4868. r.WriteArrayElem()
  4869. if false {
  4870. } else {
  4871. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  4872. }
  4873. } else {
  4874. r.WriteMapElemKey()
  4875. if z.IsJSONHandle() {
  4876. z.WriteStr("\"Ui32\"")
  4877. } else {
  4878. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  4879. }
  4880. r.WriteMapElemValue()
  4881. if false {
  4882. } else {
  4883. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  4884. }
  4885. }
  4886. if yyr2 || yy2arr2 {
  4887. r.WriteArrayElem()
  4888. if false {
  4889. } else {
  4890. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  4891. }
  4892. } else {
  4893. r.WriteMapElemKey()
  4894. if z.IsJSONHandle() {
  4895. z.WriteStr("\"Ui16\"")
  4896. } else {
  4897. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  4898. }
  4899. r.WriteMapElemValue()
  4900. if false {
  4901. } else {
  4902. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  4903. }
  4904. }
  4905. if yyr2 || yy2arr2 {
  4906. r.WriteArrayElem()
  4907. if false {
  4908. } else {
  4909. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  4910. }
  4911. } else {
  4912. r.WriteMapElemKey()
  4913. if z.IsJSONHandle() {
  4914. z.WriteStr("\"Ui8\"")
  4915. } else {
  4916. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  4917. }
  4918. r.WriteMapElemValue()
  4919. if false {
  4920. } else {
  4921. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  4922. }
  4923. }
  4924. if yyr2 || yy2arr2 {
  4925. r.WriteArrayElem()
  4926. if false {
  4927. } else {
  4928. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  4929. }
  4930. } else {
  4931. r.WriteMapElemKey()
  4932. if z.IsJSONHandle() {
  4933. z.WriteStr("\"F64\"")
  4934. } else {
  4935. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  4936. }
  4937. r.WriteMapElemValue()
  4938. if false {
  4939. } else {
  4940. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  4941. }
  4942. }
  4943. if yyr2 || yy2arr2 {
  4944. r.WriteArrayElem()
  4945. if false {
  4946. } else {
  4947. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  4948. }
  4949. } else {
  4950. r.WriteMapElemKey()
  4951. if z.IsJSONHandle() {
  4952. z.WriteStr("\"F32\"")
  4953. } else {
  4954. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  4955. }
  4956. r.WriteMapElemValue()
  4957. if false {
  4958. } else {
  4959. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  4960. }
  4961. }
  4962. if yyr2 || yy2arr2 {
  4963. r.WriteArrayElem()
  4964. if false {
  4965. } else {
  4966. r.EncodeBool(bool(x.TestStrucCommon.B))
  4967. }
  4968. } else {
  4969. r.WriteMapElemKey()
  4970. if z.IsJSONHandle() {
  4971. z.WriteStr("\"B\"")
  4972. } else {
  4973. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  4974. }
  4975. r.WriteMapElemValue()
  4976. if false {
  4977. } else {
  4978. r.EncodeBool(bool(x.TestStrucCommon.B))
  4979. }
  4980. }
  4981. if yyr2 || yy2arr2 {
  4982. r.WriteArrayElem()
  4983. if false {
  4984. } else {
  4985. r.EncodeUint(uint64(x.TestStrucCommon.By))
  4986. }
  4987. } else {
  4988. r.WriteMapElemKey()
  4989. if z.IsJSONHandle() {
  4990. z.WriteStr("\"By\"")
  4991. } else {
  4992. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  4993. }
  4994. r.WriteMapElemValue()
  4995. if false {
  4996. } else {
  4997. r.EncodeUint(uint64(x.TestStrucCommon.By))
  4998. }
  4999. }
  5000. if yyr2 || yy2arr2 {
  5001. r.WriteArrayElem()
  5002. if x.TestStrucCommon.Sslice == nil {
  5003. r.EncodeNil()
  5004. } else {
  5005. if false {
  5006. } else {
  5007. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  5008. }
  5009. }
  5010. } else {
  5011. r.WriteMapElemKey()
  5012. if z.IsJSONHandle() {
  5013. z.WriteStr("\"Sslice\"")
  5014. } else {
  5015. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  5016. }
  5017. r.WriteMapElemValue()
  5018. if x.TestStrucCommon.Sslice == nil {
  5019. r.EncodeNil()
  5020. } else {
  5021. if false {
  5022. } else {
  5023. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  5024. }
  5025. }
  5026. }
  5027. if yyr2 || yy2arr2 {
  5028. r.WriteArrayElem()
  5029. if x.TestStrucCommon.I64slice == nil {
  5030. r.EncodeNil()
  5031. } else {
  5032. if false {
  5033. } else {
  5034. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  5035. }
  5036. }
  5037. } else {
  5038. r.WriteMapElemKey()
  5039. if z.IsJSONHandle() {
  5040. z.WriteStr("\"I64slice\"")
  5041. } else {
  5042. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  5043. }
  5044. r.WriteMapElemValue()
  5045. if x.TestStrucCommon.I64slice == nil {
  5046. r.EncodeNil()
  5047. } else {
  5048. if false {
  5049. } else {
  5050. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  5051. }
  5052. }
  5053. }
  5054. if yyr2 || yy2arr2 {
  5055. r.WriteArrayElem()
  5056. if x.TestStrucCommon.I16slice == nil {
  5057. r.EncodeNil()
  5058. } else {
  5059. if false {
  5060. } else {
  5061. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  5062. }
  5063. }
  5064. } else {
  5065. r.WriteMapElemKey()
  5066. if z.IsJSONHandle() {
  5067. z.WriteStr("\"I16slice\"")
  5068. } else {
  5069. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  5070. }
  5071. r.WriteMapElemValue()
  5072. if x.TestStrucCommon.I16slice == nil {
  5073. r.EncodeNil()
  5074. } else {
  5075. if false {
  5076. } else {
  5077. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  5078. }
  5079. }
  5080. }
  5081. if yyr2 || yy2arr2 {
  5082. r.WriteArrayElem()
  5083. if x.TestStrucCommon.Ui64slice == nil {
  5084. r.EncodeNil()
  5085. } else {
  5086. if false {
  5087. } else {
  5088. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  5089. }
  5090. }
  5091. } else {
  5092. r.WriteMapElemKey()
  5093. if z.IsJSONHandle() {
  5094. z.WriteStr("\"Ui64slice\"")
  5095. } else {
  5096. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  5097. }
  5098. r.WriteMapElemValue()
  5099. if x.TestStrucCommon.Ui64slice == nil {
  5100. r.EncodeNil()
  5101. } else {
  5102. if false {
  5103. } else {
  5104. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  5105. }
  5106. }
  5107. }
  5108. if yyr2 || yy2arr2 {
  5109. r.WriteArrayElem()
  5110. if x.TestStrucCommon.Ui8slice == nil {
  5111. r.EncodeNil()
  5112. } else {
  5113. if false {
  5114. } else {
  5115. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  5116. }
  5117. }
  5118. } else {
  5119. r.WriteMapElemKey()
  5120. if z.IsJSONHandle() {
  5121. z.WriteStr("\"Ui8slice\"")
  5122. } else {
  5123. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  5124. }
  5125. r.WriteMapElemValue()
  5126. if x.TestStrucCommon.Ui8slice == nil {
  5127. r.EncodeNil()
  5128. } else {
  5129. if false {
  5130. } else {
  5131. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  5132. }
  5133. }
  5134. }
  5135. if yyr2 || yy2arr2 {
  5136. r.WriteArrayElem()
  5137. if x.TestStrucCommon.Bslice == nil {
  5138. r.EncodeNil()
  5139. } else {
  5140. if false {
  5141. } else {
  5142. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  5143. }
  5144. }
  5145. } else {
  5146. r.WriteMapElemKey()
  5147. if z.IsJSONHandle() {
  5148. z.WriteStr("\"Bslice\"")
  5149. } else {
  5150. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  5151. }
  5152. r.WriteMapElemValue()
  5153. if x.TestStrucCommon.Bslice == nil {
  5154. r.EncodeNil()
  5155. } else {
  5156. if false {
  5157. } else {
  5158. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  5159. }
  5160. }
  5161. }
  5162. if yyr2 || yy2arr2 {
  5163. r.WriteArrayElem()
  5164. if x.TestStrucCommon.Byslice == nil {
  5165. r.EncodeNil()
  5166. } else {
  5167. if false {
  5168. } else {
  5169. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  5170. }
  5171. }
  5172. } else {
  5173. r.WriteMapElemKey()
  5174. if z.IsJSONHandle() {
  5175. z.WriteStr("\"Byslice\"")
  5176. } else {
  5177. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  5178. }
  5179. r.WriteMapElemValue()
  5180. if x.TestStrucCommon.Byslice == nil {
  5181. r.EncodeNil()
  5182. } else {
  5183. if false {
  5184. } else {
  5185. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  5186. }
  5187. }
  5188. }
  5189. if yyr2 || yy2arr2 {
  5190. r.WriteArrayElem()
  5191. if x.TestStrucCommon.Iptrslice == nil {
  5192. r.EncodeNil()
  5193. } else {
  5194. if false {
  5195. } else {
  5196. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  5197. }
  5198. }
  5199. } else {
  5200. r.WriteMapElemKey()
  5201. if z.IsJSONHandle() {
  5202. z.WriteStr("\"Iptrslice\"")
  5203. } else {
  5204. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  5205. }
  5206. r.WriteMapElemValue()
  5207. if x.TestStrucCommon.Iptrslice == nil {
  5208. r.EncodeNil()
  5209. } else {
  5210. if false {
  5211. } else {
  5212. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  5213. }
  5214. }
  5215. }
  5216. if yyr2 || yy2arr2 {
  5217. r.WriteArrayElem()
  5218. if x.TestStrucCommon.WrapSliceInt64 == nil {
  5219. r.EncodeNil()
  5220. } else {
  5221. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  5222. }
  5223. } else {
  5224. r.WriteMapElemKey()
  5225. if z.IsJSONHandle() {
  5226. z.WriteStr("\"WrapSliceInt64\"")
  5227. } else {
  5228. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  5229. }
  5230. r.WriteMapElemValue()
  5231. if x.TestStrucCommon.WrapSliceInt64 == nil {
  5232. r.EncodeNil()
  5233. } else {
  5234. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  5235. }
  5236. }
  5237. if yyr2 || yy2arr2 {
  5238. r.WriteArrayElem()
  5239. if x.TestStrucCommon.WrapSliceString == nil {
  5240. r.EncodeNil()
  5241. } else {
  5242. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  5243. }
  5244. } else {
  5245. r.WriteMapElemKey()
  5246. if z.IsJSONHandle() {
  5247. z.WriteStr("\"WrapSliceString\"")
  5248. } else {
  5249. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  5250. }
  5251. r.WriteMapElemValue()
  5252. if x.TestStrucCommon.WrapSliceString == nil {
  5253. r.EncodeNil()
  5254. } else {
  5255. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  5256. }
  5257. }
  5258. if yyr2 || yy2arr2 {
  5259. r.WriteArrayElem()
  5260. if x.TestStrucCommon.Msi64 == nil {
  5261. r.EncodeNil()
  5262. } else {
  5263. if false {
  5264. } else {
  5265. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  5266. }
  5267. }
  5268. } else {
  5269. r.WriteMapElemKey()
  5270. if z.IsJSONHandle() {
  5271. z.WriteStr("\"Msi64\"")
  5272. } else {
  5273. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  5274. }
  5275. r.WriteMapElemValue()
  5276. if x.TestStrucCommon.Msi64 == nil {
  5277. r.EncodeNil()
  5278. } else {
  5279. if false {
  5280. } else {
  5281. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  5282. }
  5283. }
  5284. }
  5285. if yyr2 || yy2arr2 {
  5286. r.WriteArrayElem()
  5287. yy88 := &x.TestStrucCommon.Simplef
  5288. yy88.CodecEncodeSelf(e)
  5289. } else {
  5290. r.WriteMapElemKey()
  5291. if z.IsJSONHandle() {
  5292. z.WriteStr("\"Simplef\"")
  5293. } else {
  5294. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  5295. }
  5296. r.WriteMapElemValue()
  5297. yy90 := &x.TestStrucCommon.Simplef
  5298. yy90.CodecEncodeSelf(e)
  5299. }
  5300. if yyr2 || yy2arr2 {
  5301. r.WriteArrayElem()
  5302. if x.TestStrucCommon.SstrUi64T == nil {
  5303. r.EncodeNil()
  5304. } else {
  5305. if false {
  5306. } else {
  5307. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  5308. }
  5309. }
  5310. } else {
  5311. r.WriteMapElemKey()
  5312. if z.IsJSONHandle() {
  5313. z.WriteStr("\"SstrUi64T\"")
  5314. } else {
  5315. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  5316. }
  5317. r.WriteMapElemValue()
  5318. if x.TestStrucCommon.SstrUi64T == nil {
  5319. r.EncodeNil()
  5320. } else {
  5321. if false {
  5322. } else {
  5323. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  5324. }
  5325. }
  5326. }
  5327. if yyr2 || yy2arr2 {
  5328. r.WriteArrayElem()
  5329. if false {
  5330. } else {
  5331. if z.EncBasicHandle().StringToRaw {
  5332. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  5333. } else {
  5334. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  5335. }
  5336. }
  5337. } else {
  5338. r.WriteMapElemKey()
  5339. if z.IsJSONHandle() {
  5340. z.WriteStr("\"AS\"")
  5341. } else {
  5342. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  5343. }
  5344. r.WriteMapElemValue()
  5345. if false {
  5346. } else {
  5347. if z.EncBasicHandle().StringToRaw {
  5348. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  5349. } else {
  5350. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  5351. }
  5352. }
  5353. }
  5354. if yyr2 || yy2arr2 {
  5355. r.WriteArrayElem()
  5356. if false {
  5357. } else {
  5358. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  5359. }
  5360. } else {
  5361. r.WriteMapElemKey()
  5362. if z.IsJSONHandle() {
  5363. z.WriteStr("\"AI64\"")
  5364. } else {
  5365. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  5366. }
  5367. r.WriteMapElemValue()
  5368. if false {
  5369. } else {
  5370. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  5371. }
  5372. }
  5373. if yyr2 || yy2arr2 {
  5374. r.WriteArrayElem()
  5375. if false {
  5376. } else {
  5377. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  5378. }
  5379. } else {
  5380. r.WriteMapElemKey()
  5381. if z.IsJSONHandle() {
  5382. z.WriteStr("\"AI16\"")
  5383. } else {
  5384. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  5385. }
  5386. r.WriteMapElemValue()
  5387. if false {
  5388. } else {
  5389. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  5390. }
  5391. }
  5392. if yyr2 || yy2arr2 {
  5393. r.WriteArrayElem()
  5394. if false {
  5395. } else {
  5396. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  5397. }
  5398. } else {
  5399. r.WriteMapElemKey()
  5400. if z.IsJSONHandle() {
  5401. z.WriteStr("\"AUi64\"")
  5402. } else {
  5403. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  5404. }
  5405. r.WriteMapElemValue()
  5406. if false {
  5407. } else {
  5408. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  5409. }
  5410. }
  5411. if yyr2 || yy2arr2 {
  5412. r.WriteArrayElem()
  5413. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  5414. r.EncodeNil()
  5415. } else {
  5416. if false {
  5417. } else {
  5418. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  5419. }
  5420. }
  5421. } else {
  5422. r.WriteMapElemKey()
  5423. if z.IsJSONHandle() {
  5424. z.WriteStr("\"ASslice\"")
  5425. } else {
  5426. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  5427. }
  5428. r.WriteMapElemValue()
  5429. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  5430. r.EncodeNil()
  5431. } else {
  5432. if false {
  5433. } else {
  5434. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  5435. }
  5436. }
  5437. }
  5438. if yyr2 || yy2arr2 {
  5439. r.WriteArrayElem()
  5440. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  5441. r.EncodeNil()
  5442. } else {
  5443. if false {
  5444. } else {
  5445. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  5446. }
  5447. }
  5448. } else {
  5449. r.WriteMapElemKey()
  5450. if z.IsJSONHandle() {
  5451. z.WriteStr("\"AI64slice\"")
  5452. } else {
  5453. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  5454. }
  5455. r.WriteMapElemValue()
  5456. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  5457. r.EncodeNil()
  5458. } else {
  5459. if false {
  5460. } else {
  5461. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  5462. }
  5463. }
  5464. }
  5465. if yyr2 || yy2arr2 {
  5466. r.WriteArrayElem()
  5467. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  5468. r.EncodeNil()
  5469. } else {
  5470. if false {
  5471. } else {
  5472. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  5473. }
  5474. }
  5475. } else {
  5476. r.WriteMapElemKey()
  5477. if z.IsJSONHandle() {
  5478. z.WriteStr("\"AUi64slice\"")
  5479. } else {
  5480. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  5481. }
  5482. r.WriteMapElemValue()
  5483. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  5484. r.EncodeNil()
  5485. } else {
  5486. if false {
  5487. } else {
  5488. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  5489. }
  5490. }
  5491. }
  5492. if yyr2 || yy2arr2 {
  5493. r.WriteArrayElem()
  5494. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  5495. r.EncodeNil()
  5496. } else {
  5497. if false {
  5498. } else {
  5499. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  5500. }
  5501. }
  5502. } else {
  5503. r.WriteMapElemKey()
  5504. if z.IsJSONHandle() {
  5505. z.WriteStr("\"AF64slice\"")
  5506. } else {
  5507. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  5508. }
  5509. r.WriteMapElemValue()
  5510. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  5511. r.EncodeNil()
  5512. } else {
  5513. if false {
  5514. } else {
  5515. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  5516. }
  5517. }
  5518. }
  5519. if yyr2 || yy2arr2 {
  5520. r.WriteArrayElem()
  5521. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  5522. r.EncodeNil()
  5523. } else {
  5524. if false {
  5525. } else {
  5526. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  5527. }
  5528. }
  5529. } else {
  5530. r.WriteMapElemKey()
  5531. if z.IsJSONHandle() {
  5532. z.WriteStr("\"AF32slice\"")
  5533. } else {
  5534. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  5535. }
  5536. r.WriteMapElemValue()
  5537. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  5538. r.EncodeNil()
  5539. } else {
  5540. if false {
  5541. } else {
  5542. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  5543. }
  5544. }
  5545. }
  5546. if yyr2 || yy2arr2 {
  5547. r.WriteArrayElem()
  5548. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  5549. r.EncodeNil()
  5550. } else {
  5551. if false {
  5552. } else {
  5553. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  5554. }
  5555. }
  5556. } else {
  5557. r.WriteMapElemKey()
  5558. if z.IsJSONHandle() {
  5559. z.WriteStr("\"AMSU16\"")
  5560. } else {
  5561. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  5562. }
  5563. r.WriteMapElemValue()
  5564. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  5565. r.EncodeNil()
  5566. } else {
  5567. if false {
  5568. } else {
  5569. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  5570. }
  5571. }
  5572. }
  5573. if yyr2 || yy2arr2 {
  5574. r.WriteArrayElem()
  5575. yy126 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  5576. if false {
  5577. } else {
  5578. h.encArray0int64((*[0]int64)(yy126), e)
  5579. }
  5580. } else {
  5581. r.WriteMapElemKey()
  5582. if z.IsJSONHandle() {
  5583. z.WriteStr("\"AI64arr0\"")
  5584. } else {
  5585. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  5586. }
  5587. r.WriteMapElemValue()
  5588. yy128 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  5589. if false {
  5590. } else {
  5591. h.encArray0int64((*[0]int64)(yy128), e)
  5592. }
  5593. }
  5594. if yyr2 || yy2arr2 {
  5595. r.WriteArrayElem()
  5596. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  5597. r.EncodeNil()
  5598. } else {
  5599. if false {
  5600. } else {
  5601. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  5602. }
  5603. }
  5604. } else {
  5605. r.WriteMapElemKey()
  5606. if z.IsJSONHandle() {
  5607. z.WriteStr("\"A164slice0\"")
  5608. } else {
  5609. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  5610. }
  5611. r.WriteMapElemValue()
  5612. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  5613. r.EncodeNil()
  5614. } else {
  5615. if false {
  5616. } else {
  5617. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  5618. }
  5619. }
  5620. }
  5621. if yyr2 || yy2arr2 {
  5622. r.WriteArrayElem()
  5623. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  5624. r.EncodeNil()
  5625. } else {
  5626. if false {
  5627. } else {
  5628. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  5629. }
  5630. }
  5631. } else {
  5632. r.WriteMapElemKey()
  5633. if z.IsJSONHandle() {
  5634. z.WriteStr("\"AUi64sliceN\"")
  5635. } else {
  5636. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  5637. }
  5638. r.WriteMapElemValue()
  5639. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  5640. r.EncodeNil()
  5641. } else {
  5642. if false {
  5643. } else {
  5644. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  5645. }
  5646. }
  5647. }
  5648. if yyr2 || yy2arr2 {
  5649. r.WriteArrayElem()
  5650. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  5651. r.EncodeNil()
  5652. } else {
  5653. if false {
  5654. } else {
  5655. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  5656. }
  5657. }
  5658. } else {
  5659. r.WriteMapElemKey()
  5660. if z.IsJSONHandle() {
  5661. z.WriteStr("\"AMSU16N\"")
  5662. } else {
  5663. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  5664. }
  5665. r.WriteMapElemValue()
  5666. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  5667. r.EncodeNil()
  5668. } else {
  5669. if false {
  5670. } else {
  5671. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  5672. }
  5673. }
  5674. }
  5675. if yyr2 || yy2arr2 {
  5676. r.WriteArrayElem()
  5677. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  5678. r.EncodeNil()
  5679. } else {
  5680. if false {
  5681. } else {
  5682. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  5683. }
  5684. }
  5685. } else {
  5686. r.WriteMapElemKey()
  5687. if z.IsJSONHandle() {
  5688. z.WriteStr("\"AMSU16E\"")
  5689. } else {
  5690. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  5691. }
  5692. r.WriteMapElemValue()
  5693. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  5694. r.EncodeNil()
  5695. } else {
  5696. if false {
  5697. } else {
  5698. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  5699. }
  5700. }
  5701. }
  5702. if yyr2 || yy2arr2 {
  5703. r.WriteArrayElem()
  5704. yy143 := &x.TestStrucCommon.NotAnon
  5705. yy143.CodecEncodeSelf(e)
  5706. } else {
  5707. r.WriteMapElemKey()
  5708. if z.IsJSONHandle() {
  5709. z.WriteStr("\"NotAnon\"")
  5710. } else {
  5711. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  5712. }
  5713. r.WriteMapElemValue()
  5714. yy145 := &x.TestStrucCommon.NotAnon
  5715. yy145.CodecEncodeSelf(e)
  5716. }
  5717. if yyr2 || yy2arr2 {
  5718. r.WriteArrayElem()
  5719. if x.TestStrucCommon.Nmap == nil {
  5720. r.EncodeNil()
  5721. } else {
  5722. if false {
  5723. } else {
  5724. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  5725. }
  5726. }
  5727. } else {
  5728. r.WriteMapElemKey()
  5729. if z.IsJSONHandle() {
  5730. z.WriteStr("\"Nmap\"")
  5731. } else {
  5732. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  5733. }
  5734. r.WriteMapElemValue()
  5735. if x.TestStrucCommon.Nmap == nil {
  5736. r.EncodeNil()
  5737. } else {
  5738. if false {
  5739. } else {
  5740. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  5741. }
  5742. }
  5743. }
  5744. if yyr2 || yy2arr2 {
  5745. r.WriteArrayElem()
  5746. if x.TestStrucCommon.Nslice == nil {
  5747. r.EncodeNil()
  5748. } else {
  5749. if false {
  5750. } else {
  5751. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  5752. }
  5753. }
  5754. } else {
  5755. r.WriteMapElemKey()
  5756. if z.IsJSONHandle() {
  5757. z.WriteStr("\"Nslice\"")
  5758. } else {
  5759. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  5760. }
  5761. r.WriteMapElemValue()
  5762. if x.TestStrucCommon.Nslice == nil {
  5763. r.EncodeNil()
  5764. } else {
  5765. if false {
  5766. } else {
  5767. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  5768. }
  5769. }
  5770. }
  5771. var yyn153 bool
  5772. if x.TestStrucCommon.Nint64 == nil {
  5773. yyn153 = true
  5774. goto LABEL153
  5775. }
  5776. LABEL153:
  5777. if yyr2 || yy2arr2 {
  5778. if yyn153 {
  5779. r.WriteArrayElem()
  5780. r.EncodeNil()
  5781. } else {
  5782. r.WriteArrayElem()
  5783. if x.TestStrucCommon.Nint64 == nil {
  5784. r.EncodeNil()
  5785. } else {
  5786. yy154 := *x.TestStrucCommon.Nint64
  5787. if false {
  5788. } else {
  5789. r.EncodeInt(int64(yy154))
  5790. }
  5791. }
  5792. }
  5793. } else {
  5794. r.WriteMapElemKey()
  5795. if z.IsJSONHandle() {
  5796. z.WriteStr("\"Nint64\"")
  5797. } else {
  5798. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  5799. }
  5800. r.WriteMapElemValue()
  5801. if yyn153 {
  5802. r.EncodeNil()
  5803. } else {
  5804. if x.TestStrucCommon.Nint64 == nil {
  5805. r.EncodeNil()
  5806. } else {
  5807. yy156 := *x.TestStrucCommon.Nint64
  5808. if false {
  5809. } else {
  5810. r.EncodeInt(int64(yy156))
  5811. }
  5812. }
  5813. }
  5814. }
  5815. if yyr2 || yy2arr2 {
  5816. r.WriteArrayElem()
  5817. if x.Mtsptr == nil {
  5818. r.EncodeNil()
  5819. } else {
  5820. if false {
  5821. } else {
  5822. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5823. }
  5824. }
  5825. } else {
  5826. r.WriteMapElemKey()
  5827. if z.IsJSONHandle() {
  5828. z.WriteStr("\"Mtsptr\"")
  5829. } else {
  5830. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  5831. }
  5832. r.WriteMapElemValue()
  5833. if x.Mtsptr == nil {
  5834. r.EncodeNil()
  5835. } else {
  5836. if false {
  5837. } else {
  5838. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5839. }
  5840. }
  5841. }
  5842. if yyr2 || yy2arr2 {
  5843. r.WriteArrayElem()
  5844. if x.Mts == nil {
  5845. r.EncodeNil()
  5846. } else {
  5847. if false {
  5848. } else {
  5849. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5850. }
  5851. }
  5852. } else {
  5853. r.WriteMapElemKey()
  5854. if z.IsJSONHandle() {
  5855. z.WriteStr("\"Mts\"")
  5856. } else {
  5857. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  5858. }
  5859. r.WriteMapElemValue()
  5860. if x.Mts == nil {
  5861. r.EncodeNil()
  5862. } else {
  5863. if false {
  5864. } else {
  5865. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5866. }
  5867. }
  5868. }
  5869. if yyr2 || yy2arr2 {
  5870. r.WriteArrayElem()
  5871. if x.Its == nil {
  5872. r.EncodeNil()
  5873. } else {
  5874. if false {
  5875. } else {
  5876. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5877. }
  5878. }
  5879. } else {
  5880. r.WriteMapElemKey()
  5881. if z.IsJSONHandle() {
  5882. z.WriteStr("\"Its\"")
  5883. } else {
  5884. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  5885. }
  5886. r.WriteMapElemValue()
  5887. if x.Its == nil {
  5888. r.EncodeNil()
  5889. } else {
  5890. if false {
  5891. } else {
  5892. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5893. }
  5894. }
  5895. }
  5896. var yyn167 bool
  5897. if x.Nteststruc == nil {
  5898. yyn167 = true
  5899. goto LABEL167
  5900. }
  5901. LABEL167:
  5902. if yyr2 || yy2arr2 {
  5903. if yyn167 {
  5904. r.WriteArrayElem()
  5905. r.EncodeNil()
  5906. } else {
  5907. r.WriteArrayElem()
  5908. if x.Nteststruc == nil {
  5909. r.EncodeNil()
  5910. } else {
  5911. x.Nteststruc.CodecEncodeSelf(e)
  5912. }
  5913. }
  5914. } else {
  5915. r.WriteMapElemKey()
  5916. if z.IsJSONHandle() {
  5917. z.WriteStr("\"Nteststruc\"")
  5918. } else {
  5919. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  5920. }
  5921. r.WriteMapElemValue()
  5922. if yyn167 {
  5923. r.EncodeNil()
  5924. } else {
  5925. if x.Nteststruc == nil {
  5926. r.EncodeNil()
  5927. } else {
  5928. x.Nteststruc.CodecEncodeSelf(e)
  5929. }
  5930. }
  5931. }
  5932. if yyr2 || yy2arr2 {
  5933. r.WriteArrayEnd()
  5934. } else {
  5935. r.WriteMapEnd()
  5936. }
  5937. }
  5938. }
  5939. }
  5940. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  5941. var h codecSelfer19780
  5942. z, r := GenHelperDecoder(d)
  5943. _, _, _ = h, z, r
  5944. if false {
  5945. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  5946. z.DecExtension(x, yyxt1)
  5947. } else {
  5948. yyct2 := r.ContainerType()
  5949. if yyct2 == codecSelferValueTypeMap19780 {
  5950. yyl2 := r.ReadMapStart()
  5951. if yyl2 == 0 {
  5952. r.ReadMapEnd()
  5953. } else {
  5954. x.codecDecodeSelfFromMap(yyl2, d)
  5955. }
  5956. } else if yyct2 == codecSelferValueTypeArray19780 {
  5957. yyl2 := r.ReadArrayStart()
  5958. if yyl2 == 0 {
  5959. r.ReadArrayEnd()
  5960. } else {
  5961. x.codecDecodeSelfFromArray(yyl2, d)
  5962. }
  5963. } else {
  5964. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5965. }
  5966. }
  5967. }
  5968. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  5969. var h codecSelfer19780
  5970. z, r := GenHelperDecoder(d)
  5971. _, _, _ = h, z, r
  5972. var yyhl3 bool = l >= 0
  5973. for yyj3 := 0; ; yyj3++ {
  5974. if yyhl3 {
  5975. if yyj3 >= l {
  5976. break
  5977. }
  5978. } else {
  5979. if r.CheckBreak() {
  5980. break
  5981. }
  5982. }
  5983. r.ReadMapElemKey()
  5984. yys3 := z.StringView(r.DecodeStringAsBytes())
  5985. r.ReadMapElemValue()
  5986. switch yys3 {
  5987. case "S":
  5988. if r.TryDecodeAsNil() {
  5989. x.TestStrucCommon.S = ""
  5990. } else {
  5991. x.TestStrucCommon.S = (string)(r.DecodeString())
  5992. }
  5993. case "I64":
  5994. if r.TryDecodeAsNil() {
  5995. x.TestStrucCommon.I64 = 0
  5996. } else {
  5997. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  5998. }
  5999. case "I32":
  6000. if r.TryDecodeAsNil() {
  6001. x.TestStrucCommon.I32 = 0
  6002. } else {
  6003. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6004. }
  6005. case "I16":
  6006. if r.TryDecodeAsNil() {
  6007. x.TestStrucCommon.I16 = 0
  6008. } else {
  6009. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6010. }
  6011. case "I8":
  6012. if r.TryDecodeAsNil() {
  6013. x.TestStrucCommon.I8 = 0
  6014. } else {
  6015. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6016. }
  6017. case "I64n":
  6018. if r.TryDecodeAsNil() {
  6019. x.TestStrucCommon.I64n = 0
  6020. } else {
  6021. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  6022. }
  6023. case "I32n":
  6024. if r.TryDecodeAsNil() {
  6025. x.TestStrucCommon.I32n = 0
  6026. } else {
  6027. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6028. }
  6029. case "I16n":
  6030. if r.TryDecodeAsNil() {
  6031. x.TestStrucCommon.I16n = 0
  6032. } else {
  6033. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6034. }
  6035. case "I8n":
  6036. if r.TryDecodeAsNil() {
  6037. x.TestStrucCommon.I8n = 0
  6038. } else {
  6039. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6040. }
  6041. case "Ui64":
  6042. if r.TryDecodeAsNil() {
  6043. x.TestStrucCommon.Ui64 = 0
  6044. } else {
  6045. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  6046. }
  6047. case "Ui32":
  6048. if r.TryDecodeAsNil() {
  6049. x.TestStrucCommon.Ui32 = 0
  6050. } else {
  6051. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6052. }
  6053. case "Ui16":
  6054. if r.TryDecodeAsNil() {
  6055. x.TestStrucCommon.Ui16 = 0
  6056. } else {
  6057. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6058. }
  6059. case "Ui8":
  6060. if r.TryDecodeAsNil() {
  6061. x.TestStrucCommon.Ui8 = 0
  6062. } else {
  6063. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6064. }
  6065. case "F64":
  6066. if r.TryDecodeAsNil() {
  6067. x.TestStrucCommon.F64 = 0
  6068. } else {
  6069. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  6070. }
  6071. case "F32":
  6072. if r.TryDecodeAsNil() {
  6073. x.TestStrucCommon.F32 = 0
  6074. } else {
  6075. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  6076. }
  6077. case "B":
  6078. if r.TryDecodeAsNil() {
  6079. x.TestStrucCommon.B = false
  6080. } else {
  6081. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  6082. }
  6083. case "By":
  6084. if r.TryDecodeAsNil() {
  6085. x.TestStrucCommon.By = 0
  6086. } else {
  6087. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6088. }
  6089. case "Sslice":
  6090. if r.TryDecodeAsNil() {
  6091. x.TestStrucCommon.Sslice = nil
  6092. } else {
  6093. if false {
  6094. } else {
  6095. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  6096. }
  6097. }
  6098. case "I64slice":
  6099. if r.TryDecodeAsNil() {
  6100. x.TestStrucCommon.I64slice = nil
  6101. } else {
  6102. if false {
  6103. } else {
  6104. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  6105. }
  6106. }
  6107. case "I16slice":
  6108. if r.TryDecodeAsNil() {
  6109. x.TestStrucCommon.I16slice = nil
  6110. } else {
  6111. if false {
  6112. } else {
  6113. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  6114. }
  6115. }
  6116. case "Ui64slice":
  6117. if r.TryDecodeAsNil() {
  6118. x.TestStrucCommon.Ui64slice = nil
  6119. } else {
  6120. if false {
  6121. } else {
  6122. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  6123. }
  6124. }
  6125. case "Ui8slice":
  6126. if r.TryDecodeAsNil() {
  6127. x.TestStrucCommon.Ui8slice = nil
  6128. } else {
  6129. if false {
  6130. } else {
  6131. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  6132. }
  6133. }
  6134. case "Bslice":
  6135. if r.TryDecodeAsNil() {
  6136. x.TestStrucCommon.Bslice = nil
  6137. } else {
  6138. if false {
  6139. } else {
  6140. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  6141. }
  6142. }
  6143. case "Byslice":
  6144. if r.TryDecodeAsNil() {
  6145. x.TestStrucCommon.Byslice = nil
  6146. } else {
  6147. if false {
  6148. } else {
  6149. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  6150. }
  6151. }
  6152. case "Iptrslice":
  6153. if r.TryDecodeAsNil() {
  6154. x.TestStrucCommon.Iptrslice = nil
  6155. } else {
  6156. if false {
  6157. } else {
  6158. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  6159. }
  6160. }
  6161. case "WrapSliceInt64":
  6162. if r.TryDecodeAsNil() {
  6163. x.TestStrucCommon.WrapSliceInt64 = nil
  6164. } else {
  6165. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  6166. }
  6167. case "WrapSliceString":
  6168. if r.TryDecodeAsNil() {
  6169. x.TestStrucCommon.WrapSliceString = nil
  6170. } else {
  6171. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  6172. }
  6173. case "Msi64":
  6174. if r.TryDecodeAsNil() {
  6175. x.TestStrucCommon.Msi64 = nil
  6176. } else {
  6177. if false {
  6178. } else {
  6179. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  6180. }
  6181. }
  6182. case "Simplef":
  6183. if r.TryDecodeAsNil() {
  6184. x.TestStrucCommon.Simplef = testSimpleFields{}
  6185. } else {
  6186. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  6187. }
  6188. case "SstrUi64T":
  6189. if r.TryDecodeAsNil() {
  6190. x.TestStrucCommon.SstrUi64T = nil
  6191. } else {
  6192. if false {
  6193. } else {
  6194. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  6195. }
  6196. }
  6197. case "AS":
  6198. if r.TryDecodeAsNil() {
  6199. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6200. } else {
  6201. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  6202. }
  6203. case "AI64":
  6204. if r.TryDecodeAsNil() {
  6205. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6206. } else {
  6207. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  6208. }
  6209. case "AI16":
  6210. if r.TryDecodeAsNil() {
  6211. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6212. } else {
  6213. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6214. }
  6215. case "AUi64":
  6216. if r.TryDecodeAsNil() {
  6217. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6218. } else {
  6219. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  6220. }
  6221. case "ASslice":
  6222. if r.TryDecodeAsNil() {
  6223. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6224. } else {
  6225. if false {
  6226. } else {
  6227. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  6228. }
  6229. }
  6230. case "AI64slice":
  6231. if r.TryDecodeAsNil() {
  6232. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  6233. } else {
  6234. if false {
  6235. } else {
  6236. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  6237. }
  6238. }
  6239. case "AUi64slice":
  6240. if r.TryDecodeAsNil() {
  6241. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  6242. } else {
  6243. if false {
  6244. } else {
  6245. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  6246. }
  6247. }
  6248. case "AF64slice":
  6249. if r.TryDecodeAsNil() {
  6250. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  6251. } else {
  6252. if false {
  6253. } else {
  6254. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  6255. }
  6256. }
  6257. case "AF32slice":
  6258. if r.TryDecodeAsNil() {
  6259. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  6260. } else {
  6261. if false {
  6262. } else {
  6263. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  6264. }
  6265. }
  6266. case "AMSU16":
  6267. if r.TryDecodeAsNil() {
  6268. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  6269. } else {
  6270. if false {
  6271. } else {
  6272. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  6273. }
  6274. }
  6275. case "AI64arr0":
  6276. if r.TryDecodeAsNil() {
  6277. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  6278. } else {
  6279. if false {
  6280. } else {
  6281. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  6282. }
  6283. }
  6284. case "A164slice0":
  6285. if r.TryDecodeAsNil() {
  6286. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  6287. } else {
  6288. if false {
  6289. } else {
  6290. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  6291. }
  6292. }
  6293. case "AUi64sliceN":
  6294. if r.TryDecodeAsNil() {
  6295. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  6296. } else {
  6297. if false {
  6298. } else {
  6299. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  6300. }
  6301. }
  6302. case "AMSU16N":
  6303. if r.TryDecodeAsNil() {
  6304. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  6305. } else {
  6306. if false {
  6307. } else {
  6308. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  6309. }
  6310. }
  6311. case "AMSU16E":
  6312. if r.TryDecodeAsNil() {
  6313. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  6314. } else {
  6315. if false {
  6316. } else {
  6317. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  6318. }
  6319. }
  6320. case "NotAnon":
  6321. if r.TryDecodeAsNil() {
  6322. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  6323. } else {
  6324. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  6325. }
  6326. case "Nmap":
  6327. if r.TryDecodeAsNil() {
  6328. x.TestStrucCommon.Nmap = nil
  6329. } else {
  6330. if false {
  6331. } else {
  6332. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  6333. }
  6334. }
  6335. case "Nslice":
  6336. if r.TryDecodeAsNil() {
  6337. x.TestStrucCommon.Nslice = nil
  6338. } else {
  6339. if false {
  6340. } else {
  6341. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  6342. }
  6343. }
  6344. case "Nint64":
  6345. if r.TryDecodeAsNil() {
  6346. if true && x.TestStrucCommon.Nint64 != nil {
  6347. x.TestStrucCommon.Nint64 = nil
  6348. }
  6349. } else {
  6350. if x.TestStrucCommon.Nint64 == nil {
  6351. x.TestStrucCommon.Nint64 = new(int64)
  6352. }
  6353. if false {
  6354. } else {
  6355. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  6356. }
  6357. }
  6358. case "Mtsptr":
  6359. if r.TryDecodeAsNil() {
  6360. x.Mtsptr = nil
  6361. } else {
  6362. if false {
  6363. } else {
  6364. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  6365. }
  6366. }
  6367. case "Mts":
  6368. if r.TryDecodeAsNil() {
  6369. x.Mts = nil
  6370. } else {
  6371. if false {
  6372. } else {
  6373. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  6374. }
  6375. }
  6376. case "Its":
  6377. if r.TryDecodeAsNil() {
  6378. x.Its = nil
  6379. } else {
  6380. if false {
  6381. } else {
  6382. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  6383. }
  6384. }
  6385. case "Nteststruc":
  6386. if r.TryDecodeAsNil() {
  6387. if true && x.Nteststruc != nil {
  6388. x.Nteststruc = nil
  6389. }
  6390. } else {
  6391. if x.Nteststruc == nil {
  6392. x.Nteststruc = new(TestStruc)
  6393. }
  6394. x.Nteststruc.CodecDecodeSelf(d)
  6395. }
  6396. default:
  6397. z.DecStructFieldNotFound(-1, yys3)
  6398. } // end switch yys3
  6399. } // end for yyj3
  6400. r.ReadMapEnd()
  6401. }
  6402. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  6403. var h codecSelfer19780
  6404. z, r := GenHelperDecoder(d)
  6405. _, _, _ = h, z, r
  6406. var yyj84 int
  6407. var yyb84 bool
  6408. var yyhl84 bool = l >= 0
  6409. yyj84++
  6410. if yyhl84 {
  6411. yyb84 = yyj84 > l
  6412. } else {
  6413. yyb84 = r.CheckBreak()
  6414. }
  6415. if yyb84 {
  6416. r.ReadArrayEnd()
  6417. return
  6418. }
  6419. r.ReadArrayElem()
  6420. if r.TryDecodeAsNil() {
  6421. x.TestStrucCommon.S = ""
  6422. } else {
  6423. x.TestStrucCommon.S = (string)(r.DecodeString())
  6424. }
  6425. yyj84++
  6426. if yyhl84 {
  6427. yyb84 = yyj84 > l
  6428. } else {
  6429. yyb84 = r.CheckBreak()
  6430. }
  6431. if yyb84 {
  6432. r.ReadArrayEnd()
  6433. return
  6434. }
  6435. r.ReadArrayElem()
  6436. if r.TryDecodeAsNil() {
  6437. x.TestStrucCommon.I64 = 0
  6438. } else {
  6439. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  6440. }
  6441. yyj84++
  6442. if yyhl84 {
  6443. yyb84 = yyj84 > l
  6444. } else {
  6445. yyb84 = r.CheckBreak()
  6446. }
  6447. if yyb84 {
  6448. r.ReadArrayEnd()
  6449. return
  6450. }
  6451. r.ReadArrayElem()
  6452. if r.TryDecodeAsNil() {
  6453. x.TestStrucCommon.I32 = 0
  6454. } else {
  6455. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6456. }
  6457. yyj84++
  6458. if yyhl84 {
  6459. yyb84 = yyj84 > l
  6460. } else {
  6461. yyb84 = r.CheckBreak()
  6462. }
  6463. if yyb84 {
  6464. r.ReadArrayEnd()
  6465. return
  6466. }
  6467. r.ReadArrayElem()
  6468. if r.TryDecodeAsNil() {
  6469. x.TestStrucCommon.I16 = 0
  6470. } else {
  6471. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6472. }
  6473. yyj84++
  6474. if yyhl84 {
  6475. yyb84 = yyj84 > l
  6476. } else {
  6477. yyb84 = r.CheckBreak()
  6478. }
  6479. if yyb84 {
  6480. r.ReadArrayEnd()
  6481. return
  6482. }
  6483. r.ReadArrayElem()
  6484. if r.TryDecodeAsNil() {
  6485. x.TestStrucCommon.I8 = 0
  6486. } else {
  6487. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6488. }
  6489. yyj84++
  6490. if yyhl84 {
  6491. yyb84 = yyj84 > l
  6492. } else {
  6493. yyb84 = r.CheckBreak()
  6494. }
  6495. if yyb84 {
  6496. r.ReadArrayEnd()
  6497. return
  6498. }
  6499. r.ReadArrayElem()
  6500. if r.TryDecodeAsNil() {
  6501. x.TestStrucCommon.I64n = 0
  6502. } else {
  6503. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  6504. }
  6505. yyj84++
  6506. if yyhl84 {
  6507. yyb84 = yyj84 > l
  6508. } else {
  6509. yyb84 = r.CheckBreak()
  6510. }
  6511. if yyb84 {
  6512. r.ReadArrayEnd()
  6513. return
  6514. }
  6515. r.ReadArrayElem()
  6516. if r.TryDecodeAsNil() {
  6517. x.TestStrucCommon.I32n = 0
  6518. } else {
  6519. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6520. }
  6521. yyj84++
  6522. if yyhl84 {
  6523. yyb84 = yyj84 > l
  6524. } else {
  6525. yyb84 = r.CheckBreak()
  6526. }
  6527. if yyb84 {
  6528. r.ReadArrayEnd()
  6529. return
  6530. }
  6531. r.ReadArrayElem()
  6532. if r.TryDecodeAsNil() {
  6533. x.TestStrucCommon.I16n = 0
  6534. } else {
  6535. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6536. }
  6537. yyj84++
  6538. if yyhl84 {
  6539. yyb84 = yyj84 > l
  6540. } else {
  6541. yyb84 = r.CheckBreak()
  6542. }
  6543. if yyb84 {
  6544. r.ReadArrayEnd()
  6545. return
  6546. }
  6547. r.ReadArrayElem()
  6548. if r.TryDecodeAsNil() {
  6549. x.TestStrucCommon.I8n = 0
  6550. } else {
  6551. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6552. }
  6553. yyj84++
  6554. if yyhl84 {
  6555. yyb84 = yyj84 > l
  6556. } else {
  6557. yyb84 = r.CheckBreak()
  6558. }
  6559. if yyb84 {
  6560. r.ReadArrayEnd()
  6561. return
  6562. }
  6563. r.ReadArrayElem()
  6564. if r.TryDecodeAsNil() {
  6565. x.TestStrucCommon.Ui64 = 0
  6566. } else {
  6567. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  6568. }
  6569. yyj84++
  6570. if yyhl84 {
  6571. yyb84 = yyj84 > l
  6572. } else {
  6573. yyb84 = r.CheckBreak()
  6574. }
  6575. if yyb84 {
  6576. r.ReadArrayEnd()
  6577. return
  6578. }
  6579. r.ReadArrayElem()
  6580. if r.TryDecodeAsNil() {
  6581. x.TestStrucCommon.Ui32 = 0
  6582. } else {
  6583. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6584. }
  6585. yyj84++
  6586. if yyhl84 {
  6587. yyb84 = yyj84 > l
  6588. } else {
  6589. yyb84 = r.CheckBreak()
  6590. }
  6591. if yyb84 {
  6592. r.ReadArrayEnd()
  6593. return
  6594. }
  6595. r.ReadArrayElem()
  6596. if r.TryDecodeAsNil() {
  6597. x.TestStrucCommon.Ui16 = 0
  6598. } else {
  6599. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6600. }
  6601. yyj84++
  6602. if yyhl84 {
  6603. yyb84 = yyj84 > l
  6604. } else {
  6605. yyb84 = r.CheckBreak()
  6606. }
  6607. if yyb84 {
  6608. r.ReadArrayEnd()
  6609. return
  6610. }
  6611. r.ReadArrayElem()
  6612. if r.TryDecodeAsNil() {
  6613. x.TestStrucCommon.Ui8 = 0
  6614. } else {
  6615. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6616. }
  6617. yyj84++
  6618. if yyhl84 {
  6619. yyb84 = yyj84 > l
  6620. } else {
  6621. yyb84 = r.CheckBreak()
  6622. }
  6623. if yyb84 {
  6624. r.ReadArrayEnd()
  6625. return
  6626. }
  6627. r.ReadArrayElem()
  6628. if r.TryDecodeAsNil() {
  6629. x.TestStrucCommon.F64 = 0
  6630. } else {
  6631. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  6632. }
  6633. yyj84++
  6634. if yyhl84 {
  6635. yyb84 = yyj84 > l
  6636. } else {
  6637. yyb84 = r.CheckBreak()
  6638. }
  6639. if yyb84 {
  6640. r.ReadArrayEnd()
  6641. return
  6642. }
  6643. r.ReadArrayElem()
  6644. if r.TryDecodeAsNil() {
  6645. x.TestStrucCommon.F32 = 0
  6646. } else {
  6647. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  6648. }
  6649. yyj84++
  6650. if yyhl84 {
  6651. yyb84 = yyj84 > l
  6652. } else {
  6653. yyb84 = r.CheckBreak()
  6654. }
  6655. if yyb84 {
  6656. r.ReadArrayEnd()
  6657. return
  6658. }
  6659. r.ReadArrayElem()
  6660. if r.TryDecodeAsNil() {
  6661. x.TestStrucCommon.B = false
  6662. } else {
  6663. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  6664. }
  6665. yyj84++
  6666. if yyhl84 {
  6667. yyb84 = yyj84 > l
  6668. } else {
  6669. yyb84 = r.CheckBreak()
  6670. }
  6671. if yyb84 {
  6672. r.ReadArrayEnd()
  6673. return
  6674. }
  6675. r.ReadArrayElem()
  6676. if r.TryDecodeAsNil() {
  6677. x.TestStrucCommon.By = 0
  6678. } else {
  6679. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6680. }
  6681. yyj84++
  6682. if yyhl84 {
  6683. yyb84 = yyj84 > l
  6684. } else {
  6685. yyb84 = r.CheckBreak()
  6686. }
  6687. if yyb84 {
  6688. r.ReadArrayEnd()
  6689. return
  6690. }
  6691. r.ReadArrayElem()
  6692. if r.TryDecodeAsNil() {
  6693. x.TestStrucCommon.Sslice = nil
  6694. } else {
  6695. if false {
  6696. } else {
  6697. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  6698. }
  6699. }
  6700. yyj84++
  6701. if yyhl84 {
  6702. yyb84 = yyj84 > l
  6703. } else {
  6704. yyb84 = r.CheckBreak()
  6705. }
  6706. if yyb84 {
  6707. r.ReadArrayEnd()
  6708. return
  6709. }
  6710. r.ReadArrayElem()
  6711. if r.TryDecodeAsNil() {
  6712. x.TestStrucCommon.I64slice = nil
  6713. } else {
  6714. if false {
  6715. } else {
  6716. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  6717. }
  6718. }
  6719. yyj84++
  6720. if yyhl84 {
  6721. yyb84 = yyj84 > l
  6722. } else {
  6723. yyb84 = r.CheckBreak()
  6724. }
  6725. if yyb84 {
  6726. r.ReadArrayEnd()
  6727. return
  6728. }
  6729. r.ReadArrayElem()
  6730. if r.TryDecodeAsNil() {
  6731. x.TestStrucCommon.I16slice = nil
  6732. } else {
  6733. if false {
  6734. } else {
  6735. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  6736. }
  6737. }
  6738. yyj84++
  6739. if yyhl84 {
  6740. yyb84 = yyj84 > l
  6741. } else {
  6742. yyb84 = r.CheckBreak()
  6743. }
  6744. if yyb84 {
  6745. r.ReadArrayEnd()
  6746. return
  6747. }
  6748. r.ReadArrayElem()
  6749. if r.TryDecodeAsNil() {
  6750. x.TestStrucCommon.Ui64slice = nil
  6751. } else {
  6752. if false {
  6753. } else {
  6754. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  6755. }
  6756. }
  6757. yyj84++
  6758. if yyhl84 {
  6759. yyb84 = yyj84 > l
  6760. } else {
  6761. yyb84 = r.CheckBreak()
  6762. }
  6763. if yyb84 {
  6764. r.ReadArrayEnd()
  6765. return
  6766. }
  6767. r.ReadArrayElem()
  6768. if r.TryDecodeAsNil() {
  6769. x.TestStrucCommon.Ui8slice = nil
  6770. } else {
  6771. if false {
  6772. } else {
  6773. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  6774. }
  6775. }
  6776. yyj84++
  6777. if yyhl84 {
  6778. yyb84 = yyj84 > l
  6779. } else {
  6780. yyb84 = r.CheckBreak()
  6781. }
  6782. if yyb84 {
  6783. r.ReadArrayEnd()
  6784. return
  6785. }
  6786. r.ReadArrayElem()
  6787. if r.TryDecodeAsNil() {
  6788. x.TestStrucCommon.Bslice = nil
  6789. } else {
  6790. if false {
  6791. } else {
  6792. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  6793. }
  6794. }
  6795. yyj84++
  6796. if yyhl84 {
  6797. yyb84 = yyj84 > l
  6798. } else {
  6799. yyb84 = r.CheckBreak()
  6800. }
  6801. if yyb84 {
  6802. r.ReadArrayEnd()
  6803. return
  6804. }
  6805. r.ReadArrayElem()
  6806. if r.TryDecodeAsNil() {
  6807. x.TestStrucCommon.Byslice = nil
  6808. } else {
  6809. if false {
  6810. } else {
  6811. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  6812. }
  6813. }
  6814. yyj84++
  6815. if yyhl84 {
  6816. yyb84 = yyj84 > l
  6817. } else {
  6818. yyb84 = r.CheckBreak()
  6819. }
  6820. if yyb84 {
  6821. r.ReadArrayEnd()
  6822. return
  6823. }
  6824. r.ReadArrayElem()
  6825. if r.TryDecodeAsNil() {
  6826. x.TestStrucCommon.Iptrslice = nil
  6827. } else {
  6828. if false {
  6829. } else {
  6830. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  6831. }
  6832. }
  6833. yyj84++
  6834. if yyhl84 {
  6835. yyb84 = yyj84 > l
  6836. } else {
  6837. yyb84 = r.CheckBreak()
  6838. }
  6839. if yyb84 {
  6840. r.ReadArrayEnd()
  6841. return
  6842. }
  6843. r.ReadArrayElem()
  6844. if r.TryDecodeAsNil() {
  6845. x.TestStrucCommon.WrapSliceInt64 = nil
  6846. } else {
  6847. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  6848. }
  6849. yyj84++
  6850. if yyhl84 {
  6851. yyb84 = yyj84 > l
  6852. } else {
  6853. yyb84 = r.CheckBreak()
  6854. }
  6855. if yyb84 {
  6856. r.ReadArrayEnd()
  6857. return
  6858. }
  6859. r.ReadArrayElem()
  6860. if r.TryDecodeAsNil() {
  6861. x.TestStrucCommon.WrapSliceString = nil
  6862. } else {
  6863. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  6864. }
  6865. yyj84++
  6866. if yyhl84 {
  6867. yyb84 = yyj84 > l
  6868. } else {
  6869. yyb84 = r.CheckBreak()
  6870. }
  6871. if yyb84 {
  6872. r.ReadArrayEnd()
  6873. return
  6874. }
  6875. r.ReadArrayElem()
  6876. if r.TryDecodeAsNil() {
  6877. x.TestStrucCommon.Msi64 = nil
  6878. } else {
  6879. if false {
  6880. } else {
  6881. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  6882. }
  6883. }
  6884. yyj84++
  6885. if yyhl84 {
  6886. yyb84 = yyj84 > l
  6887. } else {
  6888. yyb84 = r.CheckBreak()
  6889. }
  6890. if yyb84 {
  6891. r.ReadArrayEnd()
  6892. return
  6893. }
  6894. r.ReadArrayElem()
  6895. if r.TryDecodeAsNil() {
  6896. x.TestStrucCommon.Simplef = testSimpleFields{}
  6897. } else {
  6898. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  6899. }
  6900. yyj84++
  6901. if yyhl84 {
  6902. yyb84 = yyj84 > l
  6903. } else {
  6904. yyb84 = r.CheckBreak()
  6905. }
  6906. if yyb84 {
  6907. r.ReadArrayEnd()
  6908. return
  6909. }
  6910. r.ReadArrayElem()
  6911. if r.TryDecodeAsNil() {
  6912. x.TestStrucCommon.SstrUi64T = nil
  6913. } else {
  6914. if false {
  6915. } else {
  6916. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  6917. }
  6918. }
  6919. yyj84++
  6920. if yyhl84 {
  6921. yyb84 = yyj84 > l
  6922. } else {
  6923. yyb84 = r.CheckBreak()
  6924. }
  6925. if yyb84 {
  6926. r.ReadArrayEnd()
  6927. return
  6928. }
  6929. r.ReadArrayElem()
  6930. if r.TryDecodeAsNil() {
  6931. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6932. } else {
  6933. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  6934. }
  6935. yyj84++
  6936. if yyhl84 {
  6937. yyb84 = yyj84 > l
  6938. } else {
  6939. yyb84 = r.CheckBreak()
  6940. }
  6941. if yyb84 {
  6942. r.ReadArrayEnd()
  6943. return
  6944. }
  6945. r.ReadArrayElem()
  6946. if r.TryDecodeAsNil() {
  6947. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6948. } else {
  6949. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  6950. }
  6951. yyj84++
  6952. if yyhl84 {
  6953. yyb84 = yyj84 > l
  6954. } else {
  6955. yyb84 = r.CheckBreak()
  6956. }
  6957. if yyb84 {
  6958. r.ReadArrayEnd()
  6959. return
  6960. }
  6961. r.ReadArrayElem()
  6962. if r.TryDecodeAsNil() {
  6963. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6964. } else {
  6965. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6966. }
  6967. yyj84++
  6968. if yyhl84 {
  6969. yyb84 = yyj84 > l
  6970. } else {
  6971. yyb84 = r.CheckBreak()
  6972. }
  6973. if yyb84 {
  6974. r.ReadArrayEnd()
  6975. return
  6976. }
  6977. r.ReadArrayElem()
  6978. if r.TryDecodeAsNil() {
  6979. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6980. } else {
  6981. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  6982. }
  6983. yyj84++
  6984. if yyhl84 {
  6985. yyb84 = yyj84 > l
  6986. } else {
  6987. yyb84 = r.CheckBreak()
  6988. }
  6989. if yyb84 {
  6990. r.ReadArrayEnd()
  6991. return
  6992. }
  6993. r.ReadArrayElem()
  6994. if r.TryDecodeAsNil() {
  6995. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6996. } else {
  6997. if false {
  6998. } else {
  6999. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  7000. }
  7001. }
  7002. yyj84++
  7003. if yyhl84 {
  7004. yyb84 = yyj84 > l
  7005. } else {
  7006. yyb84 = r.CheckBreak()
  7007. }
  7008. if yyb84 {
  7009. r.ReadArrayEnd()
  7010. return
  7011. }
  7012. r.ReadArrayElem()
  7013. if r.TryDecodeAsNil() {
  7014. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  7015. } else {
  7016. if false {
  7017. } else {
  7018. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  7019. }
  7020. }
  7021. yyj84++
  7022. if yyhl84 {
  7023. yyb84 = yyj84 > l
  7024. } else {
  7025. yyb84 = r.CheckBreak()
  7026. }
  7027. if yyb84 {
  7028. r.ReadArrayEnd()
  7029. return
  7030. }
  7031. r.ReadArrayElem()
  7032. if r.TryDecodeAsNil() {
  7033. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  7034. } else {
  7035. if false {
  7036. } else {
  7037. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  7038. }
  7039. }
  7040. yyj84++
  7041. if yyhl84 {
  7042. yyb84 = yyj84 > l
  7043. } else {
  7044. yyb84 = r.CheckBreak()
  7045. }
  7046. if yyb84 {
  7047. r.ReadArrayEnd()
  7048. return
  7049. }
  7050. r.ReadArrayElem()
  7051. if r.TryDecodeAsNil() {
  7052. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  7053. } else {
  7054. if false {
  7055. } else {
  7056. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  7057. }
  7058. }
  7059. yyj84++
  7060. if yyhl84 {
  7061. yyb84 = yyj84 > l
  7062. } else {
  7063. yyb84 = r.CheckBreak()
  7064. }
  7065. if yyb84 {
  7066. r.ReadArrayEnd()
  7067. return
  7068. }
  7069. r.ReadArrayElem()
  7070. if r.TryDecodeAsNil() {
  7071. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  7072. } else {
  7073. if false {
  7074. } else {
  7075. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  7076. }
  7077. }
  7078. yyj84++
  7079. if yyhl84 {
  7080. yyb84 = yyj84 > l
  7081. } else {
  7082. yyb84 = r.CheckBreak()
  7083. }
  7084. if yyb84 {
  7085. r.ReadArrayEnd()
  7086. return
  7087. }
  7088. r.ReadArrayElem()
  7089. if r.TryDecodeAsNil() {
  7090. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  7091. } else {
  7092. if false {
  7093. } else {
  7094. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  7095. }
  7096. }
  7097. yyj84++
  7098. if yyhl84 {
  7099. yyb84 = yyj84 > l
  7100. } else {
  7101. yyb84 = r.CheckBreak()
  7102. }
  7103. if yyb84 {
  7104. r.ReadArrayEnd()
  7105. return
  7106. }
  7107. r.ReadArrayElem()
  7108. if r.TryDecodeAsNil() {
  7109. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  7110. } else {
  7111. if false {
  7112. } else {
  7113. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  7114. }
  7115. }
  7116. yyj84++
  7117. if yyhl84 {
  7118. yyb84 = yyj84 > l
  7119. } else {
  7120. yyb84 = r.CheckBreak()
  7121. }
  7122. if yyb84 {
  7123. r.ReadArrayEnd()
  7124. return
  7125. }
  7126. r.ReadArrayElem()
  7127. if r.TryDecodeAsNil() {
  7128. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  7129. } else {
  7130. if false {
  7131. } else {
  7132. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  7133. }
  7134. }
  7135. yyj84++
  7136. if yyhl84 {
  7137. yyb84 = yyj84 > l
  7138. } else {
  7139. yyb84 = r.CheckBreak()
  7140. }
  7141. if yyb84 {
  7142. r.ReadArrayEnd()
  7143. return
  7144. }
  7145. r.ReadArrayElem()
  7146. if r.TryDecodeAsNil() {
  7147. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  7148. } else {
  7149. if false {
  7150. } else {
  7151. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  7152. }
  7153. }
  7154. yyj84++
  7155. if yyhl84 {
  7156. yyb84 = yyj84 > l
  7157. } else {
  7158. yyb84 = r.CheckBreak()
  7159. }
  7160. if yyb84 {
  7161. r.ReadArrayEnd()
  7162. return
  7163. }
  7164. r.ReadArrayElem()
  7165. if r.TryDecodeAsNil() {
  7166. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  7167. } else {
  7168. if false {
  7169. } else {
  7170. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  7171. }
  7172. }
  7173. yyj84++
  7174. if yyhl84 {
  7175. yyb84 = yyj84 > l
  7176. } else {
  7177. yyb84 = r.CheckBreak()
  7178. }
  7179. if yyb84 {
  7180. r.ReadArrayEnd()
  7181. return
  7182. }
  7183. r.ReadArrayElem()
  7184. if r.TryDecodeAsNil() {
  7185. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  7186. } else {
  7187. if false {
  7188. } else {
  7189. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  7190. }
  7191. }
  7192. yyj84++
  7193. if yyhl84 {
  7194. yyb84 = yyj84 > l
  7195. } else {
  7196. yyb84 = r.CheckBreak()
  7197. }
  7198. if yyb84 {
  7199. r.ReadArrayEnd()
  7200. return
  7201. }
  7202. r.ReadArrayElem()
  7203. if r.TryDecodeAsNil() {
  7204. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  7205. } else {
  7206. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  7207. }
  7208. yyj84++
  7209. if yyhl84 {
  7210. yyb84 = yyj84 > l
  7211. } else {
  7212. yyb84 = r.CheckBreak()
  7213. }
  7214. if yyb84 {
  7215. r.ReadArrayEnd()
  7216. return
  7217. }
  7218. r.ReadArrayElem()
  7219. if r.TryDecodeAsNil() {
  7220. x.TestStrucCommon.Nmap = nil
  7221. } else {
  7222. if false {
  7223. } else {
  7224. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  7225. }
  7226. }
  7227. yyj84++
  7228. if yyhl84 {
  7229. yyb84 = yyj84 > l
  7230. } else {
  7231. yyb84 = r.CheckBreak()
  7232. }
  7233. if yyb84 {
  7234. r.ReadArrayEnd()
  7235. return
  7236. }
  7237. r.ReadArrayElem()
  7238. if r.TryDecodeAsNil() {
  7239. x.TestStrucCommon.Nslice = nil
  7240. } else {
  7241. if false {
  7242. } else {
  7243. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  7244. }
  7245. }
  7246. yyj84++
  7247. if yyhl84 {
  7248. yyb84 = yyj84 > l
  7249. } else {
  7250. yyb84 = r.CheckBreak()
  7251. }
  7252. if yyb84 {
  7253. r.ReadArrayEnd()
  7254. return
  7255. }
  7256. r.ReadArrayElem()
  7257. if r.TryDecodeAsNil() {
  7258. if true && x.TestStrucCommon.Nint64 != nil {
  7259. x.TestStrucCommon.Nint64 = nil
  7260. }
  7261. } else {
  7262. if x.TestStrucCommon.Nint64 == nil {
  7263. x.TestStrucCommon.Nint64 = new(int64)
  7264. }
  7265. if false {
  7266. } else {
  7267. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  7268. }
  7269. }
  7270. yyj84++
  7271. if yyhl84 {
  7272. yyb84 = yyj84 > l
  7273. } else {
  7274. yyb84 = r.CheckBreak()
  7275. }
  7276. if yyb84 {
  7277. r.ReadArrayEnd()
  7278. return
  7279. }
  7280. r.ReadArrayElem()
  7281. if r.TryDecodeAsNil() {
  7282. x.Mtsptr = nil
  7283. } else {
  7284. if false {
  7285. } else {
  7286. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  7287. }
  7288. }
  7289. yyj84++
  7290. if yyhl84 {
  7291. yyb84 = yyj84 > l
  7292. } else {
  7293. yyb84 = r.CheckBreak()
  7294. }
  7295. if yyb84 {
  7296. r.ReadArrayEnd()
  7297. return
  7298. }
  7299. r.ReadArrayElem()
  7300. if r.TryDecodeAsNil() {
  7301. x.Mts = nil
  7302. } else {
  7303. if false {
  7304. } else {
  7305. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  7306. }
  7307. }
  7308. yyj84++
  7309. if yyhl84 {
  7310. yyb84 = yyj84 > l
  7311. } else {
  7312. yyb84 = r.CheckBreak()
  7313. }
  7314. if yyb84 {
  7315. r.ReadArrayEnd()
  7316. return
  7317. }
  7318. r.ReadArrayElem()
  7319. if r.TryDecodeAsNil() {
  7320. x.Its = nil
  7321. } else {
  7322. if false {
  7323. } else {
  7324. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  7325. }
  7326. }
  7327. yyj84++
  7328. if yyhl84 {
  7329. yyb84 = yyj84 > l
  7330. } else {
  7331. yyb84 = r.CheckBreak()
  7332. }
  7333. if yyb84 {
  7334. r.ReadArrayEnd()
  7335. return
  7336. }
  7337. r.ReadArrayElem()
  7338. if r.TryDecodeAsNil() {
  7339. if true && x.Nteststruc != nil {
  7340. x.Nteststruc = nil
  7341. }
  7342. } else {
  7343. if x.Nteststruc == nil {
  7344. x.Nteststruc = new(TestStruc)
  7345. }
  7346. x.Nteststruc.CodecDecodeSelf(d)
  7347. }
  7348. for {
  7349. yyj84++
  7350. if yyhl84 {
  7351. yyb84 = yyj84 > l
  7352. } else {
  7353. yyb84 = r.CheckBreak()
  7354. }
  7355. if yyb84 {
  7356. break
  7357. }
  7358. r.ReadArrayElem()
  7359. z.DecStructFieldNotFound(yyj84-1, "")
  7360. }
  7361. r.ReadArrayEnd()
  7362. }
  7363. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  7364. var h codecSelfer19780
  7365. z, r := GenHelperEncoder(e)
  7366. _, _, _ = h, z, r
  7367. if x == nil {
  7368. r.EncodeNil()
  7369. } else {
  7370. if false {
  7371. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7372. z.EncExtension(x, yyxt1)
  7373. } else {
  7374. yysep2 := !z.EncBinary()
  7375. yy2arr2 := z.EncBasicHandle().StructToArray
  7376. _, _ = yysep2, yy2arr2
  7377. const yyr2 bool = false // struct tag has 'toArray'
  7378. if yyr2 || yy2arr2 {
  7379. r.WriteArrayStart(1)
  7380. } else {
  7381. r.WriteMapStart(1)
  7382. }
  7383. if yyr2 || yy2arr2 {
  7384. r.WriteArrayElem()
  7385. if x.ZZ == nil {
  7386. r.EncodeNil()
  7387. } else {
  7388. if false {
  7389. } else {
  7390. r.EncodeStringBytesRaw([]byte(x.ZZ))
  7391. }
  7392. }
  7393. } else {
  7394. r.WriteMapElemKey()
  7395. if z.IsJSONHandle() {
  7396. z.WriteStr("\"ZZ\"")
  7397. } else {
  7398. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  7399. }
  7400. r.WriteMapElemValue()
  7401. if x.ZZ == nil {
  7402. r.EncodeNil()
  7403. } else {
  7404. if false {
  7405. } else {
  7406. r.EncodeStringBytesRaw([]byte(x.ZZ))
  7407. }
  7408. }
  7409. }
  7410. if yyr2 || yy2arr2 {
  7411. r.WriteArrayEnd()
  7412. } else {
  7413. r.WriteMapEnd()
  7414. }
  7415. }
  7416. }
  7417. }
  7418. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  7419. var h codecSelfer19780
  7420. z, r := GenHelperDecoder(d)
  7421. _, _, _ = h, z, r
  7422. if false {
  7423. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7424. z.DecExtension(x, yyxt1)
  7425. } else {
  7426. yyct2 := r.ContainerType()
  7427. if yyct2 == codecSelferValueTypeMap19780 {
  7428. yyl2 := r.ReadMapStart()
  7429. if yyl2 == 0 {
  7430. r.ReadMapEnd()
  7431. } else {
  7432. x.codecDecodeSelfFromMap(yyl2, d)
  7433. }
  7434. } else if yyct2 == codecSelferValueTypeArray19780 {
  7435. yyl2 := r.ReadArrayStart()
  7436. if yyl2 == 0 {
  7437. r.ReadArrayEnd()
  7438. } else {
  7439. x.codecDecodeSelfFromArray(yyl2, d)
  7440. }
  7441. } else {
  7442. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7443. }
  7444. }
  7445. }
  7446. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  7447. var h codecSelfer19780
  7448. z, r := GenHelperDecoder(d)
  7449. _, _, _ = h, z, r
  7450. var yyhl3 bool = l >= 0
  7451. for yyj3 := 0; ; yyj3++ {
  7452. if yyhl3 {
  7453. if yyj3 >= l {
  7454. break
  7455. }
  7456. } else {
  7457. if r.CheckBreak() {
  7458. break
  7459. }
  7460. }
  7461. r.ReadMapElemKey()
  7462. yys3 := z.StringView(r.DecodeStringAsBytes())
  7463. r.ReadMapElemValue()
  7464. switch yys3 {
  7465. case "ZZ":
  7466. if r.TryDecodeAsNil() {
  7467. x.ZZ = nil
  7468. } else {
  7469. if false {
  7470. } else {
  7471. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  7472. }
  7473. }
  7474. default:
  7475. z.DecStructFieldNotFound(-1, yys3)
  7476. } // end switch yys3
  7477. } // end for yyj3
  7478. r.ReadMapEnd()
  7479. }
  7480. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  7481. var h codecSelfer19780
  7482. z, r := GenHelperDecoder(d)
  7483. _, _, _ = h, z, r
  7484. var yyj6 int
  7485. var yyb6 bool
  7486. var yyhl6 bool = l >= 0
  7487. yyj6++
  7488. if yyhl6 {
  7489. yyb6 = yyj6 > l
  7490. } else {
  7491. yyb6 = r.CheckBreak()
  7492. }
  7493. if yyb6 {
  7494. r.ReadArrayEnd()
  7495. return
  7496. }
  7497. r.ReadArrayElem()
  7498. if r.TryDecodeAsNil() {
  7499. x.ZZ = nil
  7500. } else {
  7501. if false {
  7502. } else {
  7503. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  7504. }
  7505. }
  7506. for {
  7507. yyj6++
  7508. if yyhl6 {
  7509. yyb6 = yyj6 > l
  7510. } else {
  7511. yyb6 = r.CheckBreak()
  7512. }
  7513. if yyb6 {
  7514. break
  7515. }
  7516. r.ReadArrayElem()
  7517. z.DecStructFieldNotFound(yyj6-1, "")
  7518. }
  7519. r.ReadArrayEnd()
  7520. }
  7521. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  7522. var h codecSelfer19780
  7523. z, r := GenHelperEncoder(e)
  7524. _, _, _ = h, z, r
  7525. if x == nil {
  7526. r.EncodeNil()
  7527. } else {
  7528. if false {
  7529. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7530. z.EncExtension(x, yyxt1)
  7531. } else {
  7532. yysep2 := !z.EncBinary()
  7533. yy2arr2 := z.EncBasicHandle().StructToArray
  7534. _, _ = yysep2, yy2arr2
  7535. const yyr2 bool = false // struct tag has 'toArray'
  7536. if yyr2 || yy2arr2 {
  7537. r.WriteArrayStart(1)
  7538. } else {
  7539. r.WriteMapStart(1)
  7540. }
  7541. if yyr2 || yy2arr2 {
  7542. r.WriteArrayElem()
  7543. yy4 := &x.AA
  7544. yy4.CodecEncodeSelf(e)
  7545. } else {
  7546. r.WriteMapElemKey()
  7547. if z.IsJSONHandle() {
  7548. z.WriteStr("\"AA\"")
  7549. } else {
  7550. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  7551. }
  7552. r.WriteMapElemValue()
  7553. yy6 := &x.AA
  7554. yy6.CodecEncodeSelf(e)
  7555. }
  7556. if yyr2 || yy2arr2 {
  7557. r.WriteArrayEnd()
  7558. } else {
  7559. r.WriteMapEnd()
  7560. }
  7561. }
  7562. }
  7563. }
  7564. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  7565. var h codecSelfer19780
  7566. z, r := GenHelperDecoder(d)
  7567. _, _, _ = h, z, r
  7568. if false {
  7569. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7570. z.DecExtension(x, yyxt1)
  7571. } else {
  7572. yyct2 := r.ContainerType()
  7573. if yyct2 == codecSelferValueTypeMap19780 {
  7574. yyl2 := r.ReadMapStart()
  7575. if yyl2 == 0 {
  7576. r.ReadMapEnd()
  7577. } else {
  7578. x.codecDecodeSelfFromMap(yyl2, d)
  7579. }
  7580. } else if yyct2 == codecSelferValueTypeArray19780 {
  7581. yyl2 := r.ReadArrayStart()
  7582. if yyl2 == 0 {
  7583. r.ReadArrayEnd()
  7584. } else {
  7585. x.codecDecodeSelfFromArray(yyl2, d)
  7586. }
  7587. } else {
  7588. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7589. }
  7590. }
  7591. }
  7592. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  7593. var h codecSelfer19780
  7594. z, r := GenHelperDecoder(d)
  7595. _, _, _ = h, z, r
  7596. var yyhl3 bool = l >= 0
  7597. for yyj3 := 0; ; yyj3++ {
  7598. if yyhl3 {
  7599. if yyj3 >= l {
  7600. break
  7601. }
  7602. } else {
  7603. if r.CheckBreak() {
  7604. break
  7605. }
  7606. }
  7607. r.ReadMapElemKey()
  7608. yys3 := z.StringView(r.DecodeStringAsBytes())
  7609. r.ReadMapElemValue()
  7610. switch yys3 {
  7611. case "AA":
  7612. if r.TryDecodeAsNil() {
  7613. x.AA = codecgenA{}
  7614. } else {
  7615. x.AA.CodecDecodeSelf(d)
  7616. }
  7617. default:
  7618. z.DecStructFieldNotFound(-1, yys3)
  7619. } // end switch yys3
  7620. } // end for yyj3
  7621. r.ReadMapEnd()
  7622. }
  7623. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  7624. var h codecSelfer19780
  7625. z, r := GenHelperDecoder(d)
  7626. _, _, _ = h, z, r
  7627. var yyj5 int
  7628. var yyb5 bool
  7629. var yyhl5 bool = l >= 0
  7630. yyj5++
  7631. if yyhl5 {
  7632. yyb5 = yyj5 > l
  7633. } else {
  7634. yyb5 = r.CheckBreak()
  7635. }
  7636. if yyb5 {
  7637. r.ReadArrayEnd()
  7638. return
  7639. }
  7640. r.ReadArrayElem()
  7641. if r.TryDecodeAsNil() {
  7642. x.AA = codecgenA{}
  7643. } else {
  7644. x.AA.CodecDecodeSelf(d)
  7645. }
  7646. for {
  7647. yyj5++
  7648. if yyhl5 {
  7649. yyb5 = yyj5 > l
  7650. } else {
  7651. yyb5 = r.CheckBreak()
  7652. }
  7653. if yyb5 {
  7654. break
  7655. }
  7656. r.ReadArrayElem()
  7657. z.DecStructFieldNotFound(yyj5-1, "")
  7658. }
  7659. r.ReadArrayEnd()
  7660. }
  7661. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  7662. var h codecSelfer19780
  7663. z, r := GenHelperEncoder(e)
  7664. _, _, _ = h, z, r
  7665. if x == nil {
  7666. r.EncodeNil()
  7667. } else {
  7668. if false {
  7669. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7670. z.EncExtension(x, yyxt1)
  7671. } else {
  7672. yysep2 := !z.EncBinary()
  7673. yy2arr2 := z.EncBasicHandle().StructToArray
  7674. _, _ = yysep2, yy2arr2
  7675. const yyr2 bool = false // struct tag has 'toArray'
  7676. var yyq2 = [1]bool{ // should field at this index be written?
  7677. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  7678. }
  7679. _ = yyq2
  7680. if yyr2 || yy2arr2 {
  7681. r.WriteArrayStart(1)
  7682. } else {
  7683. var yynn2 int
  7684. for _, b := range yyq2 {
  7685. if b {
  7686. yynn2++
  7687. }
  7688. }
  7689. r.WriteMapStart(yynn2)
  7690. yynn2 = 0
  7691. }
  7692. if yyr2 || yy2arr2 {
  7693. r.WriteArrayElem()
  7694. if yyq2[0] {
  7695. yy4 := &x.BB
  7696. yy4.CodecEncodeSelf(e)
  7697. } else {
  7698. r.EncodeNil()
  7699. }
  7700. } else {
  7701. if yyq2[0] {
  7702. r.WriteMapElemKey()
  7703. if z.IsJSONHandle() {
  7704. z.WriteStr("\"BB\"")
  7705. } else {
  7706. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  7707. }
  7708. r.WriteMapElemValue()
  7709. yy6 := &x.BB
  7710. yy6.CodecEncodeSelf(e)
  7711. }
  7712. }
  7713. if yyr2 || yy2arr2 {
  7714. r.WriteArrayEnd()
  7715. } else {
  7716. r.WriteMapEnd()
  7717. }
  7718. }
  7719. }
  7720. }
  7721. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  7722. var h codecSelfer19780
  7723. z, r := GenHelperDecoder(d)
  7724. _, _, _ = h, z, r
  7725. if false {
  7726. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7727. z.DecExtension(x, yyxt1)
  7728. } else {
  7729. yyct2 := r.ContainerType()
  7730. if yyct2 == codecSelferValueTypeMap19780 {
  7731. yyl2 := r.ReadMapStart()
  7732. if yyl2 == 0 {
  7733. r.ReadMapEnd()
  7734. } else {
  7735. x.codecDecodeSelfFromMap(yyl2, d)
  7736. }
  7737. } else if yyct2 == codecSelferValueTypeArray19780 {
  7738. yyl2 := r.ReadArrayStart()
  7739. if yyl2 == 0 {
  7740. r.ReadArrayEnd()
  7741. } else {
  7742. x.codecDecodeSelfFromArray(yyl2, d)
  7743. }
  7744. } else {
  7745. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7746. }
  7747. }
  7748. }
  7749. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  7750. var h codecSelfer19780
  7751. z, r := GenHelperDecoder(d)
  7752. _, _, _ = h, z, r
  7753. var yyhl3 bool = l >= 0
  7754. for yyj3 := 0; ; yyj3++ {
  7755. if yyhl3 {
  7756. if yyj3 >= l {
  7757. break
  7758. }
  7759. } else {
  7760. if r.CheckBreak() {
  7761. break
  7762. }
  7763. }
  7764. r.ReadMapElemKey()
  7765. yys3 := z.StringView(r.DecodeStringAsBytes())
  7766. r.ReadMapElemValue()
  7767. switch yys3 {
  7768. case "BB":
  7769. if r.TryDecodeAsNil() {
  7770. x.BB = codecgenB{}
  7771. } else {
  7772. x.BB.CodecDecodeSelf(d)
  7773. }
  7774. default:
  7775. z.DecStructFieldNotFound(-1, yys3)
  7776. } // end switch yys3
  7777. } // end for yyj3
  7778. r.ReadMapEnd()
  7779. }
  7780. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  7781. var h codecSelfer19780
  7782. z, r := GenHelperDecoder(d)
  7783. _, _, _ = h, z, r
  7784. var yyj5 int
  7785. var yyb5 bool
  7786. var yyhl5 bool = l >= 0
  7787. yyj5++
  7788. if yyhl5 {
  7789. yyb5 = yyj5 > l
  7790. } else {
  7791. yyb5 = r.CheckBreak()
  7792. }
  7793. if yyb5 {
  7794. r.ReadArrayEnd()
  7795. return
  7796. }
  7797. r.ReadArrayElem()
  7798. if r.TryDecodeAsNil() {
  7799. x.BB = codecgenB{}
  7800. } else {
  7801. x.BB.CodecDecodeSelf(d)
  7802. }
  7803. for {
  7804. yyj5++
  7805. if yyhl5 {
  7806. yyb5 = yyj5 > l
  7807. } else {
  7808. yyb5 = r.CheckBreak()
  7809. }
  7810. if yyb5 {
  7811. break
  7812. }
  7813. r.ReadArrayElem()
  7814. z.DecStructFieldNotFound(yyj5-1, "")
  7815. }
  7816. r.ReadArrayEnd()
  7817. }
  7818. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  7819. var h codecSelfer19780
  7820. z, r := GenHelperEncoder(e)
  7821. _, _, _ = h, z, r
  7822. if x == nil {
  7823. r.EncodeNil()
  7824. } else {
  7825. if false {
  7826. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7827. z.EncExtension(x, yyxt1)
  7828. } else {
  7829. yysep2 := !z.EncBinary()
  7830. yy2arr2 := z.EncBasicHandle().StructToArray
  7831. _, _ = yysep2, yy2arr2
  7832. const yyr2 bool = false // struct tag has 'toArray'
  7833. if yyr2 || yy2arr2 {
  7834. r.WriteArrayStart(1)
  7835. } else {
  7836. r.WriteMapStart(1)
  7837. }
  7838. if yyr2 || yy2arr2 {
  7839. r.WriteArrayElem()
  7840. if false {
  7841. } else {
  7842. r.EncodeInt(int64(x.TestCodecgenG))
  7843. }
  7844. } else {
  7845. r.WriteMapElemKey()
  7846. if z.IsJSONHandle() {
  7847. z.WriteStr("\"TestCodecgenG\"")
  7848. } else {
  7849. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  7850. }
  7851. r.WriteMapElemValue()
  7852. if false {
  7853. } else {
  7854. r.EncodeInt(int64(x.TestCodecgenG))
  7855. }
  7856. }
  7857. if yyr2 || yy2arr2 {
  7858. r.WriteArrayEnd()
  7859. } else {
  7860. r.WriteMapEnd()
  7861. }
  7862. }
  7863. }
  7864. }
  7865. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  7866. var h codecSelfer19780
  7867. z, r := GenHelperDecoder(d)
  7868. _, _, _ = h, z, r
  7869. if false {
  7870. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7871. z.DecExtension(x, yyxt1)
  7872. } else {
  7873. yyct2 := r.ContainerType()
  7874. if yyct2 == codecSelferValueTypeMap19780 {
  7875. yyl2 := r.ReadMapStart()
  7876. if yyl2 == 0 {
  7877. r.ReadMapEnd()
  7878. } else {
  7879. x.codecDecodeSelfFromMap(yyl2, d)
  7880. }
  7881. } else if yyct2 == codecSelferValueTypeArray19780 {
  7882. yyl2 := r.ReadArrayStart()
  7883. if yyl2 == 0 {
  7884. r.ReadArrayEnd()
  7885. } else {
  7886. x.codecDecodeSelfFromArray(yyl2, d)
  7887. }
  7888. } else {
  7889. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7890. }
  7891. }
  7892. }
  7893. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  7894. var h codecSelfer19780
  7895. z, r := GenHelperDecoder(d)
  7896. _, _, _ = h, z, r
  7897. var yyhl3 bool = l >= 0
  7898. for yyj3 := 0; ; yyj3++ {
  7899. if yyhl3 {
  7900. if yyj3 >= l {
  7901. break
  7902. }
  7903. } else {
  7904. if r.CheckBreak() {
  7905. break
  7906. }
  7907. }
  7908. r.ReadMapElemKey()
  7909. yys3 := z.StringView(r.DecodeStringAsBytes())
  7910. r.ReadMapElemValue()
  7911. switch yys3 {
  7912. case "TestCodecgenG":
  7913. if r.TryDecodeAsNil() {
  7914. x.TestCodecgenG = 0
  7915. } else {
  7916. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7917. }
  7918. default:
  7919. z.DecStructFieldNotFound(-1, yys3)
  7920. } // end switch yys3
  7921. } // end for yyj3
  7922. r.ReadMapEnd()
  7923. }
  7924. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  7925. var h codecSelfer19780
  7926. z, r := GenHelperDecoder(d)
  7927. _, _, _ = h, z, r
  7928. var yyj5 int
  7929. var yyb5 bool
  7930. var yyhl5 bool = l >= 0
  7931. yyj5++
  7932. if yyhl5 {
  7933. yyb5 = yyj5 > l
  7934. } else {
  7935. yyb5 = r.CheckBreak()
  7936. }
  7937. if yyb5 {
  7938. r.ReadArrayEnd()
  7939. return
  7940. }
  7941. r.ReadArrayElem()
  7942. if r.TryDecodeAsNil() {
  7943. x.TestCodecgenG = 0
  7944. } else {
  7945. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7946. }
  7947. for {
  7948. yyj5++
  7949. if yyhl5 {
  7950. yyb5 = yyj5 > l
  7951. } else {
  7952. yyb5 = r.CheckBreak()
  7953. }
  7954. if yyb5 {
  7955. break
  7956. }
  7957. r.ReadArrayElem()
  7958. z.DecStructFieldNotFound(yyj5-1, "")
  7959. }
  7960. r.ReadArrayEnd()
  7961. }
  7962. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  7963. var h codecSelfer19780
  7964. z, r := GenHelperEncoder(e)
  7965. _, _, _ = h, z, r
  7966. if x == nil {
  7967. r.EncodeNil()
  7968. } else {
  7969. if false {
  7970. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7971. z.EncExtension(x, yyxt1)
  7972. } else {
  7973. yysep2 := !z.EncBinary()
  7974. yy2arr2 := z.EncBasicHandle().StructToArray
  7975. _, _ = yysep2, yy2arr2
  7976. const yyr2 bool = false // struct tag has 'toArray'
  7977. if yyr2 || yy2arr2 {
  7978. r.WriteArrayStart(1)
  7979. } else {
  7980. r.WriteMapStart(1)
  7981. }
  7982. if yyr2 || yy2arr2 {
  7983. r.WriteArrayElem()
  7984. if false {
  7985. } else {
  7986. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  7987. }
  7988. } else {
  7989. r.WriteMapElemKey()
  7990. if z.IsJSONHandle() {
  7991. z.WriteStr("\"TestCodecgenG\"")
  7992. } else {
  7993. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  7994. }
  7995. r.WriteMapElemValue()
  7996. if false {
  7997. } else {
  7998. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  7999. }
  8000. }
  8001. if yyr2 || yy2arr2 {
  8002. r.WriteArrayEnd()
  8003. } else {
  8004. r.WriteMapEnd()
  8005. }
  8006. }
  8007. }
  8008. }
  8009. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  8010. var h codecSelfer19780
  8011. z, r := GenHelperDecoder(d)
  8012. _, _, _ = h, z, r
  8013. if false {
  8014. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8015. z.DecExtension(x, yyxt1)
  8016. } else {
  8017. yyct2 := r.ContainerType()
  8018. if yyct2 == codecSelferValueTypeMap19780 {
  8019. yyl2 := r.ReadMapStart()
  8020. if yyl2 == 0 {
  8021. r.ReadMapEnd()
  8022. } else {
  8023. x.codecDecodeSelfFromMap(yyl2, d)
  8024. }
  8025. } else if yyct2 == codecSelferValueTypeArray19780 {
  8026. yyl2 := r.ReadArrayStart()
  8027. if yyl2 == 0 {
  8028. r.ReadArrayEnd()
  8029. } else {
  8030. x.codecDecodeSelfFromArray(yyl2, d)
  8031. }
  8032. } else {
  8033. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8034. }
  8035. }
  8036. }
  8037. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  8038. var h codecSelfer19780
  8039. z, r := GenHelperDecoder(d)
  8040. _, _, _ = h, z, r
  8041. var yyhl3 bool = l >= 0
  8042. for yyj3 := 0; ; yyj3++ {
  8043. if yyhl3 {
  8044. if yyj3 >= l {
  8045. break
  8046. }
  8047. } else {
  8048. if r.CheckBreak() {
  8049. break
  8050. }
  8051. }
  8052. r.ReadMapElemKey()
  8053. yys3 := z.StringView(r.DecodeStringAsBytes())
  8054. r.ReadMapElemValue()
  8055. switch yys3 {
  8056. case "TestCodecgenG":
  8057. if r.TryDecodeAsNil() {
  8058. x.TestCodecgenG.TestCodecgenG = 0
  8059. } else {
  8060. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8061. }
  8062. default:
  8063. z.DecStructFieldNotFound(-1, yys3)
  8064. } // end switch yys3
  8065. } // end for yyj3
  8066. r.ReadMapEnd()
  8067. }
  8068. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  8069. var h codecSelfer19780
  8070. z, r := GenHelperDecoder(d)
  8071. _, _, _ = h, z, r
  8072. var yyj5 int
  8073. var yyb5 bool
  8074. var yyhl5 bool = l >= 0
  8075. yyj5++
  8076. if yyhl5 {
  8077. yyb5 = yyj5 > l
  8078. } else {
  8079. yyb5 = r.CheckBreak()
  8080. }
  8081. if yyb5 {
  8082. r.ReadArrayEnd()
  8083. return
  8084. }
  8085. r.ReadArrayElem()
  8086. if r.TryDecodeAsNil() {
  8087. x.TestCodecgenG.TestCodecgenG = 0
  8088. } else {
  8089. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8090. }
  8091. for {
  8092. yyj5++
  8093. if yyhl5 {
  8094. yyb5 = yyj5 > l
  8095. } else {
  8096. yyb5 = r.CheckBreak()
  8097. }
  8098. if yyb5 {
  8099. break
  8100. }
  8101. r.ReadArrayElem()
  8102. z.DecStructFieldNotFound(yyj5-1, "")
  8103. }
  8104. r.ReadArrayEnd()
  8105. }
  8106. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  8107. var h codecSelfer19780
  8108. z, r := GenHelperEncoder(e)
  8109. _, _, _ = h, z, r
  8110. if x == nil {
  8111. r.EncodeNil()
  8112. } else {
  8113. if false {
  8114. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8115. z.EncExtension(x, yyxt1)
  8116. } else {
  8117. yysep2 := !z.EncBinary()
  8118. yy2arr2 := z.EncBasicHandle().StructToArray
  8119. _, _ = yysep2, yy2arr2
  8120. const yyr2 bool = false // struct tag has 'toArray'
  8121. if yyr2 || yy2arr2 {
  8122. r.WriteArrayStart(1)
  8123. } else {
  8124. r.WriteMapStart(1)
  8125. }
  8126. if yyr2 || yy2arr2 {
  8127. r.WriteArrayElem()
  8128. if false {
  8129. } else {
  8130. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  8131. }
  8132. } else {
  8133. r.WriteMapElemKey()
  8134. if z.IsJSONHandle() {
  8135. z.WriteStr("\"TestCodecgenG\"")
  8136. } else {
  8137. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  8138. }
  8139. r.WriteMapElemValue()
  8140. if false {
  8141. } else {
  8142. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  8143. }
  8144. }
  8145. if yyr2 || yy2arr2 {
  8146. r.WriteArrayEnd()
  8147. } else {
  8148. r.WriteMapEnd()
  8149. }
  8150. }
  8151. }
  8152. }
  8153. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  8154. var h codecSelfer19780
  8155. z, r := GenHelperDecoder(d)
  8156. _, _, _ = h, z, r
  8157. if false {
  8158. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8159. z.DecExtension(x, yyxt1)
  8160. } else {
  8161. yyct2 := r.ContainerType()
  8162. if yyct2 == codecSelferValueTypeMap19780 {
  8163. yyl2 := r.ReadMapStart()
  8164. if yyl2 == 0 {
  8165. r.ReadMapEnd()
  8166. } else {
  8167. x.codecDecodeSelfFromMap(yyl2, d)
  8168. }
  8169. } else if yyct2 == codecSelferValueTypeArray19780 {
  8170. yyl2 := r.ReadArrayStart()
  8171. if yyl2 == 0 {
  8172. r.ReadArrayEnd()
  8173. } else {
  8174. x.codecDecodeSelfFromArray(yyl2, d)
  8175. }
  8176. } else {
  8177. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8178. }
  8179. }
  8180. }
  8181. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  8182. var h codecSelfer19780
  8183. z, r := GenHelperDecoder(d)
  8184. _, _, _ = h, z, r
  8185. var yyhl3 bool = l >= 0
  8186. for yyj3 := 0; ; yyj3++ {
  8187. if yyhl3 {
  8188. if yyj3 >= l {
  8189. break
  8190. }
  8191. } else {
  8192. if r.CheckBreak() {
  8193. break
  8194. }
  8195. }
  8196. r.ReadMapElemKey()
  8197. yys3 := z.StringView(r.DecodeStringAsBytes())
  8198. r.ReadMapElemValue()
  8199. switch yys3 {
  8200. case "TestCodecgenG":
  8201. if r.TryDecodeAsNil() {
  8202. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  8203. } else {
  8204. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8205. }
  8206. default:
  8207. z.DecStructFieldNotFound(-1, yys3)
  8208. } // end switch yys3
  8209. } // end for yyj3
  8210. r.ReadMapEnd()
  8211. }
  8212. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  8213. var h codecSelfer19780
  8214. z, r := GenHelperDecoder(d)
  8215. _, _, _ = h, z, r
  8216. var yyj5 int
  8217. var yyb5 bool
  8218. var yyhl5 bool = l >= 0
  8219. yyj5++
  8220. if yyhl5 {
  8221. yyb5 = yyj5 > l
  8222. } else {
  8223. yyb5 = r.CheckBreak()
  8224. }
  8225. if yyb5 {
  8226. r.ReadArrayEnd()
  8227. return
  8228. }
  8229. r.ReadArrayElem()
  8230. if r.TryDecodeAsNil() {
  8231. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  8232. } else {
  8233. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8234. }
  8235. for {
  8236. yyj5++
  8237. if yyhl5 {
  8238. yyb5 = yyj5 > l
  8239. } else {
  8240. yyb5 = r.CheckBreak()
  8241. }
  8242. if yyb5 {
  8243. break
  8244. }
  8245. r.ReadArrayElem()
  8246. z.DecStructFieldNotFound(yyj5-1, "")
  8247. }
  8248. r.ReadArrayEnd()
  8249. }
  8250. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  8251. var h codecSelfer19780
  8252. z, r := GenHelperEncoder(e)
  8253. _, _, _ = h, z, r
  8254. if x == nil {
  8255. r.EncodeNil()
  8256. } else {
  8257. if false {
  8258. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8259. z.EncExtension(x, yyxt1)
  8260. } else {
  8261. yysep2 := !z.EncBinary()
  8262. yy2arr2 := z.EncBasicHandle().StructToArray
  8263. _, _ = yysep2, yy2arr2
  8264. const yyr2 bool = false // struct tag has 'toArray'
  8265. if yyr2 || yy2arr2 {
  8266. r.WriteArrayStart(2)
  8267. } else {
  8268. r.WriteMapStart(2)
  8269. }
  8270. if yyr2 || yy2arr2 {
  8271. r.WriteArrayElem()
  8272. if false {
  8273. } else {
  8274. r.EncodeInt(int64(x.X))
  8275. }
  8276. } else {
  8277. r.WriteMapElemKey()
  8278. if z.IsJSONHandle() {
  8279. z.WriteStr("\"X\"")
  8280. } else {
  8281. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  8282. }
  8283. r.WriteMapElemValue()
  8284. if false {
  8285. } else {
  8286. r.EncodeInt(int64(x.X))
  8287. }
  8288. }
  8289. if yyr2 || yy2arr2 {
  8290. r.WriteArrayElem()
  8291. if false {
  8292. } else {
  8293. if z.EncBasicHandle().StringToRaw {
  8294. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  8295. } else {
  8296. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  8297. }
  8298. }
  8299. } else {
  8300. r.WriteMapElemKey()
  8301. if z.IsJSONHandle() {
  8302. z.WriteStr("\"Y\"")
  8303. } else {
  8304. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  8305. }
  8306. r.WriteMapElemValue()
  8307. if false {
  8308. } else {
  8309. if z.EncBasicHandle().StringToRaw {
  8310. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  8311. } else {
  8312. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  8313. }
  8314. }
  8315. }
  8316. if yyr2 || yy2arr2 {
  8317. r.WriteArrayEnd()
  8318. } else {
  8319. r.WriteMapEnd()
  8320. }
  8321. }
  8322. }
  8323. }
  8324. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  8325. var h codecSelfer19780
  8326. z, r := GenHelperDecoder(d)
  8327. _, _, _ = h, z, r
  8328. if false {
  8329. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8330. z.DecExtension(x, yyxt1)
  8331. } else {
  8332. yyct2 := r.ContainerType()
  8333. if yyct2 == codecSelferValueTypeMap19780 {
  8334. yyl2 := r.ReadMapStart()
  8335. if yyl2 == 0 {
  8336. r.ReadMapEnd()
  8337. } else {
  8338. x.codecDecodeSelfFromMap(yyl2, d)
  8339. }
  8340. } else if yyct2 == codecSelferValueTypeArray19780 {
  8341. yyl2 := r.ReadArrayStart()
  8342. if yyl2 == 0 {
  8343. r.ReadArrayEnd()
  8344. } else {
  8345. x.codecDecodeSelfFromArray(yyl2, d)
  8346. }
  8347. } else {
  8348. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8349. }
  8350. }
  8351. }
  8352. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  8353. var h codecSelfer19780
  8354. z, r := GenHelperDecoder(d)
  8355. _, _, _ = h, z, r
  8356. var yyhl3 bool = l >= 0
  8357. for yyj3 := 0; ; yyj3++ {
  8358. if yyhl3 {
  8359. if yyj3 >= l {
  8360. break
  8361. }
  8362. } else {
  8363. if r.CheckBreak() {
  8364. break
  8365. }
  8366. }
  8367. r.ReadMapElemKey()
  8368. yys3 := z.StringView(r.DecodeStringAsBytes())
  8369. r.ReadMapElemValue()
  8370. switch yys3 {
  8371. case "X":
  8372. if r.TryDecodeAsNil() {
  8373. x.X = 0
  8374. } else {
  8375. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8376. }
  8377. case "Y":
  8378. if r.TryDecodeAsNil() {
  8379. x.Y = ""
  8380. } else {
  8381. x.Y = (string)(r.DecodeString())
  8382. }
  8383. default:
  8384. z.DecStructFieldNotFound(-1, yys3)
  8385. } // end switch yys3
  8386. } // end for yyj3
  8387. r.ReadMapEnd()
  8388. }
  8389. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  8390. var h codecSelfer19780
  8391. z, r := GenHelperDecoder(d)
  8392. _, _, _ = h, z, r
  8393. var yyj6 int
  8394. var yyb6 bool
  8395. var yyhl6 bool = l >= 0
  8396. yyj6++
  8397. if yyhl6 {
  8398. yyb6 = yyj6 > l
  8399. } else {
  8400. yyb6 = r.CheckBreak()
  8401. }
  8402. if yyb6 {
  8403. r.ReadArrayEnd()
  8404. return
  8405. }
  8406. r.ReadArrayElem()
  8407. if r.TryDecodeAsNil() {
  8408. x.X = 0
  8409. } else {
  8410. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8411. }
  8412. yyj6++
  8413. if yyhl6 {
  8414. yyb6 = yyj6 > l
  8415. } else {
  8416. yyb6 = r.CheckBreak()
  8417. }
  8418. if yyb6 {
  8419. r.ReadArrayEnd()
  8420. return
  8421. }
  8422. r.ReadArrayElem()
  8423. if r.TryDecodeAsNil() {
  8424. x.Y = ""
  8425. } else {
  8426. x.Y = (string)(r.DecodeString())
  8427. }
  8428. for {
  8429. yyj6++
  8430. if yyhl6 {
  8431. yyb6 = yyj6 > l
  8432. } else {
  8433. yyb6 = r.CheckBreak()
  8434. }
  8435. if yyb6 {
  8436. break
  8437. }
  8438. r.ReadArrayElem()
  8439. z.DecStructFieldNotFound(yyj6-1, "")
  8440. }
  8441. r.ReadArrayEnd()
  8442. }
  8443. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  8444. var h codecSelfer19780
  8445. z, r := GenHelperEncoder(e)
  8446. _, _, _ = h, z, r
  8447. if x == nil {
  8448. r.EncodeNil()
  8449. } else {
  8450. if false {
  8451. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8452. z.EncExtension(x, yyxt1)
  8453. } else {
  8454. yysep2 := !z.EncBinary()
  8455. yy2arr2 := z.EncBasicHandle().StructToArray
  8456. _, _ = yysep2, yy2arr2
  8457. const yyr2 bool = false // struct tag has 'toArray'
  8458. if yyr2 || yy2arr2 {
  8459. r.WriteArrayStart(2)
  8460. } else {
  8461. r.WriteMapStart(2)
  8462. }
  8463. if yyr2 || yy2arr2 {
  8464. r.WriteArrayElem()
  8465. if false {
  8466. } else {
  8467. r.EncodeInt(int64(x.X))
  8468. }
  8469. } else {
  8470. r.WriteMapElemKey()
  8471. if z.IsJSONHandle() {
  8472. z.WriteStr("\"X\"")
  8473. } else {
  8474. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  8475. }
  8476. r.WriteMapElemValue()
  8477. if false {
  8478. } else {
  8479. r.EncodeInt(int64(x.X))
  8480. }
  8481. }
  8482. if yyr2 || yy2arr2 {
  8483. r.WriteArrayElem()
  8484. if false {
  8485. } else {
  8486. r.EncodeUint(uint64(x.Y))
  8487. }
  8488. } else {
  8489. r.WriteMapElemKey()
  8490. if z.IsJSONHandle() {
  8491. z.WriteStr("\"Y\"")
  8492. } else {
  8493. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  8494. }
  8495. r.WriteMapElemValue()
  8496. if false {
  8497. } else {
  8498. r.EncodeUint(uint64(x.Y))
  8499. }
  8500. }
  8501. if yyr2 || yy2arr2 {
  8502. r.WriteArrayEnd()
  8503. } else {
  8504. r.WriteMapEnd()
  8505. }
  8506. }
  8507. }
  8508. }
  8509. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  8510. var h codecSelfer19780
  8511. z, r := GenHelperDecoder(d)
  8512. _, _, _ = h, z, r
  8513. if false {
  8514. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8515. z.DecExtension(x, yyxt1)
  8516. } else {
  8517. yyct2 := r.ContainerType()
  8518. if yyct2 == codecSelferValueTypeMap19780 {
  8519. yyl2 := r.ReadMapStart()
  8520. if yyl2 == 0 {
  8521. r.ReadMapEnd()
  8522. } else {
  8523. x.codecDecodeSelfFromMap(yyl2, d)
  8524. }
  8525. } else if yyct2 == codecSelferValueTypeArray19780 {
  8526. yyl2 := r.ReadArrayStart()
  8527. if yyl2 == 0 {
  8528. r.ReadArrayEnd()
  8529. } else {
  8530. x.codecDecodeSelfFromArray(yyl2, d)
  8531. }
  8532. } else {
  8533. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8534. }
  8535. }
  8536. }
  8537. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  8538. var h codecSelfer19780
  8539. z, r := GenHelperDecoder(d)
  8540. _, _, _ = h, z, r
  8541. var yyhl3 bool = l >= 0
  8542. for yyj3 := 0; ; yyj3++ {
  8543. if yyhl3 {
  8544. if yyj3 >= l {
  8545. break
  8546. }
  8547. } else {
  8548. if r.CheckBreak() {
  8549. break
  8550. }
  8551. }
  8552. r.ReadMapElemKey()
  8553. yys3 := z.StringView(r.DecodeStringAsBytes())
  8554. r.ReadMapElemValue()
  8555. switch yys3 {
  8556. case "X":
  8557. if r.TryDecodeAsNil() {
  8558. x.X = 0
  8559. } else {
  8560. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8561. }
  8562. case "Y":
  8563. if r.TryDecodeAsNil() {
  8564. x.Y = 0
  8565. } else {
  8566. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  8567. }
  8568. default:
  8569. z.DecStructFieldNotFound(-1, yys3)
  8570. } // end switch yys3
  8571. } // end for yyj3
  8572. r.ReadMapEnd()
  8573. }
  8574. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  8575. var h codecSelfer19780
  8576. z, r := GenHelperDecoder(d)
  8577. _, _, _ = h, z, r
  8578. var yyj6 int
  8579. var yyb6 bool
  8580. var yyhl6 bool = l >= 0
  8581. yyj6++
  8582. if yyhl6 {
  8583. yyb6 = yyj6 > l
  8584. } else {
  8585. yyb6 = r.CheckBreak()
  8586. }
  8587. if yyb6 {
  8588. r.ReadArrayEnd()
  8589. return
  8590. }
  8591. r.ReadArrayElem()
  8592. if r.TryDecodeAsNil() {
  8593. x.X = 0
  8594. } else {
  8595. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8596. }
  8597. yyj6++
  8598. if yyhl6 {
  8599. yyb6 = yyj6 > l
  8600. } else {
  8601. yyb6 = r.CheckBreak()
  8602. }
  8603. if yyb6 {
  8604. r.ReadArrayEnd()
  8605. return
  8606. }
  8607. r.ReadArrayElem()
  8608. if r.TryDecodeAsNil() {
  8609. x.Y = 0
  8610. } else {
  8611. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  8612. }
  8613. for {
  8614. yyj6++
  8615. if yyhl6 {
  8616. yyb6 = yyj6 > l
  8617. } else {
  8618. yyb6 = r.CheckBreak()
  8619. }
  8620. if yyb6 {
  8621. break
  8622. }
  8623. r.ReadArrayElem()
  8624. z.DecStructFieldNotFound(yyj6-1, "")
  8625. }
  8626. r.ReadArrayEnd()
  8627. }
  8628. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  8629. var h codecSelfer19780
  8630. z, r := GenHelperEncoder(e)
  8631. _, _, _ = h, z, r
  8632. if x == nil {
  8633. r.EncodeNil()
  8634. } else {
  8635. if false {
  8636. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8637. z.EncExtension(x, yyxt1)
  8638. } else {
  8639. yysep2 := !z.EncBinary()
  8640. yy2arr2 := z.EncBasicHandle().StructToArray
  8641. _, _ = yysep2, yy2arr2
  8642. const yyr2 bool = false // struct tag has 'toArray'
  8643. if yyr2 || yy2arr2 {
  8644. r.WriteArrayStart(2)
  8645. } else {
  8646. r.WriteMapStart(2)
  8647. }
  8648. if yyr2 || yy2arr2 {
  8649. r.WriteArrayElem()
  8650. if false {
  8651. } else {
  8652. r.EncodeInt(int64(x.codecgenK.X))
  8653. }
  8654. } else {
  8655. r.WriteMapElemKey()
  8656. if z.IsJSONHandle() {
  8657. z.WriteStr("\"X\"")
  8658. } else {
  8659. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  8660. }
  8661. r.WriteMapElemValue()
  8662. if false {
  8663. } else {
  8664. r.EncodeInt(int64(x.codecgenK.X))
  8665. }
  8666. }
  8667. if yyr2 || yy2arr2 {
  8668. r.WriteArrayElem()
  8669. if false {
  8670. } else {
  8671. if z.EncBasicHandle().StringToRaw {
  8672. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  8673. } else {
  8674. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  8675. }
  8676. }
  8677. } else {
  8678. r.WriteMapElemKey()
  8679. if z.IsJSONHandle() {
  8680. z.WriteStr("\"Y\"")
  8681. } else {
  8682. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  8683. }
  8684. r.WriteMapElemValue()
  8685. if false {
  8686. } else {
  8687. if z.EncBasicHandle().StringToRaw {
  8688. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  8689. } else {
  8690. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  8691. }
  8692. }
  8693. }
  8694. if yyr2 || yy2arr2 {
  8695. r.WriteArrayEnd()
  8696. } else {
  8697. r.WriteMapEnd()
  8698. }
  8699. }
  8700. }
  8701. }
  8702. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  8703. var h codecSelfer19780
  8704. z, r := GenHelperDecoder(d)
  8705. _, _, _ = h, z, r
  8706. if false {
  8707. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8708. z.DecExtension(x, yyxt1)
  8709. } else {
  8710. yyct2 := r.ContainerType()
  8711. if yyct2 == codecSelferValueTypeMap19780 {
  8712. yyl2 := r.ReadMapStart()
  8713. if yyl2 == 0 {
  8714. r.ReadMapEnd()
  8715. } else {
  8716. x.codecDecodeSelfFromMap(yyl2, d)
  8717. }
  8718. } else if yyct2 == codecSelferValueTypeArray19780 {
  8719. yyl2 := r.ReadArrayStart()
  8720. if yyl2 == 0 {
  8721. r.ReadArrayEnd()
  8722. } else {
  8723. x.codecDecodeSelfFromArray(yyl2, d)
  8724. }
  8725. } else {
  8726. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8727. }
  8728. }
  8729. }
  8730. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  8731. var h codecSelfer19780
  8732. z, r := GenHelperDecoder(d)
  8733. _, _, _ = h, z, r
  8734. var yyhl3 bool = l >= 0
  8735. for yyj3 := 0; ; yyj3++ {
  8736. if yyhl3 {
  8737. if yyj3 >= l {
  8738. break
  8739. }
  8740. } else {
  8741. if r.CheckBreak() {
  8742. break
  8743. }
  8744. }
  8745. r.ReadMapElemKey()
  8746. yys3 := z.StringView(r.DecodeStringAsBytes())
  8747. r.ReadMapElemValue()
  8748. switch yys3 {
  8749. case "X":
  8750. if r.TryDecodeAsNil() {
  8751. x.codecgenK.X = 0
  8752. } else {
  8753. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8754. }
  8755. case "Y":
  8756. if r.TryDecodeAsNil() {
  8757. x.codecgenK.Y = ""
  8758. } else {
  8759. x.codecgenK.Y = (string)(r.DecodeString())
  8760. }
  8761. default:
  8762. z.DecStructFieldNotFound(-1, yys3)
  8763. } // end switch yys3
  8764. } // end for yyj3
  8765. r.ReadMapEnd()
  8766. }
  8767. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  8768. var h codecSelfer19780
  8769. z, r := GenHelperDecoder(d)
  8770. _, _, _ = h, z, r
  8771. var yyj6 int
  8772. var yyb6 bool
  8773. var yyhl6 bool = l >= 0
  8774. yyj6++
  8775. if yyhl6 {
  8776. yyb6 = yyj6 > l
  8777. } else {
  8778. yyb6 = r.CheckBreak()
  8779. }
  8780. if yyb6 {
  8781. r.ReadArrayEnd()
  8782. return
  8783. }
  8784. r.ReadArrayElem()
  8785. if r.TryDecodeAsNil() {
  8786. x.codecgenK.X = 0
  8787. } else {
  8788. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8789. }
  8790. yyj6++
  8791. if yyhl6 {
  8792. yyb6 = yyj6 > l
  8793. } else {
  8794. yyb6 = r.CheckBreak()
  8795. }
  8796. if yyb6 {
  8797. r.ReadArrayEnd()
  8798. return
  8799. }
  8800. r.ReadArrayElem()
  8801. if r.TryDecodeAsNil() {
  8802. x.codecgenK.Y = ""
  8803. } else {
  8804. x.codecgenK.Y = (string)(r.DecodeString())
  8805. }
  8806. for {
  8807. yyj6++
  8808. if yyhl6 {
  8809. yyb6 = yyj6 > l
  8810. } else {
  8811. yyb6 = r.CheckBreak()
  8812. }
  8813. if yyb6 {
  8814. break
  8815. }
  8816. r.ReadArrayElem()
  8817. z.DecStructFieldNotFound(yyj6-1, "")
  8818. }
  8819. r.ReadArrayEnd()
  8820. }
  8821. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  8822. var h codecSelfer19780
  8823. z, r := GenHelperEncoder(e)
  8824. _, _, _ = h, z, r
  8825. if false {
  8826. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8827. z.EncExtension(x, yyxt1)
  8828. } else {
  8829. r.EncodeBool(bool(x))
  8830. }
  8831. }
  8832. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  8833. var h codecSelfer19780
  8834. z, r := GenHelperDecoder(d)
  8835. _, _, _ = h, z, r
  8836. if false {
  8837. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8838. z.DecExtension(x, yyxt1)
  8839. } else {
  8840. *x = (Bbool)(r.DecodeBool())
  8841. }
  8842. }
  8843. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  8844. var h codecSelfer19780
  8845. z, r := GenHelperEncoder(e)
  8846. _, _, _ = h, z, r
  8847. if x == nil {
  8848. r.EncodeNil()
  8849. } else {
  8850. if false {
  8851. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8852. z.EncExtension(x, yyxt1)
  8853. } else {
  8854. h.encAarray((*Aarray)(x), e)
  8855. }
  8856. }
  8857. }
  8858. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  8859. var h codecSelfer19780
  8860. z, r := GenHelperDecoder(d)
  8861. _, _, _ = h, z, r
  8862. if false {
  8863. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8864. z.DecExtension(x, yyxt1)
  8865. } else {
  8866. h.decAarray((*Aarray)(x), d)
  8867. }
  8868. }
  8869. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  8870. var h codecSelfer19780
  8871. z, r := GenHelperEncoder(e)
  8872. _, _, _ = h, z, r
  8873. if false {
  8874. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8875. z.EncExtension(x, yyxt1)
  8876. } else {
  8877. if z.EncBasicHandle().StringToRaw {
  8878. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  8879. } else {
  8880. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  8881. }
  8882. }
  8883. }
  8884. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  8885. var h codecSelfer19780
  8886. z, r := GenHelperDecoder(d)
  8887. _, _, _ = h, z, r
  8888. if false {
  8889. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8890. z.DecExtension(x, yyxt1)
  8891. } else {
  8892. *x = (Sstring)(r.DecodeString())
  8893. }
  8894. }
  8895. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  8896. var h codecSelfer19780
  8897. z, r := GenHelperEncoder(e)
  8898. _, _, _ = h, z, r
  8899. if x == nil {
  8900. r.EncodeNil()
  8901. } else {
  8902. if false {
  8903. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8904. z.EncExtension(x, yyxt1)
  8905. } else {
  8906. yysep2 := !z.EncBinary()
  8907. yy2arr2 := z.EncBasicHandle().StructToArray
  8908. _, _ = yysep2, yy2arr2
  8909. const yyr2 bool = false // struct tag has 'toArray'
  8910. if yyr2 || yy2arr2 {
  8911. r.WriteArrayStart(1)
  8912. } else {
  8913. r.WriteMapStart(1)
  8914. }
  8915. if yyr2 || yy2arr2 {
  8916. r.WriteArrayElem()
  8917. if false {
  8918. } else {
  8919. r.EncodeInt(int64(x.A))
  8920. }
  8921. } else {
  8922. r.WriteMapElemKey()
  8923. if z.IsJSONHandle() {
  8924. z.WriteStr("\"A\"")
  8925. } else {
  8926. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8927. }
  8928. r.WriteMapElemValue()
  8929. if false {
  8930. } else {
  8931. r.EncodeInt(int64(x.A))
  8932. }
  8933. }
  8934. if yyr2 || yy2arr2 {
  8935. r.WriteArrayEnd()
  8936. } else {
  8937. r.WriteMapEnd()
  8938. }
  8939. }
  8940. }
  8941. }
  8942. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  8943. var h codecSelfer19780
  8944. z, r := GenHelperDecoder(d)
  8945. _, _, _ = h, z, r
  8946. if false {
  8947. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8948. z.DecExtension(x, yyxt1)
  8949. } else {
  8950. yyct2 := r.ContainerType()
  8951. if yyct2 == codecSelferValueTypeMap19780 {
  8952. yyl2 := r.ReadMapStart()
  8953. if yyl2 == 0 {
  8954. r.ReadMapEnd()
  8955. } else {
  8956. x.codecDecodeSelfFromMap(yyl2, d)
  8957. }
  8958. } else if yyct2 == codecSelferValueTypeArray19780 {
  8959. yyl2 := r.ReadArrayStart()
  8960. if yyl2 == 0 {
  8961. r.ReadArrayEnd()
  8962. } else {
  8963. x.codecDecodeSelfFromArray(yyl2, d)
  8964. }
  8965. } else {
  8966. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8967. }
  8968. }
  8969. }
  8970. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  8971. var h codecSelfer19780
  8972. z, r := GenHelperDecoder(d)
  8973. _, _, _ = h, z, r
  8974. var yyhl3 bool = l >= 0
  8975. for yyj3 := 0; ; yyj3++ {
  8976. if yyhl3 {
  8977. if yyj3 >= l {
  8978. break
  8979. }
  8980. } else {
  8981. if r.CheckBreak() {
  8982. break
  8983. }
  8984. }
  8985. r.ReadMapElemKey()
  8986. yys3 := z.StringView(r.DecodeStringAsBytes())
  8987. r.ReadMapElemValue()
  8988. switch yys3 {
  8989. case "A":
  8990. if r.TryDecodeAsNil() {
  8991. x.A = 0
  8992. } else {
  8993. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8994. }
  8995. default:
  8996. z.DecStructFieldNotFound(-1, yys3)
  8997. } // end switch yys3
  8998. } // end for yyj3
  8999. r.ReadMapEnd()
  9000. }
  9001. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  9002. var h codecSelfer19780
  9003. z, r := GenHelperDecoder(d)
  9004. _, _, _ = h, z, r
  9005. var yyj5 int
  9006. var yyb5 bool
  9007. var yyhl5 bool = l >= 0
  9008. yyj5++
  9009. if yyhl5 {
  9010. yyb5 = yyj5 > l
  9011. } else {
  9012. yyb5 = r.CheckBreak()
  9013. }
  9014. if yyb5 {
  9015. r.ReadArrayEnd()
  9016. return
  9017. }
  9018. r.ReadArrayElem()
  9019. if r.TryDecodeAsNil() {
  9020. x.A = 0
  9021. } else {
  9022. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9023. }
  9024. for {
  9025. yyj5++
  9026. if yyhl5 {
  9027. yyb5 = yyj5 > l
  9028. } else {
  9029. yyb5 = r.CheckBreak()
  9030. }
  9031. if yyb5 {
  9032. break
  9033. }
  9034. r.ReadArrayElem()
  9035. z.DecStructFieldNotFound(yyj5-1, "")
  9036. }
  9037. r.ReadArrayEnd()
  9038. }
  9039. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  9040. var h codecSelfer19780
  9041. z, r := GenHelperEncoder(e)
  9042. _, _, _ = h, z, r
  9043. if x == nil {
  9044. r.EncodeNil()
  9045. } else {
  9046. if false {
  9047. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9048. z.EncExtension(x, yyxt1)
  9049. } else {
  9050. yysep2 := !z.EncBinary()
  9051. yy2arr2 := z.EncBasicHandle().StructToArray
  9052. _, _ = yysep2, yy2arr2
  9053. const yyr2 bool = false // struct tag has 'toArray'
  9054. if yyr2 || yy2arr2 {
  9055. r.WriteArrayStart(5)
  9056. } else {
  9057. r.WriteMapStart(5)
  9058. }
  9059. if yyr2 || yy2arr2 {
  9060. r.WriteArrayElem()
  9061. if false {
  9062. } else {
  9063. r.EncodeInt(int64(x.A))
  9064. }
  9065. } else {
  9066. r.WriteMapElemKey()
  9067. if z.IsJSONHandle() {
  9068. z.WriteStr("\"A\"")
  9069. } else {
  9070. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  9071. }
  9072. r.WriteMapElemValue()
  9073. if false {
  9074. } else {
  9075. r.EncodeInt(int64(x.A))
  9076. }
  9077. }
  9078. if yyr2 || yy2arr2 {
  9079. r.WriteArrayElem()
  9080. if false {
  9081. } else {
  9082. r.EncodeBool(bool(x.B))
  9083. }
  9084. } else {
  9085. r.WriteMapElemKey()
  9086. if z.IsJSONHandle() {
  9087. z.WriteStr("\"B\"")
  9088. } else {
  9089. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9090. }
  9091. r.WriteMapElemValue()
  9092. if false {
  9093. } else {
  9094. r.EncodeBool(bool(x.B))
  9095. }
  9096. }
  9097. var yyn9 bool
  9098. if x.Ssmallptr == nil {
  9099. yyn9 = true
  9100. goto LABEL9
  9101. }
  9102. LABEL9:
  9103. if yyr2 || yy2arr2 {
  9104. if yyn9 {
  9105. r.WriteArrayElem()
  9106. r.EncodeNil()
  9107. } else {
  9108. r.WriteArrayElem()
  9109. if x.Ssmallptr == nil {
  9110. r.EncodeNil()
  9111. } else {
  9112. x.Ssmallptr.CodecEncodeSelf(e)
  9113. }
  9114. }
  9115. } else {
  9116. r.WriteMapElemKey()
  9117. if z.IsJSONHandle() {
  9118. z.WriteStr("\"Ssmallptr\"")
  9119. } else {
  9120. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  9121. }
  9122. r.WriteMapElemValue()
  9123. if yyn9 {
  9124. r.EncodeNil()
  9125. } else {
  9126. if x.Ssmallptr == nil {
  9127. r.EncodeNil()
  9128. } else {
  9129. x.Ssmallptr.CodecEncodeSelf(e)
  9130. }
  9131. }
  9132. }
  9133. var yyn12 bool
  9134. if x.Ssmall == nil {
  9135. yyn12 = true
  9136. goto LABEL12
  9137. }
  9138. LABEL12:
  9139. if yyr2 || yy2arr2 {
  9140. if yyn12 {
  9141. r.WriteArrayElem()
  9142. r.EncodeNil()
  9143. } else {
  9144. r.WriteArrayElem()
  9145. if x.Ssmall == nil {
  9146. r.EncodeNil()
  9147. } else {
  9148. x.Ssmall.CodecEncodeSelf(e)
  9149. }
  9150. }
  9151. } else {
  9152. r.WriteMapElemKey()
  9153. if z.IsJSONHandle() {
  9154. z.WriteStr("\"Ssmall\"")
  9155. } else {
  9156. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  9157. }
  9158. r.WriteMapElemValue()
  9159. if yyn12 {
  9160. r.EncodeNil()
  9161. } else {
  9162. if x.Ssmall == nil {
  9163. r.EncodeNil()
  9164. } else {
  9165. x.Ssmall.CodecEncodeSelf(e)
  9166. }
  9167. }
  9168. }
  9169. var yyn15 bool
  9170. if x.Sptr == nil {
  9171. yyn15 = true
  9172. goto LABEL15
  9173. }
  9174. LABEL15:
  9175. if yyr2 || yy2arr2 {
  9176. if yyn15 {
  9177. r.WriteArrayElem()
  9178. r.EncodeNil()
  9179. } else {
  9180. r.WriteArrayElem()
  9181. if x.Sptr == nil {
  9182. r.EncodeNil()
  9183. } else {
  9184. x.Sptr.CodecEncodeSelf(e)
  9185. }
  9186. }
  9187. } else {
  9188. r.WriteMapElemKey()
  9189. if z.IsJSONHandle() {
  9190. z.WriteStr("\"Sptr\"")
  9191. } else {
  9192. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  9193. }
  9194. r.WriteMapElemValue()
  9195. if yyn15 {
  9196. r.EncodeNil()
  9197. } else {
  9198. if x.Sptr == nil {
  9199. r.EncodeNil()
  9200. } else {
  9201. x.Sptr.CodecEncodeSelf(e)
  9202. }
  9203. }
  9204. }
  9205. if yyr2 || yy2arr2 {
  9206. r.WriteArrayEnd()
  9207. } else {
  9208. r.WriteMapEnd()
  9209. }
  9210. }
  9211. }
  9212. }
  9213. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  9214. var h codecSelfer19780
  9215. z, r := GenHelperDecoder(d)
  9216. _, _, _ = h, z, r
  9217. if false {
  9218. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9219. z.DecExtension(x, yyxt1)
  9220. } else {
  9221. yyct2 := r.ContainerType()
  9222. if yyct2 == codecSelferValueTypeMap19780 {
  9223. yyl2 := r.ReadMapStart()
  9224. if yyl2 == 0 {
  9225. r.ReadMapEnd()
  9226. } else {
  9227. x.codecDecodeSelfFromMap(yyl2, d)
  9228. }
  9229. } else if yyct2 == codecSelferValueTypeArray19780 {
  9230. yyl2 := r.ReadArrayStart()
  9231. if yyl2 == 0 {
  9232. r.ReadArrayEnd()
  9233. } else {
  9234. x.codecDecodeSelfFromArray(yyl2, d)
  9235. }
  9236. } else {
  9237. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9238. }
  9239. }
  9240. }
  9241. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  9242. var h codecSelfer19780
  9243. z, r := GenHelperDecoder(d)
  9244. _, _, _ = h, z, r
  9245. var yyhl3 bool = l >= 0
  9246. for yyj3 := 0; ; yyj3++ {
  9247. if yyhl3 {
  9248. if yyj3 >= l {
  9249. break
  9250. }
  9251. } else {
  9252. if r.CheckBreak() {
  9253. break
  9254. }
  9255. }
  9256. r.ReadMapElemKey()
  9257. yys3 := z.StringView(r.DecodeStringAsBytes())
  9258. r.ReadMapElemValue()
  9259. switch yys3 {
  9260. case "A":
  9261. if r.TryDecodeAsNil() {
  9262. x.A = 0
  9263. } else {
  9264. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9265. }
  9266. case "B":
  9267. if r.TryDecodeAsNil() {
  9268. x.B = false
  9269. } else {
  9270. x.B = (bool)(r.DecodeBool())
  9271. }
  9272. case "Ssmallptr":
  9273. if r.TryDecodeAsNil() {
  9274. if true && x.Ssmallptr != nil {
  9275. x.Ssmallptr = nil
  9276. }
  9277. } else {
  9278. if x.Ssmallptr == nil {
  9279. x.Ssmallptr = new(Sstructsmall)
  9280. }
  9281. x.Ssmallptr.CodecDecodeSelf(d)
  9282. }
  9283. case "Ssmall":
  9284. if r.TryDecodeAsNil() {
  9285. if true && x.Ssmall != nil {
  9286. x.Ssmall = nil
  9287. }
  9288. } else {
  9289. if x.Ssmall == nil {
  9290. x.Ssmall = new(Sstructsmall)
  9291. }
  9292. x.Ssmall.CodecDecodeSelf(d)
  9293. }
  9294. case "Sptr":
  9295. if r.TryDecodeAsNil() {
  9296. if true && x.Sptr != nil {
  9297. x.Sptr = nil
  9298. }
  9299. } else {
  9300. if x.Sptr == nil {
  9301. x.Sptr = new(Sstructbig)
  9302. }
  9303. x.Sptr.CodecDecodeSelf(d)
  9304. }
  9305. default:
  9306. z.DecStructFieldNotFound(-1, yys3)
  9307. } // end switch yys3
  9308. } // end for yyj3
  9309. r.ReadMapEnd()
  9310. }
  9311. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  9312. var h codecSelfer19780
  9313. z, r := GenHelperDecoder(d)
  9314. _, _, _ = h, z, r
  9315. var yyj9 int
  9316. var yyb9 bool
  9317. var yyhl9 bool = l >= 0
  9318. yyj9++
  9319. if yyhl9 {
  9320. yyb9 = yyj9 > l
  9321. } else {
  9322. yyb9 = r.CheckBreak()
  9323. }
  9324. if yyb9 {
  9325. r.ReadArrayEnd()
  9326. return
  9327. }
  9328. r.ReadArrayElem()
  9329. if r.TryDecodeAsNil() {
  9330. x.A = 0
  9331. } else {
  9332. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9333. }
  9334. yyj9++
  9335. if yyhl9 {
  9336. yyb9 = yyj9 > l
  9337. } else {
  9338. yyb9 = r.CheckBreak()
  9339. }
  9340. if yyb9 {
  9341. r.ReadArrayEnd()
  9342. return
  9343. }
  9344. r.ReadArrayElem()
  9345. if r.TryDecodeAsNil() {
  9346. x.B = false
  9347. } else {
  9348. x.B = (bool)(r.DecodeBool())
  9349. }
  9350. yyj9++
  9351. if yyhl9 {
  9352. yyb9 = yyj9 > l
  9353. } else {
  9354. yyb9 = r.CheckBreak()
  9355. }
  9356. if yyb9 {
  9357. r.ReadArrayEnd()
  9358. return
  9359. }
  9360. r.ReadArrayElem()
  9361. if r.TryDecodeAsNil() {
  9362. if true && x.Ssmallptr != nil {
  9363. x.Ssmallptr = nil
  9364. }
  9365. } else {
  9366. if x.Ssmallptr == nil {
  9367. x.Ssmallptr = new(Sstructsmall)
  9368. }
  9369. x.Ssmallptr.CodecDecodeSelf(d)
  9370. }
  9371. yyj9++
  9372. if yyhl9 {
  9373. yyb9 = yyj9 > l
  9374. } else {
  9375. yyb9 = r.CheckBreak()
  9376. }
  9377. if yyb9 {
  9378. r.ReadArrayEnd()
  9379. return
  9380. }
  9381. r.ReadArrayElem()
  9382. if r.TryDecodeAsNil() {
  9383. if true && x.Ssmall != nil {
  9384. x.Ssmall = nil
  9385. }
  9386. } else {
  9387. if x.Ssmall == nil {
  9388. x.Ssmall = new(Sstructsmall)
  9389. }
  9390. x.Ssmall.CodecDecodeSelf(d)
  9391. }
  9392. yyj9++
  9393. if yyhl9 {
  9394. yyb9 = yyj9 > l
  9395. } else {
  9396. yyb9 = r.CheckBreak()
  9397. }
  9398. if yyb9 {
  9399. r.ReadArrayEnd()
  9400. return
  9401. }
  9402. r.ReadArrayElem()
  9403. if r.TryDecodeAsNil() {
  9404. if true && x.Sptr != nil {
  9405. x.Sptr = nil
  9406. }
  9407. } else {
  9408. if x.Sptr == nil {
  9409. x.Sptr = new(Sstructbig)
  9410. }
  9411. x.Sptr.CodecDecodeSelf(d)
  9412. }
  9413. for {
  9414. yyj9++
  9415. if yyhl9 {
  9416. yyb9 = yyj9 > l
  9417. } else {
  9418. yyb9 = r.CheckBreak()
  9419. }
  9420. if yyb9 {
  9421. break
  9422. }
  9423. r.ReadArrayElem()
  9424. z.DecStructFieldNotFound(yyj9-1, "")
  9425. }
  9426. r.ReadArrayEnd()
  9427. }
  9428. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  9429. var h codecSelfer19780
  9430. z, r := GenHelperEncoder(e)
  9431. _, _, _ = h, z, r
  9432. if x == nil {
  9433. r.EncodeNil()
  9434. } else {
  9435. if false {
  9436. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9437. z.EncExtension(x, yyxt1)
  9438. } else {
  9439. yysep2 := !z.EncBinary()
  9440. yy2arr2 := z.EncBasicHandle().StructToArray
  9441. _, _ = yysep2, yy2arr2
  9442. const yyr2 bool = true // struct tag has 'toArray'
  9443. if yyr2 || yy2arr2 {
  9444. r.WriteArrayStart(5)
  9445. } else {
  9446. r.WriteMapStart(5)
  9447. }
  9448. if yyr2 || yy2arr2 {
  9449. r.WriteArrayElem()
  9450. if false {
  9451. } else {
  9452. r.EncodeInt(int64(x.A))
  9453. }
  9454. } else {
  9455. r.WriteMapElemKey()
  9456. if z.IsJSONHandle() {
  9457. z.WriteStr("\"A\"")
  9458. } else {
  9459. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  9460. }
  9461. r.WriteMapElemValue()
  9462. if false {
  9463. } else {
  9464. r.EncodeInt(int64(x.A))
  9465. }
  9466. }
  9467. if yyr2 || yy2arr2 {
  9468. r.WriteArrayElem()
  9469. if false {
  9470. } else {
  9471. r.EncodeBool(bool(x.B))
  9472. }
  9473. } else {
  9474. r.WriteMapElemKey()
  9475. if z.IsJSONHandle() {
  9476. z.WriteStr("\"B\"")
  9477. } else {
  9478. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9479. }
  9480. r.WriteMapElemValue()
  9481. if false {
  9482. } else {
  9483. r.EncodeBool(bool(x.B))
  9484. }
  9485. }
  9486. var yyn9 bool
  9487. if x.Ssmallptr == nil {
  9488. yyn9 = true
  9489. goto LABEL9
  9490. }
  9491. LABEL9:
  9492. if yyr2 || yy2arr2 {
  9493. if yyn9 {
  9494. r.WriteArrayElem()
  9495. r.EncodeNil()
  9496. } else {
  9497. r.WriteArrayElem()
  9498. if x.Ssmallptr == nil {
  9499. r.EncodeNil()
  9500. } else {
  9501. x.Ssmallptr.CodecEncodeSelf(e)
  9502. }
  9503. }
  9504. } else {
  9505. r.WriteMapElemKey()
  9506. if z.IsJSONHandle() {
  9507. z.WriteStr("\"Ssmallptr\"")
  9508. } else {
  9509. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  9510. }
  9511. r.WriteMapElemValue()
  9512. if yyn9 {
  9513. r.EncodeNil()
  9514. } else {
  9515. if x.Ssmallptr == nil {
  9516. r.EncodeNil()
  9517. } else {
  9518. x.Ssmallptr.CodecEncodeSelf(e)
  9519. }
  9520. }
  9521. }
  9522. var yyn12 bool
  9523. if x.Ssmall == nil {
  9524. yyn12 = true
  9525. goto LABEL12
  9526. }
  9527. LABEL12:
  9528. if yyr2 || yy2arr2 {
  9529. if yyn12 {
  9530. r.WriteArrayElem()
  9531. r.EncodeNil()
  9532. } else {
  9533. r.WriteArrayElem()
  9534. if x.Ssmall == nil {
  9535. r.EncodeNil()
  9536. } else {
  9537. x.Ssmall.CodecEncodeSelf(e)
  9538. }
  9539. }
  9540. } else {
  9541. r.WriteMapElemKey()
  9542. if z.IsJSONHandle() {
  9543. z.WriteStr("\"Ssmall\"")
  9544. } else {
  9545. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  9546. }
  9547. r.WriteMapElemValue()
  9548. if yyn12 {
  9549. r.EncodeNil()
  9550. } else {
  9551. if x.Ssmall == nil {
  9552. r.EncodeNil()
  9553. } else {
  9554. x.Ssmall.CodecEncodeSelf(e)
  9555. }
  9556. }
  9557. }
  9558. var yyn15 bool
  9559. if x.Sptr == nil {
  9560. yyn15 = true
  9561. goto LABEL15
  9562. }
  9563. LABEL15:
  9564. if yyr2 || yy2arr2 {
  9565. if yyn15 {
  9566. r.WriteArrayElem()
  9567. r.EncodeNil()
  9568. } else {
  9569. r.WriteArrayElem()
  9570. if x.Sptr == nil {
  9571. r.EncodeNil()
  9572. } else {
  9573. x.Sptr.CodecEncodeSelf(e)
  9574. }
  9575. }
  9576. } else {
  9577. r.WriteMapElemKey()
  9578. if z.IsJSONHandle() {
  9579. z.WriteStr("\"Sptr\"")
  9580. } else {
  9581. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  9582. }
  9583. r.WriteMapElemValue()
  9584. if yyn15 {
  9585. r.EncodeNil()
  9586. } else {
  9587. if x.Sptr == nil {
  9588. r.EncodeNil()
  9589. } else {
  9590. x.Sptr.CodecEncodeSelf(e)
  9591. }
  9592. }
  9593. }
  9594. if yyr2 || yy2arr2 {
  9595. r.WriteArrayEnd()
  9596. } else {
  9597. r.WriteMapEnd()
  9598. }
  9599. }
  9600. }
  9601. }
  9602. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  9603. var h codecSelfer19780
  9604. z, r := GenHelperDecoder(d)
  9605. _, _, _ = h, z, r
  9606. if false {
  9607. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9608. z.DecExtension(x, yyxt1)
  9609. } else {
  9610. yyct2 := r.ContainerType()
  9611. if yyct2 == codecSelferValueTypeMap19780 {
  9612. yyl2 := r.ReadMapStart()
  9613. if yyl2 == 0 {
  9614. r.ReadMapEnd()
  9615. } else {
  9616. x.codecDecodeSelfFromMap(yyl2, d)
  9617. }
  9618. } else if yyct2 == codecSelferValueTypeArray19780 {
  9619. yyl2 := r.ReadArrayStart()
  9620. if yyl2 == 0 {
  9621. r.ReadArrayEnd()
  9622. } else {
  9623. x.codecDecodeSelfFromArray(yyl2, d)
  9624. }
  9625. } else {
  9626. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9627. }
  9628. }
  9629. }
  9630. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  9631. var h codecSelfer19780
  9632. z, r := GenHelperDecoder(d)
  9633. _, _, _ = h, z, r
  9634. var yyhl3 bool = l >= 0
  9635. for yyj3 := 0; ; yyj3++ {
  9636. if yyhl3 {
  9637. if yyj3 >= l {
  9638. break
  9639. }
  9640. } else {
  9641. if r.CheckBreak() {
  9642. break
  9643. }
  9644. }
  9645. r.ReadMapElemKey()
  9646. yys3 := z.StringView(r.DecodeStringAsBytes())
  9647. r.ReadMapElemValue()
  9648. switch yys3 {
  9649. case "A":
  9650. if r.TryDecodeAsNil() {
  9651. x.A = 0
  9652. } else {
  9653. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9654. }
  9655. case "B":
  9656. if r.TryDecodeAsNil() {
  9657. x.B = false
  9658. } else {
  9659. x.B = (bool)(r.DecodeBool())
  9660. }
  9661. case "Ssmallptr":
  9662. if r.TryDecodeAsNil() {
  9663. if true && x.Ssmallptr != nil {
  9664. x.Ssmallptr = nil
  9665. }
  9666. } else {
  9667. if x.Ssmallptr == nil {
  9668. x.Ssmallptr = new(Sstructsmall)
  9669. }
  9670. x.Ssmallptr.CodecDecodeSelf(d)
  9671. }
  9672. case "Ssmall":
  9673. if r.TryDecodeAsNil() {
  9674. if true && x.Ssmall != nil {
  9675. x.Ssmall = nil
  9676. }
  9677. } else {
  9678. if x.Ssmall == nil {
  9679. x.Ssmall = new(Sstructsmall)
  9680. }
  9681. x.Ssmall.CodecDecodeSelf(d)
  9682. }
  9683. case "Sptr":
  9684. if r.TryDecodeAsNil() {
  9685. if true && x.Sptr != nil {
  9686. x.Sptr = nil
  9687. }
  9688. } else {
  9689. if x.Sptr == nil {
  9690. x.Sptr = new(Sstructbig)
  9691. }
  9692. x.Sptr.CodecDecodeSelf(d)
  9693. }
  9694. default:
  9695. z.DecStructFieldNotFound(-1, yys3)
  9696. } // end switch yys3
  9697. } // end for yyj3
  9698. r.ReadMapEnd()
  9699. }
  9700. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  9701. var h codecSelfer19780
  9702. z, r := GenHelperDecoder(d)
  9703. _, _, _ = h, z, r
  9704. var yyj9 int
  9705. var yyb9 bool
  9706. var yyhl9 bool = l >= 0
  9707. yyj9++
  9708. if yyhl9 {
  9709. yyb9 = yyj9 > l
  9710. } else {
  9711. yyb9 = r.CheckBreak()
  9712. }
  9713. if yyb9 {
  9714. r.ReadArrayEnd()
  9715. return
  9716. }
  9717. r.ReadArrayElem()
  9718. if r.TryDecodeAsNil() {
  9719. x.A = 0
  9720. } else {
  9721. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9722. }
  9723. yyj9++
  9724. if yyhl9 {
  9725. yyb9 = yyj9 > l
  9726. } else {
  9727. yyb9 = r.CheckBreak()
  9728. }
  9729. if yyb9 {
  9730. r.ReadArrayEnd()
  9731. return
  9732. }
  9733. r.ReadArrayElem()
  9734. if r.TryDecodeAsNil() {
  9735. x.B = false
  9736. } else {
  9737. x.B = (bool)(r.DecodeBool())
  9738. }
  9739. yyj9++
  9740. if yyhl9 {
  9741. yyb9 = yyj9 > l
  9742. } else {
  9743. yyb9 = r.CheckBreak()
  9744. }
  9745. if yyb9 {
  9746. r.ReadArrayEnd()
  9747. return
  9748. }
  9749. r.ReadArrayElem()
  9750. if r.TryDecodeAsNil() {
  9751. if true && x.Ssmallptr != nil {
  9752. x.Ssmallptr = nil
  9753. }
  9754. } else {
  9755. if x.Ssmallptr == nil {
  9756. x.Ssmallptr = new(Sstructsmall)
  9757. }
  9758. x.Ssmallptr.CodecDecodeSelf(d)
  9759. }
  9760. yyj9++
  9761. if yyhl9 {
  9762. yyb9 = yyj9 > l
  9763. } else {
  9764. yyb9 = r.CheckBreak()
  9765. }
  9766. if yyb9 {
  9767. r.ReadArrayEnd()
  9768. return
  9769. }
  9770. r.ReadArrayElem()
  9771. if r.TryDecodeAsNil() {
  9772. if true && x.Ssmall != nil {
  9773. x.Ssmall = nil
  9774. }
  9775. } else {
  9776. if x.Ssmall == nil {
  9777. x.Ssmall = new(Sstructsmall)
  9778. }
  9779. x.Ssmall.CodecDecodeSelf(d)
  9780. }
  9781. yyj9++
  9782. if yyhl9 {
  9783. yyb9 = yyj9 > l
  9784. } else {
  9785. yyb9 = r.CheckBreak()
  9786. }
  9787. if yyb9 {
  9788. r.ReadArrayEnd()
  9789. return
  9790. }
  9791. r.ReadArrayElem()
  9792. if r.TryDecodeAsNil() {
  9793. if true && x.Sptr != nil {
  9794. x.Sptr = nil
  9795. }
  9796. } else {
  9797. if x.Sptr == nil {
  9798. x.Sptr = new(Sstructbig)
  9799. }
  9800. x.Sptr.CodecDecodeSelf(d)
  9801. }
  9802. for {
  9803. yyj9++
  9804. if yyhl9 {
  9805. yyb9 = yyj9 > l
  9806. } else {
  9807. yyb9 = r.CheckBreak()
  9808. }
  9809. if yyb9 {
  9810. break
  9811. }
  9812. r.ReadArrayElem()
  9813. z.DecStructFieldNotFound(yyj9-1, "")
  9814. }
  9815. r.ReadArrayEnd()
  9816. }
  9817. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  9818. var h codecSelfer19780
  9819. z, r := GenHelperEncoder(e)
  9820. _, _, _ = h, z, r
  9821. if x == nil {
  9822. r.EncodeNil()
  9823. } else {
  9824. if false {
  9825. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9826. z.EncExtension(x, yyxt1)
  9827. } else {
  9828. yysep2 := !z.EncBinary()
  9829. yy2arr2 := z.EncBasicHandle().StructToArray
  9830. _, _ = yysep2, yy2arr2
  9831. const yyr2 bool = false // struct tag has 'toArray'
  9832. if yyr2 || yy2arr2 {
  9833. r.WriteArrayStart(2)
  9834. } else {
  9835. r.WriteMapStart(2)
  9836. }
  9837. if yyr2 || yy2arr2 {
  9838. r.WriteArrayElem()
  9839. if false {
  9840. } else {
  9841. r.EncodeInt(int64(x.I))
  9842. }
  9843. } else {
  9844. r.WriteMapElemKey()
  9845. if z.IsJSONHandle() {
  9846. z.WriteStr("\"I\"")
  9847. } else {
  9848. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  9849. }
  9850. r.WriteMapElemValue()
  9851. if false {
  9852. } else {
  9853. r.EncodeInt(int64(x.I))
  9854. }
  9855. }
  9856. if yyr2 || yy2arr2 {
  9857. r.WriteArrayElem()
  9858. if false {
  9859. } else {
  9860. if z.EncBasicHandle().StringToRaw {
  9861. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9862. } else {
  9863. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9864. }
  9865. }
  9866. } else {
  9867. r.WriteMapElemKey()
  9868. if z.IsJSONHandle() {
  9869. z.WriteStr("\"S\"")
  9870. } else {
  9871. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9872. }
  9873. r.WriteMapElemValue()
  9874. if false {
  9875. } else {
  9876. if z.EncBasicHandle().StringToRaw {
  9877. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9878. } else {
  9879. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9880. }
  9881. }
  9882. }
  9883. if yyr2 || yy2arr2 {
  9884. r.WriteArrayEnd()
  9885. } else {
  9886. r.WriteMapEnd()
  9887. }
  9888. }
  9889. }
  9890. }
  9891. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  9892. var h codecSelfer19780
  9893. z, r := GenHelperDecoder(d)
  9894. _, _, _ = h, z, r
  9895. if false {
  9896. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9897. z.DecExtension(x, yyxt1)
  9898. } else {
  9899. yyct2 := r.ContainerType()
  9900. if yyct2 == codecSelferValueTypeMap19780 {
  9901. yyl2 := r.ReadMapStart()
  9902. if yyl2 == 0 {
  9903. r.ReadMapEnd()
  9904. } else {
  9905. x.codecDecodeSelfFromMap(yyl2, d)
  9906. }
  9907. } else if yyct2 == codecSelferValueTypeArray19780 {
  9908. yyl2 := r.ReadArrayStart()
  9909. if yyl2 == 0 {
  9910. r.ReadArrayEnd()
  9911. } else {
  9912. x.codecDecodeSelfFromArray(yyl2, d)
  9913. }
  9914. } else {
  9915. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9916. }
  9917. }
  9918. }
  9919. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  9920. var h codecSelfer19780
  9921. z, r := GenHelperDecoder(d)
  9922. _, _, _ = h, z, r
  9923. var yyhl3 bool = l >= 0
  9924. for yyj3 := 0; ; yyj3++ {
  9925. if yyhl3 {
  9926. if yyj3 >= l {
  9927. break
  9928. }
  9929. } else {
  9930. if r.CheckBreak() {
  9931. break
  9932. }
  9933. }
  9934. r.ReadMapElemKey()
  9935. yys3 := z.StringView(r.DecodeStringAsBytes())
  9936. r.ReadMapElemValue()
  9937. switch yys3 {
  9938. case "I":
  9939. if r.TryDecodeAsNil() {
  9940. x.I = 0
  9941. } else {
  9942. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9943. }
  9944. case "S":
  9945. if r.TryDecodeAsNil() {
  9946. x.S = ""
  9947. } else {
  9948. x.S = (string)(r.DecodeString())
  9949. }
  9950. default:
  9951. z.DecStructFieldNotFound(-1, yys3)
  9952. } // end switch yys3
  9953. } // end for yyj3
  9954. r.ReadMapEnd()
  9955. }
  9956. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  9957. var h codecSelfer19780
  9958. z, r := GenHelperDecoder(d)
  9959. _, _, _ = h, z, r
  9960. var yyj6 int
  9961. var yyb6 bool
  9962. var yyhl6 bool = l >= 0
  9963. yyj6++
  9964. if yyhl6 {
  9965. yyb6 = yyj6 > l
  9966. } else {
  9967. yyb6 = r.CheckBreak()
  9968. }
  9969. if yyb6 {
  9970. r.ReadArrayEnd()
  9971. return
  9972. }
  9973. r.ReadArrayElem()
  9974. if r.TryDecodeAsNil() {
  9975. x.I = 0
  9976. } else {
  9977. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  9978. }
  9979. yyj6++
  9980. if yyhl6 {
  9981. yyb6 = yyj6 > l
  9982. } else {
  9983. yyb6 = r.CheckBreak()
  9984. }
  9985. if yyb6 {
  9986. r.ReadArrayEnd()
  9987. return
  9988. }
  9989. r.ReadArrayElem()
  9990. if r.TryDecodeAsNil() {
  9991. x.S = ""
  9992. } else {
  9993. x.S = (string)(r.DecodeString())
  9994. }
  9995. for {
  9996. yyj6++
  9997. if yyhl6 {
  9998. yyb6 = yyj6 > l
  9999. } else {
  10000. yyb6 = r.CheckBreak()
  10001. }
  10002. if yyb6 {
  10003. break
  10004. }
  10005. r.ReadArrayElem()
  10006. z.DecStructFieldNotFound(yyj6-1, "")
  10007. }
  10008. r.ReadArrayEnd()
  10009. }
  10010. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  10011. var h codecSelfer19780
  10012. z, r := GenHelperEncoder(e)
  10013. _, _, _ = h, z, r
  10014. if false {
  10015. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10016. z.EncExtension(x, yyxt1)
  10017. } else {
  10018. r.EncodeInt(int64(x))
  10019. }
  10020. }
  10021. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  10022. var h codecSelfer19780
  10023. z, r := GenHelperDecoder(d)
  10024. _, _, _ = h, z, r
  10025. if false {
  10026. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10027. z.DecExtension(x, yyxt1)
  10028. } else {
  10029. *x = (wrapInt64)(r.DecodeInt64())
  10030. }
  10031. }
  10032. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  10033. var h codecSelfer19780
  10034. z, r := GenHelperEncoder(e)
  10035. _, _, _ = h, z, r
  10036. if false {
  10037. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10038. z.EncExtension(x, yyxt1)
  10039. } else {
  10040. r.EncodeUint(uint64(x))
  10041. }
  10042. }
  10043. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  10044. var h codecSelfer19780
  10045. z, r := GenHelperDecoder(d)
  10046. _, _, _ = h, z, r
  10047. if false {
  10048. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10049. z.DecExtension(x, yyxt1)
  10050. } else {
  10051. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  10052. }
  10053. }
  10054. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  10055. var h codecSelfer19780
  10056. z, r := GenHelperEncoder(e)
  10057. _, _, _ = h, z, r
  10058. if x == nil {
  10059. r.EncodeNil()
  10060. } else {
  10061. if false {
  10062. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10063. z.EncExtension(x, yyxt1)
  10064. } else {
  10065. h.encwrapBytes((wrapBytes)(x), e)
  10066. }
  10067. }
  10068. }
  10069. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  10070. var h codecSelfer19780
  10071. z, r := GenHelperDecoder(d)
  10072. _, _, _ = h, z, r
  10073. if false {
  10074. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10075. z.DecExtension(x, yyxt1)
  10076. } else {
  10077. h.decwrapBytes((*wrapBytes)(x), d)
  10078. }
  10079. }
  10080. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  10081. var h codecSelfer19780
  10082. z, r := GenHelperEncoder(e)
  10083. _, _, _ = h, z, r
  10084. if x == nil {
  10085. r.EncodeNil()
  10086. } else {
  10087. if false {
  10088. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10089. z.EncExtension(x, yyxt1)
  10090. } else {
  10091. yysep2 := !z.EncBinary()
  10092. yy2arr2 := z.EncBasicHandle().StructToArray
  10093. _, _ = yysep2, yy2arr2
  10094. const yyr2 bool = false // struct tag has 'toArray'
  10095. if yyr2 || yy2arr2 {
  10096. r.WriteArrayStart(5)
  10097. } else {
  10098. r.WriteMapStart(5)
  10099. }
  10100. if yyr2 || yy2arr2 {
  10101. r.WriteArrayElem()
  10102. if x.Islice == nil {
  10103. r.EncodeNil()
  10104. } else {
  10105. if false {
  10106. } else {
  10107. z.F.EncSliceIntfV(x.Islice, e)
  10108. }
  10109. }
  10110. } else {
  10111. r.WriteMapElemKey()
  10112. if z.IsJSONHandle() {
  10113. z.WriteStr("\"Islice\"")
  10114. } else {
  10115. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  10116. }
  10117. r.WriteMapElemValue()
  10118. if x.Islice == nil {
  10119. r.EncodeNil()
  10120. } else {
  10121. if false {
  10122. } else {
  10123. z.F.EncSliceIntfV(x.Islice, e)
  10124. }
  10125. }
  10126. }
  10127. if yyr2 || yy2arr2 {
  10128. r.WriteArrayElem()
  10129. if x.Ms == nil {
  10130. r.EncodeNil()
  10131. } else {
  10132. if false {
  10133. } else {
  10134. z.F.EncMapStringIntfV(x.Ms, e)
  10135. }
  10136. }
  10137. } else {
  10138. r.WriteMapElemKey()
  10139. if z.IsJSONHandle() {
  10140. z.WriteStr("\"Ms\"")
  10141. } else {
  10142. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  10143. }
  10144. r.WriteMapElemValue()
  10145. if x.Ms == nil {
  10146. r.EncodeNil()
  10147. } else {
  10148. if false {
  10149. } else {
  10150. z.F.EncMapStringIntfV(x.Ms, e)
  10151. }
  10152. }
  10153. }
  10154. if yyr2 || yy2arr2 {
  10155. r.WriteArrayElem()
  10156. if x.Nintf == nil {
  10157. r.EncodeNil()
  10158. } else {
  10159. if false {
  10160. } else {
  10161. z.EncFallback(x.Nintf)
  10162. }
  10163. }
  10164. } else {
  10165. r.WriteMapElemKey()
  10166. if z.IsJSONHandle() {
  10167. z.WriteStr("\"Nintf\"")
  10168. } else {
  10169. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  10170. }
  10171. r.WriteMapElemValue()
  10172. if x.Nintf == nil {
  10173. r.EncodeNil()
  10174. } else {
  10175. if false {
  10176. } else {
  10177. z.EncFallback(x.Nintf)
  10178. }
  10179. }
  10180. }
  10181. if yyr2 || yy2arr2 {
  10182. r.WriteArrayElem()
  10183. if false {
  10184. } else if !z.EncBasicHandle().TimeNotBuiltin {
  10185. r.EncodeTime(x.T)
  10186. } else if yyxt13 := z.Extension(z.I2Rtid(x.T)); yyxt13 != nil {
  10187. z.EncExtension(x.T, yyxt13)
  10188. } else if z.EncBinary() {
  10189. z.EncBinaryMarshal(x.T)
  10190. } else if !z.EncBinary() && z.IsJSONHandle() {
  10191. z.EncJSONMarshal(x.T)
  10192. } else {
  10193. z.EncFallback(x.T)
  10194. }
  10195. } else {
  10196. r.WriteMapElemKey()
  10197. if z.IsJSONHandle() {
  10198. z.WriteStr("\"T\"")
  10199. } else {
  10200. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  10201. }
  10202. r.WriteMapElemValue()
  10203. if false {
  10204. } else if !z.EncBasicHandle().TimeNotBuiltin {
  10205. r.EncodeTime(x.T)
  10206. } else if yyxt14 := z.Extension(z.I2Rtid(x.T)); yyxt14 != nil {
  10207. z.EncExtension(x.T, yyxt14)
  10208. } else if z.EncBinary() {
  10209. z.EncBinaryMarshal(x.T)
  10210. } else if !z.EncBinary() && z.IsJSONHandle() {
  10211. z.EncJSONMarshal(x.T)
  10212. } else {
  10213. z.EncFallback(x.T)
  10214. }
  10215. }
  10216. var yyn15 bool
  10217. if x.Tptr == nil {
  10218. yyn15 = true
  10219. goto LABEL15
  10220. }
  10221. LABEL15:
  10222. if yyr2 || yy2arr2 {
  10223. if yyn15 {
  10224. r.WriteArrayElem()
  10225. r.EncodeNil()
  10226. } else {
  10227. r.WriteArrayElem()
  10228. if x.Tptr == nil {
  10229. r.EncodeNil()
  10230. } else {
  10231. yy16 := *x.Tptr
  10232. if false {
  10233. } else if !z.EncBasicHandle().TimeNotBuiltin {
  10234. r.EncodeTime(yy16)
  10235. } else if yyxt17 := z.Extension(z.I2Rtid(yy16)); yyxt17 != nil {
  10236. z.EncExtension(yy16, yyxt17)
  10237. } else if z.EncBinary() {
  10238. z.EncBinaryMarshal(yy16)
  10239. } else if !z.EncBinary() && z.IsJSONHandle() {
  10240. z.EncJSONMarshal(yy16)
  10241. } else {
  10242. z.EncFallback(yy16)
  10243. }
  10244. }
  10245. }
  10246. } else {
  10247. r.WriteMapElemKey()
  10248. if z.IsJSONHandle() {
  10249. z.WriteStr("\"Tptr\"")
  10250. } else {
  10251. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  10252. }
  10253. r.WriteMapElemValue()
  10254. if yyn15 {
  10255. r.EncodeNil()
  10256. } else {
  10257. if x.Tptr == nil {
  10258. r.EncodeNil()
  10259. } else {
  10260. yy18 := *x.Tptr
  10261. if false {
  10262. } else if !z.EncBasicHandle().TimeNotBuiltin {
  10263. r.EncodeTime(yy18)
  10264. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  10265. z.EncExtension(yy18, yyxt19)
  10266. } else if z.EncBinary() {
  10267. z.EncBinaryMarshal(yy18)
  10268. } else if !z.EncBinary() && z.IsJSONHandle() {
  10269. z.EncJSONMarshal(yy18)
  10270. } else {
  10271. z.EncFallback(yy18)
  10272. }
  10273. }
  10274. }
  10275. }
  10276. if yyr2 || yy2arr2 {
  10277. r.WriteArrayEnd()
  10278. } else {
  10279. r.WriteMapEnd()
  10280. }
  10281. }
  10282. }
  10283. }
  10284. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  10285. var h codecSelfer19780
  10286. z, r := GenHelperDecoder(d)
  10287. _, _, _ = h, z, r
  10288. if false {
  10289. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10290. z.DecExtension(x, yyxt1)
  10291. } else {
  10292. yyct2 := r.ContainerType()
  10293. if yyct2 == codecSelferValueTypeMap19780 {
  10294. yyl2 := r.ReadMapStart()
  10295. if yyl2 == 0 {
  10296. r.ReadMapEnd()
  10297. } else {
  10298. x.codecDecodeSelfFromMap(yyl2, d)
  10299. }
  10300. } else if yyct2 == codecSelferValueTypeArray19780 {
  10301. yyl2 := r.ReadArrayStart()
  10302. if yyl2 == 0 {
  10303. r.ReadArrayEnd()
  10304. } else {
  10305. x.codecDecodeSelfFromArray(yyl2, d)
  10306. }
  10307. } else {
  10308. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10309. }
  10310. }
  10311. }
  10312. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  10313. var h codecSelfer19780
  10314. z, r := GenHelperDecoder(d)
  10315. _, _, _ = h, z, r
  10316. var yyhl3 bool = l >= 0
  10317. for yyj3 := 0; ; yyj3++ {
  10318. if yyhl3 {
  10319. if yyj3 >= l {
  10320. break
  10321. }
  10322. } else {
  10323. if r.CheckBreak() {
  10324. break
  10325. }
  10326. }
  10327. r.ReadMapElemKey()
  10328. yys3 := z.StringView(r.DecodeStringAsBytes())
  10329. r.ReadMapElemValue()
  10330. switch yys3 {
  10331. case "Islice":
  10332. if r.TryDecodeAsNil() {
  10333. x.Islice = nil
  10334. } else {
  10335. if false {
  10336. } else {
  10337. z.F.DecSliceIntfX(&x.Islice, d)
  10338. }
  10339. }
  10340. case "Ms":
  10341. if r.TryDecodeAsNil() {
  10342. x.Ms = nil
  10343. } else {
  10344. if false {
  10345. } else {
  10346. z.F.DecMapStringIntfX(&x.Ms, d)
  10347. }
  10348. }
  10349. case "Nintf":
  10350. if r.TryDecodeAsNil() {
  10351. x.Nintf = nil
  10352. } else {
  10353. if false {
  10354. } else {
  10355. z.DecFallback(&x.Nintf, true)
  10356. }
  10357. }
  10358. case "T":
  10359. if r.TryDecodeAsNil() {
  10360. x.T = time.Time{}
  10361. } else {
  10362. if false {
  10363. } else if !z.DecBasicHandle().TimeNotBuiltin {
  10364. x.T = r.DecodeTime()
  10365. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  10366. z.DecExtension(x.T, yyxt11)
  10367. } else if z.DecBinary() {
  10368. z.DecBinaryUnmarshal(&x.T)
  10369. } else if !z.DecBinary() && z.IsJSONHandle() {
  10370. z.DecJSONUnmarshal(&x.T)
  10371. } else {
  10372. z.DecFallback(&x.T, false)
  10373. }
  10374. }
  10375. case "Tptr":
  10376. if r.TryDecodeAsNil() {
  10377. if true && x.Tptr != nil {
  10378. x.Tptr = nil
  10379. }
  10380. } else {
  10381. if x.Tptr == nil {
  10382. x.Tptr = new(time.Time)
  10383. }
  10384. if false {
  10385. } else if !z.DecBasicHandle().TimeNotBuiltin {
  10386. *x.Tptr = r.DecodeTime()
  10387. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  10388. z.DecExtension(x.Tptr, yyxt13)
  10389. } else if z.DecBinary() {
  10390. z.DecBinaryUnmarshal(x.Tptr)
  10391. } else if !z.DecBinary() && z.IsJSONHandle() {
  10392. z.DecJSONUnmarshal(x.Tptr)
  10393. } else {
  10394. z.DecFallback(x.Tptr, false)
  10395. }
  10396. }
  10397. default:
  10398. z.DecStructFieldNotFound(-1, yys3)
  10399. } // end switch yys3
  10400. } // end for yyj3
  10401. r.ReadMapEnd()
  10402. }
  10403. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  10404. var h codecSelfer19780
  10405. z, r := GenHelperDecoder(d)
  10406. _, _, _ = h, z, r
  10407. var yyj14 int
  10408. var yyb14 bool
  10409. var yyhl14 bool = l >= 0
  10410. yyj14++
  10411. if yyhl14 {
  10412. yyb14 = yyj14 > l
  10413. } else {
  10414. yyb14 = r.CheckBreak()
  10415. }
  10416. if yyb14 {
  10417. r.ReadArrayEnd()
  10418. return
  10419. }
  10420. r.ReadArrayElem()
  10421. if r.TryDecodeAsNil() {
  10422. x.Islice = nil
  10423. } else {
  10424. if false {
  10425. } else {
  10426. z.F.DecSliceIntfX(&x.Islice, d)
  10427. }
  10428. }
  10429. yyj14++
  10430. if yyhl14 {
  10431. yyb14 = yyj14 > l
  10432. } else {
  10433. yyb14 = r.CheckBreak()
  10434. }
  10435. if yyb14 {
  10436. r.ReadArrayEnd()
  10437. return
  10438. }
  10439. r.ReadArrayElem()
  10440. if r.TryDecodeAsNil() {
  10441. x.Ms = nil
  10442. } else {
  10443. if false {
  10444. } else {
  10445. z.F.DecMapStringIntfX(&x.Ms, d)
  10446. }
  10447. }
  10448. yyj14++
  10449. if yyhl14 {
  10450. yyb14 = yyj14 > l
  10451. } else {
  10452. yyb14 = r.CheckBreak()
  10453. }
  10454. if yyb14 {
  10455. r.ReadArrayEnd()
  10456. return
  10457. }
  10458. r.ReadArrayElem()
  10459. if r.TryDecodeAsNil() {
  10460. x.Nintf = nil
  10461. } else {
  10462. if false {
  10463. } else {
  10464. z.DecFallback(&x.Nintf, true)
  10465. }
  10466. }
  10467. yyj14++
  10468. if yyhl14 {
  10469. yyb14 = yyj14 > l
  10470. } else {
  10471. yyb14 = r.CheckBreak()
  10472. }
  10473. if yyb14 {
  10474. r.ReadArrayEnd()
  10475. return
  10476. }
  10477. r.ReadArrayElem()
  10478. if r.TryDecodeAsNil() {
  10479. x.T = time.Time{}
  10480. } else {
  10481. if false {
  10482. } else if !z.DecBasicHandle().TimeNotBuiltin {
  10483. x.T = r.DecodeTime()
  10484. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  10485. z.DecExtension(x.T, yyxt22)
  10486. } else if z.DecBinary() {
  10487. z.DecBinaryUnmarshal(&x.T)
  10488. } else if !z.DecBinary() && z.IsJSONHandle() {
  10489. z.DecJSONUnmarshal(&x.T)
  10490. } else {
  10491. z.DecFallback(&x.T, false)
  10492. }
  10493. }
  10494. yyj14++
  10495. if yyhl14 {
  10496. yyb14 = yyj14 > l
  10497. } else {
  10498. yyb14 = r.CheckBreak()
  10499. }
  10500. if yyb14 {
  10501. r.ReadArrayEnd()
  10502. return
  10503. }
  10504. r.ReadArrayElem()
  10505. if r.TryDecodeAsNil() {
  10506. if true && x.Tptr != nil {
  10507. x.Tptr = nil
  10508. }
  10509. } else {
  10510. if x.Tptr == nil {
  10511. x.Tptr = new(time.Time)
  10512. }
  10513. if false {
  10514. } else if !z.DecBasicHandle().TimeNotBuiltin {
  10515. *x.Tptr = r.DecodeTime()
  10516. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  10517. z.DecExtension(x.Tptr, yyxt24)
  10518. } else if z.DecBinary() {
  10519. z.DecBinaryUnmarshal(x.Tptr)
  10520. } else if !z.DecBinary() && z.IsJSONHandle() {
  10521. z.DecJSONUnmarshal(x.Tptr)
  10522. } else {
  10523. z.DecFallback(x.Tptr, false)
  10524. }
  10525. }
  10526. for {
  10527. yyj14++
  10528. if yyhl14 {
  10529. yyb14 = yyj14 > l
  10530. } else {
  10531. yyb14 = r.CheckBreak()
  10532. }
  10533. if yyb14 {
  10534. break
  10535. }
  10536. r.ReadArrayElem()
  10537. z.DecStructFieldNotFound(yyj14-1, "")
  10538. }
  10539. r.ReadArrayEnd()
  10540. }
  10541. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  10542. var h codecSelfer19780
  10543. z, r := GenHelperEncoder(e)
  10544. _, _, _ = h, z, r
  10545. if x == nil {
  10546. r.EncodeNil()
  10547. } else {
  10548. if false {
  10549. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10550. z.EncExtension(x, yyxt1)
  10551. } else {
  10552. yysep2 := !z.EncBinary()
  10553. yy2arr2 := z.EncBasicHandle().StructToArray
  10554. _, _ = yysep2, yy2arr2
  10555. const yyr2 bool = false // struct tag has 'toArray'
  10556. if yyr2 || yy2arr2 {
  10557. r.WriteArrayStart(2)
  10558. } else {
  10559. r.WriteMapStart(2)
  10560. }
  10561. if yyr2 || yy2arr2 {
  10562. r.WriteArrayElem()
  10563. if false {
  10564. } else {
  10565. if z.EncBasicHandle().StringToRaw {
  10566. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10567. } else {
  10568. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10569. }
  10570. }
  10571. } else {
  10572. r.WriteMapElemKey()
  10573. if z.IsJSONHandle() {
  10574. z.WriteStr("\"S\"")
  10575. } else {
  10576. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10577. }
  10578. r.WriteMapElemValue()
  10579. if false {
  10580. } else {
  10581. if z.EncBasicHandle().StringToRaw {
  10582. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10583. } else {
  10584. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10585. }
  10586. }
  10587. }
  10588. if yyr2 || yy2arr2 {
  10589. r.WriteArrayElem()
  10590. if false {
  10591. } else {
  10592. r.EncodeBool(bool(x.B))
  10593. }
  10594. } else {
  10595. r.WriteMapElemKey()
  10596. if z.IsJSONHandle() {
  10597. z.WriteStr("\"B\"")
  10598. } else {
  10599. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10600. }
  10601. r.WriteMapElemValue()
  10602. if false {
  10603. } else {
  10604. r.EncodeBool(bool(x.B))
  10605. }
  10606. }
  10607. if yyr2 || yy2arr2 {
  10608. r.WriteArrayEnd()
  10609. } else {
  10610. r.WriteMapEnd()
  10611. }
  10612. }
  10613. }
  10614. }
  10615. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  10616. var h codecSelfer19780
  10617. z, r := GenHelperDecoder(d)
  10618. _, _, _ = h, z, r
  10619. if false {
  10620. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10621. z.DecExtension(x, yyxt1)
  10622. } else {
  10623. yyct2 := r.ContainerType()
  10624. if yyct2 == codecSelferValueTypeMap19780 {
  10625. yyl2 := r.ReadMapStart()
  10626. if yyl2 == 0 {
  10627. r.ReadMapEnd()
  10628. } else {
  10629. x.codecDecodeSelfFromMap(yyl2, d)
  10630. }
  10631. } else if yyct2 == codecSelferValueTypeArray19780 {
  10632. yyl2 := r.ReadArrayStart()
  10633. if yyl2 == 0 {
  10634. r.ReadArrayEnd()
  10635. } else {
  10636. x.codecDecodeSelfFromArray(yyl2, d)
  10637. }
  10638. } else {
  10639. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10640. }
  10641. }
  10642. }
  10643. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  10644. var h codecSelfer19780
  10645. z, r := GenHelperDecoder(d)
  10646. _, _, _ = h, z, r
  10647. var yyhl3 bool = l >= 0
  10648. for yyj3 := 0; ; yyj3++ {
  10649. if yyhl3 {
  10650. if yyj3 >= l {
  10651. break
  10652. }
  10653. } else {
  10654. if r.CheckBreak() {
  10655. break
  10656. }
  10657. }
  10658. r.ReadMapElemKey()
  10659. yys3 := z.StringView(r.DecodeStringAsBytes())
  10660. r.ReadMapElemValue()
  10661. switch yys3 {
  10662. case "S":
  10663. if r.TryDecodeAsNil() {
  10664. x.S = ""
  10665. } else {
  10666. x.S = (string)(r.DecodeString())
  10667. }
  10668. case "B":
  10669. if r.TryDecodeAsNil() {
  10670. x.B = false
  10671. } else {
  10672. x.B = (bool)(r.DecodeBool())
  10673. }
  10674. default:
  10675. z.DecStructFieldNotFound(-1, yys3)
  10676. } // end switch yys3
  10677. } // end for yyj3
  10678. r.ReadMapEnd()
  10679. }
  10680. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  10681. var h codecSelfer19780
  10682. z, r := GenHelperDecoder(d)
  10683. _, _, _ = h, z, r
  10684. var yyj6 int
  10685. var yyb6 bool
  10686. var yyhl6 bool = l >= 0
  10687. yyj6++
  10688. if yyhl6 {
  10689. yyb6 = yyj6 > l
  10690. } else {
  10691. yyb6 = r.CheckBreak()
  10692. }
  10693. if yyb6 {
  10694. r.ReadArrayEnd()
  10695. return
  10696. }
  10697. r.ReadArrayElem()
  10698. if r.TryDecodeAsNil() {
  10699. x.S = ""
  10700. } else {
  10701. x.S = (string)(r.DecodeString())
  10702. }
  10703. yyj6++
  10704. if yyhl6 {
  10705. yyb6 = yyj6 > l
  10706. } else {
  10707. yyb6 = r.CheckBreak()
  10708. }
  10709. if yyb6 {
  10710. r.ReadArrayEnd()
  10711. return
  10712. }
  10713. r.ReadArrayElem()
  10714. if r.TryDecodeAsNil() {
  10715. x.B = false
  10716. } else {
  10717. x.B = (bool)(r.DecodeBool())
  10718. }
  10719. for {
  10720. yyj6++
  10721. if yyhl6 {
  10722. yyb6 = yyj6 > l
  10723. } else {
  10724. yyb6 = r.CheckBreak()
  10725. }
  10726. if yyb6 {
  10727. break
  10728. }
  10729. r.ReadArrayElem()
  10730. z.DecStructFieldNotFound(yyj6-1, "")
  10731. }
  10732. r.ReadArrayEnd()
  10733. }
  10734. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  10735. var h codecSelfer19780
  10736. z, r := GenHelperEncoder(e)
  10737. _, _, _ = h, z, r
  10738. if x == nil {
  10739. r.EncodeNil()
  10740. } else {
  10741. if false {
  10742. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10743. z.EncExtension(x, yyxt1)
  10744. } else {
  10745. yysep2 := !z.EncBinary()
  10746. yy2arr2 := z.EncBasicHandle().StructToArray
  10747. _, _ = yysep2, yy2arr2
  10748. const yyr2 bool = false // struct tag has 'toArray'
  10749. if yyr2 || yy2arr2 {
  10750. r.WriteArrayStart(4)
  10751. } else {
  10752. r.WriteMapStart(4)
  10753. }
  10754. if yyr2 || yy2arr2 {
  10755. r.WriteArrayElem()
  10756. if false {
  10757. } else {
  10758. if z.EncBasicHandle().StringToRaw {
  10759. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10760. } else {
  10761. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10762. }
  10763. }
  10764. } else {
  10765. r.WriteMapElemKey()
  10766. if z.IsJSONHandle() {
  10767. z.WriteStr("\"S\"")
  10768. } else {
  10769. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  10770. }
  10771. r.WriteMapElemValue()
  10772. if false {
  10773. } else {
  10774. if z.EncBasicHandle().StringToRaw {
  10775. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  10776. } else {
  10777. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  10778. }
  10779. }
  10780. }
  10781. if yyr2 || yy2arr2 {
  10782. r.WriteArrayElem()
  10783. if false {
  10784. } else {
  10785. r.EncodeBool(bool(x.B))
  10786. }
  10787. } else {
  10788. r.WriteMapElemKey()
  10789. if z.IsJSONHandle() {
  10790. z.WriteStr("\"B\"")
  10791. } else {
  10792. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10793. }
  10794. r.WriteMapElemValue()
  10795. if false {
  10796. } else {
  10797. r.EncodeBool(bool(x.B))
  10798. }
  10799. }
  10800. if yyr2 || yy2arr2 {
  10801. r.WriteArrayElem()
  10802. if false {
  10803. } else {
  10804. r.EncodeFloat64(float64(x.F))
  10805. }
  10806. } else {
  10807. r.WriteMapElemKey()
  10808. if z.IsJSONHandle() {
  10809. z.WriteStr("\"F\"")
  10810. } else {
  10811. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  10812. }
  10813. r.WriteMapElemValue()
  10814. if false {
  10815. } else {
  10816. r.EncodeFloat64(float64(x.F))
  10817. }
  10818. }
  10819. if yyr2 || yy2arr2 {
  10820. r.WriteArrayElem()
  10821. if false {
  10822. } else {
  10823. r.EncodeInt(int64(x.I))
  10824. }
  10825. } else {
  10826. r.WriteMapElemKey()
  10827. if z.IsJSONHandle() {
  10828. z.WriteStr("\"I\"")
  10829. } else {
  10830. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  10831. }
  10832. r.WriteMapElemValue()
  10833. if false {
  10834. } else {
  10835. r.EncodeInt(int64(x.I))
  10836. }
  10837. }
  10838. if yyr2 || yy2arr2 {
  10839. r.WriteArrayEnd()
  10840. } else {
  10841. r.WriteMapEnd()
  10842. }
  10843. }
  10844. }
  10845. }
  10846. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  10847. var h codecSelfer19780
  10848. z, r := GenHelperDecoder(d)
  10849. _, _, _ = h, z, r
  10850. if false {
  10851. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  10852. z.DecExtension(x, yyxt1)
  10853. } else {
  10854. yyct2 := r.ContainerType()
  10855. if yyct2 == codecSelferValueTypeMap19780 {
  10856. yyl2 := r.ReadMapStart()
  10857. if yyl2 == 0 {
  10858. r.ReadMapEnd()
  10859. } else {
  10860. x.codecDecodeSelfFromMap(yyl2, d)
  10861. }
  10862. } else if yyct2 == codecSelferValueTypeArray19780 {
  10863. yyl2 := r.ReadArrayStart()
  10864. if yyl2 == 0 {
  10865. r.ReadArrayEnd()
  10866. } else {
  10867. x.codecDecodeSelfFromArray(yyl2, d)
  10868. }
  10869. } else {
  10870. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10871. }
  10872. }
  10873. }
  10874. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  10875. var h codecSelfer19780
  10876. z, r := GenHelperDecoder(d)
  10877. _, _, _ = h, z, r
  10878. var yyhl3 bool = l >= 0
  10879. for yyj3 := 0; ; yyj3++ {
  10880. if yyhl3 {
  10881. if yyj3 >= l {
  10882. break
  10883. }
  10884. } else {
  10885. if r.CheckBreak() {
  10886. break
  10887. }
  10888. }
  10889. r.ReadMapElemKey()
  10890. yys3 := z.StringView(r.DecodeStringAsBytes())
  10891. r.ReadMapElemValue()
  10892. switch yys3 {
  10893. case "S":
  10894. if r.TryDecodeAsNil() {
  10895. x.S = ""
  10896. } else {
  10897. x.S = (string)(r.DecodeString())
  10898. }
  10899. case "B":
  10900. if r.TryDecodeAsNil() {
  10901. x.B = false
  10902. } else {
  10903. x.B = (bool)(r.DecodeBool())
  10904. }
  10905. case "F":
  10906. if r.TryDecodeAsNil() {
  10907. x.F = 0
  10908. } else {
  10909. x.F = (float64)(r.DecodeFloat64())
  10910. }
  10911. case "I":
  10912. if r.TryDecodeAsNil() {
  10913. x.I = 0
  10914. } else {
  10915. x.I = (int64)(r.DecodeInt64())
  10916. }
  10917. default:
  10918. z.DecStructFieldNotFound(-1, yys3)
  10919. } // end switch yys3
  10920. } // end for yyj3
  10921. r.ReadMapEnd()
  10922. }
  10923. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  10924. var h codecSelfer19780
  10925. z, r := GenHelperDecoder(d)
  10926. _, _, _ = h, z, r
  10927. var yyj8 int
  10928. var yyb8 bool
  10929. var yyhl8 bool = l >= 0
  10930. yyj8++
  10931. if yyhl8 {
  10932. yyb8 = yyj8 > l
  10933. } else {
  10934. yyb8 = r.CheckBreak()
  10935. }
  10936. if yyb8 {
  10937. r.ReadArrayEnd()
  10938. return
  10939. }
  10940. r.ReadArrayElem()
  10941. if r.TryDecodeAsNil() {
  10942. x.S = ""
  10943. } else {
  10944. x.S = (string)(r.DecodeString())
  10945. }
  10946. yyj8++
  10947. if yyhl8 {
  10948. yyb8 = yyj8 > l
  10949. } else {
  10950. yyb8 = r.CheckBreak()
  10951. }
  10952. if yyb8 {
  10953. r.ReadArrayEnd()
  10954. return
  10955. }
  10956. r.ReadArrayElem()
  10957. if r.TryDecodeAsNil() {
  10958. x.B = false
  10959. } else {
  10960. x.B = (bool)(r.DecodeBool())
  10961. }
  10962. yyj8++
  10963. if yyhl8 {
  10964. yyb8 = yyj8 > l
  10965. } else {
  10966. yyb8 = r.CheckBreak()
  10967. }
  10968. if yyb8 {
  10969. r.ReadArrayEnd()
  10970. return
  10971. }
  10972. r.ReadArrayElem()
  10973. if r.TryDecodeAsNil() {
  10974. x.F = 0
  10975. } else {
  10976. x.F = (float64)(r.DecodeFloat64())
  10977. }
  10978. yyj8++
  10979. if yyhl8 {
  10980. yyb8 = yyj8 > l
  10981. } else {
  10982. yyb8 = r.CheckBreak()
  10983. }
  10984. if yyb8 {
  10985. r.ReadArrayEnd()
  10986. return
  10987. }
  10988. r.ReadArrayElem()
  10989. if r.TryDecodeAsNil() {
  10990. x.I = 0
  10991. } else {
  10992. x.I = (int64)(r.DecodeInt64())
  10993. }
  10994. for {
  10995. yyj8++
  10996. if yyhl8 {
  10997. yyb8 = yyj8 > l
  10998. } else {
  10999. yyb8 = r.CheckBreak()
  11000. }
  11001. if yyb8 {
  11002. break
  11003. }
  11004. r.ReadArrayElem()
  11005. z.DecStructFieldNotFound(yyj8-1, "")
  11006. }
  11007. r.ReadArrayEnd()
  11008. }
  11009. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  11010. var h codecSelfer19780
  11011. z, r := GenHelperEncoder(e)
  11012. _, _, _ = h, z, r
  11013. if x == nil {
  11014. r.EncodeNil()
  11015. } else {
  11016. if false {
  11017. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  11018. z.EncExtension(x, yyxt1)
  11019. } else {
  11020. yysep2 := !z.EncBinary()
  11021. yy2arr2 := z.EncBasicHandle().StructToArray
  11022. _, _ = yysep2, yy2arr2
  11023. const yyr2 bool = false // struct tag has 'toArray'
  11024. var yyq2 = [73]bool{ // should field at this index be written?
  11025. x.S != "", // S
  11026. x.I64 != 0, // I64
  11027. x.I32 != 0, // I32
  11028. x.I16 != 0, // I16
  11029. x.I8 != 0, // I8
  11030. x.I64n != 0, // I64n
  11031. x.I32n != 0, // I32n
  11032. x.I16n != 0, // I16n
  11033. x.I8n != 0, // I8n
  11034. x.Ui64 != 0, // Ui64
  11035. x.Ui32 != 0, // Ui32
  11036. x.Ui16 != 0, // Ui16
  11037. x.Ui8 != 0, // Ui8
  11038. x.F64 != 0, // F64
  11039. x.F32 != 0, // F32
  11040. x.B, // B
  11041. x.By != 0, // By
  11042. len(x.Sslice) != 0, // Sslice
  11043. len(x.I64slice) != 0, // I64slice
  11044. len(x.I16slice) != 0, // I16slice
  11045. len(x.Ui64slice) != 0, // Ui64slice
  11046. len(x.Ui8slice) != 0, // Ui8slice
  11047. len(x.Bslice) != 0, // Bslice
  11048. len(x.Byslice) != 0, // Byslice
  11049. len(x.Iptrslice) != 0, // Iptrslice
  11050. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  11051. len(x.WrapSliceString) != 0, // WrapSliceString
  11052. len(x.Msi64) != 0, // Msi64
  11053. 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
  11054. len(x.SstrUi64T) != 0, // SstrUi64T
  11055. x.AS != "", // AS
  11056. x.AI64 != 0, // AI64
  11057. x.AI16 != 0, // AI16
  11058. x.AUi64 != 0, // AUi64
  11059. len(x.ASslice) != 0, // ASslice
  11060. len(x.AI64slice) != 0, // AI64slice
  11061. len(x.AUi64slice) != 0, // AUi64slice
  11062. len(x.AF64slice) != 0, // AF64slice
  11063. len(x.AF32slice) != 0, // AF32slice
  11064. len(x.AMSU16) != 0, // AMSU16
  11065. len(x.AI64arr0) != 0, // AI64arr0
  11066. len(x.A164slice0) != 0, // A164slice0
  11067. len(x.AUi64sliceN) != 0, // AUi64sliceN
  11068. len(x.AMSU16N) != 0, // AMSU16N
  11069. len(x.AMSU16E) != 0, // AMSU16E
  11070. 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
  11071. len(x.Nmap) != 0, // Nmap
  11072. len(x.Nslice) != 0, // Nslice
  11073. x.Nint64 != nil, // Nint64
  11074. len(x.Chstr) != 0, // Chstr
  11075. len(x.Mis) != 0, // Mis
  11076. len(x.Mbu64) != 0, // Mbu64
  11077. len(x.Miwu64s) != 0, // Miwu64s
  11078. len(x.Mfwss) != 0, // Mfwss
  11079. len(x.Mf32wss) != 0, // Mf32wss
  11080. len(x.Mui2wss) != 0, // Mui2wss
  11081. len(x.Msu2wss) != 0, // Msu2wss
  11082. x.Ci64 != 0, // Ci64
  11083. len(x.Swrapbytes) != 0, // Swrapbytes
  11084. len(x.Swrapuint8) != 0, // Swrapuint8
  11085. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  11086. len(x.Ui64array) != 0, // Ui64array
  11087. len(x.Ui64slicearray) != 0, // Ui64slicearray
  11088. len(x.SintfAarray) != 0, // SintfAarray
  11089. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  11090. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  11091. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  11092. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  11093. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  11094. len(x.Mtsptr) != 0, // Mtsptr
  11095. len(x.Mts) != 0, // Mts
  11096. len(x.Its) != 0, // Its
  11097. x.Nteststruc != nil, // Nteststruc
  11098. }
  11099. _ = yyq2
  11100. if yyr2 || yy2arr2 {
  11101. r.WriteArrayStart(73)
  11102. } else {
  11103. var yynn2 int
  11104. for _, b := range yyq2 {
  11105. if b {
  11106. yynn2++
  11107. }
  11108. }
  11109. r.WriteMapStart(yynn2)
  11110. yynn2 = 0
  11111. }
  11112. if yyr2 || yy2arr2 {
  11113. r.WriteArrayElem()
  11114. if yyq2[0] {
  11115. if false {
  11116. } else {
  11117. if z.EncBasicHandle().StringToRaw {
  11118. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  11119. } else {
  11120. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  11121. }
  11122. }
  11123. } else {
  11124. if z.EncBasicHandle().StringToRaw {
  11125. r.EncodeStringBytesRaw([]byte{})
  11126. } else {
  11127. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  11128. }
  11129. }
  11130. } else {
  11131. if yyq2[0] {
  11132. r.WriteMapElemKey()
  11133. if z.IsJSONHandle() {
  11134. z.WriteStr("\"S\"")
  11135. } else {
  11136. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  11137. }
  11138. r.WriteMapElemValue()
  11139. if false {
  11140. } else {
  11141. if z.EncBasicHandle().StringToRaw {
  11142. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  11143. } else {
  11144. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  11145. }
  11146. }
  11147. }
  11148. }
  11149. if yyr2 || yy2arr2 {
  11150. r.WriteArrayElem()
  11151. if yyq2[1] {
  11152. if false {
  11153. } else {
  11154. r.EncodeInt(int64(x.TestStrucCommon.I64))
  11155. }
  11156. } else {
  11157. r.EncodeInt(0)
  11158. }
  11159. } else {
  11160. if yyq2[1] {
  11161. r.WriteMapElemKey()
  11162. if z.IsJSONHandle() {
  11163. z.WriteStr("\"I64\"")
  11164. } else {
  11165. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  11166. }
  11167. r.WriteMapElemValue()
  11168. if false {
  11169. } else {
  11170. r.EncodeInt(int64(x.TestStrucCommon.I64))
  11171. }
  11172. }
  11173. }
  11174. if yyr2 || yy2arr2 {
  11175. r.WriteArrayElem()
  11176. if yyq2[2] {
  11177. if false {
  11178. } else {
  11179. r.EncodeInt(int64(x.TestStrucCommon.I32))
  11180. }
  11181. } else {
  11182. r.EncodeInt(0)
  11183. }
  11184. } else {
  11185. if yyq2[2] {
  11186. r.WriteMapElemKey()
  11187. if z.IsJSONHandle() {
  11188. z.WriteStr("\"I32\"")
  11189. } else {
  11190. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  11191. }
  11192. r.WriteMapElemValue()
  11193. if false {
  11194. } else {
  11195. r.EncodeInt(int64(x.TestStrucCommon.I32))
  11196. }
  11197. }
  11198. }
  11199. if yyr2 || yy2arr2 {
  11200. r.WriteArrayElem()
  11201. if yyq2[3] {
  11202. if false {
  11203. } else {
  11204. r.EncodeInt(int64(x.TestStrucCommon.I16))
  11205. }
  11206. } else {
  11207. r.EncodeInt(0)
  11208. }
  11209. } else {
  11210. if yyq2[3] {
  11211. r.WriteMapElemKey()
  11212. if z.IsJSONHandle() {
  11213. z.WriteStr("\"I16\"")
  11214. } else {
  11215. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  11216. }
  11217. r.WriteMapElemValue()
  11218. if false {
  11219. } else {
  11220. r.EncodeInt(int64(x.TestStrucCommon.I16))
  11221. }
  11222. }
  11223. }
  11224. if yyr2 || yy2arr2 {
  11225. r.WriteArrayElem()
  11226. if yyq2[4] {
  11227. if false {
  11228. } else {
  11229. r.EncodeInt(int64(x.TestStrucCommon.I8))
  11230. }
  11231. } else {
  11232. r.EncodeInt(0)
  11233. }
  11234. } else {
  11235. if yyq2[4] {
  11236. r.WriteMapElemKey()
  11237. if z.IsJSONHandle() {
  11238. z.WriteStr("\"I8\"")
  11239. } else {
  11240. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  11241. }
  11242. r.WriteMapElemValue()
  11243. if false {
  11244. } else {
  11245. r.EncodeInt(int64(x.TestStrucCommon.I8))
  11246. }
  11247. }
  11248. }
  11249. if yyr2 || yy2arr2 {
  11250. r.WriteArrayElem()
  11251. if yyq2[5] {
  11252. if false {
  11253. } else {
  11254. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  11255. }
  11256. } else {
  11257. r.EncodeInt(0)
  11258. }
  11259. } else {
  11260. if yyq2[5] {
  11261. r.WriteMapElemKey()
  11262. if z.IsJSONHandle() {
  11263. z.WriteStr("\"I64n\"")
  11264. } else {
  11265. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  11266. }
  11267. r.WriteMapElemValue()
  11268. if false {
  11269. } else {
  11270. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  11271. }
  11272. }
  11273. }
  11274. if yyr2 || yy2arr2 {
  11275. r.WriteArrayElem()
  11276. if yyq2[6] {
  11277. if false {
  11278. } else {
  11279. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  11280. }
  11281. } else {
  11282. r.EncodeInt(0)
  11283. }
  11284. } else {
  11285. if yyq2[6] {
  11286. r.WriteMapElemKey()
  11287. if z.IsJSONHandle() {
  11288. z.WriteStr("\"I32n\"")
  11289. } else {
  11290. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  11291. }
  11292. r.WriteMapElemValue()
  11293. if false {
  11294. } else {
  11295. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  11296. }
  11297. }
  11298. }
  11299. if yyr2 || yy2arr2 {
  11300. r.WriteArrayElem()
  11301. if yyq2[7] {
  11302. if false {
  11303. } else {
  11304. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  11305. }
  11306. } else {
  11307. r.EncodeInt(0)
  11308. }
  11309. } else {
  11310. if yyq2[7] {
  11311. r.WriteMapElemKey()
  11312. if z.IsJSONHandle() {
  11313. z.WriteStr("\"I16n\"")
  11314. } else {
  11315. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  11316. }
  11317. r.WriteMapElemValue()
  11318. if false {
  11319. } else {
  11320. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  11321. }
  11322. }
  11323. }
  11324. if yyr2 || yy2arr2 {
  11325. r.WriteArrayElem()
  11326. if yyq2[8] {
  11327. if false {
  11328. } else {
  11329. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  11330. }
  11331. } else {
  11332. r.EncodeInt(0)
  11333. }
  11334. } else {
  11335. if yyq2[8] {
  11336. r.WriteMapElemKey()
  11337. if z.IsJSONHandle() {
  11338. z.WriteStr("\"I8n\"")
  11339. } else {
  11340. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  11341. }
  11342. r.WriteMapElemValue()
  11343. if false {
  11344. } else {
  11345. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  11346. }
  11347. }
  11348. }
  11349. if yyr2 || yy2arr2 {
  11350. r.WriteArrayElem()
  11351. if yyq2[9] {
  11352. if false {
  11353. } else {
  11354. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  11355. }
  11356. } else {
  11357. r.EncodeUint(0)
  11358. }
  11359. } else {
  11360. if yyq2[9] {
  11361. r.WriteMapElemKey()
  11362. if z.IsJSONHandle() {
  11363. z.WriteStr("\"Ui64\"")
  11364. } else {
  11365. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  11366. }
  11367. r.WriteMapElemValue()
  11368. if false {
  11369. } else {
  11370. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  11371. }
  11372. }
  11373. }
  11374. if yyr2 || yy2arr2 {
  11375. r.WriteArrayElem()
  11376. if yyq2[10] {
  11377. if false {
  11378. } else {
  11379. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  11380. }
  11381. } else {
  11382. r.EncodeUint(0)
  11383. }
  11384. } else {
  11385. if yyq2[10] {
  11386. r.WriteMapElemKey()
  11387. if z.IsJSONHandle() {
  11388. z.WriteStr("\"Ui32\"")
  11389. } else {
  11390. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  11391. }
  11392. r.WriteMapElemValue()
  11393. if false {
  11394. } else {
  11395. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  11396. }
  11397. }
  11398. }
  11399. if yyr2 || yy2arr2 {
  11400. r.WriteArrayElem()
  11401. if yyq2[11] {
  11402. if false {
  11403. } else {
  11404. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  11405. }
  11406. } else {
  11407. r.EncodeUint(0)
  11408. }
  11409. } else {
  11410. if yyq2[11] {
  11411. r.WriteMapElemKey()
  11412. if z.IsJSONHandle() {
  11413. z.WriteStr("\"Ui16\"")
  11414. } else {
  11415. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  11416. }
  11417. r.WriteMapElemValue()
  11418. if false {
  11419. } else {
  11420. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  11421. }
  11422. }
  11423. }
  11424. if yyr2 || yy2arr2 {
  11425. r.WriteArrayElem()
  11426. if yyq2[12] {
  11427. if false {
  11428. } else {
  11429. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  11430. }
  11431. } else {
  11432. r.EncodeUint(0)
  11433. }
  11434. } else {
  11435. if yyq2[12] {
  11436. r.WriteMapElemKey()
  11437. if z.IsJSONHandle() {
  11438. z.WriteStr("\"Ui8\"")
  11439. } else {
  11440. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  11441. }
  11442. r.WriteMapElemValue()
  11443. if false {
  11444. } else {
  11445. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  11446. }
  11447. }
  11448. }
  11449. if yyr2 || yy2arr2 {
  11450. r.WriteArrayElem()
  11451. if yyq2[13] {
  11452. if false {
  11453. } else {
  11454. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  11455. }
  11456. } else {
  11457. r.EncodeFloat64(0)
  11458. }
  11459. } else {
  11460. if yyq2[13] {
  11461. r.WriteMapElemKey()
  11462. if z.IsJSONHandle() {
  11463. z.WriteStr("\"F64\"")
  11464. } else {
  11465. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  11466. }
  11467. r.WriteMapElemValue()
  11468. if false {
  11469. } else {
  11470. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  11471. }
  11472. }
  11473. }
  11474. if yyr2 || yy2arr2 {
  11475. r.WriteArrayElem()
  11476. if yyq2[14] {
  11477. if false {
  11478. } else {
  11479. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  11480. }
  11481. } else {
  11482. r.EncodeFloat32(0)
  11483. }
  11484. } else {
  11485. if yyq2[14] {
  11486. r.WriteMapElemKey()
  11487. if z.IsJSONHandle() {
  11488. z.WriteStr("\"F32\"")
  11489. } else {
  11490. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  11491. }
  11492. r.WriteMapElemValue()
  11493. if false {
  11494. } else {
  11495. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  11496. }
  11497. }
  11498. }
  11499. if yyr2 || yy2arr2 {
  11500. r.WriteArrayElem()
  11501. if yyq2[15] {
  11502. if false {
  11503. } else {
  11504. r.EncodeBool(bool(x.TestStrucCommon.B))
  11505. }
  11506. } else {
  11507. r.EncodeBool(false)
  11508. }
  11509. } else {
  11510. if yyq2[15] {
  11511. r.WriteMapElemKey()
  11512. if z.IsJSONHandle() {
  11513. z.WriteStr("\"B\"")
  11514. } else {
  11515. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  11516. }
  11517. r.WriteMapElemValue()
  11518. if false {
  11519. } else {
  11520. r.EncodeBool(bool(x.TestStrucCommon.B))
  11521. }
  11522. }
  11523. }
  11524. if yyr2 || yy2arr2 {
  11525. r.WriteArrayElem()
  11526. if yyq2[16] {
  11527. if false {
  11528. } else {
  11529. r.EncodeUint(uint64(x.TestStrucCommon.By))
  11530. }
  11531. } else {
  11532. r.EncodeUint(0)
  11533. }
  11534. } else {
  11535. if yyq2[16] {
  11536. r.WriteMapElemKey()
  11537. if z.IsJSONHandle() {
  11538. z.WriteStr("\"By\"")
  11539. } else {
  11540. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  11541. }
  11542. r.WriteMapElemValue()
  11543. if false {
  11544. } else {
  11545. r.EncodeUint(uint64(x.TestStrucCommon.By))
  11546. }
  11547. }
  11548. }
  11549. if yyr2 || yy2arr2 {
  11550. r.WriteArrayElem()
  11551. if yyq2[17] {
  11552. if x.TestStrucCommon.Sslice == nil {
  11553. r.EncodeNil()
  11554. } else {
  11555. if false {
  11556. } else {
  11557. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  11558. }
  11559. }
  11560. } else {
  11561. r.EncodeNil()
  11562. }
  11563. } else {
  11564. if yyq2[17] {
  11565. r.WriteMapElemKey()
  11566. if z.IsJSONHandle() {
  11567. z.WriteStr("\"Sslice\"")
  11568. } else {
  11569. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  11570. }
  11571. r.WriteMapElemValue()
  11572. if x.TestStrucCommon.Sslice == nil {
  11573. r.EncodeNil()
  11574. } else {
  11575. if false {
  11576. } else {
  11577. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  11578. }
  11579. }
  11580. }
  11581. }
  11582. if yyr2 || yy2arr2 {
  11583. r.WriteArrayElem()
  11584. if yyq2[18] {
  11585. if x.TestStrucCommon.I64slice == nil {
  11586. r.EncodeNil()
  11587. } else {
  11588. if false {
  11589. } else {
  11590. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  11591. }
  11592. }
  11593. } else {
  11594. r.EncodeNil()
  11595. }
  11596. } else {
  11597. if yyq2[18] {
  11598. r.WriteMapElemKey()
  11599. if z.IsJSONHandle() {
  11600. z.WriteStr("\"I64slice\"")
  11601. } else {
  11602. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  11603. }
  11604. r.WriteMapElemValue()
  11605. if x.TestStrucCommon.I64slice == nil {
  11606. r.EncodeNil()
  11607. } else {
  11608. if false {
  11609. } else {
  11610. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  11611. }
  11612. }
  11613. }
  11614. }
  11615. if yyr2 || yy2arr2 {
  11616. r.WriteArrayElem()
  11617. if yyq2[19] {
  11618. if x.TestStrucCommon.I16slice == nil {
  11619. r.EncodeNil()
  11620. } else {
  11621. if false {
  11622. } else {
  11623. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  11624. }
  11625. }
  11626. } else {
  11627. r.EncodeNil()
  11628. }
  11629. } else {
  11630. if yyq2[19] {
  11631. r.WriteMapElemKey()
  11632. if z.IsJSONHandle() {
  11633. z.WriteStr("\"I16slice\"")
  11634. } else {
  11635. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  11636. }
  11637. r.WriteMapElemValue()
  11638. if x.TestStrucCommon.I16slice == nil {
  11639. r.EncodeNil()
  11640. } else {
  11641. if false {
  11642. } else {
  11643. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  11644. }
  11645. }
  11646. }
  11647. }
  11648. if yyr2 || yy2arr2 {
  11649. r.WriteArrayElem()
  11650. if yyq2[20] {
  11651. if x.TestStrucCommon.Ui64slice == nil {
  11652. r.EncodeNil()
  11653. } else {
  11654. if false {
  11655. } else {
  11656. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  11657. }
  11658. }
  11659. } else {
  11660. r.EncodeNil()
  11661. }
  11662. } else {
  11663. if yyq2[20] {
  11664. r.WriteMapElemKey()
  11665. if z.IsJSONHandle() {
  11666. z.WriteStr("\"Ui64slice\"")
  11667. } else {
  11668. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  11669. }
  11670. r.WriteMapElemValue()
  11671. if x.TestStrucCommon.Ui64slice == nil {
  11672. r.EncodeNil()
  11673. } else {
  11674. if false {
  11675. } else {
  11676. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  11677. }
  11678. }
  11679. }
  11680. }
  11681. if yyr2 || yy2arr2 {
  11682. r.WriteArrayElem()
  11683. if yyq2[21] {
  11684. if x.TestStrucCommon.Ui8slice == nil {
  11685. r.EncodeNil()
  11686. } else {
  11687. if false {
  11688. } else {
  11689. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  11690. }
  11691. }
  11692. } else {
  11693. r.EncodeNil()
  11694. }
  11695. } else {
  11696. if yyq2[21] {
  11697. r.WriteMapElemKey()
  11698. if z.IsJSONHandle() {
  11699. z.WriteStr("\"Ui8slice\"")
  11700. } else {
  11701. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  11702. }
  11703. r.WriteMapElemValue()
  11704. if x.TestStrucCommon.Ui8slice == nil {
  11705. r.EncodeNil()
  11706. } else {
  11707. if false {
  11708. } else {
  11709. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  11710. }
  11711. }
  11712. }
  11713. }
  11714. if yyr2 || yy2arr2 {
  11715. r.WriteArrayElem()
  11716. if yyq2[22] {
  11717. if x.TestStrucCommon.Bslice == nil {
  11718. r.EncodeNil()
  11719. } else {
  11720. if false {
  11721. } else {
  11722. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  11723. }
  11724. }
  11725. } else {
  11726. r.EncodeNil()
  11727. }
  11728. } else {
  11729. if yyq2[22] {
  11730. r.WriteMapElemKey()
  11731. if z.IsJSONHandle() {
  11732. z.WriteStr("\"Bslice\"")
  11733. } else {
  11734. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  11735. }
  11736. r.WriteMapElemValue()
  11737. if x.TestStrucCommon.Bslice == nil {
  11738. r.EncodeNil()
  11739. } else {
  11740. if false {
  11741. } else {
  11742. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  11743. }
  11744. }
  11745. }
  11746. }
  11747. if yyr2 || yy2arr2 {
  11748. r.WriteArrayElem()
  11749. if yyq2[23] {
  11750. if x.TestStrucCommon.Byslice == nil {
  11751. r.EncodeNil()
  11752. } else {
  11753. if false {
  11754. } else {
  11755. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  11756. }
  11757. }
  11758. } else {
  11759. r.EncodeNil()
  11760. }
  11761. } else {
  11762. if yyq2[23] {
  11763. r.WriteMapElemKey()
  11764. if z.IsJSONHandle() {
  11765. z.WriteStr("\"Byslice\"")
  11766. } else {
  11767. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  11768. }
  11769. r.WriteMapElemValue()
  11770. if x.TestStrucCommon.Byslice == nil {
  11771. r.EncodeNil()
  11772. } else {
  11773. if false {
  11774. } else {
  11775. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  11776. }
  11777. }
  11778. }
  11779. }
  11780. if yyr2 || yy2arr2 {
  11781. r.WriteArrayElem()
  11782. if yyq2[24] {
  11783. if x.TestStrucCommon.Iptrslice == nil {
  11784. r.EncodeNil()
  11785. } else {
  11786. if false {
  11787. } else {
  11788. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  11789. }
  11790. }
  11791. } else {
  11792. r.EncodeNil()
  11793. }
  11794. } else {
  11795. if yyq2[24] {
  11796. r.WriteMapElemKey()
  11797. if z.IsJSONHandle() {
  11798. z.WriteStr("\"Iptrslice\"")
  11799. } else {
  11800. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  11801. }
  11802. r.WriteMapElemValue()
  11803. if x.TestStrucCommon.Iptrslice == nil {
  11804. r.EncodeNil()
  11805. } else {
  11806. if false {
  11807. } else {
  11808. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  11809. }
  11810. }
  11811. }
  11812. }
  11813. if yyr2 || yy2arr2 {
  11814. r.WriteArrayElem()
  11815. if yyq2[25] {
  11816. if x.TestStrucCommon.WrapSliceInt64 == nil {
  11817. r.EncodeNil()
  11818. } else {
  11819. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  11820. }
  11821. } else {
  11822. r.EncodeNil()
  11823. }
  11824. } else {
  11825. if yyq2[25] {
  11826. r.WriteMapElemKey()
  11827. if z.IsJSONHandle() {
  11828. z.WriteStr("\"WrapSliceInt64\"")
  11829. } else {
  11830. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  11831. }
  11832. r.WriteMapElemValue()
  11833. if x.TestStrucCommon.WrapSliceInt64 == nil {
  11834. r.EncodeNil()
  11835. } else {
  11836. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  11837. }
  11838. }
  11839. }
  11840. if yyr2 || yy2arr2 {
  11841. r.WriteArrayElem()
  11842. if yyq2[26] {
  11843. if x.TestStrucCommon.WrapSliceString == nil {
  11844. r.EncodeNil()
  11845. } else {
  11846. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  11847. }
  11848. } else {
  11849. r.EncodeNil()
  11850. }
  11851. } else {
  11852. if yyq2[26] {
  11853. r.WriteMapElemKey()
  11854. if z.IsJSONHandle() {
  11855. z.WriteStr("\"WrapSliceString\"")
  11856. } else {
  11857. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  11858. }
  11859. r.WriteMapElemValue()
  11860. if x.TestStrucCommon.WrapSliceString == nil {
  11861. r.EncodeNil()
  11862. } else {
  11863. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  11864. }
  11865. }
  11866. }
  11867. if yyr2 || yy2arr2 {
  11868. r.WriteArrayElem()
  11869. if yyq2[27] {
  11870. if x.TestStrucCommon.Msi64 == nil {
  11871. r.EncodeNil()
  11872. } else {
  11873. if false {
  11874. } else {
  11875. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  11876. }
  11877. }
  11878. } else {
  11879. r.EncodeNil()
  11880. }
  11881. } else {
  11882. if yyq2[27] {
  11883. r.WriteMapElemKey()
  11884. if z.IsJSONHandle() {
  11885. z.WriteStr("\"Msi64\"")
  11886. } else {
  11887. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  11888. }
  11889. r.WriteMapElemValue()
  11890. if x.TestStrucCommon.Msi64 == nil {
  11891. r.EncodeNil()
  11892. } else {
  11893. if false {
  11894. } else {
  11895. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  11896. }
  11897. }
  11898. }
  11899. }
  11900. if yyr2 || yy2arr2 {
  11901. r.WriteArrayElem()
  11902. if yyq2[28] {
  11903. yy88 := &x.TestStrucCommon.Simplef
  11904. yy88.CodecEncodeSelf(e)
  11905. } else {
  11906. r.EncodeNil()
  11907. }
  11908. } else {
  11909. if yyq2[28] {
  11910. r.WriteMapElemKey()
  11911. if z.IsJSONHandle() {
  11912. z.WriteStr("\"Simplef\"")
  11913. } else {
  11914. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  11915. }
  11916. r.WriteMapElemValue()
  11917. yy90 := &x.TestStrucCommon.Simplef
  11918. yy90.CodecEncodeSelf(e)
  11919. }
  11920. }
  11921. if yyr2 || yy2arr2 {
  11922. r.WriteArrayElem()
  11923. if yyq2[29] {
  11924. if x.TestStrucCommon.SstrUi64T == nil {
  11925. r.EncodeNil()
  11926. } else {
  11927. if false {
  11928. } else {
  11929. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  11930. }
  11931. }
  11932. } else {
  11933. r.EncodeNil()
  11934. }
  11935. } else {
  11936. if yyq2[29] {
  11937. r.WriteMapElemKey()
  11938. if z.IsJSONHandle() {
  11939. z.WriteStr("\"SstrUi64T\"")
  11940. } else {
  11941. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  11942. }
  11943. r.WriteMapElemValue()
  11944. if x.TestStrucCommon.SstrUi64T == nil {
  11945. r.EncodeNil()
  11946. } else {
  11947. if false {
  11948. } else {
  11949. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  11950. }
  11951. }
  11952. }
  11953. }
  11954. if yyr2 || yy2arr2 {
  11955. r.WriteArrayElem()
  11956. if yyq2[30] {
  11957. if false {
  11958. } else {
  11959. if z.EncBasicHandle().StringToRaw {
  11960. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  11961. } else {
  11962. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  11963. }
  11964. }
  11965. } else {
  11966. if z.EncBasicHandle().StringToRaw {
  11967. r.EncodeStringBytesRaw([]byte{})
  11968. } else {
  11969. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  11970. }
  11971. }
  11972. } else {
  11973. if yyq2[30] {
  11974. r.WriteMapElemKey()
  11975. if z.IsJSONHandle() {
  11976. z.WriteStr("\"AS\"")
  11977. } else {
  11978. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  11979. }
  11980. r.WriteMapElemValue()
  11981. if false {
  11982. } else {
  11983. if z.EncBasicHandle().StringToRaw {
  11984. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  11985. } else {
  11986. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  11987. }
  11988. }
  11989. }
  11990. }
  11991. if yyr2 || yy2arr2 {
  11992. r.WriteArrayElem()
  11993. if yyq2[31] {
  11994. if false {
  11995. } else {
  11996. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  11997. }
  11998. } else {
  11999. r.EncodeInt(0)
  12000. }
  12001. } else {
  12002. if yyq2[31] {
  12003. r.WriteMapElemKey()
  12004. if z.IsJSONHandle() {
  12005. z.WriteStr("\"AI64\"")
  12006. } else {
  12007. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  12008. }
  12009. r.WriteMapElemValue()
  12010. if false {
  12011. } else {
  12012. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  12013. }
  12014. }
  12015. }
  12016. if yyr2 || yy2arr2 {
  12017. r.WriteArrayElem()
  12018. if yyq2[32] {
  12019. if false {
  12020. } else {
  12021. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  12022. }
  12023. } else {
  12024. r.EncodeInt(0)
  12025. }
  12026. } else {
  12027. if yyq2[32] {
  12028. r.WriteMapElemKey()
  12029. if z.IsJSONHandle() {
  12030. z.WriteStr("\"AI16\"")
  12031. } else {
  12032. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  12033. }
  12034. r.WriteMapElemValue()
  12035. if false {
  12036. } else {
  12037. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  12038. }
  12039. }
  12040. }
  12041. if yyr2 || yy2arr2 {
  12042. r.WriteArrayElem()
  12043. if yyq2[33] {
  12044. if false {
  12045. } else {
  12046. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  12047. }
  12048. } else {
  12049. r.EncodeUint(0)
  12050. }
  12051. } else {
  12052. if yyq2[33] {
  12053. r.WriteMapElemKey()
  12054. if z.IsJSONHandle() {
  12055. z.WriteStr("\"AUi64\"")
  12056. } else {
  12057. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  12058. }
  12059. r.WriteMapElemValue()
  12060. if false {
  12061. } else {
  12062. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  12063. }
  12064. }
  12065. }
  12066. if yyr2 || yy2arr2 {
  12067. r.WriteArrayElem()
  12068. if yyq2[34] {
  12069. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  12070. r.EncodeNil()
  12071. } else {
  12072. if false {
  12073. } else {
  12074. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  12075. }
  12076. }
  12077. } else {
  12078. r.EncodeNil()
  12079. }
  12080. } else {
  12081. if yyq2[34] {
  12082. r.WriteMapElemKey()
  12083. if z.IsJSONHandle() {
  12084. z.WriteStr("\"ASslice\"")
  12085. } else {
  12086. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  12087. }
  12088. r.WriteMapElemValue()
  12089. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  12090. r.EncodeNil()
  12091. } else {
  12092. if false {
  12093. } else {
  12094. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  12095. }
  12096. }
  12097. }
  12098. }
  12099. if yyr2 || yy2arr2 {
  12100. r.WriteArrayElem()
  12101. if yyq2[35] {
  12102. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  12103. r.EncodeNil()
  12104. } else {
  12105. if false {
  12106. } else {
  12107. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  12108. }
  12109. }
  12110. } else {
  12111. r.EncodeNil()
  12112. }
  12113. } else {
  12114. if yyq2[35] {
  12115. r.WriteMapElemKey()
  12116. if z.IsJSONHandle() {
  12117. z.WriteStr("\"AI64slice\"")
  12118. } else {
  12119. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  12120. }
  12121. r.WriteMapElemValue()
  12122. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  12123. r.EncodeNil()
  12124. } else {
  12125. if false {
  12126. } else {
  12127. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  12128. }
  12129. }
  12130. }
  12131. }
  12132. if yyr2 || yy2arr2 {
  12133. r.WriteArrayElem()
  12134. if yyq2[36] {
  12135. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  12136. r.EncodeNil()
  12137. } else {
  12138. if false {
  12139. } else {
  12140. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  12141. }
  12142. }
  12143. } else {
  12144. r.EncodeNil()
  12145. }
  12146. } else {
  12147. if yyq2[36] {
  12148. r.WriteMapElemKey()
  12149. if z.IsJSONHandle() {
  12150. z.WriteStr("\"AUi64slice\"")
  12151. } else {
  12152. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  12153. }
  12154. r.WriteMapElemValue()
  12155. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  12156. r.EncodeNil()
  12157. } else {
  12158. if false {
  12159. } else {
  12160. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  12161. }
  12162. }
  12163. }
  12164. }
  12165. if yyr2 || yy2arr2 {
  12166. r.WriteArrayElem()
  12167. if yyq2[37] {
  12168. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  12169. r.EncodeNil()
  12170. } else {
  12171. if false {
  12172. } else {
  12173. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  12174. }
  12175. }
  12176. } else {
  12177. r.EncodeNil()
  12178. }
  12179. } else {
  12180. if yyq2[37] {
  12181. r.WriteMapElemKey()
  12182. if z.IsJSONHandle() {
  12183. z.WriteStr("\"AF64slice\"")
  12184. } else {
  12185. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  12186. }
  12187. r.WriteMapElemValue()
  12188. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  12189. r.EncodeNil()
  12190. } else {
  12191. if false {
  12192. } else {
  12193. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  12194. }
  12195. }
  12196. }
  12197. }
  12198. if yyr2 || yy2arr2 {
  12199. r.WriteArrayElem()
  12200. if yyq2[38] {
  12201. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  12202. r.EncodeNil()
  12203. } else {
  12204. if false {
  12205. } else {
  12206. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  12207. }
  12208. }
  12209. } else {
  12210. r.EncodeNil()
  12211. }
  12212. } else {
  12213. if yyq2[38] {
  12214. r.WriteMapElemKey()
  12215. if z.IsJSONHandle() {
  12216. z.WriteStr("\"AF32slice\"")
  12217. } else {
  12218. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  12219. }
  12220. r.WriteMapElemValue()
  12221. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  12222. r.EncodeNil()
  12223. } else {
  12224. if false {
  12225. } else {
  12226. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  12227. }
  12228. }
  12229. }
  12230. }
  12231. if yyr2 || yy2arr2 {
  12232. r.WriteArrayElem()
  12233. if yyq2[39] {
  12234. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  12235. r.EncodeNil()
  12236. } else {
  12237. if false {
  12238. } else {
  12239. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  12240. }
  12241. }
  12242. } else {
  12243. r.EncodeNil()
  12244. }
  12245. } else {
  12246. if yyq2[39] {
  12247. r.WriteMapElemKey()
  12248. if z.IsJSONHandle() {
  12249. z.WriteStr("\"AMSU16\"")
  12250. } else {
  12251. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  12252. }
  12253. r.WriteMapElemValue()
  12254. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  12255. r.EncodeNil()
  12256. } else {
  12257. if false {
  12258. } else {
  12259. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  12260. }
  12261. }
  12262. }
  12263. }
  12264. if yyr2 || yy2arr2 {
  12265. r.WriteArrayElem()
  12266. if yyq2[40] {
  12267. yy126 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  12268. if false {
  12269. } else {
  12270. h.encArray0int64((*[0]int64)(yy126), e)
  12271. }
  12272. } else {
  12273. r.EncodeNil()
  12274. }
  12275. } else {
  12276. if yyq2[40] {
  12277. r.WriteMapElemKey()
  12278. if z.IsJSONHandle() {
  12279. z.WriteStr("\"AI64arr0\"")
  12280. } else {
  12281. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  12282. }
  12283. r.WriteMapElemValue()
  12284. yy128 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  12285. if false {
  12286. } else {
  12287. h.encArray0int64((*[0]int64)(yy128), e)
  12288. }
  12289. }
  12290. }
  12291. if yyr2 || yy2arr2 {
  12292. r.WriteArrayElem()
  12293. if yyq2[41] {
  12294. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  12295. r.EncodeNil()
  12296. } else {
  12297. if false {
  12298. } else {
  12299. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  12300. }
  12301. }
  12302. } else {
  12303. r.EncodeNil()
  12304. }
  12305. } else {
  12306. if yyq2[41] {
  12307. r.WriteMapElemKey()
  12308. if z.IsJSONHandle() {
  12309. z.WriteStr("\"A164slice0\"")
  12310. } else {
  12311. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  12312. }
  12313. r.WriteMapElemValue()
  12314. if x.TestStrucCommon.AnonInTestStruc.A164slice0 == nil {
  12315. r.EncodeNil()
  12316. } else {
  12317. if false {
  12318. } else {
  12319. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  12320. }
  12321. }
  12322. }
  12323. }
  12324. if yyr2 || yy2arr2 {
  12325. r.WriteArrayElem()
  12326. if yyq2[42] {
  12327. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  12328. r.EncodeNil()
  12329. } else {
  12330. if false {
  12331. } else {
  12332. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  12333. }
  12334. }
  12335. } else {
  12336. r.EncodeNil()
  12337. }
  12338. } else {
  12339. if yyq2[42] {
  12340. r.WriteMapElemKey()
  12341. if z.IsJSONHandle() {
  12342. z.WriteStr("\"AUi64sliceN\"")
  12343. } else {
  12344. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  12345. }
  12346. r.WriteMapElemValue()
  12347. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  12348. r.EncodeNil()
  12349. } else {
  12350. if false {
  12351. } else {
  12352. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  12353. }
  12354. }
  12355. }
  12356. }
  12357. if yyr2 || yy2arr2 {
  12358. r.WriteArrayElem()
  12359. if yyq2[43] {
  12360. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  12361. r.EncodeNil()
  12362. } else {
  12363. if false {
  12364. } else {
  12365. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  12366. }
  12367. }
  12368. } else {
  12369. r.EncodeNil()
  12370. }
  12371. } else {
  12372. if yyq2[43] {
  12373. r.WriteMapElemKey()
  12374. if z.IsJSONHandle() {
  12375. z.WriteStr("\"AMSU16N\"")
  12376. } else {
  12377. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  12378. }
  12379. r.WriteMapElemValue()
  12380. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  12381. r.EncodeNil()
  12382. } else {
  12383. if false {
  12384. } else {
  12385. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  12386. }
  12387. }
  12388. }
  12389. }
  12390. if yyr2 || yy2arr2 {
  12391. r.WriteArrayElem()
  12392. if yyq2[44] {
  12393. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  12394. r.EncodeNil()
  12395. } else {
  12396. if false {
  12397. } else {
  12398. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  12399. }
  12400. }
  12401. } else {
  12402. r.EncodeNil()
  12403. }
  12404. } else {
  12405. if yyq2[44] {
  12406. r.WriteMapElemKey()
  12407. if z.IsJSONHandle() {
  12408. z.WriteStr("\"AMSU16E\"")
  12409. } else {
  12410. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  12411. }
  12412. r.WriteMapElemValue()
  12413. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  12414. r.EncodeNil()
  12415. } else {
  12416. if false {
  12417. } else {
  12418. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  12419. }
  12420. }
  12421. }
  12422. }
  12423. if yyr2 || yy2arr2 {
  12424. r.WriteArrayElem()
  12425. if yyq2[45] {
  12426. yy143 := &x.TestStrucCommon.NotAnon
  12427. yy143.CodecEncodeSelf(e)
  12428. } else {
  12429. r.EncodeNil()
  12430. }
  12431. } else {
  12432. if yyq2[45] {
  12433. r.WriteMapElemKey()
  12434. if z.IsJSONHandle() {
  12435. z.WriteStr("\"NotAnon\"")
  12436. } else {
  12437. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  12438. }
  12439. r.WriteMapElemValue()
  12440. yy145 := &x.TestStrucCommon.NotAnon
  12441. yy145.CodecEncodeSelf(e)
  12442. }
  12443. }
  12444. if yyr2 || yy2arr2 {
  12445. r.WriteArrayElem()
  12446. if yyq2[46] {
  12447. if x.TestStrucCommon.Nmap == nil {
  12448. r.EncodeNil()
  12449. } else {
  12450. if false {
  12451. } else {
  12452. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  12453. }
  12454. }
  12455. } else {
  12456. r.EncodeNil()
  12457. }
  12458. } else {
  12459. if yyq2[46] {
  12460. r.WriteMapElemKey()
  12461. if z.IsJSONHandle() {
  12462. z.WriteStr("\"Nmap\"")
  12463. } else {
  12464. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  12465. }
  12466. r.WriteMapElemValue()
  12467. if x.TestStrucCommon.Nmap == nil {
  12468. r.EncodeNil()
  12469. } else {
  12470. if false {
  12471. } else {
  12472. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  12473. }
  12474. }
  12475. }
  12476. }
  12477. if yyr2 || yy2arr2 {
  12478. r.WriteArrayElem()
  12479. if yyq2[47] {
  12480. if x.TestStrucCommon.Nslice == nil {
  12481. r.EncodeNil()
  12482. } else {
  12483. if false {
  12484. } else {
  12485. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  12486. }
  12487. }
  12488. } else {
  12489. r.EncodeNil()
  12490. }
  12491. } else {
  12492. if yyq2[47] {
  12493. r.WriteMapElemKey()
  12494. if z.IsJSONHandle() {
  12495. z.WriteStr("\"Nslice\"")
  12496. } else {
  12497. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  12498. }
  12499. r.WriteMapElemValue()
  12500. if x.TestStrucCommon.Nslice == nil {
  12501. r.EncodeNil()
  12502. } else {
  12503. if false {
  12504. } else {
  12505. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  12506. }
  12507. }
  12508. }
  12509. }
  12510. var yyn153 bool
  12511. if x.TestStrucCommon.Nint64 == nil {
  12512. yyn153 = true
  12513. goto LABEL153
  12514. }
  12515. LABEL153:
  12516. if yyr2 || yy2arr2 {
  12517. if yyn153 {
  12518. r.WriteArrayElem()
  12519. r.EncodeNil()
  12520. } else {
  12521. r.WriteArrayElem()
  12522. if yyq2[48] {
  12523. if x.TestStrucCommon.Nint64 == nil {
  12524. r.EncodeNil()
  12525. } else {
  12526. yy154 := *x.TestStrucCommon.Nint64
  12527. if false {
  12528. } else {
  12529. r.EncodeInt(int64(yy154))
  12530. }
  12531. }
  12532. } else {
  12533. r.EncodeNil()
  12534. }
  12535. }
  12536. } else {
  12537. if yyq2[48] {
  12538. r.WriteMapElemKey()
  12539. if z.IsJSONHandle() {
  12540. z.WriteStr("\"Nint64\"")
  12541. } else {
  12542. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  12543. }
  12544. r.WriteMapElemValue()
  12545. if yyn153 {
  12546. r.EncodeNil()
  12547. } else {
  12548. if x.TestStrucCommon.Nint64 == nil {
  12549. r.EncodeNil()
  12550. } else {
  12551. yy156 := *x.TestStrucCommon.Nint64
  12552. if false {
  12553. } else {
  12554. r.EncodeInt(int64(yy156))
  12555. }
  12556. }
  12557. }
  12558. }
  12559. }
  12560. if yyr2 || yy2arr2 {
  12561. r.WriteArrayElem()
  12562. if yyq2[49] {
  12563. if x.Chstr == nil {
  12564. r.EncodeNil()
  12565. } else {
  12566. if false {
  12567. } else {
  12568. h.encChanstring((chan string)(x.Chstr), e)
  12569. }
  12570. }
  12571. } else {
  12572. r.EncodeNil()
  12573. }
  12574. } else {
  12575. if yyq2[49] {
  12576. r.WriteMapElemKey()
  12577. if z.IsJSONHandle() {
  12578. z.WriteStr("\"Chstr\"")
  12579. } else {
  12580. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  12581. }
  12582. r.WriteMapElemValue()
  12583. if x.Chstr == nil {
  12584. r.EncodeNil()
  12585. } else {
  12586. if false {
  12587. } else {
  12588. h.encChanstring((chan string)(x.Chstr), e)
  12589. }
  12590. }
  12591. }
  12592. }
  12593. if yyr2 || yy2arr2 {
  12594. r.WriteArrayElem()
  12595. if yyq2[50] {
  12596. if x.Mis == nil {
  12597. r.EncodeNil()
  12598. } else {
  12599. if false {
  12600. } else {
  12601. z.F.EncMapIntStringV(x.Mis, e)
  12602. }
  12603. }
  12604. } else {
  12605. r.EncodeNil()
  12606. }
  12607. } else {
  12608. if yyq2[50] {
  12609. r.WriteMapElemKey()
  12610. if z.IsJSONHandle() {
  12611. z.WriteStr("\"Mis\"")
  12612. } else {
  12613. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  12614. }
  12615. r.WriteMapElemValue()
  12616. if x.Mis == nil {
  12617. r.EncodeNil()
  12618. } else {
  12619. if false {
  12620. } else {
  12621. z.F.EncMapIntStringV(x.Mis, e)
  12622. }
  12623. }
  12624. }
  12625. }
  12626. if yyr2 || yy2arr2 {
  12627. r.WriteArrayElem()
  12628. if yyq2[51] {
  12629. if x.Mbu64 == nil {
  12630. r.EncodeNil()
  12631. } else {
  12632. if false {
  12633. } else {
  12634. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  12635. }
  12636. }
  12637. } else {
  12638. r.EncodeNil()
  12639. }
  12640. } else {
  12641. if yyq2[51] {
  12642. r.WriteMapElemKey()
  12643. if z.IsJSONHandle() {
  12644. z.WriteStr("\"Mbu64\"")
  12645. } else {
  12646. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  12647. }
  12648. r.WriteMapElemValue()
  12649. if x.Mbu64 == nil {
  12650. r.EncodeNil()
  12651. } else {
  12652. if false {
  12653. } else {
  12654. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  12655. }
  12656. }
  12657. }
  12658. }
  12659. if yyr2 || yy2arr2 {
  12660. r.WriteArrayElem()
  12661. if yyq2[52] {
  12662. if x.Miwu64s == nil {
  12663. r.EncodeNil()
  12664. } else {
  12665. if false {
  12666. } else {
  12667. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  12668. }
  12669. }
  12670. } else {
  12671. r.EncodeNil()
  12672. }
  12673. } else {
  12674. if yyq2[52] {
  12675. r.WriteMapElemKey()
  12676. if z.IsJSONHandle() {
  12677. z.WriteStr("\"Miwu64s\"")
  12678. } else {
  12679. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  12680. }
  12681. r.WriteMapElemValue()
  12682. if x.Miwu64s == nil {
  12683. r.EncodeNil()
  12684. } else {
  12685. if false {
  12686. } else {
  12687. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  12688. }
  12689. }
  12690. }
  12691. }
  12692. if yyr2 || yy2arr2 {
  12693. r.WriteArrayElem()
  12694. if yyq2[53] {
  12695. if x.Mfwss == nil {
  12696. r.EncodeNil()
  12697. } else {
  12698. if false {
  12699. } else {
  12700. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  12701. }
  12702. }
  12703. } else {
  12704. r.EncodeNil()
  12705. }
  12706. } else {
  12707. if yyq2[53] {
  12708. r.WriteMapElemKey()
  12709. if z.IsJSONHandle() {
  12710. z.WriteStr("\"Mfwss\"")
  12711. } else {
  12712. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  12713. }
  12714. r.WriteMapElemValue()
  12715. if x.Mfwss == nil {
  12716. r.EncodeNil()
  12717. } else {
  12718. if false {
  12719. } else {
  12720. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  12721. }
  12722. }
  12723. }
  12724. }
  12725. if yyr2 || yy2arr2 {
  12726. r.WriteArrayElem()
  12727. if yyq2[54] {
  12728. if x.Mf32wss == nil {
  12729. r.EncodeNil()
  12730. } else {
  12731. if false {
  12732. } else {
  12733. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  12734. }
  12735. }
  12736. } else {
  12737. r.EncodeNil()
  12738. }
  12739. } else {
  12740. if yyq2[54] {
  12741. r.WriteMapElemKey()
  12742. if z.IsJSONHandle() {
  12743. z.WriteStr("\"Mf32wss\"")
  12744. } else {
  12745. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  12746. }
  12747. r.WriteMapElemValue()
  12748. if x.Mf32wss == nil {
  12749. r.EncodeNil()
  12750. } else {
  12751. if false {
  12752. } else {
  12753. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  12754. }
  12755. }
  12756. }
  12757. }
  12758. if yyr2 || yy2arr2 {
  12759. r.WriteArrayElem()
  12760. if yyq2[55] {
  12761. if x.Mui2wss == nil {
  12762. r.EncodeNil()
  12763. } else {
  12764. if false {
  12765. } else {
  12766. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  12767. }
  12768. }
  12769. } else {
  12770. r.EncodeNil()
  12771. }
  12772. } else {
  12773. if yyq2[55] {
  12774. r.WriteMapElemKey()
  12775. if z.IsJSONHandle() {
  12776. z.WriteStr("\"Mui2wss\"")
  12777. } else {
  12778. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  12779. }
  12780. r.WriteMapElemValue()
  12781. if x.Mui2wss == nil {
  12782. r.EncodeNil()
  12783. } else {
  12784. if false {
  12785. } else {
  12786. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  12787. }
  12788. }
  12789. }
  12790. }
  12791. if yyr2 || yy2arr2 {
  12792. r.WriteArrayElem()
  12793. if yyq2[56] {
  12794. if x.Msu2wss == nil {
  12795. r.EncodeNil()
  12796. } else {
  12797. if false {
  12798. } else {
  12799. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  12800. }
  12801. }
  12802. } else {
  12803. r.EncodeNil()
  12804. }
  12805. } else {
  12806. if yyq2[56] {
  12807. r.WriteMapElemKey()
  12808. if z.IsJSONHandle() {
  12809. z.WriteStr("\"Msu2wss\"")
  12810. } else {
  12811. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  12812. }
  12813. r.WriteMapElemValue()
  12814. if x.Msu2wss == nil {
  12815. r.EncodeNil()
  12816. } else {
  12817. if false {
  12818. } else {
  12819. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  12820. }
  12821. }
  12822. }
  12823. }
  12824. if yyr2 || yy2arr2 {
  12825. r.WriteArrayElem()
  12826. if yyq2[57] {
  12827. x.Ci64.CodecEncodeSelf(e)
  12828. } else {
  12829. r.EncodeInt(0)
  12830. }
  12831. } else {
  12832. if yyq2[57] {
  12833. r.WriteMapElemKey()
  12834. if z.IsJSONHandle() {
  12835. z.WriteStr("\"Ci64\"")
  12836. } else {
  12837. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  12838. }
  12839. r.WriteMapElemValue()
  12840. x.Ci64.CodecEncodeSelf(e)
  12841. }
  12842. }
  12843. if yyr2 || yy2arr2 {
  12844. r.WriteArrayElem()
  12845. if yyq2[58] {
  12846. if x.Swrapbytes == nil {
  12847. r.EncodeNil()
  12848. } else {
  12849. if false {
  12850. } else {
  12851. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  12852. }
  12853. }
  12854. } else {
  12855. r.EncodeNil()
  12856. }
  12857. } else {
  12858. if yyq2[58] {
  12859. r.WriteMapElemKey()
  12860. if z.IsJSONHandle() {
  12861. z.WriteStr("\"Swrapbytes\"")
  12862. } else {
  12863. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  12864. }
  12865. r.WriteMapElemValue()
  12866. if x.Swrapbytes == nil {
  12867. r.EncodeNil()
  12868. } else {
  12869. if false {
  12870. } else {
  12871. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  12872. }
  12873. }
  12874. }
  12875. }
  12876. if yyr2 || yy2arr2 {
  12877. r.WriteArrayElem()
  12878. if yyq2[59] {
  12879. if x.Swrapuint8 == nil {
  12880. r.EncodeNil()
  12881. } else {
  12882. if false {
  12883. } else {
  12884. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  12885. }
  12886. }
  12887. } else {
  12888. r.EncodeNil()
  12889. }
  12890. } else {
  12891. if yyq2[59] {
  12892. r.WriteMapElemKey()
  12893. if z.IsJSONHandle() {
  12894. z.WriteStr("\"Swrapuint8\"")
  12895. } else {
  12896. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  12897. }
  12898. r.WriteMapElemValue()
  12899. if x.Swrapuint8 == nil {
  12900. r.EncodeNil()
  12901. } else {
  12902. if false {
  12903. } else {
  12904. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  12905. }
  12906. }
  12907. }
  12908. }
  12909. if yyr2 || yy2arr2 {
  12910. r.WriteArrayElem()
  12911. if yyq2[60] {
  12912. yy192 := &x.ArrStrUi64T
  12913. if false {
  12914. } else {
  12915. h.encArray4stringUint64T((*[4]stringUint64T)(yy192), e)
  12916. }
  12917. } else {
  12918. r.EncodeNil()
  12919. }
  12920. } else {
  12921. if yyq2[60] {
  12922. r.WriteMapElemKey()
  12923. if z.IsJSONHandle() {
  12924. z.WriteStr("\"ArrStrUi64T\"")
  12925. } else {
  12926. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  12927. }
  12928. r.WriteMapElemValue()
  12929. yy194 := &x.ArrStrUi64T
  12930. if false {
  12931. } else {
  12932. h.encArray4stringUint64T((*[4]stringUint64T)(yy194), e)
  12933. }
  12934. }
  12935. }
  12936. if yyr2 || yy2arr2 {
  12937. r.WriteArrayElem()
  12938. if yyq2[61] {
  12939. yy197 := &x.Ui64array
  12940. if false {
  12941. } else {
  12942. h.encArray4uint64((*[4]uint64)(yy197), e)
  12943. }
  12944. } else {
  12945. r.EncodeNil()
  12946. }
  12947. } else {
  12948. if yyq2[61] {
  12949. r.WriteMapElemKey()
  12950. if z.IsJSONHandle() {
  12951. z.WriteStr("\"Ui64array\"")
  12952. } else {
  12953. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  12954. }
  12955. r.WriteMapElemValue()
  12956. yy199 := &x.Ui64array
  12957. if false {
  12958. } else {
  12959. h.encArray4uint64((*[4]uint64)(yy199), e)
  12960. }
  12961. }
  12962. }
  12963. if yyr2 || yy2arr2 {
  12964. r.WriteArrayElem()
  12965. if yyq2[62] {
  12966. if x.Ui64slicearray == nil {
  12967. r.EncodeNil()
  12968. } else {
  12969. if false {
  12970. } else {
  12971. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  12972. }
  12973. }
  12974. } else {
  12975. r.EncodeNil()
  12976. }
  12977. } else {
  12978. if yyq2[62] {
  12979. r.WriteMapElemKey()
  12980. if z.IsJSONHandle() {
  12981. z.WriteStr("\"Ui64slicearray\"")
  12982. } else {
  12983. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  12984. }
  12985. r.WriteMapElemValue()
  12986. if x.Ui64slicearray == nil {
  12987. r.EncodeNil()
  12988. } else {
  12989. if false {
  12990. } else {
  12991. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  12992. }
  12993. }
  12994. }
  12995. }
  12996. if yyr2 || yy2arr2 {
  12997. r.WriteArrayElem()
  12998. if yyq2[63] {
  12999. if x.SintfAarray == nil {
  13000. r.EncodeNil()
  13001. } else {
  13002. if false {
  13003. } else {
  13004. z.F.EncSliceIntfV(x.SintfAarray, e)
  13005. }
  13006. }
  13007. } else {
  13008. r.EncodeNil()
  13009. }
  13010. } else {
  13011. if yyq2[63] {
  13012. r.WriteMapElemKey()
  13013. if z.IsJSONHandle() {
  13014. z.WriteStr("\"SintfAarray\"")
  13015. } else {
  13016. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  13017. }
  13018. r.WriteMapElemValue()
  13019. if x.SintfAarray == nil {
  13020. r.EncodeNil()
  13021. } else {
  13022. if false {
  13023. } else {
  13024. z.F.EncSliceIntfV(x.SintfAarray, e)
  13025. }
  13026. }
  13027. }
  13028. }
  13029. var yyn207 bool
  13030. if x.AnonInTestStrucIntf == nil {
  13031. yyn207 = true
  13032. goto LABEL207
  13033. }
  13034. LABEL207:
  13035. if yyr2 || yy2arr2 {
  13036. if yyn207 {
  13037. r.WriteArrayElem()
  13038. r.EncodeNil()
  13039. } else {
  13040. r.WriteArrayElem()
  13041. if yyq2[64] {
  13042. if x.AnonInTestStrucIntf.Islice == nil {
  13043. r.EncodeNil()
  13044. } else {
  13045. if false {
  13046. } else {
  13047. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  13048. }
  13049. }
  13050. } else {
  13051. r.EncodeNil()
  13052. }
  13053. }
  13054. } else {
  13055. if yyq2[64] {
  13056. r.WriteMapElemKey()
  13057. if z.IsJSONHandle() {
  13058. z.WriteStr("\"Islice\"")
  13059. } else {
  13060. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  13061. }
  13062. r.WriteMapElemValue()
  13063. if yyn207 {
  13064. r.EncodeNil()
  13065. } else {
  13066. if x.AnonInTestStrucIntf.Islice == nil {
  13067. r.EncodeNil()
  13068. } else {
  13069. if false {
  13070. } else {
  13071. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  13072. }
  13073. }
  13074. }
  13075. }
  13076. }
  13077. var yyn210 bool
  13078. if x.AnonInTestStrucIntf == nil {
  13079. yyn210 = true
  13080. goto LABEL210
  13081. }
  13082. LABEL210:
  13083. if yyr2 || yy2arr2 {
  13084. if yyn210 {
  13085. r.WriteArrayElem()
  13086. r.EncodeNil()
  13087. } else {
  13088. r.WriteArrayElem()
  13089. if yyq2[65] {
  13090. if x.AnonInTestStrucIntf.Ms == nil {
  13091. r.EncodeNil()
  13092. } else {
  13093. if false {
  13094. } else {
  13095. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  13096. }
  13097. }
  13098. } else {
  13099. r.EncodeNil()
  13100. }
  13101. }
  13102. } else {
  13103. if yyq2[65] {
  13104. r.WriteMapElemKey()
  13105. if z.IsJSONHandle() {
  13106. z.WriteStr("\"Ms\"")
  13107. } else {
  13108. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  13109. }
  13110. r.WriteMapElemValue()
  13111. if yyn210 {
  13112. r.EncodeNil()
  13113. } else {
  13114. if x.AnonInTestStrucIntf.Ms == nil {
  13115. r.EncodeNil()
  13116. } else {
  13117. if false {
  13118. } else {
  13119. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  13120. }
  13121. }
  13122. }
  13123. }
  13124. }
  13125. var yyn213 bool
  13126. if x.AnonInTestStrucIntf == nil {
  13127. yyn213 = true
  13128. goto LABEL213
  13129. }
  13130. LABEL213:
  13131. if yyr2 || yy2arr2 {
  13132. if yyn213 {
  13133. r.WriteArrayElem()
  13134. r.EncodeNil()
  13135. } else {
  13136. r.WriteArrayElem()
  13137. if yyq2[66] {
  13138. if x.AnonInTestStrucIntf.Nintf == nil {
  13139. r.EncodeNil()
  13140. } else {
  13141. if false {
  13142. } else {
  13143. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  13144. }
  13145. }
  13146. } else {
  13147. r.EncodeNil()
  13148. }
  13149. }
  13150. } else {
  13151. if yyq2[66] {
  13152. r.WriteMapElemKey()
  13153. if z.IsJSONHandle() {
  13154. z.WriteStr("\"Nintf\"")
  13155. } else {
  13156. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  13157. }
  13158. r.WriteMapElemValue()
  13159. if yyn213 {
  13160. r.EncodeNil()
  13161. } else {
  13162. if x.AnonInTestStrucIntf.Nintf == nil {
  13163. r.EncodeNil()
  13164. } else {
  13165. if false {
  13166. } else {
  13167. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  13168. }
  13169. }
  13170. }
  13171. }
  13172. }
  13173. var yyn216 bool
  13174. if x.AnonInTestStrucIntf == nil {
  13175. yyn216 = true
  13176. goto LABEL216
  13177. }
  13178. LABEL216:
  13179. if yyr2 || yy2arr2 {
  13180. if yyn216 {
  13181. r.WriteArrayElem()
  13182. r.EncodeNil()
  13183. } else {
  13184. r.WriteArrayElem()
  13185. if yyq2[67] {
  13186. if false {
  13187. } else if !z.EncBasicHandle().TimeNotBuiltin {
  13188. r.EncodeTime(x.AnonInTestStrucIntf.T)
  13189. } else if yyxt217 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt217 != nil {
  13190. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt217)
  13191. } else if z.EncBinary() {
  13192. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  13193. } else if !z.EncBinary() && z.IsJSONHandle() {
  13194. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  13195. } else {
  13196. z.EncFallback(x.AnonInTestStrucIntf.T)
  13197. }
  13198. } else {
  13199. r.EncodeNil()
  13200. }
  13201. }
  13202. } else {
  13203. if yyq2[67] {
  13204. r.WriteMapElemKey()
  13205. if z.IsJSONHandle() {
  13206. z.WriteStr("\"T\"")
  13207. } else {
  13208. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  13209. }
  13210. r.WriteMapElemValue()
  13211. if yyn216 {
  13212. r.EncodeNil()
  13213. } else {
  13214. if false {
  13215. } else if !z.EncBasicHandle().TimeNotBuiltin {
  13216. r.EncodeTime(x.AnonInTestStrucIntf.T)
  13217. } else if yyxt218 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt218 != nil {
  13218. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt218)
  13219. } else if z.EncBinary() {
  13220. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  13221. } else if !z.EncBinary() && z.IsJSONHandle() {
  13222. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  13223. } else {
  13224. z.EncFallback(x.AnonInTestStrucIntf.T)
  13225. }
  13226. }
  13227. }
  13228. }
  13229. var yyn219 bool
  13230. if x.AnonInTestStrucIntf == nil {
  13231. yyn219 = true
  13232. goto LABEL219
  13233. }
  13234. if x.AnonInTestStrucIntf.Tptr == nil {
  13235. yyn219 = true
  13236. goto LABEL219
  13237. }
  13238. LABEL219:
  13239. if yyr2 || yy2arr2 {
  13240. if yyn219 {
  13241. r.WriteArrayElem()
  13242. r.EncodeNil()
  13243. } else {
  13244. r.WriteArrayElem()
  13245. if yyq2[68] {
  13246. if x.AnonInTestStrucIntf.Tptr == nil {
  13247. r.EncodeNil()
  13248. } else {
  13249. yy220 := *x.AnonInTestStrucIntf.Tptr
  13250. if false {
  13251. } else if !z.EncBasicHandle().TimeNotBuiltin {
  13252. r.EncodeTime(yy220)
  13253. } else if yyxt221 := z.Extension(z.I2Rtid(yy220)); yyxt221 != nil {
  13254. z.EncExtension(yy220, yyxt221)
  13255. } else if z.EncBinary() {
  13256. z.EncBinaryMarshal(yy220)
  13257. } else if !z.EncBinary() && z.IsJSONHandle() {
  13258. z.EncJSONMarshal(yy220)
  13259. } else {
  13260. z.EncFallback(yy220)
  13261. }
  13262. }
  13263. } else {
  13264. r.EncodeNil()
  13265. }
  13266. }
  13267. } else {
  13268. if yyq2[68] {
  13269. r.WriteMapElemKey()
  13270. if z.IsJSONHandle() {
  13271. z.WriteStr("\"Tptr\"")
  13272. } else {
  13273. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  13274. }
  13275. r.WriteMapElemValue()
  13276. if yyn219 {
  13277. r.EncodeNil()
  13278. } else {
  13279. if x.AnonInTestStrucIntf.Tptr == nil {
  13280. r.EncodeNil()
  13281. } else {
  13282. yy222 := *x.AnonInTestStrucIntf.Tptr
  13283. if false {
  13284. } else if !z.EncBasicHandle().TimeNotBuiltin {
  13285. r.EncodeTime(yy222)
  13286. } else if yyxt223 := z.Extension(z.I2Rtid(yy222)); yyxt223 != nil {
  13287. z.EncExtension(yy222, yyxt223)
  13288. } else if z.EncBinary() {
  13289. z.EncBinaryMarshal(yy222)
  13290. } else if !z.EncBinary() && z.IsJSONHandle() {
  13291. z.EncJSONMarshal(yy222)
  13292. } else {
  13293. z.EncFallback(yy222)
  13294. }
  13295. }
  13296. }
  13297. }
  13298. }
  13299. if yyr2 || yy2arr2 {
  13300. r.WriteArrayElem()
  13301. if yyq2[69] {
  13302. if x.Mtsptr == nil {
  13303. r.EncodeNil()
  13304. } else {
  13305. if false {
  13306. } else {
  13307. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  13308. }
  13309. }
  13310. } else {
  13311. r.EncodeNil()
  13312. }
  13313. } else {
  13314. if yyq2[69] {
  13315. r.WriteMapElemKey()
  13316. if z.IsJSONHandle() {
  13317. z.WriteStr("\"Mtsptr\"")
  13318. } else {
  13319. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  13320. }
  13321. r.WriteMapElemValue()
  13322. if x.Mtsptr == nil {
  13323. r.EncodeNil()
  13324. } else {
  13325. if false {
  13326. } else {
  13327. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  13328. }
  13329. }
  13330. }
  13331. }
  13332. if yyr2 || yy2arr2 {
  13333. r.WriteArrayElem()
  13334. if yyq2[70] {
  13335. if x.Mts == nil {
  13336. r.EncodeNil()
  13337. } else {
  13338. if false {
  13339. } else {
  13340. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  13341. }
  13342. }
  13343. } else {
  13344. r.EncodeNil()
  13345. }
  13346. } else {
  13347. if yyq2[70] {
  13348. r.WriteMapElemKey()
  13349. if z.IsJSONHandle() {
  13350. z.WriteStr("\"Mts\"")
  13351. } else {
  13352. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  13353. }
  13354. r.WriteMapElemValue()
  13355. if x.Mts == nil {
  13356. r.EncodeNil()
  13357. } else {
  13358. if false {
  13359. } else {
  13360. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  13361. }
  13362. }
  13363. }
  13364. }
  13365. if yyr2 || yy2arr2 {
  13366. r.WriteArrayElem()
  13367. if yyq2[71] {
  13368. if x.Its == nil {
  13369. r.EncodeNil()
  13370. } else {
  13371. if false {
  13372. } else {
  13373. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  13374. }
  13375. }
  13376. } else {
  13377. r.EncodeNil()
  13378. }
  13379. } else {
  13380. if yyq2[71] {
  13381. r.WriteMapElemKey()
  13382. if z.IsJSONHandle() {
  13383. z.WriteStr("\"Its\"")
  13384. } else {
  13385. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  13386. }
  13387. r.WriteMapElemValue()
  13388. if x.Its == nil {
  13389. r.EncodeNil()
  13390. } else {
  13391. if false {
  13392. } else {
  13393. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  13394. }
  13395. }
  13396. }
  13397. }
  13398. var yyn233 bool
  13399. if x.Nteststruc == nil {
  13400. yyn233 = true
  13401. goto LABEL233
  13402. }
  13403. LABEL233:
  13404. if yyr2 || yy2arr2 {
  13405. if yyn233 {
  13406. r.WriteArrayElem()
  13407. r.EncodeNil()
  13408. } else {
  13409. r.WriteArrayElem()
  13410. if yyq2[72] {
  13411. if x.Nteststruc == nil {
  13412. r.EncodeNil()
  13413. } else {
  13414. x.Nteststruc.CodecEncodeSelf(e)
  13415. }
  13416. } else {
  13417. r.EncodeNil()
  13418. }
  13419. }
  13420. } else {
  13421. if yyq2[72] {
  13422. r.WriteMapElemKey()
  13423. if z.IsJSONHandle() {
  13424. z.WriteStr("\"Nteststruc\"")
  13425. } else {
  13426. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  13427. }
  13428. r.WriteMapElemValue()
  13429. if yyn233 {
  13430. r.EncodeNil()
  13431. } else {
  13432. if x.Nteststruc == nil {
  13433. r.EncodeNil()
  13434. } else {
  13435. x.Nteststruc.CodecEncodeSelf(e)
  13436. }
  13437. }
  13438. }
  13439. }
  13440. if yyr2 || yy2arr2 {
  13441. r.WriteArrayEnd()
  13442. } else {
  13443. r.WriteMapEnd()
  13444. }
  13445. }
  13446. }
  13447. }
  13448. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  13449. var h codecSelfer19780
  13450. z, r := GenHelperDecoder(d)
  13451. _, _, _ = h, z, r
  13452. if false {
  13453. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  13454. z.DecExtension(x, yyxt1)
  13455. } else {
  13456. yyct2 := r.ContainerType()
  13457. if yyct2 == codecSelferValueTypeMap19780 {
  13458. yyl2 := r.ReadMapStart()
  13459. if yyl2 == 0 {
  13460. r.ReadMapEnd()
  13461. } else {
  13462. x.codecDecodeSelfFromMap(yyl2, d)
  13463. }
  13464. } else if yyct2 == codecSelferValueTypeArray19780 {
  13465. yyl2 := r.ReadArrayStart()
  13466. if yyl2 == 0 {
  13467. r.ReadArrayEnd()
  13468. } else {
  13469. x.codecDecodeSelfFromArray(yyl2, d)
  13470. }
  13471. } else {
  13472. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  13473. }
  13474. }
  13475. }
  13476. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  13477. var h codecSelfer19780
  13478. z, r := GenHelperDecoder(d)
  13479. _, _, _ = h, z, r
  13480. var yyhl3 bool = l >= 0
  13481. for yyj3 := 0; ; yyj3++ {
  13482. if yyhl3 {
  13483. if yyj3 >= l {
  13484. break
  13485. }
  13486. } else {
  13487. if r.CheckBreak() {
  13488. break
  13489. }
  13490. }
  13491. r.ReadMapElemKey()
  13492. yys3 := z.StringView(r.DecodeStringAsBytes())
  13493. r.ReadMapElemValue()
  13494. switch yys3 {
  13495. case "S":
  13496. if r.TryDecodeAsNil() {
  13497. x.TestStrucCommon.S = ""
  13498. } else {
  13499. x.TestStrucCommon.S = (string)(r.DecodeString())
  13500. }
  13501. case "I64":
  13502. if r.TryDecodeAsNil() {
  13503. x.TestStrucCommon.I64 = 0
  13504. } else {
  13505. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  13506. }
  13507. case "I32":
  13508. if r.TryDecodeAsNil() {
  13509. x.TestStrucCommon.I32 = 0
  13510. } else {
  13511. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  13512. }
  13513. case "I16":
  13514. if r.TryDecodeAsNil() {
  13515. x.TestStrucCommon.I16 = 0
  13516. } else {
  13517. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13518. }
  13519. case "I8":
  13520. if r.TryDecodeAsNil() {
  13521. x.TestStrucCommon.I8 = 0
  13522. } else {
  13523. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  13524. }
  13525. case "I64n":
  13526. if r.TryDecodeAsNil() {
  13527. x.TestStrucCommon.I64n = 0
  13528. } else {
  13529. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  13530. }
  13531. case "I32n":
  13532. if r.TryDecodeAsNil() {
  13533. x.TestStrucCommon.I32n = 0
  13534. } else {
  13535. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  13536. }
  13537. case "I16n":
  13538. if r.TryDecodeAsNil() {
  13539. x.TestStrucCommon.I16n = 0
  13540. } else {
  13541. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13542. }
  13543. case "I8n":
  13544. if r.TryDecodeAsNil() {
  13545. x.TestStrucCommon.I8n = 0
  13546. } else {
  13547. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  13548. }
  13549. case "Ui64":
  13550. if r.TryDecodeAsNil() {
  13551. x.TestStrucCommon.Ui64 = 0
  13552. } else {
  13553. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  13554. }
  13555. case "Ui32":
  13556. if r.TryDecodeAsNil() {
  13557. x.TestStrucCommon.Ui32 = 0
  13558. } else {
  13559. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  13560. }
  13561. case "Ui16":
  13562. if r.TryDecodeAsNil() {
  13563. x.TestStrucCommon.Ui16 = 0
  13564. } else {
  13565. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  13566. }
  13567. case "Ui8":
  13568. if r.TryDecodeAsNil() {
  13569. x.TestStrucCommon.Ui8 = 0
  13570. } else {
  13571. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13572. }
  13573. case "F64":
  13574. if r.TryDecodeAsNil() {
  13575. x.TestStrucCommon.F64 = 0
  13576. } else {
  13577. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  13578. }
  13579. case "F32":
  13580. if r.TryDecodeAsNil() {
  13581. x.TestStrucCommon.F32 = 0
  13582. } else {
  13583. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  13584. }
  13585. case "B":
  13586. if r.TryDecodeAsNil() {
  13587. x.TestStrucCommon.B = false
  13588. } else {
  13589. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  13590. }
  13591. case "By":
  13592. if r.TryDecodeAsNil() {
  13593. x.TestStrucCommon.By = 0
  13594. } else {
  13595. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  13596. }
  13597. case "Sslice":
  13598. if r.TryDecodeAsNil() {
  13599. x.TestStrucCommon.Sslice = nil
  13600. } else {
  13601. if false {
  13602. } else {
  13603. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  13604. }
  13605. }
  13606. case "I64slice":
  13607. if r.TryDecodeAsNil() {
  13608. x.TestStrucCommon.I64slice = nil
  13609. } else {
  13610. if false {
  13611. } else {
  13612. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  13613. }
  13614. }
  13615. case "I16slice":
  13616. if r.TryDecodeAsNil() {
  13617. x.TestStrucCommon.I16slice = nil
  13618. } else {
  13619. if false {
  13620. } else {
  13621. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  13622. }
  13623. }
  13624. case "Ui64slice":
  13625. if r.TryDecodeAsNil() {
  13626. x.TestStrucCommon.Ui64slice = nil
  13627. } else {
  13628. if false {
  13629. } else {
  13630. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  13631. }
  13632. }
  13633. case "Ui8slice":
  13634. if r.TryDecodeAsNil() {
  13635. x.TestStrucCommon.Ui8slice = nil
  13636. } else {
  13637. if false {
  13638. } else {
  13639. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  13640. }
  13641. }
  13642. case "Bslice":
  13643. if r.TryDecodeAsNil() {
  13644. x.TestStrucCommon.Bslice = nil
  13645. } else {
  13646. if false {
  13647. } else {
  13648. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  13649. }
  13650. }
  13651. case "Byslice":
  13652. if r.TryDecodeAsNil() {
  13653. x.TestStrucCommon.Byslice = nil
  13654. } else {
  13655. if false {
  13656. } else {
  13657. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  13658. }
  13659. }
  13660. case "Iptrslice":
  13661. if r.TryDecodeAsNil() {
  13662. x.TestStrucCommon.Iptrslice = nil
  13663. } else {
  13664. if false {
  13665. } else {
  13666. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  13667. }
  13668. }
  13669. case "WrapSliceInt64":
  13670. if r.TryDecodeAsNil() {
  13671. x.TestStrucCommon.WrapSliceInt64 = nil
  13672. } else {
  13673. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  13674. }
  13675. case "WrapSliceString":
  13676. if r.TryDecodeAsNil() {
  13677. x.TestStrucCommon.WrapSliceString = nil
  13678. } else {
  13679. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  13680. }
  13681. case "Msi64":
  13682. if r.TryDecodeAsNil() {
  13683. x.TestStrucCommon.Msi64 = nil
  13684. } else {
  13685. if false {
  13686. } else {
  13687. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  13688. }
  13689. }
  13690. case "Simplef":
  13691. if r.TryDecodeAsNil() {
  13692. x.TestStrucCommon.Simplef = testSimpleFields{}
  13693. } else {
  13694. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  13695. }
  13696. case "SstrUi64T":
  13697. if r.TryDecodeAsNil() {
  13698. x.TestStrucCommon.SstrUi64T = nil
  13699. } else {
  13700. if false {
  13701. } else {
  13702. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  13703. }
  13704. }
  13705. case "AS":
  13706. if r.TryDecodeAsNil() {
  13707. x.TestStrucCommon.AnonInTestStruc.AS = ""
  13708. } else {
  13709. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  13710. }
  13711. case "AI64":
  13712. if r.TryDecodeAsNil() {
  13713. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  13714. } else {
  13715. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  13716. }
  13717. case "AI16":
  13718. if r.TryDecodeAsNil() {
  13719. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  13720. } else {
  13721. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13722. }
  13723. case "AUi64":
  13724. if r.TryDecodeAsNil() {
  13725. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  13726. } else {
  13727. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  13728. }
  13729. case "ASslice":
  13730. if r.TryDecodeAsNil() {
  13731. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  13732. } else {
  13733. if false {
  13734. } else {
  13735. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  13736. }
  13737. }
  13738. case "AI64slice":
  13739. if r.TryDecodeAsNil() {
  13740. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  13741. } else {
  13742. if false {
  13743. } else {
  13744. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  13745. }
  13746. }
  13747. case "AUi64slice":
  13748. if r.TryDecodeAsNil() {
  13749. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  13750. } else {
  13751. if false {
  13752. } else {
  13753. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  13754. }
  13755. }
  13756. case "AF64slice":
  13757. if r.TryDecodeAsNil() {
  13758. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  13759. } else {
  13760. if false {
  13761. } else {
  13762. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  13763. }
  13764. }
  13765. case "AF32slice":
  13766. if r.TryDecodeAsNil() {
  13767. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  13768. } else {
  13769. if false {
  13770. } else {
  13771. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  13772. }
  13773. }
  13774. case "AMSU16":
  13775. if r.TryDecodeAsNil() {
  13776. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  13777. } else {
  13778. if false {
  13779. } else {
  13780. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  13781. }
  13782. }
  13783. case "AI64arr0":
  13784. if r.TryDecodeAsNil() {
  13785. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  13786. } else {
  13787. if false {
  13788. } else {
  13789. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  13790. }
  13791. }
  13792. case "A164slice0":
  13793. if r.TryDecodeAsNil() {
  13794. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  13795. } else {
  13796. if false {
  13797. } else {
  13798. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  13799. }
  13800. }
  13801. case "AUi64sliceN":
  13802. if r.TryDecodeAsNil() {
  13803. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  13804. } else {
  13805. if false {
  13806. } else {
  13807. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  13808. }
  13809. }
  13810. case "AMSU16N":
  13811. if r.TryDecodeAsNil() {
  13812. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  13813. } else {
  13814. if false {
  13815. } else {
  13816. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  13817. }
  13818. }
  13819. case "AMSU16E":
  13820. if r.TryDecodeAsNil() {
  13821. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  13822. } else {
  13823. if false {
  13824. } else {
  13825. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  13826. }
  13827. }
  13828. case "NotAnon":
  13829. if r.TryDecodeAsNil() {
  13830. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  13831. } else {
  13832. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  13833. }
  13834. case "Nmap":
  13835. if r.TryDecodeAsNil() {
  13836. x.TestStrucCommon.Nmap = nil
  13837. } else {
  13838. if false {
  13839. } else {
  13840. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  13841. }
  13842. }
  13843. case "Nslice":
  13844. if r.TryDecodeAsNil() {
  13845. x.TestStrucCommon.Nslice = nil
  13846. } else {
  13847. if false {
  13848. } else {
  13849. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  13850. }
  13851. }
  13852. case "Nint64":
  13853. if r.TryDecodeAsNil() {
  13854. if true && x.TestStrucCommon.Nint64 != nil {
  13855. x.TestStrucCommon.Nint64 = nil
  13856. }
  13857. } else {
  13858. if x.TestStrucCommon.Nint64 == nil {
  13859. x.TestStrucCommon.Nint64 = new(int64)
  13860. }
  13861. if false {
  13862. } else {
  13863. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  13864. }
  13865. }
  13866. case "Chstr":
  13867. if r.TryDecodeAsNil() {
  13868. x.Chstr = nil
  13869. } else {
  13870. if false {
  13871. } else {
  13872. h.decChanstring((*chan string)(&x.Chstr), d)
  13873. }
  13874. }
  13875. case "Mis":
  13876. if r.TryDecodeAsNil() {
  13877. x.Mis = nil
  13878. } else {
  13879. if false {
  13880. } else {
  13881. z.F.DecMapIntStringX(&x.Mis, d)
  13882. }
  13883. }
  13884. case "Mbu64":
  13885. if r.TryDecodeAsNil() {
  13886. x.Mbu64 = nil
  13887. } else {
  13888. if false {
  13889. } else {
  13890. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  13891. }
  13892. }
  13893. case "Miwu64s":
  13894. if r.TryDecodeAsNil() {
  13895. x.Miwu64s = nil
  13896. } else {
  13897. if false {
  13898. } else {
  13899. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  13900. }
  13901. }
  13902. case "Mfwss":
  13903. if r.TryDecodeAsNil() {
  13904. x.Mfwss = nil
  13905. } else {
  13906. if false {
  13907. } else {
  13908. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  13909. }
  13910. }
  13911. case "Mf32wss":
  13912. if r.TryDecodeAsNil() {
  13913. x.Mf32wss = nil
  13914. } else {
  13915. if false {
  13916. } else {
  13917. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  13918. }
  13919. }
  13920. case "Mui2wss":
  13921. if r.TryDecodeAsNil() {
  13922. x.Mui2wss = nil
  13923. } else {
  13924. if false {
  13925. } else {
  13926. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  13927. }
  13928. }
  13929. case "Msu2wss":
  13930. if r.TryDecodeAsNil() {
  13931. x.Msu2wss = nil
  13932. } else {
  13933. if false {
  13934. } else {
  13935. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  13936. }
  13937. }
  13938. case "Ci64":
  13939. if r.TryDecodeAsNil() {
  13940. x.Ci64 = 0
  13941. } else {
  13942. x.Ci64.CodecDecodeSelf(d)
  13943. }
  13944. case "Swrapbytes":
  13945. if r.TryDecodeAsNil() {
  13946. x.Swrapbytes = nil
  13947. } else {
  13948. if false {
  13949. } else {
  13950. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  13951. }
  13952. }
  13953. case "Swrapuint8":
  13954. if r.TryDecodeAsNil() {
  13955. x.Swrapuint8 = nil
  13956. } else {
  13957. if false {
  13958. } else {
  13959. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  13960. }
  13961. }
  13962. case "ArrStrUi64T":
  13963. if r.TryDecodeAsNil() {
  13964. x.ArrStrUi64T = [4]stringUint64T{}
  13965. } else {
  13966. if false {
  13967. } else {
  13968. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  13969. }
  13970. }
  13971. case "Ui64array":
  13972. if r.TryDecodeAsNil() {
  13973. x.Ui64array = [4]uint64{}
  13974. } else {
  13975. if false {
  13976. } else {
  13977. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  13978. }
  13979. }
  13980. case "Ui64slicearray":
  13981. if r.TryDecodeAsNil() {
  13982. x.Ui64slicearray = nil
  13983. } else {
  13984. if false {
  13985. } else {
  13986. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  13987. }
  13988. }
  13989. case "SintfAarray":
  13990. if r.TryDecodeAsNil() {
  13991. x.SintfAarray = nil
  13992. } else {
  13993. if false {
  13994. } else {
  13995. z.F.DecSliceIntfX(&x.SintfAarray, d)
  13996. }
  13997. }
  13998. case "Islice":
  13999. if r.TryDecodeAsNil() {
  14000. if true && x.AnonInTestStrucIntf != nil {
  14001. x.AnonInTestStrucIntf.Islice = nil
  14002. }
  14003. } else {
  14004. if x.AnonInTestStrucIntf == nil {
  14005. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14006. }
  14007. if false {
  14008. } else {
  14009. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  14010. }
  14011. }
  14012. case "Ms":
  14013. if r.TryDecodeAsNil() {
  14014. if true && x.AnonInTestStrucIntf != nil {
  14015. x.AnonInTestStrucIntf.Ms = nil
  14016. }
  14017. } else {
  14018. if x.AnonInTestStrucIntf == nil {
  14019. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14020. }
  14021. if false {
  14022. } else {
  14023. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  14024. }
  14025. }
  14026. case "Nintf":
  14027. if r.TryDecodeAsNil() {
  14028. if true && x.AnonInTestStrucIntf != nil {
  14029. x.AnonInTestStrucIntf.Nintf = nil
  14030. }
  14031. } else {
  14032. if x.AnonInTestStrucIntf == nil {
  14033. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14034. }
  14035. if false {
  14036. } else {
  14037. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  14038. }
  14039. }
  14040. case "T":
  14041. if r.TryDecodeAsNil() {
  14042. if true && x.AnonInTestStrucIntf != nil {
  14043. x.AnonInTestStrucIntf.T = time.Time{}
  14044. }
  14045. } else {
  14046. if x.AnonInTestStrucIntf == nil {
  14047. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14048. }
  14049. if false {
  14050. } else if !z.DecBasicHandle().TimeNotBuiltin {
  14051. x.AnonInTestStrucIntf.T = r.DecodeTime()
  14052. } else if yyxt113 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt113 != nil {
  14053. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt113)
  14054. } else if z.DecBinary() {
  14055. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  14056. } else if !z.DecBinary() && z.IsJSONHandle() {
  14057. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  14058. } else {
  14059. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  14060. }
  14061. }
  14062. case "Tptr":
  14063. if r.TryDecodeAsNil() {
  14064. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  14065. x.AnonInTestStrucIntf.Tptr = nil
  14066. }
  14067. } else {
  14068. if x.AnonInTestStrucIntf == nil {
  14069. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  14070. }
  14071. if x.AnonInTestStrucIntf.Tptr == nil {
  14072. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  14073. }
  14074. if false {
  14075. } else if !z.DecBasicHandle().TimeNotBuiltin {
  14076. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  14077. } else if yyxt115 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt115 != nil {
  14078. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt115)
  14079. } else if z.DecBinary() {
  14080. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  14081. } else if !z.DecBinary() && z.IsJSONHandle() {
  14082. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  14083. } else {
  14084. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  14085. }
  14086. }
  14087. case "Mtsptr":
  14088. if r.TryDecodeAsNil() {
  14089. x.Mtsptr = nil
  14090. } else {
  14091. if false {
  14092. } else {
  14093. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  14094. }
  14095. }
  14096. case "Mts":
  14097. if r.TryDecodeAsNil() {
  14098. x.Mts = nil
  14099. } else {
  14100. if false {
  14101. } else {
  14102. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  14103. }
  14104. }
  14105. case "Its":
  14106. if r.TryDecodeAsNil() {
  14107. x.Its = nil
  14108. } else {
  14109. if false {
  14110. } else {
  14111. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  14112. }
  14113. }
  14114. case "Nteststruc":
  14115. if r.TryDecodeAsNil() {
  14116. if true && x.Nteststruc != nil {
  14117. x.Nteststruc = nil
  14118. }
  14119. } else {
  14120. if x.Nteststruc == nil {
  14121. x.Nteststruc = new(TestStrucFlex)
  14122. }
  14123. x.Nteststruc.CodecDecodeSelf(d)
  14124. }
  14125. default:
  14126. z.DecStructFieldNotFound(-1, yys3)
  14127. } // end switch yys3
  14128. } // end for yyj3
  14129. r.ReadMapEnd()
  14130. }
  14131. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  14132. var h codecSelfer19780
  14133. z, r := GenHelperDecoder(d)
  14134. _, _, _ = h, z, r
  14135. var yyj123 int
  14136. var yyb123 bool
  14137. var yyhl123 bool = l >= 0
  14138. yyj123++
  14139. if yyhl123 {
  14140. yyb123 = yyj123 > l
  14141. } else {
  14142. yyb123 = r.CheckBreak()
  14143. }
  14144. if yyb123 {
  14145. r.ReadArrayEnd()
  14146. return
  14147. }
  14148. r.ReadArrayElem()
  14149. if r.TryDecodeAsNil() {
  14150. x.TestStrucCommon.S = ""
  14151. } else {
  14152. x.TestStrucCommon.S = (string)(r.DecodeString())
  14153. }
  14154. yyj123++
  14155. if yyhl123 {
  14156. yyb123 = yyj123 > l
  14157. } else {
  14158. yyb123 = r.CheckBreak()
  14159. }
  14160. if yyb123 {
  14161. r.ReadArrayEnd()
  14162. return
  14163. }
  14164. r.ReadArrayElem()
  14165. if r.TryDecodeAsNil() {
  14166. x.TestStrucCommon.I64 = 0
  14167. } else {
  14168. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  14169. }
  14170. yyj123++
  14171. if yyhl123 {
  14172. yyb123 = yyj123 > l
  14173. } else {
  14174. yyb123 = r.CheckBreak()
  14175. }
  14176. if yyb123 {
  14177. r.ReadArrayEnd()
  14178. return
  14179. }
  14180. r.ReadArrayElem()
  14181. if r.TryDecodeAsNil() {
  14182. x.TestStrucCommon.I32 = 0
  14183. } else {
  14184. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  14185. }
  14186. yyj123++
  14187. if yyhl123 {
  14188. yyb123 = yyj123 > l
  14189. } else {
  14190. yyb123 = r.CheckBreak()
  14191. }
  14192. if yyb123 {
  14193. r.ReadArrayEnd()
  14194. return
  14195. }
  14196. r.ReadArrayElem()
  14197. if r.TryDecodeAsNil() {
  14198. x.TestStrucCommon.I16 = 0
  14199. } else {
  14200. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  14201. }
  14202. yyj123++
  14203. if yyhl123 {
  14204. yyb123 = yyj123 > l
  14205. } else {
  14206. yyb123 = r.CheckBreak()
  14207. }
  14208. if yyb123 {
  14209. r.ReadArrayEnd()
  14210. return
  14211. }
  14212. r.ReadArrayElem()
  14213. if r.TryDecodeAsNil() {
  14214. x.TestStrucCommon.I8 = 0
  14215. } else {
  14216. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  14217. }
  14218. yyj123++
  14219. if yyhl123 {
  14220. yyb123 = yyj123 > l
  14221. } else {
  14222. yyb123 = r.CheckBreak()
  14223. }
  14224. if yyb123 {
  14225. r.ReadArrayEnd()
  14226. return
  14227. }
  14228. r.ReadArrayElem()
  14229. if r.TryDecodeAsNil() {
  14230. x.TestStrucCommon.I64n = 0
  14231. } else {
  14232. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  14233. }
  14234. yyj123++
  14235. if yyhl123 {
  14236. yyb123 = yyj123 > l
  14237. } else {
  14238. yyb123 = r.CheckBreak()
  14239. }
  14240. if yyb123 {
  14241. r.ReadArrayEnd()
  14242. return
  14243. }
  14244. r.ReadArrayElem()
  14245. if r.TryDecodeAsNil() {
  14246. x.TestStrucCommon.I32n = 0
  14247. } else {
  14248. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  14249. }
  14250. yyj123++
  14251. if yyhl123 {
  14252. yyb123 = yyj123 > l
  14253. } else {
  14254. yyb123 = r.CheckBreak()
  14255. }
  14256. if yyb123 {
  14257. r.ReadArrayEnd()
  14258. return
  14259. }
  14260. r.ReadArrayElem()
  14261. if r.TryDecodeAsNil() {
  14262. x.TestStrucCommon.I16n = 0
  14263. } else {
  14264. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  14265. }
  14266. yyj123++
  14267. if yyhl123 {
  14268. yyb123 = yyj123 > l
  14269. } else {
  14270. yyb123 = r.CheckBreak()
  14271. }
  14272. if yyb123 {
  14273. r.ReadArrayEnd()
  14274. return
  14275. }
  14276. r.ReadArrayElem()
  14277. if r.TryDecodeAsNil() {
  14278. x.TestStrucCommon.I8n = 0
  14279. } else {
  14280. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  14281. }
  14282. yyj123++
  14283. if yyhl123 {
  14284. yyb123 = yyj123 > l
  14285. } else {
  14286. yyb123 = r.CheckBreak()
  14287. }
  14288. if yyb123 {
  14289. r.ReadArrayEnd()
  14290. return
  14291. }
  14292. r.ReadArrayElem()
  14293. if r.TryDecodeAsNil() {
  14294. x.TestStrucCommon.Ui64 = 0
  14295. } else {
  14296. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  14297. }
  14298. yyj123++
  14299. if yyhl123 {
  14300. yyb123 = yyj123 > l
  14301. } else {
  14302. yyb123 = r.CheckBreak()
  14303. }
  14304. if yyb123 {
  14305. r.ReadArrayEnd()
  14306. return
  14307. }
  14308. r.ReadArrayElem()
  14309. if r.TryDecodeAsNil() {
  14310. x.TestStrucCommon.Ui32 = 0
  14311. } else {
  14312. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  14313. }
  14314. yyj123++
  14315. if yyhl123 {
  14316. yyb123 = yyj123 > l
  14317. } else {
  14318. yyb123 = r.CheckBreak()
  14319. }
  14320. if yyb123 {
  14321. r.ReadArrayEnd()
  14322. return
  14323. }
  14324. r.ReadArrayElem()
  14325. if r.TryDecodeAsNil() {
  14326. x.TestStrucCommon.Ui16 = 0
  14327. } else {
  14328. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  14329. }
  14330. yyj123++
  14331. if yyhl123 {
  14332. yyb123 = yyj123 > l
  14333. } else {
  14334. yyb123 = r.CheckBreak()
  14335. }
  14336. if yyb123 {
  14337. r.ReadArrayEnd()
  14338. return
  14339. }
  14340. r.ReadArrayElem()
  14341. if r.TryDecodeAsNil() {
  14342. x.TestStrucCommon.Ui8 = 0
  14343. } else {
  14344. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  14345. }
  14346. yyj123++
  14347. if yyhl123 {
  14348. yyb123 = yyj123 > l
  14349. } else {
  14350. yyb123 = r.CheckBreak()
  14351. }
  14352. if yyb123 {
  14353. r.ReadArrayEnd()
  14354. return
  14355. }
  14356. r.ReadArrayElem()
  14357. if r.TryDecodeAsNil() {
  14358. x.TestStrucCommon.F64 = 0
  14359. } else {
  14360. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  14361. }
  14362. yyj123++
  14363. if yyhl123 {
  14364. yyb123 = yyj123 > l
  14365. } else {
  14366. yyb123 = r.CheckBreak()
  14367. }
  14368. if yyb123 {
  14369. r.ReadArrayEnd()
  14370. return
  14371. }
  14372. r.ReadArrayElem()
  14373. if r.TryDecodeAsNil() {
  14374. x.TestStrucCommon.F32 = 0
  14375. } else {
  14376. x.TestStrucCommon.F32 = (float32)(r.DecodeFloat32As64())
  14377. }
  14378. yyj123++
  14379. if yyhl123 {
  14380. yyb123 = yyj123 > l
  14381. } else {
  14382. yyb123 = r.CheckBreak()
  14383. }
  14384. if yyb123 {
  14385. r.ReadArrayEnd()
  14386. return
  14387. }
  14388. r.ReadArrayElem()
  14389. if r.TryDecodeAsNil() {
  14390. x.TestStrucCommon.B = false
  14391. } else {
  14392. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  14393. }
  14394. yyj123++
  14395. if yyhl123 {
  14396. yyb123 = yyj123 > l
  14397. } else {
  14398. yyb123 = r.CheckBreak()
  14399. }
  14400. if yyb123 {
  14401. r.ReadArrayEnd()
  14402. return
  14403. }
  14404. r.ReadArrayElem()
  14405. if r.TryDecodeAsNil() {
  14406. x.TestStrucCommon.By = 0
  14407. } else {
  14408. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  14409. }
  14410. yyj123++
  14411. if yyhl123 {
  14412. yyb123 = yyj123 > l
  14413. } else {
  14414. yyb123 = r.CheckBreak()
  14415. }
  14416. if yyb123 {
  14417. r.ReadArrayEnd()
  14418. return
  14419. }
  14420. r.ReadArrayElem()
  14421. if r.TryDecodeAsNil() {
  14422. x.TestStrucCommon.Sslice = nil
  14423. } else {
  14424. if false {
  14425. } else {
  14426. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  14427. }
  14428. }
  14429. yyj123++
  14430. if yyhl123 {
  14431. yyb123 = yyj123 > l
  14432. } else {
  14433. yyb123 = r.CheckBreak()
  14434. }
  14435. if yyb123 {
  14436. r.ReadArrayEnd()
  14437. return
  14438. }
  14439. r.ReadArrayElem()
  14440. if r.TryDecodeAsNil() {
  14441. x.TestStrucCommon.I64slice = nil
  14442. } else {
  14443. if false {
  14444. } else {
  14445. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  14446. }
  14447. }
  14448. yyj123++
  14449. if yyhl123 {
  14450. yyb123 = yyj123 > l
  14451. } else {
  14452. yyb123 = r.CheckBreak()
  14453. }
  14454. if yyb123 {
  14455. r.ReadArrayEnd()
  14456. return
  14457. }
  14458. r.ReadArrayElem()
  14459. if r.TryDecodeAsNil() {
  14460. x.TestStrucCommon.I16slice = nil
  14461. } else {
  14462. if false {
  14463. } else {
  14464. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  14465. }
  14466. }
  14467. yyj123++
  14468. if yyhl123 {
  14469. yyb123 = yyj123 > l
  14470. } else {
  14471. yyb123 = r.CheckBreak()
  14472. }
  14473. if yyb123 {
  14474. r.ReadArrayEnd()
  14475. return
  14476. }
  14477. r.ReadArrayElem()
  14478. if r.TryDecodeAsNil() {
  14479. x.TestStrucCommon.Ui64slice = nil
  14480. } else {
  14481. if false {
  14482. } else {
  14483. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  14484. }
  14485. }
  14486. yyj123++
  14487. if yyhl123 {
  14488. yyb123 = yyj123 > l
  14489. } else {
  14490. yyb123 = r.CheckBreak()
  14491. }
  14492. if yyb123 {
  14493. r.ReadArrayEnd()
  14494. return
  14495. }
  14496. r.ReadArrayElem()
  14497. if r.TryDecodeAsNil() {
  14498. x.TestStrucCommon.Ui8slice = nil
  14499. } else {
  14500. if false {
  14501. } else {
  14502. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  14503. }
  14504. }
  14505. yyj123++
  14506. if yyhl123 {
  14507. yyb123 = yyj123 > l
  14508. } else {
  14509. yyb123 = r.CheckBreak()
  14510. }
  14511. if yyb123 {
  14512. r.ReadArrayEnd()
  14513. return
  14514. }
  14515. r.ReadArrayElem()
  14516. if r.TryDecodeAsNil() {
  14517. x.TestStrucCommon.Bslice = nil
  14518. } else {
  14519. if false {
  14520. } else {
  14521. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  14522. }
  14523. }
  14524. yyj123++
  14525. if yyhl123 {
  14526. yyb123 = yyj123 > l
  14527. } else {
  14528. yyb123 = r.CheckBreak()
  14529. }
  14530. if yyb123 {
  14531. r.ReadArrayEnd()
  14532. return
  14533. }
  14534. r.ReadArrayElem()
  14535. if r.TryDecodeAsNil() {
  14536. x.TestStrucCommon.Byslice = nil
  14537. } else {
  14538. if false {
  14539. } else {
  14540. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  14541. }
  14542. }
  14543. yyj123++
  14544. if yyhl123 {
  14545. yyb123 = yyj123 > l
  14546. } else {
  14547. yyb123 = r.CheckBreak()
  14548. }
  14549. if yyb123 {
  14550. r.ReadArrayEnd()
  14551. return
  14552. }
  14553. r.ReadArrayElem()
  14554. if r.TryDecodeAsNil() {
  14555. x.TestStrucCommon.Iptrslice = nil
  14556. } else {
  14557. if false {
  14558. } else {
  14559. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  14560. }
  14561. }
  14562. yyj123++
  14563. if yyhl123 {
  14564. yyb123 = yyj123 > l
  14565. } else {
  14566. yyb123 = r.CheckBreak()
  14567. }
  14568. if yyb123 {
  14569. r.ReadArrayEnd()
  14570. return
  14571. }
  14572. r.ReadArrayElem()
  14573. if r.TryDecodeAsNil() {
  14574. x.TestStrucCommon.WrapSliceInt64 = nil
  14575. } else {
  14576. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  14577. }
  14578. yyj123++
  14579. if yyhl123 {
  14580. yyb123 = yyj123 > l
  14581. } else {
  14582. yyb123 = r.CheckBreak()
  14583. }
  14584. if yyb123 {
  14585. r.ReadArrayEnd()
  14586. return
  14587. }
  14588. r.ReadArrayElem()
  14589. if r.TryDecodeAsNil() {
  14590. x.TestStrucCommon.WrapSliceString = nil
  14591. } else {
  14592. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  14593. }
  14594. yyj123++
  14595. if yyhl123 {
  14596. yyb123 = yyj123 > l
  14597. } else {
  14598. yyb123 = r.CheckBreak()
  14599. }
  14600. if yyb123 {
  14601. r.ReadArrayEnd()
  14602. return
  14603. }
  14604. r.ReadArrayElem()
  14605. if r.TryDecodeAsNil() {
  14606. x.TestStrucCommon.Msi64 = nil
  14607. } else {
  14608. if false {
  14609. } else {
  14610. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  14611. }
  14612. }
  14613. yyj123++
  14614. if yyhl123 {
  14615. yyb123 = yyj123 > l
  14616. } else {
  14617. yyb123 = r.CheckBreak()
  14618. }
  14619. if yyb123 {
  14620. r.ReadArrayEnd()
  14621. return
  14622. }
  14623. r.ReadArrayElem()
  14624. if r.TryDecodeAsNil() {
  14625. x.TestStrucCommon.Simplef = testSimpleFields{}
  14626. } else {
  14627. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  14628. }
  14629. yyj123++
  14630. if yyhl123 {
  14631. yyb123 = yyj123 > l
  14632. } else {
  14633. yyb123 = r.CheckBreak()
  14634. }
  14635. if yyb123 {
  14636. r.ReadArrayEnd()
  14637. return
  14638. }
  14639. r.ReadArrayElem()
  14640. if r.TryDecodeAsNil() {
  14641. x.TestStrucCommon.SstrUi64T = nil
  14642. } else {
  14643. if false {
  14644. } else {
  14645. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  14646. }
  14647. }
  14648. yyj123++
  14649. if yyhl123 {
  14650. yyb123 = yyj123 > l
  14651. } else {
  14652. yyb123 = r.CheckBreak()
  14653. }
  14654. if yyb123 {
  14655. r.ReadArrayEnd()
  14656. return
  14657. }
  14658. r.ReadArrayElem()
  14659. if r.TryDecodeAsNil() {
  14660. x.TestStrucCommon.AnonInTestStruc.AS = ""
  14661. } else {
  14662. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  14663. }
  14664. yyj123++
  14665. if yyhl123 {
  14666. yyb123 = yyj123 > l
  14667. } else {
  14668. yyb123 = r.CheckBreak()
  14669. }
  14670. if yyb123 {
  14671. r.ReadArrayEnd()
  14672. return
  14673. }
  14674. r.ReadArrayElem()
  14675. if r.TryDecodeAsNil() {
  14676. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  14677. } else {
  14678. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  14679. }
  14680. yyj123++
  14681. if yyhl123 {
  14682. yyb123 = yyj123 > l
  14683. } else {
  14684. yyb123 = r.CheckBreak()
  14685. }
  14686. if yyb123 {
  14687. r.ReadArrayEnd()
  14688. return
  14689. }
  14690. r.ReadArrayElem()
  14691. if r.TryDecodeAsNil() {
  14692. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  14693. } else {
  14694. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  14695. }
  14696. yyj123++
  14697. if yyhl123 {
  14698. yyb123 = yyj123 > l
  14699. } else {
  14700. yyb123 = r.CheckBreak()
  14701. }
  14702. if yyb123 {
  14703. r.ReadArrayEnd()
  14704. return
  14705. }
  14706. r.ReadArrayElem()
  14707. if r.TryDecodeAsNil() {
  14708. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  14709. } else {
  14710. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  14711. }
  14712. yyj123++
  14713. if yyhl123 {
  14714. yyb123 = yyj123 > l
  14715. } else {
  14716. yyb123 = r.CheckBreak()
  14717. }
  14718. if yyb123 {
  14719. r.ReadArrayEnd()
  14720. return
  14721. }
  14722. r.ReadArrayElem()
  14723. if r.TryDecodeAsNil() {
  14724. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  14725. } else {
  14726. if false {
  14727. } else {
  14728. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  14729. }
  14730. }
  14731. yyj123++
  14732. if yyhl123 {
  14733. yyb123 = yyj123 > l
  14734. } else {
  14735. yyb123 = r.CheckBreak()
  14736. }
  14737. if yyb123 {
  14738. r.ReadArrayEnd()
  14739. return
  14740. }
  14741. r.ReadArrayElem()
  14742. if r.TryDecodeAsNil() {
  14743. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  14744. } else {
  14745. if false {
  14746. } else {
  14747. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  14748. }
  14749. }
  14750. yyj123++
  14751. if yyhl123 {
  14752. yyb123 = yyj123 > l
  14753. } else {
  14754. yyb123 = r.CheckBreak()
  14755. }
  14756. if yyb123 {
  14757. r.ReadArrayEnd()
  14758. return
  14759. }
  14760. r.ReadArrayElem()
  14761. if r.TryDecodeAsNil() {
  14762. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  14763. } else {
  14764. if false {
  14765. } else {
  14766. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  14767. }
  14768. }
  14769. yyj123++
  14770. if yyhl123 {
  14771. yyb123 = yyj123 > l
  14772. } else {
  14773. yyb123 = r.CheckBreak()
  14774. }
  14775. if yyb123 {
  14776. r.ReadArrayEnd()
  14777. return
  14778. }
  14779. r.ReadArrayElem()
  14780. if r.TryDecodeAsNil() {
  14781. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  14782. } else {
  14783. if false {
  14784. } else {
  14785. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  14786. }
  14787. }
  14788. yyj123++
  14789. if yyhl123 {
  14790. yyb123 = yyj123 > l
  14791. } else {
  14792. yyb123 = r.CheckBreak()
  14793. }
  14794. if yyb123 {
  14795. r.ReadArrayEnd()
  14796. return
  14797. }
  14798. r.ReadArrayElem()
  14799. if r.TryDecodeAsNil() {
  14800. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  14801. } else {
  14802. if false {
  14803. } else {
  14804. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  14805. }
  14806. }
  14807. yyj123++
  14808. if yyhl123 {
  14809. yyb123 = yyj123 > l
  14810. } else {
  14811. yyb123 = r.CheckBreak()
  14812. }
  14813. if yyb123 {
  14814. r.ReadArrayEnd()
  14815. return
  14816. }
  14817. r.ReadArrayElem()
  14818. if r.TryDecodeAsNil() {
  14819. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  14820. } else {
  14821. if false {
  14822. } else {
  14823. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  14824. }
  14825. }
  14826. yyj123++
  14827. if yyhl123 {
  14828. yyb123 = yyj123 > l
  14829. } else {
  14830. yyb123 = r.CheckBreak()
  14831. }
  14832. if yyb123 {
  14833. r.ReadArrayEnd()
  14834. return
  14835. }
  14836. r.ReadArrayElem()
  14837. if r.TryDecodeAsNil() {
  14838. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  14839. } else {
  14840. if false {
  14841. } else {
  14842. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  14843. }
  14844. }
  14845. yyj123++
  14846. if yyhl123 {
  14847. yyb123 = yyj123 > l
  14848. } else {
  14849. yyb123 = r.CheckBreak()
  14850. }
  14851. if yyb123 {
  14852. r.ReadArrayEnd()
  14853. return
  14854. }
  14855. r.ReadArrayElem()
  14856. if r.TryDecodeAsNil() {
  14857. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  14858. } else {
  14859. if false {
  14860. } else {
  14861. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  14862. }
  14863. }
  14864. yyj123++
  14865. if yyhl123 {
  14866. yyb123 = yyj123 > l
  14867. } else {
  14868. yyb123 = r.CheckBreak()
  14869. }
  14870. if yyb123 {
  14871. r.ReadArrayEnd()
  14872. return
  14873. }
  14874. r.ReadArrayElem()
  14875. if r.TryDecodeAsNil() {
  14876. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  14877. } else {
  14878. if false {
  14879. } else {
  14880. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  14881. }
  14882. }
  14883. yyj123++
  14884. if yyhl123 {
  14885. yyb123 = yyj123 > l
  14886. } else {
  14887. yyb123 = r.CheckBreak()
  14888. }
  14889. if yyb123 {
  14890. r.ReadArrayEnd()
  14891. return
  14892. }
  14893. r.ReadArrayElem()
  14894. if r.TryDecodeAsNil() {
  14895. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  14896. } else {
  14897. if false {
  14898. } else {
  14899. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  14900. }
  14901. }
  14902. yyj123++
  14903. if yyhl123 {
  14904. yyb123 = yyj123 > l
  14905. } else {
  14906. yyb123 = r.CheckBreak()
  14907. }
  14908. if yyb123 {
  14909. r.ReadArrayEnd()
  14910. return
  14911. }
  14912. r.ReadArrayElem()
  14913. if r.TryDecodeAsNil() {
  14914. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  14915. } else {
  14916. if false {
  14917. } else {
  14918. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  14919. }
  14920. }
  14921. yyj123++
  14922. if yyhl123 {
  14923. yyb123 = yyj123 > l
  14924. } else {
  14925. yyb123 = r.CheckBreak()
  14926. }
  14927. if yyb123 {
  14928. r.ReadArrayEnd()
  14929. return
  14930. }
  14931. r.ReadArrayElem()
  14932. if r.TryDecodeAsNil() {
  14933. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  14934. } else {
  14935. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  14936. }
  14937. yyj123++
  14938. if yyhl123 {
  14939. yyb123 = yyj123 > l
  14940. } else {
  14941. yyb123 = r.CheckBreak()
  14942. }
  14943. if yyb123 {
  14944. r.ReadArrayEnd()
  14945. return
  14946. }
  14947. r.ReadArrayElem()
  14948. if r.TryDecodeAsNil() {
  14949. x.TestStrucCommon.Nmap = nil
  14950. } else {
  14951. if false {
  14952. } else {
  14953. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  14954. }
  14955. }
  14956. yyj123++
  14957. if yyhl123 {
  14958. yyb123 = yyj123 > l
  14959. } else {
  14960. yyb123 = r.CheckBreak()
  14961. }
  14962. if yyb123 {
  14963. r.ReadArrayEnd()
  14964. return
  14965. }
  14966. r.ReadArrayElem()
  14967. if r.TryDecodeAsNil() {
  14968. x.TestStrucCommon.Nslice = nil
  14969. } else {
  14970. if false {
  14971. } else {
  14972. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  14973. }
  14974. }
  14975. yyj123++
  14976. if yyhl123 {
  14977. yyb123 = yyj123 > l
  14978. } else {
  14979. yyb123 = r.CheckBreak()
  14980. }
  14981. if yyb123 {
  14982. r.ReadArrayEnd()
  14983. return
  14984. }
  14985. r.ReadArrayElem()
  14986. if r.TryDecodeAsNil() {
  14987. if true && x.TestStrucCommon.Nint64 != nil {
  14988. x.TestStrucCommon.Nint64 = nil
  14989. }
  14990. } else {
  14991. if x.TestStrucCommon.Nint64 == nil {
  14992. x.TestStrucCommon.Nint64 = new(int64)
  14993. }
  14994. if false {
  14995. } else {
  14996. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  14997. }
  14998. }
  14999. yyj123++
  15000. if yyhl123 {
  15001. yyb123 = yyj123 > l
  15002. } else {
  15003. yyb123 = r.CheckBreak()
  15004. }
  15005. if yyb123 {
  15006. r.ReadArrayEnd()
  15007. return
  15008. }
  15009. r.ReadArrayElem()
  15010. if r.TryDecodeAsNil() {
  15011. x.Chstr = nil
  15012. } else {
  15013. if false {
  15014. } else {
  15015. h.decChanstring((*chan string)(&x.Chstr), d)
  15016. }
  15017. }
  15018. yyj123++
  15019. if yyhl123 {
  15020. yyb123 = yyj123 > l
  15021. } else {
  15022. yyb123 = r.CheckBreak()
  15023. }
  15024. if yyb123 {
  15025. r.ReadArrayEnd()
  15026. return
  15027. }
  15028. r.ReadArrayElem()
  15029. if r.TryDecodeAsNil() {
  15030. x.Mis = nil
  15031. } else {
  15032. if false {
  15033. } else {
  15034. z.F.DecMapIntStringX(&x.Mis, d)
  15035. }
  15036. }
  15037. yyj123++
  15038. if yyhl123 {
  15039. yyb123 = yyj123 > l
  15040. } else {
  15041. yyb123 = r.CheckBreak()
  15042. }
  15043. if yyb123 {
  15044. r.ReadArrayEnd()
  15045. return
  15046. }
  15047. r.ReadArrayElem()
  15048. if r.TryDecodeAsNil() {
  15049. x.Mbu64 = nil
  15050. } else {
  15051. if false {
  15052. } else {
  15053. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  15054. }
  15055. }
  15056. yyj123++
  15057. if yyhl123 {
  15058. yyb123 = yyj123 > l
  15059. } else {
  15060. yyb123 = r.CheckBreak()
  15061. }
  15062. if yyb123 {
  15063. r.ReadArrayEnd()
  15064. return
  15065. }
  15066. r.ReadArrayElem()
  15067. if r.TryDecodeAsNil() {
  15068. x.Miwu64s = nil
  15069. } else {
  15070. if false {
  15071. } else {
  15072. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  15073. }
  15074. }
  15075. yyj123++
  15076. if yyhl123 {
  15077. yyb123 = yyj123 > l
  15078. } else {
  15079. yyb123 = r.CheckBreak()
  15080. }
  15081. if yyb123 {
  15082. r.ReadArrayEnd()
  15083. return
  15084. }
  15085. r.ReadArrayElem()
  15086. if r.TryDecodeAsNil() {
  15087. x.Mfwss = nil
  15088. } else {
  15089. if false {
  15090. } else {
  15091. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  15092. }
  15093. }
  15094. yyj123++
  15095. if yyhl123 {
  15096. yyb123 = yyj123 > l
  15097. } else {
  15098. yyb123 = r.CheckBreak()
  15099. }
  15100. if yyb123 {
  15101. r.ReadArrayEnd()
  15102. return
  15103. }
  15104. r.ReadArrayElem()
  15105. if r.TryDecodeAsNil() {
  15106. x.Mf32wss = nil
  15107. } else {
  15108. if false {
  15109. } else {
  15110. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  15111. }
  15112. }
  15113. yyj123++
  15114. if yyhl123 {
  15115. yyb123 = yyj123 > l
  15116. } else {
  15117. yyb123 = r.CheckBreak()
  15118. }
  15119. if yyb123 {
  15120. r.ReadArrayEnd()
  15121. return
  15122. }
  15123. r.ReadArrayElem()
  15124. if r.TryDecodeAsNil() {
  15125. x.Mui2wss = nil
  15126. } else {
  15127. if false {
  15128. } else {
  15129. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  15130. }
  15131. }
  15132. yyj123++
  15133. if yyhl123 {
  15134. yyb123 = yyj123 > l
  15135. } else {
  15136. yyb123 = r.CheckBreak()
  15137. }
  15138. if yyb123 {
  15139. r.ReadArrayEnd()
  15140. return
  15141. }
  15142. r.ReadArrayElem()
  15143. if r.TryDecodeAsNil() {
  15144. x.Msu2wss = nil
  15145. } else {
  15146. if false {
  15147. } else {
  15148. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  15149. }
  15150. }
  15151. yyj123++
  15152. if yyhl123 {
  15153. yyb123 = yyj123 > l
  15154. } else {
  15155. yyb123 = r.CheckBreak()
  15156. }
  15157. if yyb123 {
  15158. r.ReadArrayEnd()
  15159. return
  15160. }
  15161. r.ReadArrayElem()
  15162. if r.TryDecodeAsNil() {
  15163. x.Ci64 = 0
  15164. } else {
  15165. x.Ci64.CodecDecodeSelf(d)
  15166. }
  15167. yyj123++
  15168. if yyhl123 {
  15169. yyb123 = yyj123 > l
  15170. } else {
  15171. yyb123 = r.CheckBreak()
  15172. }
  15173. if yyb123 {
  15174. r.ReadArrayEnd()
  15175. return
  15176. }
  15177. r.ReadArrayElem()
  15178. if r.TryDecodeAsNil() {
  15179. x.Swrapbytes = nil
  15180. } else {
  15181. if false {
  15182. } else {
  15183. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  15184. }
  15185. }
  15186. yyj123++
  15187. if yyhl123 {
  15188. yyb123 = yyj123 > l
  15189. } else {
  15190. yyb123 = r.CheckBreak()
  15191. }
  15192. if yyb123 {
  15193. r.ReadArrayEnd()
  15194. return
  15195. }
  15196. r.ReadArrayElem()
  15197. if r.TryDecodeAsNil() {
  15198. x.Swrapuint8 = nil
  15199. } else {
  15200. if false {
  15201. } else {
  15202. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  15203. }
  15204. }
  15205. yyj123++
  15206. if yyhl123 {
  15207. yyb123 = yyj123 > l
  15208. } else {
  15209. yyb123 = r.CheckBreak()
  15210. }
  15211. if yyb123 {
  15212. r.ReadArrayEnd()
  15213. return
  15214. }
  15215. r.ReadArrayElem()
  15216. if r.TryDecodeAsNil() {
  15217. x.ArrStrUi64T = [4]stringUint64T{}
  15218. } else {
  15219. if false {
  15220. } else {
  15221. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  15222. }
  15223. }
  15224. yyj123++
  15225. if yyhl123 {
  15226. yyb123 = yyj123 > l
  15227. } else {
  15228. yyb123 = r.CheckBreak()
  15229. }
  15230. if yyb123 {
  15231. r.ReadArrayEnd()
  15232. return
  15233. }
  15234. r.ReadArrayElem()
  15235. if r.TryDecodeAsNil() {
  15236. x.Ui64array = [4]uint64{}
  15237. } else {
  15238. if false {
  15239. } else {
  15240. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  15241. }
  15242. }
  15243. yyj123++
  15244. if yyhl123 {
  15245. yyb123 = yyj123 > l
  15246. } else {
  15247. yyb123 = r.CheckBreak()
  15248. }
  15249. if yyb123 {
  15250. r.ReadArrayEnd()
  15251. return
  15252. }
  15253. r.ReadArrayElem()
  15254. if r.TryDecodeAsNil() {
  15255. x.Ui64slicearray = nil
  15256. } else {
  15257. if false {
  15258. } else {
  15259. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  15260. }
  15261. }
  15262. yyj123++
  15263. if yyhl123 {
  15264. yyb123 = yyj123 > l
  15265. } else {
  15266. yyb123 = r.CheckBreak()
  15267. }
  15268. if yyb123 {
  15269. r.ReadArrayEnd()
  15270. return
  15271. }
  15272. r.ReadArrayElem()
  15273. if r.TryDecodeAsNil() {
  15274. x.SintfAarray = nil
  15275. } else {
  15276. if false {
  15277. } else {
  15278. z.F.DecSliceIntfX(&x.SintfAarray, d)
  15279. }
  15280. }
  15281. yyj123++
  15282. if yyhl123 {
  15283. yyb123 = yyj123 > l
  15284. } else {
  15285. yyb123 = r.CheckBreak()
  15286. }
  15287. if yyb123 {
  15288. r.ReadArrayEnd()
  15289. return
  15290. }
  15291. r.ReadArrayElem()
  15292. if r.TryDecodeAsNil() {
  15293. if true && x.AnonInTestStrucIntf != nil {
  15294. x.AnonInTestStrucIntf.Islice = nil
  15295. }
  15296. } else {
  15297. if x.AnonInTestStrucIntf == nil {
  15298. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  15299. }
  15300. if false {
  15301. } else {
  15302. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  15303. }
  15304. }
  15305. yyj123++
  15306. if yyhl123 {
  15307. yyb123 = yyj123 > l
  15308. } else {
  15309. yyb123 = r.CheckBreak()
  15310. }
  15311. if yyb123 {
  15312. r.ReadArrayEnd()
  15313. return
  15314. }
  15315. r.ReadArrayElem()
  15316. if r.TryDecodeAsNil() {
  15317. if true && x.AnonInTestStrucIntf != nil {
  15318. x.AnonInTestStrucIntf.Ms = nil
  15319. }
  15320. } else {
  15321. if x.AnonInTestStrucIntf == nil {
  15322. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  15323. }
  15324. if false {
  15325. } else {
  15326. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  15327. }
  15328. }
  15329. yyj123++
  15330. if yyhl123 {
  15331. yyb123 = yyj123 > l
  15332. } else {
  15333. yyb123 = r.CheckBreak()
  15334. }
  15335. if yyb123 {
  15336. r.ReadArrayEnd()
  15337. return
  15338. }
  15339. r.ReadArrayElem()
  15340. if r.TryDecodeAsNil() {
  15341. if true && x.AnonInTestStrucIntf != nil {
  15342. x.AnonInTestStrucIntf.Nintf = nil
  15343. }
  15344. } else {
  15345. if x.AnonInTestStrucIntf == nil {
  15346. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  15347. }
  15348. if false {
  15349. } else {
  15350. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  15351. }
  15352. }
  15353. yyj123++
  15354. if yyhl123 {
  15355. yyb123 = yyj123 > l
  15356. } else {
  15357. yyb123 = r.CheckBreak()
  15358. }
  15359. if yyb123 {
  15360. r.ReadArrayEnd()
  15361. return
  15362. }
  15363. r.ReadArrayElem()
  15364. if r.TryDecodeAsNil() {
  15365. if true && x.AnonInTestStrucIntf != nil {
  15366. x.AnonInTestStrucIntf.T = time.Time{}
  15367. }
  15368. } else {
  15369. if x.AnonInTestStrucIntf == nil {
  15370. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  15371. }
  15372. if false {
  15373. } else if !z.DecBasicHandle().TimeNotBuiltin {
  15374. x.AnonInTestStrucIntf.T = r.DecodeTime()
  15375. } else if yyxt233 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt233 != nil {
  15376. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt233)
  15377. } else if z.DecBinary() {
  15378. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  15379. } else if !z.DecBinary() && z.IsJSONHandle() {
  15380. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  15381. } else {
  15382. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  15383. }
  15384. }
  15385. yyj123++
  15386. if yyhl123 {
  15387. yyb123 = yyj123 > l
  15388. } else {
  15389. yyb123 = r.CheckBreak()
  15390. }
  15391. if yyb123 {
  15392. r.ReadArrayEnd()
  15393. return
  15394. }
  15395. r.ReadArrayElem()
  15396. if r.TryDecodeAsNil() {
  15397. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  15398. x.AnonInTestStrucIntf.Tptr = nil
  15399. }
  15400. } else {
  15401. if x.AnonInTestStrucIntf == nil {
  15402. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  15403. }
  15404. if x.AnonInTestStrucIntf.Tptr == nil {
  15405. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  15406. }
  15407. if false {
  15408. } else if !z.DecBasicHandle().TimeNotBuiltin {
  15409. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  15410. } else if yyxt235 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt235 != nil {
  15411. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt235)
  15412. } else if z.DecBinary() {
  15413. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  15414. } else if !z.DecBinary() && z.IsJSONHandle() {
  15415. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  15416. } else {
  15417. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  15418. }
  15419. }
  15420. yyj123++
  15421. if yyhl123 {
  15422. yyb123 = yyj123 > l
  15423. } else {
  15424. yyb123 = r.CheckBreak()
  15425. }
  15426. if yyb123 {
  15427. r.ReadArrayEnd()
  15428. return
  15429. }
  15430. r.ReadArrayElem()
  15431. if r.TryDecodeAsNil() {
  15432. x.Mtsptr = nil
  15433. } else {
  15434. if false {
  15435. } else {
  15436. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  15437. }
  15438. }
  15439. yyj123++
  15440. if yyhl123 {
  15441. yyb123 = yyj123 > l
  15442. } else {
  15443. yyb123 = r.CheckBreak()
  15444. }
  15445. if yyb123 {
  15446. r.ReadArrayEnd()
  15447. return
  15448. }
  15449. r.ReadArrayElem()
  15450. if r.TryDecodeAsNil() {
  15451. x.Mts = nil
  15452. } else {
  15453. if false {
  15454. } else {
  15455. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  15456. }
  15457. }
  15458. yyj123++
  15459. if yyhl123 {
  15460. yyb123 = yyj123 > l
  15461. } else {
  15462. yyb123 = r.CheckBreak()
  15463. }
  15464. if yyb123 {
  15465. r.ReadArrayEnd()
  15466. return
  15467. }
  15468. r.ReadArrayElem()
  15469. if r.TryDecodeAsNil() {
  15470. x.Its = nil
  15471. } else {
  15472. if false {
  15473. } else {
  15474. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  15475. }
  15476. }
  15477. yyj123++
  15478. if yyhl123 {
  15479. yyb123 = yyj123 > l
  15480. } else {
  15481. yyb123 = r.CheckBreak()
  15482. }
  15483. if yyb123 {
  15484. r.ReadArrayEnd()
  15485. return
  15486. }
  15487. r.ReadArrayElem()
  15488. if r.TryDecodeAsNil() {
  15489. if true && x.Nteststruc != nil {
  15490. x.Nteststruc = nil
  15491. }
  15492. } else {
  15493. if x.Nteststruc == nil {
  15494. x.Nteststruc = new(TestStrucFlex)
  15495. }
  15496. x.Nteststruc.CodecDecodeSelf(d)
  15497. }
  15498. for {
  15499. yyj123++
  15500. if yyhl123 {
  15501. yyb123 = yyj123 > l
  15502. } else {
  15503. yyb123 = r.CheckBreak()
  15504. }
  15505. if yyb123 {
  15506. break
  15507. }
  15508. r.ReadArrayElem()
  15509. z.DecStructFieldNotFound(yyj123-1, "")
  15510. }
  15511. r.ReadArrayEnd()
  15512. }
  15513. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  15514. var h codecSelfer19780
  15515. z, r := GenHelperEncoder(e)
  15516. _, _, _ = h, z, r
  15517. r.WriteArrayStart(len(v))
  15518. for _, yyv1 := range v {
  15519. r.WriteArrayElem()
  15520. if false {
  15521. } else {
  15522. r.EncodeUint(uint64(yyv1))
  15523. }
  15524. }
  15525. r.WriteArrayEnd()
  15526. }
  15527. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, 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 = []uint64{}
  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, 8)
  15550. if yyrl1 <= cap(yyv1) {
  15551. yyv1 = yyv1[:yyrl1]
  15552. } else {
  15553. yyv1 = make([]uint64, 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, 8)
  15567. } else {
  15568. yyrl1 = 8
  15569. }
  15570. yyv1 = make([]uint64, yyrl1)
  15571. yyc1 = true
  15572. }
  15573. yyh1.ElemContainerState(yyj1)
  15574. var yydb1 bool
  15575. if yyj1 >= len(yyv1) {
  15576. yyv1 = append(yyv1, 0)
  15577. yyc1 = true
  15578. }
  15579. if yydb1 {
  15580. z.DecSwallow()
  15581. } else {
  15582. if r.TryDecodeAsNil() {
  15583. yyv1[yyj1] = 0
  15584. } else {
  15585. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  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([]uint64, 0)
  15594. yyc1 = true
  15595. }
  15596. }
  15597. yyh1.End()
  15598. if yyc1 {
  15599. *v = yyv1
  15600. }
  15601. }
  15602. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  15603. var h codecSelfer19780
  15604. z, r := GenHelperEncoder(e)
  15605. _, _, _ = h, z, r
  15606. r.WriteArrayStart(len(v))
  15607. for _, yyv1 := range v {
  15608. r.WriteArrayElem()
  15609. if false {
  15610. } else {
  15611. if z.EncBasicHandle().StringToRaw {
  15612. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15613. } else {
  15614. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15615. }
  15616. }
  15617. }
  15618. r.WriteArrayEnd()
  15619. }
  15620. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  15621. var h codecSelfer19780
  15622. z, r := GenHelperDecoder(d)
  15623. _, _, _ = h, z, r
  15624. yyv1 := *v
  15625. yyh1, yyl1 := z.DecSliceHelperStart()
  15626. var yyc1 bool
  15627. _ = yyc1
  15628. if yyl1 == 0 {
  15629. if yyv1 == nil {
  15630. yyv1 = []string{}
  15631. yyc1 = true
  15632. } else if len(yyv1) != 0 {
  15633. yyv1 = yyv1[:0]
  15634. yyc1 = true
  15635. }
  15636. } else {
  15637. yyhl1 := yyl1 > 0
  15638. var yyrl1 int
  15639. _ = yyrl1
  15640. if yyhl1 {
  15641. if yyl1 > cap(yyv1) {
  15642. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15643. if yyrl1 <= cap(yyv1) {
  15644. yyv1 = yyv1[:yyrl1]
  15645. } else {
  15646. yyv1 = make([]string, yyrl1)
  15647. }
  15648. yyc1 = true
  15649. } else if yyl1 != len(yyv1) {
  15650. yyv1 = yyv1[:yyl1]
  15651. yyc1 = true
  15652. }
  15653. }
  15654. var yyj1 int
  15655. // var yydn1 bool
  15656. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15657. if yyj1 == 0 && yyv1 == nil {
  15658. if yyhl1 {
  15659. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15660. } else {
  15661. yyrl1 = 8
  15662. }
  15663. yyv1 = make([]string, yyrl1)
  15664. yyc1 = true
  15665. }
  15666. yyh1.ElemContainerState(yyj1)
  15667. var yydb1 bool
  15668. if yyj1 >= len(yyv1) {
  15669. yyv1 = append(yyv1, "")
  15670. yyc1 = true
  15671. }
  15672. if yydb1 {
  15673. z.DecSwallow()
  15674. } else {
  15675. if r.TryDecodeAsNil() {
  15676. yyv1[yyj1] = ""
  15677. } else {
  15678. yyv1[yyj1] = (string)(r.DecodeString())
  15679. }
  15680. }
  15681. }
  15682. if yyj1 < len(yyv1) {
  15683. yyv1 = yyv1[:yyj1]
  15684. yyc1 = true
  15685. } else if yyj1 == 0 && yyv1 == nil {
  15686. yyv1 = make([]string, 0)
  15687. yyc1 = true
  15688. }
  15689. }
  15690. yyh1.End()
  15691. if yyc1 {
  15692. *v = yyv1
  15693. }
  15694. }
  15695. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  15696. var h codecSelfer19780
  15697. z, r := GenHelperEncoder(e)
  15698. _, _, _ = h, z, r
  15699. r.WriteArrayStart(len(v))
  15700. for _, yyv1 := range v {
  15701. r.WriteArrayElem()
  15702. yyv1.CodecEncodeSelf(e)
  15703. }
  15704. r.WriteArrayEnd()
  15705. }
  15706. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  15707. var h codecSelfer19780
  15708. z, r := GenHelperDecoder(d)
  15709. _, _, _ = h, z, r
  15710. yyv1 := *v
  15711. yyh1, yyl1 := z.DecSliceHelperStart()
  15712. var yyc1 bool
  15713. _ = yyc1
  15714. if yyl1 == 0 {
  15715. if yyv1 == nil {
  15716. yyv1 = []wrapUint64{}
  15717. yyc1 = true
  15718. } else if len(yyv1) != 0 {
  15719. yyv1 = yyv1[:0]
  15720. yyc1 = true
  15721. }
  15722. } else {
  15723. yyhl1 := yyl1 > 0
  15724. var yyrl1 int
  15725. _ = yyrl1
  15726. if yyhl1 {
  15727. if yyl1 > cap(yyv1) {
  15728. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15729. if yyrl1 <= cap(yyv1) {
  15730. yyv1 = yyv1[:yyrl1]
  15731. } else {
  15732. yyv1 = make([]wrapUint64, yyrl1)
  15733. }
  15734. yyc1 = true
  15735. } else if yyl1 != len(yyv1) {
  15736. yyv1 = yyv1[:yyl1]
  15737. yyc1 = true
  15738. }
  15739. }
  15740. var yyj1 int
  15741. // var yydn1 bool
  15742. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15743. if yyj1 == 0 && yyv1 == nil {
  15744. if yyhl1 {
  15745. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15746. } else {
  15747. yyrl1 = 8
  15748. }
  15749. yyv1 = make([]wrapUint64, yyrl1)
  15750. yyc1 = true
  15751. }
  15752. yyh1.ElemContainerState(yyj1)
  15753. var yydb1 bool
  15754. if yyj1 >= len(yyv1) {
  15755. yyv1 = append(yyv1, 0)
  15756. yyc1 = true
  15757. }
  15758. if yydb1 {
  15759. z.DecSwallow()
  15760. } else {
  15761. if r.TryDecodeAsNil() {
  15762. yyv1[yyj1] = 0
  15763. } else {
  15764. yyv1[yyj1].CodecDecodeSelf(d)
  15765. }
  15766. }
  15767. }
  15768. if yyj1 < len(yyv1) {
  15769. yyv1 = yyv1[:yyj1]
  15770. yyc1 = true
  15771. } else if yyj1 == 0 && yyv1 == nil {
  15772. yyv1 = make([]wrapUint64, 0)
  15773. yyc1 = true
  15774. }
  15775. }
  15776. yyh1.End()
  15777. if yyc1 {
  15778. *v = yyv1
  15779. }
  15780. }
  15781. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  15782. var h codecSelfer19780
  15783. z, r := GenHelperEncoder(e)
  15784. _, _, _ = h, z, r
  15785. r.WriteArrayStart(len(v))
  15786. for _, yyv1 := range v {
  15787. r.WriteArrayElem()
  15788. yyv1.CodecEncodeSelf(e)
  15789. }
  15790. r.WriteArrayEnd()
  15791. }
  15792. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  15793. var h codecSelfer19780
  15794. z, r := GenHelperDecoder(d)
  15795. _, _, _ = h, z, r
  15796. yyv1 := *v
  15797. yyh1, yyl1 := z.DecSliceHelperStart()
  15798. var yyc1 bool
  15799. _ = yyc1
  15800. if yyl1 == 0 {
  15801. if yyv1 == nil {
  15802. yyv1 = []wrapString{}
  15803. yyc1 = true
  15804. } else if len(yyv1) != 0 {
  15805. yyv1 = yyv1[:0]
  15806. yyc1 = true
  15807. }
  15808. } else {
  15809. yyhl1 := yyl1 > 0
  15810. var yyrl1 int
  15811. _ = yyrl1
  15812. if yyhl1 {
  15813. if yyl1 > cap(yyv1) {
  15814. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15815. if yyrl1 <= cap(yyv1) {
  15816. yyv1 = yyv1[:yyrl1]
  15817. } else {
  15818. yyv1 = make([]wrapString, yyrl1)
  15819. }
  15820. yyc1 = true
  15821. } else if yyl1 != len(yyv1) {
  15822. yyv1 = yyv1[:yyl1]
  15823. yyc1 = true
  15824. }
  15825. }
  15826. var yyj1 int
  15827. // var yydn1 bool
  15828. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15829. if yyj1 == 0 && yyv1 == nil {
  15830. if yyhl1 {
  15831. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15832. } else {
  15833. yyrl1 = 8
  15834. }
  15835. yyv1 = make([]wrapString, yyrl1)
  15836. yyc1 = true
  15837. }
  15838. yyh1.ElemContainerState(yyj1)
  15839. var yydb1 bool
  15840. if yyj1 >= len(yyv1) {
  15841. yyv1 = append(yyv1, "")
  15842. yyc1 = true
  15843. }
  15844. if yydb1 {
  15845. z.DecSwallow()
  15846. } else {
  15847. if r.TryDecodeAsNil() {
  15848. yyv1[yyj1] = ""
  15849. } else {
  15850. yyv1[yyj1].CodecDecodeSelf(d)
  15851. }
  15852. }
  15853. }
  15854. if yyj1 < len(yyv1) {
  15855. yyv1 = yyv1[:yyj1]
  15856. yyc1 = true
  15857. } else if yyj1 == 0 && yyv1 == nil {
  15858. yyv1 = make([]wrapString, 0)
  15859. yyc1 = true
  15860. }
  15861. }
  15862. yyh1.End()
  15863. if yyc1 {
  15864. *v = yyv1
  15865. }
  15866. }
  15867. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  15868. var h codecSelfer19780
  15869. z, r := GenHelperEncoder(e)
  15870. _, _, _ = h, z, r
  15871. r.WriteMapStart(len(v))
  15872. for yyk1, yyv1 := range v {
  15873. r.WriteMapElemKey()
  15874. if false {
  15875. } else {
  15876. if z.EncBasicHandle().StringToRaw {
  15877. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15878. } else {
  15879. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15880. }
  15881. }
  15882. r.WriteMapElemValue()
  15883. if false {
  15884. } else {
  15885. r.EncodeUint(uint64(yyv1))
  15886. }
  15887. }
  15888. r.WriteMapEnd()
  15889. }
  15890. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  15891. var h codecSelfer19780
  15892. z, r := GenHelperDecoder(d)
  15893. _, _, _ = h, z, r
  15894. yyv1 := *v
  15895. yyl1 := r.ReadMapStart()
  15896. yybh1 := z.DecBasicHandle()
  15897. if yyv1 == nil {
  15898. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  15899. yyv1 = make(map[string]uint16, yyrl1)
  15900. *v = yyv1
  15901. }
  15902. var yymk1 string
  15903. var yymv1 uint16
  15904. var yymg1, yymdn1 bool
  15905. if yybh1.MapValueReset {
  15906. }
  15907. if yyl1 != 0 {
  15908. yyhl1 := yyl1 > 0
  15909. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15910. r.ReadMapElemKey()
  15911. if r.TryDecodeAsNil() {
  15912. yymk1 = ""
  15913. } else {
  15914. yymk1 = (string)(r.DecodeString())
  15915. }
  15916. if yymg1 {
  15917. yymv1 = yyv1[yymk1]
  15918. }
  15919. r.ReadMapElemValue()
  15920. yymdn1 = false
  15921. if r.TryDecodeAsNil() {
  15922. yymdn1 = true
  15923. } else {
  15924. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  15925. }
  15926. if yymdn1 {
  15927. if yybh1.DeleteOnNilMapValue {
  15928. delete(yyv1, yymk1)
  15929. } else {
  15930. yyv1[yymk1] = 0
  15931. }
  15932. } else if yyv1 != nil {
  15933. yyv1[yymk1] = yymv1
  15934. }
  15935. }
  15936. } // else len==0: TODO: Should we clear map entries?
  15937. r.ReadMapEnd()
  15938. }
  15939. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  15940. var h codecSelfer19780
  15941. z, r := GenHelperEncoder(e)
  15942. _, _, _ = h, z, r
  15943. r.WriteArrayStart(len(v))
  15944. for _, yyv1 := range v {
  15945. r.WriteArrayElem()
  15946. if false {
  15947. } else {
  15948. r.EncodeInt(int64(yyv1))
  15949. }
  15950. }
  15951. r.WriteArrayEnd()
  15952. }
  15953. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  15954. var h codecSelfer19780
  15955. z, r := GenHelperDecoder(d)
  15956. _, _, _ = h, z, r
  15957. yyv1 := v
  15958. yyh1, yyl1 := z.DecSliceHelperStart()
  15959. if yyl1 == 0 {
  15960. } else {
  15961. yyhl1 := yyl1 > 0
  15962. var yyrl1 int
  15963. _ = yyrl1
  15964. var yyj1 int
  15965. // var yydn1 bool
  15966. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15967. yyh1.ElemContainerState(yyj1)
  15968. var yydb1 bool
  15969. if yyj1 >= len(yyv1) {
  15970. z.DecArrayCannotExpand(len(v), yyj1+1)
  15971. yydb1 = true
  15972. }
  15973. if yydb1 {
  15974. z.DecSwallow()
  15975. } else {
  15976. if r.TryDecodeAsNil() {
  15977. yyv1[yyj1] = 0
  15978. } else {
  15979. yyv1[yyj1] = (int64)(r.DecodeInt64())
  15980. }
  15981. }
  15982. }
  15983. }
  15984. yyh1.End()
  15985. }
  15986. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  15987. var h codecSelfer19780
  15988. z, r := GenHelperEncoder(e)
  15989. _, _, _ = h, z, r
  15990. r.WriteArrayStart(len(v))
  15991. for _, yyv1 := range v {
  15992. r.WriteArrayElem()
  15993. if yyv1 == nil {
  15994. r.EncodeNil()
  15995. } else {
  15996. yy2 := *yyv1
  15997. if false {
  15998. } else {
  15999. r.EncodeInt(int64(yy2))
  16000. }
  16001. }
  16002. }
  16003. r.WriteArrayEnd()
  16004. }
  16005. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  16006. var h codecSelfer19780
  16007. z, r := GenHelperDecoder(d)
  16008. _, _, _ = h, z, r
  16009. yyv1 := *v
  16010. yyh1, yyl1 := z.DecSliceHelperStart()
  16011. var yyc1 bool
  16012. _ = yyc1
  16013. if yyl1 == 0 {
  16014. if yyv1 == nil {
  16015. yyv1 = []*int64{}
  16016. yyc1 = true
  16017. } else if len(yyv1) != 0 {
  16018. yyv1 = yyv1[:0]
  16019. yyc1 = true
  16020. }
  16021. } else {
  16022. yyhl1 := yyl1 > 0
  16023. var yyrl1 int
  16024. _ = yyrl1
  16025. if yyhl1 {
  16026. if yyl1 > cap(yyv1) {
  16027. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16028. if yyrl1 <= cap(yyv1) {
  16029. yyv1 = yyv1[:yyrl1]
  16030. } else {
  16031. yyv1 = make([]*int64, yyrl1)
  16032. }
  16033. yyc1 = true
  16034. } else if yyl1 != len(yyv1) {
  16035. yyv1 = yyv1[:yyl1]
  16036. yyc1 = true
  16037. }
  16038. }
  16039. var yyj1 int
  16040. // var yydn1 bool
  16041. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16042. if yyj1 == 0 && yyv1 == nil {
  16043. if yyhl1 {
  16044. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16045. } else {
  16046. yyrl1 = 8
  16047. }
  16048. yyv1 = make([]*int64, yyrl1)
  16049. yyc1 = true
  16050. }
  16051. yyh1.ElemContainerState(yyj1)
  16052. var yydb1 bool
  16053. if yyj1 >= len(yyv1) {
  16054. yyv1 = append(yyv1, nil)
  16055. yyc1 = true
  16056. }
  16057. if yydb1 {
  16058. z.DecSwallow()
  16059. } else {
  16060. if r.TryDecodeAsNil() {
  16061. yyv1[yyj1] = nil
  16062. } else {
  16063. if yyv1[yyj1] == nil {
  16064. yyv1[yyj1] = new(int64)
  16065. }
  16066. if false {
  16067. } else {
  16068. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  16069. }
  16070. }
  16071. }
  16072. }
  16073. if yyj1 < len(yyv1) {
  16074. yyv1 = yyv1[:yyj1]
  16075. yyc1 = true
  16076. } else if yyj1 == 0 && yyv1 == nil {
  16077. yyv1 = make([]*int64, 0)
  16078. yyc1 = true
  16079. }
  16080. }
  16081. yyh1.End()
  16082. if yyc1 {
  16083. *v = yyv1
  16084. }
  16085. }
  16086. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  16087. var h codecSelfer19780
  16088. z, r := GenHelperEncoder(e)
  16089. _, _, _ = h, z, r
  16090. r.WriteArrayStart(len(v))
  16091. for _, yyv1 := range v {
  16092. r.WriteArrayElem()
  16093. yy2 := &yyv1
  16094. yy2.CodecEncodeSelf(e)
  16095. }
  16096. r.WriteArrayEnd()
  16097. }
  16098. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  16099. var h codecSelfer19780
  16100. z, r := GenHelperDecoder(d)
  16101. _, _, _ = h, z, r
  16102. yyv1 := *v
  16103. yyh1, yyl1 := z.DecSliceHelperStart()
  16104. var yyc1 bool
  16105. _ = yyc1
  16106. if yyl1 == 0 {
  16107. if yyv1 == nil {
  16108. yyv1 = []stringUint64T{}
  16109. yyc1 = true
  16110. } else if len(yyv1) != 0 {
  16111. yyv1 = yyv1[:0]
  16112. yyc1 = true
  16113. }
  16114. } else {
  16115. yyhl1 := yyl1 > 0
  16116. var yyrl1 int
  16117. _ = yyrl1
  16118. if yyhl1 {
  16119. if yyl1 > cap(yyv1) {
  16120. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  16121. if yyrl1 <= cap(yyv1) {
  16122. yyv1 = yyv1[:yyrl1]
  16123. } else {
  16124. yyv1 = make([]stringUint64T, yyrl1)
  16125. }
  16126. yyc1 = true
  16127. } else if yyl1 != len(yyv1) {
  16128. yyv1 = yyv1[:yyl1]
  16129. yyc1 = true
  16130. }
  16131. }
  16132. var yyj1 int
  16133. // var yydn1 bool
  16134. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16135. if yyj1 == 0 && yyv1 == nil {
  16136. if yyhl1 {
  16137. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  16138. } else {
  16139. yyrl1 = 8
  16140. }
  16141. yyv1 = make([]stringUint64T, yyrl1)
  16142. yyc1 = true
  16143. }
  16144. yyh1.ElemContainerState(yyj1)
  16145. var yydb1 bool
  16146. if yyj1 >= len(yyv1) {
  16147. yyv1 = append(yyv1, stringUint64T{})
  16148. yyc1 = true
  16149. }
  16150. if yydb1 {
  16151. z.DecSwallow()
  16152. } else {
  16153. if r.TryDecodeAsNil() {
  16154. yyv1[yyj1] = stringUint64T{}
  16155. } else {
  16156. yyv1[yyj1].CodecDecodeSelf(d)
  16157. }
  16158. }
  16159. }
  16160. if yyj1 < len(yyv1) {
  16161. yyv1 = yyv1[:yyj1]
  16162. yyc1 = true
  16163. } else if yyj1 == 0 && yyv1 == nil {
  16164. yyv1 = make([]stringUint64T, 0)
  16165. yyc1 = true
  16166. }
  16167. }
  16168. yyh1.End()
  16169. if yyc1 {
  16170. *v = yyv1
  16171. }
  16172. }
  16173. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  16174. var h codecSelfer19780
  16175. z, r := GenHelperEncoder(e)
  16176. _, _, _ = h, z, r
  16177. r.WriteMapStart(len(v))
  16178. for yyk1, yyv1 := range v {
  16179. r.WriteMapElemKey()
  16180. if false {
  16181. } else {
  16182. if z.EncBasicHandle().StringToRaw {
  16183. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16184. } else {
  16185. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16186. }
  16187. }
  16188. r.WriteMapElemValue()
  16189. if yyv1 == nil {
  16190. r.EncodeNil()
  16191. } else {
  16192. yyv1.CodecEncodeSelf(e)
  16193. }
  16194. }
  16195. r.WriteMapEnd()
  16196. }
  16197. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  16198. var h codecSelfer19780
  16199. z, r := GenHelperDecoder(d)
  16200. _, _, _ = h, z, r
  16201. yyv1 := *v
  16202. yyl1 := r.ReadMapStart()
  16203. yybh1 := z.DecBasicHandle()
  16204. if yyv1 == nil {
  16205. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  16206. yyv1 = make(map[string]*TestStruc, yyrl1)
  16207. *v = yyv1
  16208. }
  16209. var yymk1 string
  16210. var yymv1 *TestStruc
  16211. var yymg1, yymdn1, yyms1, yymok1 bool
  16212. if yybh1.MapValueReset {
  16213. yymg1 = true
  16214. }
  16215. if yyl1 != 0 {
  16216. yyhl1 := yyl1 > 0
  16217. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16218. r.ReadMapElemKey()
  16219. if r.TryDecodeAsNil() {
  16220. yymk1 = ""
  16221. } else {
  16222. yymk1 = (string)(r.DecodeString())
  16223. }
  16224. yyms1 = true
  16225. if yymg1 {
  16226. yymv1, yymok1 = yyv1[yymk1]
  16227. if yymok1 {
  16228. yyms1 = false
  16229. }
  16230. } else {
  16231. yymv1 = nil
  16232. }
  16233. r.ReadMapElemValue()
  16234. yymdn1 = false
  16235. if r.TryDecodeAsNil() {
  16236. yymdn1 = true
  16237. } else {
  16238. if yymv1 == nil {
  16239. yymv1 = new(TestStruc)
  16240. }
  16241. yymv1.CodecDecodeSelf(d)
  16242. }
  16243. if yymdn1 {
  16244. if yybh1.DeleteOnNilMapValue {
  16245. delete(yyv1, yymk1)
  16246. } else {
  16247. yyv1[yymk1] = nil
  16248. }
  16249. } else if yyms1 && yyv1 != nil {
  16250. yyv1[yymk1] = yymv1
  16251. }
  16252. }
  16253. } // else len==0: TODO: Should we clear map entries?
  16254. r.ReadMapEnd()
  16255. }
  16256. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  16257. var h codecSelfer19780
  16258. z, r := GenHelperEncoder(e)
  16259. _, _, _ = h, z, r
  16260. r.WriteMapStart(len(v))
  16261. for yyk1, yyv1 := range v {
  16262. r.WriteMapElemKey()
  16263. if false {
  16264. } else {
  16265. if z.EncBasicHandle().StringToRaw {
  16266. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16267. } else {
  16268. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16269. }
  16270. }
  16271. r.WriteMapElemValue()
  16272. yy3 := &yyv1
  16273. yy3.CodecEncodeSelf(e)
  16274. }
  16275. r.WriteMapEnd()
  16276. }
  16277. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  16278. var h codecSelfer19780
  16279. z, r := GenHelperDecoder(d)
  16280. _, _, _ = h, z, r
  16281. yyv1 := *v
  16282. yyl1 := r.ReadMapStart()
  16283. yybh1 := z.DecBasicHandle()
  16284. if yyv1 == nil {
  16285. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1184)
  16286. yyv1 = make(map[string]TestStruc, yyrl1)
  16287. *v = yyv1
  16288. }
  16289. var yymk1 string
  16290. var yymv1 TestStruc
  16291. var yymg1, yymdn1 bool
  16292. if yybh1.MapValueReset {
  16293. yymg1 = true
  16294. }
  16295. if yyl1 != 0 {
  16296. yyhl1 := yyl1 > 0
  16297. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16298. r.ReadMapElemKey()
  16299. if r.TryDecodeAsNil() {
  16300. yymk1 = ""
  16301. } else {
  16302. yymk1 = (string)(r.DecodeString())
  16303. }
  16304. if yymg1 {
  16305. yymv1 = yyv1[yymk1]
  16306. } else {
  16307. yymv1 = TestStruc{}
  16308. }
  16309. r.ReadMapElemValue()
  16310. yymdn1 = false
  16311. if r.TryDecodeAsNil() {
  16312. yymdn1 = true
  16313. } else {
  16314. yymv1.CodecDecodeSelf(d)
  16315. }
  16316. if yymdn1 {
  16317. if yybh1.DeleteOnNilMapValue {
  16318. delete(yyv1, yymk1)
  16319. } else {
  16320. yyv1[yymk1] = TestStruc{}
  16321. }
  16322. } else if yyv1 != nil {
  16323. yyv1[yymk1] = yymv1
  16324. }
  16325. }
  16326. } // else len==0: TODO: Should we clear map entries?
  16327. r.ReadMapEnd()
  16328. }
  16329. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  16330. var h codecSelfer19780
  16331. z, r := GenHelperEncoder(e)
  16332. _, _, _ = h, z, r
  16333. r.WriteArrayStart(len(v))
  16334. for _, yyv1 := range v {
  16335. r.WriteArrayElem()
  16336. if yyv1 == nil {
  16337. r.EncodeNil()
  16338. } else {
  16339. yyv1.CodecEncodeSelf(e)
  16340. }
  16341. }
  16342. r.WriteArrayEnd()
  16343. }
  16344. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  16345. var h codecSelfer19780
  16346. z, r := GenHelperDecoder(d)
  16347. _, _, _ = h, z, r
  16348. yyv1 := *v
  16349. yyh1, yyl1 := z.DecSliceHelperStart()
  16350. var yyc1 bool
  16351. _ = yyc1
  16352. if yyl1 == 0 {
  16353. if yyv1 == nil {
  16354. yyv1 = []*TestStruc{}
  16355. yyc1 = true
  16356. } else if len(yyv1) != 0 {
  16357. yyv1 = yyv1[:0]
  16358. yyc1 = true
  16359. }
  16360. } else {
  16361. yyhl1 := yyl1 > 0
  16362. var yyrl1 int
  16363. _ = yyrl1
  16364. if yyhl1 {
  16365. if yyl1 > cap(yyv1) {
  16366. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16367. if yyrl1 <= cap(yyv1) {
  16368. yyv1 = yyv1[:yyrl1]
  16369. } else {
  16370. yyv1 = make([]*TestStruc, yyrl1)
  16371. }
  16372. yyc1 = true
  16373. } else if yyl1 != len(yyv1) {
  16374. yyv1 = yyv1[:yyl1]
  16375. yyc1 = true
  16376. }
  16377. }
  16378. var yyj1 int
  16379. // var yydn1 bool
  16380. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16381. if yyj1 == 0 && yyv1 == nil {
  16382. if yyhl1 {
  16383. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16384. } else {
  16385. yyrl1 = 8
  16386. }
  16387. yyv1 = make([]*TestStruc, yyrl1)
  16388. yyc1 = true
  16389. }
  16390. yyh1.ElemContainerState(yyj1)
  16391. var yydb1 bool
  16392. if yyj1 >= len(yyv1) {
  16393. yyv1 = append(yyv1, nil)
  16394. yyc1 = true
  16395. }
  16396. if yydb1 {
  16397. z.DecSwallow()
  16398. } else {
  16399. if r.TryDecodeAsNil() {
  16400. yyv1[yyj1] = nil
  16401. } else {
  16402. if yyv1[yyj1] == nil {
  16403. yyv1[yyj1] = new(TestStruc)
  16404. }
  16405. yyv1[yyj1].CodecDecodeSelf(d)
  16406. }
  16407. }
  16408. }
  16409. if yyj1 < len(yyv1) {
  16410. yyv1 = yyv1[:yyj1]
  16411. yyc1 = true
  16412. } else if yyj1 == 0 && yyv1 == nil {
  16413. yyv1 = make([]*TestStruc, 0)
  16414. yyc1 = true
  16415. }
  16416. }
  16417. yyh1.End()
  16418. if yyc1 {
  16419. *v = yyv1
  16420. }
  16421. }
  16422. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  16423. var h codecSelfer19780
  16424. z, r := GenHelperEncoder(e)
  16425. _, _, _ = h, z, r
  16426. r.WriteArrayStart(len(v))
  16427. for _, yyv1 := range v {
  16428. r.WriteArrayElem()
  16429. if false {
  16430. } else {
  16431. if z.EncBasicHandle().StringToRaw {
  16432. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  16433. } else {
  16434. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  16435. }
  16436. }
  16437. }
  16438. r.WriteArrayEnd()
  16439. }
  16440. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  16441. var h codecSelfer19780
  16442. z, r := GenHelperDecoder(d)
  16443. _, _, _ = h, z, r
  16444. yyv1 := v
  16445. yyh1, yyl1 := z.DecSliceHelperStart()
  16446. if yyl1 == 0 {
  16447. } else {
  16448. yyhl1 := yyl1 > 0
  16449. var yyrl1 int
  16450. _ = yyrl1
  16451. var yyj1 int
  16452. // var yydn1 bool
  16453. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16454. yyh1.ElemContainerState(yyj1)
  16455. var yydb1 bool
  16456. if yyj1 >= len(yyv1) {
  16457. z.DecArrayCannotExpand(len(v), yyj1+1)
  16458. yydb1 = true
  16459. }
  16460. if yydb1 {
  16461. z.DecSwallow()
  16462. } else {
  16463. if r.TryDecodeAsNil() {
  16464. yyv1[yyj1] = ""
  16465. } else {
  16466. yyv1[yyj1] = (string)(r.DecodeString())
  16467. }
  16468. }
  16469. }
  16470. }
  16471. yyh1.End()
  16472. }
  16473. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  16474. var h codecSelfer19780
  16475. z, r := GenHelperEncoder(e)
  16476. _, _, _ = h, z, r
  16477. r.EncodeStringBytesRaw([]byte(v))
  16478. }
  16479. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  16480. var h codecSelfer19780
  16481. z, r := GenHelperDecoder(d)
  16482. _, _, _ = h, z, r
  16483. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  16484. }
  16485. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  16486. var h codecSelfer19780
  16487. z, r := GenHelperEncoder(e)
  16488. _, _, _ = h, z, r
  16489. if v == nil {
  16490. r.EncodeNil()
  16491. } else {
  16492. var sch1 []string
  16493. Lsch1:
  16494. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  16495. case timeout1 == 0: // only consume available
  16496. for {
  16497. select {
  16498. case b1 := <-v:
  16499. sch1 = append(sch1, b1)
  16500. default:
  16501. break Lsch1
  16502. }
  16503. }
  16504. case timeout1 > 0: // consume until timeout
  16505. tt1 := time.NewTimer(timeout1)
  16506. for {
  16507. select {
  16508. case b1 := <-v:
  16509. sch1 = append(sch1, b1)
  16510. case <-tt1.C:
  16511. // close(tt.C)
  16512. break Lsch1
  16513. }
  16514. }
  16515. default: // consume until close
  16516. for b1 := range v {
  16517. sch1 = append(sch1, b1)
  16518. }
  16519. }
  16520. r.WriteArrayStart(len(sch1))
  16521. for _, yyv1 := range sch1 {
  16522. r.WriteArrayElem()
  16523. if false {
  16524. } else {
  16525. if z.EncBasicHandle().StringToRaw {
  16526. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  16527. } else {
  16528. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  16529. }
  16530. }
  16531. }
  16532. r.WriteArrayEnd()
  16533. }
  16534. }
  16535. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  16536. var h codecSelfer19780
  16537. z, r := GenHelperDecoder(d)
  16538. _, _, _ = h, z, r
  16539. yyv1 := *v
  16540. yyh1, yyl1 := z.DecSliceHelperStart()
  16541. var yyc1 bool
  16542. _ = yyc1
  16543. if yyl1 == 0 {
  16544. if yyv1 == nil {
  16545. yyv1 = make(chan string, 0)
  16546. yyc1 = true
  16547. }
  16548. } else {
  16549. yyhl1 := yyl1 > 0
  16550. var yyrl1 int
  16551. _ = yyrl1
  16552. var yyj1 int
  16553. // var yydn1 bool
  16554. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16555. if yyj1 == 0 && yyv1 == nil {
  16556. if yyhl1 {
  16557. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  16558. } else {
  16559. yyrl1 = 64
  16560. }
  16561. yyv1 = make(chan string, yyrl1)
  16562. yyc1 = true
  16563. }
  16564. yyh1.ElemContainerState(yyj1)
  16565. var yyvcx1 string
  16566. if r.TryDecodeAsNil() {
  16567. yyvcx1 = ""
  16568. } else {
  16569. yyvcx1 = (string)(r.DecodeString())
  16570. }
  16571. yyv1 <- yyvcx1
  16572. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  16573. }
  16574. }
  16575. yyh1.End()
  16576. if yyc1 {
  16577. *v = yyv1
  16578. }
  16579. }
  16580. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  16581. var h codecSelfer19780
  16582. z, r := GenHelperEncoder(e)
  16583. _, _, _ = h, z, r
  16584. r.WriteMapStart(len(v))
  16585. for yyk1, yyv1 := range v {
  16586. r.WriteMapElemKey()
  16587. if false {
  16588. } else {
  16589. r.EncodeBool(bool(yyk1))
  16590. }
  16591. r.WriteMapElemValue()
  16592. yy3 := &yyv1
  16593. if false {
  16594. } else {
  16595. z.EncFallback(yy3)
  16596. }
  16597. }
  16598. r.WriteMapEnd()
  16599. }
  16600. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  16601. var h codecSelfer19780
  16602. z, r := GenHelperDecoder(d)
  16603. _, _, _ = h, z, r
  16604. yyv1 := *v
  16605. yyl1 := r.ReadMapStart()
  16606. yybh1 := z.DecBasicHandle()
  16607. if yyv1 == nil {
  16608. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  16609. yyv1 = make(map[bool]struct{}, yyrl1)
  16610. *v = yyv1
  16611. }
  16612. var yymk1 bool
  16613. var yymv1 struct{}
  16614. var yymg1, yymdn1 bool
  16615. if yybh1.MapValueReset {
  16616. yymg1 = true
  16617. }
  16618. if yyl1 != 0 {
  16619. yyhl1 := yyl1 > 0
  16620. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16621. r.ReadMapElemKey()
  16622. if r.TryDecodeAsNil() {
  16623. yymk1 = false
  16624. } else {
  16625. yymk1 = (bool)(r.DecodeBool())
  16626. }
  16627. if yymg1 {
  16628. yymv1 = yyv1[yymk1]
  16629. } else {
  16630. yymv1 = struct{}{}
  16631. }
  16632. r.ReadMapElemValue()
  16633. yymdn1 = false
  16634. if r.TryDecodeAsNil() {
  16635. yymdn1 = true
  16636. } else {
  16637. if false {
  16638. } else {
  16639. z.DecFallback(&yymv1, false)
  16640. }
  16641. }
  16642. if yymdn1 {
  16643. if yybh1.DeleteOnNilMapValue {
  16644. delete(yyv1, yymk1)
  16645. } else {
  16646. yyv1[yymk1] = struct{}{}
  16647. }
  16648. } else if yyv1 != nil {
  16649. yyv1[yymk1] = yymv1
  16650. }
  16651. }
  16652. } // else len==0: TODO: Should we clear map entries?
  16653. r.ReadMapEnd()
  16654. }
  16655. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  16656. var h codecSelfer19780
  16657. z, r := GenHelperEncoder(e)
  16658. _, _, _ = h, z, r
  16659. r.WriteMapStart(len(v))
  16660. for yyk1, yyv1 := range v {
  16661. r.WriteMapElemKey()
  16662. if false {
  16663. } else {
  16664. r.EncodeInt(int64(yyk1))
  16665. }
  16666. r.WriteMapElemValue()
  16667. if yyv1 == nil {
  16668. r.EncodeNil()
  16669. } else {
  16670. yyv1.CodecEncodeSelf(e)
  16671. }
  16672. }
  16673. r.WriteMapEnd()
  16674. }
  16675. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  16676. var h codecSelfer19780
  16677. z, r := GenHelperDecoder(d)
  16678. _, _, _ = h, z, r
  16679. yyv1 := *v
  16680. yyl1 := r.ReadMapStart()
  16681. yybh1 := z.DecBasicHandle()
  16682. if yyv1 == nil {
  16683. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16684. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  16685. *v = yyv1
  16686. }
  16687. var yymk1 int
  16688. var yymv1 wrapUint64Slice
  16689. var yymg1, yymdn1 bool
  16690. if yybh1.MapValueReset {
  16691. yymg1 = true
  16692. }
  16693. if yyl1 != 0 {
  16694. yyhl1 := yyl1 > 0
  16695. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16696. r.ReadMapElemKey()
  16697. if r.TryDecodeAsNil() {
  16698. yymk1 = 0
  16699. } else {
  16700. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  16701. }
  16702. if yymg1 {
  16703. yymv1 = yyv1[yymk1]
  16704. } else {
  16705. yymv1 = nil
  16706. }
  16707. r.ReadMapElemValue()
  16708. yymdn1 = false
  16709. if r.TryDecodeAsNil() {
  16710. yymdn1 = true
  16711. } else {
  16712. yymv1.CodecDecodeSelf(d)
  16713. }
  16714. if yymdn1 {
  16715. if yybh1.DeleteOnNilMapValue {
  16716. delete(yyv1, yymk1)
  16717. } else {
  16718. yyv1[yymk1] = nil
  16719. }
  16720. } else if yyv1 != nil {
  16721. yyv1[yymk1] = yymv1
  16722. }
  16723. }
  16724. } // else len==0: TODO: Should we clear map entries?
  16725. r.ReadMapEnd()
  16726. }
  16727. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  16728. var h codecSelfer19780
  16729. z, r := GenHelperEncoder(e)
  16730. _, _, _ = h, z, r
  16731. r.WriteMapStart(len(v))
  16732. for yyk1, yyv1 := range v {
  16733. r.WriteMapElemKey()
  16734. if false {
  16735. } else {
  16736. r.EncodeFloat64(float64(yyk1))
  16737. }
  16738. r.WriteMapElemValue()
  16739. if yyv1 == nil {
  16740. r.EncodeNil()
  16741. } else {
  16742. yyv1.CodecEncodeSelf(e)
  16743. }
  16744. }
  16745. r.WriteMapEnd()
  16746. }
  16747. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  16748. var h codecSelfer19780
  16749. z, r := GenHelperDecoder(d)
  16750. _, _, _ = h, z, r
  16751. yyv1 := *v
  16752. yyl1 := r.ReadMapStart()
  16753. yybh1 := z.DecBasicHandle()
  16754. if yyv1 == nil {
  16755. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16756. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  16757. *v = yyv1
  16758. }
  16759. var yymk1 float64
  16760. var yymv1 wrapStringSlice
  16761. var yymg1, yymdn1 bool
  16762. if yybh1.MapValueReset {
  16763. yymg1 = true
  16764. }
  16765. if yyl1 != 0 {
  16766. yyhl1 := yyl1 > 0
  16767. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16768. r.ReadMapElemKey()
  16769. if r.TryDecodeAsNil() {
  16770. yymk1 = 0
  16771. } else {
  16772. yymk1 = (float64)(r.DecodeFloat64())
  16773. }
  16774. if yymg1 {
  16775. yymv1 = yyv1[yymk1]
  16776. } else {
  16777. yymv1 = nil
  16778. }
  16779. r.ReadMapElemValue()
  16780. yymdn1 = false
  16781. if r.TryDecodeAsNil() {
  16782. yymdn1 = true
  16783. } else {
  16784. yymv1.CodecDecodeSelf(d)
  16785. }
  16786. if yymdn1 {
  16787. if yybh1.DeleteOnNilMapValue {
  16788. delete(yyv1, yymk1)
  16789. } else {
  16790. yyv1[yymk1] = nil
  16791. }
  16792. } else if yyv1 != nil {
  16793. yyv1[yymk1] = yymv1
  16794. }
  16795. }
  16796. } // else len==0: TODO: Should we clear map entries?
  16797. r.ReadMapEnd()
  16798. }
  16799. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  16800. var h codecSelfer19780
  16801. z, r := GenHelperEncoder(e)
  16802. _, _, _ = h, z, r
  16803. r.WriteMapStart(len(v))
  16804. for yyk1, yyv1 := range v {
  16805. r.WriteMapElemKey()
  16806. if false {
  16807. } else {
  16808. r.EncodeFloat32(float32(yyk1))
  16809. }
  16810. r.WriteMapElemValue()
  16811. if yyv1 == nil {
  16812. r.EncodeNil()
  16813. } else {
  16814. yyv1.CodecEncodeSelf(e)
  16815. }
  16816. }
  16817. r.WriteMapEnd()
  16818. }
  16819. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  16820. var h codecSelfer19780
  16821. z, r := GenHelperDecoder(d)
  16822. _, _, _ = h, z, r
  16823. yyv1 := *v
  16824. yyl1 := r.ReadMapStart()
  16825. yybh1 := z.DecBasicHandle()
  16826. if yyv1 == nil {
  16827. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  16828. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  16829. *v = yyv1
  16830. }
  16831. var yymk1 float32
  16832. var yymv1 wrapStringSlice
  16833. var yymg1, yymdn1 bool
  16834. if yybh1.MapValueReset {
  16835. yymg1 = true
  16836. }
  16837. if yyl1 != 0 {
  16838. yyhl1 := yyl1 > 0
  16839. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16840. r.ReadMapElemKey()
  16841. if r.TryDecodeAsNil() {
  16842. yymk1 = 0
  16843. } else {
  16844. yymk1 = (float32)(r.DecodeFloat32As64())
  16845. }
  16846. if yymg1 {
  16847. yymv1 = yyv1[yymk1]
  16848. } else {
  16849. yymv1 = nil
  16850. }
  16851. r.ReadMapElemValue()
  16852. yymdn1 = false
  16853. if r.TryDecodeAsNil() {
  16854. yymdn1 = true
  16855. } else {
  16856. yymv1.CodecDecodeSelf(d)
  16857. }
  16858. if yymdn1 {
  16859. if yybh1.DeleteOnNilMapValue {
  16860. delete(yyv1, yymk1)
  16861. } else {
  16862. yyv1[yymk1] = nil
  16863. }
  16864. } else if yyv1 != nil {
  16865. yyv1[yymk1] = yymv1
  16866. }
  16867. }
  16868. } // else len==0: TODO: Should we clear map entries?
  16869. r.ReadMapEnd()
  16870. }
  16871. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  16872. var h codecSelfer19780
  16873. z, r := GenHelperEncoder(e)
  16874. _, _, _ = h, z, r
  16875. r.WriteMapStart(len(v))
  16876. for yyk1, yyv1 := range v {
  16877. r.WriteMapElemKey()
  16878. if false {
  16879. } else {
  16880. r.EncodeUint(uint64(yyk1))
  16881. }
  16882. r.WriteMapElemValue()
  16883. if yyv1 == nil {
  16884. r.EncodeNil()
  16885. } else {
  16886. yyv1.CodecEncodeSelf(e)
  16887. }
  16888. }
  16889. r.WriteMapEnd()
  16890. }
  16891. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  16892. var h codecSelfer19780
  16893. z, r := GenHelperDecoder(d)
  16894. _, _, _ = h, z, r
  16895. yyv1 := *v
  16896. yyl1 := r.ReadMapStart()
  16897. yybh1 := z.DecBasicHandle()
  16898. if yyv1 == nil {
  16899. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  16900. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  16901. *v = yyv1
  16902. }
  16903. var yymk1 uint64
  16904. var yymv1 wrapStringSlice
  16905. var yymg1, yymdn1 bool
  16906. if yybh1.MapValueReset {
  16907. yymg1 = true
  16908. }
  16909. if yyl1 != 0 {
  16910. yyhl1 := yyl1 > 0
  16911. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16912. r.ReadMapElemKey()
  16913. if r.TryDecodeAsNil() {
  16914. yymk1 = 0
  16915. } else {
  16916. yymk1 = (uint64)(r.DecodeUint64())
  16917. }
  16918. if yymg1 {
  16919. yymv1 = yyv1[yymk1]
  16920. } else {
  16921. yymv1 = nil
  16922. }
  16923. r.ReadMapElemValue()
  16924. yymdn1 = false
  16925. if r.TryDecodeAsNil() {
  16926. yymdn1 = true
  16927. } else {
  16928. yymv1.CodecDecodeSelf(d)
  16929. }
  16930. if yymdn1 {
  16931. if yybh1.DeleteOnNilMapValue {
  16932. delete(yyv1, yymk1)
  16933. } else {
  16934. yyv1[yymk1] = nil
  16935. }
  16936. } else if yyv1 != nil {
  16937. yyv1[yymk1] = yymv1
  16938. }
  16939. }
  16940. } // else len==0: TODO: Should we clear map entries?
  16941. r.ReadMapEnd()
  16942. }
  16943. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  16944. var h codecSelfer19780
  16945. z, r := GenHelperEncoder(e)
  16946. _, _, _ = h, z, r
  16947. r.WriteMapStart(len(v))
  16948. for yyk1, yyv1 := range v {
  16949. r.WriteMapElemKey()
  16950. yy2 := &yyk1
  16951. yy2.CodecEncodeSelf(e)
  16952. r.WriteMapElemValue()
  16953. if yyv1 == nil {
  16954. r.EncodeNil()
  16955. } else {
  16956. yyv1.CodecEncodeSelf(e)
  16957. }
  16958. }
  16959. r.WriteMapEnd()
  16960. }
  16961. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  16962. var h codecSelfer19780
  16963. z, r := GenHelperDecoder(d)
  16964. _, _, _ = h, z, r
  16965. yyv1 := *v
  16966. yyl1 := r.ReadMapStart()
  16967. yybh1 := z.DecBasicHandle()
  16968. if yyv1 == nil {
  16969. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  16970. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  16971. *v = yyv1
  16972. }
  16973. var yymk1 stringUint64T
  16974. var yymv1 wrapStringSlice
  16975. var yymg1, yymdn1 bool
  16976. if yybh1.MapValueReset {
  16977. yymg1 = true
  16978. }
  16979. if yyl1 != 0 {
  16980. yyhl1 := yyl1 > 0
  16981. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16982. r.ReadMapElemKey()
  16983. if r.TryDecodeAsNil() {
  16984. yymk1 = stringUint64T{}
  16985. } else {
  16986. yymk1.CodecDecodeSelf(d)
  16987. }
  16988. if yymg1 {
  16989. yymv1 = yyv1[yymk1]
  16990. } else {
  16991. yymv1 = nil
  16992. }
  16993. r.ReadMapElemValue()
  16994. yymdn1 = false
  16995. if r.TryDecodeAsNil() {
  16996. yymdn1 = true
  16997. } else {
  16998. yymv1.CodecDecodeSelf(d)
  16999. }
  17000. if yymdn1 {
  17001. if yybh1.DeleteOnNilMapValue {
  17002. delete(yyv1, yymk1)
  17003. } else {
  17004. yyv1[yymk1] = nil
  17005. }
  17006. } else if yyv1 != nil {
  17007. yyv1[yymk1] = yymv1
  17008. }
  17009. }
  17010. } // else len==0: TODO: Should we clear map entries?
  17011. r.ReadMapEnd()
  17012. }
  17013. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  17014. var h codecSelfer19780
  17015. z, r := GenHelperEncoder(e)
  17016. _, _, _ = h, z, r
  17017. r.WriteArrayStart(len(v))
  17018. for _, yyv1 := range v {
  17019. r.WriteArrayElem()
  17020. if yyv1 == nil {
  17021. r.EncodeNil()
  17022. } else {
  17023. yyv1.CodecEncodeSelf(e)
  17024. }
  17025. }
  17026. r.WriteArrayEnd()
  17027. }
  17028. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  17029. var h codecSelfer19780
  17030. z, r := GenHelperDecoder(d)
  17031. _, _, _ = h, z, r
  17032. yyv1 := *v
  17033. yyh1, yyl1 := z.DecSliceHelperStart()
  17034. var yyc1 bool
  17035. _ = yyc1
  17036. if yyl1 == 0 {
  17037. if yyv1 == nil {
  17038. yyv1 = []wrapBytes{}
  17039. yyc1 = true
  17040. } else if len(yyv1) != 0 {
  17041. yyv1 = yyv1[:0]
  17042. yyc1 = true
  17043. }
  17044. } else {
  17045. yyhl1 := yyl1 > 0
  17046. var yyrl1 int
  17047. _ = yyrl1
  17048. if yyhl1 {
  17049. if yyl1 > cap(yyv1) {
  17050. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  17051. if yyrl1 <= cap(yyv1) {
  17052. yyv1 = yyv1[:yyrl1]
  17053. } else {
  17054. yyv1 = make([]wrapBytes, yyrl1)
  17055. }
  17056. yyc1 = true
  17057. } else if yyl1 != len(yyv1) {
  17058. yyv1 = yyv1[:yyl1]
  17059. yyc1 = true
  17060. }
  17061. }
  17062. var yyj1 int
  17063. // var yydn1 bool
  17064. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17065. if yyj1 == 0 && yyv1 == nil {
  17066. if yyhl1 {
  17067. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  17068. } else {
  17069. yyrl1 = 8
  17070. }
  17071. yyv1 = make([]wrapBytes, yyrl1)
  17072. yyc1 = true
  17073. }
  17074. yyh1.ElemContainerState(yyj1)
  17075. var yydb1 bool
  17076. if yyj1 >= len(yyv1) {
  17077. yyv1 = append(yyv1, nil)
  17078. yyc1 = true
  17079. }
  17080. if yydb1 {
  17081. z.DecSwallow()
  17082. } else {
  17083. if r.TryDecodeAsNil() {
  17084. yyv1[yyj1] = nil
  17085. } else {
  17086. yyv1[yyj1].CodecDecodeSelf(d)
  17087. }
  17088. }
  17089. }
  17090. if yyj1 < len(yyv1) {
  17091. yyv1 = yyv1[:yyj1]
  17092. yyc1 = true
  17093. } else if yyj1 == 0 && yyv1 == nil {
  17094. yyv1 = make([]wrapBytes, 0)
  17095. yyc1 = true
  17096. }
  17097. }
  17098. yyh1.End()
  17099. if yyc1 {
  17100. *v = yyv1
  17101. }
  17102. }
  17103. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  17104. var h codecSelfer19780
  17105. z, r := GenHelperEncoder(e)
  17106. _, _, _ = h, z, r
  17107. r.WriteArrayStart(len(v))
  17108. for _, yyv1 := range v {
  17109. r.WriteArrayElem()
  17110. yyv1.CodecEncodeSelf(e)
  17111. }
  17112. r.WriteArrayEnd()
  17113. }
  17114. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  17115. var h codecSelfer19780
  17116. z, r := GenHelperDecoder(d)
  17117. _, _, _ = h, z, r
  17118. yyv1 := *v
  17119. yyh1, yyl1 := z.DecSliceHelperStart()
  17120. var yyc1 bool
  17121. _ = yyc1
  17122. if yyl1 == 0 {
  17123. if yyv1 == nil {
  17124. yyv1 = []wrapUint8{}
  17125. yyc1 = true
  17126. } else if len(yyv1) != 0 {
  17127. yyv1 = yyv1[:0]
  17128. yyc1 = true
  17129. }
  17130. } else {
  17131. yyhl1 := yyl1 > 0
  17132. var yyrl1 int
  17133. _ = yyrl1
  17134. if yyhl1 {
  17135. if yyl1 > cap(yyv1) {
  17136. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  17137. if yyrl1 <= cap(yyv1) {
  17138. yyv1 = yyv1[:yyrl1]
  17139. } else {
  17140. yyv1 = make([]wrapUint8, yyrl1)
  17141. }
  17142. yyc1 = true
  17143. } else if yyl1 != len(yyv1) {
  17144. yyv1 = yyv1[:yyl1]
  17145. yyc1 = true
  17146. }
  17147. }
  17148. var yyj1 int
  17149. // var yydn1 bool
  17150. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17151. if yyj1 == 0 && yyv1 == nil {
  17152. if yyhl1 {
  17153. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  17154. } else {
  17155. yyrl1 = 8
  17156. }
  17157. yyv1 = make([]wrapUint8, yyrl1)
  17158. yyc1 = true
  17159. }
  17160. yyh1.ElemContainerState(yyj1)
  17161. var yydb1 bool
  17162. if yyj1 >= len(yyv1) {
  17163. yyv1 = append(yyv1, 0)
  17164. yyc1 = true
  17165. }
  17166. if yydb1 {
  17167. z.DecSwallow()
  17168. } else {
  17169. if r.TryDecodeAsNil() {
  17170. yyv1[yyj1] = 0
  17171. } else {
  17172. yyv1[yyj1].CodecDecodeSelf(d)
  17173. }
  17174. }
  17175. }
  17176. if yyj1 < len(yyv1) {
  17177. yyv1 = yyv1[:yyj1]
  17178. yyc1 = true
  17179. } else if yyj1 == 0 && yyv1 == nil {
  17180. yyv1 = make([]wrapUint8, 0)
  17181. yyc1 = true
  17182. }
  17183. }
  17184. yyh1.End()
  17185. if yyc1 {
  17186. *v = yyv1
  17187. }
  17188. }
  17189. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  17190. var h codecSelfer19780
  17191. z, r := GenHelperEncoder(e)
  17192. _, _, _ = h, z, r
  17193. r.WriteArrayStart(len(v))
  17194. for _, yyv1 := range v {
  17195. r.WriteArrayElem()
  17196. yy2 := &yyv1
  17197. yy2.CodecEncodeSelf(e)
  17198. }
  17199. r.WriteArrayEnd()
  17200. }
  17201. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  17202. var h codecSelfer19780
  17203. z, r := GenHelperDecoder(d)
  17204. _, _, _ = h, z, r
  17205. yyv1 := v
  17206. yyh1, yyl1 := z.DecSliceHelperStart()
  17207. if yyl1 == 0 {
  17208. } else {
  17209. yyhl1 := yyl1 > 0
  17210. var yyrl1 int
  17211. _ = yyrl1
  17212. var yyj1 int
  17213. // var yydn1 bool
  17214. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17215. yyh1.ElemContainerState(yyj1)
  17216. var yydb1 bool
  17217. if yyj1 >= len(yyv1) {
  17218. z.DecArrayCannotExpand(len(v), yyj1+1)
  17219. yydb1 = true
  17220. }
  17221. if yydb1 {
  17222. z.DecSwallow()
  17223. } else {
  17224. if r.TryDecodeAsNil() {
  17225. yyv1[yyj1] = stringUint64T{}
  17226. } else {
  17227. yyv1[yyj1].CodecDecodeSelf(d)
  17228. }
  17229. }
  17230. }
  17231. }
  17232. yyh1.End()
  17233. }
  17234. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  17235. var h codecSelfer19780
  17236. z, r := GenHelperEncoder(e)
  17237. _, _, _ = h, z, r
  17238. r.WriteArrayStart(len(v))
  17239. for _, yyv1 := range v {
  17240. r.WriteArrayElem()
  17241. if false {
  17242. } else {
  17243. r.EncodeUint(uint64(yyv1))
  17244. }
  17245. }
  17246. r.WriteArrayEnd()
  17247. }
  17248. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  17249. var h codecSelfer19780
  17250. z, r := GenHelperDecoder(d)
  17251. _, _, _ = h, z, r
  17252. yyv1 := v
  17253. yyh1, yyl1 := z.DecSliceHelperStart()
  17254. if yyl1 == 0 {
  17255. } else {
  17256. yyhl1 := yyl1 > 0
  17257. var yyrl1 int
  17258. _ = yyrl1
  17259. var yyj1 int
  17260. // var yydn1 bool
  17261. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17262. yyh1.ElemContainerState(yyj1)
  17263. var yydb1 bool
  17264. if yyj1 >= len(yyv1) {
  17265. z.DecArrayCannotExpand(len(v), yyj1+1)
  17266. yydb1 = true
  17267. }
  17268. if yydb1 {
  17269. z.DecSwallow()
  17270. } else {
  17271. if r.TryDecodeAsNil() {
  17272. yyv1[yyj1] = 0
  17273. } else {
  17274. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  17275. }
  17276. }
  17277. }
  17278. }
  17279. yyh1.End()
  17280. }
  17281. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  17282. var h codecSelfer19780
  17283. z, r := GenHelperEncoder(e)
  17284. _, _, _ = h, z, r
  17285. r.WriteArrayStart(len(v))
  17286. for _, yyv1 := range v {
  17287. r.WriteArrayElem()
  17288. if yyv1 == nil {
  17289. r.EncodeNil()
  17290. } else {
  17291. if false {
  17292. } else {
  17293. h.encArray4uint64((*[4]uint64)(yyv1), e)
  17294. }
  17295. }
  17296. }
  17297. r.WriteArrayEnd()
  17298. }
  17299. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  17300. var h codecSelfer19780
  17301. z, r := GenHelperDecoder(d)
  17302. _, _, _ = h, z, r
  17303. yyv1 := *v
  17304. yyh1, yyl1 := z.DecSliceHelperStart()
  17305. var yyc1 bool
  17306. _ = yyc1
  17307. if yyl1 == 0 {
  17308. if yyv1 == nil {
  17309. yyv1 = []*[4]uint64{}
  17310. yyc1 = true
  17311. } else if len(yyv1) != 0 {
  17312. yyv1 = yyv1[:0]
  17313. yyc1 = true
  17314. }
  17315. } else {
  17316. yyhl1 := yyl1 > 0
  17317. var yyrl1 int
  17318. _ = yyrl1
  17319. if yyhl1 {
  17320. if yyl1 > cap(yyv1) {
  17321. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17322. if yyrl1 <= cap(yyv1) {
  17323. yyv1 = yyv1[:yyrl1]
  17324. } else {
  17325. yyv1 = make([]*[4]uint64, yyrl1)
  17326. }
  17327. yyc1 = true
  17328. } else if yyl1 != len(yyv1) {
  17329. yyv1 = yyv1[:yyl1]
  17330. yyc1 = true
  17331. }
  17332. }
  17333. var yyj1 int
  17334. // var yydn1 bool
  17335. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17336. if yyj1 == 0 && yyv1 == nil {
  17337. if yyhl1 {
  17338. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17339. } else {
  17340. yyrl1 = 8
  17341. }
  17342. yyv1 = make([]*[4]uint64, yyrl1)
  17343. yyc1 = true
  17344. }
  17345. yyh1.ElemContainerState(yyj1)
  17346. var yydb1 bool
  17347. if yyj1 >= len(yyv1) {
  17348. yyv1 = append(yyv1, nil)
  17349. yyc1 = true
  17350. }
  17351. if yydb1 {
  17352. z.DecSwallow()
  17353. } else {
  17354. if r.TryDecodeAsNil() {
  17355. yyv1[yyj1] = nil
  17356. } else {
  17357. if yyv1[yyj1] == nil {
  17358. yyv1[yyj1] = new([4]uint64)
  17359. }
  17360. if false {
  17361. } else {
  17362. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  17363. }
  17364. }
  17365. }
  17366. }
  17367. if yyj1 < len(yyv1) {
  17368. yyv1 = yyv1[:yyj1]
  17369. yyc1 = true
  17370. } else if yyj1 == 0 && yyv1 == nil {
  17371. yyv1 = make([]*[4]uint64, 0)
  17372. yyc1 = true
  17373. }
  17374. }
  17375. yyh1.End()
  17376. if yyc1 {
  17377. *v = yyv1
  17378. }
  17379. }
  17380. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  17381. var h codecSelfer19780
  17382. z, r := GenHelperEncoder(e)
  17383. _, _, _ = h, z, r
  17384. r.WriteMapStart(len(v))
  17385. for yyk1, yyv1 := range v {
  17386. r.WriteMapElemKey()
  17387. if false {
  17388. } else {
  17389. if z.EncBasicHandle().StringToRaw {
  17390. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  17391. } else {
  17392. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  17393. }
  17394. }
  17395. r.WriteMapElemValue()
  17396. if yyv1 == nil {
  17397. r.EncodeNil()
  17398. } else {
  17399. yyv1.CodecEncodeSelf(e)
  17400. }
  17401. }
  17402. r.WriteMapEnd()
  17403. }
  17404. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  17405. var h codecSelfer19780
  17406. z, r := GenHelperDecoder(d)
  17407. _, _, _ = h, z, r
  17408. yyv1 := *v
  17409. yyl1 := r.ReadMapStart()
  17410. yybh1 := z.DecBasicHandle()
  17411. if yyv1 == nil {
  17412. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  17413. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  17414. *v = yyv1
  17415. }
  17416. var yymk1 string
  17417. var yymv1 *TestStrucFlex
  17418. var yymg1, yymdn1, yyms1, yymok1 bool
  17419. if yybh1.MapValueReset {
  17420. yymg1 = true
  17421. }
  17422. if yyl1 != 0 {
  17423. yyhl1 := yyl1 > 0
  17424. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  17425. r.ReadMapElemKey()
  17426. if r.TryDecodeAsNil() {
  17427. yymk1 = ""
  17428. } else {
  17429. yymk1 = (string)(r.DecodeString())
  17430. }
  17431. yyms1 = true
  17432. if yymg1 {
  17433. yymv1, yymok1 = yyv1[yymk1]
  17434. if yymok1 {
  17435. yyms1 = false
  17436. }
  17437. } else {
  17438. yymv1 = nil
  17439. }
  17440. r.ReadMapElemValue()
  17441. yymdn1 = false
  17442. if r.TryDecodeAsNil() {
  17443. yymdn1 = true
  17444. } else {
  17445. if yymv1 == nil {
  17446. yymv1 = new(TestStrucFlex)
  17447. }
  17448. yymv1.CodecDecodeSelf(d)
  17449. }
  17450. if yymdn1 {
  17451. if yybh1.DeleteOnNilMapValue {
  17452. delete(yyv1, yymk1)
  17453. } else {
  17454. yyv1[yymk1] = nil
  17455. }
  17456. } else if yyms1 && yyv1 != nil {
  17457. yyv1[yymk1] = yymv1
  17458. }
  17459. }
  17460. } // else len==0: TODO: Should we clear map entries?
  17461. r.ReadMapEnd()
  17462. }
  17463. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  17464. var h codecSelfer19780
  17465. z, r := GenHelperEncoder(e)
  17466. _, _, _ = h, z, r
  17467. r.WriteMapStart(len(v))
  17468. for yyk1, yyv1 := range v {
  17469. r.WriteMapElemKey()
  17470. if false {
  17471. } else {
  17472. if z.EncBasicHandle().StringToRaw {
  17473. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  17474. } else {
  17475. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  17476. }
  17477. }
  17478. r.WriteMapElemValue()
  17479. yy3 := &yyv1
  17480. yy3.CodecEncodeSelf(e)
  17481. }
  17482. r.WriteMapEnd()
  17483. }
  17484. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  17485. var h codecSelfer19780
  17486. z, r := GenHelperDecoder(d)
  17487. _, _, _ = h, z, r
  17488. yyv1 := *v
  17489. yyl1 := r.ReadMapStart()
  17490. yybh1 := z.DecBasicHandle()
  17491. if yyv1 == nil {
  17492. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1488)
  17493. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  17494. *v = yyv1
  17495. }
  17496. var yymk1 string
  17497. var yymv1 TestStrucFlex
  17498. var yymg1, yymdn1 bool
  17499. if yybh1.MapValueReset {
  17500. yymg1 = true
  17501. }
  17502. if yyl1 != 0 {
  17503. yyhl1 := yyl1 > 0
  17504. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  17505. r.ReadMapElemKey()
  17506. if r.TryDecodeAsNil() {
  17507. yymk1 = ""
  17508. } else {
  17509. yymk1 = (string)(r.DecodeString())
  17510. }
  17511. if yymg1 {
  17512. yymv1 = yyv1[yymk1]
  17513. } else {
  17514. yymv1 = TestStrucFlex{}
  17515. }
  17516. r.ReadMapElemValue()
  17517. yymdn1 = false
  17518. if r.TryDecodeAsNil() {
  17519. yymdn1 = true
  17520. } else {
  17521. yymv1.CodecDecodeSelf(d)
  17522. }
  17523. if yymdn1 {
  17524. if yybh1.DeleteOnNilMapValue {
  17525. delete(yyv1, yymk1)
  17526. } else {
  17527. yyv1[yymk1] = TestStrucFlex{}
  17528. }
  17529. } else if yyv1 != nil {
  17530. yyv1[yymk1] = yymv1
  17531. }
  17532. }
  17533. } // else len==0: TODO: Should we clear map entries?
  17534. r.ReadMapEnd()
  17535. }
  17536. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  17537. var h codecSelfer19780
  17538. z, r := GenHelperEncoder(e)
  17539. _, _, _ = h, z, r
  17540. r.WriteArrayStart(len(v))
  17541. for _, yyv1 := range v {
  17542. r.WriteArrayElem()
  17543. if yyv1 == nil {
  17544. r.EncodeNil()
  17545. } else {
  17546. yyv1.CodecEncodeSelf(e)
  17547. }
  17548. }
  17549. r.WriteArrayEnd()
  17550. }
  17551. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  17552. var h codecSelfer19780
  17553. z, r := GenHelperDecoder(d)
  17554. _, _, _ = h, z, r
  17555. yyv1 := *v
  17556. yyh1, yyl1 := z.DecSliceHelperStart()
  17557. var yyc1 bool
  17558. _ = yyc1
  17559. if yyl1 == 0 {
  17560. if yyv1 == nil {
  17561. yyv1 = []*TestStrucFlex{}
  17562. yyc1 = true
  17563. } else if len(yyv1) != 0 {
  17564. yyv1 = yyv1[:0]
  17565. yyc1 = true
  17566. }
  17567. } else {
  17568. yyhl1 := yyl1 > 0
  17569. var yyrl1 int
  17570. _ = yyrl1
  17571. if yyhl1 {
  17572. if yyl1 > cap(yyv1) {
  17573. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17574. if yyrl1 <= cap(yyv1) {
  17575. yyv1 = yyv1[:yyrl1]
  17576. } else {
  17577. yyv1 = make([]*TestStrucFlex, yyrl1)
  17578. }
  17579. yyc1 = true
  17580. } else if yyl1 != len(yyv1) {
  17581. yyv1 = yyv1[:yyl1]
  17582. yyc1 = true
  17583. }
  17584. }
  17585. var yyj1 int
  17586. // var yydn1 bool
  17587. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  17588. if yyj1 == 0 && yyv1 == nil {
  17589. if yyhl1 {
  17590. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  17591. } else {
  17592. yyrl1 = 8
  17593. }
  17594. yyv1 = make([]*TestStrucFlex, yyrl1)
  17595. yyc1 = true
  17596. }
  17597. yyh1.ElemContainerState(yyj1)
  17598. var yydb1 bool
  17599. if yyj1 >= len(yyv1) {
  17600. yyv1 = append(yyv1, nil)
  17601. yyc1 = true
  17602. }
  17603. if yydb1 {
  17604. z.DecSwallow()
  17605. } else {
  17606. if r.TryDecodeAsNil() {
  17607. yyv1[yyj1] = nil
  17608. } else {
  17609. if yyv1[yyj1] == nil {
  17610. yyv1[yyj1] = new(TestStrucFlex)
  17611. }
  17612. yyv1[yyj1].CodecDecodeSelf(d)
  17613. }
  17614. }
  17615. }
  17616. if yyj1 < len(yyv1) {
  17617. yyv1 = yyv1[:yyj1]
  17618. yyc1 = true
  17619. } else if yyj1 == 0 && yyv1 == nil {
  17620. yyv1 = make([]*TestStrucFlex, 0)
  17621. yyc1 = true
  17622. }
  17623. }
  17624. yyh1.End()
  17625. if yyc1 {
  17626. *v = yyv1
  17627. }
  17628. }