values_codecgen_generated_test.go 309 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400
  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 init() {
  28. if GenVersion != 10 {
  29. _, file, _, _ := runtime.Caller(0)
  30. panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(GenVersion), 10) + ". Re-generate file: " + file)
  31. }
  32. if false {
  33. var _ byte = 0 // reference the types, but skip this branch at build/run time
  34. var v0 time.Time
  35. _ = v0
  36. }
  37. }
  38. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  39. var h codecSelfer19780
  40. z, r := GenHelperEncoder(e)
  41. _, _, _ = h, z, r
  42. if x == nil {
  43. r.EncodeNil()
  44. } else {
  45. if false {
  46. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  47. z.EncExtension(x, yyxt1)
  48. } else {
  49. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  50. }
  51. }
  52. }
  53. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  54. var h codecSelfer19780
  55. z, r := GenHelperDecoder(d)
  56. _, _, _ = h, z, r
  57. if false {
  58. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  59. z.DecExtension(x, yyxt1)
  60. } else {
  61. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  62. }
  63. }
  64. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  65. var h codecSelfer19780
  66. z, r := GenHelperEncoder(e)
  67. _, _, _ = h, z, r
  68. if x == nil {
  69. r.EncodeNil()
  70. } else {
  71. if false {
  72. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  73. z.EncExtension(x, yyxt1)
  74. } else {
  75. h.encwrapSliceString((wrapSliceString)(x), e)
  76. }
  77. }
  78. }
  79. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  80. var h codecSelfer19780
  81. z, r := GenHelperDecoder(d)
  82. _, _, _ = h, z, r
  83. if false {
  84. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  85. z.DecExtension(x, yyxt1)
  86. } else {
  87. h.decwrapSliceString((*wrapSliceString)(x), d)
  88. }
  89. }
  90. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  91. var h codecSelfer19780
  92. z, r := GenHelperEncoder(e)
  93. _, _, _ = h, z, r
  94. if false {
  95. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  96. z.EncExtension(x, yyxt1)
  97. } else {
  98. r.EncodeUint(uint64(x))
  99. }
  100. }
  101. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  102. var h codecSelfer19780
  103. z, r := GenHelperDecoder(d)
  104. _, _, _ = h, z, r
  105. if false {
  106. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  107. z.DecExtension(x, yyxt1)
  108. } else {
  109. *x = (wrapUint64)(r.DecodeUint64())
  110. }
  111. }
  112. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  113. var h codecSelfer19780
  114. z, r := GenHelperEncoder(e)
  115. _, _, _ = h, z, r
  116. if false {
  117. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  118. z.EncExtension(x, yyxt1)
  119. } else {
  120. if z.EncBasicHandle().StringToRaw {
  121. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  122. } else {
  123. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  124. }
  125. }
  126. }
  127. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  128. var h codecSelfer19780
  129. z, r := GenHelperDecoder(d)
  130. _, _, _ = h, z, r
  131. if false {
  132. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  133. z.DecExtension(x, yyxt1)
  134. } else {
  135. *x = (wrapString)(r.DecodeString())
  136. }
  137. }
  138. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  139. var h codecSelfer19780
  140. z, r := GenHelperEncoder(e)
  141. _, _, _ = h, z, r
  142. if x == nil {
  143. r.EncodeNil()
  144. } else {
  145. if false {
  146. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  147. z.EncExtension(x, yyxt1)
  148. } else {
  149. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  150. }
  151. }
  152. }
  153. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  154. var h codecSelfer19780
  155. z, r := GenHelperDecoder(d)
  156. _, _, _ = h, z, r
  157. if false {
  158. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  159. z.DecExtension(x, yyxt1)
  160. } else {
  161. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  162. }
  163. }
  164. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  165. var h codecSelfer19780
  166. z, r := GenHelperEncoder(e)
  167. _, _, _ = h, z, r
  168. if x == nil {
  169. r.EncodeNil()
  170. } else {
  171. if false {
  172. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  173. z.EncExtension(x, yyxt1)
  174. } else {
  175. h.encwrapStringSlice((wrapStringSlice)(x), e)
  176. }
  177. }
  178. }
  179. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  180. var h codecSelfer19780
  181. z, r := GenHelperDecoder(d)
  182. _, _, _ = h, z, r
  183. if false {
  184. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  185. z.DecExtension(x, yyxt1)
  186. } else {
  187. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  188. }
  189. }
  190. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  191. var h codecSelfer19780
  192. z, r := GenHelperEncoder(e)
  193. _, _, _ = h, z, r
  194. if x == nil {
  195. r.EncodeNil()
  196. } else {
  197. if false {
  198. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  199. z.EncExtension(x, yyxt1)
  200. } else {
  201. yysep2 := !z.EncBinary()
  202. yy2arr2 := z.EncBasicHandle().StructToArray
  203. _, _ = yysep2, yy2arr2
  204. const yyr2 bool = false // struct tag has 'toArray'
  205. if yyr2 || yy2arr2 {
  206. r.WriteArrayStart(2)
  207. } else {
  208. r.WriteMapStart(2)
  209. }
  210. if yyr2 || yy2arr2 {
  211. r.WriteArrayElem()
  212. if false {
  213. } else {
  214. if z.EncBasicHandle().StringToRaw {
  215. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  216. } else {
  217. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  218. }
  219. }
  220. } else {
  221. r.WriteMapElemKey()
  222. if z.IsJSONHandle() {
  223. z.WriteStr("\"S\"")
  224. } else {
  225. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  226. }
  227. r.WriteMapElemValue()
  228. if false {
  229. } else {
  230. if z.EncBasicHandle().StringToRaw {
  231. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  232. } else {
  233. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  234. }
  235. }
  236. }
  237. if yyr2 || yy2arr2 {
  238. r.WriteArrayElem()
  239. if false {
  240. } else {
  241. r.EncodeUint(uint64(x.U))
  242. }
  243. } else {
  244. r.WriteMapElemKey()
  245. if z.IsJSONHandle() {
  246. z.WriteStr("\"U\"")
  247. } else {
  248. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  249. }
  250. r.WriteMapElemValue()
  251. if false {
  252. } else {
  253. r.EncodeUint(uint64(x.U))
  254. }
  255. }
  256. if yyr2 || yy2arr2 {
  257. r.WriteArrayEnd()
  258. } else {
  259. r.WriteMapEnd()
  260. }
  261. }
  262. }
  263. }
  264. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  265. var h codecSelfer19780
  266. z, r := GenHelperDecoder(d)
  267. _, _, _ = h, z, r
  268. if false {
  269. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  270. z.DecExtension(x, yyxt1)
  271. } else {
  272. yyct2 := r.ContainerType()
  273. if yyct2 == codecSelferValueTypeMap19780 {
  274. yyl2 := r.ReadMapStart()
  275. if yyl2 == 0 {
  276. r.ReadMapEnd()
  277. } else {
  278. x.codecDecodeSelfFromMap(yyl2, d)
  279. }
  280. } else if yyct2 == codecSelferValueTypeArray19780 {
  281. yyl2 := r.ReadArrayStart()
  282. if yyl2 == 0 {
  283. r.ReadArrayEnd()
  284. } else {
  285. x.codecDecodeSelfFromArray(yyl2, d)
  286. }
  287. } else {
  288. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  289. }
  290. }
  291. }
  292. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  293. var h codecSelfer19780
  294. z, r := GenHelperDecoder(d)
  295. _, _, _ = h, z, r
  296. var yyhl3 bool = l >= 0
  297. for yyj3 := 0; ; yyj3++ {
  298. if yyhl3 {
  299. if yyj3 >= l {
  300. break
  301. }
  302. } else {
  303. if r.CheckBreak() {
  304. break
  305. }
  306. }
  307. r.ReadMapElemKey()
  308. yys3 := z.StringView(r.DecodeStringAsBytes())
  309. r.ReadMapElemValue()
  310. switch yys3 {
  311. case "S":
  312. if r.TryDecodeAsNil() {
  313. x.S = ""
  314. } else {
  315. x.S = (string)(r.DecodeString())
  316. }
  317. case "U":
  318. if r.TryDecodeAsNil() {
  319. x.U = 0
  320. } else {
  321. x.U = (uint64)(r.DecodeUint64())
  322. }
  323. default:
  324. z.DecStructFieldNotFound(-1, yys3)
  325. } // end switch yys3
  326. } // end for yyj3
  327. r.ReadMapEnd()
  328. }
  329. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  330. var h codecSelfer19780
  331. z, r := GenHelperDecoder(d)
  332. _, _, _ = h, z, r
  333. var yyj6 int
  334. var yyb6 bool
  335. var yyhl6 bool = l >= 0
  336. yyj6++
  337. if yyhl6 {
  338. yyb6 = yyj6 > l
  339. } else {
  340. yyb6 = r.CheckBreak()
  341. }
  342. if yyb6 {
  343. r.ReadArrayEnd()
  344. return
  345. }
  346. r.ReadArrayElem()
  347. if r.TryDecodeAsNil() {
  348. x.S = ""
  349. } else {
  350. x.S = (string)(r.DecodeString())
  351. }
  352. yyj6++
  353. if yyhl6 {
  354. yyb6 = yyj6 > l
  355. } else {
  356. yyb6 = r.CheckBreak()
  357. }
  358. if yyb6 {
  359. r.ReadArrayEnd()
  360. return
  361. }
  362. r.ReadArrayElem()
  363. if r.TryDecodeAsNil() {
  364. x.U = 0
  365. } else {
  366. x.U = (uint64)(r.DecodeUint64())
  367. }
  368. for {
  369. yyj6++
  370. if yyhl6 {
  371. yyb6 = yyj6 > l
  372. } else {
  373. yyb6 = r.CheckBreak()
  374. }
  375. if yyb6 {
  376. break
  377. }
  378. r.ReadArrayElem()
  379. z.DecStructFieldNotFound(yyj6-1, "")
  380. }
  381. r.ReadArrayEnd()
  382. }
  383. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  384. var h codecSelfer19780
  385. z, r := GenHelperEncoder(e)
  386. _, _, _ = h, z, r
  387. if x == nil {
  388. r.EncodeNil()
  389. } else {
  390. if false {
  391. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  392. z.EncExtension(x, yyxt1)
  393. } else {
  394. yysep2 := !z.EncBinary()
  395. yy2arr2 := z.EncBasicHandle().StructToArray
  396. _, _ = yysep2, yy2arr2
  397. const yyr2 bool = false // struct tag has 'toArray'
  398. if yyr2 || yy2arr2 {
  399. r.WriteArrayStart(15)
  400. } else {
  401. r.WriteMapStart(15)
  402. }
  403. if yyr2 || yy2arr2 {
  404. r.WriteArrayElem()
  405. if false {
  406. } else {
  407. if z.EncBasicHandle().StringToRaw {
  408. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  409. } else {
  410. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  411. }
  412. }
  413. } else {
  414. r.WriteMapElemKey()
  415. if z.IsJSONHandle() {
  416. z.WriteStr("\"AS\"")
  417. } else {
  418. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  419. }
  420. r.WriteMapElemValue()
  421. if false {
  422. } else {
  423. if z.EncBasicHandle().StringToRaw {
  424. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  425. } else {
  426. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  427. }
  428. }
  429. }
  430. if yyr2 || yy2arr2 {
  431. r.WriteArrayElem()
  432. if false {
  433. } else {
  434. r.EncodeInt(int64(x.AI64))
  435. }
  436. } else {
  437. r.WriteMapElemKey()
  438. if z.IsJSONHandle() {
  439. z.WriteStr("\"AI64\"")
  440. } else {
  441. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  442. }
  443. r.WriteMapElemValue()
  444. if false {
  445. } else {
  446. r.EncodeInt(int64(x.AI64))
  447. }
  448. }
  449. if yyr2 || yy2arr2 {
  450. r.WriteArrayElem()
  451. if false {
  452. } else {
  453. r.EncodeInt(int64(x.AI16))
  454. }
  455. } else {
  456. r.WriteMapElemKey()
  457. if z.IsJSONHandle() {
  458. z.WriteStr("\"AI16\"")
  459. } else {
  460. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  461. }
  462. r.WriteMapElemValue()
  463. if false {
  464. } else {
  465. r.EncodeInt(int64(x.AI16))
  466. }
  467. }
  468. if yyr2 || yy2arr2 {
  469. r.WriteArrayElem()
  470. if false {
  471. } else {
  472. r.EncodeUint(uint64(x.AUi64))
  473. }
  474. } else {
  475. r.WriteMapElemKey()
  476. if z.IsJSONHandle() {
  477. z.WriteStr("\"AUi64\"")
  478. } else {
  479. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  480. }
  481. r.WriteMapElemValue()
  482. if false {
  483. } else {
  484. r.EncodeUint(uint64(x.AUi64))
  485. }
  486. }
  487. if yyr2 || yy2arr2 {
  488. r.WriteArrayElem()
  489. if x.ASslice == nil {
  490. r.EncodeNil()
  491. } else {
  492. if false {
  493. } else {
  494. z.F.EncSliceStringV(x.ASslice, e)
  495. }
  496. }
  497. } else {
  498. r.WriteMapElemKey()
  499. if z.IsJSONHandle() {
  500. z.WriteStr("\"ASslice\"")
  501. } else {
  502. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  503. }
  504. r.WriteMapElemValue()
  505. if x.ASslice == nil {
  506. r.EncodeNil()
  507. } else {
  508. if false {
  509. } else {
  510. z.F.EncSliceStringV(x.ASslice, e)
  511. }
  512. }
  513. }
  514. if yyr2 || yy2arr2 {
  515. r.WriteArrayElem()
  516. if x.AI64slice == nil {
  517. r.EncodeNil()
  518. } else {
  519. if false {
  520. } else {
  521. z.F.EncSliceInt64V(x.AI64slice, e)
  522. }
  523. }
  524. } else {
  525. r.WriteMapElemKey()
  526. if z.IsJSONHandle() {
  527. z.WriteStr("\"AI64slice\"")
  528. } else {
  529. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  530. }
  531. r.WriteMapElemValue()
  532. if x.AI64slice == nil {
  533. r.EncodeNil()
  534. } else {
  535. if false {
  536. } else {
  537. z.F.EncSliceInt64V(x.AI64slice, e)
  538. }
  539. }
  540. }
  541. if yyr2 || yy2arr2 {
  542. r.WriteArrayElem()
  543. if x.AUi64slice == nil {
  544. r.EncodeNil()
  545. } else {
  546. if false {
  547. } else {
  548. z.F.EncSliceUint64V(x.AUi64slice, e)
  549. }
  550. }
  551. } else {
  552. r.WriteMapElemKey()
  553. if z.IsJSONHandle() {
  554. z.WriteStr("\"AUi64slice\"")
  555. } else {
  556. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  557. }
  558. r.WriteMapElemValue()
  559. if x.AUi64slice == nil {
  560. r.EncodeNil()
  561. } else {
  562. if false {
  563. } else {
  564. z.F.EncSliceUint64V(x.AUi64slice, e)
  565. }
  566. }
  567. }
  568. if yyr2 || yy2arr2 {
  569. r.WriteArrayElem()
  570. if x.AF64slice == nil {
  571. r.EncodeNil()
  572. } else {
  573. if false {
  574. } else {
  575. z.F.EncSliceFloat64V(x.AF64slice, e)
  576. }
  577. }
  578. } else {
  579. r.WriteMapElemKey()
  580. if z.IsJSONHandle() {
  581. z.WriteStr("\"AF64slice\"")
  582. } else {
  583. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  584. }
  585. r.WriteMapElemValue()
  586. if x.AF64slice == nil {
  587. r.EncodeNil()
  588. } else {
  589. if false {
  590. } else {
  591. z.F.EncSliceFloat64V(x.AF64slice, e)
  592. }
  593. }
  594. }
  595. if yyr2 || yy2arr2 {
  596. r.WriteArrayElem()
  597. if x.AF32slice == nil {
  598. r.EncodeNil()
  599. } else {
  600. if false {
  601. } else {
  602. z.F.EncSliceFloat32V(x.AF32slice, e)
  603. }
  604. }
  605. } else {
  606. r.WriteMapElemKey()
  607. if z.IsJSONHandle() {
  608. z.WriteStr("\"AF32slice\"")
  609. } else {
  610. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  611. }
  612. r.WriteMapElemValue()
  613. if x.AF32slice == nil {
  614. r.EncodeNil()
  615. } else {
  616. if false {
  617. } else {
  618. z.F.EncSliceFloat32V(x.AF32slice, e)
  619. }
  620. }
  621. }
  622. if yyr2 || yy2arr2 {
  623. r.WriteArrayElem()
  624. if x.AMSU16 == nil {
  625. r.EncodeNil()
  626. } else {
  627. if false {
  628. } else {
  629. z.F.EncMapStringUint16V(x.AMSU16, e)
  630. }
  631. }
  632. } else {
  633. r.WriteMapElemKey()
  634. if z.IsJSONHandle() {
  635. z.WriteStr("\"AMSU16\"")
  636. } else {
  637. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  638. }
  639. r.WriteMapElemValue()
  640. if x.AMSU16 == nil {
  641. r.EncodeNil()
  642. } else {
  643. if false {
  644. } else {
  645. z.F.EncMapStringUint16V(x.AMSU16, e)
  646. }
  647. }
  648. }
  649. if yyr2 || yy2arr2 {
  650. r.WriteArrayElem()
  651. yy34 := &x.AI64arr0
  652. if false {
  653. } else {
  654. h.encArray0int64((*[0]int64)(yy34), e)
  655. }
  656. } else {
  657. r.WriteMapElemKey()
  658. if z.IsJSONHandle() {
  659. z.WriteStr("\"AI64arr0\"")
  660. } else {
  661. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  662. }
  663. r.WriteMapElemValue()
  664. yy36 := &x.AI64arr0
  665. if false {
  666. } else {
  667. h.encArray0int64((*[0]int64)(yy36), e)
  668. }
  669. }
  670. if yyr2 || yy2arr2 {
  671. r.WriteArrayElem()
  672. if x.A164slice0 == nil {
  673. r.EncodeNil()
  674. } else {
  675. if false {
  676. } else {
  677. z.F.EncSliceInt64V(x.A164slice0, e)
  678. }
  679. }
  680. } else {
  681. r.WriteMapElemKey()
  682. if z.IsJSONHandle() {
  683. z.WriteStr("\"A164slice0\"")
  684. } else {
  685. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  686. }
  687. r.WriteMapElemValue()
  688. if x.A164slice0 == nil {
  689. r.EncodeNil()
  690. } else {
  691. if false {
  692. } else {
  693. z.F.EncSliceInt64V(x.A164slice0, e)
  694. }
  695. }
  696. }
  697. if yyr2 || yy2arr2 {
  698. r.WriteArrayElem()
  699. if x.AUi64sliceN == nil {
  700. r.EncodeNil()
  701. } else {
  702. if false {
  703. } else {
  704. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  705. }
  706. }
  707. } else {
  708. r.WriteMapElemKey()
  709. if z.IsJSONHandle() {
  710. z.WriteStr("\"AUi64sliceN\"")
  711. } else {
  712. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  713. }
  714. r.WriteMapElemValue()
  715. if x.AUi64sliceN == nil {
  716. r.EncodeNil()
  717. } else {
  718. if false {
  719. } else {
  720. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  721. }
  722. }
  723. }
  724. if yyr2 || yy2arr2 {
  725. r.WriteArrayElem()
  726. if x.AMSU16N == nil {
  727. r.EncodeNil()
  728. } else {
  729. if false {
  730. } else {
  731. z.F.EncMapStringUint16V(x.AMSU16N, e)
  732. }
  733. }
  734. } else {
  735. r.WriteMapElemKey()
  736. if z.IsJSONHandle() {
  737. z.WriteStr("\"AMSU16N\"")
  738. } else {
  739. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  740. }
  741. r.WriteMapElemValue()
  742. if x.AMSU16N == nil {
  743. r.EncodeNil()
  744. } else {
  745. if false {
  746. } else {
  747. z.F.EncMapStringUint16V(x.AMSU16N, e)
  748. }
  749. }
  750. }
  751. if yyr2 || yy2arr2 {
  752. r.WriteArrayElem()
  753. if x.AMSU16E == nil {
  754. r.EncodeNil()
  755. } else {
  756. if false {
  757. } else {
  758. z.F.EncMapStringUint16V(x.AMSU16E, e)
  759. }
  760. }
  761. } else {
  762. r.WriteMapElemKey()
  763. if z.IsJSONHandle() {
  764. z.WriteStr("\"AMSU16E\"")
  765. } else {
  766. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  767. }
  768. r.WriteMapElemValue()
  769. if x.AMSU16E == nil {
  770. r.EncodeNil()
  771. } else {
  772. if false {
  773. } else {
  774. z.F.EncMapStringUint16V(x.AMSU16E, e)
  775. }
  776. }
  777. }
  778. if yyr2 || yy2arr2 {
  779. r.WriteArrayEnd()
  780. } else {
  781. r.WriteMapEnd()
  782. }
  783. }
  784. }
  785. }
  786. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  787. var h codecSelfer19780
  788. z, r := GenHelperDecoder(d)
  789. _, _, _ = h, z, r
  790. if false {
  791. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  792. z.DecExtension(x, yyxt1)
  793. } else {
  794. yyct2 := r.ContainerType()
  795. if yyct2 == codecSelferValueTypeMap19780 {
  796. yyl2 := r.ReadMapStart()
  797. if yyl2 == 0 {
  798. r.ReadMapEnd()
  799. } else {
  800. x.codecDecodeSelfFromMap(yyl2, d)
  801. }
  802. } else if yyct2 == codecSelferValueTypeArray19780 {
  803. yyl2 := r.ReadArrayStart()
  804. if yyl2 == 0 {
  805. r.ReadArrayEnd()
  806. } else {
  807. x.codecDecodeSelfFromArray(yyl2, d)
  808. }
  809. } else {
  810. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  811. }
  812. }
  813. }
  814. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  815. var h codecSelfer19780
  816. z, r := GenHelperDecoder(d)
  817. _, _, _ = h, z, r
  818. var yyhl3 bool = l >= 0
  819. for yyj3 := 0; ; yyj3++ {
  820. if yyhl3 {
  821. if yyj3 >= l {
  822. break
  823. }
  824. } else {
  825. if r.CheckBreak() {
  826. break
  827. }
  828. }
  829. r.ReadMapElemKey()
  830. yys3 := z.StringView(r.DecodeStringAsBytes())
  831. r.ReadMapElemValue()
  832. switch yys3 {
  833. case "AS":
  834. if r.TryDecodeAsNil() {
  835. x.AS = ""
  836. } else {
  837. x.AS = (string)(r.DecodeString())
  838. }
  839. case "AI64":
  840. if r.TryDecodeAsNil() {
  841. x.AI64 = 0
  842. } else {
  843. x.AI64 = (int64)(r.DecodeInt64())
  844. }
  845. case "AI16":
  846. if r.TryDecodeAsNil() {
  847. x.AI16 = 0
  848. } else {
  849. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  850. }
  851. case "AUi64":
  852. if r.TryDecodeAsNil() {
  853. x.AUi64 = 0
  854. } else {
  855. x.AUi64 = (uint64)(r.DecodeUint64())
  856. }
  857. case "ASslice":
  858. if r.TryDecodeAsNil() {
  859. x.ASslice = nil
  860. } else {
  861. if false {
  862. } else {
  863. z.F.DecSliceStringX(&x.ASslice, d)
  864. }
  865. }
  866. case "AI64slice":
  867. if r.TryDecodeAsNil() {
  868. x.AI64slice = nil
  869. } else {
  870. if false {
  871. } else {
  872. z.F.DecSliceInt64X(&x.AI64slice, d)
  873. }
  874. }
  875. case "AUi64slice":
  876. if r.TryDecodeAsNil() {
  877. x.AUi64slice = nil
  878. } else {
  879. if false {
  880. } else {
  881. z.F.DecSliceUint64X(&x.AUi64slice, d)
  882. }
  883. }
  884. case "AF64slice":
  885. if r.TryDecodeAsNil() {
  886. x.AF64slice = nil
  887. } else {
  888. if false {
  889. } else {
  890. z.F.DecSliceFloat64X(&x.AF64slice, d)
  891. }
  892. }
  893. case "AF32slice":
  894. if r.TryDecodeAsNil() {
  895. x.AF32slice = nil
  896. } else {
  897. if false {
  898. } else {
  899. z.F.DecSliceFloat32X(&x.AF32slice, d)
  900. }
  901. }
  902. case "AMSU16":
  903. if r.TryDecodeAsNil() {
  904. x.AMSU16 = nil
  905. } else {
  906. if false {
  907. } else {
  908. z.F.DecMapStringUint16X(&x.AMSU16, d)
  909. }
  910. }
  911. case "AI64arr0":
  912. if r.TryDecodeAsNil() {
  913. x.AI64arr0 = [0]int64{}
  914. } else {
  915. if false {
  916. } else {
  917. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  918. }
  919. }
  920. case "A164slice0":
  921. if r.TryDecodeAsNil() {
  922. x.A164slice0 = nil
  923. } else {
  924. if false {
  925. } else {
  926. z.F.DecSliceInt64X(&x.A164slice0, d)
  927. }
  928. }
  929. case "AUi64sliceN":
  930. if r.TryDecodeAsNil() {
  931. x.AUi64sliceN = nil
  932. } else {
  933. if false {
  934. } else {
  935. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  936. }
  937. }
  938. case "AMSU16N":
  939. if r.TryDecodeAsNil() {
  940. x.AMSU16N = nil
  941. } else {
  942. if false {
  943. } else {
  944. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  945. }
  946. }
  947. case "AMSU16E":
  948. if r.TryDecodeAsNil() {
  949. x.AMSU16E = nil
  950. } else {
  951. if false {
  952. } else {
  953. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  954. }
  955. }
  956. default:
  957. z.DecStructFieldNotFound(-1, yys3)
  958. } // end switch yys3
  959. } // end for yyj3
  960. r.ReadMapEnd()
  961. }
  962. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  963. var h codecSelfer19780
  964. z, r := GenHelperDecoder(d)
  965. _, _, _ = h, z, r
  966. var yyj30 int
  967. var yyb30 bool
  968. var yyhl30 bool = l >= 0
  969. yyj30++
  970. if yyhl30 {
  971. yyb30 = yyj30 > l
  972. } else {
  973. yyb30 = r.CheckBreak()
  974. }
  975. if yyb30 {
  976. r.ReadArrayEnd()
  977. return
  978. }
  979. r.ReadArrayElem()
  980. if r.TryDecodeAsNil() {
  981. x.AS = ""
  982. } else {
  983. x.AS = (string)(r.DecodeString())
  984. }
  985. yyj30++
  986. if yyhl30 {
  987. yyb30 = yyj30 > l
  988. } else {
  989. yyb30 = r.CheckBreak()
  990. }
  991. if yyb30 {
  992. r.ReadArrayEnd()
  993. return
  994. }
  995. r.ReadArrayElem()
  996. if r.TryDecodeAsNil() {
  997. x.AI64 = 0
  998. } else {
  999. x.AI64 = (int64)(r.DecodeInt64())
  1000. }
  1001. yyj30++
  1002. if yyhl30 {
  1003. yyb30 = yyj30 > l
  1004. } else {
  1005. yyb30 = r.CheckBreak()
  1006. }
  1007. if yyb30 {
  1008. r.ReadArrayEnd()
  1009. return
  1010. }
  1011. r.ReadArrayElem()
  1012. if r.TryDecodeAsNil() {
  1013. x.AI16 = 0
  1014. } else {
  1015. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  1016. }
  1017. yyj30++
  1018. if yyhl30 {
  1019. yyb30 = yyj30 > l
  1020. } else {
  1021. yyb30 = r.CheckBreak()
  1022. }
  1023. if yyb30 {
  1024. r.ReadArrayEnd()
  1025. return
  1026. }
  1027. r.ReadArrayElem()
  1028. if r.TryDecodeAsNil() {
  1029. x.AUi64 = 0
  1030. } else {
  1031. x.AUi64 = (uint64)(r.DecodeUint64())
  1032. }
  1033. yyj30++
  1034. if yyhl30 {
  1035. yyb30 = yyj30 > l
  1036. } else {
  1037. yyb30 = r.CheckBreak()
  1038. }
  1039. if yyb30 {
  1040. r.ReadArrayEnd()
  1041. return
  1042. }
  1043. r.ReadArrayElem()
  1044. if r.TryDecodeAsNil() {
  1045. x.ASslice = nil
  1046. } else {
  1047. if false {
  1048. } else {
  1049. z.F.DecSliceStringX(&x.ASslice, d)
  1050. }
  1051. }
  1052. yyj30++
  1053. if yyhl30 {
  1054. yyb30 = yyj30 > l
  1055. } else {
  1056. yyb30 = r.CheckBreak()
  1057. }
  1058. if yyb30 {
  1059. r.ReadArrayEnd()
  1060. return
  1061. }
  1062. r.ReadArrayElem()
  1063. if r.TryDecodeAsNil() {
  1064. x.AI64slice = nil
  1065. } else {
  1066. if false {
  1067. } else {
  1068. z.F.DecSliceInt64X(&x.AI64slice, d)
  1069. }
  1070. }
  1071. yyj30++
  1072. if yyhl30 {
  1073. yyb30 = yyj30 > l
  1074. } else {
  1075. yyb30 = r.CheckBreak()
  1076. }
  1077. if yyb30 {
  1078. r.ReadArrayEnd()
  1079. return
  1080. }
  1081. r.ReadArrayElem()
  1082. if r.TryDecodeAsNil() {
  1083. x.AUi64slice = nil
  1084. } else {
  1085. if false {
  1086. } else {
  1087. z.F.DecSliceUint64X(&x.AUi64slice, d)
  1088. }
  1089. }
  1090. yyj30++
  1091. if yyhl30 {
  1092. yyb30 = yyj30 > l
  1093. } else {
  1094. yyb30 = r.CheckBreak()
  1095. }
  1096. if yyb30 {
  1097. r.ReadArrayEnd()
  1098. return
  1099. }
  1100. r.ReadArrayElem()
  1101. if r.TryDecodeAsNil() {
  1102. x.AF64slice = nil
  1103. } else {
  1104. if false {
  1105. } else {
  1106. z.F.DecSliceFloat64X(&x.AF64slice, d)
  1107. }
  1108. }
  1109. yyj30++
  1110. if yyhl30 {
  1111. yyb30 = yyj30 > l
  1112. } else {
  1113. yyb30 = r.CheckBreak()
  1114. }
  1115. if yyb30 {
  1116. r.ReadArrayEnd()
  1117. return
  1118. }
  1119. r.ReadArrayElem()
  1120. if r.TryDecodeAsNil() {
  1121. x.AF32slice = nil
  1122. } else {
  1123. if false {
  1124. } else {
  1125. z.F.DecSliceFloat32X(&x.AF32slice, d)
  1126. }
  1127. }
  1128. yyj30++
  1129. if yyhl30 {
  1130. yyb30 = yyj30 > l
  1131. } else {
  1132. yyb30 = r.CheckBreak()
  1133. }
  1134. if yyb30 {
  1135. r.ReadArrayEnd()
  1136. return
  1137. }
  1138. r.ReadArrayElem()
  1139. if r.TryDecodeAsNil() {
  1140. x.AMSU16 = nil
  1141. } else {
  1142. if false {
  1143. } else {
  1144. z.F.DecMapStringUint16X(&x.AMSU16, d)
  1145. }
  1146. }
  1147. yyj30++
  1148. if yyhl30 {
  1149. yyb30 = yyj30 > l
  1150. } else {
  1151. yyb30 = r.CheckBreak()
  1152. }
  1153. if yyb30 {
  1154. r.ReadArrayEnd()
  1155. return
  1156. }
  1157. r.ReadArrayElem()
  1158. if r.TryDecodeAsNil() {
  1159. x.AI64arr0 = [0]int64{}
  1160. } else {
  1161. if false {
  1162. } else {
  1163. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  1164. }
  1165. }
  1166. yyj30++
  1167. if yyhl30 {
  1168. yyb30 = yyj30 > l
  1169. } else {
  1170. yyb30 = r.CheckBreak()
  1171. }
  1172. if yyb30 {
  1173. r.ReadArrayEnd()
  1174. return
  1175. }
  1176. r.ReadArrayElem()
  1177. if r.TryDecodeAsNil() {
  1178. x.A164slice0 = nil
  1179. } else {
  1180. if false {
  1181. } else {
  1182. z.F.DecSliceInt64X(&x.A164slice0, d)
  1183. }
  1184. }
  1185. yyj30++
  1186. if yyhl30 {
  1187. yyb30 = yyj30 > l
  1188. } else {
  1189. yyb30 = r.CheckBreak()
  1190. }
  1191. if yyb30 {
  1192. r.ReadArrayEnd()
  1193. return
  1194. }
  1195. r.ReadArrayElem()
  1196. if r.TryDecodeAsNil() {
  1197. x.AUi64sliceN = nil
  1198. } else {
  1199. if false {
  1200. } else {
  1201. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  1202. }
  1203. }
  1204. yyj30++
  1205. if yyhl30 {
  1206. yyb30 = yyj30 > l
  1207. } else {
  1208. yyb30 = r.CheckBreak()
  1209. }
  1210. if yyb30 {
  1211. r.ReadArrayEnd()
  1212. return
  1213. }
  1214. r.ReadArrayElem()
  1215. if r.TryDecodeAsNil() {
  1216. x.AMSU16N = nil
  1217. } else {
  1218. if false {
  1219. } else {
  1220. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  1221. }
  1222. }
  1223. yyj30++
  1224. if yyhl30 {
  1225. yyb30 = yyj30 > l
  1226. } else {
  1227. yyb30 = r.CheckBreak()
  1228. }
  1229. if yyb30 {
  1230. r.ReadArrayEnd()
  1231. return
  1232. }
  1233. r.ReadArrayElem()
  1234. if r.TryDecodeAsNil() {
  1235. x.AMSU16E = nil
  1236. } else {
  1237. if false {
  1238. } else {
  1239. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  1240. }
  1241. }
  1242. for {
  1243. yyj30++
  1244. if yyhl30 {
  1245. yyb30 = yyj30 > l
  1246. } else {
  1247. yyb30 = r.CheckBreak()
  1248. }
  1249. if yyb30 {
  1250. break
  1251. }
  1252. r.ReadArrayElem()
  1253. z.DecStructFieldNotFound(yyj30-1, "")
  1254. }
  1255. r.ReadArrayEnd()
  1256. }
  1257. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  1258. var h codecSelfer19780
  1259. z, r := GenHelperEncoder(e)
  1260. _, _, _ = h, z, r
  1261. if x == nil {
  1262. r.EncodeNil()
  1263. } else {
  1264. if false {
  1265. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1266. z.EncExtension(x, yyxt1)
  1267. } else {
  1268. yysep2 := !z.EncBinary()
  1269. yy2arr2 := z.EncBasicHandle().StructToArray
  1270. _, _ = yysep2, yy2arr2
  1271. const yyr2 bool = false // struct tag has 'toArray'
  1272. if yyr2 || yy2arr2 {
  1273. r.WriteArrayStart(17)
  1274. } else {
  1275. r.WriteMapStart(17)
  1276. }
  1277. if yyr2 || yy2arr2 {
  1278. r.WriteArrayElem()
  1279. if false {
  1280. } else {
  1281. if z.EncBasicHandle().StringToRaw {
  1282. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1283. } else {
  1284. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1285. }
  1286. }
  1287. } else {
  1288. r.WriteMapElemKey()
  1289. if z.IsJSONHandle() {
  1290. z.WriteStr("\"S\"")
  1291. } else {
  1292. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1293. }
  1294. r.WriteMapElemValue()
  1295. if false {
  1296. } else {
  1297. if z.EncBasicHandle().StringToRaw {
  1298. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1299. } else {
  1300. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1301. }
  1302. }
  1303. }
  1304. if yyr2 || yy2arr2 {
  1305. r.WriteArrayElem()
  1306. if false {
  1307. } else {
  1308. r.EncodeInt(int64(x.I64))
  1309. }
  1310. } else {
  1311. r.WriteMapElemKey()
  1312. if z.IsJSONHandle() {
  1313. z.WriteStr("\"I64\"")
  1314. } else {
  1315. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1316. }
  1317. r.WriteMapElemValue()
  1318. if false {
  1319. } else {
  1320. r.EncodeInt(int64(x.I64))
  1321. }
  1322. }
  1323. if yyr2 || yy2arr2 {
  1324. r.WriteArrayElem()
  1325. if false {
  1326. } else {
  1327. r.EncodeInt(int64(x.I8))
  1328. }
  1329. } else {
  1330. r.WriteMapElemKey()
  1331. if z.IsJSONHandle() {
  1332. z.WriteStr("\"I8\"")
  1333. } else {
  1334. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1335. }
  1336. r.WriteMapElemValue()
  1337. if false {
  1338. } else {
  1339. r.EncodeInt(int64(x.I8))
  1340. }
  1341. }
  1342. if yyr2 || yy2arr2 {
  1343. r.WriteArrayElem()
  1344. if false {
  1345. } else {
  1346. r.EncodeUint(uint64(x.Ui64))
  1347. }
  1348. } else {
  1349. r.WriteMapElemKey()
  1350. if z.IsJSONHandle() {
  1351. z.WriteStr("\"Ui64\"")
  1352. } else {
  1353. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1354. }
  1355. r.WriteMapElemValue()
  1356. if false {
  1357. } else {
  1358. r.EncodeUint(uint64(x.Ui64))
  1359. }
  1360. }
  1361. if yyr2 || yy2arr2 {
  1362. r.WriteArrayElem()
  1363. if false {
  1364. } else {
  1365. r.EncodeUint(uint64(x.Ui8))
  1366. }
  1367. } else {
  1368. r.WriteMapElemKey()
  1369. if z.IsJSONHandle() {
  1370. z.WriteStr("\"Ui8\"")
  1371. } else {
  1372. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1373. }
  1374. r.WriteMapElemValue()
  1375. if false {
  1376. } else {
  1377. r.EncodeUint(uint64(x.Ui8))
  1378. }
  1379. }
  1380. if yyr2 || yy2arr2 {
  1381. r.WriteArrayElem()
  1382. if false {
  1383. } else {
  1384. r.EncodeFloat64(float64(x.F64))
  1385. }
  1386. } else {
  1387. r.WriteMapElemKey()
  1388. if z.IsJSONHandle() {
  1389. z.WriteStr("\"F64\"")
  1390. } else {
  1391. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1392. }
  1393. r.WriteMapElemValue()
  1394. if false {
  1395. } else {
  1396. r.EncodeFloat64(float64(x.F64))
  1397. }
  1398. }
  1399. if yyr2 || yy2arr2 {
  1400. r.WriteArrayElem()
  1401. if false {
  1402. } else {
  1403. r.EncodeFloat32(float32(x.F32))
  1404. }
  1405. } else {
  1406. r.WriteMapElemKey()
  1407. if z.IsJSONHandle() {
  1408. z.WriteStr("\"F32\"")
  1409. } else {
  1410. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1411. }
  1412. r.WriteMapElemValue()
  1413. if false {
  1414. } else {
  1415. r.EncodeFloat32(float32(x.F32))
  1416. }
  1417. }
  1418. if yyr2 || yy2arr2 {
  1419. r.WriteArrayElem()
  1420. if false {
  1421. } else {
  1422. r.EncodeBool(bool(x.B))
  1423. }
  1424. } else {
  1425. r.WriteMapElemKey()
  1426. if z.IsJSONHandle() {
  1427. z.WriteStr("\"B\"")
  1428. } else {
  1429. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1430. }
  1431. r.WriteMapElemValue()
  1432. if false {
  1433. } else {
  1434. r.EncodeBool(bool(x.B))
  1435. }
  1436. }
  1437. if yyr2 || yy2arr2 {
  1438. r.WriteArrayElem()
  1439. if x.Sslice == nil {
  1440. r.EncodeNil()
  1441. } else {
  1442. if false {
  1443. } else {
  1444. z.F.EncSliceStringV(x.Sslice, e)
  1445. }
  1446. }
  1447. } else {
  1448. r.WriteMapElemKey()
  1449. if z.IsJSONHandle() {
  1450. z.WriteStr("\"Sslice\"")
  1451. } else {
  1452. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1453. }
  1454. r.WriteMapElemValue()
  1455. if x.Sslice == nil {
  1456. r.EncodeNil()
  1457. } else {
  1458. if false {
  1459. } else {
  1460. z.F.EncSliceStringV(x.Sslice, e)
  1461. }
  1462. }
  1463. }
  1464. if yyr2 || yy2arr2 {
  1465. r.WriteArrayElem()
  1466. if x.I16slice == nil {
  1467. r.EncodeNil()
  1468. } else {
  1469. if false {
  1470. } else {
  1471. z.F.EncSliceInt16V(x.I16slice, e)
  1472. }
  1473. }
  1474. } else {
  1475. r.WriteMapElemKey()
  1476. if z.IsJSONHandle() {
  1477. z.WriteStr("\"I16slice\"")
  1478. } else {
  1479. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1480. }
  1481. r.WriteMapElemValue()
  1482. if x.I16slice == nil {
  1483. r.EncodeNil()
  1484. } else {
  1485. if false {
  1486. } else {
  1487. z.F.EncSliceInt16V(x.I16slice, e)
  1488. }
  1489. }
  1490. }
  1491. if yyr2 || yy2arr2 {
  1492. r.WriteArrayElem()
  1493. if x.Ui64slice == nil {
  1494. r.EncodeNil()
  1495. } else {
  1496. if false {
  1497. } else {
  1498. z.F.EncSliceUint64V(x.Ui64slice, e)
  1499. }
  1500. }
  1501. } else {
  1502. r.WriteMapElemKey()
  1503. if z.IsJSONHandle() {
  1504. z.WriteStr("\"Ui64slice\"")
  1505. } else {
  1506. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1507. }
  1508. r.WriteMapElemValue()
  1509. if x.Ui64slice == nil {
  1510. r.EncodeNil()
  1511. } else {
  1512. if false {
  1513. } else {
  1514. z.F.EncSliceUint64V(x.Ui64slice, e)
  1515. }
  1516. }
  1517. }
  1518. if yyr2 || yy2arr2 {
  1519. r.WriteArrayElem()
  1520. if x.Ui8slice == nil {
  1521. r.EncodeNil()
  1522. } else {
  1523. if false {
  1524. } else {
  1525. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1526. }
  1527. }
  1528. } else {
  1529. r.WriteMapElemKey()
  1530. if z.IsJSONHandle() {
  1531. z.WriteStr("\"Ui8slice\"")
  1532. } else {
  1533. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1534. }
  1535. r.WriteMapElemValue()
  1536. if x.Ui8slice == nil {
  1537. r.EncodeNil()
  1538. } else {
  1539. if false {
  1540. } else {
  1541. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1542. }
  1543. }
  1544. }
  1545. if yyr2 || yy2arr2 {
  1546. r.WriteArrayElem()
  1547. if x.Bslice == nil {
  1548. r.EncodeNil()
  1549. } else {
  1550. if false {
  1551. } else {
  1552. z.F.EncSliceBoolV(x.Bslice, e)
  1553. }
  1554. }
  1555. } else {
  1556. r.WriteMapElemKey()
  1557. if z.IsJSONHandle() {
  1558. z.WriteStr("\"Bslice\"")
  1559. } else {
  1560. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1561. }
  1562. r.WriteMapElemValue()
  1563. if x.Bslice == nil {
  1564. r.EncodeNil()
  1565. } else {
  1566. if false {
  1567. } else {
  1568. z.F.EncSliceBoolV(x.Bslice, e)
  1569. }
  1570. }
  1571. }
  1572. if yyr2 || yy2arr2 {
  1573. r.WriteArrayElem()
  1574. if x.Iptrslice == nil {
  1575. r.EncodeNil()
  1576. } else {
  1577. if false {
  1578. } else {
  1579. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1580. }
  1581. }
  1582. } else {
  1583. r.WriteMapElemKey()
  1584. if z.IsJSONHandle() {
  1585. z.WriteStr("\"Iptrslice\"")
  1586. } else {
  1587. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1588. }
  1589. r.WriteMapElemValue()
  1590. if x.Iptrslice == nil {
  1591. r.EncodeNil()
  1592. } else {
  1593. if false {
  1594. } else {
  1595. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1596. }
  1597. }
  1598. }
  1599. if yyr2 || yy2arr2 {
  1600. r.WriteArrayElem()
  1601. if x.WrapSliceInt64 == nil {
  1602. r.EncodeNil()
  1603. } else {
  1604. x.WrapSliceInt64.CodecEncodeSelf(e)
  1605. }
  1606. } else {
  1607. r.WriteMapElemKey()
  1608. if z.IsJSONHandle() {
  1609. z.WriteStr("\"WrapSliceInt64\"")
  1610. } else {
  1611. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1612. }
  1613. r.WriteMapElemValue()
  1614. if x.WrapSliceInt64 == nil {
  1615. r.EncodeNil()
  1616. } else {
  1617. x.WrapSliceInt64.CodecEncodeSelf(e)
  1618. }
  1619. }
  1620. if yyr2 || yy2arr2 {
  1621. r.WriteArrayElem()
  1622. if x.WrapSliceString == nil {
  1623. r.EncodeNil()
  1624. } else {
  1625. x.WrapSliceString.CodecEncodeSelf(e)
  1626. }
  1627. } else {
  1628. r.WriteMapElemKey()
  1629. if z.IsJSONHandle() {
  1630. z.WriteStr("\"WrapSliceString\"")
  1631. } else {
  1632. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1633. }
  1634. r.WriteMapElemValue()
  1635. if x.WrapSliceString == nil {
  1636. r.EncodeNil()
  1637. } else {
  1638. x.WrapSliceString.CodecEncodeSelf(e)
  1639. }
  1640. }
  1641. if yyr2 || yy2arr2 {
  1642. r.WriteArrayElem()
  1643. if x.Msi64 == nil {
  1644. r.EncodeNil()
  1645. } else {
  1646. if false {
  1647. } else {
  1648. z.F.EncMapStringInt64V(x.Msi64, e)
  1649. }
  1650. }
  1651. } else {
  1652. r.WriteMapElemKey()
  1653. if z.IsJSONHandle() {
  1654. z.WriteStr("\"Msi64\"")
  1655. } else {
  1656. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1657. }
  1658. r.WriteMapElemValue()
  1659. if x.Msi64 == nil {
  1660. r.EncodeNil()
  1661. } else {
  1662. if false {
  1663. } else {
  1664. z.F.EncMapStringInt64V(x.Msi64, e)
  1665. }
  1666. }
  1667. }
  1668. if yyr2 || yy2arr2 {
  1669. r.WriteArrayEnd()
  1670. } else {
  1671. r.WriteMapEnd()
  1672. }
  1673. }
  1674. }
  1675. }
  1676. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1677. var h codecSelfer19780
  1678. z, r := GenHelperDecoder(d)
  1679. _, _, _ = h, z, r
  1680. if false {
  1681. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1682. z.DecExtension(x, yyxt1)
  1683. } else {
  1684. yyct2 := r.ContainerType()
  1685. if yyct2 == codecSelferValueTypeMap19780 {
  1686. yyl2 := r.ReadMapStart()
  1687. if yyl2 == 0 {
  1688. r.ReadMapEnd()
  1689. } else {
  1690. x.codecDecodeSelfFromMap(yyl2, d)
  1691. }
  1692. } else if yyct2 == codecSelferValueTypeArray19780 {
  1693. yyl2 := r.ReadArrayStart()
  1694. if yyl2 == 0 {
  1695. r.ReadArrayEnd()
  1696. } else {
  1697. x.codecDecodeSelfFromArray(yyl2, d)
  1698. }
  1699. } else {
  1700. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1701. }
  1702. }
  1703. }
  1704. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1705. var h codecSelfer19780
  1706. z, r := GenHelperDecoder(d)
  1707. _, _, _ = h, z, r
  1708. var yyhl3 bool = l >= 0
  1709. for yyj3 := 0; ; yyj3++ {
  1710. if yyhl3 {
  1711. if yyj3 >= l {
  1712. break
  1713. }
  1714. } else {
  1715. if r.CheckBreak() {
  1716. break
  1717. }
  1718. }
  1719. r.ReadMapElemKey()
  1720. yys3 := z.StringView(r.DecodeStringAsBytes())
  1721. r.ReadMapElemValue()
  1722. switch yys3 {
  1723. case "S":
  1724. if r.TryDecodeAsNil() {
  1725. x.S = ""
  1726. } else {
  1727. x.S = (string)(r.DecodeString())
  1728. }
  1729. case "I64":
  1730. if r.TryDecodeAsNil() {
  1731. x.I64 = 0
  1732. } else {
  1733. x.I64 = (int64)(r.DecodeInt64())
  1734. }
  1735. case "I8":
  1736. if r.TryDecodeAsNil() {
  1737. x.I8 = 0
  1738. } else {
  1739. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1740. }
  1741. case "Ui64":
  1742. if r.TryDecodeAsNil() {
  1743. x.Ui64 = 0
  1744. } else {
  1745. x.Ui64 = (uint64)(r.DecodeUint64())
  1746. }
  1747. case "Ui8":
  1748. if r.TryDecodeAsNil() {
  1749. x.Ui8 = 0
  1750. } else {
  1751. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1752. }
  1753. case "F64":
  1754. if r.TryDecodeAsNil() {
  1755. x.F64 = 0
  1756. } else {
  1757. x.F64 = (float64)(r.DecodeFloat64())
  1758. }
  1759. case "F32":
  1760. if r.TryDecodeAsNil() {
  1761. x.F32 = 0
  1762. } else {
  1763. x.F32 = (float32)(r.DecodeFloat32As64())
  1764. }
  1765. case "B":
  1766. if r.TryDecodeAsNil() {
  1767. x.B = false
  1768. } else {
  1769. x.B = (bool)(r.DecodeBool())
  1770. }
  1771. case "Sslice":
  1772. if r.TryDecodeAsNil() {
  1773. x.Sslice = nil
  1774. } else {
  1775. if false {
  1776. } else {
  1777. z.F.DecSliceStringX(&x.Sslice, d)
  1778. }
  1779. }
  1780. case "I16slice":
  1781. if r.TryDecodeAsNil() {
  1782. x.I16slice = nil
  1783. } else {
  1784. if false {
  1785. } else {
  1786. z.F.DecSliceInt16X(&x.I16slice, d)
  1787. }
  1788. }
  1789. case "Ui64slice":
  1790. if r.TryDecodeAsNil() {
  1791. x.Ui64slice = nil
  1792. } else {
  1793. if false {
  1794. } else {
  1795. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1796. }
  1797. }
  1798. case "Ui8slice":
  1799. if r.TryDecodeAsNil() {
  1800. x.Ui8slice = nil
  1801. } else {
  1802. if false {
  1803. } else {
  1804. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1805. }
  1806. }
  1807. case "Bslice":
  1808. if r.TryDecodeAsNil() {
  1809. x.Bslice = nil
  1810. } else {
  1811. if false {
  1812. } else {
  1813. z.F.DecSliceBoolX(&x.Bslice, d)
  1814. }
  1815. }
  1816. case "Iptrslice":
  1817. if r.TryDecodeAsNil() {
  1818. x.Iptrslice = nil
  1819. } else {
  1820. if false {
  1821. } else {
  1822. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1823. }
  1824. }
  1825. case "WrapSliceInt64":
  1826. if r.TryDecodeAsNil() {
  1827. x.WrapSliceInt64 = nil
  1828. } else {
  1829. x.WrapSliceInt64.CodecDecodeSelf(d)
  1830. }
  1831. case "WrapSliceString":
  1832. if r.TryDecodeAsNil() {
  1833. x.WrapSliceString = nil
  1834. } else {
  1835. x.WrapSliceString.CodecDecodeSelf(d)
  1836. }
  1837. case "Msi64":
  1838. if r.TryDecodeAsNil() {
  1839. x.Msi64 = nil
  1840. } else {
  1841. if false {
  1842. } else {
  1843. z.F.DecMapStringInt64X(&x.Msi64, d)
  1844. }
  1845. }
  1846. default:
  1847. z.DecStructFieldNotFound(-1, yys3)
  1848. } // end switch yys3
  1849. } // end for yyj3
  1850. r.ReadMapEnd()
  1851. }
  1852. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1853. var h codecSelfer19780
  1854. z, r := GenHelperDecoder(d)
  1855. _, _, _ = h, z, r
  1856. var yyj28 int
  1857. var yyb28 bool
  1858. var yyhl28 bool = l >= 0
  1859. yyj28++
  1860. if yyhl28 {
  1861. yyb28 = yyj28 > l
  1862. } else {
  1863. yyb28 = r.CheckBreak()
  1864. }
  1865. if yyb28 {
  1866. r.ReadArrayEnd()
  1867. return
  1868. }
  1869. r.ReadArrayElem()
  1870. if r.TryDecodeAsNil() {
  1871. x.S = ""
  1872. } else {
  1873. x.S = (string)(r.DecodeString())
  1874. }
  1875. yyj28++
  1876. if yyhl28 {
  1877. yyb28 = yyj28 > l
  1878. } else {
  1879. yyb28 = r.CheckBreak()
  1880. }
  1881. if yyb28 {
  1882. r.ReadArrayEnd()
  1883. return
  1884. }
  1885. r.ReadArrayElem()
  1886. if r.TryDecodeAsNil() {
  1887. x.I64 = 0
  1888. } else {
  1889. x.I64 = (int64)(r.DecodeInt64())
  1890. }
  1891. yyj28++
  1892. if yyhl28 {
  1893. yyb28 = yyj28 > l
  1894. } else {
  1895. yyb28 = r.CheckBreak()
  1896. }
  1897. if yyb28 {
  1898. r.ReadArrayEnd()
  1899. return
  1900. }
  1901. r.ReadArrayElem()
  1902. if r.TryDecodeAsNil() {
  1903. x.I8 = 0
  1904. } else {
  1905. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1906. }
  1907. yyj28++
  1908. if yyhl28 {
  1909. yyb28 = yyj28 > l
  1910. } else {
  1911. yyb28 = r.CheckBreak()
  1912. }
  1913. if yyb28 {
  1914. r.ReadArrayEnd()
  1915. return
  1916. }
  1917. r.ReadArrayElem()
  1918. if r.TryDecodeAsNil() {
  1919. x.Ui64 = 0
  1920. } else {
  1921. x.Ui64 = (uint64)(r.DecodeUint64())
  1922. }
  1923. yyj28++
  1924. if yyhl28 {
  1925. yyb28 = yyj28 > l
  1926. } else {
  1927. yyb28 = r.CheckBreak()
  1928. }
  1929. if yyb28 {
  1930. r.ReadArrayEnd()
  1931. return
  1932. }
  1933. r.ReadArrayElem()
  1934. if r.TryDecodeAsNil() {
  1935. x.Ui8 = 0
  1936. } else {
  1937. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1938. }
  1939. yyj28++
  1940. if yyhl28 {
  1941. yyb28 = yyj28 > l
  1942. } else {
  1943. yyb28 = r.CheckBreak()
  1944. }
  1945. if yyb28 {
  1946. r.ReadArrayEnd()
  1947. return
  1948. }
  1949. r.ReadArrayElem()
  1950. if r.TryDecodeAsNil() {
  1951. x.F64 = 0
  1952. } else {
  1953. x.F64 = (float64)(r.DecodeFloat64())
  1954. }
  1955. yyj28++
  1956. if yyhl28 {
  1957. yyb28 = yyj28 > l
  1958. } else {
  1959. yyb28 = r.CheckBreak()
  1960. }
  1961. if yyb28 {
  1962. r.ReadArrayEnd()
  1963. return
  1964. }
  1965. r.ReadArrayElem()
  1966. if r.TryDecodeAsNil() {
  1967. x.F32 = 0
  1968. } else {
  1969. x.F32 = (float32)(r.DecodeFloat32As64())
  1970. }
  1971. yyj28++
  1972. if yyhl28 {
  1973. yyb28 = yyj28 > l
  1974. } else {
  1975. yyb28 = r.CheckBreak()
  1976. }
  1977. if yyb28 {
  1978. r.ReadArrayEnd()
  1979. return
  1980. }
  1981. r.ReadArrayElem()
  1982. if r.TryDecodeAsNil() {
  1983. x.B = false
  1984. } else {
  1985. x.B = (bool)(r.DecodeBool())
  1986. }
  1987. yyj28++
  1988. if yyhl28 {
  1989. yyb28 = yyj28 > l
  1990. } else {
  1991. yyb28 = r.CheckBreak()
  1992. }
  1993. if yyb28 {
  1994. r.ReadArrayEnd()
  1995. return
  1996. }
  1997. r.ReadArrayElem()
  1998. if r.TryDecodeAsNil() {
  1999. x.Sslice = nil
  2000. } else {
  2001. if false {
  2002. } else {
  2003. z.F.DecSliceStringX(&x.Sslice, d)
  2004. }
  2005. }
  2006. yyj28++
  2007. if yyhl28 {
  2008. yyb28 = yyj28 > l
  2009. } else {
  2010. yyb28 = r.CheckBreak()
  2011. }
  2012. if yyb28 {
  2013. r.ReadArrayEnd()
  2014. return
  2015. }
  2016. r.ReadArrayElem()
  2017. if r.TryDecodeAsNil() {
  2018. x.I16slice = nil
  2019. } else {
  2020. if false {
  2021. } else {
  2022. z.F.DecSliceInt16X(&x.I16slice, d)
  2023. }
  2024. }
  2025. yyj28++
  2026. if yyhl28 {
  2027. yyb28 = yyj28 > l
  2028. } else {
  2029. yyb28 = r.CheckBreak()
  2030. }
  2031. if yyb28 {
  2032. r.ReadArrayEnd()
  2033. return
  2034. }
  2035. r.ReadArrayElem()
  2036. if r.TryDecodeAsNil() {
  2037. x.Ui64slice = nil
  2038. } else {
  2039. if false {
  2040. } else {
  2041. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2042. }
  2043. }
  2044. yyj28++
  2045. if yyhl28 {
  2046. yyb28 = yyj28 > l
  2047. } else {
  2048. yyb28 = r.CheckBreak()
  2049. }
  2050. if yyb28 {
  2051. r.ReadArrayEnd()
  2052. return
  2053. }
  2054. r.ReadArrayElem()
  2055. if r.TryDecodeAsNil() {
  2056. x.Ui8slice = nil
  2057. } else {
  2058. if false {
  2059. } else {
  2060. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2061. }
  2062. }
  2063. yyj28++
  2064. if yyhl28 {
  2065. yyb28 = yyj28 > l
  2066. } else {
  2067. yyb28 = r.CheckBreak()
  2068. }
  2069. if yyb28 {
  2070. r.ReadArrayEnd()
  2071. return
  2072. }
  2073. r.ReadArrayElem()
  2074. if r.TryDecodeAsNil() {
  2075. x.Bslice = nil
  2076. } else {
  2077. if false {
  2078. } else {
  2079. z.F.DecSliceBoolX(&x.Bslice, d)
  2080. }
  2081. }
  2082. yyj28++
  2083. if yyhl28 {
  2084. yyb28 = yyj28 > l
  2085. } else {
  2086. yyb28 = r.CheckBreak()
  2087. }
  2088. if yyb28 {
  2089. r.ReadArrayEnd()
  2090. return
  2091. }
  2092. r.ReadArrayElem()
  2093. if r.TryDecodeAsNil() {
  2094. x.Iptrslice = nil
  2095. } else {
  2096. if false {
  2097. } else {
  2098. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2099. }
  2100. }
  2101. yyj28++
  2102. if yyhl28 {
  2103. yyb28 = yyj28 > l
  2104. } else {
  2105. yyb28 = r.CheckBreak()
  2106. }
  2107. if yyb28 {
  2108. r.ReadArrayEnd()
  2109. return
  2110. }
  2111. r.ReadArrayElem()
  2112. if r.TryDecodeAsNil() {
  2113. x.WrapSliceInt64 = nil
  2114. } else {
  2115. x.WrapSliceInt64.CodecDecodeSelf(d)
  2116. }
  2117. yyj28++
  2118. if yyhl28 {
  2119. yyb28 = yyj28 > l
  2120. } else {
  2121. yyb28 = r.CheckBreak()
  2122. }
  2123. if yyb28 {
  2124. r.ReadArrayEnd()
  2125. return
  2126. }
  2127. r.ReadArrayElem()
  2128. if r.TryDecodeAsNil() {
  2129. x.WrapSliceString = nil
  2130. } else {
  2131. x.WrapSliceString.CodecDecodeSelf(d)
  2132. }
  2133. yyj28++
  2134. if yyhl28 {
  2135. yyb28 = yyj28 > l
  2136. } else {
  2137. yyb28 = r.CheckBreak()
  2138. }
  2139. if yyb28 {
  2140. r.ReadArrayEnd()
  2141. return
  2142. }
  2143. r.ReadArrayElem()
  2144. if r.TryDecodeAsNil() {
  2145. x.Msi64 = nil
  2146. } else {
  2147. if false {
  2148. } else {
  2149. z.F.DecMapStringInt64X(&x.Msi64, d)
  2150. }
  2151. }
  2152. for {
  2153. yyj28++
  2154. if yyhl28 {
  2155. yyb28 = yyj28 > l
  2156. } else {
  2157. yyb28 = r.CheckBreak()
  2158. }
  2159. if yyb28 {
  2160. break
  2161. }
  2162. r.ReadArrayElem()
  2163. z.DecStructFieldNotFound(yyj28-1, "")
  2164. }
  2165. r.ReadArrayEnd()
  2166. }
  2167. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  2168. var h codecSelfer19780
  2169. z, r := GenHelperEncoder(e)
  2170. _, _, _ = h, z, r
  2171. if x == nil {
  2172. r.EncodeNil()
  2173. } else {
  2174. if false {
  2175. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  2176. z.EncExtension(x, yyxt1)
  2177. } else {
  2178. yysep2 := !z.EncBinary()
  2179. yy2arr2 := z.EncBasicHandle().StructToArray
  2180. _, _ = yysep2, yy2arr2
  2181. const yyr2 bool = false // struct tag has 'toArray'
  2182. if yyr2 || yy2arr2 {
  2183. r.WriteArrayStart(49)
  2184. } else {
  2185. r.WriteMapStart(49)
  2186. }
  2187. if yyr2 || yy2arr2 {
  2188. r.WriteArrayElem()
  2189. if false {
  2190. } else {
  2191. if z.EncBasicHandle().StringToRaw {
  2192. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2193. } else {
  2194. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2195. }
  2196. }
  2197. } else {
  2198. r.WriteMapElemKey()
  2199. if z.IsJSONHandle() {
  2200. z.WriteStr("\"S\"")
  2201. } else {
  2202. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  2203. }
  2204. r.WriteMapElemValue()
  2205. if false {
  2206. } else {
  2207. if z.EncBasicHandle().StringToRaw {
  2208. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2209. } else {
  2210. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2211. }
  2212. }
  2213. }
  2214. if yyr2 || yy2arr2 {
  2215. r.WriteArrayElem()
  2216. if false {
  2217. } else {
  2218. r.EncodeInt(int64(x.I64))
  2219. }
  2220. } else {
  2221. r.WriteMapElemKey()
  2222. if z.IsJSONHandle() {
  2223. z.WriteStr("\"I64\"")
  2224. } else {
  2225. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  2226. }
  2227. r.WriteMapElemValue()
  2228. if false {
  2229. } else {
  2230. r.EncodeInt(int64(x.I64))
  2231. }
  2232. }
  2233. if yyr2 || yy2arr2 {
  2234. r.WriteArrayElem()
  2235. if false {
  2236. } else {
  2237. r.EncodeInt(int64(x.I32))
  2238. }
  2239. } else {
  2240. r.WriteMapElemKey()
  2241. if z.IsJSONHandle() {
  2242. z.WriteStr("\"I32\"")
  2243. } else {
  2244. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  2245. }
  2246. r.WriteMapElemValue()
  2247. if false {
  2248. } else {
  2249. r.EncodeInt(int64(x.I32))
  2250. }
  2251. }
  2252. if yyr2 || yy2arr2 {
  2253. r.WriteArrayElem()
  2254. if false {
  2255. } else {
  2256. r.EncodeInt(int64(x.I16))
  2257. }
  2258. } else {
  2259. r.WriteMapElemKey()
  2260. if z.IsJSONHandle() {
  2261. z.WriteStr("\"I16\"")
  2262. } else {
  2263. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  2264. }
  2265. r.WriteMapElemValue()
  2266. if false {
  2267. } else {
  2268. r.EncodeInt(int64(x.I16))
  2269. }
  2270. }
  2271. if yyr2 || yy2arr2 {
  2272. r.WriteArrayElem()
  2273. if false {
  2274. } else {
  2275. r.EncodeInt(int64(x.I8))
  2276. }
  2277. } else {
  2278. r.WriteMapElemKey()
  2279. if z.IsJSONHandle() {
  2280. z.WriteStr("\"I8\"")
  2281. } else {
  2282. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  2283. }
  2284. r.WriteMapElemValue()
  2285. if false {
  2286. } else {
  2287. r.EncodeInt(int64(x.I8))
  2288. }
  2289. }
  2290. if yyr2 || yy2arr2 {
  2291. r.WriteArrayElem()
  2292. if false {
  2293. } else {
  2294. r.EncodeInt(int64(x.I64n))
  2295. }
  2296. } else {
  2297. r.WriteMapElemKey()
  2298. if z.IsJSONHandle() {
  2299. z.WriteStr("\"I64n\"")
  2300. } else {
  2301. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  2302. }
  2303. r.WriteMapElemValue()
  2304. if false {
  2305. } else {
  2306. r.EncodeInt(int64(x.I64n))
  2307. }
  2308. }
  2309. if yyr2 || yy2arr2 {
  2310. r.WriteArrayElem()
  2311. if false {
  2312. } else {
  2313. r.EncodeInt(int64(x.I32n))
  2314. }
  2315. } else {
  2316. r.WriteMapElemKey()
  2317. if z.IsJSONHandle() {
  2318. z.WriteStr("\"I32n\"")
  2319. } else {
  2320. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  2321. }
  2322. r.WriteMapElemValue()
  2323. if false {
  2324. } else {
  2325. r.EncodeInt(int64(x.I32n))
  2326. }
  2327. }
  2328. if yyr2 || yy2arr2 {
  2329. r.WriteArrayElem()
  2330. if false {
  2331. } else {
  2332. r.EncodeInt(int64(x.I16n))
  2333. }
  2334. } else {
  2335. r.WriteMapElemKey()
  2336. if z.IsJSONHandle() {
  2337. z.WriteStr("\"I16n\"")
  2338. } else {
  2339. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  2340. }
  2341. r.WriteMapElemValue()
  2342. if false {
  2343. } else {
  2344. r.EncodeInt(int64(x.I16n))
  2345. }
  2346. }
  2347. if yyr2 || yy2arr2 {
  2348. r.WriteArrayElem()
  2349. if false {
  2350. } else {
  2351. r.EncodeInt(int64(x.I8n))
  2352. }
  2353. } else {
  2354. r.WriteMapElemKey()
  2355. if z.IsJSONHandle() {
  2356. z.WriteStr("\"I8n\"")
  2357. } else {
  2358. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  2359. }
  2360. r.WriteMapElemValue()
  2361. if false {
  2362. } else {
  2363. r.EncodeInt(int64(x.I8n))
  2364. }
  2365. }
  2366. if yyr2 || yy2arr2 {
  2367. r.WriteArrayElem()
  2368. if false {
  2369. } else {
  2370. r.EncodeUint(uint64(x.Ui64))
  2371. }
  2372. } else {
  2373. r.WriteMapElemKey()
  2374. if z.IsJSONHandle() {
  2375. z.WriteStr("\"Ui64\"")
  2376. } else {
  2377. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  2378. }
  2379. r.WriteMapElemValue()
  2380. if false {
  2381. } else {
  2382. r.EncodeUint(uint64(x.Ui64))
  2383. }
  2384. }
  2385. if yyr2 || yy2arr2 {
  2386. r.WriteArrayElem()
  2387. if false {
  2388. } else {
  2389. r.EncodeUint(uint64(x.Ui32))
  2390. }
  2391. } else {
  2392. r.WriteMapElemKey()
  2393. if z.IsJSONHandle() {
  2394. z.WriteStr("\"Ui32\"")
  2395. } else {
  2396. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  2397. }
  2398. r.WriteMapElemValue()
  2399. if false {
  2400. } else {
  2401. r.EncodeUint(uint64(x.Ui32))
  2402. }
  2403. }
  2404. if yyr2 || yy2arr2 {
  2405. r.WriteArrayElem()
  2406. if false {
  2407. } else {
  2408. r.EncodeUint(uint64(x.Ui16))
  2409. }
  2410. } else {
  2411. r.WriteMapElemKey()
  2412. if z.IsJSONHandle() {
  2413. z.WriteStr("\"Ui16\"")
  2414. } else {
  2415. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  2416. }
  2417. r.WriteMapElemValue()
  2418. if false {
  2419. } else {
  2420. r.EncodeUint(uint64(x.Ui16))
  2421. }
  2422. }
  2423. if yyr2 || yy2arr2 {
  2424. r.WriteArrayElem()
  2425. if false {
  2426. } else {
  2427. r.EncodeUint(uint64(x.Ui8))
  2428. }
  2429. } else {
  2430. r.WriteMapElemKey()
  2431. if z.IsJSONHandle() {
  2432. z.WriteStr("\"Ui8\"")
  2433. } else {
  2434. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  2435. }
  2436. r.WriteMapElemValue()
  2437. if false {
  2438. } else {
  2439. r.EncodeUint(uint64(x.Ui8))
  2440. }
  2441. }
  2442. if yyr2 || yy2arr2 {
  2443. r.WriteArrayElem()
  2444. if false {
  2445. } else {
  2446. r.EncodeFloat64(float64(x.F64))
  2447. }
  2448. } else {
  2449. r.WriteMapElemKey()
  2450. if z.IsJSONHandle() {
  2451. z.WriteStr("\"F64\"")
  2452. } else {
  2453. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  2454. }
  2455. r.WriteMapElemValue()
  2456. if false {
  2457. } else {
  2458. r.EncodeFloat64(float64(x.F64))
  2459. }
  2460. }
  2461. if yyr2 || yy2arr2 {
  2462. r.WriteArrayElem()
  2463. if false {
  2464. } else {
  2465. r.EncodeFloat32(float32(x.F32))
  2466. }
  2467. } else {
  2468. r.WriteMapElemKey()
  2469. if z.IsJSONHandle() {
  2470. z.WriteStr("\"F32\"")
  2471. } else {
  2472. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  2473. }
  2474. r.WriteMapElemValue()
  2475. if false {
  2476. } else {
  2477. r.EncodeFloat32(float32(x.F32))
  2478. }
  2479. }
  2480. if yyr2 || yy2arr2 {
  2481. r.WriteArrayElem()
  2482. if false {
  2483. } else {
  2484. r.EncodeBool(bool(x.B))
  2485. }
  2486. } else {
  2487. r.WriteMapElemKey()
  2488. if z.IsJSONHandle() {
  2489. z.WriteStr("\"B\"")
  2490. } else {
  2491. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  2492. }
  2493. r.WriteMapElemValue()
  2494. if false {
  2495. } else {
  2496. r.EncodeBool(bool(x.B))
  2497. }
  2498. }
  2499. if yyr2 || yy2arr2 {
  2500. r.WriteArrayElem()
  2501. if false {
  2502. } else {
  2503. r.EncodeUint(uint64(x.By))
  2504. }
  2505. } else {
  2506. r.WriteMapElemKey()
  2507. if z.IsJSONHandle() {
  2508. z.WriteStr("\"By\"")
  2509. } else {
  2510. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  2511. }
  2512. r.WriteMapElemValue()
  2513. if false {
  2514. } else {
  2515. r.EncodeUint(uint64(x.By))
  2516. }
  2517. }
  2518. if yyr2 || yy2arr2 {
  2519. r.WriteArrayElem()
  2520. if x.Sslice == nil {
  2521. r.EncodeNil()
  2522. } else {
  2523. if false {
  2524. } else {
  2525. z.F.EncSliceStringV(x.Sslice, e)
  2526. }
  2527. }
  2528. } else {
  2529. r.WriteMapElemKey()
  2530. if z.IsJSONHandle() {
  2531. z.WriteStr("\"Sslice\"")
  2532. } else {
  2533. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  2534. }
  2535. r.WriteMapElemValue()
  2536. if x.Sslice == nil {
  2537. r.EncodeNil()
  2538. } else {
  2539. if false {
  2540. } else {
  2541. z.F.EncSliceStringV(x.Sslice, e)
  2542. }
  2543. }
  2544. }
  2545. if yyr2 || yy2arr2 {
  2546. r.WriteArrayElem()
  2547. if x.I64slice == nil {
  2548. r.EncodeNil()
  2549. } else {
  2550. if false {
  2551. } else {
  2552. z.F.EncSliceInt64V(x.I64slice, e)
  2553. }
  2554. }
  2555. } else {
  2556. r.WriteMapElemKey()
  2557. if z.IsJSONHandle() {
  2558. z.WriteStr("\"I64slice\"")
  2559. } else {
  2560. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  2561. }
  2562. r.WriteMapElemValue()
  2563. if x.I64slice == nil {
  2564. r.EncodeNil()
  2565. } else {
  2566. if false {
  2567. } else {
  2568. z.F.EncSliceInt64V(x.I64slice, e)
  2569. }
  2570. }
  2571. }
  2572. if yyr2 || yy2arr2 {
  2573. r.WriteArrayElem()
  2574. if x.I16slice == nil {
  2575. r.EncodeNil()
  2576. } else {
  2577. if false {
  2578. } else {
  2579. z.F.EncSliceInt16V(x.I16slice, e)
  2580. }
  2581. }
  2582. } else {
  2583. r.WriteMapElemKey()
  2584. if z.IsJSONHandle() {
  2585. z.WriteStr("\"I16slice\"")
  2586. } else {
  2587. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  2588. }
  2589. r.WriteMapElemValue()
  2590. if x.I16slice == nil {
  2591. r.EncodeNil()
  2592. } else {
  2593. if false {
  2594. } else {
  2595. z.F.EncSliceInt16V(x.I16slice, e)
  2596. }
  2597. }
  2598. }
  2599. if yyr2 || yy2arr2 {
  2600. r.WriteArrayElem()
  2601. if x.Ui64slice == nil {
  2602. r.EncodeNil()
  2603. } else {
  2604. if false {
  2605. } else {
  2606. z.F.EncSliceUint64V(x.Ui64slice, e)
  2607. }
  2608. }
  2609. } else {
  2610. r.WriteMapElemKey()
  2611. if z.IsJSONHandle() {
  2612. z.WriteStr("\"Ui64slice\"")
  2613. } else {
  2614. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  2615. }
  2616. r.WriteMapElemValue()
  2617. if x.Ui64slice == nil {
  2618. r.EncodeNil()
  2619. } else {
  2620. if false {
  2621. } else {
  2622. z.F.EncSliceUint64V(x.Ui64slice, e)
  2623. }
  2624. }
  2625. }
  2626. if yyr2 || yy2arr2 {
  2627. r.WriteArrayElem()
  2628. if x.Ui8slice == nil {
  2629. r.EncodeNil()
  2630. } else {
  2631. if false {
  2632. } else {
  2633. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2634. }
  2635. }
  2636. } else {
  2637. r.WriteMapElemKey()
  2638. if z.IsJSONHandle() {
  2639. z.WriteStr("\"Ui8slice\"")
  2640. } else {
  2641. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  2642. }
  2643. r.WriteMapElemValue()
  2644. if x.Ui8slice == nil {
  2645. r.EncodeNil()
  2646. } else {
  2647. if false {
  2648. } else {
  2649. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2650. }
  2651. }
  2652. }
  2653. if yyr2 || yy2arr2 {
  2654. r.WriteArrayElem()
  2655. if x.Bslice == nil {
  2656. r.EncodeNil()
  2657. } else {
  2658. if false {
  2659. } else {
  2660. z.F.EncSliceBoolV(x.Bslice, e)
  2661. }
  2662. }
  2663. } else {
  2664. r.WriteMapElemKey()
  2665. if z.IsJSONHandle() {
  2666. z.WriteStr("\"Bslice\"")
  2667. } else {
  2668. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  2669. }
  2670. r.WriteMapElemValue()
  2671. if x.Bslice == nil {
  2672. r.EncodeNil()
  2673. } else {
  2674. if false {
  2675. } else {
  2676. z.F.EncSliceBoolV(x.Bslice, e)
  2677. }
  2678. }
  2679. }
  2680. if yyr2 || yy2arr2 {
  2681. r.WriteArrayElem()
  2682. if x.Byslice == nil {
  2683. r.EncodeNil()
  2684. } else {
  2685. if false {
  2686. } else {
  2687. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2688. }
  2689. }
  2690. } else {
  2691. r.WriteMapElemKey()
  2692. if z.IsJSONHandle() {
  2693. z.WriteStr("\"Byslice\"")
  2694. } else {
  2695. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  2696. }
  2697. r.WriteMapElemValue()
  2698. if x.Byslice == nil {
  2699. r.EncodeNil()
  2700. } else {
  2701. if false {
  2702. } else {
  2703. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2704. }
  2705. }
  2706. }
  2707. if yyr2 || yy2arr2 {
  2708. r.WriteArrayElem()
  2709. if x.Iptrslice == nil {
  2710. r.EncodeNil()
  2711. } else {
  2712. if false {
  2713. } else {
  2714. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2715. }
  2716. }
  2717. } else {
  2718. r.WriteMapElemKey()
  2719. if z.IsJSONHandle() {
  2720. z.WriteStr("\"Iptrslice\"")
  2721. } else {
  2722. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  2723. }
  2724. r.WriteMapElemValue()
  2725. if x.Iptrslice == nil {
  2726. r.EncodeNil()
  2727. } else {
  2728. if false {
  2729. } else {
  2730. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2731. }
  2732. }
  2733. }
  2734. if yyr2 || yy2arr2 {
  2735. r.WriteArrayElem()
  2736. if x.WrapSliceInt64 == nil {
  2737. r.EncodeNil()
  2738. } else {
  2739. x.WrapSliceInt64.CodecEncodeSelf(e)
  2740. }
  2741. } else {
  2742. r.WriteMapElemKey()
  2743. if z.IsJSONHandle() {
  2744. z.WriteStr("\"WrapSliceInt64\"")
  2745. } else {
  2746. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  2747. }
  2748. r.WriteMapElemValue()
  2749. if x.WrapSliceInt64 == nil {
  2750. r.EncodeNil()
  2751. } else {
  2752. x.WrapSliceInt64.CodecEncodeSelf(e)
  2753. }
  2754. }
  2755. if yyr2 || yy2arr2 {
  2756. r.WriteArrayElem()
  2757. if x.WrapSliceString == nil {
  2758. r.EncodeNil()
  2759. } else {
  2760. x.WrapSliceString.CodecEncodeSelf(e)
  2761. }
  2762. } else {
  2763. r.WriteMapElemKey()
  2764. if z.IsJSONHandle() {
  2765. z.WriteStr("\"WrapSliceString\"")
  2766. } else {
  2767. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  2768. }
  2769. r.WriteMapElemValue()
  2770. if x.WrapSliceString == nil {
  2771. r.EncodeNil()
  2772. } else {
  2773. x.WrapSliceString.CodecEncodeSelf(e)
  2774. }
  2775. }
  2776. if yyr2 || yy2arr2 {
  2777. r.WriteArrayElem()
  2778. if x.Msi64 == nil {
  2779. r.EncodeNil()
  2780. } else {
  2781. if false {
  2782. } else {
  2783. z.F.EncMapStringInt64V(x.Msi64, e)
  2784. }
  2785. }
  2786. } else {
  2787. r.WriteMapElemKey()
  2788. if z.IsJSONHandle() {
  2789. z.WriteStr("\"Msi64\"")
  2790. } else {
  2791. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  2792. }
  2793. r.WriteMapElemValue()
  2794. if x.Msi64 == nil {
  2795. r.EncodeNil()
  2796. } else {
  2797. if false {
  2798. } else {
  2799. z.F.EncMapStringInt64V(x.Msi64, e)
  2800. }
  2801. }
  2802. }
  2803. if yyr2 || yy2arr2 {
  2804. r.WriteArrayElem()
  2805. yy88 := &x.Simplef
  2806. yy88.CodecEncodeSelf(e)
  2807. } else {
  2808. r.WriteMapElemKey()
  2809. if z.IsJSONHandle() {
  2810. z.WriteStr("\"Simplef\"")
  2811. } else {
  2812. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  2813. }
  2814. r.WriteMapElemValue()
  2815. yy90 := &x.Simplef
  2816. yy90.CodecEncodeSelf(e)
  2817. }
  2818. if yyr2 || yy2arr2 {
  2819. r.WriteArrayElem()
  2820. if x.SstrUi64T == nil {
  2821. r.EncodeNil()
  2822. } else {
  2823. if false {
  2824. } else {
  2825. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2826. }
  2827. }
  2828. } else {
  2829. r.WriteMapElemKey()
  2830. if z.IsJSONHandle() {
  2831. z.WriteStr("\"SstrUi64T\"")
  2832. } else {
  2833. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  2834. }
  2835. r.WriteMapElemValue()
  2836. if x.SstrUi64T == nil {
  2837. r.EncodeNil()
  2838. } else {
  2839. if false {
  2840. } else {
  2841. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2842. }
  2843. }
  2844. }
  2845. if yyr2 || yy2arr2 {
  2846. r.WriteArrayElem()
  2847. if false {
  2848. } else {
  2849. if z.EncBasicHandle().StringToRaw {
  2850. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  2851. } else {
  2852. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  2853. }
  2854. }
  2855. } else {
  2856. r.WriteMapElemKey()
  2857. if z.IsJSONHandle() {
  2858. z.WriteStr("\"AS\"")
  2859. } else {
  2860. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  2861. }
  2862. r.WriteMapElemValue()
  2863. if false {
  2864. } else {
  2865. if z.EncBasicHandle().StringToRaw {
  2866. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  2867. } else {
  2868. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  2869. }
  2870. }
  2871. }
  2872. if yyr2 || yy2arr2 {
  2873. r.WriteArrayElem()
  2874. if false {
  2875. } else {
  2876. r.EncodeInt(int64(x.AI64))
  2877. }
  2878. } else {
  2879. r.WriteMapElemKey()
  2880. if z.IsJSONHandle() {
  2881. z.WriteStr("\"AI64\"")
  2882. } else {
  2883. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  2884. }
  2885. r.WriteMapElemValue()
  2886. if false {
  2887. } else {
  2888. r.EncodeInt(int64(x.AI64))
  2889. }
  2890. }
  2891. if yyr2 || yy2arr2 {
  2892. r.WriteArrayElem()
  2893. if false {
  2894. } else {
  2895. r.EncodeInt(int64(x.AI16))
  2896. }
  2897. } else {
  2898. r.WriteMapElemKey()
  2899. if z.IsJSONHandle() {
  2900. z.WriteStr("\"AI16\"")
  2901. } else {
  2902. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  2903. }
  2904. r.WriteMapElemValue()
  2905. if false {
  2906. } else {
  2907. r.EncodeInt(int64(x.AI16))
  2908. }
  2909. }
  2910. if yyr2 || yy2arr2 {
  2911. r.WriteArrayElem()
  2912. if false {
  2913. } else {
  2914. r.EncodeUint(uint64(x.AUi64))
  2915. }
  2916. } else {
  2917. r.WriteMapElemKey()
  2918. if z.IsJSONHandle() {
  2919. z.WriteStr("\"AUi64\"")
  2920. } else {
  2921. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  2922. }
  2923. r.WriteMapElemValue()
  2924. if false {
  2925. } else {
  2926. r.EncodeUint(uint64(x.AUi64))
  2927. }
  2928. }
  2929. if yyr2 || yy2arr2 {
  2930. r.WriteArrayElem()
  2931. if x.ASslice == nil {
  2932. r.EncodeNil()
  2933. } else {
  2934. if false {
  2935. } else {
  2936. z.F.EncSliceStringV(x.ASslice, e)
  2937. }
  2938. }
  2939. } else {
  2940. r.WriteMapElemKey()
  2941. if z.IsJSONHandle() {
  2942. z.WriteStr("\"ASslice\"")
  2943. } else {
  2944. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  2945. }
  2946. r.WriteMapElemValue()
  2947. if x.ASslice == nil {
  2948. r.EncodeNil()
  2949. } else {
  2950. if false {
  2951. } else {
  2952. z.F.EncSliceStringV(x.ASslice, e)
  2953. }
  2954. }
  2955. }
  2956. if yyr2 || yy2arr2 {
  2957. r.WriteArrayElem()
  2958. if x.AI64slice == nil {
  2959. r.EncodeNil()
  2960. } else {
  2961. if false {
  2962. } else {
  2963. z.F.EncSliceInt64V(x.AI64slice, e)
  2964. }
  2965. }
  2966. } else {
  2967. r.WriteMapElemKey()
  2968. if z.IsJSONHandle() {
  2969. z.WriteStr("\"AI64slice\"")
  2970. } else {
  2971. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  2972. }
  2973. r.WriteMapElemValue()
  2974. if x.AI64slice == nil {
  2975. r.EncodeNil()
  2976. } else {
  2977. if false {
  2978. } else {
  2979. z.F.EncSliceInt64V(x.AI64slice, e)
  2980. }
  2981. }
  2982. }
  2983. if yyr2 || yy2arr2 {
  2984. r.WriteArrayElem()
  2985. if x.AUi64slice == nil {
  2986. r.EncodeNil()
  2987. } else {
  2988. if false {
  2989. } else {
  2990. z.F.EncSliceUint64V(x.AUi64slice, e)
  2991. }
  2992. }
  2993. } else {
  2994. r.WriteMapElemKey()
  2995. if z.IsJSONHandle() {
  2996. z.WriteStr("\"AUi64slice\"")
  2997. } else {
  2998. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  2999. }
  3000. r.WriteMapElemValue()
  3001. if x.AUi64slice == nil {
  3002. r.EncodeNil()
  3003. } else {
  3004. if false {
  3005. } else {
  3006. z.F.EncSliceUint64V(x.AUi64slice, e)
  3007. }
  3008. }
  3009. }
  3010. if yyr2 || yy2arr2 {
  3011. r.WriteArrayElem()
  3012. if x.AF64slice == nil {
  3013. r.EncodeNil()
  3014. } else {
  3015. if false {
  3016. } else {
  3017. z.F.EncSliceFloat64V(x.AF64slice, e)
  3018. }
  3019. }
  3020. } else {
  3021. r.WriteMapElemKey()
  3022. if z.IsJSONHandle() {
  3023. z.WriteStr("\"AF64slice\"")
  3024. } else {
  3025. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3026. }
  3027. r.WriteMapElemValue()
  3028. if x.AF64slice == nil {
  3029. r.EncodeNil()
  3030. } else {
  3031. if false {
  3032. } else {
  3033. z.F.EncSliceFloat64V(x.AF64slice, e)
  3034. }
  3035. }
  3036. }
  3037. if yyr2 || yy2arr2 {
  3038. r.WriteArrayElem()
  3039. if x.AF32slice == nil {
  3040. r.EncodeNil()
  3041. } else {
  3042. if false {
  3043. } else {
  3044. z.F.EncSliceFloat32V(x.AF32slice, e)
  3045. }
  3046. }
  3047. } else {
  3048. r.WriteMapElemKey()
  3049. if z.IsJSONHandle() {
  3050. z.WriteStr("\"AF32slice\"")
  3051. } else {
  3052. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3053. }
  3054. r.WriteMapElemValue()
  3055. if x.AF32slice == nil {
  3056. r.EncodeNil()
  3057. } else {
  3058. if false {
  3059. } else {
  3060. z.F.EncSliceFloat32V(x.AF32slice, e)
  3061. }
  3062. }
  3063. }
  3064. if yyr2 || yy2arr2 {
  3065. r.WriteArrayElem()
  3066. if x.AMSU16 == nil {
  3067. r.EncodeNil()
  3068. } else {
  3069. if false {
  3070. } else {
  3071. z.F.EncMapStringUint16V(x.AMSU16, e)
  3072. }
  3073. }
  3074. } else {
  3075. r.WriteMapElemKey()
  3076. if z.IsJSONHandle() {
  3077. z.WriteStr("\"AMSU16\"")
  3078. } else {
  3079. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3080. }
  3081. r.WriteMapElemValue()
  3082. if x.AMSU16 == nil {
  3083. r.EncodeNil()
  3084. } else {
  3085. if false {
  3086. } else {
  3087. z.F.EncMapStringUint16V(x.AMSU16, e)
  3088. }
  3089. }
  3090. }
  3091. if yyr2 || yy2arr2 {
  3092. r.WriteArrayElem()
  3093. yy126 := &x.AI64arr0
  3094. if false {
  3095. } else {
  3096. h.encArray0int64((*[0]int64)(yy126), e)
  3097. }
  3098. } else {
  3099. r.WriteMapElemKey()
  3100. if z.IsJSONHandle() {
  3101. z.WriteStr("\"AI64arr0\"")
  3102. } else {
  3103. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3104. }
  3105. r.WriteMapElemValue()
  3106. yy128 := &x.AI64arr0
  3107. if false {
  3108. } else {
  3109. h.encArray0int64((*[0]int64)(yy128), e)
  3110. }
  3111. }
  3112. if yyr2 || yy2arr2 {
  3113. r.WriteArrayElem()
  3114. if x.A164slice0 == nil {
  3115. r.EncodeNil()
  3116. } else {
  3117. if false {
  3118. } else {
  3119. z.F.EncSliceInt64V(x.A164slice0, e)
  3120. }
  3121. }
  3122. } else {
  3123. r.WriteMapElemKey()
  3124. if z.IsJSONHandle() {
  3125. z.WriteStr("\"A164slice0\"")
  3126. } else {
  3127. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  3128. }
  3129. r.WriteMapElemValue()
  3130. if x.A164slice0 == nil {
  3131. r.EncodeNil()
  3132. } else {
  3133. if false {
  3134. } else {
  3135. z.F.EncSliceInt64V(x.A164slice0, e)
  3136. }
  3137. }
  3138. }
  3139. if yyr2 || yy2arr2 {
  3140. r.WriteArrayElem()
  3141. if x.AUi64sliceN == nil {
  3142. r.EncodeNil()
  3143. } else {
  3144. if false {
  3145. } else {
  3146. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  3147. }
  3148. }
  3149. } else {
  3150. r.WriteMapElemKey()
  3151. if z.IsJSONHandle() {
  3152. z.WriteStr("\"AUi64sliceN\"")
  3153. } else {
  3154. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3155. }
  3156. r.WriteMapElemValue()
  3157. if x.AUi64sliceN == nil {
  3158. r.EncodeNil()
  3159. } else {
  3160. if false {
  3161. } else {
  3162. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  3163. }
  3164. }
  3165. }
  3166. if yyr2 || yy2arr2 {
  3167. r.WriteArrayElem()
  3168. if x.AMSU16N == nil {
  3169. r.EncodeNil()
  3170. } else {
  3171. if false {
  3172. } else {
  3173. z.F.EncMapStringUint16V(x.AMSU16N, e)
  3174. }
  3175. }
  3176. } else {
  3177. r.WriteMapElemKey()
  3178. if z.IsJSONHandle() {
  3179. z.WriteStr("\"AMSU16N\"")
  3180. } else {
  3181. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3182. }
  3183. r.WriteMapElemValue()
  3184. if x.AMSU16N == nil {
  3185. r.EncodeNil()
  3186. } else {
  3187. if false {
  3188. } else {
  3189. z.F.EncMapStringUint16V(x.AMSU16N, e)
  3190. }
  3191. }
  3192. }
  3193. if yyr2 || yy2arr2 {
  3194. r.WriteArrayElem()
  3195. if x.AMSU16E == nil {
  3196. r.EncodeNil()
  3197. } else {
  3198. if false {
  3199. } else {
  3200. z.F.EncMapStringUint16V(x.AMSU16E, e)
  3201. }
  3202. }
  3203. } else {
  3204. r.WriteMapElemKey()
  3205. if z.IsJSONHandle() {
  3206. z.WriteStr("\"AMSU16E\"")
  3207. } else {
  3208. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3209. }
  3210. r.WriteMapElemValue()
  3211. if x.AMSU16E == nil {
  3212. r.EncodeNil()
  3213. } else {
  3214. if false {
  3215. } else {
  3216. z.F.EncMapStringUint16V(x.AMSU16E, e)
  3217. }
  3218. }
  3219. }
  3220. if yyr2 || yy2arr2 {
  3221. r.WriteArrayElem()
  3222. yy143 := &x.NotAnon
  3223. yy143.CodecEncodeSelf(e)
  3224. } else {
  3225. r.WriteMapElemKey()
  3226. if z.IsJSONHandle() {
  3227. z.WriteStr("\"NotAnon\"")
  3228. } else {
  3229. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3230. }
  3231. r.WriteMapElemValue()
  3232. yy145 := &x.NotAnon
  3233. yy145.CodecEncodeSelf(e)
  3234. }
  3235. if yyr2 || yy2arr2 {
  3236. r.WriteArrayElem()
  3237. if x.Nmap == nil {
  3238. r.EncodeNil()
  3239. } else {
  3240. if false {
  3241. } else {
  3242. z.F.EncMapStringBoolV(x.Nmap, e)
  3243. }
  3244. }
  3245. } else {
  3246. r.WriteMapElemKey()
  3247. if z.IsJSONHandle() {
  3248. z.WriteStr("\"Nmap\"")
  3249. } else {
  3250. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3251. }
  3252. r.WriteMapElemValue()
  3253. if x.Nmap == nil {
  3254. r.EncodeNil()
  3255. } else {
  3256. if false {
  3257. } else {
  3258. z.F.EncMapStringBoolV(x.Nmap, e)
  3259. }
  3260. }
  3261. }
  3262. if yyr2 || yy2arr2 {
  3263. r.WriteArrayElem()
  3264. if x.Nslice == nil {
  3265. r.EncodeNil()
  3266. } else {
  3267. if false {
  3268. } else {
  3269. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3270. }
  3271. }
  3272. } else {
  3273. r.WriteMapElemKey()
  3274. if z.IsJSONHandle() {
  3275. z.WriteStr("\"Nslice\"")
  3276. } else {
  3277. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3278. }
  3279. r.WriteMapElemValue()
  3280. if x.Nslice == nil {
  3281. r.EncodeNil()
  3282. } else {
  3283. if false {
  3284. } else {
  3285. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3286. }
  3287. }
  3288. }
  3289. var yyn153 bool
  3290. if x.Nint64 == nil {
  3291. yyn153 = true
  3292. goto LABEL153
  3293. }
  3294. LABEL153:
  3295. if yyr2 || yy2arr2 {
  3296. if yyn153 {
  3297. r.WriteArrayElem()
  3298. r.EncodeNil()
  3299. } else {
  3300. r.WriteArrayElem()
  3301. if x.Nint64 == nil {
  3302. r.EncodeNil()
  3303. } else {
  3304. yy154 := *x.Nint64
  3305. if false {
  3306. } else {
  3307. r.EncodeInt(int64(yy154))
  3308. }
  3309. }
  3310. }
  3311. } else {
  3312. r.WriteMapElemKey()
  3313. if z.IsJSONHandle() {
  3314. z.WriteStr("\"Nint64\"")
  3315. } else {
  3316. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3317. }
  3318. r.WriteMapElemValue()
  3319. if yyn153 {
  3320. r.EncodeNil()
  3321. } else {
  3322. if x.Nint64 == nil {
  3323. r.EncodeNil()
  3324. } else {
  3325. yy156 := *x.Nint64
  3326. if false {
  3327. } else {
  3328. r.EncodeInt(int64(yy156))
  3329. }
  3330. }
  3331. }
  3332. }
  3333. if yyr2 || yy2arr2 {
  3334. r.WriteArrayEnd()
  3335. } else {
  3336. r.WriteMapEnd()
  3337. }
  3338. }
  3339. }
  3340. }
  3341. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  3342. var h codecSelfer19780
  3343. z, r := GenHelperDecoder(d)
  3344. _, _, _ = h, z, r
  3345. if false {
  3346. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  3347. z.DecExtension(x, yyxt1)
  3348. } else {
  3349. yyct2 := r.ContainerType()
  3350. if yyct2 == codecSelferValueTypeMap19780 {
  3351. yyl2 := r.ReadMapStart()
  3352. if yyl2 == 0 {
  3353. r.ReadMapEnd()
  3354. } else {
  3355. x.codecDecodeSelfFromMap(yyl2, d)
  3356. }
  3357. } else if yyct2 == codecSelferValueTypeArray19780 {
  3358. yyl2 := r.ReadArrayStart()
  3359. if yyl2 == 0 {
  3360. r.ReadArrayEnd()
  3361. } else {
  3362. x.codecDecodeSelfFromArray(yyl2, d)
  3363. }
  3364. } else {
  3365. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3366. }
  3367. }
  3368. }
  3369. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  3370. var h codecSelfer19780
  3371. z, r := GenHelperDecoder(d)
  3372. _, _, _ = h, z, r
  3373. var yyhl3 bool = l >= 0
  3374. for yyj3 := 0; ; yyj3++ {
  3375. if yyhl3 {
  3376. if yyj3 >= l {
  3377. break
  3378. }
  3379. } else {
  3380. if r.CheckBreak() {
  3381. break
  3382. }
  3383. }
  3384. r.ReadMapElemKey()
  3385. yys3 := z.StringView(r.DecodeStringAsBytes())
  3386. r.ReadMapElemValue()
  3387. switch yys3 {
  3388. case "S":
  3389. if r.TryDecodeAsNil() {
  3390. x.S = ""
  3391. } else {
  3392. x.S = (string)(r.DecodeString())
  3393. }
  3394. case "I64":
  3395. if r.TryDecodeAsNil() {
  3396. x.I64 = 0
  3397. } else {
  3398. x.I64 = (int64)(r.DecodeInt64())
  3399. }
  3400. case "I32":
  3401. if r.TryDecodeAsNil() {
  3402. x.I32 = 0
  3403. } else {
  3404. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3405. }
  3406. case "I16":
  3407. if r.TryDecodeAsNil() {
  3408. x.I16 = 0
  3409. } else {
  3410. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3411. }
  3412. case "I8":
  3413. if r.TryDecodeAsNil() {
  3414. x.I8 = 0
  3415. } else {
  3416. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3417. }
  3418. case "I64n":
  3419. if r.TryDecodeAsNil() {
  3420. x.I64n = 0
  3421. } else {
  3422. x.I64n = (int64)(r.DecodeInt64())
  3423. }
  3424. case "I32n":
  3425. if r.TryDecodeAsNil() {
  3426. x.I32n = 0
  3427. } else {
  3428. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3429. }
  3430. case "I16n":
  3431. if r.TryDecodeAsNil() {
  3432. x.I16n = 0
  3433. } else {
  3434. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3435. }
  3436. case "I8n":
  3437. if r.TryDecodeAsNil() {
  3438. x.I8n = 0
  3439. } else {
  3440. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3441. }
  3442. case "Ui64":
  3443. if r.TryDecodeAsNil() {
  3444. x.Ui64 = 0
  3445. } else {
  3446. x.Ui64 = (uint64)(r.DecodeUint64())
  3447. }
  3448. case "Ui32":
  3449. if r.TryDecodeAsNil() {
  3450. x.Ui32 = 0
  3451. } else {
  3452. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3453. }
  3454. case "Ui16":
  3455. if r.TryDecodeAsNil() {
  3456. x.Ui16 = 0
  3457. } else {
  3458. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3459. }
  3460. case "Ui8":
  3461. if r.TryDecodeAsNil() {
  3462. x.Ui8 = 0
  3463. } else {
  3464. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3465. }
  3466. case "F64":
  3467. if r.TryDecodeAsNil() {
  3468. x.F64 = 0
  3469. } else {
  3470. x.F64 = (float64)(r.DecodeFloat64())
  3471. }
  3472. case "F32":
  3473. if r.TryDecodeAsNil() {
  3474. x.F32 = 0
  3475. } else {
  3476. x.F32 = (float32)(r.DecodeFloat32As64())
  3477. }
  3478. case "B":
  3479. if r.TryDecodeAsNil() {
  3480. x.B = false
  3481. } else {
  3482. x.B = (bool)(r.DecodeBool())
  3483. }
  3484. case "By":
  3485. if r.TryDecodeAsNil() {
  3486. x.By = 0
  3487. } else {
  3488. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3489. }
  3490. case "Sslice":
  3491. if r.TryDecodeAsNil() {
  3492. x.Sslice = nil
  3493. } else {
  3494. if false {
  3495. } else {
  3496. z.F.DecSliceStringX(&x.Sslice, d)
  3497. }
  3498. }
  3499. case "I64slice":
  3500. if r.TryDecodeAsNil() {
  3501. x.I64slice = nil
  3502. } else {
  3503. if false {
  3504. } else {
  3505. z.F.DecSliceInt64X(&x.I64slice, d)
  3506. }
  3507. }
  3508. case "I16slice":
  3509. if r.TryDecodeAsNil() {
  3510. x.I16slice = nil
  3511. } else {
  3512. if false {
  3513. } else {
  3514. z.F.DecSliceInt16X(&x.I16slice, d)
  3515. }
  3516. }
  3517. case "Ui64slice":
  3518. if r.TryDecodeAsNil() {
  3519. x.Ui64slice = nil
  3520. } else {
  3521. if false {
  3522. } else {
  3523. z.F.DecSliceUint64X(&x.Ui64slice, d)
  3524. }
  3525. }
  3526. case "Ui8slice":
  3527. if r.TryDecodeAsNil() {
  3528. x.Ui8slice = nil
  3529. } else {
  3530. if false {
  3531. } else {
  3532. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  3533. }
  3534. }
  3535. case "Bslice":
  3536. if r.TryDecodeAsNil() {
  3537. x.Bslice = nil
  3538. } else {
  3539. if false {
  3540. } else {
  3541. z.F.DecSliceBoolX(&x.Bslice, d)
  3542. }
  3543. }
  3544. case "Byslice":
  3545. if r.TryDecodeAsNil() {
  3546. x.Byslice = nil
  3547. } else {
  3548. if false {
  3549. } else {
  3550. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  3551. }
  3552. }
  3553. case "Iptrslice":
  3554. if r.TryDecodeAsNil() {
  3555. x.Iptrslice = nil
  3556. } else {
  3557. if false {
  3558. } else {
  3559. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  3560. }
  3561. }
  3562. case "WrapSliceInt64":
  3563. if r.TryDecodeAsNil() {
  3564. x.WrapSliceInt64 = nil
  3565. } else {
  3566. x.WrapSliceInt64.CodecDecodeSelf(d)
  3567. }
  3568. case "WrapSliceString":
  3569. if r.TryDecodeAsNil() {
  3570. x.WrapSliceString = nil
  3571. } else {
  3572. x.WrapSliceString.CodecDecodeSelf(d)
  3573. }
  3574. case "Msi64":
  3575. if r.TryDecodeAsNil() {
  3576. x.Msi64 = nil
  3577. } else {
  3578. if false {
  3579. } else {
  3580. z.F.DecMapStringInt64X(&x.Msi64, d)
  3581. }
  3582. }
  3583. case "Simplef":
  3584. if r.TryDecodeAsNil() {
  3585. x.Simplef = testSimpleFields{}
  3586. } else {
  3587. x.Simplef.CodecDecodeSelf(d)
  3588. }
  3589. case "SstrUi64T":
  3590. if r.TryDecodeAsNil() {
  3591. x.SstrUi64T = nil
  3592. } else {
  3593. if false {
  3594. } else {
  3595. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  3596. }
  3597. }
  3598. case "AS":
  3599. if r.TryDecodeAsNil() {
  3600. x.AnonInTestStruc.AS = ""
  3601. } else {
  3602. x.AS = (string)(r.DecodeString())
  3603. }
  3604. case "AI64":
  3605. if r.TryDecodeAsNil() {
  3606. x.AnonInTestStruc.AI64 = 0
  3607. } else {
  3608. x.AI64 = (int64)(r.DecodeInt64())
  3609. }
  3610. case "AI16":
  3611. if r.TryDecodeAsNil() {
  3612. x.AnonInTestStruc.AI16 = 0
  3613. } else {
  3614. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3615. }
  3616. case "AUi64":
  3617. if r.TryDecodeAsNil() {
  3618. x.AnonInTestStruc.AUi64 = 0
  3619. } else {
  3620. x.AUi64 = (uint64)(r.DecodeUint64())
  3621. }
  3622. case "ASslice":
  3623. if r.TryDecodeAsNil() {
  3624. x.AnonInTestStruc.ASslice = nil
  3625. } else {
  3626. if false {
  3627. } else {
  3628. z.F.DecSliceStringX(&x.ASslice, d)
  3629. }
  3630. }
  3631. case "AI64slice":
  3632. if r.TryDecodeAsNil() {
  3633. x.AnonInTestStruc.AI64slice = nil
  3634. } else {
  3635. if false {
  3636. } else {
  3637. z.F.DecSliceInt64X(&x.AI64slice, d)
  3638. }
  3639. }
  3640. case "AUi64slice":
  3641. if r.TryDecodeAsNil() {
  3642. x.AnonInTestStruc.AUi64slice = nil
  3643. } else {
  3644. if false {
  3645. } else {
  3646. z.F.DecSliceUint64X(&x.AUi64slice, d)
  3647. }
  3648. }
  3649. case "AF64slice":
  3650. if r.TryDecodeAsNil() {
  3651. x.AnonInTestStruc.AF64slice = nil
  3652. } else {
  3653. if false {
  3654. } else {
  3655. z.F.DecSliceFloat64X(&x.AF64slice, d)
  3656. }
  3657. }
  3658. case "AF32slice":
  3659. if r.TryDecodeAsNil() {
  3660. x.AnonInTestStruc.AF32slice = nil
  3661. } else {
  3662. if false {
  3663. } else {
  3664. z.F.DecSliceFloat32X(&x.AF32slice, d)
  3665. }
  3666. }
  3667. case "AMSU16":
  3668. if r.TryDecodeAsNil() {
  3669. x.AnonInTestStruc.AMSU16 = nil
  3670. } else {
  3671. if false {
  3672. } else {
  3673. z.F.DecMapStringUint16X(&x.AMSU16, d)
  3674. }
  3675. }
  3676. case "AI64arr0":
  3677. if r.TryDecodeAsNil() {
  3678. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3679. } else {
  3680. if false {
  3681. } else {
  3682. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  3683. }
  3684. }
  3685. case "A164slice0":
  3686. if r.TryDecodeAsNil() {
  3687. x.AnonInTestStruc.A164slice0 = nil
  3688. } else {
  3689. if false {
  3690. } else {
  3691. z.F.DecSliceInt64X(&x.A164slice0, d)
  3692. }
  3693. }
  3694. case "AUi64sliceN":
  3695. if r.TryDecodeAsNil() {
  3696. x.AnonInTestStruc.AUi64sliceN = nil
  3697. } else {
  3698. if false {
  3699. } else {
  3700. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  3701. }
  3702. }
  3703. case "AMSU16N":
  3704. if r.TryDecodeAsNil() {
  3705. x.AnonInTestStruc.AMSU16N = nil
  3706. } else {
  3707. if false {
  3708. } else {
  3709. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  3710. }
  3711. }
  3712. case "AMSU16E":
  3713. if r.TryDecodeAsNil() {
  3714. x.AnonInTestStruc.AMSU16E = nil
  3715. } else {
  3716. if false {
  3717. } else {
  3718. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  3719. }
  3720. }
  3721. case "NotAnon":
  3722. if r.TryDecodeAsNil() {
  3723. x.NotAnon = AnonInTestStruc{}
  3724. } else {
  3725. x.NotAnon.CodecDecodeSelf(d)
  3726. }
  3727. case "Nmap":
  3728. if r.TryDecodeAsNil() {
  3729. x.Nmap = nil
  3730. } else {
  3731. if false {
  3732. } else {
  3733. z.F.DecMapStringBoolX(&x.Nmap, d)
  3734. }
  3735. }
  3736. case "Nslice":
  3737. if r.TryDecodeAsNil() {
  3738. x.Nslice = nil
  3739. } else {
  3740. if false {
  3741. } else {
  3742. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3743. }
  3744. }
  3745. case "Nint64":
  3746. if r.TryDecodeAsNil() {
  3747. if true && x.Nint64 != nil {
  3748. x.Nint64 = nil
  3749. }
  3750. } else {
  3751. if x.Nint64 == nil {
  3752. x.Nint64 = new(int64)
  3753. }
  3754. if false {
  3755. } else {
  3756. *x.Nint64 = (int64)(r.DecodeInt64())
  3757. }
  3758. }
  3759. default:
  3760. z.DecStructFieldNotFound(-1, yys3)
  3761. } // end switch yys3
  3762. } // end for yyj3
  3763. r.ReadMapEnd()
  3764. }
  3765. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  3766. var h codecSelfer19780
  3767. z, r := GenHelperDecoder(d)
  3768. _, _, _ = h, z, r
  3769. var yyj77 int
  3770. var yyb77 bool
  3771. var yyhl77 bool = l >= 0
  3772. yyj77++
  3773. if yyhl77 {
  3774. yyb77 = yyj77 > l
  3775. } else {
  3776. yyb77 = r.CheckBreak()
  3777. }
  3778. if yyb77 {
  3779. r.ReadArrayEnd()
  3780. return
  3781. }
  3782. r.ReadArrayElem()
  3783. if r.TryDecodeAsNil() {
  3784. x.S = ""
  3785. } else {
  3786. x.S = (string)(r.DecodeString())
  3787. }
  3788. yyj77++
  3789. if yyhl77 {
  3790. yyb77 = yyj77 > l
  3791. } else {
  3792. yyb77 = r.CheckBreak()
  3793. }
  3794. if yyb77 {
  3795. r.ReadArrayEnd()
  3796. return
  3797. }
  3798. r.ReadArrayElem()
  3799. if r.TryDecodeAsNil() {
  3800. x.I64 = 0
  3801. } else {
  3802. x.I64 = (int64)(r.DecodeInt64())
  3803. }
  3804. yyj77++
  3805. if yyhl77 {
  3806. yyb77 = yyj77 > l
  3807. } else {
  3808. yyb77 = r.CheckBreak()
  3809. }
  3810. if yyb77 {
  3811. r.ReadArrayEnd()
  3812. return
  3813. }
  3814. r.ReadArrayElem()
  3815. if r.TryDecodeAsNil() {
  3816. x.I32 = 0
  3817. } else {
  3818. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3819. }
  3820. yyj77++
  3821. if yyhl77 {
  3822. yyb77 = yyj77 > l
  3823. } else {
  3824. yyb77 = r.CheckBreak()
  3825. }
  3826. if yyb77 {
  3827. r.ReadArrayEnd()
  3828. return
  3829. }
  3830. r.ReadArrayElem()
  3831. if r.TryDecodeAsNil() {
  3832. x.I16 = 0
  3833. } else {
  3834. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3835. }
  3836. yyj77++
  3837. if yyhl77 {
  3838. yyb77 = yyj77 > l
  3839. } else {
  3840. yyb77 = r.CheckBreak()
  3841. }
  3842. if yyb77 {
  3843. r.ReadArrayEnd()
  3844. return
  3845. }
  3846. r.ReadArrayElem()
  3847. if r.TryDecodeAsNil() {
  3848. x.I8 = 0
  3849. } else {
  3850. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3851. }
  3852. yyj77++
  3853. if yyhl77 {
  3854. yyb77 = yyj77 > l
  3855. } else {
  3856. yyb77 = r.CheckBreak()
  3857. }
  3858. if yyb77 {
  3859. r.ReadArrayEnd()
  3860. return
  3861. }
  3862. r.ReadArrayElem()
  3863. if r.TryDecodeAsNil() {
  3864. x.I64n = 0
  3865. } else {
  3866. x.I64n = (int64)(r.DecodeInt64())
  3867. }
  3868. yyj77++
  3869. if yyhl77 {
  3870. yyb77 = yyj77 > l
  3871. } else {
  3872. yyb77 = r.CheckBreak()
  3873. }
  3874. if yyb77 {
  3875. r.ReadArrayEnd()
  3876. return
  3877. }
  3878. r.ReadArrayElem()
  3879. if r.TryDecodeAsNil() {
  3880. x.I32n = 0
  3881. } else {
  3882. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3883. }
  3884. yyj77++
  3885. if yyhl77 {
  3886. yyb77 = yyj77 > l
  3887. } else {
  3888. yyb77 = r.CheckBreak()
  3889. }
  3890. if yyb77 {
  3891. r.ReadArrayEnd()
  3892. return
  3893. }
  3894. r.ReadArrayElem()
  3895. if r.TryDecodeAsNil() {
  3896. x.I16n = 0
  3897. } else {
  3898. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3899. }
  3900. yyj77++
  3901. if yyhl77 {
  3902. yyb77 = yyj77 > l
  3903. } else {
  3904. yyb77 = r.CheckBreak()
  3905. }
  3906. if yyb77 {
  3907. r.ReadArrayEnd()
  3908. return
  3909. }
  3910. r.ReadArrayElem()
  3911. if r.TryDecodeAsNil() {
  3912. x.I8n = 0
  3913. } else {
  3914. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3915. }
  3916. yyj77++
  3917. if yyhl77 {
  3918. yyb77 = yyj77 > l
  3919. } else {
  3920. yyb77 = r.CheckBreak()
  3921. }
  3922. if yyb77 {
  3923. r.ReadArrayEnd()
  3924. return
  3925. }
  3926. r.ReadArrayElem()
  3927. if r.TryDecodeAsNil() {
  3928. x.Ui64 = 0
  3929. } else {
  3930. x.Ui64 = (uint64)(r.DecodeUint64())
  3931. }
  3932. yyj77++
  3933. if yyhl77 {
  3934. yyb77 = yyj77 > l
  3935. } else {
  3936. yyb77 = r.CheckBreak()
  3937. }
  3938. if yyb77 {
  3939. r.ReadArrayEnd()
  3940. return
  3941. }
  3942. r.ReadArrayElem()
  3943. if r.TryDecodeAsNil() {
  3944. x.Ui32 = 0
  3945. } else {
  3946. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3947. }
  3948. yyj77++
  3949. if yyhl77 {
  3950. yyb77 = yyj77 > l
  3951. } else {
  3952. yyb77 = r.CheckBreak()
  3953. }
  3954. if yyb77 {
  3955. r.ReadArrayEnd()
  3956. return
  3957. }
  3958. r.ReadArrayElem()
  3959. if r.TryDecodeAsNil() {
  3960. x.Ui16 = 0
  3961. } else {
  3962. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3963. }
  3964. yyj77++
  3965. if yyhl77 {
  3966. yyb77 = yyj77 > l
  3967. } else {
  3968. yyb77 = r.CheckBreak()
  3969. }
  3970. if yyb77 {
  3971. r.ReadArrayEnd()
  3972. return
  3973. }
  3974. r.ReadArrayElem()
  3975. if r.TryDecodeAsNil() {
  3976. x.Ui8 = 0
  3977. } else {
  3978. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3979. }
  3980. yyj77++
  3981. if yyhl77 {
  3982. yyb77 = yyj77 > l
  3983. } else {
  3984. yyb77 = r.CheckBreak()
  3985. }
  3986. if yyb77 {
  3987. r.ReadArrayEnd()
  3988. return
  3989. }
  3990. r.ReadArrayElem()
  3991. if r.TryDecodeAsNil() {
  3992. x.F64 = 0
  3993. } else {
  3994. x.F64 = (float64)(r.DecodeFloat64())
  3995. }
  3996. yyj77++
  3997. if yyhl77 {
  3998. yyb77 = yyj77 > l
  3999. } else {
  4000. yyb77 = r.CheckBreak()
  4001. }
  4002. if yyb77 {
  4003. r.ReadArrayEnd()
  4004. return
  4005. }
  4006. r.ReadArrayElem()
  4007. if r.TryDecodeAsNil() {
  4008. x.F32 = 0
  4009. } else {
  4010. x.F32 = (float32)(r.DecodeFloat32As64())
  4011. }
  4012. yyj77++
  4013. if yyhl77 {
  4014. yyb77 = yyj77 > l
  4015. } else {
  4016. yyb77 = r.CheckBreak()
  4017. }
  4018. if yyb77 {
  4019. r.ReadArrayEnd()
  4020. return
  4021. }
  4022. r.ReadArrayElem()
  4023. if r.TryDecodeAsNil() {
  4024. x.B = false
  4025. } else {
  4026. x.B = (bool)(r.DecodeBool())
  4027. }
  4028. yyj77++
  4029. if yyhl77 {
  4030. yyb77 = yyj77 > l
  4031. } else {
  4032. yyb77 = r.CheckBreak()
  4033. }
  4034. if yyb77 {
  4035. r.ReadArrayEnd()
  4036. return
  4037. }
  4038. r.ReadArrayElem()
  4039. if r.TryDecodeAsNil() {
  4040. x.By = 0
  4041. } else {
  4042. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4043. }
  4044. yyj77++
  4045. if yyhl77 {
  4046. yyb77 = yyj77 > l
  4047. } else {
  4048. yyb77 = r.CheckBreak()
  4049. }
  4050. if yyb77 {
  4051. r.ReadArrayEnd()
  4052. return
  4053. }
  4054. r.ReadArrayElem()
  4055. if r.TryDecodeAsNil() {
  4056. x.Sslice = nil
  4057. } else {
  4058. if false {
  4059. } else {
  4060. z.F.DecSliceStringX(&x.Sslice, d)
  4061. }
  4062. }
  4063. yyj77++
  4064. if yyhl77 {
  4065. yyb77 = yyj77 > l
  4066. } else {
  4067. yyb77 = r.CheckBreak()
  4068. }
  4069. if yyb77 {
  4070. r.ReadArrayEnd()
  4071. return
  4072. }
  4073. r.ReadArrayElem()
  4074. if r.TryDecodeAsNil() {
  4075. x.I64slice = nil
  4076. } else {
  4077. if false {
  4078. } else {
  4079. z.F.DecSliceInt64X(&x.I64slice, d)
  4080. }
  4081. }
  4082. yyj77++
  4083. if yyhl77 {
  4084. yyb77 = yyj77 > l
  4085. } else {
  4086. yyb77 = r.CheckBreak()
  4087. }
  4088. if yyb77 {
  4089. r.ReadArrayEnd()
  4090. return
  4091. }
  4092. r.ReadArrayElem()
  4093. if r.TryDecodeAsNil() {
  4094. x.I16slice = nil
  4095. } else {
  4096. if false {
  4097. } else {
  4098. z.F.DecSliceInt16X(&x.I16slice, d)
  4099. }
  4100. }
  4101. yyj77++
  4102. if yyhl77 {
  4103. yyb77 = yyj77 > l
  4104. } else {
  4105. yyb77 = r.CheckBreak()
  4106. }
  4107. if yyb77 {
  4108. r.ReadArrayEnd()
  4109. return
  4110. }
  4111. r.ReadArrayElem()
  4112. if r.TryDecodeAsNil() {
  4113. x.Ui64slice = nil
  4114. } else {
  4115. if false {
  4116. } else {
  4117. z.F.DecSliceUint64X(&x.Ui64slice, d)
  4118. }
  4119. }
  4120. yyj77++
  4121. if yyhl77 {
  4122. yyb77 = yyj77 > l
  4123. } else {
  4124. yyb77 = r.CheckBreak()
  4125. }
  4126. if yyb77 {
  4127. r.ReadArrayEnd()
  4128. return
  4129. }
  4130. r.ReadArrayElem()
  4131. if r.TryDecodeAsNil() {
  4132. x.Ui8slice = nil
  4133. } else {
  4134. if false {
  4135. } else {
  4136. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  4137. }
  4138. }
  4139. yyj77++
  4140. if yyhl77 {
  4141. yyb77 = yyj77 > l
  4142. } else {
  4143. yyb77 = r.CheckBreak()
  4144. }
  4145. if yyb77 {
  4146. r.ReadArrayEnd()
  4147. return
  4148. }
  4149. r.ReadArrayElem()
  4150. if r.TryDecodeAsNil() {
  4151. x.Bslice = nil
  4152. } else {
  4153. if false {
  4154. } else {
  4155. z.F.DecSliceBoolX(&x.Bslice, d)
  4156. }
  4157. }
  4158. yyj77++
  4159. if yyhl77 {
  4160. yyb77 = yyj77 > l
  4161. } else {
  4162. yyb77 = r.CheckBreak()
  4163. }
  4164. if yyb77 {
  4165. r.ReadArrayEnd()
  4166. return
  4167. }
  4168. r.ReadArrayElem()
  4169. if r.TryDecodeAsNil() {
  4170. x.Byslice = nil
  4171. } else {
  4172. if false {
  4173. } else {
  4174. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  4175. }
  4176. }
  4177. yyj77++
  4178. if yyhl77 {
  4179. yyb77 = yyj77 > l
  4180. } else {
  4181. yyb77 = r.CheckBreak()
  4182. }
  4183. if yyb77 {
  4184. r.ReadArrayEnd()
  4185. return
  4186. }
  4187. r.ReadArrayElem()
  4188. if r.TryDecodeAsNil() {
  4189. x.Iptrslice = nil
  4190. } else {
  4191. if false {
  4192. } else {
  4193. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  4194. }
  4195. }
  4196. yyj77++
  4197. if yyhl77 {
  4198. yyb77 = yyj77 > l
  4199. } else {
  4200. yyb77 = r.CheckBreak()
  4201. }
  4202. if yyb77 {
  4203. r.ReadArrayEnd()
  4204. return
  4205. }
  4206. r.ReadArrayElem()
  4207. if r.TryDecodeAsNil() {
  4208. x.WrapSliceInt64 = nil
  4209. } else {
  4210. x.WrapSliceInt64.CodecDecodeSelf(d)
  4211. }
  4212. yyj77++
  4213. if yyhl77 {
  4214. yyb77 = yyj77 > l
  4215. } else {
  4216. yyb77 = r.CheckBreak()
  4217. }
  4218. if yyb77 {
  4219. r.ReadArrayEnd()
  4220. return
  4221. }
  4222. r.ReadArrayElem()
  4223. if r.TryDecodeAsNil() {
  4224. x.WrapSliceString = nil
  4225. } else {
  4226. x.WrapSliceString.CodecDecodeSelf(d)
  4227. }
  4228. yyj77++
  4229. if yyhl77 {
  4230. yyb77 = yyj77 > l
  4231. } else {
  4232. yyb77 = r.CheckBreak()
  4233. }
  4234. if yyb77 {
  4235. r.ReadArrayEnd()
  4236. return
  4237. }
  4238. r.ReadArrayElem()
  4239. if r.TryDecodeAsNil() {
  4240. x.Msi64 = nil
  4241. } else {
  4242. if false {
  4243. } else {
  4244. z.F.DecMapStringInt64X(&x.Msi64, d)
  4245. }
  4246. }
  4247. yyj77++
  4248. if yyhl77 {
  4249. yyb77 = yyj77 > l
  4250. } else {
  4251. yyb77 = r.CheckBreak()
  4252. }
  4253. if yyb77 {
  4254. r.ReadArrayEnd()
  4255. return
  4256. }
  4257. r.ReadArrayElem()
  4258. if r.TryDecodeAsNil() {
  4259. x.Simplef = testSimpleFields{}
  4260. } else {
  4261. x.Simplef.CodecDecodeSelf(d)
  4262. }
  4263. yyj77++
  4264. if yyhl77 {
  4265. yyb77 = yyj77 > l
  4266. } else {
  4267. yyb77 = r.CheckBreak()
  4268. }
  4269. if yyb77 {
  4270. r.ReadArrayEnd()
  4271. return
  4272. }
  4273. r.ReadArrayElem()
  4274. if r.TryDecodeAsNil() {
  4275. x.SstrUi64T = nil
  4276. } else {
  4277. if false {
  4278. } else {
  4279. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  4280. }
  4281. }
  4282. yyj77++
  4283. if yyhl77 {
  4284. yyb77 = yyj77 > l
  4285. } else {
  4286. yyb77 = r.CheckBreak()
  4287. }
  4288. if yyb77 {
  4289. r.ReadArrayEnd()
  4290. return
  4291. }
  4292. r.ReadArrayElem()
  4293. if r.TryDecodeAsNil() {
  4294. x.AnonInTestStruc.AS = ""
  4295. } else {
  4296. x.AS = (string)(r.DecodeString())
  4297. }
  4298. yyj77++
  4299. if yyhl77 {
  4300. yyb77 = yyj77 > l
  4301. } else {
  4302. yyb77 = r.CheckBreak()
  4303. }
  4304. if yyb77 {
  4305. r.ReadArrayEnd()
  4306. return
  4307. }
  4308. r.ReadArrayElem()
  4309. if r.TryDecodeAsNil() {
  4310. x.AnonInTestStruc.AI64 = 0
  4311. } else {
  4312. x.AI64 = (int64)(r.DecodeInt64())
  4313. }
  4314. yyj77++
  4315. if yyhl77 {
  4316. yyb77 = yyj77 > l
  4317. } else {
  4318. yyb77 = r.CheckBreak()
  4319. }
  4320. if yyb77 {
  4321. r.ReadArrayEnd()
  4322. return
  4323. }
  4324. r.ReadArrayElem()
  4325. if r.TryDecodeAsNil() {
  4326. x.AnonInTestStruc.AI16 = 0
  4327. } else {
  4328. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4329. }
  4330. yyj77++
  4331. if yyhl77 {
  4332. yyb77 = yyj77 > l
  4333. } else {
  4334. yyb77 = r.CheckBreak()
  4335. }
  4336. if yyb77 {
  4337. r.ReadArrayEnd()
  4338. return
  4339. }
  4340. r.ReadArrayElem()
  4341. if r.TryDecodeAsNil() {
  4342. x.AnonInTestStruc.AUi64 = 0
  4343. } else {
  4344. x.AUi64 = (uint64)(r.DecodeUint64())
  4345. }
  4346. yyj77++
  4347. if yyhl77 {
  4348. yyb77 = yyj77 > l
  4349. } else {
  4350. yyb77 = r.CheckBreak()
  4351. }
  4352. if yyb77 {
  4353. r.ReadArrayEnd()
  4354. return
  4355. }
  4356. r.ReadArrayElem()
  4357. if r.TryDecodeAsNil() {
  4358. x.AnonInTestStruc.ASslice = nil
  4359. } else {
  4360. if false {
  4361. } else {
  4362. z.F.DecSliceStringX(&x.ASslice, d)
  4363. }
  4364. }
  4365. yyj77++
  4366. if yyhl77 {
  4367. yyb77 = yyj77 > l
  4368. } else {
  4369. yyb77 = r.CheckBreak()
  4370. }
  4371. if yyb77 {
  4372. r.ReadArrayEnd()
  4373. return
  4374. }
  4375. r.ReadArrayElem()
  4376. if r.TryDecodeAsNil() {
  4377. x.AnonInTestStruc.AI64slice = nil
  4378. } else {
  4379. if false {
  4380. } else {
  4381. z.F.DecSliceInt64X(&x.AI64slice, d)
  4382. }
  4383. }
  4384. yyj77++
  4385. if yyhl77 {
  4386. yyb77 = yyj77 > l
  4387. } else {
  4388. yyb77 = r.CheckBreak()
  4389. }
  4390. if yyb77 {
  4391. r.ReadArrayEnd()
  4392. return
  4393. }
  4394. r.ReadArrayElem()
  4395. if r.TryDecodeAsNil() {
  4396. x.AnonInTestStruc.AUi64slice = nil
  4397. } else {
  4398. if false {
  4399. } else {
  4400. z.F.DecSliceUint64X(&x.AUi64slice, d)
  4401. }
  4402. }
  4403. yyj77++
  4404. if yyhl77 {
  4405. yyb77 = yyj77 > l
  4406. } else {
  4407. yyb77 = r.CheckBreak()
  4408. }
  4409. if yyb77 {
  4410. r.ReadArrayEnd()
  4411. return
  4412. }
  4413. r.ReadArrayElem()
  4414. if r.TryDecodeAsNil() {
  4415. x.AnonInTestStruc.AF64slice = nil
  4416. } else {
  4417. if false {
  4418. } else {
  4419. z.F.DecSliceFloat64X(&x.AF64slice, d)
  4420. }
  4421. }
  4422. yyj77++
  4423. if yyhl77 {
  4424. yyb77 = yyj77 > l
  4425. } else {
  4426. yyb77 = r.CheckBreak()
  4427. }
  4428. if yyb77 {
  4429. r.ReadArrayEnd()
  4430. return
  4431. }
  4432. r.ReadArrayElem()
  4433. if r.TryDecodeAsNil() {
  4434. x.AnonInTestStruc.AF32slice = nil
  4435. } else {
  4436. if false {
  4437. } else {
  4438. z.F.DecSliceFloat32X(&x.AF32slice, d)
  4439. }
  4440. }
  4441. yyj77++
  4442. if yyhl77 {
  4443. yyb77 = yyj77 > l
  4444. } else {
  4445. yyb77 = r.CheckBreak()
  4446. }
  4447. if yyb77 {
  4448. r.ReadArrayEnd()
  4449. return
  4450. }
  4451. r.ReadArrayElem()
  4452. if r.TryDecodeAsNil() {
  4453. x.AnonInTestStruc.AMSU16 = nil
  4454. } else {
  4455. if false {
  4456. } else {
  4457. z.F.DecMapStringUint16X(&x.AMSU16, d)
  4458. }
  4459. }
  4460. yyj77++
  4461. if yyhl77 {
  4462. yyb77 = yyj77 > l
  4463. } else {
  4464. yyb77 = r.CheckBreak()
  4465. }
  4466. if yyb77 {
  4467. r.ReadArrayEnd()
  4468. return
  4469. }
  4470. r.ReadArrayElem()
  4471. if r.TryDecodeAsNil() {
  4472. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  4473. } else {
  4474. if false {
  4475. } else {
  4476. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  4477. }
  4478. }
  4479. yyj77++
  4480. if yyhl77 {
  4481. yyb77 = yyj77 > l
  4482. } else {
  4483. yyb77 = r.CheckBreak()
  4484. }
  4485. if yyb77 {
  4486. r.ReadArrayEnd()
  4487. return
  4488. }
  4489. r.ReadArrayElem()
  4490. if r.TryDecodeAsNil() {
  4491. x.AnonInTestStruc.A164slice0 = nil
  4492. } else {
  4493. if false {
  4494. } else {
  4495. z.F.DecSliceInt64X(&x.A164slice0, d)
  4496. }
  4497. }
  4498. yyj77++
  4499. if yyhl77 {
  4500. yyb77 = yyj77 > l
  4501. } else {
  4502. yyb77 = r.CheckBreak()
  4503. }
  4504. if yyb77 {
  4505. r.ReadArrayEnd()
  4506. return
  4507. }
  4508. r.ReadArrayElem()
  4509. if r.TryDecodeAsNil() {
  4510. x.AnonInTestStruc.AUi64sliceN = nil
  4511. } else {
  4512. if false {
  4513. } else {
  4514. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  4515. }
  4516. }
  4517. yyj77++
  4518. if yyhl77 {
  4519. yyb77 = yyj77 > l
  4520. } else {
  4521. yyb77 = r.CheckBreak()
  4522. }
  4523. if yyb77 {
  4524. r.ReadArrayEnd()
  4525. return
  4526. }
  4527. r.ReadArrayElem()
  4528. if r.TryDecodeAsNil() {
  4529. x.AnonInTestStruc.AMSU16N = nil
  4530. } else {
  4531. if false {
  4532. } else {
  4533. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  4534. }
  4535. }
  4536. yyj77++
  4537. if yyhl77 {
  4538. yyb77 = yyj77 > l
  4539. } else {
  4540. yyb77 = r.CheckBreak()
  4541. }
  4542. if yyb77 {
  4543. r.ReadArrayEnd()
  4544. return
  4545. }
  4546. r.ReadArrayElem()
  4547. if r.TryDecodeAsNil() {
  4548. x.AnonInTestStruc.AMSU16E = nil
  4549. } else {
  4550. if false {
  4551. } else {
  4552. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  4553. }
  4554. }
  4555. yyj77++
  4556. if yyhl77 {
  4557. yyb77 = yyj77 > l
  4558. } else {
  4559. yyb77 = r.CheckBreak()
  4560. }
  4561. if yyb77 {
  4562. r.ReadArrayEnd()
  4563. return
  4564. }
  4565. r.ReadArrayElem()
  4566. if r.TryDecodeAsNil() {
  4567. x.NotAnon = AnonInTestStruc{}
  4568. } else {
  4569. x.NotAnon.CodecDecodeSelf(d)
  4570. }
  4571. yyj77++
  4572. if yyhl77 {
  4573. yyb77 = yyj77 > l
  4574. } else {
  4575. yyb77 = r.CheckBreak()
  4576. }
  4577. if yyb77 {
  4578. r.ReadArrayEnd()
  4579. return
  4580. }
  4581. r.ReadArrayElem()
  4582. if r.TryDecodeAsNil() {
  4583. x.Nmap = nil
  4584. } else {
  4585. if false {
  4586. } else {
  4587. z.F.DecMapStringBoolX(&x.Nmap, d)
  4588. }
  4589. }
  4590. yyj77++
  4591. if yyhl77 {
  4592. yyb77 = yyj77 > l
  4593. } else {
  4594. yyb77 = r.CheckBreak()
  4595. }
  4596. if yyb77 {
  4597. r.ReadArrayEnd()
  4598. return
  4599. }
  4600. r.ReadArrayElem()
  4601. if r.TryDecodeAsNil() {
  4602. x.Nslice = nil
  4603. } else {
  4604. if false {
  4605. } else {
  4606. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  4607. }
  4608. }
  4609. yyj77++
  4610. if yyhl77 {
  4611. yyb77 = yyj77 > l
  4612. } else {
  4613. yyb77 = r.CheckBreak()
  4614. }
  4615. if yyb77 {
  4616. r.ReadArrayEnd()
  4617. return
  4618. }
  4619. r.ReadArrayElem()
  4620. if r.TryDecodeAsNil() {
  4621. if true && x.Nint64 != nil {
  4622. x.Nint64 = nil
  4623. }
  4624. } else {
  4625. if x.Nint64 == nil {
  4626. x.Nint64 = new(int64)
  4627. }
  4628. if false {
  4629. } else {
  4630. *x.Nint64 = (int64)(r.DecodeInt64())
  4631. }
  4632. }
  4633. for {
  4634. yyj77++
  4635. if yyhl77 {
  4636. yyb77 = yyj77 > l
  4637. } else {
  4638. yyb77 = r.CheckBreak()
  4639. }
  4640. if yyb77 {
  4641. break
  4642. }
  4643. r.ReadArrayElem()
  4644. z.DecStructFieldNotFound(yyj77-1, "")
  4645. }
  4646. r.ReadArrayEnd()
  4647. }
  4648. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  4649. var h codecSelfer19780
  4650. z, r := GenHelperEncoder(e)
  4651. _, _, _ = h, z, r
  4652. if x == nil {
  4653. r.EncodeNil()
  4654. } else {
  4655. if false {
  4656. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  4657. z.EncExtension(x, yyxt1)
  4658. } else {
  4659. yysep2 := !z.EncBinary()
  4660. yy2arr2 := z.EncBasicHandle().StructToArray
  4661. _, _ = yysep2, yy2arr2
  4662. const yyr2 bool = false // struct tag has 'toArray'
  4663. if yyr2 || yy2arr2 {
  4664. r.WriteArrayStart(53)
  4665. } else {
  4666. r.WriteMapStart(53)
  4667. }
  4668. if yyr2 || yy2arr2 {
  4669. r.WriteArrayElem()
  4670. if false {
  4671. } else {
  4672. if z.EncBasicHandle().StringToRaw {
  4673. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  4674. } else {
  4675. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  4676. }
  4677. }
  4678. } else {
  4679. r.WriteMapElemKey()
  4680. if z.IsJSONHandle() {
  4681. z.WriteStr("\"S\"")
  4682. } else {
  4683. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  4684. }
  4685. r.WriteMapElemValue()
  4686. if false {
  4687. } else {
  4688. if z.EncBasicHandle().StringToRaw {
  4689. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  4690. } else {
  4691. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  4692. }
  4693. }
  4694. }
  4695. if yyr2 || yy2arr2 {
  4696. r.WriteArrayElem()
  4697. if false {
  4698. } else {
  4699. r.EncodeInt(int64(x.I64))
  4700. }
  4701. } else {
  4702. r.WriteMapElemKey()
  4703. if z.IsJSONHandle() {
  4704. z.WriteStr("\"I64\"")
  4705. } else {
  4706. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  4707. }
  4708. r.WriteMapElemValue()
  4709. if false {
  4710. } else {
  4711. r.EncodeInt(int64(x.I64))
  4712. }
  4713. }
  4714. if yyr2 || yy2arr2 {
  4715. r.WriteArrayElem()
  4716. if false {
  4717. } else {
  4718. r.EncodeInt(int64(x.I32))
  4719. }
  4720. } else {
  4721. r.WriteMapElemKey()
  4722. if z.IsJSONHandle() {
  4723. z.WriteStr("\"I32\"")
  4724. } else {
  4725. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  4726. }
  4727. r.WriteMapElemValue()
  4728. if false {
  4729. } else {
  4730. r.EncodeInt(int64(x.I32))
  4731. }
  4732. }
  4733. if yyr2 || yy2arr2 {
  4734. r.WriteArrayElem()
  4735. if false {
  4736. } else {
  4737. r.EncodeInt(int64(x.I16))
  4738. }
  4739. } else {
  4740. r.WriteMapElemKey()
  4741. if z.IsJSONHandle() {
  4742. z.WriteStr("\"I16\"")
  4743. } else {
  4744. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  4745. }
  4746. r.WriteMapElemValue()
  4747. if false {
  4748. } else {
  4749. r.EncodeInt(int64(x.I16))
  4750. }
  4751. }
  4752. if yyr2 || yy2arr2 {
  4753. r.WriteArrayElem()
  4754. if false {
  4755. } else {
  4756. r.EncodeInt(int64(x.I8))
  4757. }
  4758. } else {
  4759. r.WriteMapElemKey()
  4760. if z.IsJSONHandle() {
  4761. z.WriteStr("\"I8\"")
  4762. } else {
  4763. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  4764. }
  4765. r.WriteMapElemValue()
  4766. if false {
  4767. } else {
  4768. r.EncodeInt(int64(x.I8))
  4769. }
  4770. }
  4771. if yyr2 || yy2arr2 {
  4772. r.WriteArrayElem()
  4773. if false {
  4774. } else {
  4775. r.EncodeInt(int64(x.I64n))
  4776. }
  4777. } else {
  4778. r.WriteMapElemKey()
  4779. if z.IsJSONHandle() {
  4780. z.WriteStr("\"I64n\"")
  4781. } else {
  4782. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  4783. }
  4784. r.WriteMapElemValue()
  4785. if false {
  4786. } else {
  4787. r.EncodeInt(int64(x.I64n))
  4788. }
  4789. }
  4790. if yyr2 || yy2arr2 {
  4791. r.WriteArrayElem()
  4792. if false {
  4793. } else {
  4794. r.EncodeInt(int64(x.I32n))
  4795. }
  4796. } else {
  4797. r.WriteMapElemKey()
  4798. if z.IsJSONHandle() {
  4799. z.WriteStr("\"I32n\"")
  4800. } else {
  4801. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  4802. }
  4803. r.WriteMapElemValue()
  4804. if false {
  4805. } else {
  4806. r.EncodeInt(int64(x.I32n))
  4807. }
  4808. }
  4809. if yyr2 || yy2arr2 {
  4810. r.WriteArrayElem()
  4811. if false {
  4812. } else {
  4813. r.EncodeInt(int64(x.I16n))
  4814. }
  4815. } else {
  4816. r.WriteMapElemKey()
  4817. if z.IsJSONHandle() {
  4818. z.WriteStr("\"I16n\"")
  4819. } else {
  4820. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  4821. }
  4822. r.WriteMapElemValue()
  4823. if false {
  4824. } else {
  4825. r.EncodeInt(int64(x.I16n))
  4826. }
  4827. }
  4828. if yyr2 || yy2arr2 {
  4829. r.WriteArrayElem()
  4830. if false {
  4831. } else {
  4832. r.EncodeInt(int64(x.I8n))
  4833. }
  4834. } else {
  4835. r.WriteMapElemKey()
  4836. if z.IsJSONHandle() {
  4837. z.WriteStr("\"I8n\"")
  4838. } else {
  4839. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  4840. }
  4841. r.WriteMapElemValue()
  4842. if false {
  4843. } else {
  4844. r.EncodeInt(int64(x.I8n))
  4845. }
  4846. }
  4847. if yyr2 || yy2arr2 {
  4848. r.WriteArrayElem()
  4849. if false {
  4850. } else {
  4851. r.EncodeUint(uint64(x.Ui64))
  4852. }
  4853. } else {
  4854. r.WriteMapElemKey()
  4855. if z.IsJSONHandle() {
  4856. z.WriteStr("\"Ui64\"")
  4857. } else {
  4858. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  4859. }
  4860. r.WriteMapElemValue()
  4861. if false {
  4862. } else {
  4863. r.EncodeUint(uint64(x.Ui64))
  4864. }
  4865. }
  4866. if yyr2 || yy2arr2 {
  4867. r.WriteArrayElem()
  4868. if false {
  4869. } else {
  4870. r.EncodeUint(uint64(x.Ui32))
  4871. }
  4872. } else {
  4873. r.WriteMapElemKey()
  4874. if z.IsJSONHandle() {
  4875. z.WriteStr("\"Ui32\"")
  4876. } else {
  4877. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  4878. }
  4879. r.WriteMapElemValue()
  4880. if false {
  4881. } else {
  4882. r.EncodeUint(uint64(x.Ui32))
  4883. }
  4884. }
  4885. if yyr2 || yy2arr2 {
  4886. r.WriteArrayElem()
  4887. if false {
  4888. } else {
  4889. r.EncodeUint(uint64(x.Ui16))
  4890. }
  4891. } else {
  4892. r.WriteMapElemKey()
  4893. if z.IsJSONHandle() {
  4894. z.WriteStr("\"Ui16\"")
  4895. } else {
  4896. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  4897. }
  4898. r.WriteMapElemValue()
  4899. if false {
  4900. } else {
  4901. r.EncodeUint(uint64(x.Ui16))
  4902. }
  4903. }
  4904. if yyr2 || yy2arr2 {
  4905. r.WriteArrayElem()
  4906. if false {
  4907. } else {
  4908. r.EncodeUint(uint64(x.Ui8))
  4909. }
  4910. } else {
  4911. r.WriteMapElemKey()
  4912. if z.IsJSONHandle() {
  4913. z.WriteStr("\"Ui8\"")
  4914. } else {
  4915. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  4916. }
  4917. r.WriteMapElemValue()
  4918. if false {
  4919. } else {
  4920. r.EncodeUint(uint64(x.Ui8))
  4921. }
  4922. }
  4923. if yyr2 || yy2arr2 {
  4924. r.WriteArrayElem()
  4925. if false {
  4926. } else {
  4927. r.EncodeFloat64(float64(x.F64))
  4928. }
  4929. } else {
  4930. r.WriteMapElemKey()
  4931. if z.IsJSONHandle() {
  4932. z.WriteStr("\"F64\"")
  4933. } else {
  4934. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  4935. }
  4936. r.WriteMapElemValue()
  4937. if false {
  4938. } else {
  4939. r.EncodeFloat64(float64(x.F64))
  4940. }
  4941. }
  4942. if yyr2 || yy2arr2 {
  4943. r.WriteArrayElem()
  4944. if false {
  4945. } else {
  4946. r.EncodeFloat32(float32(x.F32))
  4947. }
  4948. } else {
  4949. r.WriteMapElemKey()
  4950. if z.IsJSONHandle() {
  4951. z.WriteStr("\"F32\"")
  4952. } else {
  4953. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  4954. }
  4955. r.WriteMapElemValue()
  4956. if false {
  4957. } else {
  4958. r.EncodeFloat32(float32(x.F32))
  4959. }
  4960. }
  4961. if yyr2 || yy2arr2 {
  4962. r.WriteArrayElem()
  4963. if false {
  4964. } else {
  4965. r.EncodeBool(bool(x.B))
  4966. }
  4967. } else {
  4968. r.WriteMapElemKey()
  4969. if z.IsJSONHandle() {
  4970. z.WriteStr("\"B\"")
  4971. } else {
  4972. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  4973. }
  4974. r.WriteMapElemValue()
  4975. if false {
  4976. } else {
  4977. r.EncodeBool(bool(x.B))
  4978. }
  4979. }
  4980. if yyr2 || yy2arr2 {
  4981. r.WriteArrayElem()
  4982. if false {
  4983. } else {
  4984. r.EncodeUint(uint64(x.By))
  4985. }
  4986. } else {
  4987. r.WriteMapElemKey()
  4988. if z.IsJSONHandle() {
  4989. z.WriteStr("\"By\"")
  4990. } else {
  4991. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  4992. }
  4993. r.WriteMapElemValue()
  4994. if false {
  4995. } else {
  4996. r.EncodeUint(uint64(x.By))
  4997. }
  4998. }
  4999. if yyr2 || yy2arr2 {
  5000. r.WriteArrayElem()
  5001. if x.Sslice == nil {
  5002. r.EncodeNil()
  5003. } else {
  5004. if false {
  5005. } else {
  5006. z.F.EncSliceStringV(x.Sslice, e)
  5007. }
  5008. }
  5009. } else {
  5010. r.WriteMapElemKey()
  5011. if z.IsJSONHandle() {
  5012. z.WriteStr("\"Sslice\"")
  5013. } else {
  5014. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  5015. }
  5016. r.WriteMapElemValue()
  5017. if x.Sslice == nil {
  5018. r.EncodeNil()
  5019. } else {
  5020. if false {
  5021. } else {
  5022. z.F.EncSliceStringV(x.Sslice, e)
  5023. }
  5024. }
  5025. }
  5026. if yyr2 || yy2arr2 {
  5027. r.WriteArrayElem()
  5028. if x.I64slice == nil {
  5029. r.EncodeNil()
  5030. } else {
  5031. if false {
  5032. } else {
  5033. z.F.EncSliceInt64V(x.I64slice, e)
  5034. }
  5035. }
  5036. } else {
  5037. r.WriteMapElemKey()
  5038. if z.IsJSONHandle() {
  5039. z.WriteStr("\"I64slice\"")
  5040. } else {
  5041. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  5042. }
  5043. r.WriteMapElemValue()
  5044. if x.I64slice == nil {
  5045. r.EncodeNil()
  5046. } else {
  5047. if false {
  5048. } else {
  5049. z.F.EncSliceInt64V(x.I64slice, e)
  5050. }
  5051. }
  5052. }
  5053. if yyr2 || yy2arr2 {
  5054. r.WriteArrayElem()
  5055. if x.I16slice == nil {
  5056. r.EncodeNil()
  5057. } else {
  5058. if false {
  5059. } else {
  5060. z.F.EncSliceInt16V(x.I16slice, e)
  5061. }
  5062. }
  5063. } else {
  5064. r.WriteMapElemKey()
  5065. if z.IsJSONHandle() {
  5066. z.WriteStr("\"I16slice\"")
  5067. } else {
  5068. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  5069. }
  5070. r.WriteMapElemValue()
  5071. if x.I16slice == nil {
  5072. r.EncodeNil()
  5073. } else {
  5074. if false {
  5075. } else {
  5076. z.F.EncSliceInt16V(x.I16slice, e)
  5077. }
  5078. }
  5079. }
  5080. if yyr2 || yy2arr2 {
  5081. r.WriteArrayElem()
  5082. if x.Ui64slice == nil {
  5083. r.EncodeNil()
  5084. } else {
  5085. if false {
  5086. } else {
  5087. z.F.EncSliceUint64V(x.Ui64slice, e)
  5088. }
  5089. }
  5090. } else {
  5091. r.WriteMapElemKey()
  5092. if z.IsJSONHandle() {
  5093. z.WriteStr("\"Ui64slice\"")
  5094. } else {
  5095. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  5096. }
  5097. r.WriteMapElemValue()
  5098. if x.Ui64slice == nil {
  5099. r.EncodeNil()
  5100. } else {
  5101. if false {
  5102. } else {
  5103. z.F.EncSliceUint64V(x.Ui64slice, e)
  5104. }
  5105. }
  5106. }
  5107. if yyr2 || yy2arr2 {
  5108. r.WriteArrayElem()
  5109. if x.Ui8slice == nil {
  5110. r.EncodeNil()
  5111. } else {
  5112. if false {
  5113. } else {
  5114. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  5115. }
  5116. }
  5117. } else {
  5118. r.WriteMapElemKey()
  5119. if z.IsJSONHandle() {
  5120. z.WriteStr("\"Ui8slice\"")
  5121. } else {
  5122. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  5123. }
  5124. r.WriteMapElemValue()
  5125. if x.Ui8slice == nil {
  5126. r.EncodeNil()
  5127. } else {
  5128. if false {
  5129. } else {
  5130. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  5131. }
  5132. }
  5133. }
  5134. if yyr2 || yy2arr2 {
  5135. r.WriteArrayElem()
  5136. if x.Bslice == nil {
  5137. r.EncodeNil()
  5138. } else {
  5139. if false {
  5140. } else {
  5141. z.F.EncSliceBoolV(x.Bslice, e)
  5142. }
  5143. }
  5144. } else {
  5145. r.WriteMapElemKey()
  5146. if z.IsJSONHandle() {
  5147. z.WriteStr("\"Bslice\"")
  5148. } else {
  5149. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  5150. }
  5151. r.WriteMapElemValue()
  5152. if x.Bslice == nil {
  5153. r.EncodeNil()
  5154. } else {
  5155. if false {
  5156. } else {
  5157. z.F.EncSliceBoolV(x.Bslice, e)
  5158. }
  5159. }
  5160. }
  5161. if yyr2 || yy2arr2 {
  5162. r.WriteArrayElem()
  5163. if x.Byslice == nil {
  5164. r.EncodeNil()
  5165. } else {
  5166. if false {
  5167. } else {
  5168. r.EncodeStringBytesRaw([]byte(x.Byslice))
  5169. }
  5170. }
  5171. } else {
  5172. r.WriteMapElemKey()
  5173. if z.IsJSONHandle() {
  5174. z.WriteStr("\"Byslice\"")
  5175. } else {
  5176. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  5177. }
  5178. r.WriteMapElemValue()
  5179. if x.Byslice == nil {
  5180. r.EncodeNil()
  5181. } else {
  5182. if false {
  5183. } else {
  5184. r.EncodeStringBytesRaw([]byte(x.Byslice))
  5185. }
  5186. }
  5187. }
  5188. if yyr2 || yy2arr2 {
  5189. r.WriteArrayElem()
  5190. if x.Iptrslice == nil {
  5191. r.EncodeNil()
  5192. } else {
  5193. if false {
  5194. } else {
  5195. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  5196. }
  5197. }
  5198. } else {
  5199. r.WriteMapElemKey()
  5200. if z.IsJSONHandle() {
  5201. z.WriteStr("\"Iptrslice\"")
  5202. } else {
  5203. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  5204. }
  5205. r.WriteMapElemValue()
  5206. if x.Iptrslice == nil {
  5207. r.EncodeNil()
  5208. } else {
  5209. if false {
  5210. } else {
  5211. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  5212. }
  5213. }
  5214. }
  5215. if yyr2 || yy2arr2 {
  5216. r.WriteArrayElem()
  5217. if x.WrapSliceInt64 == nil {
  5218. r.EncodeNil()
  5219. } else {
  5220. x.WrapSliceInt64.CodecEncodeSelf(e)
  5221. }
  5222. } else {
  5223. r.WriteMapElemKey()
  5224. if z.IsJSONHandle() {
  5225. z.WriteStr("\"WrapSliceInt64\"")
  5226. } else {
  5227. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  5228. }
  5229. r.WriteMapElemValue()
  5230. if x.WrapSliceInt64 == nil {
  5231. r.EncodeNil()
  5232. } else {
  5233. x.WrapSliceInt64.CodecEncodeSelf(e)
  5234. }
  5235. }
  5236. if yyr2 || yy2arr2 {
  5237. r.WriteArrayElem()
  5238. if x.WrapSliceString == nil {
  5239. r.EncodeNil()
  5240. } else {
  5241. x.WrapSliceString.CodecEncodeSelf(e)
  5242. }
  5243. } else {
  5244. r.WriteMapElemKey()
  5245. if z.IsJSONHandle() {
  5246. z.WriteStr("\"WrapSliceString\"")
  5247. } else {
  5248. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  5249. }
  5250. r.WriteMapElemValue()
  5251. if x.WrapSliceString == nil {
  5252. r.EncodeNil()
  5253. } else {
  5254. x.WrapSliceString.CodecEncodeSelf(e)
  5255. }
  5256. }
  5257. if yyr2 || yy2arr2 {
  5258. r.WriteArrayElem()
  5259. if x.Msi64 == nil {
  5260. r.EncodeNil()
  5261. } else {
  5262. if false {
  5263. } else {
  5264. z.F.EncMapStringInt64V(x.Msi64, e)
  5265. }
  5266. }
  5267. } else {
  5268. r.WriteMapElemKey()
  5269. if z.IsJSONHandle() {
  5270. z.WriteStr("\"Msi64\"")
  5271. } else {
  5272. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  5273. }
  5274. r.WriteMapElemValue()
  5275. if x.Msi64 == nil {
  5276. r.EncodeNil()
  5277. } else {
  5278. if false {
  5279. } else {
  5280. z.F.EncMapStringInt64V(x.Msi64, e)
  5281. }
  5282. }
  5283. }
  5284. if yyr2 || yy2arr2 {
  5285. r.WriteArrayElem()
  5286. yy88 := &x.Simplef
  5287. yy88.CodecEncodeSelf(e)
  5288. } else {
  5289. r.WriteMapElemKey()
  5290. if z.IsJSONHandle() {
  5291. z.WriteStr("\"Simplef\"")
  5292. } else {
  5293. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  5294. }
  5295. r.WriteMapElemValue()
  5296. yy90 := &x.Simplef
  5297. yy90.CodecEncodeSelf(e)
  5298. }
  5299. if yyr2 || yy2arr2 {
  5300. r.WriteArrayElem()
  5301. if x.SstrUi64T == nil {
  5302. r.EncodeNil()
  5303. } else {
  5304. if false {
  5305. } else {
  5306. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  5307. }
  5308. }
  5309. } else {
  5310. r.WriteMapElemKey()
  5311. if z.IsJSONHandle() {
  5312. z.WriteStr("\"SstrUi64T\"")
  5313. } else {
  5314. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  5315. }
  5316. r.WriteMapElemValue()
  5317. if x.SstrUi64T == nil {
  5318. r.EncodeNil()
  5319. } else {
  5320. if false {
  5321. } else {
  5322. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  5323. }
  5324. }
  5325. }
  5326. if yyr2 || yy2arr2 {
  5327. r.WriteArrayElem()
  5328. if false {
  5329. } else {
  5330. if z.EncBasicHandle().StringToRaw {
  5331. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  5332. } else {
  5333. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  5334. }
  5335. }
  5336. } else {
  5337. r.WriteMapElemKey()
  5338. if z.IsJSONHandle() {
  5339. z.WriteStr("\"AS\"")
  5340. } else {
  5341. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  5342. }
  5343. r.WriteMapElemValue()
  5344. if false {
  5345. } else {
  5346. if z.EncBasicHandle().StringToRaw {
  5347. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  5348. } else {
  5349. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  5350. }
  5351. }
  5352. }
  5353. if yyr2 || yy2arr2 {
  5354. r.WriteArrayElem()
  5355. if false {
  5356. } else {
  5357. r.EncodeInt(int64(x.AI64))
  5358. }
  5359. } else {
  5360. r.WriteMapElemKey()
  5361. if z.IsJSONHandle() {
  5362. z.WriteStr("\"AI64\"")
  5363. } else {
  5364. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  5365. }
  5366. r.WriteMapElemValue()
  5367. if false {
  5368. } else {
  5369. r.EncodeInt(int64(x.AI64))
  5370. }
  5371. }
  5372. if yyr2 || yy2arr2 {
  5373. r.WriteArrayElem()
  5374. if false {
  5375. } else {
  5376. r.EncodeInt(int64(x.AI16))
  5377. }
  5378. } else {
  5379. r.WriteMapElemKey()
  5380. if z.IsJSONHandle() {
  5381. z.WriteStr("\"AI16\"")
  5382. } else {
  5383. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  5384. }
  5385. r.WriteMapElemValue()
  5386. if false {
  5387. } else {
  5388. r.EncodeInt(int64(x.AI16))
  5389. }
  5390. }
  5391. if yyr2 || yy2arr2 {
  5392. r.WriteArrayElem()
  5393. if false {
  5394. } else {
  5395. r.EncodeUint(uint64(x.AUi64))
  5396. }
  5397. } else {
  5398. r.WriteMapElemKey()
  5399. if z.IsJSONHandle() {
  5400. z.WriteStr("\"AUi64\"")
  5401. } else {
  5402. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  5403. }
  5404. r.WriteMapElemValue()
  5405. if false {
  5406. } else {
  5407. r.EncodeUint(uint64(x.AUi64))
  5408. }
  5409. }
  5410. if yyr2 || yy2arr2 {
  5411. r.WriteArrayElem()
  5412. if x.ASslice == nil {
  5413. r.EncodeNil()
  5414. } else {
  5415. if false {
  5416. } else {
  5417. z.F.EncSliceStringV(x.ASslice, e)
  5418. }
  5419. }
  5420. } else {
  5421. r.WriteMapElemKey()
  5422. if z.IsJSONHandle() {
  5423. z.WriteStr("\"ASslice\"")
  5424. } else {
  5425. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  5426. }
  5427. r.WriteMapElemValue()
  5428. if x.ASslice == nil {
  5429. r.EncodeNil()
  5430. } else {
  5431. if false {
  5432. } else {
  5433. z.F.EncSliceStringV(x.ASslice, e)
  5434. }
  5435. }
  5436. }
  5437. if yyr2 || yy2arr2 {
  5438. r.WriteArrayElem()
  5439. if x.AI64slice == nil {
  5440. r.EncodeNil()
  5441. } else {
  5442. if false {
  5443. } else {
  5444. z.F.EncSliceInt64V(x.AI64slice, e)
  5445. }
  5446. }
  5447. } else {
  5448. r.WriteMapElemKey()
  5449. if z.IsJSONHandle() {
  5450. z.WriteStr("\"AI64slice\"")
  5451. } else {
  5452. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  5453. }
  5454. r.WriteMapElemValue()
  5455. if x.AI64slice == nil {
  5456. r.EncodeNil()
  5457. } else {
  5458. if false {
  5459. } else {
  5460. z.F.EncSliceInt64V(x.AI64slice, e)
  5461. }
  5462. }
  5463. }
  5464. if yyr2 || yy2arr2 {
  5465. r.WriteArrayElem()
  5466. if x.AUi64slice == nil {
  5467. r.EncodeNil()
  5468. } else {
  5469. if false {
  5470. } else {
  5471. z.F.EncSliceUint64V(x.AUi64slice, e)
  5472. }
  5473. }
  5474. } else {
  5475. r.WriteMapElemKey()
  5476. if z.IsJSONHandle() {
  5477. z.WriteStr("\"AUi64slice\"")
  5478. } else {
  5479. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  5480. }
  5481. r.WriteMapElemValue()
  5482. if x.AUi64slice == nil {
  5483. r.EncodeNil()
  5484. } else {
  5485. if false {
  5486. } else {
  5487. z.F.EncSliceUint64V(x.AUi64slice, e)
  5488. }
  5489. }
  5490. }
  5491. if yyr2 || yy2arr2 {
  5492. r.WriteArrayElem()
  5493. if x.AF64slice == nil {
  5494. r.EncodeNil()
  5495. } else {
  5496. if false {
  5497. } else {
  5498. z.F.EncSliceFloat64V(x.AF64slice, e)
  5499. }
  5500. }
  5501. } else {
  5502. r.WriteMapElemKey()
  5503. if z.IsJSONHandle() {
  5504. z.WriteStr("\"AF64slice\"")
  5505. } else {
  5506. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  5507. }
  5508. r.WriteMapElemValue()
  5509. if x.AF64slice == nil {
  5510. r.EncodeNil()
  5511. } else {
  5512. if false {
  5513. } else {
  5514. z.F.EncSliceFloat64V(x.AF64slice, e)
  5515. }
  5516. }
  5517. }
  5518. if yyr2 || yy2arr2 {
  5519. r.WriteArrayElem()
  5520. if x.AF32slice == nil {
  5521. r.EncodeNil()
  5522. } else {
  5523. if false {
  5524. } else {
  5525. z.F.EncSliceFloat32V(x.AF32slice, e)
  5526. }
  5527. }
  5528. } else {
  5529. r.WriteMapElemKey()
  5530. if z.IsJSONHandle() {
  5531. z.WriteStr("\"AF32slice\"")
  5532. } else {
  5533. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  5534. }
  5535. r.WriteMapElemValue()
  5536. if x.AF32slice == nil {
  5537. r.EncodeNil()
  5538. } else {
  5539. if false {
  5540. } else {
  5541. z.F.EncSliceFloat32V(x.AF32slice, e)
  5542. }
  5543. }
  5544. }
  5545. if yyr2 || yy2arr2 {
  5546. r.WriteArrayElem()
  5547. if x.AMSU16 == nil {
  5548. r.EncodeNil()
  5549. } else {
  5550. if false {
  5551. } else {
  5552. z.F.EncMapStringUint16V(x.AMSU16, e)
  5553. }
  5554. }
  5555. } else {
  5556. r.WriteMapElemKey()
  5557. if z.IsJSONHandle() {
  5558. z.WriteStr("\"AMSU16\"")
  5559. } else {
  5560. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  5561. }
  5562. r.WriteMapElemValue()
  5563. if x.AMSU16 == nil {
  5564. r.EncodeNil()
  5565. } else {
  5566. if false {
  5567. } else {
  5568. z.F.EncMapStringUint16V(x.AMSU16, e)
  5569. }
  5570. }
  5571. }
  5572. if yyr2 || yy2arr2 {
  5573. r.WriteArrayElem()
  5574. yy126 := &x.AI64arr0
  5575. if false {
  5576. } else {
  5577. h.encArray0int64((*[0]int64)(yy126), e)
  5578. }
  5579. } else {
  5580. r.WriteMapElemKey()
  5581. if z.IsJSONHandle() {
  5582. z.WriteStr("\"AI64arr0\"")
  5583. } else {
  5584. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  5585. }
  5586. r.WriteMapElemValue()
  5587. yy128 := &x.AI64arr0
  5588. if false {
  5589. } else {
  5590. h.encArray0int64((*[0]int64)(yy128), e)
  5591. }
  5592. }
  5593. if yyr2 || yy2arr2 {
  5594. r.WriteArrayElem()
  5595. if x.A164slice0 == nil {
  5596. r.EncodeNil()
  5597. } else {
  5598. if false {
  5599. } else {
  5600. z.F.EncSliceInt64V(x.A164slice0, e)
  5601. }
  5602. }
  5603. } else {
  5604. r.WriteMapElemKey()
  5605. if z.IsJSONHandle() {
  5606. z.WriteStr("\"A164slice0\"")
  5607. } else {
  5608. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  5609. }
  5610. r.WriteMapElemValue()
  5611. if x.A164slice0 == nil {
  5612. r.EncodeNil()
  5613. } else {
  5614. if false {
  5615. } else {
  5616. z.F.EncSliceInt64V(x.A164slice0, e)
  5617. }
  5618. }
  5619. }
  5620. if yyr2 || yy2arr2 {
  5621. r.WriteArrayElem()
  5622. if x.AUi64sliceN == nil {
  5623. r.EncodeNil()
  5624. } else {
  5625. if false {
  5626. } else {
  5627. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  5628. }
  5629. }
  5630. } else {
  5631. r.WriteMapElemKey()
  5632. if z.IsJSONHandle() {
  5633. z.WriteStr("\"AUi64sliceN\"")
  5634. } else {
  5635. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  5636. }
  5637. r.WriteMapElemValue()
  5638. if x.AUi64sliceN == nil {
  5639. r.EncodeNil()
  5640. } else {
  5641. if false {
  5642. } else {
  5643. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  5644. }
  5645. }
  5646. }
  5647. if yyr2 || yy2arr2 {
  5648. r.WriteArrayElem()
  5649. if x.AMSU16N == nil {
  5650. r.EncodeNil()
  5651. } else {
  5652. if false {
  5653. } else {
  5654. z.F.EncMapStringUint16V(x.AMSU16N, e)
  5655. }
  5656. }
  5657. } else {
  5658. r.WriteMapElemKey()
  5659. if z.IsJSONHandle() {
  5660. z.WriteStr("\"AMSU16N\"")
  5661. } else {
  5662. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  5663. }
  5664. r.WriteMapElemValue()
  5665. if x.AMSU16N == nil {
  5666. r.EncodeNil()
  5667. } else {
  5668. if false {
  5669. } else {
  5670. z.F.EncMapStringUint16V(x.AMSU16N, e)
  5671. }
  5672. }
  5673. }
  5674. if yyr2 || yy2arr2 {
  5675. r.WriteArrayElem()
  5676. if x.AMSU16E == nil {
  5677. r.EncodeNil()
  5678. } else {
  5679. if false {
  5680. } else {
  5681. z.F.EncMapStringUint16V(x.AMSU16E, e)
  5682. }
  5683. }
  5684. } else {
  5685. r.WriteMapElemKey()
  5686. if z.IsJSONHandle() {
  5687. z.WriteStr("\"AMSU16E\"")
  5688. } else {
  5689. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  5690. }
  5691. r.WriteMapElemValue()
  5692. if x.AMSU16E == nil {
  5693. r.EncodeNil()
  5694. } else {
  5695. if false {
  5696. } else {
  5697. z.F.EncMapStringUint16V(x.AMSU16E, e)
  5698. }
  5699. }
  5700. }
  5701. if yyr2 || yy2arr2 {
  5702. r.WriteArrayElem()
  5703. yy143 := &x.NotAnon
  5704. yy143.CodecEncodeSelf(e)
  5705. } else {
  5706. r.WriteMapElemKey()
  5707. if z.IsJSONHandle() {
  5708. z.WriteStr("\"NotAnon\"")
  5709. } else {
  5710. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  5711. }
  5712. r.WriteMapElemValue()
  5713. yy145 := &x.NotAnon
  5714. yy145.CodecEncodeSelf(e)
  5715. }
  5716. if yyr2 || yy2arr2 {
  5717. r.WriteArrayElem()
  5718. if x.Nmap == nil {
  5719. r.EncodeNil()
  5720. } else {
  5721. if false {
  5722. } else {
  5723. z.F.EncMapStringBoolV(x.Nmap, e)
  5724. }
  5725. }
  5726. } else {
  5727. r.WriteMapElemKey()
  5728. if z.IsJSONHandle() {
  5729. z.WriteStr("\"Nmap\"")
  5730. } else {
  5731. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  5732. }
  5733. r.WriteMapElemValue()
  5734. if x.Nmap == nil {
  5735. r.EncodeNil()
  5736. } else {
  5737. if false {
  5738. } else {
  5739. z.F.EncMapStringBoolV(x.Nmap, e)
  5740. }
  5741. }
  5742. }
  5743. if yyr2 || yy2arr2 {
  5744. r.WriteArrayElem()
  5745. if x.Nslice == nil {
  5746. r.EncodeNil()
  5747. } else {
  5748. if false {
  5749. } else {
  5750. r.EncodeStringBytesRaw([]byte(x.Nslice))
  5751. }
  5752. }
  5753. } else {
  5754. r.WriteMapElemKey()
  5755. if z.IsJSONHandle() {
  5756. z.WriteStr("\"Nslice\"")
  5757. } else {
  5758. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  5759. }
  5760. r.WriteMapElemValue()
  5761. if x.Nslice == nil {
  5762. r.EncodeNil()
  5763. } else {
  5764. if false {
  5765. } else {
  5766. r.EncodeStringBytesRaw([]byte(x.Nslice))
  5767. }
  5768. }
  5769. }
  5770. var yyn153 bool
  5771. if x.TestStrucCommon.Nint64 == nil {
  5772. yyn153 = true
  5773. goto LABEL153
  5774. }
  5775. LABEL153:
  5776. if yyr2 || yy2arr2 {
  5777. if yyn153 {
  5778. r.WriteArrayElem()
  5779. r.EncodeNil()
  5780. } else {
  5781. r.WriteArrayElem()
  5782. if x.Nint64 == nil {
  5783. r.EncodeNil()
  5784. } else {
  5785. yy154 := *x.Nint64
  5786. if false {
  5787. } else {
  5788. r.EncodeInt(int64(yy154))
  5789. }
  5790. }
  5791. }
  5792. } else {
  5793. r.WriteMapElemKey()
  5794. if z.IsJSONHandle() {
  5795. z.WriteStr("\"Nint64\"")
  5796. } else {
  5797. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  5798. }
  5799. r.WriteMapElemValue()
  5800. if yyn153 {
  5801. r.EncodeNil()
  5802. } else {
  5803. if x.Nint64 == nil {
  5804. r.EncodeNil()
  5805. } else {
  5806. yy156 := *x.Nint64
  5807. if false {
  5808. } else {
  5809. r.EncodeInt(int64(yy156))
  5810. }
  5811. }
  5812. }
  5813. }
  5814. if yyr2 || yy2arr2 {
  5815. r.WriteArrayElem()
  5816. if x.Mtsptr == nil {
  5817. r.EncodeNil()
  5818. } else {
  5819. if false {
  5820. } else {
  5821. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5822. }
  5823. }
  5824. } else {
  5825. r.WriteMapElemKey()
  5826. if z.IsJSONHandle() {
  5827. z.WriteStr("\"Mtsptr\"")
  5828. } else {
  5829. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  5830. }
  5831. r.WriteMapElemValue()
  5832. if x.Mtsptr == nil {
  5833. r.EncodeNil()
  5834. } else {
  5835. if false {
  5836. } else {
  5837. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5838. }
  5839. }
  5840. }
  5841. if yyr2 || yy2arr2 {
  5842. r.WriteArrayElem()
  5843. if x.Mts == nil {
  5844. r.EncodeNil()
  5845. } else {
  5846. if false {
  5847. } else {
  5848. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5849. }
  5850. }
  5851. } else {
  5852. r.WriteMapElemKey()
  5853. if z.IsJSONHandle() {
  5854. z.WriteStr("\"Mts\"")
  5855. } else {
  5856. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  5857. }
  5858. r.WriteMapElemValue()
  5859. if x.Mts == nil {
  5860. r.EncodeNil()
  5861. } else {
  5862. if false {
  5863. } else {
  5864. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5865. }
  5866. }
  5867. }
  5868. if yyr2 || yy2arr2 {
  5869. r.WriteArrayElem()
  5870. if x.Its == nil {
  5871. r.EncodeNil()
  5872. } else {
  5873. if false {
  5874. } else {
  5875. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5876. }
  5877. }
  5878. } else {
  5879. r.WriteMapElemKey()
  5880. if z.IsJSONHandle() {
  5881. z.WriteStr("\"Its\"")
  5882. } else {
  5883. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  5884. }
  5885. r.WriteMapElemValue()
  5886. if x.Its == nil {
  5887. r.EncodeNil()
  5888. } else {
  5889. if false {
  5890. } else {
  5891. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5892. }
  5893. }
  5894. }
  5895. var yyn167 bool
  5896. if x.Nteststruc == nil {
  5897. yyn167 = true
  5898. goto LABEL167
  5899. }
  5900. LABEL167:
  5901. if yyr2 || yy2arr2 {
  5902. if yyn167 {
  5903. r.WriteArrayElem()
  5904. r.EncodeNil()
  5905. } else {
  5906. r.WriteArrayElem()
  5907. if x.Nteststruc == nil {
  5908. r.EncodeNil()
  5909. } else {
  5910. x.Nteststruc.CodecEncodeSelf(e)
  5911. }
  5912. }
  5913. } else {
  5914. r.WriteMapElemKey()
  5915. if z.IsJSONHandle() {
  5916. z.WriteStr("\"Nteststruc\"")
  5917. } else {
  5918. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  5919. }
  5920. r.WriteMapElemValue()
  5921. if yyn167 {
  5922. r.EncodeNil()
  5923. } else {
  5924. if x.Nteststruc == nil {
  5925. r.EncodeNil()
  5926. } else {
  5927. x.Nteststruc.CodecEncodeSelf(e)
  5928. }
  5929. }
  5930. }
  5931. if yyr2 || yy2arr2 {
  5932. r.WriteArrayEnd()
  5933. } else {
  5934. r.WriteMapEnd()
  5935. }
  5936. }
  5937. }
  5938. }
  5939. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  5940. var h codecSelfer19780
  5941. z, r := GenHelperDecoder(d)
  5942. _, _, _ = h, z, r
  5943. if false {
  5944. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  5945. z.DecExtension(x, yyxt1)
  5946. } else {
  5947. yyct2 := r.ContainerType()
  5948. if yyct2 == codecSelferValueTypeMap19780 {
  5949. yyl2 := r.ReadMapStart()
  5950. if yyl2 == 0 {
  5951. r.ReadMapEnd()
  5952. } else {
  5953. x.codecDecodeSelfFromMap(yyl2, d)
  5954. }
  5955. } else if yyct2 == codecSelferValueTypeArray19780 {
  5956. yyl2 := r.ReadArrayStart()
  5957. if yyl2 == 0 {
  5958. r.ReadArrayEnd()
  5959. } else {
  5960. x.codecDecodeSelfFromArray(yyl2, d)
  5961. }
  5962. } else {
  5963. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5964. }
  5965. }
  5966. }
  5967. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  5968. var h codecSelfer19780
  5969. z, r := GenHelperDecoder(d)
  5970. _, _, _ = h, z, r
  5971. var yyhl3 bool = l >= 0
  5972. for yyj3 := 0; ; yyj3++ {
  5973. if yyhl3 {
  5974. if yyj3 >= l {
  5975. break
  5976. }
  5977. } else {
  5978. if r.CheckBreak() {
  5979. break
  5980. }
  5981. }
  5982. r.ReadMapElemKey()
  5983. yys3 := z.StringView(r.DecodeStringAsBytes())
  5984. r.ReadMapElemValue()
  5985. switch yys3 {
  5986. case "S":
  5987. if r.TryDecodeAsNil() {
  5988. x.TestStrucCommon.S = ""
  5989. } else {
  5990. x.S = (string)(r.DecodeString())
  5991. }
  5992. case "I64":
  5993. if r.TryDecodeAsNil() {
  5994. x.TestStrucCommon.I64 = 0
  5995. } else {
  5996. x.I64 = (int64)(r.DecodeInt64())
  5997. }
  5998. case "I32":
  5999. if r.TryDecodeAsNil() {
  6000. x.TestStrucCommon.I32 = 0
  6001. } else {
  6002. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6003. }
  6004. case "I16":
  6005. if r.TryDecodeAsNil() {
  6006. x.TestStrucCommon.I16 = 0
  6007. } else {
  6008. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6009. }
  6010. case "I8":
  6011. if r.TryDecodeAsNil() {
  6012. x.TestStrucCommon.I8 = 0
  6013. } else {
  6014. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6015. }
  6016. case "I64n":
  6017. if r.TryDecodeAsNil() {
  6018. x.TestStrucCommon.I64n = 0
  6019. } else {
  6020. x.I64n = (int64)(r.DecodeInt64())
  6021. }
  6022. case "I32n":
  6023. if r.TryDecodeAsNil() {
  6024. x.TestStrucCommon.I32n = 0
  6025. } else {
  6026. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6027. }
  6028. case "I16n":
  6029. if r.TryDecodeAsNil() {
  6030. x.TestStrucCommon.I16n = 0
  6031. } else {
  6032. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6033. }
  6034. case "I8n":
  6035. if r.TryDecodeAsNil() {
  6036. x.TestStrucCommon.I8n = 0
  6037. } else {
  6038. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6039. }
  6040. case "Ui64":
  6041. if r.TryDecodeAsNil() {
  6042. x.TestStrucCommon.Ui64 = 0
  6043. } else {
  6044. x.Ui64 = (uint64)(r.DecodeUint64())
  6045. }
  6046. case "Ui32":
  6047. if r.TryDecodeAsNil() {
  6048. x.TestStrucCommon.Ui32 = 0
  6049. } else {
  6050. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6051. }
  6052. case "Ui16":
  6053. if r.TryDecodeAsNil() {
  6054. x.TestStrucCommon.Ui16 = 0
  6055. } else {
  6056. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6057. }
  6058. case "Ui8":
  6059. if r.TryDecodeAsNil() {
  6060. x.TestStrucCommon.Ui8 = 0
  6061. } else {
  6062. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6063. }
  6064. case "F64":
  6065. if r.TryDecodeAsNil() {
  6066. x.TestStrucCommon.F64 = 0
  6067. } else {
  6068. x.F64 = (float64)(r.DecodeFloat64())
  6069. }
  6070. case "F32":
  6071. if r.TryDecodeAsNil() {
  6072. x.TestStrucCommon.F32 = 0
  6073. } else {
  6074. x.F32 = (float32)(r.DecodeFloat32As64())
  6075. }
  6076. case "B":
  6077. if r.TryDecodeAsNil() {
  6078. x.TestStrucCommon.B = false
  6079. } else {
  6080. x.B = (bool)(r.DecodeBool())
  6081. }
  6082. case "By":
  6083. if r.TryDecodeAsNil() {
  6084. x.TestStrucCommon.By = 0
  6085. } else {
  6086. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6087. }
  6088. case "Sslice":
  6089. if r.TryDecodeAsNil() {
  6090. x.TestStrucCommon.Sslice = nil
  6091. } else {
  6092. if false {
  6093. } else {
  6094. z.F.DecSliceStringX(&x.Sslice, d)
  6095. }
  6096. }
  6097. case "I64slice":
  6098. if r.TryDecodeAsNil() {
  6099. x.TestStrucCommon.I64slice = nil
  6100. } else {
  6101. if false {
  6102. } else {
  6103. z.F.DecSliceInt64X(&x.I64slice, d)
  6104. }
  6105. }
  6106. case "I16slice":
  6107. if r.TryDecodeAsNil() {
  6108. x.TestStrucCommon.I16slice = nil
  6109. } else {
  6110. if false {
  6111. } else {
  6112. z.F.DecSliceInt16X(&x.I16slice, d)
  6113. }
  6114. }
  6115. case "Ui64slice":
  6116. if r.TryDecodeAsNil() {
  6117. x.TestStrucCommon.Ui64slice = nil
  6118. } else {
  6119. if false {
  6120. } else {
  6121. z.F.DecSliceUint64X(&x.Ui64slice, d)
  6122. }
  6123. }
  6124. case "Ui8slice":
  6125. if r.TryDecodeAsNil() {
  6126. x.TestStrucCommon.Ui8slice = nil
  6127. } else {
  6128. if false {
  6129. } else {
  6130. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  6131. }
  6132. }
  6133. case "Bslice":
  6134. if r.TryDecodeAsNil() {
  6135. x.TestStrucCommon.Bslice = nil
  6136. } else {
  6137. if false {
  6138. } else {
  6139. z.F.DecSliceBoolX(&x.Bslice, d)
  6140. }
  6141. }
  6142. case "Byslice":
  6143. if r.TryDecodeAsNil() {
  6144. x.TestStrucCommon.Byslice = nil
  6145. } else {
  6146. if false {
  6147. } else {
  6148. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  6149. }
  6150. }
  6151. case "Iptrslice":
  6152. if r.TryDecodeAsNil() {
  6153. x.TestStrucCommon.Iptrslice = nil
  6154. } else {
  6155. if false {
  6156. } else {
  6157. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  6158. }
  6159. }
  6160. case "WrapSliceInt64":
  6161. if r.TryDecodeAsNil() {
  6162. x.TestStrucCommon.WrapSliceInt64 = nil
  6163. } else {
  6164. x.WrapSliceInt64.CodecDecodeSelf(d)
  6165. }
  6166. case "WrapSliceString":
  6167. if r.TryDecodeAsNil() {
  6168. x.TestStrucCommon.WrapSliceString = nil
  6169. } else {
  6170. x.WrapSliceString.CodecDecodeSelf(d)
  6171. }
  6172. case "Msi64":
  6173. if r.TryDecodeAsNil() {
  6174. x.TestStrucCommon.Msi64 = nil
  6175. } else {
  6176. if false {
  6177. } else {
  6178. z.F.DecMapStringInt64X(&x.Msi64, d)
  6179. }
  6180. }
  6181. case "Simplef":
  6182. if r.TryDecodeAsNil() {
  6183. x.TestStrucCommon.Simplef = testSimpleFields{}
  6184. } else {
  6185. x.Simplef.CodecDecodeSelf(d)
  6186. }
  6187. case "SstrUi64T":
  6188. if r.TryDecodeAsNil() {
  6189. x.TestStrucCommon.SstrUi64T = nil
  6190. } else {
  6191. if false {
  6192. } else {
  6193. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  6194. }
  6195. }
  6196. case "AS":
  6197. if r.TryDecodeAsNil() {
  6198. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6199. } else {
  6200. x.AS = (string)(r.DecodeString())
  6201. }
  6202. case "AI64":
  6203. if r.TryDecodeAsNil() {
  6204. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6205. } else {
  6206. x.AI64 = (int64)(r.DecodeInt64())
  6207. }
  6208. case "AI16":
  6209. if r.TryDecodeAsNil() {
  6210. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6211. } else {
  6212. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6213. }
  6214. case "AUi64":
  6215. if r.TryDecodeAsNil() {
  6216. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6217. } else {
  6218. x.AUi64 = (uint64)(r.DecodeUint64())
  6219. }
  6220. case "ASslice":
  6221. if r.TryDecodeAsNil() {
  6222. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6223. } else {
  6224. if false {
  6225. } else {
  6226. z.F.DecSliceStringX(&x.ASslice, d)
  6227. }
  6228. }
  6229. case "AI64slice":
  6230. if r.TryDecodeAsNil() {
  6231. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  6232. } else {
  6233. if false {
  6234. } else {
  6235. z.F.DecSliceInt64X(&x.AI64slice, d)
  6236. }
  6237. }
  6238. case "AUi64slice":
  6239. if r.TryDecodeAsNil() {
  6240. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  6241. } else {
  6242. if false {
  6243. } else {
  6244. z.F.DecSliceUint64X(&x.AUi64slice, d)
  6245. }
  6246. }
  6247. case "AF64slice":
  6248. if r.TryDecodeAsNil() {
  6249. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  6250. } else {
  6251. if false {
  6252. } else {
  6253. z.F.DecSliceFloat64X(&x.AF64slice, d)
  6254. }
  6255. }
  6256. case "AF32slice":
  6257. if r.TryDecodeAsNil() {
  6258. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  6259. } else {
  6260. if false {
  6261. } else {
  6262. z.F.DecSliceFloat32X(&x.AF32slice, d)
  6263. }
  6264. }
  6265. case "AMSU16":
  6266. if r.TryDecodeAsNil() {
  6267. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  6268. } else {
  6269. if false {
  6270. } else {
  6271. z.F.DecMapStringUint16X(&x.AMSU16, d)
  6272. }
  6273. }
  6274. case "AI64arr0":
  6275. if r.TryDecodeAsNil() {
  6276. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  6277. } else {
  6278. if false {
  6279. } else {
  6280. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  6281. }
  6282. }
  6283. case "A164slice0":
  6284. if r.TryDecodeAsNil() {
  6285. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  6286. } else {
  6287. if false {
  6288. } else {
  6289. z.F.DecSliceInt64X(&x.A164slice0, d)
  6290. }
  6291. }
  6292. case "AUi64sliceN":
  6293. if r.TryDecodeAsNil() {
  6294. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  6295. } else {
  6296. if false {
  6297. } else {
  6298. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  6299. }
  6300. }
  6301. case "AMSU16N":
  6302. if r.TryDecodeAsNil() {
  6303. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  6304. } else {
  6305. if false {
  6306. } else {
  6307. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  6308. }
  6309. }
  6310. case "AMSU16E":
  6311. if r.TryDecodeAsNil() {
  6312. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  6313. } else {
  6314. if false {
  6315. } else {
  6316. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  6317. }
  6318. }
  6319. case "NotAnon":
  6320. if r.TryDecodeAsNil() {
  6321. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  6322. } else {
  6323. x.NotAnon.CodecDecodeSelf(d)
  6324. }
  6325. case "Nmap":
  6326. if r.TryDecodeAsNil() {
  6327. x.TestStrucCommon.Nmap = nil
  6328. } else {
  6329. if false {
  6330. } else {
  6331. z.F.DecMapStringBoolX(&x.Nmap, d)
  6332. }
  6333. }
  6334. case "Nslice":
  6335. if r.TryDecodeAsNil() {
  6336. x.TestStrucCommon.Nslice = nil
  6337. } else {
  6338. if false {
  6339. } else {
  6340. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  6341. }
  6342. }
  6343. case "Nint64":
  6344. if r.TryDecodeAsNil() {
  6345. if true && x.TestStrucCommon.Nint64 != nil {
  6346. x.TestStrucCommon.Nint64 = nil
  6347. }
  6348. } else {
  6349. if x.TestStrucCommon.Nint64 == nil {
  6350. x.TestStrucCommon.Nint64 = new(int64)
  6351. }
  6352. if false {
  6353. } else {
  6354. *x.Nint64 = (int64)(r.DecodeInt64())
  6355. }
  6356. }
  6357. case "Mtsptr":
  6358. if r.TryDecodeAsNil() {
  6359. x.Mtsptr = nil
  6360. } else {
  6361. if false {
  6362. } else {
  6363. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  6364. }
  6365. }
  6366. case "Mts":
  6367. if r.TryDecodeAsNil() {
  6368. x.Mts = nil
  6369. } else {
  6370. if false {
  6371. } else {
  6372. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  6373. }
  6374. }
  6375. case "Its":
  6376. if r.TryDecodeAsNil() {
  6377. x.Its = nil
  6378. } else {
  6379. if false {
  6380. } else {
  6381. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  6382. }
  6383. }
  6384. case "Nteststruc":
  6385. if r.TryDecodeAsNil() {
  6386. if true && x.Nteststruc != nil {
  6387. x.Nteststruc = nil
  6388. }
  6389. } else {
  6390. if x.Nteststruc == nil {
  6391. x.Nteststruc = new(TestStruc)
  6392. }
  6393. x.Nteststruc.CodecDecodeSelf(d)
  6394. }
  6395. default:
  6396. z.DecStructFieldNotFound(-1, yys3)
  6397. } // end switch yys3
  6398. } // end for yyj3
  6399. r.ReadMapEnd()
  6400. }
  6401. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  6402. var h codecSelfer19780
  6403. z, r := GenHelperDecoder(d)
  6404. _, _, _ = h, z, r
  6405. var yyj84 int
  6406. var yyb84 bool
  6407. var yyhl84 bool = l >= 0
  6408. yyj84++
  6409. if yyhl84 {
  6410. yyb84 = yyj84 > l
  6411. } else {
  6412. yyb84 = r.CheckBreak()
  6413. }
  6414. if yyb84 {
  6415. r.ReadArrayEnd()
  6416. return
  6417. }
  6418. r.ReadArrayElem()
  6419. if r.TryDecodeAsNil() {
  6420. x.TestStrucCommon.S = ""
  6421. } else {
  6422. x.S = (string)(r.DecodeString())
  6423. }
  6424. yyj84++
  6425. if yyhl84 {
  6426. yyb84 = yyj84 > l
  6427. } else {
  6428. yyb84 = r.CheckBreak()
  6429. }
  6430. if yyb84 {
  6431. r.ReadArrayEnd()
  6432. return
  6433. }
  6434. r.ReadArrayElem()
  6435. if r.TryDecodeAsNil() {
  6436. x.TestStrucCommon.I64 = 0
  6437. } else {
  6438. x.I64 = (int64)(r.DecodeInt64())
  6439. }
  6440. yyj84++
  6441. if yyhl84 {
  6442. yyb84 = yyj84 > l
  6443. } else {
  6444. yyb84 = r.CheckBreak()
  6445. }
  6446. if yyb84 {
  6447. r.ReadArrayEnd()
  6448. return
  6449. }
  6450. r.ReadArrayElem()
  6451. if r.TryDecodeAsNil() {
  6452. x.TestStrucCommon.I32 = 0
  6453. } else {
  6454. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6455. }
  6456. yyj84++
  6457. if yyhl84 {
  6458. yyb84 = yyj84 > l
  6459. } else {
  6460. yyb84 = r.CheckBreak()
  6461. }
  6462. if yyb84 {
  6463. r.ReadArrayEnd()
  6464. return
  6465. }
  6466. r.ReadArrayElem()
  6467. if r.TryDecodeAsNil() {
  6468. x.TestStrucCommon.I16 = 0
  6469. } else {
  6470. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6471. }
  6472. yyj84++
  6473. if yyhl84 {
  6474. yyb84 = yyj84 > l
  6475. } else {
  6476. yyb84 = r.CheckBreak()
  6477. }
  6478. if yyb84 {
  6479. r.ReadArrayEnd()
  6480. return
  6481. }
  6482. r.ReadArrayElem()
  6483. if r.TryDecodeAsNil() {
  6484. x.TestStrucCommon.I8 = 0
  6485. } else {
  6486. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6487. }
  6488. yyj84++
  6489. if yyhl84 {
  6490. yyb84 = yyj84 > l
  6491. } else {
  6492. yyb84 = r.CheckBreak()
  6493. }
  6494. if yyb84 {
  6495. r.ReadArrayEnd()
  6496. return
  6497. }
  6498. r.ReadArrayElem()
  6499. if r.TryDecodeAsNil() {
  6500. x.TestStrucCommon.I64n = 0
  6501. } else {
  6502. x.I64n = (int64)(r.DecodeInt64())
  6503. }
  6504. yyj84++
  6505. if yyhl84 {
  6506. yyb84 = yyj84 > l
  6507. } else {
  6508. yyb84 = r.CheckBreak()
  6509. }
  6510. if yyb84 {
  6511. r.ReadArrayEnd()
  6512. return
  6513. }
  6514. r.ReadArrayElem()
  6515. if r.TryDecodeAsNil() {
  6516. x.TestStrucCommon.I32n = 0
  6517. } else {
  6518. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6519. }
  6520. yyj84++
  6521. if yyhl84 {
  6522. yyb84 = yyj84 > l
  6523. } else {
  6524. yyb84 = r.CheckBreak()
  6525. }
  6526. if yyb84 {
  6527. r.ReadArrayEnd()
  6528. return
  6529. }
  6530. r.ReadArrayElem()
  6531. if r.TryDecodeAsNil() {
  6532. x.TestStrucCommon.I16n = 0
  6533. } else {
  6534. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6535. }
  6536. yyj84++
  6537. if yyhl84 {
  6538. yyb84 = yyj84 > l
  6539. } else {
  6540. yyb84 = r.CheckBreak()
  6541. }
  6542. if yyb84 {
  6543. r.ReadArrayEnd()
  6544. return
  6545. }
  6546. r.ReadArrayElem()
  6547. if r.TryDecodeAsNil() {
  6548. x.TestStrucCommon.I8n = 0
  6549. } else {
  6550. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6551. }
  6552. yyj84++
  6553. if yyhl84 {
  6554. yyb84 = yyj84 > l
  6555. } else {
  6556. yyb84 = r.CheckBreak()
  6557. }
  6558. if yyb84 {
  6559. r.ReadArrayEnd()
  6560. return
  6561. }
  6562. r.ReadArrayElem()
  6563. if r.TryDecodeAsNil() {
  6564. x.TestStrucCommon.Ui64 = 0
  6565. } else {
  6566. x.Ui64 = (uint64)(r.DecodeUint64())
  6567. }
  6568. yyj84++
  6569. if yyhl84 {
  6570. yyb84 = yyj84 > l
  6571. } else {
  6572. yyb84 = r.CheckBreak()
  6573. }
  6574. if yyb84 {
  6575. r.ReadArrayEnd()
  6576. return
  6577. }
  6578. r.ReadArrayElem()
  6579. if r.TryDecodeAsNil() {
  6580. x.TestStrucCommon.Ui32 = 0
  6581. } else {
  6582. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6583. }
  6584. yyj84++
  6585. if yyhl84 {
  6586. yyb84 = yyj84 > l
  6587. } else {
  6588. yyb84 = r.CheckBreak()
  6589. }
  6590. if yyb84 {
  6591. r.ReadArrayEnd()
  6592. return
  6593. }
  6594. r.ReadArrayElem()
  6595. if r.TryDecodeAsNil() {
  6596. x.TestStrucCommon.Ui16 = 0
  6597. } else {
  6598. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6599. }
  6600. yyj84++
  6601. if yyhl84 {
  6602. yyb84 = yyj84 > l
  6603. } else {
  6604. yyb84 = r.CheckBreak()
  6605. }
  6606. if yyb84 {
  6607. r.ReadArrayEnd()
  6608. return
  6609. }
  6610. r.ReadArrayElem()
  6611. if r.TryDecodeAsNil() {
  6612. x.TestStrucCommon.Ui8 = 0
  6613. } else {
  6614. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6615. }
  6616. yyj84++
  6617. if yyhl84 {
  6618. yyb84 = yyj84 > l
  6619. } else {
  6620. yyb84 = r.CheckBreak()
  6621. }
  6622. if yyb84 {
  6623. r.ReadArrayEnd()
  6624. return
  6625. }
  6626. r.ReadArrayElem()
  6627. if r.TryDecodeAsNil() {
  6628. x.TestStrucCommon.F64 = 0
  6629. } else {
  6630. x.F64 = (float64)(r.DecodeFloat64())
  6631. }
  6632. yyj84++
  6633. if yyhl84 {
  6634. yyb84 = yyj84 > l
  6635. } else {
  6636. yyb84 = r.CheckBreak()
  6637. }
  6638. if yyb84 {
  6639. r.ReadArrayEnd()
  6640. return
  6641. }
  6642. r.ReadArrayElem()
  6643. if r.TryDecodeAsNil() {
  6644. x.TestStrucCommon.F32 = 0
  6645. } else {
  6646. x.F32 = (float32)(r.DecodeFloat32As64())
  6647. }
  6648. yyj84++
  6649. if yyhl84 {
  6650. yyb84 = yyj84 > l
  6651. } else {
  6652. yyb84 = r.CheckBreak()
  6653. }
  6654. if yyb84 {
  6655. r.ReadArrayEnd()
  6656. return
  6657. }
  6658. r.ReadArrayElem()
  6659. if r.TryDecodeAsNil() {
  6660. x.TestStrucCommon.B = false
  6661. } else {
  6662. x.B = (bool)(r.DecodeBool())
  6663. }
  6664. yyj84++
  6665. if yyhl84 {
  6666. yyb84 = yyj84 > l
  6667. } else {
  6668. yyb84 = r.CheckBreak()
  6669. }
  6670. if yyb84 {
  6671. r.ReadArrayEnd()
  6672. return
  6673. }
  6674. r.ReadArrayElem()
  6675. if r.TryDecodeAsNil() {
  6676. x.TestStrucCommon.By = 0
  6677. } else {
  6678. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6679. }
  6680. yyj84++
  6681. if yyhl84 {
  6682. yyb84 = yyj84 > l
  6683. } else {
  6684. yyb84 = r.CheckBreak()
  6685. }
  6686. if yyb84 {
  6687. r.ReadArrayEnd()
  6688. return
  6689. }
  6690. r.ReadArrayElem()
  6691. if r.TryDecodeAsNil() {
  6692. x.TestStrucCommon.Sslice = nil
  6693. } else {
  6694. if false {
  6695. } else {
  6696. z.F.DecSliceStringX(&x.Sslice, d)
  6697. }
  6698. }
  6699. yyj84++
  6700. if yyhl84 {
  6701. yyb84 = yyj84 > l
  6702. } else {
  6703. yyb84 = r.CheckBreak()
  6704. }
  6705. if yyb84 {
  6706. r.ReadArrayEnd()
  6707. return
  6708. }
  6709. r.ReadArrayElem()
  6710. if r.TryDecodeAsNil() {
  6711. x.TestStrucCommon.I64slice = nil
  6712. } else {
  6713. if false {
  6714. } else {
  6715. z.F.DecSliceInt64X(&x.I64slice, d)
  6716. }
  6717. }
  6718. yyj84++
  6719. if yyhl84 {
  6720. yyb84 = yyj84 > l
  6721. } else {
  6722. yyb84 = r.CheckBreak()
  6723. }
  6724. if yyb84 {
  6725. r.ReadArrayEnd()
  6726. return
  6727. }
  6728. r.ReadArrayElem()
  6729. if r.TryDecodeAsNil() {
  6730. x.TestStrucCommon.I16slice = nil
  6731. } else {
  6732. if false {
  6733. } else {
  6734. z.F.DecSliceInt16X(&x.I16slice, d)
  6735. }
  6736. }
  6737. yyj84++
  6738. if yyhl84 {
  6739. yyb84 = yyj84 > l
  6740. } else {
  6741. yyb84 = r.CheckBreak()
  6742. }
  6743. if yyb84 {
  6744. r.ReadArrayEnd()
  6745. return
  6746. }
  6747. r.ReadArrayElem()
  6748. if r.TryDecodeAsNil() {
  6749. x.TestStrucCommon.Ui64slice = nil
  6750. } else {
  6751. if false {
  6752. } else {
  6753. z.F.DecSliceUint64X(&x.Ui64slice, d)
  6754. }
  6755. }
  6756. yyj84++
  6757. if yyhl84 {
  6758. yyb84 = yyj84 > l
  6759. } else {
  6760. yyb84 = r.CheckBreak()
  6761. }
  6762. if yyb84 {
  6763. r.ReadArrayEnd()
  6764. return
  6765. }
  6766. r.ReadArrayElem()
  6767. if r.TryDecodeAsNil() {
  6768. x.TestStrucCommon.Ui8slice = nil
  6769. } else {
  6770. if false {
  6771. } else {
  6772. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  6773. }
  6774. }
  6775. yyj84++
  6776. if yyhl84 {
  6777. yyb84 = yyj84 > l
  6778. } else {
  6779. yyb84 = r.CheckBreak()
  6780. }
  6781. if yyb84 {
  6782. r.ReadArrayEnd()
  6783. return
  6784. }
  6785. r.ReadArrayElem()
  6786. if r.TryDecodeAsNil() {
  6787. x.TestStrucCommon.Bslice = nil
  6788. } else {
  6789. if false {
  6790. } else {
  6791. z.F.DecSliceBoolX(&x.Bslice, d)
  6792. }
  6793. }
  6794. yyj84++
  6795. if yyhl84 {
  6796. yyb84 = yyj84 > l
  6797. } else {
  6798. yyb84 = r.CheckBreak()
  6799. }
  6800. if yyb84 {
  6801. r.ReadArrayEnd()
  6802. return
  6803. }
  6804. r.ReadArrayElem()
  6805. if r.TryDecodeAsNil() {
  6806. x.TestStrucCommon.Byslice = nil
  6807. } else {
  6808. if false {
  6809. } else {
  6810. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  6811. }
  6812. }
  6813. yyj84++
  6814. if yyhl84 {
  6815. yyb84 = yyj84 > l
  6816. } else {
  6817. yyb84 = r.CheckBreak()
  6818. }
  6819. if yyb84 {
  6820. r.ReadArrayEnd()
  6821. return
  6822. }
  6823. r.ReadArrayElem()
  6824. if r.TryDecodeAsNil() {
  6825. x.TestStrucCommon.Iptrslice = nil
  6826. } else {
  6827. if false {
  6828. } else {
  6829. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  6830. }
  6831. }
  6832. yyj84++
  6833. if yyhl84 {
  6834. yyb84 = yyj84 > l
  6835. } else {
  6836. yyb84 = r.CheckBreak()
  6837. }
  6838. if yyb84 {
  6839. r.ReadArrayEnd()
  6840. return
  6841. }
  6842. r.ReadArrayElem()
  6843. if r.TryDecodeAsNil() {
  6844. x.TestStrucCommon.WrapSliceInt64 = nil
  6845. } else {
  6846. x.WrapSliceInt64.CodecDecodeSelf(d)
  6847. }
  6848. yyj84++
  6849. if yyhl84 {
  6850. yyb84 = yyj84 > l
  6851. } else {
  6852. yyb84 = r.CheckBreak()
  6853. }
  6854. if yyb84 {
  6855. r.ReadArrayEnd()
  6856. return
  6857. }
  6858. r.ReadArrayElem()
  6859. if r.TryDecodeAsNil() {
  6860. x.TestStrucCommon.WrapSliceString = nil
  6861. } else {
  6862. x.WrapSliceString.CodecDecodeSelf(d)
  6863. }
  6864. yyj84++
  6865. if yyhl84 {
  6866. yyb84 = yyj84 > l
  6867. } else {
  6868. yyb84 = r.CheckBreak()
  6869. }
  6870. if yyb84 {
  6871. r.ReadArrayEnd()
  6872. return
  6873. }
  6874. r.ReadArrayElem()
  6875. if r.TryDecodeAsNil() {
  6876. x.TestStrucCommon.Msi64 = nil
  6877. } else {
  6878. if false {
  6879. } else {
  6880. z.F.DecMapStringInt64X(&x.Msi64, d)
  6881. }
  6882. }
  6883. yyj84++
  6884. if yyhl84 {
  6885. yyb84 = yyj84 > l
  6886. } else {
  6887. yyb84 = r.CheckBreak()
  6888. }
  6889. if yyb84 {
  6890. r.ReadArrayEnd()
  6891. return
  6892. }
  6893. r.ReadArrayElem()
  6894. if r.TryDecodeAsNil() {
  6895. x.TestStrucCommon.Simplef = testSimpleFields{}
  6896. } else {
  6897. x.Simplef.CodecDecodeSelf(d)
  6898. }
  6899. yyj84++
  6900. if yyhl84 {
  6901. yyb84 = yyj84 > l
  6902. } else {
  6903. yyb84 = r.CheckBreak()
  6904. }
  6905. if yyb84 {
  6906. r.ReadArrayEnd()
  6907. return
  6908. }
  6909. r.ReadArrayElem()
  6910. if r.TryDecodeAsNil() {
  6911. x.TestStrucCommon.SstrUi64T = nil
  6912. } else {
  6913. if false {
  6914. } else {
  6915. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  6916. }
  6917. }
  6918. yyj84++
  6919. if yyhl84 {
  6920. yyb84 = yyj84 > l
  6921. } else {
  6922. yyb84 = r.CheckBreak()
  6923. }
  6924. if yyb84 {
  6925. r.ReadArrayEnd()
  6926. return
  6927. }
  6928. r.ReadArrayElem()
  6929. if r.TryDecodeAsNil() {
  6930. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6931. } else {
  6932. x.AS = (string)(r.DecodeString())
  6933. }
  6934. yyj84++
  6935. if yyhl84 {
  6936. yyb84 = yyj84 > l
  6937. } else {
  6938. yyb84 = r.CheckBreak()
  6939. }
  6940. if yyb84 {
  6941. r.ReadArrayEnd()
  6942. return
  6943. }
  6944. r.ReadArrayElem()
  6945. if r.TryDecodeAsNil() {
  6946. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6947. } else {
  6948. x.AI64 = (int64)(r.DecodeInt64())
  6949. }
  6950. yyj84++
  6951. if yyhl84 {
  6952. yyb84 = yyj84 > l
  6953. } else {
  6954. yyb84 = r.CheckBreak()
  6955. }
  6956. if yyb84 {
  6957. r.ReadArrayEnd()
  6958. return
  6959. }
  6960. r.ReadArrayElem()
  6961. if r.TryDecodeAsNil() {
  6962. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6963. } else {
  6964. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6965. }
  6966. yyj84++
  6967. if yyhl84 {
  6968. yyb84 = yyj84 > l
  6969. } else {
  6970. yyb84 = r.CheckBreak()
  6971. }
  6972. if yyb84 {
  6973. r.ReadArrayEnd()
  6974. return
  6975. }
  6976. r.ReadArrayElem()
  6977. if r.TryDecodeAsNil() {
  6978. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6979. } else {
  6980. x.AUi64 = (uint64)(r.DecodeUint64())
  6981. }
  6982. yyj84++
  6983. if yyhl84 {
  6984. yyb84 = yyj84 > l
  6985. } else {
  6986. yyb84 = r.CheckBreak()
  6987. }
  6988. if yyb84 {
  6989. r.ReadArrayEnd()
  6990. return
  6991. }
  6992. r.ReadArrayElem()
  6993. if r.TryDecodeAsNil() {
  6994. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6995. } else {
  6996. if false {
  6997. } else {
  6998. z.F.DecSliceStringX(&x.ASslice, d)
  6999. }
  7000. }
  7001. yyj84++
  7002. if yyhl84 {
  7003. yyb84 = yyj84 > l
  7004. } else {
  7005. yyb84 = r.CheckBreak()
  7006. }
  7007. if yyb84 {
  7008. r.ReadArrayEnd()
  7009. return
  7010. }
  7011. r.ReadArrayElem()
  7012. if r.TryDecodeAsNil() {
  7013. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  7014. } else {
  7015. if false {
  7016. } else {
  7017. z.F.DecSliceInt64X(&x.AI64slice, d)
  7018. }
  7019. }
  7020. yyj84++
  7021. if yyhl84 {
  7022. yyb84 = yyj84 > l
  7023. } else {
  7024. yyb84 = r.CheckBreak()
  7025. }
  7026. if yyb84 {
  7027. r.ReadArrayEnd()
  7028. return
  7029. }
  7030. r.ReadArrayElem()
  7031. if r.TryDecodeAsNil() {
  7032. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  7033. } else {
  7034. if false {
  7035. } else {
  7036. z.F.DecSliceUint64X(&x.AUi64slice, d)
  7037. }
  7038. }
  7039. yyj84++
  7040. if yyhl84 {
  7041. yyb84 = yyj84 > l
  7042. } else {
  7043. yyb84 = r.CheckBreak()
  7044. }
  7045. if yyb84 {
  7046. r.ReadArrayEnd()
  7047. return
  7048. }
  7049. r.ReadArrayElem()
  7050. if r.TryDecodeAsNil() {
  7051. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  7052. } else {
  7053. if false {
  7054. } else {
  7055. z.F.DecSliceFloat64X(&x.AF64slice, d)
  7056. }
  7057. }
  7058. yyj84++
  7059. if yyhl84 {
  7060. yyb84 = yyj84 > l
  7061. } else {
  7062. yyb84 = r.CheckBreak()
  7063. }
  7064. if yyb84 {
  7065. r.ReadArrayEnd()
  7066. return
  7067. }
  7068. r.ReadArrayElem()
  7069. if r.TryDecodeAsNil() {
  7070. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  7071. } else {
  7072. if false {
  7073. } else {
  7074. z.F.DecSliceFloat32X(&x.AF32slice, d)
  7075. }
  7076. }
  7077. yyj84++
  7078. if yyhl84 {
  7079. yyb84 = yyj84 > l
  7080. } else {
  7081. yyb84 = r.CheckBreak()
  7082. }
  7083. if yyb84 {
  7084. r.ReadArrayEnd()
  7085. return
  7086. }
  7087. r.ReadArrayElem()
  7088. if r.TryDecodeAsNil() {
  7089. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  7090. } else {
  7091. if false {
  7092. } else {
  7093. z.F.DecMapStringUint16X(&x.AMSU16, d)
  7094. }
  7095. }
  7096. yyj84++
  7097. if yyhl84 {
  7098. yyb84 = yyj84 > l
  7099. } else {
  7100. yyb84 = r.CheckBreak()
  7101. }
  7102. if yyb84 {
  7103. r.ReadArrayEnd()
  7104. return
  7105. }
  7106. r.ReadArrayElem()
  7107. if r.TryDecodeAsNil() {
  7108. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  7109. } else {
  7110. if false {
  7111. } else {
  7112. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  7113. }
  7114. }
  7115. yyj84++
  7116. if yyhl84 {
  7117. yyb84 = yyj84 > l
  7118. } else {
  7119. yyb84 = r.CheckBreak()
  7120. }
  7121. if yyb84 {
  7122. r.ReadArrayEnd()
  7123. return
  7124. }
  7125. r.ReadArrayElem()
  7126. if r.TryDecodeAsNil() {
  7127. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  7128. } else {
  7129. if false {
  7130. } else {
  7131. z.F.DecSliceInt64X(&x.A164slice0, d)
  7132. }
  7133. }
  7134. yyj84++
  7135. if yyhl84 {
  7136. yyb84 = yyj84 > l
  7137. } else {
  7138. yyb84 = r.CheckBreak()
  7139. }
  7140. if yyb84 {
  7141. r.ReadArrayEnd()
  7142. return
  7143. }
  7144. r.ReadArrayElem()
  7145. if r.TryDecodeAsNil() {
  7146. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  7147. } else {
  7148. if false {
  7149. } else {
  7150. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  7151. }
  7152. }
  7153. yyj84++
  7154. if yyhl84 {
  7155. yyb84 = yyj84 > l
  7156. } else {
  7157. yyb84 = r.CheckBreak()
  7158. }
  7159. if yyb84 {
  7160. r.ReadArrayEnd()
  7161. return
  7162. }
  7163. r.ReadArrayElem()
  7164. if r.TryDecodeAsNil() {
  7165. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  7166. } else {
  7167. if false {
  7168. } else {
  7169. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  7170. }
  7171. }
  7172. yyj84++
  7173. if yyhl84 {
  7174. yyb84 = yyj84 > l
  7175. } else {
  7176. yyb84 = r.CheckBreak()
  7177. }
  7178. if yyb84 {
  7179. r.ReadArrayEnd()
  7180. return
  7181. }
  7182. r.ReadArrayElem()
  7183. if r.TryDecodeAsNil() {
  7184. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  7185. } else {
  7186. if false {
  7187. } else {
  7188. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  7189. }
  7190. }
  7191. yyj84++
  7192. if yyhl84 {
  7193. yyb84 = yyj84 > l
  7194. } else {
  7195. yyb84 = r.CheckBreak()
  7196. }
  7197. if yyb84 {
  7198. r.ReadArrayEnd()
  7199. return
  7200. }
  7201. r.ReadArrayElem()
  7202. if r.TryDecodeAsNil() {
  7203. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  7204. } else {
  7205. x.NotAnon.CodecDecodeSelf(d)
  7206. }
  7207. yyj84++
  7208. if yyhl84 {
  7209. yyb84 = yyj84 > l
  7210. } else {
  7211. yyb84 = r.CheckBreak()
  7212. }
  7213. if yyb84 {
  7214. r.ReadArrayEnd()
  7215. return
  7216. }
  7217. r.ReadArrayElem()
  7218. if r.TryDecodeAsNil() {
  7219. x.TestStrucCommon.Nmap = nil
  7220. } else {
  7221. if false {
  7222. } else {
  7223. z.F.DecMapStringBoolX(&x.Nmap, d)
  7224. }
  7225. }
  7226. yyj84++
  7227. if yyhl84 {
  7228. yyb84 = yyj84 > l
  7229. } else {
  7230. yyb84 = r.CheckBreak()
  7231. }
  7232. if yyb84 {
  7233. r.ReadArrayEnd()
  7234. return
  7235. }
  7236. r.ReadArrayElem()
  7237. if r.TryDecodeAsNil() {
  7238. x.TestStrucCommon.Nslice = nil
  7239. } else {
  7240. if false {
  7241. } else {
  7242. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  7243. }
  7244. }
  7245. yyj84++
  7246. if yyhl84 {
  7247. yyb84 = yyj84 > l
  7248. } else {
  7249. yyb84 = r.CheckBreak()
  7250. }
  7251. if yyb84 {
  7252. r.ReadArrayEnd()
  7253. return
  7254. }
  7255. r.ReadArrayElem()
  7256. if r.TryDecodeAsNil() {
  7257. if true && x.TestStrucCommon.Nint64 != nil {
  7258. x.TestStrucCommon.Nint64 = nil
  7259. }
  7260. } else {
  7261. if x.TestStrucCommon.Nint64 == nil {
  7262. x.TestStrucCommon.Nint64 = new(int64)
  7263. }
  7264. if false {
  7265. } else {
  7266. *x.Nint64 = (int64)(r.DecodeInt64())
  7267. }
  7268. }
  7269. yyj84++
  7270. if yyhl84 {
  7271. yyb84 = yyj84 > l
  7272. } else {
  7273. yyb84 = r.CheckBreak()
  7274. }
  7275. if yyb84 {
  7276. r.ReadArrayEnd()
  7277. return
  7278. }
  7279. r.ReadArrayElem()
  7280. if r.TryDecodeAsNil() {
  7281. x.Mtsptr = nil
  7282. } else {
  7283. if false {
  7284. } else {
  7285. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  7286. }
  7287. }
  7288. yyj84++
  7289. if yyhl84 {
  7290. yyb84 = yyj84 > l
  7291. } else {
  7292. yyb84 = r.CheckBreak()
  7293. }
  7294. if yyb84 {
  7295. r.ReadArrayEnd()
  7296. return
  7297. }
  7298. r.ReadArrayElem()
  7299. if r.TryDecodeAsNil() {
  7300. x.Mts = nil
  7301. } else {
  7302. if false {
  7303. } else {
  7304. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  7305. }
  7306. }
  7307. yyj84++
  7308. if yyhl84 {
  7309. yyb84 = yyj84 > l
  7310. } else {
  7311. yyb84 = r.CheckBreak()
  7312. }
  7313. if yyb84 {
  7314. r.ReadArrayEnd()
  7315. return
  7316. }
  7317. r.ReadArrayElem()
  7318. if r.TryDecodeAsNil() {
  7319. x.Its = nil
  7320. } else {
  7321. if false {
  7322. } else {
  7323. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  7324. }
  7325. }
  7326. yyj84++
  7327. if yyhl84 {
  7328. yyb84 = yyj84 > l
  7329. } else {
  7330. yyb84 = r.CheckBreak()
  7331. }
  7332. if yyb84 {
  7333. r.ReadArrayEnd()
  7334. return
  7335. }
  7336. r.ReadArrayElem()
  7337. if r.TryDecodeAsNil() {
  7338. if true && x.Nteststruc != nil {
  7339. x.Nteststruc = nil
  7340. }
  7341. } else {
  7342. if x.Nteststruc == nil {
  7343. x.Nteststruc = new(TestStruc)
  7344. }
  7345. x.Nteststruc.CodecDecodeSelf(d)
  7346. }
  7347. for {
  7348. yyj84++
  7349. if yyhl84 {
  7350. yyb84 = yyj84 > l
  7351. } else {
  7352. yyb84 = r.CheckBreak()
  7353. }
  7354. if yyb84 {
  7355. break
  7356. }
  7357. r.ReadArrayElem()
  7358. z.DecStructFieldNotFound(yyj84-1, "")
  7359. }
  7360. r.ReadArrayEnd()
  7361. }
  7362. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  7363. var h codecSelfer19780
  7364. z, r := GenHelperEncoder(e)
  7365. _, _, _ = h, z, r
  7366. if false {
  7367. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7368. z.EncExtension(x, yyxt1)
  7369. } else {
  7370. r.EncodeBool(bool(x))
  7371. }
  7372. }
  7373. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  7374. var h codecSelfer19780
  7375. z, r := GenHelperDecoder(d)
  7376. _, _, _ = h, z, r
  7377. if false {
  7378. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7379. z.DecExtension(x, yyxt1)
  7380. } else {
  7381. *x = (Bbool)(r.DecodeBool())
  7382. }
  7383. }
  7384. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  7385. var h codecSelfer19780
  7386. z, r := GenHelperEncoder(e)
  7387. _, _, _ = h, z, r
  7388. if x == nil {
  7389. r.EncodeNil()
  7390. } else {
  7391. if false {
  7392. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7393. z.EncExtension(x, yyxt1)
  7394. } else {
  7395. h.encAarray((*Aarray)(x), e)
  7396. }
  7397. }
  7398. }
  7399. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  7400. var h codecSelfer19780
  7401. z, r := GenHelperDecoder(d)
  7402. _, _, _ = h, z, r
  7403. if false {
  7404. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7405. z.DecExtension(x, yyxt1)
  7406. } else {
  7407. h.decAarray((*Aarray)(x), d)
  7408. }
  7409. }
  7410. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  7411. var h codecSelfer19780
  7412. z, r := GenHelperEncoder(e)
  7413. _, _, _ = h, z, r
  7414. if false {
  7415. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7416. z.EncExtension(x, yyxt1)
  7417. } else {
  7418. if z.EncBasicHandle().StringToRaw {
  7419. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  7420. } else {
  7421. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  7422. }
  7423. }
  7424. }
  7425. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  7426. var h codecSelfer19780
  7427. z, r := GenHelperDecoder(d)
  7428. _, _, _ = h, z, r
  7429. if false {
  7430. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7431. z.DecExtension(x, yyxt1)
  7432. } else {
  7433. *x = (Sstring)(r.DecodeString())
  7434. }
  7435. }
  7436. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  7437. var h codecSelfer19780
  7438. z, r := GenHelperEncoder(e)
  7439. _, _, _ = h, z, r
  7440. if x == nil {
  7441. r.EncodeNil()
  7442. } else {
  7443. if false {
  7444. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7445. z.EncExtension(x, yyxt1)
  7446. } else {
  7447. yysep2 := !z.EncBinary()
  7448. yy2arr2 := z.EncBasicHandle().StructToArray
  7449. _, _ = yysep2, yy2arr2
  7450. const yyr2 bool = false // struct tag has 'toArray'
  7451. if yyr2 || yy2arr2 {
  7452. r.WriteArrayStart(1)
  7453. } else {
  7454. r.WriteMapStart(1)
  7455. }
  7456. if yyr2 || yy2arr2 {
  7457. r.WriteArrayElem()
  7458. if false {
  7459. } else {
  7460. r.EncodeInt(int64(x.A))
  7461. }
  7462. } else {
  7463. r.WriteMapElemKey()
  7464. if z.IsJSONHandle() {
  7465. z.WriteStr("\"A\"")
  7466. } else {
  7467. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7468. }
  7469. r.WriteMapElemValue()
  7470. if false {
  7471. } else {
  7472. r.EncodeInt(int64(x.A))
  7473. }
  7474. }
  7475. if yyr2 || yy2arr2 {
  7476. r.WriteArrayEnd()
  7477. } else {
  7478. r.WriteMapEnd()
  7479. }
  7480. }
  7481. }
  7482. }
  7483. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  7484. var h codecSelfer19780
  7485. z, r := GenHelperDecoder(d)
  7486. _, _, _ = h, z, r
  7487. if false {
  7488. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7489. z.DecExtension(x, yyxt1)
  7490. } else {
  7491. yyct2 := r.ContainerType()
  7492. if yyct2 == codecSelferValueTypeMap19780 {
  7493. yyl2 := r.ReadMapStart()
  7494. if yyl2 == 0 {
  7495. r.ReadMapEnd()
  7496. } else {
  7497. x.codecDecodeSelfFromMap(yyl2, d)
  7498. }
  7499. } else if yyct2 == codecSelferValueTypeArray19780 {
  7500. yyl2 := r.ReadArrayStart()
  7501. if yyl2 == 0 {
  7502. r.ReadArrayEnd()
  7503. } else {
  7504. x.codecDecodeSelfFromArray(yyl2, d)
  7505. }
  7506. } else {
  7507. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7508. }
  7509. }
  7510. }
  7511. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  7512. var h codecSelfer19780
  7513. z, r := GenHelperDecoder(d)
  7514. _, _, _ = h, z, r
  7515. var yyhl3 bool = l >= 0
  7516. for yyj3 := 0; ; yyj3++ {
  7517. if yyhl3 {
  7518. if yyj3 >= l {
  7519. break
  7520. }
  7521. } else {
  7522. if r.CheckBreak() {
  7523. break
  7524. }
  7525. }
  7526. r.ReadMapElemKey()
  7527. yys3 := z.StringView(r.DecodeStringAsBytes())
  7528. r.ReadMapElemValue()
  7529. switch yys3 {
  7530. case "A":
  7531. if r.TryDecodeAsNil() {
  7532. x.A = 0
  7533. } else {
  7534. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7535. }
  7536. default:
  7537. z.DecStructFieldNotFound(-1, yys3)
  7538. } // end switch yys3
  7539. } // end for yyj3
  7540. r.ReadMapEnd()
  7541. }
  7542. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  7543. var h codecSelfer19780
  7544. z, r := GenHelperDecoder(d)
  7545. _, _, _ = h, z, r
  7546. var yyj5 int
  7547. var yyb5 bool
  7548. var yyhl5 bool = l >= 0
  7549. yyj5++
  7550. if yyhl5 {
  7551. yyb5 = yyj5 > l
  7552. } else {
  7553. yyb5 = r.CheckBreak()
  7554. }
  7555. if yyb5 {
  7556. r.ReadArrayEnd()
  7557. return
  7558. }
  7559. r.ReadArrayElem()
  7560. if r.TryDecodeAsNil() {
  7561. x.A = 0
  7562. } else {
  7563. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7564. }
  7565. for {
  7566. yyj5++
  7567. if yyhl5 {
  7568. yyb5 = yyj5 > l
  7569. } else {
  7570. yyb5 = r.CheckBreak()
  7571. }
  7572. if yyb5 {
  7573. break
  7574. }
  7575. r.ReadArrayElem()
  7576. z.DecStructFieldNotFound(yyj5-1, "")
  7577. }
  7578. r.ReadArrayEnd()
  7579. }
  7580. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  7581. var h codecSelfer19780
  7582. z, r := GenHelperEncoder(e)
  7583. _, _, _ = h, z, r
  7584. if x == nil {
  7585. r.EncodeNil()
  7586. } else {
  7587. if false {
  7588. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7589. z.EncExtension(x, yyxt1)
  7590. } else {
  7591. yysep2 := !z.EncBinary()
  7592. yy2arr2 := z.EncBasicHandle().StructToArray
  7593. _, _ = yysep2, yy2arr2
  7594. const yyr2 bool = false // struct tag has 'toArray'
  7595. if yyr2 || yy2arr2 {
  7596. r.WriteArrayStart(5)
  7597. } else {
  7598. r.WriteMapStart(5)
  7599. }
  7600. if yyr2 || yy2arr2 {
  7601. r.WriteArrayElem()
  7602. if false {
  7603. } else {
  7604. r.EncodeInt(int64(x.A))
  7605. }
  7606. } else {
  7607. r.WriteMapElemKey()
  7608. if z.IsJSONHandle() {
  7609. z.WriteStr("\"A\"")
  7610. } else {
  7611. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7612. }
  7613. r.WriteMapElemValue()
  7614. if false {
  7615. } else {
  7616. r.EncodeInt(int64(x.A))
  7617. }
  7618. }
  7619. if yyr2 || yy2arr2 {
  7620. r.WriteArrayElem()
  7621. if false {
  7622. } else {
  7623. r.EncodeBool(bool(x.B))
  7624. }
  7625. } else {
  7626. r.WriteMapElemKey()
  7627. if z.IsJSONHandle() {
  7628. z.WriteStr("\"B\"")
  7629. } else {
  7630. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7631. }
  7632. r.WriteMapElemValue()
  7633. if false {
  7634. } else {
  7635. r.EncodeBool(bool(x.B))
  7636. }
  7637. }
  7638. var yyn9 bool
  7639. if x.Ssmallptr == nil {
  7640. yyn9 = true
  7641. goto LABEL9
  7642. }
  7643. LABEL9:
  7644. if yyr2 || yy2arr2 {
  7645. if yyn9 {
  7646. r.WriteArrayElem()
  7647. r.EncodeNil()
  7648. } else {
  7649. r.WriteArrayElem()
  7650. if x.Ssmallptr == nil {
  7651. r.EncodeNil()
  7652. } else {
  7653. x.Ssmallptr.CodecEncodeSelf(e)
  7654. }
  7655. }
  7656. } else {
  7657. r.WriteMapElemKey()
  7658. if z.IsJSONHandle() {
  7659. z.WriteStr("\"Ssmallptr\"")
  7660. } else {
  7661. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  7662. }
  7663. r.WriteMapElemValue()
  7664. if yyn9 {
  7665. r.EncodeNil()
  7666. } else {
  7667. if x.Ssmallptr == nil {
  7668. r.EncodeNil()
  7669. } else {
  7670. x.Ssmallptr.CodecEncodeSelf(e)
  7671. }
  7672. }
  7673. }
  7674. var yyn12 bool
  7675. if x.Ssmall == nil {
  7676. yyn12 = true
  7677. goto LABEL12
  7678. }
  7679. LABEL12:
  7680. if yyr2 || yy2arr2 {
  7681. if yyn12 {
  7682. r.WriteArrayElem()
  7683. r.EncodeNil()
  7684. } else {
  7685. r.WriteArrayElem()
  7686. if x.Ssmall == nil {
  7687. r.EncodeNil()
  7688. } else {
  7689. x.Ssmall.CodecEncodeSelf(e)
  7690. }
  7691. }
  7692. } else {
  7693. r.WriteMapElemKey()
  7694. if z.IsJSONHandle() {
  7695. z.WriteStr("\"Ssmall\"")
  7696. } else {
  7697. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  7698. }
  7699. r.WriteMapElemValue()
  7700. if yyn12 {
  7701. r.EncodeNil()
  7702. } else {
  7703. if x.Ssmall == nil {
  7704. r.EncodeNil()
  7705. } else {
  7706. x.Ssmall.CodecEncodeSelf(e)
  7707. }
  7708. }
  7709. }
  7710. var yyn15 bool
  7711. if x.Sptr == nil {
  7712. yyn15 = true
  7713. goto LABEL15
  7714. }
  7715. LABEL15:
  7716. if yyr2 || yy2arr2 {
  7717. if yyn15 {
  7718. r.WriteArrayElem()
  7719. r.EncodeNil()
  7720. } else {
  7721. r.WriteArrayElem()
  7722. if x.Sptr == nil {
  7723. r.EncodeNil()
  7724. } else {
  7725. x.Sptr.CodecEncodeSelf(e)
  7726. }
  7727. }
  7728. } else {
  7729. r.WriteMapElemKey()
  7730. if z.IsJSONHandle() {
  7731. z.WriteStr("\"Sptr\"")
  7732. } else {
  7733. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  7734. }
  7735. r.WriteMapElemValue()
  7736. if yyn15 {
  7737. r.EncodeNil()
  7738. } else {
  7739. if x.Sptr == nil {
  7740. r.EncodeNil()
  7741. } else {
  7742. x.Sptr.CodecEncodeSelf(e)
  7743. }
  7744. }
  7745. }
  7746. if yyr2 || yy2arr2 {
  7747. r.WriteArrayEnd()
  7748. } else {
  7749. r.WriteMapEnd()
  7750. }
  7751. }
  7752. }
  7753. }
  7754. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  7755. var h codecSelfer19780
  7756. z, r := GenHelperDecoder(d)
  7757. _, _, _ = h, z, r
  7758. if false {
  7759. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7760. z.DecExtension(x, yyxt1)
  7761. } else {
  7762. yyct2 := r.ContainerType()
  7763. if yyct2 == codecSelferValueTypeMap19780 {
  7764. yyl2 := r.ReadMapStart()
  7765. if yyl2 == 0 {
  7766. r.ReadMapEnd()
  7767. } else {
  7768. x.codecDecodeSelfFromMap(yyl2, d)
  7769. }
  7770. } else if yyct2 == codecSelferValueTypeArray19780 {
  7771. yyl2 := r.ReadArrayStart()
  7772. if yyl2 == 0 {
  7773. r.ReadArrayEnd()
  7774. } else {
  7775. x.codecDecodeSelfFromArray(yyl2, d)
  7776. }
  7777. } else {
  7778. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7779. }
  7780. }
  7781. }
  7782. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  7783. var h codecSelfer19780
  7784. z, r := GenHelperDecoder(d)
  7785. _, _, _ = h, z, r
  7786. var yyhl3 bool = l >= 0
  7787. for yyj3 := 0; ; yyj3++ {
  7788. if yyhl3 {
  7789. if yyj3 >= l {
  7790. break
  7791. }
  7792. } else {
  7793. if r.CheckBreak() {
  7794. break
  7795. }
  7796. }
  7797. r.ReadMapElemKey()
  7798. yys3 := z.StringView(r.DecodeStringAsBytes())
  7799. r.ReadMapElemValue()
  7800. switch yys3 {
  7801. case "A":
  7802. if r.TryDecodeAsNil() {
  7803. x.A = 0
  7804. } else {
  7805. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7806. }
  7807. case "B":
  7808. if r.TryDecodeAsNil() {
  7809. x.B = false
  7810. } else {
  7811. x.B = (bool)(r.DecodeBool())
  7812. }
  7813. case "Ssmallptr":
  7814. if r.TryDecodeAsNil() {
  7815. if true && x.Ssmallptr != nil {
  7816. x.Ssmallptr = nil
  7817. }
  7818. } else {
  7819. if x.Ssmallptr == nil {
  7820. x.Ssmallptr = new(Sstructsmall)
  7821. }
  7822. x.Ssmallptr.CodecDecodeSelf(d)
  7823. }
  7824. case "Ssmall":
  7825. if r.TryDecodeAsNil() {
  7826. if true && x.Ssmall != nil {
  7827. x.Ssmall = nil
  7828. }
  7829. } else {
  7830. if x.Ssmall == nil {
  7831. x.Ssmall = new(Sstructsmall)
  7832. }
  7833. x.Ssmall.CodecDecodeSelf(d)
  7834. }
  7835. case "Sptr":
  7836. if r.TryDecodeAsNil() {
  7837. if true && x.Sptr != nil {
  7838. x.Sptr = nil
  7839. }
  7840. } else {
  7841. if x.Sptr == nil {
  7842. x.Sptr = new(Sstructbig)
  7843. }
  7844. x.Sptr.CodecDecodeSelf(d)
  7845. }
  7846. default:
  7847. z.DecStructFieldNotFound(-1, yys3)
  7848. } // end switch yys3
  7849. } // end for yyj3
  7850. r.ReadMapEnd()
  7851. }
  7852. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  7853. var h codecSelfer19780
  7854. z, r := GenHelperDecoder(d)
  7855. _, _, _ = h, z, r
  7856. var yyj9 int
  7857. var yyb9 bool
  7858. var yyhl9 bool = l >= 0
  7859. yyj9++
  7860. if yyhl9 {
  7861. yyb9 = yyj9 > l
  7862. } else {
  7863. yyb9 = r.CheckBreak()
  7864. }
  7865. if yyb9 {
  7866. r.ReadArrayEnd()
  7867. return
  7868. }
  7869. r.ReadArrayElem()
  7870. if r.TryDecodeAsNil() {
  7871. x.A = 0
  7872. } else {
  7873. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7874. }
  7875. yyj9++
  7876. if yyhl9 {
  7877. yyb9 = yyj9 > l
  7878. } else {
  7879. yyb9 = r.CheckBreak()
  7880. }
  7881. if yyb9 {
  7882. r.ReadArrayEnd()
  7883. return
  7884. }
  7885. r.ReadArrayElem()
  7886. if r.TryDecodeAsNil() {
  7887. x.B = false
  7888. } else {
  7889. x.B = (bool)(r.DecodeBool())
  7890. }
  7891. yyj9++
  7892. if yyhl9 {
  7893. yyb9 = yyj9 > l
  7894. } else {
  7895. yyb9 = r.CheckBreak()
  7896. }
  7897. if yyb9 {
  7898. r.ReadArrayEnd()
  7899. return
  7900. }
  7901. r.ReadArrayElem()
  7902. if r.TryDecodeAsNil() {
  7903. if true && x.Ssmallptr != nil {
  7904. x.Ssmallptr = nil
  7905. }
  7906. } else {
  7907. if x.Ssmallptr == nil {
  7908. x.Ssmallptr = new(Sstructsmall)
  7909. }
  7910. x.Ssmallptr.CodecDecodeSelf(d)
  7911. }
  7912. yyj9++
  7913. if yyhl9 {
  7914. yyb9 = yyj9 > l
  7915. } else {
  7916. yyb9 = r.CheckBreak()
  7917. }
  7918. if yyb9 {
  7919. r.ReadArrayEnd()
  7920. return
  7921. }
  7922. r.ReadArrayElem()
  7923. if r.TryDecodeAsNil() {
  7924. if true && x.Ssmall != nil {
  7925. x.Ssmall = nil
  7926. }
  7927. } else {
  7928. if x.Ssmall == nil {
  7929. x.Ssmall = new(Sstructsmall)
  7930. }
  7931. x.Ssmall.CodecDecodeSelf(d)
  7932. }
  7933. yyj9++
  7934. if yyhl9 {
  7935. yyb9 = yyj9 > l
  7936. } else {
  7937. yyb9 = r.CheckBreak()
  7938. }
  7939. if yyb9 {
  7940. r.ReadArrayEnd()
  7941. return
  7942. }
  7943. r.ReadArrayElem()
  7944. if r.TryDecodeAsNil() {
  7945. if true && x.Sptr != nil {
  7946. x.Sptr = nil
  7947. }
  7948. } else {
  7949. if x.Sptr == nil {
  7950. x.Sptr = new(Sstructbig)
  7951. }
  7952. x.Sptr.CodecDecodeSelf(d)
  7953. }
  7954. for {
  7955. yyj9++
  7956. if yyhl9 {
  7957. yyb9 = yyj9 > l
  7958. } else {
  7959. yyb9 = r.CheckBreak()
  7960. }
  7961. if yyb9 {
  7962. break
  7963. }
  7964. r.ReadArrayElem()
  7965. z.DecStructFieldNotFound(yyj9-1, "")
  7966. }
  7967. r.ReadArrayEnd()
  7968. }
  7969. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  7970. var h codecSelfer19780
  7971. z, r := GenHelperEncoder(e)
  7972. _, _, _ = h, z, r
  7973. if x == nil {
  7974. r.EncodeNil()
  7975. } else {
  7976. if false {
  7977. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7978. z.EncExtension(x, yyxt1)
  7979. } else {
  7980. yysep2 := !z.EncBinary()
  7981. yy2arr2 := z.EncBasicHandle().StructToArray
  7982. _, _ = yysep2, yy2arr2
  7983. const yyr2 bool = true // struct tag has 'toArray'
  7984. if yyr2 || yy2arr2 {
  7985. r.WriteArrayStart(5)
  7986. } else {
  7987. r.WriteMapStart(5)
  7988. }
  7989. if yyr2 || yy2arr2 {
  7990. r.WriteArrayElem()
  7991. if false {
  7992. } else {
  7993. r.EncodeInt(int64(x.A))
  7994. }
  7995. } else {
  7996. r.WriteMapElemKey()
  7997. if z.IsJSONHandle() {
  7998. z.WriteStr("\"A\"")
  7999. } else {
  8000. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8001. }
  8002. r.WriteMapElemValue()
  8003. if false {
  8004. } else {
  8005. r.EncodeInt(int64(x.A))
  8006. }
  8007. }
  8008. if yyr2 || yy2arr2 {
  8009. r.WriteArrayElem()
  8010. if false {
  8011. } else {
  8012. r.EncodeBool(bool(x.B))
  8013. }
  8014. } else {
  8015. r.WriteMapElemKey()
  8016. if z.IsJSONHandle() {
  8017. z.WriteStr("\"B\"")
  8018. } else {
  8019. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8020. }
  8021. r.WriteMapElemValue()
  8022. if false {
  8023. } else {
  8024. r.EncodeBool(bool(x.B))
  8025. }
  8026. }
  8027. var yyn9 bool
  8028. if x.Ssmallptr == nil {
  8029. yyn9 = true
  8030. goto LABEL9
  8031. }
  8032. LABEL9:
  8033. if yyr2 || yy2arr2 {
  8034. if yyn9 {
  8035. r.WriteArrayElem()
  8036. r.EncodeNil()
  8037. } else {
  8038. r.WriteArrayElem()
  8039. if x.Ssmallptr == nil {
  8040. r.EncodeNil()
  8041. } else {
  8042. x.Ssmallptr.CodecEncodeSelf(e)
  8043. }
  8044. }
  8045. } else {
  8046. r.WriteMapElemKey()
  8047. if z.IsJSONHandle() {
  8048. z.WriteStr("\"Ssmallptr\"")
  8049. } else {
  8050. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  8051. }
  8052. r.WriteMapElemValue()
  8053. if yyn9 {
  8054. r.EncodeNil()
  8055. } else {
  8056. if x.Ssmallptr == nil {
  8057. r.EncodeNil()
  8058. } else {
  8059. x.Ssmallptr.CodecEncodeSelf(e)
  8060. }
  8061. }
  8062. }
  8063. var yyn12 bool
  8064. if x.Ssmall == nil {
  8065. yyn12 = true
  8066. goto LABEL12
  8067. }
  8068. LABEL12:
  8069. if yyr2 || yy2arr2 {
  8070. if yyn12 {
  8071. r.WriteArrayElem()
  8072. r.EncodeNil()
  8073. } else {
  8074. r.WriteArrayElem()
  8075. if x.Ssmall == nil {
  8076. r.EncodeNil()
  8077. } else {
  8078. x.Ssmall.CodecEncodeSelf(e)
  8079. }
  8080. }
  8081. } else {
  8082. r.WriteMapElemKey()
  8083. if z.IsJSONHandle() {
  8084. z.WriteStr("\"Ssmall\"")
  8085. } else {
  8086. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  8087. }
  8088. r.WriteMapElemValue()
  8089. if yyn12 {
  8090. r.EncodeNil()
  8091. } else {
  8092. if x.Ssmall == nil {
  8093. r.EncodeNil()
  8094. } else {
  8095. x.Ssmall.CodecEncodeSelf(e)
  8096. }
  8097. }
  8098. }
  8099. var yyn15 bool
  8100. if x.Sptr == nil {
  8101. yyn15 = true
  8102. goto LABEL15
  8103. }
  8104. LABEL15:
  8105. if yyr2 || yy2arr2 {
  8106. if yyn15 {
  8107. r.WriteArrayElem()
  8108. r.EncodeNil()
  8109. } else {
  8110. r.WriteArrayElem()
  8111. if x.Sptr == nil {
  8112. r.EncodeNil()
  8113. } else {
  8114. x.Sptr.CodecEncodeSelf(e)
  8115. }
  8116. }
  8117. } else {
  8118. r.WriteMapElemKey()
  8119. if z.IsJSONHandle() {
  8120. z.WriteStr("\"Sptr\"")
  8121. } else {
  8122. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  8123. }
  8124. r.WriteMapElemValue()
  8125. if yyn15 {
  8126. r.EncodeNil()
  8127. } else {
  8128. if x.Sptr == nil {
  8129. r.EncodeNil()
  8130. } else {
  8131. x.Sptr.CodecEncodeSelf(e)
  8132. }
  8133. }
  8134. }
  8135. if yyr2 || yy2arr2 {
  8136. r.WriteArrayEnd()
  8137. } else {
  8138. r.WriteMapEnd()
  8139. }
  8140. }
  8141. }
  8142. }
  8143. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  8144. var h codecSelfer19780
  8145. z, r := GenHelperDecoder(d)
  8146. _, _, _ = h, z, r
  8147. if false {
  8148. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8149. z.DecExtension(x, yyxt1)
  8150. } else {
  8151. yyct2 := r.ContainerType()
  8152. if yyct2 == codecSelferValueTypeMap19780 {
  8153. yyl2 := r.ReadMapStart()
  8154. if yyl2 == 0 {
  8155. r.ReadMapEnd()
  8156. } else {
  8157. x.codecDecodeSelfFromMap(yyl2, d)
  8158. }
  8159. } else if yyct2 == codecSelferValueTypeArray19780 {
  8160. yyl2 := r.ReadArrayStart()
  8161. if yyl2 == 0 {
  8162. r.ReadArrayEnd()
  8163. } else {
  8164. x.codecDecodeSelfFromArray(yyl2, d)
  8165. }
  8166. } else {
  8167. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8168. }
  8169. }
  8170. }
  8171. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  8172. var h codecSelfer19780
  8173. z, r := GenHelperDecoder(d)
  8174. _, _, _ = h, z, r
  8175. var yyhl3 bool = l >= 0
  8176. for yyj3 := 0; ; yyj3++ {
  8177. if yyhl3 {
  8178. if yyj3 >= l {
  8179. break
  8180. }
  8181. } else {
  8182. if r.CheckBreak() {
  8183. break
  8184. }
  8185. }
  8186. r.ReadMapElemKey()
  8187. yys3 := z.StringView(r.DecodeStringAsBytes())
  8188. r.ReadMapElemValue()
  8189. switch yys3 {
  8190. case "A":
  8191. if r.TryDecodeAsNil() {
  8192. x.A = 0
  8193. } else {
  8194. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8195. }
  8196. case "B":
  8197. if r.TryDecodeAsNil() {
  8198. x.B = false
  8199. } else {
  8200. x.B = (bool)(r.DecodeBool())
  8201. }
  8202. case "Ssmallptr":
  8203. if r.TryDecodeAsNil() {
  8204. if true && x.Ssmallptr != nil {
  8205. x.Ssmallptr = nil
  8206. }
  8207. } else {
  8208. if x.Ssmallptr == nil {
  8209. x.Ssmallptr = new(Sstructsmall)
  8210. }
  8211. x.Ssmallptr.CodecDecodeSelf(d)
  8212. }
  8213. case "Ssmall":
  8214. if r.TryDecodeAsNil() {
  8215. if true && x.Ssmall != nil {
  8216. x.Ssmall = nil
  8217. }
  8218. } else {
  8219. if x.Ssmall == nil {
  8220. x.Ssmall = new(Sstructsmall)
  8221. }
  8222. x.Ssmall.CodecDecodeSelf(d)
  8223. }
  8224. case "Sptr":
  8225. if r.TryDecodeAsNil() {
  8226. if true && x.Sptr != nil {
  8227. x.Sptr = nil
  8228. }
  8229. } else {
  8230. if x.Sptr == nil {
  8231. x.Sptr = new(Sstructbig)
  8232. }
  8233. x.Sptr.CodecDecodeSelf(d)
  8234. }
  8235. default:
  8236. z.DecStructFieldNotFound(-1, yys3)
  8237. } // end switch yys3
  8238. } // end for yyj3
  8239. r.ReadMapEnd()
  8240. }
  8241. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  8242. var h codecSelfer19780
  8243. z, r := GenHelperDecoder(d)
  8244. _, _, _ = h, z, r
  8245. var yyj9 int
  8246. var yyb9 bool
  8247. var yyhl9 bool = l >= 0
  8248. yyj9++
  8249. if yyhl9 {
  8250. yyb9 = yyj9 > l
  8251. } else {
  8252. yyb9 = r.CheckBreak()
  8253. }
  8254. if yyb9 {
  8255. r.ReadArrayEnd()
  8256. return
  8257. }
  8258. r.ReadArrayElem()
  8259. if r.TryDecodeAsNil() {
  8260. x.A = 0
  8261. } else {
  8262. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8263. }
  8264. yyj9++
  8265. if yyhl9 {
  8266. yyb9 = yyj9 > l
  8267. } else {
  8268. yyb9 = r.CheckBreak()
  8269. }
  8270. if yyb9 {
  8271. r.ReadArrayEnd()
  8272. return
  8273. }
  8274. r.ReadArrayElem()
  8275. if r.TryDecodeAsNil() {
  8276. x.B = false
  8277. } else {
  8278. x.B = (bool)(r.DecodeBool())
  8279. }
  8280. yyj9++
  8281. if yyhl9 {
  8282. yyb9 = yyj9 > l
  8283. } else {
  8284. yyb9 = r.CheckBreak()
  8285. }
  8286. if yyb9 {
  8287. r.ReadArrayEnd()
  8288. return
  8289. }
  8290. r.ReadArrayElem()
  8291. if r.TryDecodeAsNil() {
  8292. if true && x.Ssmallptr != nil {
  8293. x.Ssmallptr = nil
  8294. }
  8295. } else {
  8296. if x.Ssmallptr == nil {
  8297. x.Ssmallptr = new(Sstructsmall)
  8298. }
  8299. x.Ssmallptr.CodecDecodeSelf(d)
  8300. }
  8301. yyj9++
  8302. if yyhl9 {
  8303. yyb9 = yyj9 > l
  8304. } else {
  8305. yyb9 = r.CheckBreak()
  8306. }
  8307. if yyb9 {
  8308. r.ReadArrayEnd()
  8309. return
  8310. }
  8311. r.ReadArrayElem()
  8312. if r.TryDecodeAsNil() {
  8313. if true && x.Ssmall != nil {
  8314. x.Ssmall = nil
  8315. }
  8316. } else {
  8317. if x.Ssmall == nil {
  8318. x.Ssmall = new(Sstructsmall)
  8319. }
  8320. x.Ssmall.CodecDecodeSelf(d)
  8321. }
  8322. yyj9++
  8323. if yyhl9 {
  8324. yyb9 = yyj9 > l
  8325. } else {
  8326. yyb9 = r.CheckBreak()
  8327. }
  8328. if yyb9 {
  8329. r.ReadArrayEnd()
  8330. return
  8331. }
  8332. r.ReadArrayElem()
  8333. if r.TryDecodeAsNil() {
  8334. if true && x.Sptr != nil {
  8335. x.Sptr = nil
  8336. }
  8337. } else {
  8338. if x.Sptr == nil {
  8339. x.Sptr = new(Sstructbig)
  8340. }
  8341. x.Sptr.CodecDecodeSelf(d)
  8342. }
  8343. for {
  8344. yyj9++
  8345. if yyhl9 {
  8346. yyb9 = yyj9 > l
  8347. } else {
  8348. yyb9 = r.CheckBreak()
  8349. }
  8350. if yyb9 {
  8351. break
  8352. }
  8353. r.ReadArrayElem()
  8354. z.DecStructFieldNotFound(yyj9-1, "")
  8355. }
  8356. r.ReadArrayEnd()
  8357. }
  8358. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  8359. var h codecSelfer19780
  8360. z, r := GenHelperEncoder(e)
  8361. _, _, _ = h, z, r
  8362. if x == nil {
  8363. r.EncodeNil()
  8364. } else {
  8365. if false {
  8366. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8367. z.EncExtension(x, yyxt1)
  8368. } else {
  8369. yysep2 := !z.EncBinary()
  8370. yy2arr2 := z.EncBasicHandle().StructToArray
  8371. _, _ = yysep2, yy2arr2
  8372. const yyr2 bool = false // struct tag has 'toArray'
  8373. if yyr2 || yy2arr2 {
  8374. r.WriteArrayStart(2)
  8375. } else {
  8376. r.WriteMapStart(2)
  8377. }
  8378. if yyr2 || yy2arr2 {
  8379. r.WriteArrayElem()
  8380. if false {
  8381. } else {
  8382. r.EncodeInt(int64(x.I))
  8383. }
  8384. } else {
  8385. r.WriteMapElemKey()
  8386. if z.IsJSONHandle() {
  8387. z.WriteStr("\"I\"")
  8388. } else {
  8389. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8390. }
  8391. r.WriteMapElemValue()
  8392. if false {
  8393. } else {
  8394. r.EncodeInt(int64(x.I))
  8395. }
  8396. }
  8397. if yyr2 || yy2arr2 {
  8398. r.WriteArrayElem()
  8399. if false {
  8400. } else {
  8401. if z.EncBasicHandle().StringToRaw {
  8402. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8403. } else {
  8404. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8405. }
  8406. }
  8407. } else {
  8408. r.WriteMapElemKey()
  8409. if z.IsJSONHandle() {
  8410. z.WriteStr("\"S\"")
  8411. } else {
  8412. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8413. }
  8414. r.WriteMapElemValue()
  8415. if false {
  8416. } else {
  8417. if z.EncBasicHandle().StringToRaw {
  8418. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8419. } else {
  8420. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8421. }
  8422. }
  8423. }
  8424. if yyr2 || yy2arr2 {
  8425. r.WriteArrayEnd()
  8426. } else {
  8427. r.WriteMapEnd()
  8428. }
  8429. }
  8430. }
  8431. }
  8432. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  8433. var h codecSelfer19780
  8434. z, r := GenHelperDecoder(d)
  8435. _, _, _ = h, z, r
  8436. if false {
  8437. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8438. z.DecExtension(x, yyxt1)
  8439. } else {
  8440. yyct2 := r.ContainerType()
  8441. if yyct2 == codecSelferValueTypeMap19780 {
  8442. yyl2 := r.ReadMapStart()
  8443. if yyl2 == 0 {
  8444. r.ReadMapEnd()
  8445. } else {
  8446. x.codecDecodeSelfFromMap(yyl2, d)
  8447. }
  8448. } else if yyct2 == codecSelferValueTypeArray19780 {
  8449. yyl2 := r.ReadArrayStart()
  8450. if yyl2 == 0 {
  8451. r.ReadArrayEnd()
  8452. } else {
  8453. x.codecDecodeSelfFromArray(yyl2, d)
  8454. }
  8455. } else {
  8456. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8457. }
  8458. }
  8459. }
  8460. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  8461. var h codecSelfer19780
  8462. z, r := GenHelperDecoder(d)
  8463. _, _, _ = h, z, r
  8464. var yyhl3 bool = l >= 0
  8465. for yyj3 := 0; ; yyj3++ {
  8466. if yyhl3 {
  8467. if yyj3 >= l {
  8468. break
  8469. }
  8470. } else {
  8471. if r.CheckBreak() {
  8472. break
  8473. }
  8474. }
  8475. r.ReadMapElemKey()
  8476. yys3 := z.StringView(r.DecodeStringAsBytes())
  8477. r.ReadMapElemValue()
  8478. switch yys3 {
  8479. case "I":
  8480. if r.TryDecodeAsNil() {
  8481. x.I = 0
  8482. } else {
  8483. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8484. }
  8485. case "S":
  8486. if r.TryDecodeAsNil() {
  8487. x.S = ""
  8488. } else {
  8489. x.S = (string)(r.DecodeString())
  8490. }
  8491. default:
  8492. z.DecStructFieldNotFound(-1, yys3)
  8493. } // end switch yys3
  8494. } // end for yyj3
  8495. r.ReadMapEnd()
  8496. }
  8497. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  8498. var h codecSelfer19780
  8499. z, r := GenHelperDecoder(d)
  8500. _, _, _ = h, z, r
  8501. var yyj6 int
  8502. var yyb6 bool
  8503. var yyhl6 bool = l >= 0
  8504. yyj6++
  8505. if yyhl6 {
  8506. yyb6 = yyj6 > l
  8507. } else {
  8508. yyb6 = r.CheckBreak()
  8509. }
  8510. if yyb6 {
  8511. r.ReadArrayEnd()
  8512. return
  8513. }
  8514. r.ReadArrayElem()
  8515. if r.TryDecodeAsNil() {
  8516. x.I = 0
  8517. } else {
  8518. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8519. }
  8520. yyj6++
  8521. if yyhl6 {
  8522. yyb6 = yyj6 > l
  8523. } else {
  8524. yyb6 = r.CheckBreak()
  8525. }
  8526. if yyb6 {
  8527. r.ReadArrayEnd()
  8528. return
  8529. }
  8530. r.ReadArrayElem()
  8531. if r.TryDecodeAsNil() {
  8532. x.S = ""
  8533. } else {
  8534. x.S = (string)(r.DecodeString())
  8535. }
  8536. for {
  8537. yyj6++
  8538. if yyhl6 {
  8539. yyb6 = yyj6 > l
  8540. } else {
  8541. yyb6 = r.CheckBreak()
  8542. }
  8543. if yyb6 {
  8544. break
  8545. }
  8546. r.ReadArrayElem()
  8547. z.DecStructFieldNotFound(yyj6-1, "")
  8548. }
  8549. r.ReadArrayEnd()
  8550. }
  8551. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  8552. var h codecSelfer19780
  8553. z, r := GenHelperEncoder(e)
  8554. _, _, _ = h, z, r
  8555. if false {
  8556. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8557. z.EncExtension(x, yyxt1)
  8558. } else {
  8559. r.EncodeInt(int64(x))
  8560. }
  8561. }
  8562. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  8563. var h codecSelfer19780
  8564. z, r := GenHelperDecoder(d)
  8565. _, _, _ = h, z, r
  8566. if false {
  8567. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8568. z.DecExtension(x, yyxt1)
  8569. } else {
  8570. *x = (wrapInt64)(r.DecodeInt64())
  8571. }
  8572. }
  8573. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  8574. var h codecSelfer19780
  8575. z, r := GenHelperEncoder(e)
  8576. _, _, _ = h, z, r
  8577. if false {
  8578. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8579. z.EncExtension(x, yyxt1)
  8580. } else {
  8581. r.EncodeUint(uint64(x))
  8582. }
  8583. }
  8584. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  8585. var h codecSelfer19780
  8586. z, r := GenHelperDecoder(d)
  8587. _, _, _ = h, z, r
  8588. if false {
  8589. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8590. z.DecExtension(x, yyxt1)
  8591. } else {
  8592. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  8593. }
  8594. }
  8595. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  8596. var h codecSelfer19780
  8597. z, r := GenHelperEncoder(e)
  8598. _, _, _ = h, z, r
  8599. if x == nil {
  8600. r.EncodeNil()
  8601. } else {
  8602. if false {
  8603. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8604. z.EncExtension(x, yyxt1)
  8605. } else {
  8606. h.encwrapBytes((wrapBytes)(x), e)
  8607. }
  8608. }
  8609. }
  8610. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  8611. var h codecSelfer19780
  8612. z, r := GenHelperDecoder(d)
  8613. _, _, _ = h, z, r
  8614. if false {
  8615. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8616. z.DecExtension(x, yyxt1)
  8617. } else {
  8618. h.decwrapBytes((*wrapBytes)(x), d)
  8619. }
  8620. }
  8621. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  8622. var h codecSelfer19780
  8623. z, r := GenHelperEncoder(e)
  8624. _, _, _ = h, z, r
  8625. if x == nil {
  8626. r.EncodeNil()
  8627. } else {
  8628. if false {
  8629. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8630. z.EncExtension(x, yyxt1)
  8631. } else {
  8632. yysep2 := !z.EncBinary()
  8633. yy2arr2 := z.EncBasicHandle().StructToArray
  8634. _, _ = yysep2, yy2arr2
  8635. const yyr2 bool = false // struct tag has 'toArray'
  8636. if yyr2 || yy2arr2 {
  8637. r.WriteArrayStart(5)
  8638. } else {
  8639. r.WriteMapStart(5)
  8640. }
  8641. if yyr2 || yy2arr2 {
  8642. r.WriteArrayElem()
  8643. if x.Islice == nil {
  8644. r.EncodeNil()
  8645. } else {
  8646. if false {
  8647. } else {
  8648. z.F.EncSliceIntfV(x.Islice, e)
  8649. }
  8650. }
  8651. } else {
  8652. r.WriteMapElemKey()
  8653. if z.IsJSONHandle() {
  8654. z.WriteStr("\"Islice\"")
  8655. } else {
  8656. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  8657. }
  8658. r.WriteMapElemValue()
  8659. if x.Islice == nil {
  8660. r.EncodeNil()
  8661. } else {
  8662. if false {
  8663. } else {
  8664. z.F.EncSliceIntfV(x.Islice, e)
  8665. }
  8666. }
  8667. }
  8668. if yyr2 || yy2arr2 {
  8669. r.WriteArrayElem()
  8670. if x.Ms == nil {
  8671. r.EncodeNil()
  8672. } else {
  8673. if false {
  8674. } else {
  8675. z.F.EncMapStringIntfV(x.Ms, e)
  8676. }
  8677. }
  8678. } else {
  8679. r.WriteMapElemKey()
  8680. if z.IsJSONHandle() {
  8681. z.WriteStr("\"Ms\"")
  8682. } else {
  8683. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  8684. }
  8685. r.WriteMapElemValue()
  8686. if x.Ms == nil {
  8687. r.EncodeNil()
  8688. } else {
  8689. if false {
  8690. } else {
  8691. z.F.EncMapStringIntfV(x.Ms, e)
  8692. }
  8693. }
  8694. }
  8695. if yyr2 || yy2arr2 {
  8696. r.WriteArrayElem()
  8697. if x.Nintf == nil {
  8698. r.EncodeNil()
  8699. } else {
  8700. if false {
  8701. } else {
  8702. z.EncFallback(x.Nintf)
  8703. }
  8704. }
  8705. } else {
  8706. r.WriteMapElemKey()
  8707. if z.IsJSONHandle() {
  8708. z.WriteStr("\"Nintf\"")
  8709. } else {
  8710. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  8711. }
  8712. r.WriteMapElemValue()
  8713. if x.Nintf == nil {
  8714. r.EncodeNil()
  8715. } else {
  8716. if false {
  8717. } else {
  8718. z.EncFallback(x.Nintf)
  8719. }
  8720. }
  8721. }
  8722. if yyr2 || yy2arr2 {
  8723. r.WriteArrayElem()
  8724. if false {
  8725. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8726. r.EncodeTime(x.T)
  8727. } else if yyxt13 := z.Extension(z.I2Rtid(x.T)); yyxt13 != nil {
  8728. z.EncExtension(x.T, yyxt13)
  8729. } else if z.EncBinary() {
  8730. z.EncBinaryMarshal(x.T)
  8731. } else if !z.EncBinary() && z.IsJSONHandle() {
  8732. z.EncJSONMarshal(x.T)
  8733. } else {
  8734. z.EncFallback(x.T)
  8735. }
  8736. } else {
  8737. r.WriteMapElemKey()
  8738. if z.IsJSONHandle() {
  8739. z.WriteStr("\"T\"")
  8740. } else {
  8741. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  8742. }
  8743. r.WriteMapElemValue()
  8744. if false {
  8745. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8746. r.EncodeTime(x.T)
  8747. } else if yyxt14 := z.Extension(z.I2Rtid(x.T)); yyxt14 != nil {
  8748. z.EncExtension(x.T, yyxt14)
  8749. } else if z.EncBinary() {
  8750. z.EncBinaryMarshal(x.T)
  8751. } else if !z.EncBinary() && z.IsJSONHandle() {
  8752. z.EncJSONMarshal(x.T)
  8753. } else {
  8754. z.EncFallback(x.T)
  8755. }
  8756. }
  8757. var yyn15 bool
  8758. if x.Tptr == nil {
  8759. yyn15 = true
  8760. goto LABEL15
  8761. }
  8762. LABEL15:
  8763. if yyr2 || yy2arr2 {
  8764. if yyn15 {
  8765. r.WriteArrayElem()
  8766. r.EncodeNil()
  8767. } else {
  8768. r.WriteArrayElem()
  8769. if x.Tptr == nil {
  8770. r.EncodeNil()
  8771. } else {
  8772. yy16 := *x.Tptr
  8773. if false {
  8774. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8775. r.EncodeTime(yy16)
  8776. } else if yyxt17 := z.Extension(z.I2Rtid(yy16)); yyxt17 != nil {
  8777. z.EncExtension(yy16, yyxt17)
  8778. } else if z.EncBinary() {
  8779. z.EncBinaryMarshal(yy16)
  8780. } else if !z.EncBinary() && z.IsJSONHandle() {
  8781. z.EncJSONMarshal(yy16)
  8782. } else {
  8783. z.EncFallback(yy16)
  8784. }
  8785. }
  8786. }
  8787. } else {
  8788. r.WriteMapElemKey()
  8789. if z.IsJSONHandle() {
  8790. z.WriteStr("\"Tptr\"")
  8791. } else {
  8792. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  8793. }
  8794. r.WriteMapElemValue()
  8795. if yyn15 {
  8796. r.EncodeNil()
  8797. } else {
  8798. if x.Tptr == nil {
  8799. r.EncodeNil()
  8800. } else {
  8801. yy18 := *x.Tptr
  8802. if false {
  8803. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8804. r.EncodeTime(yy18)
  8805. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  8806. z.EncExtension(yy18, yyxt19)
  8807. } else if z.EncBinary() {
  8808. z.EncBinaryMarshal(yy18)
  8809. } else if !z.EncBinary() && z.IsJSONHandle() {
  8810. z.EncJSONMarshal(yy18)
  8811. } else {
  8812. z.EncFallback(yy18)
  8813. }
  8814. }
  8815. }
  8816. }
  8817. if yyr2 || yy2arr2 {
  8818. r.WriteArrayEnd()
  8819. } else {
  8820. r.WriteMapEnd()
  8821. }
  8822. }
  8823. }
  8824. }
  8825. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  8826. var h codecSelfer19780
  8827. z, r := GenHelperDecoder(d)
  8828. _, _, _ = h, z, r
  8829. if false {
  8830. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8831. z.DecExtension(x, yyxt1)
  8832. } else {
  8833. yyct2 := r.ContainerType()
  8834. if yyct2 == codecSelferValueTypeMap19780 {
  8835. yyl2 := r.ReadMapStart()
  8836. if yyl2 == 0 {
  8837. r.ReadMapEnd()
  8838. } else {
  8839. x.codecDecodeSelfFromMap(yyl2, d)
  8840. }
  8841. } else if yyct2 == codecSelferValueTypeArray19780 {
  8842. yyl2 := r.ReadArrayStart()
  8843. if yyl2 == 0 {
  8844. r.ReadArrayEnd()
  8845. } else {
  8846. x.codecDecodeSelfFromArray(yyl2, d)
  8847. }
  8848. } else {
  8849. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8850. }
  8851. }
  8852. }
  8853. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  8854. var h codecSelfer19780
  8855. z, r := GenHelperDecoder(d)
  8856. _, _, _ = h, z, r
  8857. var yyhl3 bool = l >= 0
  8858. for yyj3 := 0; ; yyj3++ {
  8859. if yyhl3 {
  8860. if yyj3 >= l {
  8861. break
  8862. }
  8863. } else {
  8864. if r.CheckBreak() {
  8865. break
  8866. }
  8867. }
  8868. r.ReadMapElemKey()
  8869. yys3 := z.StringView(r.DecodeStringAsBytes())
  8870. r.ReadMapElemValue()
  8871. switch yys3 {
  8872. case "Islice":
  8873. if r.TryDecodeAsNil() {
  8874. x.Islice = nil
  8875. } else {
  8876. if false {
  8877. } else {
  8878. z.F.DecSliceIntfX(&x.Islice, d)
  8879. }
  8880. }
  8881. case "Ms":
  8882. if r.TryDecodeAsNil() {
  8883. x.Ms = nil
  8884. } else {
  8885. if false {
  8886. } else {
  8887. z.F.DecMapStringIntfX(&x.Ms, d)
  8888. }
  8889. }
  8890. case "Nintf":
  8891. if r.TryDecodeAsNil() {
  8892. x.Nintf = nil
  8893. } else {
  8894. if false {
  8895. } else {
  8896. z.DecFallback(&x.Nintf, true)
  8897. }
  8898. }
  8899. case "T":
  8900. if r.TryDecodeAsNil() {
  8901. x.T = time.Time{}
  8902. } else {
  8903. if false {
  8904. } else if !z.DecBasicHandle().TimeNotBuiltin {
  8905. x.T = r.DecodeTime()
  8906. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  8907. z.DecExtension(x.T, yyxt11)
  8908. } else if z.DecBinary() {
  8909. z.DecBinaryUnmarshal(&x.T)
  8910. } else if !z.DecBinary() && z.IsJSONHandle() {
  8911. z.DecJSONUnmarshal(&x.T)
  8912. } else {
  8913. z.DecFallback(&x.T, false)
  8914. }
  8915. }
  8916. case "Tptr":
  8917. if r.TryDecodeAsNil() {
  8918. if true && x.Tptr != nil {
  8919. x.Tptr = nil
  8920. }
  8921. } else {
  8922. if x.Tptr == nil {
  8923. x.Tptr = new(time.Time)
  8924. }
  8925. if false {
  8926. } else if !z.DecBasicHandle().TimeNotBuiltin {
  8927. *x.Tptr = r.DecodeTime()
  8928. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  8929. z.DecExtension(x.Tptr, yyxt13)
  8930. } else if z.DecBinary() {
  8931. z.DecBinaryUnmarshal(x.Tptr)
  8932. } else if !z.DecBinary() && z.IsJSONHandle() {
  8933. z.DecJSONUnmarshal(x.Tptr)
  8934. } else {
  8935. z.DecFallback(x.Tptr, false)
  8936. }
  8937. }
  8938. default:
  8939. z.DecStructFieldNotFound(-1, yys3)
  8940. } // end switch yys3
  8941. } // end for yyj3
  8942. r.ReadMapEnd()
  8943. }
  8944. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  8945. var h codecSelfer19780
  8946. z, r := GenHelperDecoder(d)
  8947. _, _, _ = h, z, r
  8948. var yyj14 int
  8949. var yyb14 bool
  8950. var yyhl14 bool = l >= 0
  8951. yyj14++
  8952. if yyhl14 {
  8953. yyb14 = yyj14 > l
  8954. } else {
  8955. yyb14 = r.CheckBreak()
  8956. }
  8957. if yyb14 {
  8958. r.ReadArrayEnd()
  8959. return
  8960. }
  8961. r.ReadArrayElem()
  8962. if r.TryDecodeAsNil() {
  8963. x.Islice = nil
  8964. } else {
  8965. if false {
  8966. } else {
  8967. z.F.DecSliceIntfX(&x.Islice, d)
  8968. }
  8969. }
  8970. yyj14++
  8971. if yyhl14 {
  8972. yyb14 = yyj14 > l
  8973. } else {
  8974. yyb14 = r.CheckBreak()
  8975. }
  8976. if yyb14 {
  8977. r.ReadArrayEnd()
  8978. return
  8979. }
  8980. r.ReadArrayElem()
  8981. if r.TryDecodeAsNil() {
  8982. x.Ms = nil
  8983. } else {
  8984. if false {
  8985. } else {
  8986. z.F.DecMapStringIntfX(&x.Ms, d)
  8987. }
  8988. }
  8989. yyj14++
  8990. if yyhl14 {
  8991. yyb14 = yyj14 > l
  8992. } else {
  8993. yyb14 = r.CheckBreak()
  8994. }
  8995. if yyb14 {
  8996. r.ReadArrayEnd()
  8997. return
  8998. }
  8999. r.ReadArrayElem()
  9000. if r.TryDecodeAsNil() {
  9001. x.Nintf = nil
  9002. } else {
  9003. if false {
  9004. } else {
  9005. z.DecFallback(&x.Nintf, true)
  9006. }
  9007. }
  9008. yyj14++
  9009. if yyhl14 {
  9010. yyb14 = yyj14 > l
  9011. } else {
  9012. yyb14 = r.CheckBreak()
  9013. }
  9014. if yyb14 {
  9015. r.ReadArrayEnd()
  9016. return
  9017. }
  9018. r.ReadArrayElem()
  9019. if r.TryDecodeAsNil() {
  9020. x.T = time.Time{}
  9021. } else {
  9022. if false {
  9023. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9024. x.T = r.DecodeTime()
  9025. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  9026. z.DecExtension(x.T, yyxt22)
  9027. } else if z.DecBinary() {
  9028. z.DecBinaryUnmarshal(&x.T)
  9029. } else if !z.DecBinary() && z.IsJSONHandle() {
  9030. z.DecJSONUnmarshal(&x.T)
  9031. } else {
  9032. z.DecFallback(&x.T, false)
  9033. }
  9034. }
  9035. yyj14++
  9036. if yyhl14 {
  9037. yyb14 = yyj14 > l
  9038. } else {
  9039. yyb14 = r.CheckBreak()
  9040. }
  9041. if yyb14 {
  9042. r.ReadArrayEnd()
  9043. return
  9044. }
  9045. r.ReadArrayElem()
  9046. if r.TryDecodeAsNil() {
  9047. if true && x.Tptr != nil {
  9048. x.Tptr = nil
  9049. }
  9050. } else {
  9051. if x.Tptr == nil {
  9052. x.Tptr = new(time.Time)
  9053. }
  9054. if false {
  9055. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9056. *x.Tptr = r.DecodeTime()
  9057. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  9058. z.DecExtension(x.Tptr, yyxt24)
  9059. } else if z.DecBinary() {
  9060. z.DecBinaryUnmarshal(x.Tptr)
  9061. } else if !z.DecBinary() && z.IsJSONHandle() {
  9062. z.DecJSONUnmarshal(x.Tptr)
  9063. } else {
  9064. z.DecFallback(x.Tptr, false)
  9065. }
  9066. }
  9067. for {
  9068. yyj14++
  9069. if yyhl14 {
  9070. yyb14 = yyj14 > l
  9071. } else {
  9072. yyb14 = r.CheckBreak()
  9073. }
  9074. if yyb14 {
  9075. break
  9076. }
  9077. r.ReadArrayElem()
  9078. z.DecStructFieldNotFound(yyj14-1, "")
  9079. }
  9080. r.ReadArrayEnd()
  9081. }
  9082. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  9083. var h codecSelfer19780
  9084. z, r := GenHelperEncoder(e)
  9085. _, _, _ = h, z, r
  9086. if x == nil {
  9087. r.EncodeNil()
  9088. } else {
  9089. if false {
  9090. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9091. z.EncExtension(x, yyxt1)
  9092. } else {
  9093. yysep2 := !z.EncBinary()
  9094. yy2arr2 := z.EncBasicHandle().StructToArray
  9095. _, _ = yysep2, yy2arr2
  9096. const yyr2 bool = false // struct tag has 'toArray'
  9097. if yyr2 || yy2arr2 {
  9098. r.WriteArrayStart(2)
  9099. } else {
  9100. r.WriteMapStart(2)
  9101. }
  9102. if yyr2 || yy2arr2 {
  9103. r.WriteArrayElem()
  9104. if false {
  9105. } else {
  9106. if z.EncBasicHandle().StringToRaw {
  9107. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9108. } else {
  9109. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9110. }
  9111. }
  9112. } else {
  9113. r.WriteMapElemKey()
  9114. if z.IsJSONHandle() {
  9115. z.WriteStr("\"S\"")
  9116. } else {
  9117. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9118. }
  9119. r.WriteMapElemValue()
  9120. if false {
  9121. } else {
  9122. if z.EncBasicHandle().StringToRaw {
  9123. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9124. } else {
  9125. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9126. }
  9127. }
  9128. }
  9129. if yyr2 || yy2arr2 {
  9130. r.WriteArrayElem()
  9131. if false {
  9132. } else {
  9133. r.EncodeBool(bool(x.B))
  9134. }
  9135. } else {
  9136. r.WriteMapElemKey()
  9137. if z.IsJSONHandle() {
  9138. z.WriteStr("\"B\"")
  9139. } else {
  9140. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9141. }
  9142. r.WriteMapElemValue()
  9143. if false {
  9144. } else {
  9145. r.EncodeBool(bool(x.B))
  9146. }
  9147. }
  9148. if yyr2 || yy2arr2 {
  9149. r.WriteArrayEnd()
  9150. } else {
  9151. r.WriteMapEnd()
  9152. }
  9153. }
  9154. }
  9155. }
  9156. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  9157. var h codecSelfer19780
  9158. z, r := GenHelperDecoder(d)
  9159. _, _, _ = h, z, r
  9160. if false {
  9161. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9162. z.DecExtension(x, yyxt1)
  9163. } else {
  9164. yyct2 := r.ContainerType()
  9165. if yyct2 == codecSelferValueTypeMap19780 {
  9166. yyl2 := r.ReadMapStart()
  9167. if yyl2 == 0 {
  9168. r.ReadMapEnd()
  9169. } else {
  9170. x.codecDecodeSelfFromMap(yyl2, d)
  9171. }
  9172. } else if yyct2 == codecSelferValueTypeArray19780 {
  9173. yyl2 := r.ReadArrayStart()
  9174. if yyl2 == 0 {
  9175. r.ReadArrayEnd()
  9176. } else {
  9177. x.codecDecodeSelfFromArray(yyl2, d)
  9178. }
  9179. } else {
  9180. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9181. }
  9182. }
  9183. }
  9184. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  9185. var h codecSelfer19780
  9186. z, r := GenHelperDecoder(d)
  9187. _, _, _ = h, z, r
  9188. var yyhl3 bool = l >= 0
  9189. for yyj3 := 0; ; yyj3++ {
  9190. if yyhl3 {
  9191. if yyj3 >= l {
  9192. break
  9193. }
  9194. } else {
  9195. if r.CheckBreak() {
  9196. break
  9197. }
  9198. }
  9199. r.ReadMapElemKey()
  9200. yys3 := z.StringView(r.DecodeStringAsBytes())
  9201. r.ReadMapElemValue()
  9202. switch yys3 {
  9203. case "S":
  9204. if r.TryDecodeAsNil() {
  9205. x.S = ""
  9206. } else {
  9207. x.S = (string)(r.DecodeString())
  9208. }
  9209. case "B":
  9210. if r.TryDecodeAsNil() {
  9211. x.B = false
  9212. } else {
  9213. x.B = (bool)(r.DecodeBool())
  9214. }
  9215. default:
  9216. z.DecStructFieldNotFound(-1, yys3)
  9217. } // end switch yys3
  9218. } // end for yyj3
  9219. r.ReadMapEnd()
  9220. }
  9221. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  9222. var h codecSelfer19780
  9223. z, r := GenHelperDecoder(d)
  9224. _, _, _ = h, z, r
  9225. var yyj6 int
  9226. var yyb6 bool
  9227. var yyhl6 bool = l >= 0
  9228. yyj6++
  9229. if yyhl6 {
  9230. yyb6 = yyj6 > l
  9231. } else {
  9232. yyb6 = r.CheckBreak()
  9233. }
  9234. if yyb6 {
  9235. r.ReadArrayEnd()
  9236. return
  9237. }
  9238. r.ReadArrayElem()
  9239. if r.TryDecodeAsNil() {
  9240. x.S = ""
  9241. } else {
  9242. x.S = (string)(r.DecodeString())
  9243. }
  9244. yyj6++
  9245. if yyhl6 {
  9246. yyb6 = yyj6 > l
  9247. } else {
  9248. yyb6 = r.CheckBreak()
  9249. }
  9250. if yyb6 {
  9251. r.ReadArrayEnd()
  9252. return
  9253. }
  9254. r.ReadArrayElem()
  9255. if r.TryDecodeAsNil() {
  9256. x.B = false
  9257. } else {
  9258. x.B = (bool)(r.DecodeBool())
  9259. }
  9260. for {
  9261. yyj6++
  9262. if yyhl6 {
  9263. yyb6 = yyj6 > l
  9264. } else {
  9265. yyb6 = r.CheckBreak()
  9266. }
  9267. if yyb6 {
  9268. break
  9269. }
  9270. r.ReadArrayElem()
  9271. z.DecStructFieldNotFound(yyj6-1, "")
  9272. }
  9273. r.ReadArrayEnd()
  9274. }
  9275. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  9276. var h codecSelfer19780
  9277. z, r := GenHelperEncoder(e)
  9278. _, _, _ = h, z, r
  9279. if x == nil {
  9280. r.EncodeNil()
  9281. } else {
  9282. if false {
  9283. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9284. z.EncExtension(x, yyxt1)
  9285. } else {
  9286. yysep2 := !z.EncBinary()
  9287. yy2arr2 := z.EncBasicHandle().StructToArray
  9288. _, _ = yysep2, yy2arr2
  9289. const yyr2 bool = false // struct tag has 'toArray'
  9290. if yyr2 || yy2arr2 {
  9291. r.WriteArrayStart(4)
  9292. } else {
  9293. r.WriteMapStart(4)
  9294. }
  9295. if yyr2 || yy2arr2 {
  9296. r.WriteArrayElem()
  9297. if false {
  9298. } else {
  9299. if z.EncBasicHandle().StringToRaw {
  9300. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9301. } else {
  9302. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9303. }
  9304. }
  9305. } else {
  9306. r.WriteMapElemKey()
  9307. if z.IsJSONHandle() {
  9308. z.WriteStr("\"S\"")
  9309. } else {
  9310. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9311. }
  9312. r.WriteMapElemValue()
  9313. if false {
  9314. } else {
  9315. if z.EncBasicHandle().StringToRaw {
  9316. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9317. } else {
  9318. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9319. }
  9320. }
  9321. }
  9322. if yyr2 || yy2arr2 {
  9323. r.WriteArrayElem()
  9324. if false {
  9325. } else {
  9326. r.EncodeBool(bool(x.B))
  9327. }
  9328. } else {
  9329. r.WriteMapElemKey()
  9330. if z.IsJSONHandle() {
  9331. z.WriteStr("\"B\"")
  9332. } else {
  9333. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9334. }
  9335. r.WriteMapElemValue()
  9336. if false {
  9337. } else {
  9338. r.EncodeBool(bool(x.B))
  9339. }
  9340. }
  9341. if yyr2 || yy2arr2 {
  9342. r.WriteArrayElem()
  9343. if false {
  9344. } else {
  9345. r.EncodeFloat64(float64(x.F))
  9346. }
  9347. } else {
  9348. r.WriteMapElemKey()
  9349. if z.IsJSONHandle() {
  9350. z.WriteStr("\"F\"")
  9351. } else {
  9352. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  9353. }
  9354. r.WriteMapElemValue()
  9355. if false {
  9356. } else {
  9357. r.EncodeFloat64(float64(x.F))
  9358. }
  9359. }
  9360. if yyr2 || yy2arr2 {
  9361. r.WriteArrayElem()
  9362. if false {
  9363. } else {
  9364. r.EncodeInt(int64(x.I))
  9365. }
  9366. } else {
  9367. r.WriteMapElemKey()
  9368. if z.IsJSONHandle() {
  9369. z.WriteStr("\"I\"")
  9370. } else {
  9371. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  9372. }
  9373. r.WriteMapElemValue()
  9374. if false {
  9375. } else {
  9376. r.EncodeInt(int64(x.I))
  9377. }
  9378. }
  9379. if yyr2 || yy2arr2 {
  9380. r.WriteArrayEnd()
  9381. } else {
  9382. r.WriteMapEnd()
  9383. }
  9384. }
  9385. }
  9386. }
  9387. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  9388. var h codecSelfer19780
  9389. z, r := GenHelperDecoder(d)
  9390. _, _, _ = h, z, r
  9391. if false {
  9392. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9393. z.DecExtension(x, yyxt1)
  9394. } else {
  9395. yyct2 := r.ContainerType()
  9396. if yyct2 == codecSelferValueTypeMap19780 {
  9397. yyl2 := r.ReadMapStart()
  9398. if yyl2 == 0 {
  9399. r.ReadMapEnd()
  9400. } else {
  9401. x.codecDecodeSelfFromMap(yyl2, d)
  9402. }
  9403. } else if yyct2 == codecSelferValueTypeArray19780 {
  9404. yyl2 := r.ReadArrayStart()
  9405. if yyl2 == 0 {
  9406. r.ReadArrayEnd()
  9407. } else {
  9408. x.codecDecodeSelfFromArray(yyl2, d)
  9409. }
  9410. } else {
  9411. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9412. }
  9413. }
  9414. }
  9415. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  9416. var h codecSelfer19780
  9417. z, r := GenHelperDecoder(d)
  9418. _, _, _ = h, z, r
  9419. var yyhl3 bool = l >= 0
  9420. for yyj3 := 0; ; yyj3++ {
  9421. if yyhl3 {
  9422. if yyj3 >= l {
  9423. break
  9424. }
  9425. } else {
  9426. if r.CheckBreak() {
  9427. break
  9428. }
  9429. }
  9430. r.ReadMapElemKey()
  9431. yys3 := z.StringView(r.DecodeStringAsBytes())
  9432. r.ReadMapElemValue()
  9433. switch yys3 {
  9434. case "S":
  9435. if r.TryDecodeAsNil() {
  9436. x.S = ""
  9437. } else {
  9438. x.S = (string)(r.DecodeString())
  9439. }
  9440. case "B":
  9441. if r.TryDecodeAsNil() {
  9442. x.B = false
  9443. } else {
  9444. x.B = (bool)(r.DecodeBool())
  9445. }
  9446. case "F":
  9447. if r.TryDecodeAsNil() {
  9448. x.F = 0
  9449. } else {
  9450. x.F = (float64)(r.DecodeFloat64())
  9451. }
  9452. case "I":
  9453. if r.TryDecodeAsNil() {
  9454. x.I = 0
  9455. } else {
  9456. x.I = (int64)(r.DecodeInt64())
  9457. }
  9458. default:
  9459. z.DecStructFieldNotFound(-1, yys3)
  9460. } // end switch yys3
  9461. } // end for yyj3
  9462. r.ReadMapEnd()
  9463. }
  9464. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  9465. var h codecSelfer19780
  9466. z, r := GenHelperDecoder(d)
  9467. _, _, _ = h, z, r
  9468. var yyj8 int
  9469. var yyb8 bool
  9470. var yyhl8 bool = l >= 0
  9471. yyj8++
  9472. if yyhl8 {
  9473. yyb8 = yyj8 > l
  9474. } else {
  9475. yyb8 = r.CheckBreak()
  9476. }
  9477. if yyb8 {
  9478. r.ReadArrayEnd()
  9479. return
  9480. }
  9481. r.ReadArrayElem()
  9482. if r.TryDecodeAsNil() {
  9483. x.S = ""
  9484. } else {
  9485. x.S = (string)(r.DecodeString())
  9486. }
  9487. yyj8++
  9488. if yyhl8 {
  9489. yyb8 = yyj8 > l
  9490. } else {
  9491. yyb8 = r.CheckBreak()
  9492. }
  9493. if yyb8 {
  9494. r.ReadArrayEnd()
  9495. return
  9496. }
  9497. r.ReadArrayElem()
  9498. if r.TryDecodeAsNil() {
  9499. x.B = false
  9500. } else {
  9501. x.B = (bool)(r.DecodeBool())
  9502. }
  9503. yyj8++
  9504. if yyhl8 {
  9505. yyb8 = yyj8 > l
  9506. } else {
  9507. yyb8 = r.CheckBreak()
  9508. }
  9509. if yyb8 {
  9510. r.ReadArrayEnd()
  9511. return
  9512. }
  9513. r.ReadArrayElem()
  9514. if r.TryDecodeAsNil() {
  9515. x.F = 0
  9516. } else {
  9517. x.F = (float64)(r.DecodeFloat64())
  9518. }
  9519. yyj8++
  9520. if yyhl8 {
  9521. yyb8 = yyj8 > l
  9522. } else {
  9523. yyb8 = r.CheckBreak()
  9524. }
  9525. if yyb8 {
  9526. r.ReadArrayEnd()
  9527. return
  9528. }
  9529. r.ReadArrayElem()
  9530. if r.TryDecodeAsNil() {
  9531. x.I = 0
  9532. } else {
  9533. x.I = (int64)(r.DecodeInt64())
  9534. }
  9535. for {
  9536. yyj8++
  9537. if yyhl8 {
  9538. yyb8 = yyj8 > l
  9539. } else {
  9540. yyb8 = r.CheckBreak()
  9541. }
  9542. if yyb8 {
  9543. break
  9544. }
  9545. r.ReadArrayElem()
  9546. z.DecStructFieldNotFound(yyj8-1, "")
  9547. }
  9548. r.ReadArrayEnd()
  9549. }
  9550. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  9551. var h codecSelfer19780
  9552. z, r := GenHelperEncoder(e)
  9553. _, _, _ = h, z, r
  9554. if x == nil {
  9555. r.EncodeNil()
  9556. } else {
  9557. if false {
  9558. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9559. z.EncExtension(x, yyxt1)
  9560. } else {
  9561. yysep2 := !z.EncBinary()
  9562. yy2arr2 := z.EncBasicHandle().StructToArray
  9563. _, _ = yysep2, yy2arr2
  9564. const yyr2 bool = false // struct tag has 'toArray'
  9565. var yyq2 = [73]bool{ // should field at this index be written?
  9566. x.S != "", // S
  9567. x.I64 != 0, // I64
  9568. x.I32 != 0, // I32
  9569. x.I16 != 0, // I16
  9570. x.I8 != 0, // I8
  9571. x.I64n != 0, // I64n
  9572. x.I32n != 0, // I32n
  9573. x.I16n != 0, // I16n
  9574. x.I8n != 0, // I8n
  9575. x.Ui64 != 0, // Ui64
  9576. x.Ui32 != 0, // Ui32
  9577. x.Ui16 != 0, // Ui16
  9578. x.Ui8 != 0, // Ui8
  9579. x.F64 != 0, // F64
  9580. x.F32 != 0, // F32
  9581. x.B, // B
  9582. x.By != 0, // By
  9583. len(x.Sslice) != 0, // Sslice
  9584. len(x.I64slice) != 0, // I64slice
  9585. len(x.I16slice) != 0, // I16slice
  9586. len(x.Ui64slice) != 0, // Ui64slice
  9587. len(x.Ui8slice) != 0, // Ui8slice
  9588. len(x.Bslice) != 0, // Bslice
  9589. len(x.Byslice) != 0, // Byslice
  9590. len(x.Iptrslice) != 0, // Iptrslice
  9591. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  9592. len(x.WrapSliceString) != 0, // WrapSliceString
  9593. len(x.Msi64) != 0, // Msi64
  9594. 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
  9595. len(x.SstrUi64T) != 0, // SstrUi64T
  9596. x.AS != "", // AS
  9597. x.AI64 != 0, // AI64
  9598. x.AI16 != 0, // AI16
  9599. x.AUi64 != 0, // AUi64
  9600. len(x.ASslice) != 0, // ASslice
  9601. len(x.AI64slice) != 0, // AI64slice
  9602. len(x.AUi64slice) != 0, // AUi64slice
  9603. len(x.AF64slice) != 0, // AF64slice
  9604. len(x.AF32slice) != 0, // AF32slice
  9605. len(x.AMSU16) != 0, // AMSU16
  9606. len(x.AI64arr0) != 0, // AI64arr0
  9607. len(x.A164slice0) != 0, // A164slice0
  9608. len(x.AUi64sliceN) != 0, // AUi64sliceN
  9609. len(x.AMSU16N) != 0, // AMSU16N
  9610. len(x.AMSU16E) != 0, // AMSU16E
  9611. 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
  9612. len(x.Nmap) != 0, // Nmap
  9613. len(x.Nslice) != 0, // Nslice
  9614. x.Nint64 != nil, // Nint64
  9615. len(x.Chstr) != 0, // Chstr
  9616. len(x.Mis) != 0, // Mis
  9617. len(x.Mbu64) != 0, // Mbu64
  9618. len(x.Miwu64s) != 0, // Miwu64s
  9619. len(x.Mfwss) != 0, // Mfwss
  9620. len(x.Mf32wss) != 0, // Mf32wss
  9621. len(x.Mui2wss) != 0, // Mui2wss
  9622. len(x.Msu2wss) != 0, // Msu2wss
  9623. x.Ci64 != 0, // Ci64
  9624. len(x.Swrapbytes) != 0, // Swrapbytes
  9625. len(x.Swrapuint8) != 0, // Swrapuint8
  9626. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  9627. len(x.Ui64array) != 0, // Ui64array
  9628. len(x.Ui64slicearray) != 0, // Ui64slicearray
  9629. len(x.SintfAarray) != 0, // SintfAarray
  9630. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  9631. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  9632. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  9633. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  9634. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  9635. len(x.Mtsptr) != 0, // Mtsptr
  9636. len(x.Mts) != 0, // Mts
  9637. len(x.Its) != 0, // Its
  9638. x.Nteststruc != nil, // Nteststruc
  9639. }
  9640. _ = yyq2
  9641. if yyr2 || yy2arr2 {
  9642. r.WriteArrayStart(73)
  9643. } else {
  9644. var yynn2 int
  9645. for _, b := range yyq2 {
  9646. if b {
  9647. yynn2++
  9648. }
  9649. }
  9650. r.WriteMapStart(yynn2)
  9651. yynn2 = 0
  9652. }
  9653. if yyr2 || yy2arr2 {
  9654. r.WriteArrayElem()
  9655. if yyq2[0] {
  9656. if false {
  9657. } else {
  9658. if z.EncBasicHandle().StringToRaw {
  9659. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9660. } else {
  9661. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9662. }
  9663. }
  9664. } else {
  9665. if z.EncBasicHandle().StringToRaw {
  9666. r.EncodeStringBytesRaw([]byte{})
  9667. } else {
  9668. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9669. }
  9670. }
  9671. } else {
  9672. if yyq2[0] {
  9673. r.WriteMapElemKey()
  9674. if z.IsJSONHandle() {
  9675. z.WriteStr("\"S\"")
  9676. } else {
  9677. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9678. }
  9679. r.WriteMapElemValue()
  9680. if false {
  9681. } else {
  9682. if z.EncBasicHandle().StringToRaw {
  9683. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9684. } else {
  9685. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9686. }
  9687. }
  9688. }
  9689. }
  9690. if yyr2 || yy2arr2 {
  9691. r.WriteArrayElem()
  9692. if yyq2[1] {
  9693. if false {
  9694. } else {
  9695. r.EncodeInt(int64(x.I64))
  9696. }
  9697. } else {
  9698. r.EncodeInt(0)
  9699. }
  9700. } else {
  9701. if yyq2[1] {
  9702. r.WriteMapElemKey()
  9703. if z.IsJSONHandle() {
  9704. z.WriteStr("\"I64\"")
  9705. } else {
  9706. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9707. }
  9708. r.WriteMapElemValue()
  9709. if false {
  9710. } else {
  9711. r.EncodeInt(int64(x.I64))
  9712. }
  9713. }
  9714. }
  9715. if yyr2 || yy2arr2 {
  9716. r.WriteArrayElem()
  9717. if yyq2[2] {
  9718. if false {
  9719. } else {
  9720. r.EncodeInt(int64(x.I32))
  9721. }
  9722. } else {
  9723. r.EncodeInt(0)
  9724. }
  9725. } else {
  9726. if yyq2[2] {
  9727. r.WriteMapElemKey()
  9728. if z.IsJSONHandle() {
  9729. z.WriteStr("\"I32\"")
  9730. } else {
  9731. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9732. }
  9733. r.WriteMapElemValue()
  9734. if false {
  9735. } else {
  9736. r.EncodeInt(int64(x.I32))
  9737. }
  9738. }
  9739. }
  9740. if yyr2 || yy2arr2 {
  9741. r.WriteArrayElem()
  9742. if yyq2[3] {
  9743. if false {
  9744. } else {
  9745. r.EncodeInt(int64(x.I16))
  9746. }
  9747. } else {
  9748. r.EncodeInt(0)
  9749. }
  9750. } else {
  9751. if yyq2[3] {
  9752. r.WriteMapElemKey()
  9753. if z.IsJSONHandle() {
  9754. z.WriteStr("\"I16\"")
  9755. } else {
  9756. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9757. }
  9758. r.WriteMapElemValue()
  9759. if false {
  9760. } else {
  9761. r.EncodeInt(int64(x.I16))
  9762. }
  9763. }
  9764. }
  9765. if yyr2 || yy2arr2 {
  9766. r.WriteArrayElem()
  9767. if yyq2[4] {
  9768. if false {
  9769. } else {
  9770. r.EncodeInt(int64(x.I8))
  9771. }
  9772. } else {
  9773. r.EncodeInt(0)
  9774. }
  9775. } else {
  9776. if yyq2[4] {
  9777. r.WriteMapElemKey()
  9778. if z.IsJSONHandle() {
  9779. z.WriteStr("\"I8\"")
  9780. } else {
  9781. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9782. }
  9783. r.WriteMapElemValue()
  9784. if false {
  9785. } else {
  9786. r.EncodeInt(int64(x.I8))
  9787. }
  9788. }
  9789. }
  9790. if yyr2 || yy2arr2 {
  9791. r.WriteArrayElem()
  9792. if yyq2[5] {
  9793. if false {
  9794. } else {
  9795. r.EncodeInt(int64(x.I64n))
  9796. }
  9797. } else {
  9798. r.EncodeInt(0)
  9799. }
  9800. } else {
  9801. if yyq2[5] {
  9802. r.WriteMapElemKey()
  9803. if z.IsJSONHandle() {
  9804. z.WriteStr("\"I64n\"")
  9805. } else {
  9806. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9807. }
  9808. r.WriteMapElemValue()
  9809. if false {
  9810. } else {
  9811. r.EncodeInt(int64(x.I64n))
  9812. }
  9813. }
  9814. }
  9815. if yyr2 || yy2arr2 {
  9816. r.WriteArrayElem()
  9817. if yyq2[6] {
  9818. if false {
  9819. } else {
  9820. r.EncodeInt(int64(x.I32n))
  9821. }
  9822. } else {
  9823. r.EncodeInt(0)
  9824. }
  9825. } else {
  9826. if yyq2[6] {
  9827. r.WriteMapElemKey()
  9828. if z.IsJSONHandle() {
  9829. z.WriteStr("\"I32n\"")
  9830. } else {
  9831. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9832. }
  9833. r.WriteMapElemValue()
  9834. if false {
  9835. } else {
  9836. r.EncodeInt(int64(x.I32n))
  9837. }
  9838. }
  9839. }
  9840. if yyr2 || yy2arr2 {
  9841. r.WriteArrayElem()
  9842. if yyq2[7] {
  9843. if false {
  9844. } else {
  9845. r.EncodeInt(int64(x.I16n))
  9846. }
  9847. } else {
  9848. r.EncodeInt(0)
  9849. }
  9850. } else {
  9851. if yyq2[7] {
  9852. r.WriteMapElemKey()
  9853. if z.IsJSONHandle() {
  9854. z.WriteStr("\"I16n\"")
  9855. } else {
  9856. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9857. }
  9858. r.WriteMapElemValue()
  9859. if false {
  9860. } else {
  9861. r.EncodeInt(int64(x.I16n))
  9862. }
  9863. }
  9864. }
  9865. if yyr2 || yy2arr2 {
  9866. r.WriteArrayElem()
  9867. if yyq2[8] {
  9868. if false {
  9869. } else {
  9870. r.EncodeInt(int64(x.I8n))
  9871. }
  9872. } else {
  9873. r.EncodeInt(0)
  9874. }
  9875. } else {
  9876. if yyq2[8] {
  9877. r.WriteMapElemKey()
  9878. if z.IsJSONHandle() {
  9879. z.WriteStr("\"I8n\"")
  9880. } else {
  9881. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9882. }
  9883. r.WriteMapElemValue()
  9884. if false {
  9885. } else {
  9886. r.EncodeInt(int64(x.I8n))
  9887. }
  9888. }
  9889. }
  9890. if yyr2 || yy2arr2 {
  9891. r.WriteArrayElem()
  9892. if yyq2[9] {
  9893. if false {
  9894. } else {
  9895. r.EncodeUint(uint64(x.Ui64))
  9896. }
  9897. } else {
  9898. r.EncodeUint(0)
  9899. }
  9900. } else {
  9901. if yyq2[9] {
  9902. r.WriteMapElemKey()
  9903. if z.IsJSONHandle() {
  9904. z.WriteStr("\"Ui64\"")
  9905. } else {
  9906. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9907. }
  9908. r.WriteMapElemValue()
  9909. if false {
  9910. } else {
  9911. r.EncodeUint(uint64(x.Ui64))
  9912. }
  9913. }
  9914. }
  9915. if yyr2 || yy2arr2 {
  9916. r.WriteArrayElem()
  9917. if yyq2[10] {
  9918. if false {
  9919. } else {
  9920. r.EncodeUint(uint64(x.Ui32))
  9921. }
  9922. } else {
  9923. r.EncodeUint(0)
  9924. }
  9925. } else {
  9926. if yyq2[10] {
  9927. r.WriteMapElemKey()
  9928. if z.IsJSONHandle() {
  9929. z.WriteStr("\"Ui32\"")
  9930. } else {
  9931. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9932. }
  9933. r.WriteMapElemValue()
  9934. if false {
  9935. } else {
  9936. r.EncodeUint(uint64(x.Ui32))
  9937. }
  9938. }
  9939. }
  9940. if yyr2 || yy2arr2 {
  9941. r.WriteArrayElem()
  9942. if yyq2[11] {
  9943. if false {
  9944. } else {
  9945. r.EncodeUint(uint64(x.Ui16))
  9946. }
  9947. } else {
  9948. r.EncodeUint(0)
  9949. }
  9950. } else {
  9951. if yyq2[11] {
  9952. r.WriteMapElemKey()
  9953. if z.IsJSONHandle() {
  9954. z.WriteStr("\"Ui16\"")
  9955. } else {
  9956. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9957. }
  9958. r.WriteMapElemValue()
  9959. if false {
  9960. } else {
  9961. r.EncodeUint(uint64(x.Ui16))
  9962. }
  9963. }
  9964. }
  9965. if yyr2 || yy2arr2 {
  9966. r.WriteArrayElem()
  9967. if yyq2[12] {
  9968. if false {
  9969. } else {
  9970. r.EncodeUint(uint64(x.Ui8))
  9971. }
  9972. } else {
  9973. r.EncodeUint(0)
  9974. }
  9975. } else {
  9976. if yyq2[12] {
  9977. r.WriteMapElemKey()
  9978. if z.IsJSONHandle() {
  9979. z.WriteStr("\"Ui8\"")
  9980. } else {
  9981. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9982. }
  9983. r.WriteMapElemValue()
  9984. if false {
  9985. } else {
  9986. r.EncodeUint(uint64(x.Ui8))
  9987. }
  9988. }
  9989. }
  9990. if yyr2 || yy2arr2 {
  9991. r.WriteArrayElem()
  9992. if yyq2[13] {
  9993. if false {
  9994. } else {
  9995. r.EncodeFloat64(float64(x.F64))
  9996. }
  9997. } else {
  9998. r.EncodeFloat64(0)
  9999. }
  10000. } else {
  10001. if yyq2[13] {
  10002. r.WriteMapElemKey()
  10003. if z.IsJSONHandle() {
  10004. z.WriteStr("\"F64\"")
  10005. } else {
  10006. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  10007. }
  10008. r.WriteMapElemValue()
  10009. if false {
  10010. } else {
  10011. r.EncodeFloat64(float64(x.F64))
  10012. }
  10013. }
  10014. }
  10015. if yyr2 || yy2arr2 {
  10016. r.WriteArrayElem()
  10017. if yyq2[14] {
  10018. if false {
  10019. } else {
  10020. r.EncodeFloat32(float32(x.F32))
  10021. }
  10022. } else {
  10023. r.EncodeFloat32(0)
  10024. }
  10025. } else {
  10026. if yyq2[14] {
  10027. r.WriteMapElemKey()
  10028. if z.IsJSONHandle() {
  10029. z.WriteStr("\"F32\"")
  10030. } else {
  10031. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  10032. }
  10033. r.WriteMapElemValue()
  10034. if false {
  10035. } else {
  10036. r.EncodeFloat32(float32(x.F32))
  10037. }
  10038. }
  10039. }
  10040. if yyr2 || yy2arr2 {
  10041. r.WriteArrayElem()
  10042. if yyq2[15] {
  10043. if false {
  10044. } else {
  10045. r.EncodeBool(bool(x.B))
  10046. }
  10047. } else {
  10048. r.EncodeBool(false)
  10049. }
  10050. } else {
  10051. if yyq2[15] {
  10052. r.WriteMapElemKey()
  10053. if z.IsJSONHandle() {
  10054. z.WriteStr("\"B\"")
  10055. } else {
  10056. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10057. }
  10058. r.WriteMapElemValue()
  10059. if false {
  10060. } else {
  10061. r.EncodeBool(bool(x.B))
  10062. }
  10063. }
  10064. }
  10065. if yyr2 || yy2arr2 {
  10066. r.WriteArrayElem()
  10067. if yyq2[16] {
  10068. if false {
  10069. } else {
  10070. r.EncodeUint(uint64(x.By))
  10071. }
  10072. } else {
  10073. r.EncodeUint(0)
  10074. }
  10075. } else {
  10076. if yyq2[16] {
  10077. r.WriteMapElemKey()
  10078. if z.IsJSONHandle() {
  10079. z.WriteStr("\"By\"")
  10080. } else {
  10081. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  10082. }
  10083. r.WriteMapElemValue()
  10084. if false {
  10085. } else {
  10086. r.EncodeUint(uint64(x.By))
  10087. }
  10088. }
  10089. }
  10090. if yyr2 || yy2arr2 {
  10091. r.WriteArrayElem()
  10092. if yyq2[17] {
  10093. if x.Sslice == nil {
  10094. r.EncodeNil()
  10095. } else {
  10096. if false {
  10097. } else {
  10098. z.F.EncSliceStringV(x.Sslice, e)
  10099. }
  10100. }
  10101. } else {
  10102. r.EncodeNil()
  10103. }
  10104. } else {
  10105. if yyq2[17] {
  10106. r.WriteMapElemKey()
  10107. if z.IsJSONHandle() {
  10108. z.WriteStr("\"Sslice\"")
  10109. } else {
  10110. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  10111. }
  10112. r.WriteMapElemValue()
  10113. if x.Sslice == nil {
  10114. r.EncodeNil()
  10115. } else {
  10116. if false {
  10117. } else {
  10118. z.F.EncSliceStringV(x.Sslice, e)
  10119. }
  10120. }
  10121. }
  10122. }
  10123. if yyr2 || yy2arr2 {
  10124. r.WriteArrayElem()
  10125. if yyq2[18] {
  10126. if x.I64slice == nil {
  10127. r.EncodeNil()
  10128. } else {
  10129. if false {
  10130. } else {
  10131. z.F.EncSliceInt64V(x.I64slice, e)
  10132. }
  10133. }
  10134. } else {
  10135. r.EncodeNil()
  10136. }
  10137. } else {
  10138. if yyq2[18] {
  10139. r.WriteMapElemKey()
  10140. if z.IsJSONHandle() {
  10141. z.WriteStr("\"I64slice\"")
  10142. } else {
  10143. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  10144. }
  10145. r.WriteMapElemValue()
  10146. if x.I64slice == nil {
  10147. r.EncodeNil()
  10148. } else {
  10149. if false {
  10150. } else {
  10151. z.F.EncSliceInt64V(x.I64slice, e)
  10152. }
  10153. }
  10154. }
  10155. }
  10156. if yyr2 || yy2arr2 {
  10157. r.WriteArrayElem()
  10158. if yyq2[19] {
  10159. if x.I16slice == nil {
  10160. r.EncodeNil()
  10161. } else {
  10162. if false {
  10163. } else {
  10164. z.F.EncSliceInt16V(x.I16slice, e)
  10165. }
  10166. }
  10167. } else {
  10168. r.EncodeNil()
  10169. }
  10170. } else {
  10171. if yyq2[19] {
  10172. r.WriteMapElemKey()
  10173. if z.IsJSONHandle() {
  10174. z.WriteStr("\"I16slice\"")
  10175. } else {
  10176. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  10177. }
  10178. r.WriteMapElemValue()
  10179. if x.I16slice == nil {
  10180. r.EncodeNil()
  10181. } else {
  10182. if false {
  10183. } else {
  10184. z.F.EncSliceInt16V(x.I16slice, e)
  10185. }
  10186. }
  10187. }
  10188. }
  10189. if yyr2 || yy2arr2 {
  10190. r.WriteArrayElem()
  10191. if yyq2[20] {
  10192. if x.Ui64slice == nil {
  10193. r.EncodeNil()
  10194. } else {
  10195. if false {
  10196. } else {
  10197. z.F.EncSliceUint64V(x.Ui64slice, e)
  10198. }
  10199. }
  10200. } else {
  10201. r.EncodeNil()
  10202. }
  10203. } else {
  10204. if yyq2[20] {
  10205. r.WriteMapElemKey()
  10206. if z.IsJSONHandle() {
  10207. z.WriteStr("\"Ui64slice\"")
  10208. } else {
  10209. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  10210. }
  10211. r.WriteMapElemValue()
  10212. if x.Ui64slice == nil {
  10213. r.EncodeNil()
  10214. } else {
  10215. if false {
  10216. } else {
  10217. z.F.EncSliceUint64V(x.Ui64slice, e)
  10218. }
  10219. }
  10220. }
  10221. }
  10222. if yyr2 || yy2arr2 {
  10223. r.WriteArrayElem()
  10224. if yyq2[21] {
  10225. if x.Ui8slice == nil {
  10226. r.EncodeNil()
  10227. } else {
  10228. if false {
  10229. } else {
  10230. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  10231. }
  10232. }
  10233. } else {
  10234. r.EncodeNil()
  10235. }
  10236. } else {
  10237. if yyq2[21] {
  10238. r.WriteMapElemKey()
  10239. if z.IsJSONHandle() {
  10240. z.WriteStr("\"Ui8slice\"")
  10241. } else {
  10242. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  10243. }
  10244. r.WriteMapElemValue()
  10245. if x.Ui8slice == nil {
  10246. r.EncodeNil()
  10247. } else {
  10248. if false {
  10249. } else {
  10250. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  10251. }
  10252. }
  10253. }
  10254. }
  10255. if yyr2 || yy2arr2 {
  10256. r.WriteArrayElem()
  10257. if yyq2[22] {
  10258. if x.Bslice == nil {
  10259. r.EncodeNil()
  10260. } else {
  10261. if false {
  10262. } else {
  10263. z.F.EncSliceBoolV(x.Bslice, e)
  10264. }
  10265. }
  10266. } else {
  10267. r.EncodeNil()
  10268. }
  10269. } else {
  10270. if yyq2[22] {
  10271. r.WriteMapElemKey()
  10272. if z.IsJSONHandle() {
  10273. z.WriteStr("\"Bslice\"")
  10274. } else {
  10275. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  10276. }
  10277. r.WriteMapElemValue()
  10278. if x.Bslice == nil {
  10279. r.EncodeNil()
  10280. } else {
  10281. if false {
  10282. } else {
  10283. z.F.EncSliceBoolV(x.Bslice, e)
  10284. }
  10285. }
  10286. }
  10287. }
  10288. if yyr2 || yy2arr2 {
  10289. r.WriteArrayElem()
  10290. if yyq2[23] {
  10291. if x.Byslice == nil {
  10292. r.EncodeNil()
  10293. } else {
  10294. if false {
  10295. } else {
  10296. r.EncodeStringBytesRaw([]byte(x.Byslice))
  10297. }
  10298. }
  10299. } else {
  10300. r.EncodeNil()
  10301. }
  10302. } else {
  10303. if yyq2[23] {
  10304. r.WriteMapElemKey()
  10305. if z.IsJSONHandle() {
  10306. z.WriteStr("\"Byslice\"")
  10307. } else {
  10308. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  10309. }
  10310. r.WriteMapElemValue()
  10311. if x.Byslice == nil {
  10312. r.EncodeNil()
  10313. } else {
  10314. if false {
  10315. } else {
  10316. r.EncodeStringBytesRaw([]byte(x.Byslice))
  10317. }
  10318. }
  10319. }
  10320. }
  10321. if yyr2 || yy2arr2 {
  10322. r.WriteArrayElem()
  10323. if yyq2[24] {
  10324. if x.Iptrslice == nil {
  10325. r.EncodeNil()
  10326. } else {
  10327. if false {
  10328. } else {
  10329. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  10330. }
  10331. }
  10332. } else {
  10333. r.EncodeNil()
  10334. }
  10335. } else {
  10336. if yyq2[24] {
  10337. r.WriteMapElemKey()
  10338. if z.IsJSONHandle() {
  10339. z.WriteStr("\"Iptrslice\"")
  10340. } else {
  10341. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  10342. }
  10343. r.WriteMapElemValue()
  10344. if x.Iptrslice == nil {
  10345. r.EncodeNil()
  10346. } else {
  10347. if false {
  10348. } else {
  10349. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  10350. }
  10351. }
  10352. }
  10353. }
  10354. if yyr2 || yy2arr2 {
  10355. r.WriteArrayElem()
  10356. if yyq2[25] {
  10357. if x.WrapSliceInt64 == nil {
  10358. r.EncodeNil()
  10359. } else {
  10360. x.WrapSliceInt64.CodecEncodeSelf(e)
  10361. }
  10362. } else {
  10363. r.EncodeNil()
  10364. }
  10365. } else {
  10366. if yyq2[25] {
  10367. r.WriteMapElemKey()
  10368. if z.IsJSONHandle() {
  10369. z.WriteStr("\"WrapSliceInt64\"")
  10370. } else {
  10371. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  10372. }
  10373. r.WriteMapElemValue()
  10374. if x.WrapSliceInt64 == nil {
  10375. r.EncodeNil()
  10376. } else {
  10377. x.WrapSliceInt64.CodecEncodeSelf(e)
  10378. }
  10379. }
  10380. }
  10381. if yyr2 || yy2arr2 {
  10382. r.WriteArrayElem()
  10383. if yyq2[26] {
  10384. if x.WrapSliceString == nil {
  10385. r.EncodeNil()
  10386. } else {
  10387. x.WrapSliceString.CodecEncodeSelf(e)
  10388. }
  10389. } else {
  10390. r.EncodeNil()
  10391. }
  10392. } else {
  10393. if yyq2[26] {
  10394. r.WriteMapElemKey()
  10395. if z.IsJSONHandle() {
  10396. z.WriteStr("\"WrapSliceString\"")
  10397. } else {
  10398. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  10399. }
  10400. r.WriteMapElemValue()
  10401. if x.WrapSliceString == nil {
  10402. r.EncodeNil()
  10403. } else {
  10404. x.WrapSliceString.CodecEncodeSelf(e)
  10405. }
  10406. }
  10407. }
  10408. if yyr2 || yy2arr2 {
  10409. r.WriteArrayElem()
  10410. if yyq2[27] {
  10411. if x.Msi64 == nil {
  10412. r.EncodeNil()
  10413. } else {
  10414. if false {
  10415. } else {
  10416. z.F.EncMapStringInt64V(x.Msi64, e)
  10417. }
  10418. }
  10419. } else {
  10420. r.EncodeNil()
  10421. }
  10422. } else {
  10423. if yyq2[27] {
  10424. r.WriteMapElemKey()
  10425. if z.IsJSONHandle() {
  10426. z.WriteStr("\"Msi64\"")
  10427. } else {
  10428. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  10429. }
  10430. r.WriteMapElemValue()
  10431. if x.Msi64 == nil {
  10432. r.EncodeNil()
  10433. } else {
  10434. if false {
  10435. } else {
  10436. z.F.EncMapStringInt64V(x.Msi64, e)
  10437. }
  10438. }
  10439. }
  10440. }
  10441. if yyr2 || yy2arr2 {
  10442. r.WriteArrayElem()
  10443. if yyq2[28] {
  10444. yy88 := &x.Simplef
  10445. yy88.CodecEncodeSelf(e)
  10446. } else {
  10447. r.EncodeNil()
  10448. }
  10449. } else {
  10450. if yyq2[28] {
  10451. r.WriteMapElemKey()
  10452. if z.IsJSONHandle() {
  10453. z.WriteStr("\"Simplef\"")
  10454. } else {
  10455. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  10456. }
  10457. r.WriteMapElemValue()
  10458. yy90 := &x.Simplef
  10459. yy90.CodecEncodeSelf(e)
  10460. }
  10461. }
  10462. if yyr2 || yy2arr2 {
  10463. r.WriteArrayElem()
  10464. if yyq2[29] {
  10465. if x.SstrUi64T == nil {
  10466. r.EncodeNil()
  10467. } else {
  10468. if false {
  10469. } else {
  10470. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  10471. }
  10472. }
  10473. } else {
  10474. r.EncodeNil()
  10475. }
  10476. } else {
  10477. if yyq2[29] {
  10478. r.WriteMapElemKey()
  10479. if z.IsJSONHandle() {
  10480. z.WriteStr("\"SstrUi64T\"")
  10481. } else {
  10482. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  10483. }
  10484. r.WriteMapElemValue()
  10485. if x.SstrUi64T == nil {
  10486. r.EncodeNil()
  10487. } else {
  10488. if false {
  10489. } else {
  10490. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  10491. }
  10492. }
  10493. }
  10494. }
  10495. if yyr2 || yy2arr2 {
  10496. r.WriteArrayElem()
  10497. if yyq2[30] {
  10498. if false {
  10499. } else {
  10500. if z.EncBasicHandle().StringToRaw {
  10501. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  10502. } else {
  10503. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  10504. }
  10505. }
  10506. } else {
  10507. if z.EncBasicHandle().StringToRaw {
  10508. r.EncodeStringBytesRaw([]byte{})
  10509. } else {
  10510. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  10511. }
  10512. }
  10513. } else {
  10514. if yyq2[30] {
  10515. r.WriteMapElemKey()
  10516. if z.IsJSONHandle() {
  10517. z.WriteStr("\"AS\"")
  10518. } else {
  10519. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  10520. }
  10521. r.WriteMapElemValue()
  10522. if false {
  10523. } else {
  10524. if z.EncBasicHandle().StringToRaw {
  10525. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  10526. } else {
  10527. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  10528. }
  10529. }
  10530. }
  10531. }
  10532. if yyr2 || yy2arr2 {
  10533. r.WriteArrayElem()
  10534. if yyq2[31] {
  10535. if false {
  10536. } else {
  10537. r.EncodeInt(int64(x.AI64))
  10538. }
  10539. } else {
  10540. r.EncodeInt(0)
  10541. }
  10542. } else {
  10543. if yyq2[31] {
  10544. r.WriteMapElemKey()
  10545. if z.IsJSONHandle() {
  10546. z.WriteStr("\"AI64\"")
  10547. } else {
  10548. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  10549. }
  10550. r.WriteMapElemValue()
  10551. if false {
  10552. } else {
  10553. r.EncodeInt(int64(x.AI64))
  10554. }
  10555. }
  10556. }
  10557. if yyr2 || yy2arr2 {
  10558. r.WriteArrayElem()
  10559. if yyq2[32] {
  10560. if false {
  10561. } else {
  10562. r.EncodeInt(int64(x.AI16))
  10563. }
  10564. } else {
  10565. r.EncodeInt(0)
  10566. }
  10567. } else {
  10568. if yyq2[32] {
  10569. r.WriteMapElemKey()
  10570. if z.IsJSONHandle() {
  10571. z.WriteStr("\"AI16\"")
  10572. } else {
  10573. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  10574. }
  10575. r.WriteMapElemValue()
  10576. if false {
  10577. } else {
  10578. r.EncodeInt(int64(x.AI16))
  10579. }
  10580. }
  10581. }
  10582. if yyr2 || yy2arr2 {
  10583. r.WriteArrayElem()
  10584. if yyq2[33] {
  10585. if false {
  10586. } else {
  10587. r.EncodeUint(uint64(x.AUi64))
  10588. }
  10589. } else {
  10590. r.EncodeUint(0)
  10591. }
  10592. } else {
  10593. if yyq2[33] {
  10594. r.WriteMapElemKey()
  10595. if z.IsJSONHandle() {
  10596. z.WriteStr("\"AUi64\"")
  10597. } else {
  10598. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  10599. }
  10600. r.WriteMapElemValue()
  10601. if false {
  10602. } else {
  10603. r.EncodeUint(uint64(x.AUi64))
  10604. }
  10605. }
  10606. }
  10607. if yyr2 || yy2arr2 {
  10608. r.WriteArrayElem()
  10609. if yyq2[34] {
  10610. if x.ASslice == nil {
  10611. r.EncodeNil()
  10612. } else {
  10613. if false {
  10614. } else {
  10615. z.F.EncSliceStringV(x.ASslice, e)
  10616. }
  10617. }
  10618. } else {
  10619. r.EncodeNil()
  10620. }
  10621. } else {
  10622. if yyq2[34] {
  10623. r.WriteMapElemKey()
  10624. if z.IsJSONHandle() {
  10625. z.WriteStr("\"ASslice\"")
  10626. } else {
  10627. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  10628. }
  10629. r.WriteMapElemValue()
  10630. if x.ASslice == nil {
  10631. r.EncodeNil()
  10632. } else {
  10633. if false {
  10634. } else {
  10635. z.F.EncSliceStringV(x.ASslice, e)
  10636. }
  10637. }
  10638. }
  10639. }
  10640. if yyr2 || yy2arr2 {
  10641. r.WriteArrayElem()
  10642. if yyq2[35] {
  10643. if x.AI64slice == nil {
  10644. r.EncodeNil()
  10645. } else {
  10646. if false {
  10647. } else {
  10648. z.F.EncSliceInt64V(x.AI64slice, e)
  10649. }
  10650. }
  10651. } else {
  10652. r.EncodeNil()
  10653. }
  10654. } else {
  10655. if yyq2[35] {
  10656. r.WriteMapElemKey()
  10657. if z.IsJSONHandle() {
  10658. z.WriteStr("\"AI64slice\"")
  10659. } else {
  10660. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  10661. }
  10662. r.WriteMapElemValue()
  10663. if x.AI64slice == nil {
  10664. r.EncodeNil()
  10665. } else {
  10666. if false {
  10667. } else {
  10668. z.F.EncSliceInt64V(x.AI64slice, e)
  10669. }
  10670. }
  10671. }
  10672. }
  10673. if yyr2 || yy2arr2 {
  10674. r.WriteArrayElem()
  10675. if yyq2[36] {
  10676. if x.AUi64slice == nil {
  10677. r.EncodeNil()
  10678. } else {
  10679. if false {
  10680. } else {
  10681. z.F.EncSliceUint64V(x.AUi64slice, e)
  10682. }
  10683. }
  10684. } else {
  10685. r.EncodeNil()
  10686. }
  10687. } else {
  10688. if yyq2[36] {
  10689. r.WriteMapElemKey()
  10690. if z.IsJSONHandle() {
  10691. z.WriteStr("\"AUi64slice\"")
  10692. } else {
  10693. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  10694. }
  10695. r.WriteMapElemValue()
  10696. if x.AUi64slice == nil {
  10697. r.EncodeNil()
  10698. } else {
  10699. if false {
  10700. } else {
  10701. z.F.EncSliceUint64V(x.AUi64slice, e)
  10702. }
  10703. }
  10704. }
  10705. }
  10706. if yyr2 || yy2arr2 {
  10707. r.WriteArrayElem()
  10708. if yyq2[37] {
  10709. if x.AF64slice == nil {
  10710. r.EncodeNil()
  10711. } else {
  10712. if false {
  10713. } else {
  10714. z.F.EncSliceFloat64V(x.AF64slice, e)
  10715. }
  10716. }
  10717. } else {
  10718. r.EncodeNil()
  10719. }
  10720. } else {
  10721. if yyq2[37] {
  10722. r.WriteMapElemKey()
  10723. if z.IsJSONHandle() {
  10724. z.WriteStr("\"AF64slice\"")
  10725. } else {
  10726. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  10727. }
  10728. r.WriteMapElemValue()
  10729. if x.AF64slice == nil {
  10730. r.EncodeNil()
  10731. } else {
  10732. if false {
  10733. } else {
  10734. z.F.EncSliceFloat64V(x.AF64slice, e)
  10735. }
  10736. }
  10737. }
  10738. }
  10739. if yyr2 || yy2arr2 {
  10740. r.WriteArrayElem()
  10741. if yyq2[38] {
  10742. if x.AF32slice == nil {
  10743. r.EncodeNil()
  10744. } else {
  10745. if false {
  10746. } else {
  10747. z.F.EncSliceFloat32V(x.AF32slice, e)
  10748. }
  10749. }
  10750. } else {
  10751. r.EncodeNil()
  10752. }
  10753. } else {
  10754. if yyq2[38] {
  10755. r.WriteMapElemKey()
  10756. if z.IsJSONHandle() {
  10757. z.WriteStr("\"AF32slice\"")
  10758. } else {
  10759. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  10760. }
  10761. r.WriteMapElemValue()
  10762. if x.AF32slice == nil {
  10763. r.EncodeNil()
  10764. } else {
  10765. if false {
  10766. } else {
  10767. z.F.EncSliceFloat32V(x.AF32slice, e)
  10768. }
  10769. }
  10770. }
  10771. }
  10772. if yyr2 || yy2arr2 {
  10773. r.WriteArrayElem()
  10774. if yyq2[39] {
  10775. if x.AMSU16 == nil {
  10776. r.EncodeNil()
  10777. } else {
  10778. if false {
  10779. } else {
  10780. z.F.EncMapStringUint16V(x.AMSU16, e)
  10781. }
  10782. }
  10783. } else {
  10784. r.EncodeNil()
  10785. }
  10786. } else {
  10787. if yyq2[39] {
  10788. r.WriteMapElemKey()
  10789. if z.IsJSONHandle() {
  10790. z.WriteStr("\"AMSU16\"")
  10791. } else {
  10792. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  10793. }
  10794. r.WriteMapElemValue()
  10795. if x.AMSU16 == nil {
  10796. r.EncodeNil()
  10797. } else {
  10798. if false {
  10799. } else {
  10800. z.F.EncMapStringUint16V(x.AMSU16, e)
  10801. }
  10802. }
  10803. }
  10804. }
  10805. if yyr2 || yy2arr2 {
  10806. r.WriteArrayElem()
  10807. if yyq2[40] {
  10808. yy126 := &x.AI64arr0
  10809. if false {
  10810. } else {
  10811. h.encArray0int64((*[0]int64)(yy126), e)
  10812. }
  10813. } else {
  10814. r.EncodeNil()
  10815. }
  10816. } else {
  10817. if yyq2[40] {
  10818. r.WriteMapElemKey()
  10819. if z.IsJSONHandle() {
  10820. z.WriteStr("\"AI64arr0\"")
  10821. } else {
  10822. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  10823. }
  10824. r.WriteMapElemValue()
  10825. yy128 := &x.AI64arr0
  10826. if false {
  10827. } else {
  10828. h.encArray0int64((*[0]int64)(yy128), e)
  10829. }
  10830. }
  10831. }
  10832. if yyr2 || yy2arr2 {
  10833. r.WriteArrayElem()
  10834. if yyq2[41] {
  10835. if x.A164slice0 == nil {
  10836. r.EncodeNil()
  10837. } else {
  10838. if false {
  10839. } else {
  10840. z.F.EncSliceInt64V(x.A164slice0, e)
  10841. }
  10842. }
  10843. } else {
  10844. r.EncodeNil()
  10845. }
  10846. } else {
  10847. if yyq2[41] {
  10848. r.WriteMapElemKey()
  10849. if z.IsJSONHandle() {
  10850. z.WriteStr("\"A164slice0\"")
  10851. } else {
  10852. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  10853. }
  10854. r.WriteMapElemValue()
  10855. if x.A164slice0 == nil {
  10856. r.EncodeNil()
  10857. } else {
  10858. if false {
  10859. } else {
  10860. z.F.EncSliceInt64V(x.A164slice0, e)
  10861. }
  10862. }
  10863. }
  10864. }
  10865. if yyr2 || yy2arr2 {
  10866. r.WriteArrayElem()
  10867. if yyq2[42] {
  10868. if x.AUi64sliceN == nil {
  10869. r.EncodeNil()
  10870. } else {
  10871. if false {
  10872. } else {
  10873. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  10874. }
  10875. }
  10876. } else {
  10877. r.EncodeNil()
  10878. }
  10879. } else {
  10880. if yyq2[42] {
  10881. r.WriteMapElemKey()
  10882. if z.IsJSONHandle() {
  10883. z.WriteStr("\"AUi64sliceN\"")
  10884. } else {
  10885. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  10886. }
  10887. r.WriteMapElemValue()
  10888. if x.AUi64sliceN == nil {
  10889. r.EncodeNil()
  10890. } else {
  10891. if false {
  10892. } else {
  10893. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  10894. }
  10895. }
  10896. }
  10897. }
  10898. if yyr2 || yy2arr2 {
  10899. r.WriteArrayElem()
  10900. if yyq2[43] {
  10901. if x.AMSU16N == nil {
  10902. r.EncodeNil()
  10903. } else {
  10904. if false {
  10905. } else {
  10906. z.F.EncMapStringUint16V(x.AMSU16N, e)
  10907. }
  10908. }
  10909. } else {
  10910. r.EncodeNil()
  10911. }
  10912. } else {
  10913. if yyq2[43] {
  10914. r.WriteMapElemKey()
  10915. if z.IsJSONHandle() {
  10916. z.WriteStr("\"AMSU16N\"")
  10917. } else {
  10918. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  10919. }
  10920. r.WriteMapElemValue()
  10921. if x.AMSU16N == nil {
  10922. r.EncodeNil()
  10923. } else {
  10924. if false {
  10925. } else {
  10926. z.F.EncMapStringUint16V(x.AMSU16N, e)
  10927. }
  10928. }
  10929. }
  10930. }
  10931. if yyr2 || yy2arr2 {
  10932. r.WriteArrayElem()
  10933. if yyq2[44] {
  10934. if x.AMSU16E == nil {
  10935. r.EncodeNil()
  10936. } else {
  10937. if false {
  10938. } else {
  10939. z.F.EncMapStringUint16V(x.AMSU16E, e)
  10940. }
  10941. }
  10942. } else {
  10943. r.EncodeNil()
  10944. }
  10945. } else {
  10946. if yyq2[44] {
  10947. r.WriteMapElemKey()
  10948. if z.IsJSONHandle() {
  10949. z.WriteStr("\"AMSU16E\"")
  10950. } else {
  10951. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10952. }
  10953. r.WriteMapElemValue()
  10954. if x.AMSU16E == nil {
  10955. r.EncodeNil()
  10956. } else {
  10957. if false {
  10958. } else {
  10959. z.F.EncMapStringUint16V(x.AMSU16E, e)
  10960. }
  10961. }
  10962. }
  10963. }
  10964. if yyr2 || yy2arr2 {
  10965. r.WriteArrayElem()
  10966. if yyq2[45] {
  10967. yy143 := &x.NotAnon
  10968. yy143.CodecEncodeSelf(e)
  10969. } else {
  10970. r.EncodeNil()
  10971. }
  10972. } else {
  10973. if yyq2[45] {
  10974. r.WriteMapElemKey()
  10975. if z.IsJSONHandle() {
  10976. z.WriteStr("\"NotAnon\"")
  10977. } else {
  10978. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10979. }
  10980. r.WriteMapElemValue()
  10981. yy145 := &x.NotAnon
  10982. yy145.CodecEncodeSelf(e)
  10983. }
  10984. }
  10985. if yyr2 || yy2arr2 {
  10986. r.WriteArrayElem()
  10987. if yyq2[46] {
  10988. if x.Nmap == nil {
  10989. r.EncodeNil()
  10990. } else {
  10991. if false {
  10992. } else {
  10993. z.F.EncMapStringBoolV(x.Nmap, e)
  10994. }
  10995. }
  10996. } else {
  10997. r.EncodeNil()
  10998. }
  10999. } else {
  11000. if yyq2[46] {
  11001. r.WriteMapElemKey()
  11002. if z.IsJSONHandle() {
  11003. z.WriteStr("\"Nmap\"")
  11004. } else {
  11005. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  11006. }
  11007. r.WriteMapElemValue()
  11008. if x.Nmap == nil {
  11009. r.EncodeNil()
  11010. } else {
  11011. if false {
  11012. } else {
  11013. z.F.EncMapStringBoolV(x.Nmap, e)
  11014. }
  11015. }
  11016. }
  11017. }
  11018. if yyr2 || yy2arr2 {
  11019. r.WriteArrayElem()
  11020. if yyq2[47] {
  11021. if x.Nslice == nil {
  11022. r.EncodeNil()
  11023. } else {
  11024. if false {
  11025. } else {
  11026. r.EncodeStringBytesRaw([]byte(x.Nslice))
  11027. }
  11028. }
  11029. } else {
  11030. r.EncodeNil()
  11031. }
  11032. } else {
  11033. if yyq2[47] {
  11034. r.WriteMapElemKey()
  11035. if z.IsJSONHandle() {
  11036. z.WriteStr("\"Nslice\"")
  11037. } else {
  11038. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  11039. }
  11040. r.WriteMapElemValue()
  11041. if x.Nslice == nil {
  11042. r.EncodeNil()
  11043. } else {
  11044. if false {
  11045. } else {
  11046. r.EncodeStringBytesRaw([]byte(x.Nslice))
  11047. }
  11048. }
  11049. }
  11050. }
  11051. var yyn153 bool
  11052. if x.TestStrucCommon.Nint64 == nil {
  11053. yyn153 = true
  11054. goto LABEL153
  11055. }
  11056. LABEL153:
  11057. if yyr2 || yy2arr2 {
  11058. if yyn153 {
  11059. r.WriteArrayElem()
  11060. r.EncodeNil()
  11061. } else {
  11062. r.WriteArrayElem()
  11063. if yyq2[48] {
  11064. if x.Nint64 == nil {
  11065. r.EncodeNil()
  11066. } else {
  11067. yy154 := *x.Nint64
  11068. if false {
  11069. } else {
  11070. r.EncodeInt(int64(yy154))
  11071. }
  11072. }
  11073. } else {
  11074. r.EncodeNil()
  11075. }
  11076. }
  11077. } else {
  11078. if yyq2[48] {
  11079. r.WriteMapElemKey()
  11080. if z.IsJSONHandle() {
  11081. z.WriteStr("\"Nint64\"")
  11082. } else {
  11083. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  11084. }
  11085. r.WriteMapElemValue()
  11086. if yyn153 {
  11087. r.EncodeNil()
  11088. } else {
  11089. if x.Nint64 == nil {
  11090. r.EncodeNil()
  11091. } else {
  11092. yy156 := *x.Nint64
  11093. if false {
  11094. } else {
  11095. r.EncodeInt(int64(yy156))
  11096. }
  11097. }
  11098. }
  11099. }
  11100. }
  11101. if yyr2 || yy2arr2 {
  11102. r.WriteArrayElem()
  11103. if yyq2[49] {
  11104. if x.Chstr == nil {
  11105. r.EncodeNil()
  11106. } else {
  11107. if false {
  11108. } else {
  11109. h.encChanstring((chan string)(x.Chstr), e)
  11110. }
  11111. }
  11112. } else {
  11113. r.EncodeNil()
  11114. }
  11115. } else {
  11116. if yyq2[49] {
  11117. r.WriteMapElemKey()
  11118. if z.IsJSONHandle() {
  11119. z.WriteStr("\"Chstr\"")
  11120. } else {
  11121. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  11122. }
  11123. r.WriteMapElemValue()
  11124. if x.Chstr == nil {
  11125. r.EncodeNil()
  11126. } else {
  11127. if false {
  11128. } else {
  11129. h.encChanstring((chan string)(x.Chstr), e)
  11130. }
  11131. }
  11132. }
  11133. }
  11134. if yyr2 || yy2arr2 {
  11135. r.WriteArrayElem()
  11136. if yyq2[50] {
  11137. if x.Mis == nil {
  11138. r.EncodeNil()
  11139. } else {
  11140. if false {
  11141. } else {
  11142. z.F.EncMapIntStringV(x.Mis, e)
  11143. }
  11144. }
  11145. } else {
  11146. r.EncodeNil()
  11147. }
  11148. } else {
  11149. if yyq2[50] {
  11150. r.WriteMapElemKey()
  11151. if z.IsJSONHandle() {
  11152. z.WriteStr("\"Mis\"")
  11153. } else {
  11154. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  11155. }
  11156. r.WriteMapElemValue()
  11157. if x.Mis == nil {
  11158. r.EncodeNil()
  11159. } else {
  11160. if false {
  11161. } else {
  11162. z.F.EncMapIntStringV(x.Mis, e)
  11163. }
  11164. }
  11165. }
  11166. }
  11167. if yyr2 || yy2arr2 {
  11168. r.WriteArrayElem()
  11169. if yyq2[51] {
  11170. if x.Mbu64 == nil {
  11171. r.EncodeNil()
  11172. } else {
  11173. if false {
  11174. } else {
  11175. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  11176. }
  11177. }
  11178. } else {
  11179. r.EncodeNil()
  11180. }
  11181. } else {
  11182. if yyq2[51] {
  11183. r.WriteMapElemKey()
  11184. if z.IsJSONHandle() {
  11185. z.WriteStr("\"Mbu64\"")
  11186. } else {
  11187. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  11188. }
  11189. r.WriteMapElemValue()
  11190. if x.Mbu64 == nil {
  11191. r.EncodeNil()
  11192. } else {
  11193. if false {
  11194. } else {
  11195. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  11196. }
  11197. }
  11198. }
  11199. }
  11200. if yyr2 || yy2arr2 {
  11201. r.WriteArrayElem()
  11202. if yyq2[52] {
  11203. if x.Miwu64s == nil {
  11204. r.EncodeNil()
  11205. } else {
  11206. if false {
  11207. } else {
  11208. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  11209. }
  11210. }
  11211. } else {
  11212. r.EncodeNil()
  11213. }
  11214. } else {
  11215. if yyq2[52] {
  11216. r.WriteMapElemKey()
  11217. if z.IsJSONHandle() {
  11218. z.WriteStr("\"Miwu64s\"")
  11219. } else {
  11220. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  11221. }
  11222. r.WriteMapElemValue()
  11223. if x.Miwu64s == nil {
  11224. r.EncodeNil()
  11225. } else {
  11226. if false {
  11227. } else {
  11228. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  11229. }
  11230. }
  11231. }
  11232. }
  11233. if yyr2 || yy2arr2 {
  11234. r.WriteArrayElem()
  11235. if yyq2[53] {
  11236. if x.Mfwss == nil {
  11237. r.EncodeNil()
  11238. } else {
  11239. if false {
  11240. } else {
  11241. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  11242. }
  11243. }
  11244. } else {
  11245. r.EncodeNil()
  11246. }
  11247. } else {
  11248. if yyq2[53] {
  11249. r.WriteMapElemKey()
  11250. if z.IsJSONHandle() {
  11251. z.WriteStr("\"Mfwss\"")
  11252. } else {
  11253. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  11254. }
  11255. r.WriteMapElemValue()
  11256. if x.Mfwss == nil {
  11257. r.EncodeNil()
  11258. } else {
  11259. if false {
  11260. } else {
  11261. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  11262. }
  11263. }
  11264. }
  11265. }
  11266. if yyr2 || yy2arr2 {
  11267. r.WriteArrayElem()
  11268. if yyq2[54] {
  11269. if x.Mf32wss == nil {
  11270. r.EncodeNil()
  11271. } else {
  11272. if false {
  11273. } else {
  11274. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  11275. }
  11276. }
  11277. } else {
  11278. r.EncodeNil()
  11279. }
  11280. } else {
  11281. if yyq2[54] {
  11282. r.WriteMapElemKey()
  11283. if z.IsJSONHandle() {
  11284. z.WriteStr("\"Mf32wss\"")
  11285. } else {
  11286. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  11287. }
  11288. r.WriteMapElemValue()
  11289. if x.Mf32wss == nil {
  11290. r.EncodeNil()
  11291. } else {
  11292. if false {
  11293. } else {
  11294. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  11295. }
  11296. }
  11297. }
  11298. }
  11299. if yyr2 || yy2arr2 {
  11300. r.WriteArrayElem()
  11301. if yyq2[55] {
  11302. if x.Mui2wss == nil {
  11303. r.EncodeNil()
  11304. } else {
  11305. if false {
  11306. } else {
  11307. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  11308. }
  11309. }
  11310. } else {
  11311. r.EncodeNil()
  11312. }
  11313. } else {
  11314. if yyq2[55] {
  11315. r.WriteMapElemKey()
  11316. if z.IsJSONHandle() {
  11317. z.WriteStr("\"Mui2wss\"")
  11318. } else {
  11319. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  11320. }
  11321. r.WriteMapElemValue()
  11322. if x.Mui2wss == nil {
  11323. r.EncodeNil()
  11324. } else {
  11325. if false {
  11326. } else {
  11327. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  11328. }
  11329. }
  11330. }
  11331. }
  11332. if yyr2 || yy2arr2 {
  11333. r.WriteArrayElem()
  11334. if yyq2[56] {
  11335. if x.Msu2wss == nil {
  11336. r.EncodeNil()
  11337. } else {
  11338. if false {
  11339. } else {
  11340. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  11341. }
  11342. }
  11343. } else {
  11344. r.EncodeNil()
  11345. }
  11346. } else {
  11347. if yyq2[56] {
  11348. r.WriteMapElemKey()
  11349. if z.IsJSONHandle() {
  11350. z.WriteStr("\"Msu2wss\"")
  11351. } else {
  11352. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  11353. }
  11354. r.WriteMapElemValue()
  11355. if x.Msu2wss == nil {
  11356. r.EncodeNil()
  11357. } else {
  11358. if false {
  11359. } else {
  11360. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  11361. }
  11362. }
  11363. }
  11364. }
  11365. if yyr2 || yy2arr2 {
  11366. r.WriteArrayElem()
  11367. if yyq2[57] {
  11368. x.Ci64.CodecEncodeSelf(e)
  11369. } else {
  11370. r.EncodeInt(0)
  11371. }
  11372. } else {
  11373. if yyq2[57] {
  11374. r.WriteMapElemKey()
  11375. if z.IsJSONHandle() {
  11376. z.WriteStr("\"Ci64\"")
  11377. } else {
  11378. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  11379. }
  11380. r.WriteMapElemValue()
  11381. x.Ci64.CodecEncodeSelf(e)
  11382. }
  11383. }
  11384. if yyr2 || yy2arr2 {
  11385. r.WriteArrayElem()
  11386. if yyq2[58] {
  11387. if x.Swrapbytes == nil {
  11388. r.EncodeNil()
  11389. } else {
  11390. if false {
  11391. } else {
  11392. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  11393. }
  11394. }
  11395. } else {
  11396. r.EncodeNil()
  11397. }
  11398. } else {
  11399. if yyq2[58] {
  11400. r.WriteMapElemKey()
  11401. if z.IsJSONHandle() {
  11402. z.WriteStr("\"Swrapbytes\"")
  11403. } else {
  11404. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  11405. }
  11406. r.WriteMapElemValue()
  11407. if x.Swrapbytes == nil {
  11408. r.EncodeNil()
  11409. } else {
  11410. if false {
  11411. } else {
  11412. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  11413. }
  11414. }
  11415. }
  11416. }
  11417. if yyr2 || yy2arr2 {
  11418. r.WriteArrayElem()
  11419. if yyq2[59] {
  11420. if x.Swrapuint8 == nil {
  11421. r.EncodeNil()
  11422. } else {
  11423. if false {
  11424. } else {
  11425. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  11426. }
  11427. }
  11428. } else {
  11429. r.EncodeNil()
  11430. }
  11431. } else {
  11432. if yyq2[59] {
  11433. r.WriteMapElemKey()
  11434. if z.IsJSONHandle() {
  11435. z.WriteStr("\"Swrapuint8\"")
  11436. } else {
  11437. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  11438. }
  11439. r.WriteMapElemValue()
  11440. if x.Swrapuint8 == nil {
  11441. r.EncodeNil()
  11442. } else {
  11443. if false {
  11444. } else {
  11445. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  11446. }
  11447. }
  11448. }
  11449. }
  11450. if yyr2 || yy2arr2 {
  11451. r.WriteArrayElem()
  11452. if yyq2[60] {
  11453. yy192 := &x.ArrStrUi64T
  11454. if false {
  11455. } else {
  11456. h.encArray4stringUint64T((*[4]stringUint64T)(yy192), e)
  11457. }
  11458. } else {
  11459. r.EncodeNil()
  11460. }
  11461. } else {
  11462. if yyq2[60] {
  11463. r.WriteMapElemKey()
  11464. if z.IsJSONHandle() {
  11465. z.WriteStr("\"ArrStrUi64T\"")
  11466. } else {
  11467. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  11468. }
  11469. r.WriteMapElemValue()
  11470. yy194 := &x.ArrStrUi64T
  11471. if false {
  11472. } else {
  11473. h.encArray4stringUint64T((*[4]stringUint64T)(yy194), e)
  11474. }
  11475. }
  11476. }
  11477. if yyr2 || yy2arr2 {
  11478. r.WriteArrayElem()
  11479. if yyq2[61] {
  11480. yy197 := &x.Ui64array
  11481. if false {
  11482. } else {
  11483. h.encArray4uint64((*[4]uint64)(yy197), e)
  11484. }
  11485. } else {
  11486. r.EncodeNil()
  11487. }
  11488. } else {
  11489. if yyq2[61] {
  11490. r.WriteMapElemKey()
  11491. if z.IsJSONHandle() {
  11492. z.WriteStr("\"Ui64array\"")
  11493. } else {
  11494. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  11495. }
  11496. r.WriteMapElemValue()
  11497. yy199 := &x.Ui64array
  11498. if false {
  11499. } else {
  11500. h.encArray4uint64((*[4]uint64)(yy199), e)
  11501. }
  11502. }
  11503. }
  11504. if yyr2 || yy2arr2 {
  11505. r.WriteArrayElem()
  11506. if yyq2[62] {
  11507. if x.Ui64slicearray == nil {
  11508. r.EncodeNil()
  11509. } else {
  11510. if false {
  11511. } else {
  11512. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  11513. }
  11514. }
  11515. } else {
  11516. r.EncodeNil()
  11517. }
  11518. } else {
  11519. if yyq2[62] {
  11520. r.WriteMapElemKey()
  11521. if z.IsJSONHandle() {
  11522. z.WriteStr("\"Ui64slicearray\"")
  11523. } else {
  11524. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  11525. }
  11526. r.WriteMapElemValue()
  11527. if x.Ui64slicearray == nil {
  11528. r.EncodeNil()
  11529. } else {
  11530. if false {
  11531. } else {
  11532. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  11533. }
  11534. }
  11535. }
  11536. }
  11537. if yyr2 || yy2arr2 {
  11538. r.WriteArrayElem()
  11539. if yyq2[63] {
  11540. if x.SintfAarray == nil {
  11541. r.EncodeNil()
  11542. } else {
  11543. if false {
  11544. } else {
  11545. z.F.EncSliceIntfV(x.SintfAarray, e)
  11546. }
  11547. }
  11548. } else {
  11549. r.EncodeNil()
  11550. }
  11551. } else {
  11552. if yyq2[63] {
  11553. r.WriteMapElemKey()
  11554. if z.IsJSONHandle() {
  11555. z.WriteStr("\"SintfAarray\"")
  11556. } else {
  11557. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  11558. }
  11559. r.WriteMapElemValue()
  11560. if x.SintfAarray == nil {
  11561. r.EncodeNil()
  11562. } else {
  11563. if false {
  11564. } else {
  11565. z.F.EncSliceIntfV(x.SintfAarray, e)
  11566. }
  11567. }
  11568. }
  11569. }
  11570. var yyn207 bool
  11571. if x.AnonInTestStrucIntf == nil {
  11572. yyn207 = true
  11573. goto LABEL207
  11574. }
  11575. LABEL207:
  11576. if yyr2 || yy2arr2 {
  11577. if yyn207 {
  11578. r.WriteArrayElem()
  11579. r.EncodeNil()
  11580. } else {
  11581. r.WriteArrayElem()
  11582. if yyq2[64] {
  11583. if x.Islice == nil {
  11584. r.EncodeNil()
  11585. } else {
  11586. if false {
  11587. } else {
  11588. z.F.EncSliceIntfV(x.Islice, e)
  11589. }
  11590. }
  11591. } else {
  11592. r.EncodeNil()
  11593. }
  11594. }
  11595. } else {
  11596. if yyq2[64] {
  11597. r.WriteMapElemKey()
  11598. if z.IsJSONHandle() {
  11599. z.WriteStr("\"Islice\"")
  11600. } else {
  11601. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  11602. }
  11603. r.WriteMapElemValue()
  11604. if yyn207 {
  11605. r.EncodeNil()
  11606. } else {
  11607. if x.Islice == nil {
  11608. r.EncodeNil()
  11609. } else {
  11610. if false {
  11611. } else {
  11612. z.F.EncSliceIntfV(x.Islice, e)
  11613. }
  11614. }
  11615. }
  11616. }
  11617. }
  11618. var yyn210 bool
  11619. if x.AnonInTestStrucIntf == nil {
  11620. yyn210 = true
  11621. goto LABEL210
  11622. }
  11623. LABEL210:
  11624. if yyr2 || yy2arr2 {
  11625. if yyn210 {
  11626. r.WriteArrayElem()
  11627. r.EncodeNil()
  11628. } else {
  11629. r.WriteArrayElem()
  11630. if yyq2[65] {
  11631. if x.Ms == nil {
  11632. r.EncodeNil()
  11633. } else {
  11634. if false {
  11635. } else {
  11636. z.F.EncMapStringIntfV(x.Ms, e)
  11637. }
  11638. }
  11639. } else {
  11640. r.EncodeNil()
  11641. }
  11642. }
  11643. } else {
  11644. if yyq2[65] {
  11645. r.WriteMapElemKey()
  11646. if z.IsJSONHandle() {
  11647. z.WriteStr("\"Ms\"")
  11648. } else {
  11649. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  11650. }
  11651. r.WriteMapElemValue()
  11652. if yyn210 {
  11653. r.EncodeNil()
  11654. } else {
  11655. if x.Ms == nil {
  11656. r.EncodeNil()
  11657. } else {
  11658. if false {
  11659. } else {
  11660. z.F.EncMapStringIntfV(x.Ms, e)
  11661. }
  11662. }
  11663. }
  11664. }
  11665. }
  11666. var yyn213 bool
  11667. if x.AnonInTestStrucIntf == nil {
  11668. yyn213 = true
  11669. goto LABEL213
  11670. }
  11671. LABEL213:
  11672. if yyr2 || yy2arr2 {
  11673. if yyn213 {
  11674. r.WriteArrayElem()
  11675. r.EncodeNil()
  11676. } else {
  11677. r.WriteArrayElem()
  11678. if yyq2[66] {
  11679. if x.Nintf == nil {
  11680. r.EncodeNil()
  11681. } else {
  11682. if false {
  11683. } else {
  11684. z.EncFallback(x.Nintf)
  11685. }
  11686. }
  11687. } else {
  11688. r.EncodeNil()
  11689. }
  11690. }
  11691. } else {
  11692. if yyq2[66] {
  11693. r.WriteMapElemKey()
  11694. if z.IsJSONHandle() {
  11695. z.WriteStr("\"Nintf\"")
  11696. } else {
  11697. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  11698. }
  11699. r.WriteMapElemValue()
  11700. if yyn213 {
  11701. r.EncodeNil()
  11702. } else {
  11703. if x.Nintf == nil {
  11704. r.EncodeNil()
  11705. } else {
  11706. if false {
  11707. } else {
  11708. z.EncFallback(x.Nintf)
  11709. }
  11710. }
  11711. }
  11712. }
  11713. }
  11714. var yyn216 bool
  11715. if x.AnonInTestStrucIntf == nil {
  11716. yyn216 = true
  11717. goto LABEL216
  11718. }
  11719. LABEL216:
  11720. if yyr2 || yy2arr2 {
  11721. if yyn216 {
  11722. r.WriteArrayElem()
  11723. r.EncodeNil()
  11724. } else {
  11725. r.WriteArrayElem()
  11726. if yyq2[67] {
  11727. if false {
  11728. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11729. r.EncodeTime(x.T)
  11730. } else if yyxt217 := z.Extension(z.I2Rtid(x.T)); yyxt217 != nil {
  11731. z.EncExtension(x.T, yyxt217)
  11732. } else if z.EncBinary() {
  11733. z.EncBinaryMarshal(x.T)
  11734. } else if !z.EncBinary() && z.IsJSONHandle() {
  11735. z.EncJSONMarshal(x.T)
  11736. } else {
  11737. z.EncFallback(x.T)
  11738. }
  11739. } else {
  11740. r.EncodeNil()
  11741. }
  11742. }
  11743. } else {
  11744. if yyq2[67] {
  11745. r.WriteMapElemKey()
  11746. if z.IsJSONHandle() {
  11747. z.WriteStr("\"T\"")
  11748. } else {
  11749. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  11750. }
  11751. r.WriteMapElemValue()
  11752. if yyn216 {
  11753. r.EncodeNil()
  11754. } else {
  11755. if false {
  11756. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11757. r.EncodeTime(x.T)
  11758. } else if yyxt218 := z.Extension(z.I2Rtid(x.T)); yyxt218 != nil {
  11759. z.EncExtension(x.T, yyxt218)
  11760. } else if z.EncBinary() {
  11761. z.EncBinaryMarshal(x.T)
  11762. } else if !z.EncBinary() && z.IsJSONHandle() {
  11763. z.EncJSONMarshal(x.T)
  11764. } else {
  11765. z.EncFallback(x.T)
  11766. }
  11767. }
  11768. }
  11769. }
  11770. var yyn219 bool
  11771. if x.AnonInTestStrucIntf == nil {
  11772. yyn219 = true
  11773. goto LABEL219
  11774. }
  11775. if x.AnonInTestStrucIntf.Tptr == nil {
  11776. yyn219 = true
  11777. goto LABEL219
  11778. }
  11779. LABEL219:
  11780. if yyr2 || yy2arr2 {
  11781. if yyn219 {
  11782. r.WriteArrayElem()
  11783. r.EncodeNil()
  11784. } else {
  11785. r.WriteArrayElem()
  11786. if yyq2[68] {
  11787. if x.Tptr == nil {
  11788. r.EncodeNil()
  11789. } else {
  11790. yy220 := *x.Tptr
  11791. if false {
  11792. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11793. r.EncodeTime(yy220)
  11794. } else if yyxt221 := z.Extension(z.I2Rtid(yy220)); yyxt221 != nil {
  11795. z.EncExtension(yy220, yyxt221)
  11796. } else if z.EncBinary() {
  11797. z.EncBinaryMarshal(yy220)
  11798. } else if !z.EncBinary() && z.IsJSONHandle() {
  11799. z.EncJSONMarshal(yy220)
  11800. } else {
  11801. z.EncFallback(yy220)
  11802. }
  11803. }
  11804. } else {
  11805. r.EncodeNil()
  11806. }
  11807. }
  11808. } else {
  11809. if yyq2[68] {
  11810. r.WriteMapElemKey()
  11811. if z.IsJSONHandle() {
  11812. z.WriteStr("\"Tptr\"")
  11813. } else {
  11814. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  11815. }
  11816. r.WriteMapElemValue()
  11817. if yyn219 {
  11818. r.EncodeNil()
  11819. } else {
  11820. if x.Tptr == nil {
  11821. r.EncodeNil()
  11822. } else {
  11823. yy222 := *x.Tptr
  11824. if false {
  11825. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11826. r.EncodeTime(yy222)
  11827. } else if yyxt223 := z.Extension(z.I2Rtid(yy222)); yyxt223 != nil {
  11828. z.EncExtension(yy222, yyxt223)
  11829. } else if z.EncBinary() {
  11830. z.EncBinaryMarshal(yy222)
  11831. } else if !z.EncBinary() && z.IsJSONHandle() {
  11832. z.EncJSONMarshal(yy222)
  11833. } else {
  11834. z.EncFallback(yy222)
  11835. }
  11836. }
  11837. }
  11838. }
  11839. }
  11840. if yyr2 || yy2arr2 {
  11841. r.WriteArrayElem()
  11842. if yyq2[69] {
  11843. if x.Mtsptr == nil {
  11844. r.EncodeNil()
  11845. } else {
  11846. if false {
  11847. } else {
  11848. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  11849. }
  11850. }
  11851. } else {
  11852. r.EncodeNil()
  11853. }
  11854. } else {
  11855. if yyq2[69] {
  11856. r.WriteMapElemKey()
  11857. if z.IsJSONHandle() {
  11858. z.WriteStr("\"Mtsptr\"")
  11859. } else {
  11860. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  11861. }
  11862. r.WriteMapElemValue()
  11863. if x.Mtsptr == nil {
  11864. r.EncodeNil()
  11865. } else {
  11866. if false {
  11867. } else {
  11868. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  11869. }
  11870. }
  11871. }
  11872. }
  11873. if yyr2 || yy2arr2 {
  11874. r.WriteArrayElem()
  11875. if yyq2[70] {
  11876. if x.Mts == nil {
  11877. r.EncodeNil()
  11878. } else {
  11879. if false {
  11880. } else {
  11881. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  11882. }
  11883. }
  11884. } else {
  11885. r.EncodeNil()
  11886. }
  11887. } else {
  11888. if yyq2[70] {
  11889. r.WriteMapElemKey()
  11890. if z.IsJSONHandle() {
  11891. z.WriteStr("\"Mts\"")
  11892. } else {
  11893. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  11894. }
  11895. r.WriteMapElemValue()
  11896. if x.Mts == nil {
  11897. r.EncodeNil()
  11898. } else {
  11899. if false {
  11900. } else {
  11901. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  11902. }
  11903. }
  11904. }
  11905. }
  11906. if yyr2 || yy2arr2 {
  11907. r.WriteArrayElem()
  11908. if yyq2[71] {
  11909. if x.Its == nil {
  11910. r.EncodeNil()
  11911. } else {
  11912. if false {
  11913. } else {
  11914. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  11915. }
  11916. }
  11917. } else {
  11918. r.EncodeNil()
  11919. }
  11920. } else {
  11921. if yyq2[71] {
  11922. r.WriteMapElemKey()
  11923. if z.IsJSONHandle() {
  11924. z.WriteStr("\"Its\"")
  11925. } else {
  11926. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  11927. }
  11928. r.WriteMapElemValue()
  11929. if x.Its == nil {
  11930. r.EncodeNil()
  11931. } else {
  11932. if false {
  11933. } else {
  11934. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  11935. }
  11936. }
  11937. }
  11938. }
  11939. var yyn233 bool
  11940. if x.Nteststruc == nil {
  11941. yyn233 = true
  11942. goto LABEL233
  11943. }
  11944. LABEL233:
  11945. if yyr2 || yy2arr2 {
  11946. if yyn233 {
  11947. r.WriteArrayElem()
  11948. r.EncodeNil()
  11949. } else {
  11950. r.WriteArrayElem()
  11951. if yyq2[72] {
  11952. if x.Nteststruc == nil {
  11953. r.EncodeNil()
  11954. } else {
  11955. x.Nteststruc.CodecEncodeSelf(e)
  11956. }
  11957. } else {
  11958. r.EncodeNil()
  11959. }
  11960. }
  11961. } else {
  11962. if yyq2[72] {
  11963. r.WriteMapElemKey()
  11964. if z.IsJSONHandle() {
  11965. z.WriteStr("\"Nteststruc\"")
  11966. } else {
  11967. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  11968. }
  11969. r.WriteMapElemValue()
  11970. if yyn233 {
  11971. r.EncodeNil()
  11972. } else {
  11973. if x.Nteststruc == nil {
  11974. r.EncodeNil()
  11975. } else {
  11976. x.Nteststruc.CodecEncodeSelf(e)
  11977. }
  11978. }
  11979. }
  11980. }
  11981. if yyr2 || yy2arr2 {
  11982. r.WriteArrayEnd()
  11983. } else {
  11984. r.WriteMapEnd()
  11985. }
  11986. }
  11987. }
  11988. }
  11989. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  11990. var h codecSelfer19780
  11991. z, r := GenHelperDecoder(d)
  11992. _, _, _ = h, z, r
  11993. if false {
  11994. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  11995. z.DecExtension(x, yyxt1)
  11996. } else {
  11997. yyct2 := r.ContainerType()
  11998. if yyct2 == codecSelferValueTypeMap19780 {
  11999. yyl2 := r.ReadMapStart()
  12000. if yyl2 == 0 {
  12001. r.ReadMapEnd()
  12002. } else {
  12003. x.codecDecodeSelfFromMap(yyl2, d)
  12004. }
  12005. } else if yyct2 == codecSelferValueTypeArray19780 {
  12006. yyl2 := r.ReadArrayStart()
  12007. if yyl2 == 0 {
  12008. r.ReadArrayEnd()
  12009. } else {
  12010. x.codecDecodeSelfFromArray(yyl2, d)
  12011. }
  12012. } else {
  12013. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  12014. }
  12015. }
  12016. }
  12017. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  12018. var h codecSelfer19780
  12019. z, r := GenHelperDecoder(d)
  12020. _, _, _ = h, z, r
  12021. var yyhl3 bool = l >= 0
  12022. for yyj3 := 0; ; yyj3++ {
  12023. if yyhl3 {
  12024. if yyj3 >= l {
  12025. break
  12026. }
  12027. } else {
  12028. if r.CheckBreak() {
  12029. break
  12030. }
  12031. }
  12032. r.ReadMapElemKey()
  12033. yys3 := z.StringView(r.DecodeStringAsBytes())
  12034. r.ReadMapElemValue()
  12035. switch yys3 {
  12036. case "S":
  12037. if r.TryDecodeAsNil() {
  12038. x.TestStrucCommon.S = ""
  12039. } else {
  12040. x.S = (string)(r.DecodeString())
  12041. }
  12042. case "I64":
  12043. if r.TryDecodeAsNil() {
  12044. x.TestStrucCommon.I64 = 0
  12045. } else {
  12046. x.I64 = (int64)(r.DecodeInt64())
  12047. }
  12048. case "I32":
  12049. if r.TryDecodeAsNil() {
  12050. x.TestStrucCommon.I32 = 0
  12051. } else {
  12052. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12053. }
  12054. case "I16":
  12055. if r.TryDecodeAsNil() {
  12056. x.TestStrucCommon.I16 = 0
  12057. } else {
  12058. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12059. }
  12060. case "I8":
  12061. if r.TryDecodeAsNil() {
  12062. x.TestStrucCommon.I8 = 0
  12063. } else {
  12064. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12065. }
  12066. case "I64n":
  12067. if r.TryDecodeAsNil() {
  12068. x.TestStrucCommon.I64n = 0
  12069. } else {
  12070. x.I64n = (int64)(r.DecodeInt64())
  12071. }
  12072. case "I32n":
  12073. if r.TryDecodeAsNil() {
  12074. x.TestStrucCommon.I32n = 0
  12075. } else {
  12076. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12077. }
  12078. case "I16n":
  12079. if r.TryDecodeAsNil() {
  12080. x.TestStrucCommon.I16n = 0
  12081. } else {
  12082. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12083. }
  12084. case "I8n":
  12085. if r.TryDecodeAsNil() {
  12086. x.TestStrucCommon.I8n = 0
  12087. } else {
  12088. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12089. }
  12090. case "Ui64":
  12091. if r.TryDecodeAsNil() {
  12092. x.TestStrucCommon.Ui64 = 0
  12093. } else {
  12094. x.Ui64 = (uint64)(r.DecodeUint64())
  12095. }
  12096. case "Ui32":
  12097. if r.TryDecodeAsNil() {
  12098. x.TestStrucCommon.Ui32 = 0
  12099. } else {
  12100. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12101. }
  12102. case "Ui16":
  12103. if r.TryDecodeAsNil() {
  12104. x.TestStrucCommon.Ui16 = 0
  12105. } else {
  12106. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12107. }
  12108. case "Ui8":
  12109. if r.TryDecodeAsNil() {
  12110. x.TestStrucCommon.Ui8 = 0
  12111. } else {
  12112. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12113. }
  12114. case "F64":
  12115. if r.TryDecodeAsNil() {
  12116. x.TestStrucCommon.F64 = 0
  12117. } else {
  12118. x.F64 = (float64)(r.DecodeFloat64())
  12119. }
  12120. case "F32":
  12121. if r.TryDecodeAsNil() {
  12122. x.TestStrucCommon.F32 = 0
  12123. } else {
  12124. x.F32 = (float32)(r.DecodeFloat32As64())
  12125. }
  12126. case "B":
  12127. if r.TryDecodeAsNil() {
  12128. x.TestStrucCommon.B = false
  12129. } else {
  12130. x.B = (bool)(r.DecodeBool())
  12131. }
  12132. case "By":
  12133. if r.TryDecodeAsNil() {
  12134. x.TestStrucCommon.By = 0
  12135. } else {
  12136. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12137. }
  12138. case "Sslice":
  12139. if r.TryDecodeAsNil() {
  12140. x.TestStrucCommon.Sslice = nil
  12141. } else {
  12142. if false {
  12143. } else {
  12144. z.F.DecSliceStringX(&x.Sslice, d)
  12145. }
  12146. }
  12147. case "I64slice":
  12148. if r.TryDecodeAsNil() {
  12149. x.TestStrucCommon.I64slice = nil
  12150. } else {
  12151. if false {
  12152. } else {
  12153. z.F.DecSliceInt64X(&x.I64slice, d)
  12154. }
  12155. }
  12156. case "I16slice":
  12157. if r.TryDecodeAsNil() {
  12158. x.TestStrucCommon.I16slice = nil
  12159. } else {
  12160. if false {
  12161. } else {
  12162. z.F.DecSliceInt16X(&x.I16slice, d)
  12163. }
  12164. }
  12165. case "Ui64slice":
  12166. if r.TryDecodeAsNil() {
  12167. x.TestStrucCommon.Ui64slice = nil
  12168. } else {
  12169. if false {
  12170. } else {
  12171. z.F.DecSliceUint64X(&x.Ui64slice, d)
  12172. }
  12173. }
  12174. case "Ui8slice":
  12175. if r.TryDecodeAsNil() {
  12176. x.TestStrucCommon.Ui8slice = nil
  12177. } else {
  12178. if false {
  12179. } else {
  12180. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  12181. }
  12182. }
  12183. case "Bslice":
  12184. if r.TryDecodeAsNil() {
  12185. x.TestStrucCommon.Bslice = nil
  12186. } else {
  12187. if false {
  12188. } else {
  12189. z.F.DecSliceBoolX(&x.Bslice, d)
  12190. }
  12191. }
  12192. case "Byslice":
  12193. if r.TryDecodeAsNil() {
  12194. x.TestStrucCommon.Byslice = nil
  12195. } else {
  12196. if false {
  12197. } else {
  12198. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  12199. }
  12200. }
  12201. case "Iptrslice":
  12202. if r.TryDecodeAsNil() {
  12203. x.TestStrucCommon.Iptrslice = nil
  12204. } else {
  12205. if false {
  12206. } else {
  12207. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  12208. }
  12209. }
  12210. case "WrapSliceInt64":
  12211. if r.TryDecodeAsNil() {
  12212. x.TestStrucCommon.WrapSliceInt64 = nil
  12213. } else {
  12214. x.WrapSliceInt64.CodecDecodeSelf(d)
  12215. }
  12216. case "WrapSliceString":
  12217. if r.TryDecodeAsNil() {
  12218. x.TestStrucCommon.WrapSliceString = nil
  12219. } else {
  12220. x.WrapSliceString.CodecDecodeSelf(d)
  12221. }
  12222. case "Msi64":
  12223. if r.TryDecodeAsNil() {
  12224. x.TestStrucCommon.Msi64 = nil
  12225. } else {
  12226. if false {
  12227. } else {
  12228. z.F.DecMapStringInt64X(&x.Msi64, d)
  12229. }
  12230. }
  12231. case "Simplef":
  12232. if r.TryDecodeAsNil() {
  12233. x.TestStrucCommon.Simplef = testSimpleFields{}
  12234. } else {
  12235. x.Simplef.CodecDecodeSelf(d)
  12236. }
  12237. case "SstrUi64T":
  12238. if r.TryDecodeAsNil() {
  12239. x.TestStrucCommon.SstrUi64T = nil
  12240. } else {
  12241. if false {
  12242. } else {
  12243. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  12244. }
  12245. }
  12246. case "AS":
  12247. if r.TryDecodeAsNil() {
  12248. x.TestStrucCommon.AnonInTestStruc.AS = ""
  12249. } else {
  12250. x.AS = (string)(r.DecodeString())
  12251. }
  12252. case "AI64":
  12253. if r.TryDecodeAsNil() {
  12254. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  12255. } else {
  12256. x.AI64 = (int64)(r.DecodeInt64())
  12257. }
  12258. case "AI16":
  12259. if r.TryDecodeAsNil() {
  12260. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  12261. } else {
  12262. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12263. }
  12264. case "AUi64":
  12265. if r.TryDecodeAsNil() {
  12266. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  12267. } else {
  12268. x.AUi64 = (uint64)(r.DecodeUint64())
  12269. }
  12270. case "ASslice":
  12271. if r.TryDecodeAsNil() {
  12272. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  12273. } else {
  12274. if false {
  12275. } else {
  12276. z.F.DecSliceStringX(&x.ASslice, d)
  12277. }
  12278. }
  12279. case "AI64slice":
  12280. if r.TryDecodeAsNil() {
  12281. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  12282. } else {
  12283. if false {
  12284. } else {
  12285. z.F.DecSliceInt64X(&x.AI64slice, d)
  12286. }
  12287. }
  12288. case "AUi64slice":
  12289. if r.TryDecodeAsNil() {
  12290. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  12291. } else {
  12292. if false {
  12293. } else {
  12294. z.F.DecSliceUint64X(&x.AUi64slice, d)
  12295. }
  12296. }
  12297. case "AF64slice":
  12298. if r.TryDecodeAsNil() {
  12299. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  12300. } else {
  12301. if false {
  12302. } else {
  12303. z.F.DecSliceFloat64X(&x.AF64slice, d)
  12304. }
  12305. }
  12306. case "AF32slice":
  12307. if r.TryDecodeAsNil() {
  12308. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  12309. } else {
  12310. if false {
  12311. } else {
  12312. z.F.DecSliceFloat32X(&x.AF32slice, d)
  12313. }
  12314. }
  12315. case "AMSU16":
  12316. if r.TryDecodeAsNil() {
  12317. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  12318. } else {
  12319. if false {
  12320. } else {
  12321. z.F.DecMapStringUint16X(&x.AMSU16, d)
  12322. }
  12323. }
  12324. case "AI64arr0":
  12325. if r.TryDecodeAsNil() {
  12326. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  12327. } else {
  12328. if false {
  12329. } else {
  12330. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  12331. }
  12332. }
  12333. case "A164slice0":
  12334. if r.TryDecodeAsNil() {
  12335. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  12336. } else {
  12337. if false {
  12338. } else {
  12339. z.F.DecSliceInt64X(&x.A164slice0, d)
  12340. }
  12341. }
  12342. case "AUi64sliceN":
  12343. if r.TryDecodeAsNil() {
  12344. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  12345. } else {
  12346. if false {
  12347. } else {
  12348. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  12349. }
  12350. }
  12351. case "AMSU16N":
  12352. if r.TryDecodeAsNil() {
  12353. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  12354. } else {
  12355. if false {
  12356. } else {
  12357. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  12358. }
  12359. }
  12360. case "AMSU16E":
  12361. if r.TryDecodeAsNil() {
  12362. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  12363. } else {
  12364. if false {
  12365. } else {
  12366. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  12367. }
  12368. }
  12369. case "NotAnon":
  12370. if r.TryDecodeAsNil() {
  12371. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  12372. } else {
  12373. x.NotAnon.CodecDecodeSelf(d)
  12374. }
  12375. case "Nmap":
  12376. if r.TryDecodeAsNil() {
  12377. x.TestStrucCommon.Nmap = nil
  12378. } else {
  12379. if false {
  12380. } else {
  12381. z.F.DecMapStringBoolX(&x.Nmap, d)
  12382. }
  12383. }
  12384. case "Nslice":
  12385. if r.TryDecodeAsNil() {
  12386. x.TestStrucCommon.Nslice = nil
  12387. } else {
  12388. if false {
  12389. } else {
  12390. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  12391. }
  12392. }
  12393. case "Nint64":
  12394. if r.TryDecodeAsNil() {
  12395. if true && x.TestStrucCommon.Nint64 != nil {
  12396. x.TestStrucCommon.Nint64 = nil
  12397. }
  12398. } else {
  12399. if x.TestStrucCommon.Nint64 == nil {
  12400. x.TestStrucCommon.Nint64 = new(int64)
  12401. }
  12402. if false {
  12403. } else {
  12404. *x.Nint64 = (int64)(r.DecodeInt64())
  12405. }
  12406. }
  12407. case "Chstr":
  12408. if r.TryDecodeAsNil() {
  12409. x.Chstr = nil
  12410. } else {
  12411. if false {
  12412. } else {
  12413. h.decChanstring((*chan string)(&x.Chstr), d)
  12414. }
  12415. }
  12416. case "Mis":
  12417. if r.TryDecodeAsNil() {
  12418. x.Mis = nil
  12419. } else {
  12420. if false {
  12421. } else {
  12422. z.F.DecMapIntStringX(&x.Mis, d)
  12423. }
  12424. }
  12425. case "Mbu64":
  12426. if r.TryDecodeAsNil() {
  12427. x.Mbu64 = nil
  12428. } else {
  12429. if false {
  12430. } else {
  12431. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  12432. }
  12433. }
  12434. case "Miwu64s":
  12435. if r.TryDecodeAsNil() {
  12436. x.Miwu64s = nil
  12437. } else {
  12438. if false {
  12439. } else {
  12440. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  12441. }
  12442. }
  12443. case "Mfwss":
  12444. if r.TryDecodeAsNil() {
  12445. x.Mfwss = nil
  12446. } else {
  12447. if false {
  12448. } else {
  12449. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  12450. }
  12451. }
  12452. case "Mf32wss":
  12453. if r.TryDecodeAsNil() {
  12454. x.Mf32wss = nil
  12455. } else {
  12456. if false {
  12457. } else {
  12458. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  12459. }
  12460. }
  12461. case "Mui2wss":
  12462. if r.TryDecodeAsNil() {
  12463. x.Mui2wss = nil
  12464. } else {
  12465. if false {
  12466. } else {
  12467. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  12468. }
  12469. }
  12470. case "Msu2wss":
  12471. if r.TryDecodeAsNil() {
  12472. x.Msu2wss = nil
  12473. } else {
  12474. if false {
  12475. } else {
  12476. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  12477. }
  12478. }
  12479. case "Ci64":
  12480. if r.TryDecodeAsNil() {
  12481. x.Ci64 = 0
  12482. } else {
  12483. x.Ci64.CodecDecodeSelf(d)
  12484. }
  12485. case "Swrapbytes":
  12486. if r.TryDecodeAsNil() {
  12487. x.Swrapbytes = nil
  12488. } else {
  12489. if false {
  12490. } else {
  12491. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  12492. }
  12493. }
  12494. case "Swrapuint8":
  12495. if r.TryDecodeAsNil() {
  12496. x.Swrapuint8 = nil
  12497. } else {
  12498. if false {
  12499. } else {
  12500. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  12501. }
  12502. }
  12503. case "ArrStrUi64T":
  12504. if r.TryDecodeAsNil() {
  12505. x.ArrStrUi64T = [4]stringUint64T{}
  12506. } else {
  12507. if false {
  12508. } else {
  12509. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  12510. }
  12511. }
  12512. case "Ui64array":
  12513. if r.TryDecodeAsNil() {
  12514. x.Ui64array = [4]uint64{}
  12515. } else {
  12516. if false {
  12517. } else {
  12518. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  12519. }
  12520. }
  12521. case "Ui64slicearray":
  12522. if r.TryDecodeAsNil() {
  12523. x.Ui64slicearray = nil
  12524. } else {
  12525. if false {
  12526. } else {
  12527. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  12528. }
  12529. }
  12530. case "SintfAarray":
  12531. if r.TryDecodeAsNil() {
  12532. x.SintfAarray = nil
  12533. } else {
  12534. if false {
  12535. } else {
  12536. z.F.DecSliceIntfX(&x.SintfAarray, d)
  12537. }
  12538. }
  12539. case "Islice":
  12540. if r.TryDecodeAsNil() {
  12541. if true && x.AnonInTestStrucIntf != nil {
  12542. x.AnonInTestStrucIntf.Islice = nil
  12543. }
  12544. } else {
  12545. if x.AnonInTestStrucIntf == nil {
  12546. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12547. }
  12548. if false {
  12549. } else {
  12550. z.F.DecSliceIntfX(&x.Islice, d)
  12551. }
  12552. }
  12553. case "Ms":
  12554. if r.TryDecodeAsNil() {
  12555. if true && x.AnonInTestStrucIntf != nil {
  12556. x.AnonInTestStrucIntf.Ms = nil
  12557. }
  12558. } else {
  12559. if x.AnonInTestStrucIntf == nil {
  12560. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12561. }
  12562. if false {
  12563. } else {
  12564. z.F.DecMapStringIntfX(&x.Ms, d)
  12565. }
  12566. }
  12567. case "Nintf":
  12568. if r.TryDecodeAsNil() {
  12569. if true && x.AnonInTestStrucIntf != nil {
  12570. x.AnonInTestStrucIntf.Nintf = nil
  12571. }
  12572. } else {
  12573. if x.AnonInTestStrucIntf == nil {
  12574. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12575. }
  12576. if false {
  12577. } else {
  12578. z.DecFallback(&x.Nintf, true)
  12579. }
  12580. }
  12581. case "T":
  12582. if r.TryDecodeAsNil() {
  12583. if true && x.AnonInTestStrucIntf != nil {
  12584. x.AnonInTestStrucIntf.T = time.Time{}
  12585. }
  12586. } else {
  12587. if x.AnonInTestStrucIntf == nil {
  12588. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12589. }
  12590. if false {
  12591. } else if !z.DecBasicHandle().TimeNotBuiltin {
  12592. x.T = r.DecodeTime()
  12593. } else if yyxt113 := z.Extension(z.I2Rtid(x.T)); yyxt113 != nil {
  12594. z.DecExtension(x.T, yyxt113)
  12595. } else if z.DecBinary() {
  12596. z.DecBinaryUnmarshal(&x.T)
  12597. } else if !z.DecBinary() && z.IsJSONHandle() {
  12598. z.DecJSONUnmarshal(&x.T)
  12599. } else {
  12600. z.DecFallback(&x.T, false)
  12601. }
  12602. }
  12603. case "Tptr":
  12604. if r.TryDecodeAsNil() {
  12605. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  12606. x.AnonInTestStrucIntf.Tptr = nil
  12607. }
  12608. } else {
  12609. if x.AnonInTestStrucIntf == nil {
  12610. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12611. }
  12612. if x.AnonInTestStrucIntf.Tptr == nil {
  12613. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  12614. }
  12615. if false {
  12616. } else if !z.DecBasicHandle().TimeNotBuiltin {
  12617. *x.Tptr = r.DecodeTime()
  12618. } else if yyxt115 := z.Extension(z.I2Rtid(x.Tptr)); yyxt115 != nil {
  12619. z.DecExtension(x.Tptr, yyxt115)
  12620. } else if z.DecBinary() {
  12621. z.DecBinaryUnmarshal(x.Tptr)
  12622. } else if !z.DecBinary() && z.IsJSONHandle() {
  12623. z.DecJSONUnmarshal(x.Tptr)
  12624. } else {
  12625. z.DecFallback(x.Tptr, false)
  12626. }
  12627. }
  12628. case "Mtsptr":
  12629. if r.TryDecodeAsNil() {
  12630. x.Mtsptr = nil
  12631. } else {
  12632. if false {
  12633. } else {
  12634. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  12635. }
  12636. }
  12637. case "Mts":
  12638. if r.TryDecodeAsNil() {
  12639. x.Mts = nil
  12640. } else {
  12641. if false {
  12642. } else {
  12643. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  12644. }
  12645. }
  12646. case "Its":
  12647. if r.TryDecodeAsNil() {
  12648. x.Its = nil
  12649. } else {
  12650. if false {
  12651. } else {
  12652. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  12653. }
  12654. }
  12655. case "Nteststruc":
  12656. if r.TryDecodeAsNil() {
  12657. if true && x.Nteststruc != nil {
  12658. x.Nteststruc = nil
  12659. }
  12660. } else {
  12661. if x.Nteststruc == nil {
  12662. x.Nteststruc = new(TestStrucFlex)
  12663. }
  12664. x.Nteststruc.CodecDecodeSelf(d)
  12665. }
  12666. default:
  12667. z.DecStructFieldNotFound(-1, yys3)
  12668. } // end switch yys3
  12669. } // end for yyj3
  12670. r.ReadMapEnd()
  12671. }
  12672. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  12673. var h codecSelfer19780
  12674. z, r := GenHelperDecoder(d)
  12675. _, _, _ = h, z, r
  12676. var yyj123 int
  12677. var yyb123 bool
  12678. var yyhl123 bool = l >= 0
  12679. yyj123++
  12680. if yyhl123 {
  12681. yyb123 = yyj123 > l
  12682. } else {
  12683. yyb123 = r.CheckBreak()
  12684. }
  12685. if yyb123 {
  12686. r.ReadArrayEnd()
  12687. return
  12688. }
  12689. r.ReadArrayElem()
  12690. if r.TryDecodeAsNil() {
  12691. x.TestStrucCommon.S = ""
  12692. } else {
  12693. x.S = (string)(r.DecodeString())
  12694. }
  12695. yyj123++
  12696. if yyhl123 {
  12697. yyb123 = yyj123 > l
  12698. } else {
  12699. yyb123 = r.CheckBreak()
  12700. }
  12701. if yyb123 {
  12702. r.ReadArrayEnd()
  12703. return
  12704. }
  12705. r.ReadArrayElem()
  12706. if r.TryDecodeAsNil() {
  12707. x.TestStrucCommon.I64 = 0
  12708. } else {
  12709. x.I64 = (int64)(r.DecodeInt64())
  12710. }
  12711. yyj123++
  12712. if yyhl123 {
  12713. yyb123 = yyj123 > l
  12714. } else {
  12715. yyb123 = r.CheckBreak()
  12716. }
  12717. if yyb123 {
  12718. r.ReadArrayEnd()
  12719. return
  12720. }
  12721. r.ReadArrayElem()
  12722. if r.TryDecodeAsNil() {
  12723. x.TestStrucCommon.I32 = 0
  12724. } else {
  12725. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12726. }
  12727. yyj123++
  12728. if yyhl123 {
  12729. yyb123 = yyj123 > l
  12730. } else {
  12731. yyb123 = r.CheckBreak()
  12732. }
  12733. if yyb123 {
  12734. r.ReadArrayEnd()
  12735. return
  12736. }
  12737. r.ReadArrayElem()
  12738. if r.TryDecodeAsNil() {
  12739. x.TestStrucCommon.I16 = 0
  12740. } else {
  12741. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12742. }
  12743. yyj123++
  12744. if yyhl123 {
  12745. yyb123 = yyj123 > l
  12746. } else {
  12747. yyb123 = r.CheckBreak()
  12748. }
  12749. if yyb123 {
  12750. r.ReadArrayEnd()
  12751. return
  12752. }
  12753. r.ReadArrayElem()
  12754. if r.TryDecodeAsNil() {
  12755. x.TestStrucCommon.I8 = 0
  12756. } else {
  12757. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12758. }
  12759. yyj123++
  12760. if yyhl123 {
  12761. yyb123 = yyj123 > l
  12762. } else {
  12763. yyb123 = r.CheckBreak()
  12764. }
  12765. if yyb123 {
  12766. r.ReadArrayEnd()
  12767. return
  12768. }
  12769. r.ReadArrayElem()
  12770. if r.TryDecodeAsNil() {
  12771. x.TestStrucCommon.I64n = 0
  12772. } else {
  12773. x.I64n = (int64)(r.DecodeInt64())
  12774. }
  12775. yyj123++
  12776. if yyhl123 {
  12777. yyb123 = yyj123 > l
  12778. } else {
  12779. yyb123 = r.CheckBreak()
  12780. }
  12781. if yyb123 {
  12782. r.ReadArrayEnd()
  12783. return
  12784. }
  12785. r.ReadArrayElem()
  12786. if r.TryDecodeAsNil() {
  12787. x.TestStrucCommon.I32n = 0
  12788. } else {
  12789. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12790. }
  12791. yyj123++
  12792. if yyhl123 {
  12793. yyb123 = yyj123 > l
  12794. } else {
  12795. yyb123 = r.CheckBreak()
  12796. }
  12797. if yyb123 {
  12798. r.ReadArrayEnd()
  12799. return
  12800. }
  12801. r.ReadArrayElem()
  12802. if r.TryDecodeAsNil() {
  12803. x.TestStrucCommon.I16n = 0
  12804. } else {
  12805. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12806. }
  12807. yyj123++
  12808. if yyhl123 {
  12809. yyb123 = yyj123 > l
  12810. } else {
  12811. yyb123 = r.CheckBreak()
  12812. }
  12813. if yyb123 {
  12814. r.ReadArrayEnd()
  12815. return
  12816. }
  12817. r.ReadArrayElem()
  12818. if r.TryDecodeAsNil() {
  12819. x.TestStrucCommon.I8n = 0
  12820. } else {
  12821. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12822. }
  12823. yyj123++
  12824. if yyhl123 {
  12825. yyb123 = yyj123 > l
  12826. } else {
  12827. yyb123 = r.CheckBreak()
  12828. }
  12829. if yyb123 {
  12830. r.ReadArrayEnd()
  12831. return
  12832. }
  12833. r.ReadArrayElem()
  12834. if r.TryDecodeAsNil() {
  12835. x.TestStrucCommon.Ui64 = 0
  12836. } else {
  12837. x.Ui64 = (uint64)(r.DecodeUint64())
  12838. }
  12839. yyj123++
  12840. if yyhl123 {
  12841. yyb123 = yyj123 > l
  12842. } else {
  12843. yyb123 = r.CheckBreak()
  12844. }
  12845. if yyb123 {
  12846. r.ReadArrayEnd()
  12847. return
  12848. }
  12849. r.ReadArrayElem()
  12850. if r.TryDecodeAsNil() {
  12851. x.TestStrucCommon.Ui32 = 0
  12852. } else {
  12853. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12854. }
  12855. yyj123++
  12856. if yyhl123 {
  12857. yyb123 = yyj123 > l
  12858. } else {
  12859. yyb123 = r.CheckBreak()
  12860. }
  12861. if yyb123 {
  12862. r.ReadArrayEnd()
  12863. return
  12864. }
  12865. r.ReadArrayElem()
  12866. if r.TryDecodeAsNil() {
  12867. x.TestStrucCommon.Ui16 = 0
  12868. } else {
  12869. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12870. }
  12871. yyj123++
  12872. if yyhl123 {
  12873. yyb123 = yyj123 > l
  12874. } else {
  12875. yyb123 = r.CheckBreak()
  12876. }
  12877. if yyb123 {
  12878. r.ReadArrayEnd()
  12879. return
  12880. }
  12881. r.ReadArrayElem()
  12882. if r.TryDecodeAsNil() {
  12883. x.TestStrucCommon.Ui8 = 0
  12884. } else {
  12885. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12886. }
  12887. yyj123++
  12888. if yyhl123 {
  12889. yyb123 = yyj123 > l
  12890. } else {
  12891. yyb123 = r.CheckBreak()
  12892. }
  12893. if yyb123 {
  12894. r.ReadArrayEnd()
  12895. return
  12896. }
  12897. r.ReadArrayElem()
  12898. if r.TryDecodeAsNil() {
  12899. x.TestStrucCommon.F64 = 0
  12900. } else {
  12901. x.F64 = (float64)(r.DecodeFloat64())
  12902. }
  12903. yyj123++
  12904. if yyhl123 {
  12905. yyb123 = yyj123 > l
  12906. } else {
  12907. yyb123 = r.CheckBreak()
  12908. }
  12909. if yyb123 {
  12910. r.ReadArrayEnd()
  12911. return
  12912. }
  12913. r.ReadArrayElem()
  12914. if r.TryDecodeAsNil() {
  12915. x.TestStrucCommon.F32 = 0
  12916. } else {
  12917. x.F32 = (float32)(r.DecodeFloat32As64())
  12918. }
  12919. yyj123++
  12920. if yyhl123 {
  12921. yyb123 = yyj123 > l
  12922. } else {
  12923. yyb123 = r.CheckBreak()
  12924. }
  12925. if yyb123 {
  12926. r.ReadArrayEnd()
  12927. return
  12928. }
  12929. r.ReadArrayElem()
  12930. if r.TryDecodeAsNil() {
  12931. x.TestStrucCommon.B = false
  12932. } else {
  12933. x.B = (bool)(r.DecodeBool())
  12934. }
  12935. yyj123++
  12936. if yyhl123 {
  12937. yyb123 = yyj123 > l
  12938. } else {
  12939. yyb123 = r.CheckBreak()
  12940. }
  12941. if yyb123 {
  12942. r.ReadArrayEnd()
  12943. return
  12944. }
  12945. r.ReadArrayElem()
  12946. if r.TryDecodeAsNil() {
  12947. x.TestStrucCommon.By = 0
  12948. } else {
  12949. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12950. }
  12951. yyj123++
  12952. if yyhl123 {
  12953. yyb123 = yyj123 > l
  12954. } else {
  12955. yyb123 = r.CheckBreak()
  12956. }
  12957. if yyb123 {
  12958. r.ReadArrayEnd()
  12959. return
  12960. }
  12961. r.ReadArrayElem()
  12962. if r.TryDecodeAsNil() {
  12963. x.TestStrucCommon.Sslice = nil
  12964. } else {
  12965. if false {
  12966. } else {
  12967. z.F.DecSliceStringX(&x.Sslice, d)
  12968. }
  12969. }
  12970. yyj123++
  12971. if yyhl123 {
  12972. yyb123 = yyj123 > l
  12973. } else {
  12974. yyb123 = r.CheckBreak()
  12975. }
  12976. if yyb123 {
  12977. r.ReadArrayEnd()
  12978. return
  12979. }
  12980. r.ReadArrayElem()
  12981. if r.TryDecodeAsNil() {
  12982. x.TestStrucCommon.I64slice = nil
  12983. } else {
  12984. if false {
  12985. } else {
  12986. z.F.DecSliceInt64X(&x.I64slice, d)
  12987. }
  12988. }
  12989. yyj123++
  12990. if yyhl123 {
  12991. yyb123 = yyj123 > l
  12992. } else {
  12993. yyb123 = r.CheckBreak()
  12994. }
  12995. if yyb123 {
  12996. r.ReadArrayEnd()
  12997. return
  12998. }
  12999. r.ReadArrayElem()
  13000. if r.TryDecodeAsNil() {
  13001. x.TestStrucCommon.I16slice = nil
  13002. } else {
  13003. if false {
  13004. } else {
  13005. z.F.DecSliceInt16X(&x.I16slice, d)
  13006. }
  13007. }
  13008. yyj123++
  13009. if yyhl123 {
  13010. yyb123 = yyj123 > l
  13011. } else {
  13012. yyb123 = r.CheckBreak()
  13013. }
  13014. if yyb123 {
  13015. r.ReadArrayEnd()
  13016. return
  13017. }
  13018. r.ReadArrayElem()
  13019. if r.TryDecodeAsNil() {
  13020. x.TestStrucCommon.Ui64slice = nil
  13021. } else {
  13022. if false {
  13023. } else {
  13024. z.F.DecSliceUint64X(&x.Ui64slice, d)
  13025. }
  13026. }
  13027. yyj123++
  13028. if yyhl123 {
  13029. yyb123 = yyj123 > l
  13030. } else {
  13031. yyb123 = r.CheckBreak()
  13032. }
  13033. if yyb123 {
  13034. r.ReadArrayEnd()
  13035. return
  13036. }
  13037. r.ReadArrayElem()
  13038. if r.TryDecodeAsNil() {
  13039. x.TestStrucCommon.Ui8slice = nil
  13040. } else {
  13041. if false {
  13042. } else {
  13043. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  13044. }
  13045. }
  13046. yyj123++
  13047. if yyhl123 {
  13048. yyb123 = yyj123 > l
  13049. } else {
  13050. yyb123 = r.CheckBreak()
  13051. }
  13052. if yyb123 {
  13053. r.ReadArrayEnd()
  13054. return
  13055. }
  13056. r.ReadArrayElem()
  13057. if r.TryDecodeAsNil() {
  13058. x.TestStrucCommon.Bslice = nil
  13059. } else {
  13060. if false {
  13061. } else {
  13062. z.F.DecSliceBoolX(&x.Bslice, d)
  13063. }
  13064. }
  13065. yyj123++
  13066. if yyhl123 {
  13067. yyb123 = yyj123 > l
  13068. } else {
  13069. yyb123 = r.CheckBreak()
  13070. }
  13071. if yyb123 {
  13072. r.ReadArrayEnd()
  13073. return
  13074. }
  13075. r.ReadArrayElem()
  13076. if r.TryDecodeAsNil() {
  13077. x.TestStrucCommon.Byslice = nil
  13078. } else {
  13079. if false {
  13080. } else {
  13081. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  13082. }
  13083. }
  13084. yyj123++
  13085. if yyhl123 {
  13086. yyb123 = yyj123 > l
  13087. } else {
  13088. yyb123 = r.CheckBreak()
  13089. }
  13090. if yyb123 {
  13091. r.ReadArrayEnd()
  13092. return
  13093. }
  13094. r.ReadArrayElem()
  13095. if r.TryDecodeAsNil() {
  13096. x.TestStrucCommon.Iptrslice = nil
  13097. } else {
  13098. if false {
  13099. } else {
  13100. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  13101. }
  13102. }
  13103. yyj123++
  13104. if yyhl123 {
  13105. yyb123 = yyj123 > l
  13106. } else {
  13107. yyb123 = r.CheckBreak()
  13108. }
  13109. if yyb123 {
  13110. r.ReadArrayEnd()
  13111. return
  13112. }
  13113. r.ReadArrayElem()
  13114. if r.TryDecodeAsNil() {
  13115. x.TestStrucCommon.WrapSliceInt64 = nil
  13116. } else {
  13117. x.WrapSliceInt64.CodecDecodeSelf(d)
  13118. }
  13119. yyj123++
  13120. if yyhl123 {
  13121. yyb123 = yyj123 > l
  13122. } else {
  13123. yyb123 = r.CheckBreak()
  13124. }
  13125. if yyb123 {
  13126. r.ReadArrayEnd()
  13127. return
  13128. }
  13129. r.ReadArrayElem()
  13130. if r.TryDecodeAsNil() {
  13131. x.TestStrucCommon.WrapSliceString = nil
  13132. } else {
  13133. x.WrapSliceString.CodecDecodeSelf(d)
  13134. }
  13135. yyj123++
  13136. if yyhl123 {
  13137. yyb123 = yyj123 > l
  13138. } else {
  13139. yyb123 = r.CheckBreak()
  13140. }
  13141. if yyb123 {
  13142. r.ReadArrayEnd()
  13143. return
  13144. }
  13145. r.ReadArrayElem()
  13146. if r.TryDecodeAsNil() {
  13147. x.TestStrucCommon.Msi64 = nil
  13148. } else {
  13149. if false {
  13150. } else {
  13151. z.F.DecMapStringInt64X(&x.Msi64, d)
  13152. }
  13153. }
  13154. yyj123++
  13155. if yyhl123 {
  13156. yyb123 = yyj123 > l
  13157. } else {
  13158. yyb123 = r.CheckBreak()
  13159. }
  13160. if yyb123 {
  13161. r.ReadArrayEnd()
  13162. return
  13163. }
  13164. r.ReadArrayElem()
  13165. if r.TryDecodeAsNil() {
  13166. x.TestStrucCommon.Simplef = testSimpleFields{}
  13167. } else {
  13168. x.Simplef.CodecDecodeSelf(d)
  13169. }
  13170. yyj123++
  13171. if yyhl123 {
  13172. yyb123 = yyj123 > l
  13173. } else {
  13174. yyb123 = r.CheckBreak()
  13175. }
  13176. if yyb123 {
  13177. r.ReadArrayEnd()
  13178. return
  13179. }
  13180. r.ReadArrayElem()
  13181. if r.TryDecodeAsNil() {
  13182. x.TestStrucCommon.SstrUi64T = nil
  13183. } else {
  13184. if false {
  13185. } else {
  13186. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  13187. }
  13188. }
  13189. yyj123++
  13190. if yyhl123 {
  13191. yyb123 = yyj123 > l
  13192. } else {
  13193. yyb123 = r.CheckBreak()
  13194. }
  13195. if yyb123 {
  13196. r.ReadArrayEnd()
  13197. return
  13198. }
  13199. r.ReadArrayElem()
  13200. if r.TryDecodeAsNil() {
  13201. x.TestStrucCommon.AnonInTestStruc.AS = ""
  13202. } else {
  13203. x.AS = (string)(r.DecodeString())
  13204. }
  13205. yyj123++
  13206. if yyhl123 {
  13207. yyb123 = yyj123 > l
  13208. } else {
  13209. yyb123 = r.CheckBreak()
  13210. }
  13211. if yyb123 {
  13212. r.ReadArrayEnd()
  13213. return
  13214. }
  13215. r.ReadArrayElem()
  13216. if r.TryDecodeAsNil() {
  13217. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  13218. } else {
  13219. x.AI64 = (int64)(r.DecodeInt64())
  13220. }
  13221. yyj123++
  13222. if yyhl123 {
  13223. yyb123 = yyj123 > l
  13224. } else {
  13225. yyb123 = r.CheckBreak()
  13226. }
  13227. if yyb123 {
  13228. r.ReadArrayEnd()
  13229. return
  13230. }
  13231. r.ReadArrayElem()
  13232. if r.TryDecodeAsNil() {
  13233. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  13234. } else {
  13235. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13236. }
  13237. yyj123++
  13238. if yyhl123 {
  13239. yyb123 = yyj123 > l
  13240. } else {
  13241. yyb123 = r.CheckBreak()
  13242. }
  13243. if yyb123 {
  13244. r.ReadArrayEnd()
  13245. return
  13246. }
  13247. r.ReadArrayElem()
  13248. if r.TryDecodeAsNil() {
  13249. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  13250. } else {
  13251. x.AUi64 = (uint64)(r.DecodeUint64())
  13252. }
  13253. yyj123++
  13254. if yyhl123 {
  13255. yyb123 = yyj123 > l
  13256. } else {
  13257. yyb123 = r.CheckBreak()
  13258. }
  13259. if yyb123 {
  13260. r.ReadArrayEnd()
  13261. return
  13262. }
  13263. r.ReadArrayElem()
  13264. if r.TryDecodeAsNil() {
  13265. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  13266. } else {
  13267. if false {
  13268. } else {
  13269. z.F.DecSliceStringX(&x.ASslice, d)
  13270. }
  13271. }
  13272. yyj123++
  13273. if yyhl123 {
  13274. yyb123 = yyj123 > l
  13275. } else {
  13276. yyb123 = r.CheckBreak()
  13277. }
  13278. if yyb123 {
  13279. r.ReadArrayEnd()
  13280. return
  13281. }
  13282. r.ReadArrayElem()
  13283. if r.TryDecodeAsNil() {
  13284. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  13285. } else {
  13286. if false {
  13287. } else {
  13288. z.F.DecSliceInt64X(&x.AI64slice, d)
  13289. }
  13290. }
  13291. yyj123++
  13292. if yyhl123 {
  13293. yyb123 = yyj123 > l
  13294. } else {
  13295. yyb123 = r.CheckBreak()
  13296. }
  13297. if yyb123 {
  13298. r.ReadArrayEnd()
  13299. return
  13300. }
  13301. r.ReadArrayElem()
  13302. if r.TryDecodeAsNil() {
  13303. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  13304. } else {
  13305. if false {
  13306. } else {
  13307. z.F.DecSliceUint64X(&x.AUi64slice, d)
  13308. }
  13309. }
  13310. yyj123++
  13311. if yyhl123 {
  13312. yyb123 = yyj123 > l
  13313. } else {
  13314. yyb123 = r.CheckBreak()
  13315. }
  13316. if yyb123 {
  13317. r.ReadArrayEnd()
  13318. return
  13319. }
  13320. r.ReadArrayElem()
  13321. if r.TryDecodeAsNil() {
  13322. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  13323. } else {
  13324. if false {
  13325. } else {
  13326. z.F.DecSliceFloat64X(&x.AF64slice, d)
  13327. }
  13328. }
  13329. yyj123++
  13330. if yyhl123 {
  13331. yyb123 = yyj123 > l
  13332. } else {
  13333. yyb123 = r.CheckBreak()
  13334. }
  13335. if yyb123 {
  13336. r.ReadArrayEnd()
  13337. return
  13338. }
  13339. r.ReadArrayElem()
  13340. if r.TryDecodeAsNil() {
  13341. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  13342. } else {
  13343. if false {
  13344. } else {
  13345. z.F.DecSliceFloat32X(&x.AF32slice, d)
  13346. }
  13347. }
  13348. yyj123++
  13349. if yyhl123 {
  13350. yyb123 = yyj123 > l
  13351. } else {
  13352. yyb123 = r.CheckBreak()
  13353. }
  13354. if yyb123 {
  13355. r.ReadArrayEnd()
  13356. return
  13357. }
  13358. r.ReadArrayElem()
  13359. if r.TryDecodeAsNil() {
  13360. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  13361. } else {
  13362. if false {
  13363. } else {
  13364. z.F.DecMapStringUint16X(&x.AMSU16, d)
  13365. }
  13366. }
  13367. yyj123++
  13368. if yyhl123 {
  13369. yyb123 = yyj123 > l
  13370. } else {
  13371. yyb123 = r.CheckBreak()
  13372. }
  13373. if yyb123 {
  13374. r.ReadArrayEnd()
  13375. return
  13376. }
  13377. r.ReadArrayElem()
  13378. if r.TryDecodeAsNil() {
  13379. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  13380. } else {
  13381. if false {
  13382. } else {
  13383. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  13384. }
  13385. }
  13386. yyj123++
  13387. if yyhl123 {
  13388. yyb123 = yyj123 > l
  13389. } else {
  13390. yyb123 = r.CheckBreak()
  13391. }
  13392. if yyb123 {
  13393. r.ReadArrayEnd()
  13394. return
  13395. }
  13396. r.ReadArrayElem()
  13397. if r.TryDecodeAsNil() {
  13398. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  13399. } else {
  13400. if false {
  13401. } else {
  13402. z.F.DecSliceInt64X(&x.A164slice0, d)
  13403. }
  13404. }
  13405. yyj123++
  13406. if yyhl123 {
  13407. yyb123 = yyj123 > l
  13408. } else {
  13409. yyb123 = r.CheckBreak()
  13410. }
  13411. if yyb123 {
  13412. r.ReadArrayEnd()
  13413. return
  13414. }
  13415. r.ReadArrayElem()
  13416. if r.TryDecodeAsNil() {
  13417. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  13418. } else {
  13419. if false {
  13420. } else {
  13421. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  13422. }
  13423. }
  13424. yyj123++
  13425. if yyhl123 {
  13426. yyb123 = yyj123 > l
  13427. } else {
  13428. yyb123 = r.CheckBreak()
  13429. }
  13430. if yyb123 {
  13431. r.ReadArrayEnd()
  13432. return
  13433. }
  13434. r.ReadArrayElem()
  13435. if r.TryDecodeAsNil() {
  13436. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  13437. } else {
  13438. if false {
  13439. } else {
  13440. z.F.DecMapStringUint16X(&x.AMSU16N, d)
  13441. }
  13442. }
  13443. yyj123++
  13444. if yyhl123 {
  13445. yyb123 = yyj123 > l
  13446. } else {
  13447. yyb123 = r.CheckBreak()
  13448. }
  13449. if yyb123 {
  13450. r.ReadArrayEnd()
  13451. return
  13452. }
  13453. r.ReadArrayElem()
  13454. if r.TryDecodeAsNil() {
  13455. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  13456. } else {
  13457. if false {
  13458. } else {
  13459. z.F.DecMapStringUint16X(&x.AMSU16E, d)
  13460. }
  13461. }
  13462. yyj123++
  13463. if yyhl123 {
  13464. yyb123 = yyj123 > l
  13465. } else {
  13466. yyb123 = r.CheckBreak()
  13467. }
  13468. if yyb123 {
  13469. r.ReadArrayEnd()
  13470. return
  13471. }
  13472. r.ReadArrayElem()
  13473. if r.TryDecodeAsNil() {
  13474. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  13475. } else {
  13476. x.NotAnon.CodecDecodeSelf(d)
  13477. }
  13478. yyj123++
  13479. if yyhl123 {
  13480. yyb123 = yyj123 > l
  13481. } else {
  13482. yyb123 = r.CheckBreak()
  13483. }
  13484. if yyb123 {
  13485. r.ReadArrayEnd()
  13486. return
  13487. }
  13488. r.ReadArrayElem()
  13489. if r.TryDecodeAsNil() {
  13490. x.TestStrucCommon.Nmap = nil
  13491. } else {
  13492. if false {
  13493. } else {
  13494. z.F.DecMapStringBoolX(&x.Nmap, d)
  13495. }
  13496. }
  13497. yyj123++
  13498. if yyhl123 {
  13499. yyb123 = yyj123 > l
  13500. } else {
  13501. yyb123 = r.CheckBreak()
  13502. }
  13503. if yyb123 {
  13504. r.ReadArrayEnd()
  13505. return
  13506. }
  13507. r.ReadArrayElem()
  13508. if r.TryDecodeAsNil() {
  13509. x.TestStrucCommon.Nslice = nil
  13510. } else {
  13511. if false {
  13512. } else {
  13513. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  13514. }
  13515. }
  13516. yyj123++
  13517. if yyhl123 {
  13518. yyb123 = yyj123 > l
  13519. } else {
  13520. yyb123 = r.CheckBreak()
  13521. }
  13522. if yyb123 {
  13523. r.ReadArrayEnd()
  13524. return
  13525. }
  13526. r.ReadArrayElem()
  13527. if r.TryDecodeAsNil() {
  13528. if true && x.TestStrucCommon.Nint64 != nil {
  13529. x.TestStrucCommon.Nint64 = nil
  13530. }
  13531. } else {
  13532. if x.TestStrucCommon.Nint64 == nil {
  13533. x.TestStrucCommon.Nint64 = new(int64)
  13534. }
  13535. if false {
  13536. } else {
  13537. *x.Nint64 = (int64)(r.DecodeInt64())
  13538. }
  13539. }
  13540. yyj123++
  13541. if yyhl123 {
  13542. yyb123 = yyj123 > l
  13543. } else {
  13544. yyb123 = r.CheckBreak()
  13545. }
  13546. if yyb123 {
  13547. r.ReadArrayEnd()
  13548. return
  13549. }
  13550. r.ReadArrayElem()
  13551. if r.TryDecodeAsNil() {
  13552. x.Chstr = nil
  13553. } else {
  13554. if false {
  13555. } else {
  13556. h.decChanstring((*chan string)(&x.Chstr), d)
  13557. }
  13558. }
  13559. yyj123++
  13560. if yyhl123 {
  13561. yyb123 = yyj123 > l
  13562. } else {
  13563. yyb123 = r.CheckBreak()
  13564. }
  13565. if yyb123 {
  13566. r.ReadArrayEnd()
  13567. return
  13568. }
  13569. r.ReadArrayElem()
  13570. if r.TryDecodeAsNil() {
  13571. x.Mis = nil
  13572. } else {
  13573. if false {
  13574. } else {
  13575. z.F.DecMapIntStringX(&x.Mis, d)
  13576. }
  13577. }
  13578. yyj123++
  13579. if yyhl123 {
  13580. yyb123 = yyj123 > l
  13581. } else {
  13582. yyb123 = r.CheckBreak()
  13583. }
  13584. if yyb123 {
  13585. r.ReadArrayEnd()
  13586. return
  13587. }
  13588. r.ReadArrayElem()
  13589. if r.TryDecodeAsNil() {
  13590. x.Mbu64 = nil
  13591. } else {
  13592. if false {
  13593. } else {
  13594. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  13595. }
  13596. }
  13597. yyj123++
  13598. if yyhl123 {
  13599. yyb123 = yyj123 > l
  13600. } else {
  13601. yyb123 = r.CheckBreak()
  13602. }
  13603. if yyb123 {
  13604. r.ReadArrayEnd()
  13605. return
  13606. }
  13607. r.ReadArrayElem()
  13608. if r.TryDecodeAsNil() {
  13609. x.Miwu64s = nil
  13610. } else {
  13611. if false {
  13612. } else {
  13613. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  13614. }
  13615. }
  13616. yyj123++
  13617. if yyhl123 {
  13618. yyb123 = yyj123 > l
  13619. } else {
  13620. yyb123 = r.CheckBreak()
  13621. }
  13622. if yyb123 {
  13623. r.ReadArrayEnd()
  13624. return
  13625. }
  13626. r.ReadArrayElem()
  13627. if r.TryDecodeAsNil() {
  13628. x.Mfwss = nil
  13629. } else {
  13630. if false {
  13631. } else {
  13632. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  13633. }
  13634. }
  13635. yyj123++
  13636. if yyhl123 {
  13637. yyb123 = yyj123 > l
  13638. } else {
  13639. yyb123 = r.CheckBreak()
  13640. }
  13641. if yyb123 {
  13642. r.ReadArrayEnd()
  13643. return
  13644. }
  13645. r.ReadArrayElem()
  13646. if r.TryDecodeAsNil() {
  13647. x.Mf32wss = nil
  13648. } else {
  13649. if false {
  13650. } else {
  13651. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  13652. }
  13653. }
  13654. yyj123++
  13655. if yyhl123 {
  13656. yyb123 = yyj123 > l
  13657. } else {
  13658. yyb123 = r.CheckBreak()
  13659. }
  13660. if yyb123 {
  13661. r.ReadArrayEnd()
  13662. return
  13663. }
  13664. r.ReadArrayElem()
  13665. if r.TryDecodeAsNil() {
  13666. x.Mui2wss = nil
  13667. } else {
  13668. if false {
  13669. } else {
  13670. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  13671. }
  13672. }
  13673. yyj123++
  13674. if yyhl123 {
  13675. yyb123 = yyj123 > l
  13676. } else {
  13677. yyb123 = r.CheckBreak()
  13678. }
  13679. if yyb123 {
  13680. r.ReadArrayEnd()
  13681. return
  13682. }
  13683. r.ReadArrayElem()
  13684. if r.TryDecodeAsNil() {
  13685. x.Msu2wss = nil
  13686. } else {
  13687. if false {
  13688. } else {
  13689. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  13690. }
  13691. }
  13692. yyj123++
  13693. if yyhl123 {
  13694. yyb123 = yyj123 > l
  13695. } else {
  13696. yyb123 = r.CheckBreak()
  13697. }
  13698. if yyb123 {
  13699. r.ReadArrayEnd()
  13700. return
  13701. }
  13702. r.ReadArrayElem()
  13703. if r.TryDecodeAsNil() {
  13704. x.Ci64 = 0
  13705. } else {
  13706. x.Ci64.CodecDecodeSelf(d)
  13707. }
  13708. yyj123++
  13709. if yyhl123 {
  13710. yyb123 = yyj123 > l
  13711. } else {
  13712. yyb123 = r.CheckBreak()
  13713. }
  13714. if yyb123 {
  13715. r.ReadArrayEnd()
  13716. return
  13717. }
  13718. r.ReadArrayElem()
  13719. if r.TryDecodeAsNil() {
  13720. x.Swrapbytes = nil
  13721. } else {
  13722. if false {
  13723. } else {
  13724. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  13725. }
  13726. }
  13727. yyj123++
  13728. if yyhl123 {
  13729. yyb123 = yyj123 > l
  13730. } else {
  13731. yyb123 = r.CheckBreak()
  13732. }
  13733. if yyb123 {
  13734. r.ReadArrayEnd()
  13735. return
  13736. }
  13737. r.ReadArrayElem()
  13738. if r.TryDecodeAsNil() {
  13739. x.Swrapuint8 = nil
  13740. } else {
  13741. if false {
  13742. } else {
  13743. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  13744. }
  13745. }
  13746. yyj123++
  13747. if yyhl123 {
  13748. yyb123 = yyj123 > l
  13749. } else {
  13750. yyb123 = r.CheckBreak()
  13751. }
  13752. if yyb123 {
  13753. r.ReadArrayEnd()
  13754. return
  13755. }
  13756. r.ReadArrayElem()
  13757. if r.TryDecodeAsNil() {
  13758. x.ArrStrUi64T = [4]stringUint64T{}
  13759. } else {
  13760. if false {
  13761. } else {
  13762. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  13763. }
  13764. }
  13765. yyj123++
  13766. if yyhl123 {
  13767. yyb123 = yyj123 > l
  13768. } else {
  13769. yyb123 = r.CheckBreak()
  13770. }
  13771. if yyb123 {
  13772. r.ReadArrayEnd()
  13773. return
  13774. }
  13775. r.ReadArrayElem()
  13776. if r.TryDecodeAsNil() {
  13777. x.Ui64array = [4]uint64{}
  13778. } else {
  13779. if false {
  13780. } else {
  13781. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  13782. }
  13783. }
  13784. yyj123++
  13785. if yyhl123 {
  13786. yyb123 = yyj123 > l
  13787. } else {
  13788. yyb123 = r.CheckBreak()
  13789. }
  13790. if yyb123 {
  13791. r.ReadArrayEnd()
  13792. return
  13793. }
  13794. r.ReadArrayElem()
  13795. if r.TryDecodeAsNil() {
  13796. x.Ui64slicearray = nil
  13797. } else {
  13798. if false {
  13799. } else {
  13800. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  13801. }
  13802. }
  13803. yyj123++
  13804. if yyhl123 {
  13805. yyb123 = yyj123 > l
  13806. } else {
  13807. yyb123 = r.CheckBreak()
  13808. }
  13809. if yyb123 {
  13810. r.ReadArrayEnd()
  13811. return
  13812. }
  13813. r.ReadArrayElem()
  13814. if r.TryDecodeAsNil() {
  13815. x.SintfAarray = nil
  13816. } else {
  13817. if false {
  13818. } else {
  13819. z.F.DecSliceIntfX(&x.SintfAarray, d)
  13820. }
  13821. }
  13822. yyj123++
  13823. if yyhl123 {
  13824. yyb123 = yyj123 > l
  13825. } else {
  13826. yyb123 = r.CheckBreak()
  13827. }
  13828. if yyb123 {
  13829. r.ReadArrayEnd()
  13830. return
  13831. }
  13832. r.ReadArrayElem()
  13833. if r.TryDecodeAsNil() {
  13834. if true && x.AnonInTestStrucIntf != nil {
  13835. x.AnonInTestStrucIntf.Islice = nil
  13836. }
  13837. } else {
  13838. if x.AnonInTestStrucIntf == nil {
  13839. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13840. }
  13841. if false {
  13842. } else {
  13843. z.F.DecSliceIntfX(&x.Islice, d)
  13844. }
  13845. }
  13846. yyj123++
  13847. if yyhl123 {
  13848. yyb123 = yyj123 > l
  13849. } else {
  13850. yyb123 = r.CheckBreak()
  13851. }
  13852. if yyb123 {
  13853. r.ReadArrayEnd()
  13854. return
  13855. }
  13856. r.ReadArrayElem()
  13857. if r.TryDecodeAsNil() {
  13858. if true && x.AnonInTestStrucIntf != nil {
  13859. x.AnonInTestStrucIntf.Ms = nil
  13860. }
  13861. } else {
  13862. if x.AnonInTestStrucIntf == nil {
  13863. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13864. }
  13865. if false {
  13866. } else {
  13867. z.F.DecMapStringIntfX(&x.Ms, d)
  13868. }
  13869. }
  13870. yyj123++
  13871. if yyhl123 {
  13872. yyb123 = yyj123 > l
  13873. } else {
  13874. yyb123 = r.CheckBreak()
  13875. }
  13876. if yyb123 {
  13877. r.ReadArrayEnd()
  13878. return
  13879. }
  13880. r.ReadArrayElem()
  13881. if r.TryDecodeAsNil() {
  13882. if true && x.AnonInTestStrucIntf != nil {
  13883. x.AnonInTestStrucIntf.Nintf = nil
  13884. }
  13885. } else {
  13886. if x.AnonInTestStrucIntf == nil {
  13887. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13888. }
  13889. if false {
  13890. } else {
  13891. z.DecFallback(&x.Nintf, true)
  13892. }
  13893. }
  13894. yyj123++
  13895. if yyhl123 {
  13896. yyb123 = yyj123 > l
  13897. } else {
  13898. yyb123 = r.CheckBreak()
  13899. }
  13900. if yyb123 {
  13901. r.ReadArrayEnd()
  13902. return
  13903. }
  13904. r.ReadArrayElem()
  13905. if r.TryDecodeAsNil() {
  13906. if true && x.AnonInTestStrucIntf != nil {
  13907. x.AnonInTestStrucIntf.T = time.Time{}
  13908. }
  13909. } else {
  13910. if x.AnonInTestStrucIntf == nil {
  13911. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13912. }
  13913. if false {
  13914. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13915. x.T = r.DecodeTime()
  13916. } else if yyxt233 := z.Extension(z.I2Rtid(x.T)); yyxt233 != nil {
  13917. z.DecExtension(x.T, yyxt233)
  13918. } else if z.DecBinary() {
  13919. z.DecBinaryUnmarshal(&x.T)
  13920. } else if !z.DecBinary() && z.IsJSONHandle() {
  13921. z.DecJSONUnmarshal(&x.T)
  13922. } else {
  13923. z.DecFallback(&x.T, false)
  13924. }
  13925. }
  13926. yyj123++
  13927. if yyhl123 {
  13928. yyb123 = yyj123 > l
  13929. } else {
  13930. yyb123 = r.CheckBreak()
  13931. }
  13932. if yyb123 {
  13933. r.ReadArrayEnd()
  13934. return
  13935. }
  13936. r.ReadArrayElem()
  13937. if r.TryDecodeAsNil() {
  13938. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  13939. x.AnonInTestStrucIntf.Tptr = nil
  13940. }
  13941. } else {
  13942. if x.AnonInTestStrucIntf == nil {
  13943. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13944. }
  13945. if x.AnonInTestStrucIntf.Tptr == nil {
  13946. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  13947. }
  13948. if false {
  13949. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13950. *x.Tptr = r.DecodeTime()
  13951. } else if yyxt235 := z.Extension(z.I2Rtid(x.Tptr)); yyxt235 != nil {
  13952. z.DecExtension(x.Tptr, yyxt235)
  13953. } else if z.DecBinary() {
  13954. z.DecBinaryUnmarshal(x.Tptr)
  13955. } else if !z.DecBinary() && z.IsJSONHandle() {
  13956. z.DecJSONUnmarshal(x.Tptr)
  13957. } else {
  13958. z.DecFallback(x.Tptr, false)
  13959. }
  13960. }
  13961. yyj123++
  13962. if yyhl123 {
  13963. yyb123 = yyj123 > l
  13964. } else {
  13965. yyb123 = r.CheckBreak()
  13966. }
  13967. if yyb123 {
  13968. r.ReadArrayEnd()
  13969. return
  13970. }
  13971. r.ReadArrayElem()
  13972. if r.TryDecodeAsNil() {
  13973. x.Mtsptr = nil
  13974. } else {
  13975. if false {
  13976. } else {
  13977. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  13978. }
  13979. }
  13980. yyj123++
  13981. if yyhl123 {
  13982. yyb123 = yyj123 > l
  13983. } else {
  13984. yyb123 = r.CheckBreak()
  13985. }
  13986. if yyb123 {
  13987. r.ReadArrayEnd()
  13988. return
  13989. }
  13990. r.ReadArrayElem()
  13991. if r.TryDecodeAsNil() {
  13992. x.Mts = nil
  13993. } else {
  13994. if false {
  13995. } else {
  13996. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  13997. }
  13998. }
  13999. yyj123++
  14000. if yyhl123 {
  14001. yyb123 = yyj123 > l
  14002. } else {
  14003. yyb123 = r.CheckBreak()
  14004. }
  14005. if yyb123 {
  14006. r.ReadArrayEnd()
  14007. return
  14008. }
  14009. r.ReadArrayElem()
  14010. if r.TryDecodeAsNil() {
  14011. x.Its = nil
  14012. } else {
  14013. if false {
  14014. } else {
  14015. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  14016. }
  14017. }
  14018. yyj123++
  14019. if yyhl123 {
  14020. yyb123 = yyj123 > l
  14021. } else {
  14022. yyb123 = r.CheckBreak()
  14023. }
  14024. if yyb123 {
  14025. r.ReadArrayEnd()
  14026. return
  14027. }
  14028. r.ReadArrayElem()
  14029. if r.TryDecodeAsNil() {
  14030. if true && x.Nteststruc != nil {
  14031. x.Nteststruc = nil
  14032. }
  14033. } else {
  14034. if x.Nteststruc == nil {
  14035. x.Nteststruc = new(TestStrucFlex)
  14036. }
  14037. x.Nteststruc.CodecDecodeSelf(d)
  14038. }
  14039. for {
  14040. yyj123++
  14041. if yyhl123 {
  14042. yyb123 = yyj123 > l
  14043. } else {
  14044. yyb123 = r.CheckBreak()
  14045. }
  14046. if yyb123 {
  14047. break
  14048. }
  14049. r.ReadArrayElem()
  14050. z.DecStructFieldNotFound(yyj123-1, "")
  14051. }
  14052. r.ReadArrayEnd()
  14053. }
  14054. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  14055. var h codecSelfer19780
  14056. z, r := GenHelperEncoder(e)
  14057. _, _, _ = h, z, r
  14058. r.WriteArrayStart(len(v))
  14059. for _, yyv1 := range v {
  14060. r.WriteArrayElem()
  14061. if false {
  14062. } else {
  14063. r.EncodeUint(uint64(yyv1))
  14064. }
  14065. }
  14066. r.WriteArrayEnd()
  14067. }
  14068. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  14069. var h codecSelfer19780
  14070. z, r := GenHelperDecoder(d)
  14071. _, _, _ = h, z, r
  14072. yyv1 := *v
  14073. yyh1, yyl1 := z.DecSliceHelperStart()
  14074. var yyc1 bool
  14075. _ = yyc1
  14076. if yyl1 == 0 {
  14077. if yyv1 == nil {
  14078. yyv1 = []uint64{}
  14079. yyc1 = true
  14080. } else if len(yyv1) != 0 {
  14081. yyv1 = yyv1[:0]
  14082. yyc1 = true
  14083. }
  14084. } else {
  14085. yyhl1 := yyl1 > 0
  14086. var yyrl1 int
  14087. _ = yyrl1
  14088. if yyhl1 {
  14089. if yyl1 > cap(yyv1) {
  14090. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14091. if yyrl1 <= cap(yyv1) {
  14092. yyv1 = yyv1[:yyrl1]
  14093. } else {
  14094. yyv1 = make([]uint64, yyrl1)
  14095. }
  14096. yyc1 = true
  14097. } else if yyl1 != len(yyv1) {
  14098. yyv1 = yyv1[:yyl1]
  14099. yyc1 = true
  14100. }
  14101. }
  14102. var yyj1 int
  14103. // var yydn1 bool
  14104. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14105. if yyj1 == 0 && yyv1 == nil {
  14106. if yyhl1 {
  14107. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14108. } else {
  14109. yyrl1 = 8
  14110. }
  14111. yyv1 = make([]uint64, yyrl1)
  14112. yyc1 = true
  14113. }
  14114. yyh1.ElemContainerState(yyj1)
  14115. var yydb1 bool
  14116. if yyj1 >= len(yyv1) {
  14117. yyv1 = append(yyv1, 0)
  14118. yyc1 = true
  14119. }
  14120. if yydb1 {
  14121. z.DecSwallow()
  14122. } else {
  14123. if r.TryDecodeAsNil() {
  14124. yyv1[yyj1] = 0
  14125. } else {
  14126. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  14127. }
  14128. }
  14129. }
  14130. if yyj1 < len(yyv1) {
  14131. yyv1 = yyv1[:yyj1]
  14132. yyc1 = true
  14133. } else if yyj1 == 0 && yyv1 == nil {
  14134. yyv1 = make([]uint64, 0)
  14135. yyc1 = true
  14136. }
  14137. }
  14138. yyh1.End()
  14139. if yyc1 {
  14140. *v = yyv1
  14141. }
  14142. }
  14143. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  14144. var h codecSelfer19780
  14145. z, r := GenHelperEncoder(e)
  14146. _, _, _ = h, z, r
  14147. r.WriteArrayStart(len(v))
  14148. for _, yyv1 := range v {
  14149. r.WriteArrayElem()
  14150. if false {
  14151. } else {
  14152. if z.EncBasicHandle().StringToRaw {
  14153. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14154. } else {
  14155. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14156. }
  14157. }
  14158. }
  14159. r.WriteArrayEnd()
  14160. }
  14161. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  14162. var h codecSelfer19780
  14163. z, r := GenHelperDecoder(d)
  14164. _, _, _ = h, z, r
  14165. yyv1 := *v
  14166. yyh1, yyl1 := z.DecSliceHelperStart()
  14167. var yyc1 bool
  14168. _ = yyc1
  14169. if yyl1 == 0 {
  14170. if yyv1 == nil {
  14171. yyv1 = []string{}
  14172. yyc1 = true
  14173. } else if len(yyv1) != 0 {
  14174. yyv1 = yyv1[:0]
  14175. yyc1 = true
  14176. }
  14177. } else {
  14178. yyhl1 := yyl1 > 0
  14179. var yyrl1 int
  14180. _ = yyrl1
  14181. if yyhl1 {
  14182. if yyl1 > cap(yyv1) {
  14183. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14184. if yyrl1 <= cap(yyv1) {
  14185. yyv1 = yyv1[:yyrl1]
  14186. } else {
  14187. yyv1 = make([]string, yyrl1)
  14188. }
  14189. yyc1 = true
  14190. } else if yyl1 != len(yyv1) {
  14191. yyv1 = yyv1[:yyl1]
  14192. yyc1 = true
  14193. }
  14194. }
  14195. var yyj1 int
  14196. // var yydn1 bool
  14197. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14198. if yyj1 == 0 && yyv1 == nil {
  14199. if yyhl1 {
  14200. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14201. } else {
  14202. yyrl1 = 8
  14203. }
  14204. yyv1 = make([]string, yyrl1)
  14205. yyc1 = true
  14206. }
  14207. yyh1.ElemContainerState(yyj1)
  14208. var yydb1 bool
  14209. if yyj1 >= len(yyv1) {
  14210. yyv1 = append(yyv1, "")
  14211. yyc1 = true
  14212. }
  14213. if yydb1 {
  14214. z.DecSwallow()
  14215. } else {
  14216. if r.TryDecodeAsNil() {
  14217. yyv1[yyj1] = ""
  14218. } else {
  14219. yyv1[yyj1] = (string)(r.DecodeString())
  14220. }
  14221. }
  14222. }
  14223. if yyj1 < len(yyv1) {
  14224. yyv1 = yyv1[:yyj1]
  14225. yyc1 = true
  14226. } else if yyj1 == 0 && yyv1 == nil {
  14227. yyv1 = make([]string, 0)
  14228. yyc1 = true
  14229. }
  14230. }
  14231. yyh1.End()
  14232. if yyc1 {
  14233. *v = yyv1
  14234. }
  14235. }
  14236. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  14237. var h codecSelfer19780
  14238. z, r := GenHelperEncoder(e)
  14239. _, _, _ = h, z, r
  14240. r.WriteArrayStart(len(v))
  14241. for _, yyv1 := range v {
  14242. r.WriteArrayElem()
  14243. yyv1.CodecEncodeSelf(e)
  14244. }
  14245. r.WriteArrayEnd()
  14246. }
  14247. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  14248. var h codecSelfer19780
  14249. z, r := GenHelperDecoder(d)
  14250. _, _, _ = h, z, r
  14251. yyv1 := *v
  14252. yyh1, yyl1 := z.DecSliceHelperStart()
  14253. var yyc1 bool
  14254. _ = yyc1
  14255. if yyl1 == 0 {
  14256. if yyv1 == nil {
  14257. yyv1 = []wrapUint64{}
  14258. yyc1 = true
  14259. } else if len(yyv1) != 0 {
  14260. yyv1 = yyv1[:0]
  14261. yyc1 = true
  14262. }
  14263. } else {
  14264. yyhl1 := yyl1 > 0
  14265. var yyrl1 int
  14266. _ = yyrl1
  14267. if yyhl1 {
  14268. if yyl1 > cap(yyv1) {
  14269. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14270. if yyrl1 <= cap(yyv1) {
  14271. yyv1 = yyv1[:yyrl1]
  14272. } else {
  14273. yyv1 = make([]wrapUint64, yyrl1)
  14274. }
  14275. yyc1 = true
  14276. } else if yyl1 != len(yyv1) {
  14277. yyv1 = yyv1[:yyl1]
  14278. yyc1 = true
  14279. }
  14280. }
  14281. var yyj1 int
  14282. // var yydn1 bool
  14283. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14284. if yyj1 == 0 && yyv1 == nil {
  14285. if yyhl1 {
  14286. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14287. } else {
  14288. yyrl1 = 8
  14289. }
  14290. yyv1 = make([]wrapUint64, yyrl1)
  14291. yyc1 = true
  14292. }
  14293. yyh1.ElemContainerState(yyj1)
  14294. var yydb1 bool
  14295. if yyj1 >= len(yyv1) {
  14296. yyv1 = append(yyv1, 0)
  14297. yyc1 = true
  14298. }
  14299. if yydb1 {
  14300. z.DecSwallow()
  14301. } else {
  14302. if r.TryDecodeAsNil() {
  14303. yyv1[yyj1] = 0
  14304. } else {
  14305. yyv1[yyj1].CodecDecodeSelf(d)
  14306. }
  14307. }
  14308. }
  14309. if yyj1 < len(yyv1) {
  14310. yyv1 = yyv1[:yyj1]
  14311. yyc1 = true
  14312. } else if yyj1 == 0 && yyv1 == nil {
  14313. yyv1 = make([]wrapUint64, 0)
  14314. yyc1 = true
  14315. }
  14316. }
  14317. yyh1.End()
  14318. if yyc1 {
  14319. *v = yyv1
  14320. }
  14321. }
  14322. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  14323. var h codecSelfer19780
  14324. z, r := GenHelperEncoder(e)
  14325. _, _, _ = h, z, r
  14326. r.WriteArrayStart(len(v))
  14327. for _, yyv1 := range v {
  14328. r.WriteArrayElem()
  14329. yyv1.CodecEncodeSelf(e)
  14330. }
  14331. r.WriteArrayEnd()
  14332. }
  14333. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  14334. var h codecSelfer19780
  14335. z, r := GenHelperDecoder(d)
  14336. _, _, _ = h, z, r
  14337. yyv1 := *v
  14338. yyh1, yyl1 := z.DecSliceHelperStart()
  14339. var yyc1 bool
  14340. _ = yyc1
  14341. if yyl1 == 0 {
  14342. if yyv1 == nil {
  14343. yyv1 = []wrapString{}
  14344. yyc1 = true
  14345. } else if len(yyv1) != 0 {
  14346. yyv1 = yyv1[:0]
  14347. yyc1 = true
  14348. }
  14349. } else {
  14350. yyhl1 := yyl1 > 0
  14351. var yyrl1 int
  14352. _ = yyrl1
  14353. if yyhl1 {
  14354. if yyl1 > cap(yyv1) {
  14355. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14356. if yyrl1 <= cap(yyv1) {
  14357. yyv1 = yyv1[:yyrl1]
  14358. } else {
  14359. yyv1 = make([]wrapString, yyrl1)
  14360. }
  14361. yyc1 = true
  14362. } else if yyl1 != len(yyv1) {
  14363. yyv1 = yyv1[:yyl1]
  14364. yyc1 = true
  14365. }
  14366. }
  14367. var yyj1 int
  14368. // var yydn1 bool
  14369. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14370. if yyj1 == 0 && yyv1 == nil {
  14371. if yyhl1 {
  14372. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14373. } else {
  14374. yyrl1 = 8
  14375. }
  14376. yyv1 = make([]wrapString, yyrl1)
  14377. yyc1 = true
  14378. }
  14379. yyh1.ElemContainerState(yyj1)
  14380. var yydb1 bool
  14381. if yyj1 >= len(yyv1) {
  14382. yyv1 = append(yyv1, "")
  14383. yyc1 = true
  14384. }
  14385. if yydb1 {
  14386. z.DecSwallow()
  14387. } else {
  14388. if r.TryDecodeAsNil() {
  14389. yyv1[yyj1] = ""
  14390. } else {
  14391. yyv1[yyj1].CodecDecodeSelf(d)
  14392. }
  14393. }
  14394. }
  14395. if yyj1 < len(yyv1) {
  14396. yyv1 = yyv1[:yyj1]
  14397. yyc1 = true
  14398. } else if yyj1 == 0 && yyv1 == nil {
  14399. yyv1 = make([]wrapString, 0)
  14400. yyc1 = true
  14401. }
  14402. }
  14403. yyh1.End()
  14404. if yyc1 {
  14405. *v = yyv1
  14406. }
  14407. }
  14408. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  14409. var h codecSelfer19780
  14410. z, r := GenHelperEncoder(e)
  14411. _, _, _ = h, z, r
  14412. r.WriteArrayStart(len(v))
  14413. for _, yyv1 := range v {
  14414. r.WriteArrayElem()
  14415. if false {
  14416. } else {
  14417. r.EncodeInt(int64(yyv1))
  14418. }
  14419. }
  14420. r.WriteArrayEnd()
  14421. }
  14422. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  14423. var h codecSelfer19780
  14424. z, r := GenHelperDecoder(d)
  14425. _, _, _ = h, z, r
  14426. yyv1 := v
  14427. yyh1, yyl1 := z.DecSliceHelperStart()
  14428. if yyl1 == 0 {
  14429. } else {
  14430. yyhl1 := yyl1 > 0
  14431. var yyrl1 int
  14432. _ = yyrl1
  14433. var yyj1 int
  14434. // var yydn1 bool
  14435. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14436. yyh1.ElemContainerState(yyj1)
  14437. var yydb1 bool
  14438. if yyj1 >= len(yyv1) {
  14439. z.DecArrayCannotExpand(len(v), yyj1+1)
  14440. yydb1 = true
  14441. }
  14442. if yydb1 {
  14443. z.DecSwallow()
  14444. } else {
  14445. if r.TryDecodeAsNil() {
  14446. yyv1[yyj1] = 0
  14447. } else {
  14448. yyv1[yyj1] = (int64)(r.DecodeInt64())
  14449. }
  14450. }
  14451. }
  14452. }
  14453. yyh1.End()
  14454. }
  14455. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  14456. var h codecSelfer19780
  14457. z, r := GenHelperEncoder(e)
  14458. _, _, _ = h, z, r
  14459. r.WriteArrayStart(len(v))
  14460. for _, yyv1 := range v {
  14461. r.WriteArrayElem()
  14462. if yyv1 == nil {
  14463. r.EncodeNil()
  14464. } else {
  14465. yy2 := *yyv1
  14466. if false {
  14467. } else {
  14468. r.EncodeInt(int64(yy2))
  14469. }
  14470. }
  14471. }
  14472. r.WriteArrayEnd()
  14473. }
  14474. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  14475. var h codecSelfer19780
  14476. z, r := GenHelperDecoder(d)
  14477. _, _, _ = h, z, r
  14478. yyv1 := *v
  14479. yyh1, yyl1 := z.DecSliceHelperStart()
  14480. var yyc1 bool
  14481. _ = yyc1
  14482. if yyl1 == 0 {
  14483. if yyv1 == nil {
  14484. yyv1 = []*int64{}
  14485. yyc1 = true
  14486. } else if len(yyv1) != 0 {
  14487. yyv1 = yyv1[:0]
  14488. yyc1 = true
  14489. }
  14490. } else {
  14491. yyhl1 := yyl1 > 0
  14492. var yyrl1 int
  14493. _ = yyrl1
  14494. if yyhl1 {
  14495. if yyl1 > cap(yyv1) {
  14496. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14497. if yyrl1 <= cap(yyv1) {
  14498. yyv1 = yyv1[:yyrl1]
  14499. } else {
  14500. yyv1 = make([]*int64, yyrl1)
  14501. }
  14502. yyc1 = true
  14503. } else if yyl1 != len(yyv1) {
  14504. yyv1 = yyv1[:yyl1]
  14505. yyc1 = true
  14506. }
  14507. }
  14508. var yyj1 int
  14509. // var yydn1 bool
  14510. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14511. if yyj1 == 0 && yyv1 == nil {
  14512. if yyhl1 {
  14513. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14514. } else {
  14515. yyrl1 = 8
  14516. }
  14517. yyv1 = make([]*int64, yyrl1)
  14518. yyc1 = true
  14519. }
  14520. yyh1.ElemContainerState(yyj1)
  14521. var yydb1 bool
  14522. if yyj1 >= len(yyv1) {
  14523. yyv1 = append(yyv1, nil)
  14524. yyc1 = true
  14525. }
  14526. if yydb1 {
  14527. z.DecSwallow()
  14528. } else {
  14529. if r.TryDecodeAsNil() {
  14530. yyv1[yyj1] = nil
  14531. } else {
  14532. if yyv1[yyj1] == nil {
  14533. yyv1[yyj1] = new(int64)
  14534. }
  14535. if false {
  14536. } else {
  14537. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  14538. }
  14539. }
  14540. }
  14541. }
  14542. if yyj1 < len(yyv1) {
  14543. yyv1 = yyv1[:yyj1]
  14544. yyc1 = true
  14545. } else if yyj1 == 0 && yyv1 == nil {
  14546. yyv1 = make([]*int64, 0)
  14547. yyc1 = true
  14548. }
  14549. }
  14550. yyh1.End()
  14551. if yyc1 {
  14552. *v = yyv1
  14553. }
  14554. }
  14555. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  14556. var h codecSelfer19780
  14557. z, r := GenHelperEncoder(e)
  14558. _, _, _ = h, z, r
  14559. r.WriteArrayStart(len(v))
  14560. for _, yyv1 := range v {
  14561. r.WriteArrayElem()
  14562. yy2 := &yyv1
  14563. yy2.CodecEncodeSelf(e)
  14564. }
  14565. r.WriteArrayEnd()
  14566. }
  14567. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  14568. var h codecSelfer19780
  14569. z, r := GenHelperDecoder(d)
  14570. _, _, _ = h, z, r
  14571. yyv1 := *v
  14572. yyh1, yyl1 := z.DecSliceHelperStart()
  14573. var yyc1 bool
  14574. _ = yyc1
  14575. if yyl1 == 0 {
  14576. if yyv1 == nil {
  14577. yyv1 = []stringUint64T{}
  14578. yyc1 = true
  14579. } else if len(yyv1) != 0 {
  14580. yyv1 = yyv1[:0]
  14581. yyc1 = true
  14582. }
  14583. } else {
  14584. yyhl1 := yyl1 > 0
  14585. var yyrl1 int
  14586. _ = yyrl1
  14587. if yyhl1 {
  14588. if yyl1 > cap(yyv1) {
  14589. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14590. if yyrl1 <= cap(yyv1) {
  14591. yyv1 = yyv1[:yyrl1]
  14592. } else {
  14593. yyv1 = make([]stringUint64T, yyrl1)
  14594. }
  14595. yyc1 = true
  14596. } else if yyl1 != len(yyv1) {
  14597. yyv1 = yyv1[:yyl1]
  14598. yyc1 = true
  14599. }
  14600. }
  14601. var yyj1 int
  14602. // var yydn1 bool
  14603. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14604. if yyj1 == 0 && yyv1 == nil {
  14605. if yyhl1 {
  14606. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14607. } else {
  14608. yyrl1 = 8
  14609. }
  14610. yyv1 = make([]stringUint64T, yyrl1)
  14611. yyc1 = true
  14612. }
  14613. yyh1.ElemContainerState(yyj1)
  14614. var yydb1 bool
  14615. if yyj1 >= len(yyv1) {
  14616. yyv1 = append(yyv1, stringUint64T{})
  14617. yyc1 = true
  14618. }
  14619. if yydb1 {
  14620. z.DecSwallow()
  14621. } else {
  14622. if r.TryDecodeAsNil() {
  14623. yyv1[yyj1] = stringUint64T{}
  14624. } else {
  14625. yyv1[yyj1].CodecDecodeSelf(d)
  14626. }
  14627. }
  14628. }
  14629. if yyj1 < len(yyv1) {
  14630. yyv1 = yyv1[:yyj1]
  14631. yyc1 = true
  14632. } else if yyj1 == 0 && yyv1 == nil {
  14633. yyv1 = make([]stringUint64T, 0)
  14634. yyc1 = true
  14635. }
  14636. }
  14637. yyh1.End()
  14638. if yyc1 {
  14639. *v = yyv1
  14640. }
  14641. }
  14642. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  14643. var h codecSelfer19780
  14644. z, r := GenHelperEncoder(e)
  14645. _, _, _ = h, z, r
  14646. r.WriteMapStart(len(v))
  14647. for yyk1, yyv1 := range v {
  14648. r.WriteMapElemKey()
  14649. if false {
  14650. } else {
  14651. if z.EncBasicHandle().StringToRaw {
  14652. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14653. } else {
  14654. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14655. }
  14656. }
  14657. r.WriteMapElemValue()
  14658. if yyv1 == nil {
  14659. r.EncodeNil()
  14660. } else {
  14661. yyv1.CodecEncodeSelf(e)
  14662. }
  14663. }
  14664. r.WriteMapEnd()
  14665. }
  14666. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  14667. var h codecSelfer19780
  14668. z, r := GenHelperDecoder(d)
  14669. _, _, _ = h, z, r
  14670. yyv1 := *v
  14671. yyl1 := r.ReadMapStart()
  14672. yybh1 := z.DecBasicHandle()
  14673. if yyv1 == nil {
  14674. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  14675. yyv1 = make(map[string]*TestStruc, yyrl1)
  14676. *v = yyv1
  14677. }
  14678. var yymk1 string
  14679. var yymv1 *TestStruc
  14680. var yymg1, yymdn1, yyms1, yymok1 bool
  14681. if yybh1.MapValueReset {
  14682. yymg1 = true
  14683. }
  14684. if yyl1 != 0 {
  14685. yyhl1 := yyl1 > 0
  14686. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14687. r.ReadMapElemKey()
  14688. if r.TryDecodeAsNil() {
  14689. yymk1 = ""
  14690. } else {
  14691. yymk1 = (string)(r.DecodeString())
  14692. }
  14693. yyms1 = true
  14694. if yymg1 {
  14695. yymv1, yymok1 = yyv1[yymk1]
  14696. if yymok1 {
  14697. yyms1 = false
  14698. }
  14699. } else {
  14700. yymv1 = nil
  14701. }
  14702. r.ReadMapElemValue()
  14703. yymdn1 = false
  14704. if r.TryDecodeAsNil() {
  14705. yymdn1 = true
  14706. } else {
  14707. if yymv1 == nil {
  14708. yymv1 = new(TestStruc)
  14709. }
  14710. yymv1.CodecDecodeSelf(d)
  14711. }
  14712. if yymdn1 {
  14713. if yybh1.DeleteOnNilMapValue {
  14714. delete(yyv1, yymk1)
  14715. } else {
  14716. yyv1[yymk1] = nil
  14717. }
  14718. } else if yyms1 && yyv1 != nil {
  14719. yyv1[yymk1] = yymv1
  14720. }
  14721. }
  14722. } // else len==0: TODO: Should we clear map entries?
  14723. r.ReadMapEnd()
  14724. }
  14725. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  14726. var h codecSelfer19780
  14727. z, r := GenHelperEncoder(e)
  14728. _, _, _ = h, z, r
  14729. r.WriteMapStart(len(v))
  14730. for yyk1, yyv1 := range v {
  14731. r.WriteMapElemKey()
  14732. if false {
  14733. } else {
  14734. if z.EncBasicHandle().StringToRaw {
  14735. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14736. } else {
  14737. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14738. }
  14739. }
  14740. r.WriteMapElemValue()
  14741. yy3 := &yyv1
  14742. yy3.CodecEncodeSelf(e)
  14743. }
  14744. r.WriteMapEnd()
  14745. }
  14746. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  14747. var h codecSelfer19780
  14748. z, r := GenHelperDecoder(d)
  14749. _, _, _ = h, z, r
  14750. yyv1 := *v
  14751. yyl1 := r.ReadMapStart()
  14752. yybh1 := z.DecBasicHandle()
  14753. if yyv1 == nil {
  14754. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1184)
  14755. yyv1 = make(map[string]TestStruc, yyrl1)
  14756. *v = yyv1
  14757. }
  14758. var yymk1 string
  14759. var yymv1 TestStruc
  14760. var yymg1, yymdn1 bool
  14761. if yybh1.MapValueReset {
  14762. yymg1 = true
  14763. }
  14764. if yyl1 != 0 {
  14765. yyhl1 := yyl1 > 0
  14766. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14767. r.ReadMapElemKey()
  14768. if r.TryDecodeAsNil() {
  14769. yymk1 = ""
  14770. } else {
  14771. yymk1 = (string)(r.DecodeString())
  14772. }
  14773. if yymg1 {
  14774. yymv1 = yyv1[yymk1]
  14775. } else {
  14776. yymv1 = TestStruc{}
  14777. }
  14778. r.ReadMapElemValue()
  14779. yymdn1 = false
  14780. if r.TryDecodeAsNil() {
  14781. yymdn1 = true
  14782. } else {
  14783. yymv1.CodecDecodeSelf(d)
  14784. }
  14785. if yymdn1 {
  14786. if yybh1.DeleteOnNilMapValue {
  14787. delete(yyv1, yymk1)
  14788. } else {
  14789. yyv1[yymk1] = TestStruc{}
  14790. }
  14791. } else if yyv1 != nil {
  14792. yyv1[yymk1] = yymv1
  14793. }
  14794. }
  14795. } // else len==0: TODO: Should we clear map entries?
  14796. r.ReadMapEnd()
  14797. }
  14798. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  14799. var h codecSelfer19780
  14800. z, r := GenHelperEncoder(e)
  14801. _, _, _ = h, z, r
  14802. r.WriteArrayStart(len(v))
  14803. for _, yyv1 := range v {
  14804. r.WriteArrayElem()
  14805. if yyv1 == nil {
  14806. r.EncodeNil()
  14807. } else {
  14808. yyv1.CodecEncodeSelf(e)
  14809. }
  14810. }
  14811. r.WriteArrayEnd()
  14812. }
  14813. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  14814. var h codecSelfer19780
  14815. z, r := GenHelperDecoder(d)
  14816. _, _, _ = h, z, r
  14817. yyv1 := *v
  14818. yyh1, yyl1 := z.DecSliceHelperStart()
  14819. var yyc1 bool
  14820. _ = yyc1
  14821. if yyl1 == 0 {
  14822. if yyv1 == nil {
  14823. yyv1 = []*TestStruc{}
  14824. yyc1 = true
  14825. } else if len(yyv1) != 0 {
  14826. yyv1 = yyv1[:0]
  14827. yyc1 = true
  14828. }
  14829. } else {
  14830. yyhl1 := yyl1 > 0
  14831. var yyrl1 int
  14832. _ = yyrl1
  14833. if yyhl1 {
  14834. if yyl1 > cap(yyv1) {
  14835. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14836. if yyrl1 <= cap(yyv1) {
  14837. yyv1 = yyv1[:yyrl1]
  14838. } else {
  14839. yyv1 = make([]*TestStruc, yyrl1)
  14840. }
  14841. yyc1 = true
  14842. } else if yyl1 != len(yyv1) {
  14843. yyv1 = yyv1[:yyl1]
  14844. yyc1 = true
  14845. }
  14846. }
  14847. var yyj1 int
  14848. // var yydn1 bool
  14849. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14850. if yyj1 == 0 && yyv1 == nil {
  14851. if yyhl1 {
  14852. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14853. } else {
  14854. yyrl1 = 8
  14855. }
  14856. yyv1 = make([]*TestStruc, yyrl1)
  14857. yyc1 = true
  14858. }
  14859. yyh1.ElemContainerState(yyj1)
  14860. var yydb1 bool
  14861. if yyj1 >= len(yyv1) {
  14862. yyv1 = append(yyv1, nil)
  14863. yyc1 = true
  14864. }
  14865. if yydb1 {
  14866. z.DecSwallow()
  14867. } else {
  14868. if r.TryDecodeAsNil() {
  14869. yyv1[yyj1] = nil
  14870. } else {
  14871. if yyv1[yyj1] == nil {
  14872. yyv1[yyj1] = new(TestStruc)
  14873. }
  14874. yyv1[yyj1].CodecDecodeSelf(d)
  14875. }
  14876. }
  14877. }
  14878. if yyj1 < len(yyv1) {
  14879. yyv1 = yyv1[:yyj1]
  14880. yyc1 = true
  14881. } else if yyj1 == 0 && yyv1 == nil {
  14882. yyv1 = make([]*TestStruc, 0)
  14883. yyc1 = true
  14884. }
  14885. }
  14886. yyh1.End()
  14887. if yyc1 {
  14888. *v = yyv1
  14889. }
  14890. }
  14891. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  14892. var h codecSelfer19780
  14893. z, r := GenHelperEncoder(e)
  14894. _, _, _ = h, z, r
  14895. r.WriteArrayStart(len(v))
  14896. for _, yyv1 := range v {
  14897. r.WriteArrayElem()
  14898. if false {
  14899. } else {
  14900. if z.EncBasicHandle().StringToRaw {
  14901. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14902. } else {
  14903. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14904. }
  14905. }
  14906. }
  14907. r.WriteArrayEnd()
  14908. }
  14909. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  14910. var h codecSelfer19780
  14911. z, r := GenHelperDecoder(d)
  14912. _, _, _ = h, z, r
  14913. yyv1 := v
  14914. yyh1, yyl1 := z.DecSliceHelperStart()
  14915. if yyl1 == 0 {
  14916. } else {
  14917. yyhl1 := yyl1 > 0
  14918. var yyrl1 int
  14919. _ = yyrl1
  14920. var yyj1 int
  14921. // var yydn1 bool
  14922. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14923. yyh1.ElemContainerState(yyj1)
  14924. var yydb1 bool
  14925. if yyj1 >= len(yyv1) {
  14926. z.DecArrayCannotExpand(len(v), yyj1+1)
  14927. yydb1 = true
  14928. }
  14929. if yydb1 {
  14930. z.DecSwallow()
  14931. } else {
  14932. if r.TryDecodeAsNil() {
  14933. yyv1[yyj1] = ""
  14934. } else {
  14935. yyv1[yyj1] = (string)(r.DecodeString())
  14936. }
  14937. }
  14938. }
  14939. }
  14940. yyh1.End()
  14941. }
  14942. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  14943. var h codecSelfer19780
  14944. z, r := GenHelperEncoder(e)
  14945. _, _, _ = h, z, r
  14946. r.EncodeStringBytesRaw([]byte(v))
  14947. }
  14948. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  14949. var h codecSelfer19780
  14950. z, r := GenHelperDecoder(d)
  14951. _, _, _ = h, z, r
  14952. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  14953. }
  14954. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  14955. var h codecSelfer19780
  14956. z, r := GenHelperEncoder(e)
  14957. _, _, _ = h, z, r
  14958. if v == nil {
  14959. r.EncodeNil()
  14960. } else {
  14961. var sch1 []string
  14962. Lsch1:
  14963. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  14964. case timeout1 == 0: // only consume available
  14965. for {
  14966. select {
  14967. case b1 := <-v:
  14968. sch1 = append(sch1, b1)
  14969. default:
  14970. break Lsch1
  14971. }
  14972. }
  14973. case timeout1 > 0: // consume until timeout
  14974. tt1 := time.NewTimer(timeout1)
  14975. for {
  14976. select {
  14977. case b1 := <-v:
  14978. sch1 = append(sch1, b1)
  14979. case <-tt1.C:
  14980. // close(tt.C)
  14981. break Lsch1
  14982. }
  14983. }
  14984. default: // consume until close
  14985. for b1 := range v {
  14986. sch1 = append(sch1, b1)
  14987. }
  14988. }
  14989. r.WriteArrayStart(len(sch1))
  14990. for _, yyv1 := range sch1 {
  14991. r.WriteArrayElem()
  14992. if false {
  14993. } else {
  14994. if z.EncBasicHandle().StringToRaw {
  14995. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14996. } else {
  14997. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14998. }
  14999. }
  15000. }
  15001. r.WriteArrayEnd()
  15002. }
  15003. }
  15004. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  15005. var h codecSelfer19780
  15006. z, r := GenHelperDecoder(d)
  15007. _, _, _ = h, z, r
  15008. yyv1 := *v
  15009. yyh1, yyl1 := z.DecSliceHelperStart()
  15010. var yyc1 bool
  15011. _ = yyc1
  15012. if yyl1 == 0 {
  15013. if yyv1 == nil {
  15014. yyv1 = make(chan string, 0)
  15015. yyc1 = true
  15016. }
  15017. } else {
  15018. yyhl1 := yyl1 > 0
  15019. var yyrl1 int
  15020. _ = yyrl1
  15021. var yyj1 int
  15022. // var yydn1 bool
  15023. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15024. if yyj1 == 0 && yyv1 == nil {
  15025. if yyhl1 {
  15026. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15027. } else {
  15028. yyrl1 = 64
  15029. }
  15030. yyv1 = make(chan string, yyrl1)
  15031. yyc1 = true
  15032. }
  15033. yyh1.ElemContainerState(yyj1)
  15034. var yyvcx1 string
  15035. if r.TryDecodeAsNil() {
  15036. yyvcx1 = ""
  15037. } else {
  15038. yyvcx1 = (string)(r.DecodeString())
  15039. }
  15040. yyv1 <- yyvcx1
  15041. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  15042. }
  15043. }
  15044. yyh1.End()
  15045. if yyc1 {
  15046. *v = yyv1
  15047. }
  15048. }
  15049. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  15050. var h codecSelfer19780
  15051. z, r := GenHelperEncoder(e)
  15052. _, _, _ = h, z, r
  15053. r.WriteMapStart(len(v))
  15054. for yyk1, yyv1 := range v {
  15055. r.WriteMapElemKey()
  15056. if false {
  15057. } else {
  15058. r.EncodeBool(bool(yyk1))
  15059. }
  15060. r.WriteMapElemValue()
  15061. yy3 := &yyv1
  15062. if false {
  15063. } else {
  15064. z.EncFallback(yy3)
  15065. }
  15066. }
  15067. r.WriteMapEnd()
  15068. }
  15069. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  15070. var h codecSelfer19780
  15071. z, r := GenHelperDecoder(d)
  15072. _, _, _ = h, z, r
  15073. yyv1 := *v
  15074. yyl1 := r.ReadMapStart()
  15075. yybh1 := z.DecBasicHandle()
  15076. if yyv1 == nil {
  15077. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  15078. yyv1 = make(map[bool]struct{}, yyrl1)
  15079. *v = yyv1
  15080. }
  15081. var yymk1 bool
  15082. var yymv1 struct{}
  15083. var yymg1, yymdn1 bool
  15084. if yybh1.MapValueReset {
  15085. yymg1 = true
  15086. }
  15087. if yyl1 != 0 {
  15088. yyhl1 := yyl1 > 0
  15089. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15090. r.ReadMapElemKey()
  15091. if r.TryDecodeAsNil() {
  15092. yymk1 = false
  15093. } else {
  15094. yymk1 = (bool)(r.DecodeBool())
  15095. }
  15096. if yymg1 {
  15097. yymv1 = yyv1[yymk1]
  15098. } else {
  15099. yymv1 = struct{}{}
  15100. }
  15101. r.ReadMapElemValue()
  15102. yymdn1 = false
  15103. if r.TryDecodeAsNil() {
  15104. yymdn1 = true
  15105. } else {
  15106. if false {
  15107. } else {
  15108. z.DecFallback(&yymv1, false)
  15109. }
  15110. }
  15111. if yymdn1 {
  15112. if yybh1.DeleteOnNilMapValue {
  15113. delete(yyv1, yymk1)
  15114. } else {
  15115. yyv1[yymk1] = struct{}{}
  15116. }
  15117. } else if yyv1 != nil {
  15118. yyv1[yymk1] = yymv1
  15119. }
  15120. }
  15121. } // else len==0: TODO: Should we clear map entries?
  15122. r.ReadMapEnd()
  15123. }
  15124. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  15125. var h codecSelfer19780
  15126. z, r := GenHelperEncoder(e)
  15127. _, _, _ = h, z, r
  15128. r.WriteMapStart(len(v))
  15129. for yyk1, yyv1 := range v {
  15130. r.WriteMapElemKey()
  15131. if false {
  15132. } else {
  15133. r.EncodeInt(int64(yyk1))
  15134. }
  15135. r.WriteMapElemValue()
  15136. if yyv1 == nil {
  15137. r.EncodeNil()
  15138. } else {
  15139. yyv1.CodecEncodeSelf(e)
  15140. }
  15141. }
  15142. r.WriteMapEnd()
  15143. }
  15144. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  15145. var h codecSelfer19780
  15146. z, r := GenHelperDecoder(d)
  15147. _, _, _ = h, z, r
  15148. yyv1 := *v
  15149. yyl1 := r.ReadMapStart()
  15150. yybh1 := z.DecBasicHandle()
  15151. if yyv1 == nil {
  15152. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15153. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  15154. *v = yyv1
  15155. }
  15156. var yymk1 int
  15157. var yymv1 wrapUint64Slice
  15158. var yymg1, yymdn1 bool
  15159. if yybh1.MapValueReset {
  15160. yymg1 = true
  15161. }
  15162. if yyl1 != 0 {
  15163. yyhl1 := yyl1 > 0
  15164. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15165. r.ReadMapElemKey()
  15166. if r.TryDecodeAsNil() {
  15167. yymk1 = 0
  15168. } else {
  15169. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  15170. }
  15171. if yymg1 {
  15172. yymv1 = yyv1[yymk1]
  15173. } else {
  15174. yymv1 = nil
  15175. }
  15176. r.ReadMapElemValue()
  15177. yymdn1 = false
  15178. if r.TryDecodeAsNil() {
  15179. yymdn1 = true
  15180. } else {
  15181. yymv1.CodecDecodeSelf(d)
  15182. }
  15183. if yymdn1 {
  15184. if yybh1.DeleteOnNilMapValue {
  15185. delete(yyv1, yymk1)
  15186. } else {
  15187. yyv1[yymk1] = nil
  15188. }
  15189. } else if yyv1 != nil {
  15190. yyv1[yymk1] = yymv1
  15191. }
  15192. }
  15193. } // else len==0: TODO: Should we clear map entries?
  15194. r.ReadMapEnd()
  15195. }
  15196. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  15197. var h codecSelfer19780
  15198. z, r := GenHelperEncoder(e)
  15199. _, _, _ = h, z, r
  15200. r.WriteMapStart(len(v))
  15201. for yyk1, yyv1 := range v {
  15202. r.WriteMapElemKey()
  15203. if false {
  15204. } else {
  15205. r.EncodeFloat64(float64(yyk1))
  15206. }
  15207. r.WriteMapElemValue()
  15208. if yyv1 == nil {
  15209. r.EncodeNil()
  15210. } else {
  15211. yyv1.CodecEncodeSelf(e)
  15212. }
  15213. }
  15214. r.WriteMapEnd()
  15215. }
  15216. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  15217. var h codecSelfer19780
  15218. z, r := GenHelperDecoder(d)
  15219. _, _, _ = h, z, r
  15220. yyv1 := *v
  15221. yyl1 := r.ReadMapStart()
  15222. yybh1 := z.DecBasicHandle()
  15223. if yyv1 == nil {
  15224. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15225. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  15226. *v = yyv1
  15227. }
  15228. var yymk1 float64
  15229. var yymv1 wrapStringSlice
  15230. var yymg1, yymdn1 bool
  15231. if yybh1.MapValueReset {
  15232. yymg1 = true
  15233. }
  15234. if yyl1 != 0 {
  15235. yyhl1 := yyl1 > 0
  15236. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15237. r.ReadMapElemKey()
  15238. if r.TryDecodeAsNil() {
  15239. yymk1 = 0
  15240. } else {
  15241. yymk1 = (float64)(r.DecodeFloat64())
  15242. }
  15243. if yymg1 {
  15244. yymv1 = yyv1[yymk1]
  15245. } else {
  15246. yymv1 = nil
  15247. }
  15248. r.ReadMapElemValue()
  15249. yymdn1 = false
  15250. if r.TryDecodeAsNil() {
  15251. yymdn1 = true
  15252. } else {
  15253. yymv1.CodecDecodeSelf(d)
  15254. }
  15255. if yymdn1 {
  15256. if yybh1.DeleteOnNilMapValue {
  15257. delete(yyv1, yymk1)
  15258. } else {
  15259. yyv1[yymk1] = nil
  15260. }
  15261. } else if yyv1 != nil {
  15262. yyv1[yymk1] = yymv1
  15263. }
  15264. }
  15265. } // else len==0: TODO: Should we clear map entries?
  15266. r.ReadMapEnd()
  15267. }
  15268. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  15269. var h codecSelfer19780
  15270. z, r := GenHelperEncoder(e)
  15271. _, _, _ = h, z, r
  15272. r.WriteMapStart(len(v))
  15273. for yyk1, yyv1 := range v {
  15274. r.WriteMapElemKey()
  15275. if false {
  15276. } else {
  15277. r.EncodeFloat32(float32(yyk1))
  15278. }
  15279. r.WriteMapElemValue()
  15280. if yyv1 == nil {
  15281. r.EncodeNil()
  15282. } else {
  15283. yyv1.CodecEncodeSelf(e)
  15284. }
  15285. }
  15286. r.WriteMapEnd()
  15287. }
  15288. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  15289. var h codecSelfer19780
  15290. z, r := GenHelperDecoder(d)
  15291. _, _, _ = h, z, r
  15292. yyv1 := *v
  15293. yyl1 := r.ReadMapStart()
  15294. yybh1 := z.DecBasicHandle()
  15295. if yyv1 == nil {
  15296. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  15297. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  15298. *v = yyv1
  15299. }
  15300. var yymk1 float32
  15301. var yymv1 wrapStringSlice
  15302. var yymg1, yymdn1 bool
  15303. if yybh1.MapValueReset {
  15304. yymg1 = true
  15305. }
  15306. if yyl1 != 0 {
  15307. yyhl1 := yyl1 > 0
  15308. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15309. r.ReadMapElemKey()
  15310. if r.TryDecodeAsNil() {
  15311. yymk1 = 0
  15312. } else {
  15313. yymk1 = (float32)(r.DecodeFloat32As64())
  15314. }
  15315. if yymg1 {
  15316. yymv1 = yyv1[yymk1]
  15317. } else {
  15318. yymv1 = nil
  15319. }
  15320. r.ReadMapElemValue()
  15321. yymdn1 = false
  15322. if r.TryDecodeAsNil() {
  15323. yymdn1 = true
  15324. } else {
  15325. yymv1.CodecDecodeSelf(d)
  15326. }
  15327. if yymdn1 {
  15328. if yybh1.DeleteOnNilMapValue {
  15329. delete(yyv1, yymk1)
  15330. } else {
  15331. yyv1[yymk1] = nil
  15332. }
  15333. } else if yyv1 != nil {
  15334. yyv1[yymk1] = yymv1
  15335. }
  15336. }
  15337. } // else len==0: TODO: Should we clear map entries?
  15338. r.ReadMapEnd()
  15339. }
  15340. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  15341. var h codecSelfer19780
  15342. z, r := GenHelperEncoder(e)
  15343. _, _, _ = h, z, r
  15344. r.WriteMapStart(len(v))
  15345. for yyk1, yyv1 := range v {
  15346. r.WriteMapElemKey()
  15347. if false {
  15348. } else {
  15349. r.EncodeUint(uint64(yyk1))
  15350. }
  15351. r.WriteMapElemValue()
  15352. if yyv1 == nil {
  15353. r.EncodeNil()
  15354. } else {
  15355. yyv1.CodecEncodeSelf(e)
  15356. }
  15357. }
  15358. r.WriteMapEnd()
  15359. }
  15360. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  15361. var h codecSelfer19780
  15362. z, r := GenHelperDecoder(d)
  15363. _, _, _ = h, z, r
  15364. yyv1 := *v
  15365. yyl1 := r.ReadMapStart()
  15366. yybh1 := z.DecBasicHandle()
  15367. if yyv1 == nil {
  15368. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15369. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  15370. *v = yyv1
  15371. }
  15372. var yymk1 uint64
  15373. var yymv1 wrapStringSlice
  15374. var yymg1, yymdn1 bool
  15375. if yybh1.MapValueReset {
  15376. yymg1 = true
  15377. }
  15378. if yyl1 != 0 {
  15379. yyhl1 := yyl1 > 0
  15380. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15381. r.ReadMapElemKey()
  15382. if r.TryDecodeAsNil() {
  15383. yymk1 = 0
  15384. } else {
  15385. yymk1 = (uint64)(r.DecodeUint64())
  15386. }
  15387. if yymg1 {
  15388. yymv1 = yyv1[yymk1]
  15389. } else {
  15390. yymv1 = nil
  15391. }
  15392. r.ReadMapElemValue()
  15393. yymdn1 = false
  15394. if r.TryDecodeAsNil() {
  15395. yymdn1 = true
  15396. } else {
  15397. yymv1.CodecDecodeSelf(d)
  15398. }
  15399. if yymdn1 {
  15400. if yybh1.DeleteOnNilMapValue {
  15401. delete(yyv1, yymk1)
  15402. } else {
  15403. yyv1[yymk1] = nil
  15404. }
  15405. } else if yyv1 != nil {
  15406. yyv1[yymk1] = yymv1
  15407. }
  15408. }
  15409. } // else len==0: TODO: Should we clear map entries?
  15410. r.ReadMapEnd()
  15411. }
  15412. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  15413. var h codecSelfer19780
  15414. z, r := GenHelperEncoder(e)
  15415. _, _, _ = h, z, r
  15416. r.WriteMapStart(len(v))
  15417. for yyk1, yyv1 := range v {
  15418. r.WriteMapElemKey()
  15419. yy2 := &yyk1
  15420. yy2.CodecEncodeSelf(e)
  15421. r.WriteMapElemValue()
  15422. if yyv1 == nil {
  15423. r.EncodeNil()
  15424. } else {
  15425. yyv1.CodecEncodeSelf(e)
  15426. }
  15427. }
  15428. r.WriteMapEnd()
  15429. }
  15430. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  15431. var h codecSelfer19780
  15432. z, r := GenHelperDecoder(d)
  15433. _, _, _ = h, z, r
  15434. yyv1 := *v
  15435. yyl1 := r.ReadMapStart()
  15436. yybh1 := z.DecBasicHandle()
  15437. if yyv1 == nil {
  15438. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  15439. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  15440. *v = yyv1
  15441. }
  15442. var yymk1 stringUint64T
  15443. var yymv1 wrapStringSlice
  15444. var yymg1, yymdn1 bool
  15445. if yybh1.MapValueReset {
  15446. yymg1 = true
  15447. }
  15448. if yyl1 != 0 {
  15449. yyhl1 := yyl1 > 0
  15450. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15451. r.ReadMapElemKey()
  15452. if r.TryDecodeAsNil() {
  15453. yymk1 = stringUint64T{}
  15454. } else {
  15455. yymk1.CodecDecodeSelf(d)
  15456. }
  15457. if yymg1 {
  15458. yymv1 = yyv1[yymk1]
  15459. } else {
  15460. yymv1 = nil
  15461. }
  15462. r.ReadMapElemValue()
  15463. yymdn1 = false
  15464. if r.TryDecodeAsNil() {
  15465. yymdn1 = true
  15466. } else {
  15467. yymv1.CodecDecodeSelf(d)
  15468. }
  15469. if yymdn1 {
  15470. if yybh1.DeleteOnNilMapValue {
  15471. delete(yyv1, yymk1)
  15472. } else {
  15473. yyv1[yymk1] = nil
  15474. }
  15475. } else if yyv1 != nil {
  15476. yyv1[yymk1] = yymv1
  15477. }
  15478. }
  15479. } // else len==0: TODO: Should we clear map entries?
  15480. r.ReadMapEnd()
  15481. }
  15482. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  15483. var h codecSelfer19780
  15484. z, r := GenHelperEncoder(e)
  15485. _, _, _ = h, z, r
  15486. r.WriteArrayStart(len(v))
  15487. for _, yyv1 := range v {
  15488. r.WriteArrayElem()
  15489. if yyv1 == nil {
  15490. r.EncodeNil()
  15491. } else {
  15492. yyv1.CodecEncodeSelf(e)
  15493. }
  15494. }
  15495. r.WriteArrayEnd()
  15496. }
  15497. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  15498. var h codecSelfer19780
  15499. z, r := GenHelperDecoder(d)
  15500. _, _, _ = h, z, r
  15501. yyv1 := *v
  15502. yyh1, yyl1 := z.DecSliceHelperStart()
  15503. var yyc1 bool
  15504. _ = yyc1
  15505. if yyl1 == 0 {
  15506. if yyv1 == nil {
  15507. yyv1 = []wrapBytes{}
  15508. yyc1 = true
  15509. } else if len(yyv1) != 0 {
  15510. yyv1 = yyv1[:0]
  15511. yyc1 = true
  15512. }
  15513. } else {
  15514. yyhl1 := yyl1 > 0
  15515. var yyrl1 int
  15516. _ = yyrl1
  15517. if yyhl1 {
  15518. if yyl1 > cap(yyv1) {
  15519. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15520. if yyrl1 <= cap(yyv1) {
  15521. yyv1 = yyv1[:yyrl1]
  15522. } else {
  15523. yyv1 = make([]wrapBytes, yyrl1)
  15524. }
  15525. yyc1 = true
  15526. } else if yyl1 != len(yyv1) {
  15527. yyv1 = yyv1[:yyl1]
  15528. yyc1 = true
  15529. }
  15530. }
  15531. var yyj1 int
  15532. // var yydn1 bool
  15533. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15534. if yyj1 == 0 && yyv1 == nil {
  15535. if yyhl1 {
  15536. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15537. } else {
  15538. yyrl1 = 8
  15539. }
  15540. yyv1 = make([]wrapBytes, yyrl1)
  15541. yyc1 = true
  15542. }
  15543. yyh1.ElemContainerState(yyj1)
  15544. var yydb1 bool
  15545. if yyj1 >= len(yyv1) {
  15546. yyv1 = append(yyv1, nil)
  15547. yyc1 = true
  15548. }
  15549. if yydb1 {
  15550. z.DecSwallow()
  15551. } else {
  15552. if r.TryDecodeAsNil() {
  15553. yyv1[yyj1] = nil
  15554. } else {
  15555. yyv1[yyj1].CodecDecodeSelf(d)
  15556. }
  15557. }
  15558. }
  15559. if yyj1 < len(yyv1) {
  15560. yyv1 = yyv1[:yyj1]
  15561. yyc1 = true
  15562. } else if yyj1 == 0 && yyv1 == nil {
  15563. yyv1 = make([]wrapBytes, 0)
  15564. yyc1 = true
  15565. }
  15566. }
  15567. yyh1.End()
  15568. if yyc1 {
  15569. *v = yyv1
  15570. }
  15571. }
  15572. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  15573. var h codecSelfer19780
  15574. z, r := GenHelperEncoder(e)
  15575. _, _, _ = h, z, r
  15576. r.WriteArrayStart(len(v))
  15577. for _, yyv1 := range v {
  15578. r.WriteArrayElem()
  15579. yyv1.CodecEncodeSelf(e)
  15580. }
  15581. r.WriteArrayEnd()
  15582. }
  15583. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  15584. var h codecSelfer19780
  15585. z, r := GenHelperDecoder(d)
  15586. _, _, _ = h, z, r
  15587. yyv1 := *v
  15588. yyh1, yyl1 := z.DecSliceHelperStart()
  15589. var yyc1 bool
  15590. _ = yyc1
  15591. if yyl1 == 0 {
  15592. if yyv1 == nil {
  15593. yyv1 = []wrapUint8{}
  15594. yyc1 = true
  15595. } else if len(yyv1) != 0 {
  15596. yyv1 = yyv1[:0]
  15597. yyc1 = true
  15598. }
  15599. } else {
  15600. yyhl1 := yyl1 > 0
  15601. var yyrl1 int
  15602. _ = yyrl1
  15603. if yyhl1 {
  15604. if yyl1 > cap(yyv1) {
  15605. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15606. if yyrl1 <= cap(yyv1) {
  15607. yyv1 = yyv1[:yyrl1]
  15608. } else {
  15609. yyv1 = make([]wrapUint8, yyrl1)
  15610. }
  15611. yyc1 = true
  15612. } else if yyl1 != len(yyv1) {
  15613. yyv1 = yyv1[:yyl1]
  15614. yyc1 = true
  15615. }
  15616. }
  15617. var yyj1 int
  15618. // var yydn1 bool
  15619. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15620. if yyj1 == 0 && yyv1 == nil {
  15621. if yyhl1 {
  15622. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15623. } else {
  15624. yyrl1 = 8
  15625. }
  15626. yyv1 = make([]wrapUint8, yyrl1)
  15627. yyc1 = true
  15628. }
  15629. yyh1.ElemContainerState(yyj1)
  15630. var yydb1 bool
  15631. if yyj1 >= len(yyv1) {
  15632. yyv1 = append(yyv1, 0)
  15633. yyc1 = true
  15634. }
  15635. if yydb1 {
  15636. z.DecSwallow()
  15637. } else {
  15638. if r.TryDecodeAsNil() {
  15639. yyv1[yyj1] = 0
  15640. } else {
  15641. yyv1[yyj1].CodecDecodeSelf(d)
  15642. }
  15643. }
  15644. }
  15645. if yyj1 < len(yyv1) {
  15646. yyv1 = yyv1[:yyj1]
  15647. yyc1 = true
  15648. } else if yyj1 == 0 && yyv1 == nil {
  15649. yyv1 = make([]wrapUint8, 0)
  15650. yyc1 = true
  15651. }
  15652. }
  15653. yyh1.End()
  15654. if yyc1 {
  15655. *v = yyv1
  15656. }
  15657. }
  15658. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  15659. var h codecSelfer19780
  15660. z, r := GenHelperEncoder(e)
  15661. _, _, _ = h, z, r
  15662. r.WriteArrayStart(len(v))
  15663. for _, yyv1 := range v {
  15664. r.WriteArrayElem()
  15665. yy2 := &yyv1
  15666. yy2.CodecEncodeSelf(e)
  15667. }
  15668. r.WriteArrayEnd()
  15669. }
  15670. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  15671. var h codecSelfer19780
  15672. z, r := GenHelperDecoder(d)
  15673. _, _, _ = h, z, r
  15674. yyv1 := v
  15675. yyh1, yyl1 := z.DecSliceHelperStart()
  15676. if yyl1 == 0 {
  15677. } else {
  15678. yyhl1 := yyl1 > 0
  15679. var yyrl1 int
  15680. _ = yyrl1
  15681. var yyj1 int
  15682. // var yydn1 bool
  15683. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15684. yyh1.ElemContainerState(yyj1)
  15685. var yydb1 bool
  15686. if yyj1 >= len(yyv1) {
  15687. z.DecArrayCannotExpand(len(v), yyj1+1)
  15688. yydb1 = true
  15689. }
  15690. if yydb1 {
  15691. z.DecSwallow()
  15692. } else {
  15693. if r.TryDecodeAsNil() {
  15694. yyv1[yyj1] = stringUint64T{}
  15695. } else {
  15696. yyv1[yyj1].CodecDecodeSelf(d)
  15697. }
  15698. }
  15699. }
  15700. }
  15701. yyh1.End()
  15702. }
  15703. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  15704. var h codecSelfer19780
  15705. z, r := GenHelperEncoder(e)
  15706. _, _, _ = h, z, r
  15707. r.WriteArrayStart(len(v))
  15708. for _, yyv1 := range v {
  15709. r.WriteArrayElem()
  15710. if false {
  15711. } else {
  15712. r.EncodeUint(uint64(yyv1))
  15713. }
  15714. }
  15715. r.WriteArrayEnd()
  15716. }
  15717. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  15718. var h codecSelfer19780
  15719. z, r := GenHelperDecoder(d)
  15720. _, _, _ = h, z, r
  15721. yyv1 := v
  15722. yyh1, yyl1 := z.DecSliceHelperStart()
  15723. if yyl1 == 0 {
  15724. } else {
  15725. yyhl1 := yyl1 > 0
  15726. var yyrl1 int
  15727. _ = yyrl1
  15728. var yyj1 int
  15729. // var yydn1 bool
  15730. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15731. yyh1.ElemContainerState(yyj1)
  15732. var yydb1 bool
  15733. if yyj1 >= len(yyv1) {
  15734. z.DecArrayCannotExpand(len(v), yyj1+1)
  15735. yydb1 = true
  15736. }
  15737. if yydb1 {
  15738. z.DecSwallow()
  15739. } else {
  15740. if r.TryDecodeAsNil() {
  15741. yyv1[yyj1] = 0
  15742. } else {
  15743. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  15744. }
  15745. }
  15746. }
  15747. }
  15748. yyh1.End()
  15749. }
  15750. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  15751. var h codecSelfer19780
  15752. z, r := GenHelperEncoder(e)
  15753. _, _, _ = h, z, r
  15754. r.WriteArrayStart(len(v))
  15755. for _, yyv1 := range v {
  15756. r.WriteArrayElem()
  15757. if yyv1 == nil {
  15758. r.EncodeNil()
  15759. } else {
  15760. if false {
  15761. } else {
  15762. h.encArray4uint64((*[4]uint64)(yyv1), e)
  15763. }
  15764. }
  15765. }
  15766. r.WriteArrayEnd()
  15767. }
  15768. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  15769. var h codecSelfer19780
  15770. z, r := GenHelperDecoder(d)
  15771. _, _, _ = h, z, r
  15772. yyv1 := *v
  15773. yyh1, yyl1 := z.DecSliceHelperStart()
  15774. var yyc1 bool
  15775. _ = yyc1
  15776. if yyl1 == 0 {
  15777. if yyv1 == nil {
  15778. yyv1 = []*[4]uint64{}
  15779. yyc1 = true
  15780. } else if len(yyv1) != 0 {
  15781. yyv1 = yyv1[:0]
  15782. yyc1 = true
  15783. }
  15784. } else {
  15785. yyhl1 := yyl1 > 0
  15786. var yyrl1 int
  15787. _ = yyrl1
  15788. if yyhl1 {
  15789. if yyl1 > cap(yyv1) {
  15790. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15791. if yyrl1 <= cap(yyv1) {
  15792. yyv1 = yyv1[:yyrl1]
  15793. } else {
  15794. yyv1 = make([]*[4]uint64, yyrl1)
  15795. }
  15796. yyc1 = true
  15797. } else if yyl1 != len(yyv1) {
  15798. yyv1 = yyv1[:yyl1]
  15799. yyc1 = true
  15800. }
  15801. }
  15802. var yyj1 int
  15803. // var yydn1 bool
  15804. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15805. if yyj1 == 0 && yyv1 == nil {
  15806. if yyhl1 {
  15807. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15808. } else {
  15809. yyrl1 = 8
  15810. }
  15811. yyv1 = make([]*[4]uint64, yyrl1)
  15812. yyc1 = true
  15813. }
  15814. yyh1.ElemContainerState(yyj1)
  15815. var yydb1 bool
  15816. if yyj1 >= len(yyv1) {
  15817. yyv1 = append(yyv1, nil)
  15818. yyc1 = true
  15819. }
  15820. if yydb1 {
  15821. z.DecSwallow()
  15822. } else {
  15823. if r.TryDecodeAsNil() {
  15824. yyv1[yyj1] = nil
  15825. } else {
  15826. if yyv1[yyj1] == nil {
  15827. yyv1[yyj1] = new([4]uint64)
  15828. }
  15829. if false {
  15830. } else {
  15831. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  15832. }
  15833. }
  15834. }
  15835. }
  15836. if yyj1 < len(yyv1) {
  15837. yyv1 = yyv1[:yyj1]
  15838. yyc1 = true
  15839. } else if yyj1 == 0 && yyv1 == nil {
  15840. yyv1 = make([]*[4]uint64, 0)
  15841. yyc1 = true
  15842. }
  15843. }
  15844. yyh1.End()
  15845. if yyc1 {
  15846. *v = yyv1
  15847. }
  15848. }
  15849. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  15850. var h codecSelfer19780
  15851. z, r := GenHelperEncoder(e)
  15852. _, _, _ = h, z, r
  15853. r.WriteMapStart(len(v))
  15854. for yyk1, yyv1 := range v {
  15855. r.WriteMapElemKey()
  15856. if false {
  15857. } else {
  15858. if z.EncBasicHandle().StringToRaw {
  15859. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15860. } else {
  15861. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15862. }
  15863. }
  15864. r.WriteMapElemValue()
  15865. if yyv1 == nil {
  15866. r.EncodeNil()
  15867. } else {
  15868. yyv1.CodecEncodeSelf(e)
  15869. }
  15870. }
  15871. r.WriteMapEnd()
  15872. }
  15873. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  15874. var h codecSelfer19780
  15875. z, r := GenHelperDecoder(d)
  15876. _, _, _ = h, z, r
  15877. yyv1 := *v
  15878. yyl1 := r.ReadMapStart()
  15879. yybh1 := z.DecBasicHandle()
  15880. if yyv1 == nil {
  15881. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  15882. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  15883. *v = yyv1
  15884. }
  15885. var yymk1 string
  15886. var yymv1 *TestStrucFlex
  15887. var yymg1, yymdn1, yyms1, yymok1 bool
  15888. if yybh1.MapValueReset {
  15889. yymg1 = true
  15890. }
  15891. if yyl1 != 0 {
  15892. yyhl1 := yyl1 > 0
  15893. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15894. r.ReadMapElemKey()
  15895. if r.TryDecodeAsNil() {
  15896. yymk1 = ""
  15897. } else {
  15898. yymk1 = (string)(r.DecodeString())
  15899. }
  15900. yyms1 = true
  15901. if yymg1 {
  15902. yymv1, yymok1 = yyv1[yymk1]
  15903. if yymok1 {
  15904. yyms1 = false
  15905. }
  15906. } else {
  15907. yymv1 = nil
  15908. }
  15909. r.ReadMapElemValue()
  15910. yymdn1 = false
  15911. if r.TryDecodeAsNil() {
  15912. yymdn1 = true
  15913. } else {
  15914. if yymv1 == nil {
  15915. yymv1 = new(TestStrucFlex)
  15916. }
  15917. yymv1.CodecDecodeSelf(d)
  15918. }
  15919. if yymdn1 {
  15920. if yybh1.DeleteOnNilMapValue {
  15921. delete(yyv1, yymk1)
  15922. } else {
  15923. yyv1[yymk1] = nil
  15924. }
  15925. } else if yyms1 && yyv1 != nil {
  15926. yyv1[yymk1] = yymv1
  15927. }
  15928. }
  15929. } // else len==0: TODO: Should we clear map entries?
  15930. r.ReadMapEnd()
  15931. }
  15932. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  15933. var h codecSelfer19780
  15934. z, r := GenHelperEncoder(e)
  15935. _, _, _ = h, z, r
  15936. r.WriteMapStart(len(v))
  15937. for yyk1, yyv1 := range v {
  15938. r.WriteMapElemKey()
  15939. if false {
  15940. } else {
  15941. if z.EncBasicHandle().StringToRaw {
  15942. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15943. } else {
  15944. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15945. }
  15946. }
  15947. r.WriteMapElemValue()
  15948. yy3 := &yyv1
  15949. yy3.CodecEncodeSelf(e)
  15950. }
  15951. r.WriteMapEnd()
  15952. }
  15953. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  15954. var h codecSelfer19780
  15955. z, r := GenHelperDecoder(d)
  15956. _, _, _ = h, z, r
  15957. yyv1 := *v
  15958. yyl1 := r.ReadMapStart()
  15959. yybh1 := z.DecBasicHandle()
  15960. if yyv1 == nil {
  15961. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1488)
  15962. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  15963. *v = yyv1
  15964. }
  15965. var yymk1 string
  15966. var yymv1 TestStrucFlex
  15967. var yymg1, yymdn1 bool
  15968. if yybh1.MapValueReset {
  15969. yymg1 = true
  15970. }
  15971. if yyl1 != 0 {
  15972. yyhl1 := yyl1 > 0
  15973. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15974. r.ReadMapElemKey()
  15975. if r.TryDecodeAsNil() {
  15976. yymk1 = ""
  15977. } else {
  15978. yymk1 = (string)(r.DecodeString())
  15979. }
  15980. if yymg1 {
  15981. yymv1 = yyv1[yymk1]
  15982. } else {
  15983. yymv1 = TestStrucFlex{}
  15984. }
  15985. r.ReadMapElemValue()
  15986. yymdn1 = false
  15987. if r.TryDecodeAsNil() {
  15988. yymdn1 = true
  15989. } else {
  15990. yymv1.CodecDecodeSelf(d)
  15991. }
  15992. if yymdn1 {
  15993. if yybh1.DeleteOnNilMapValue {
  15994. delete(yyv1, yymk1)
  15995. } else {
  15996. yyv1[yymk1] = TestStrucFlex{}
  15997. }
  15998. } else if yyv1 != nil {
  15999. yyv1[yymk1] = yymv1
  16000. }
  16001. }
  16002. } // else len==0: TODO: Should we clear map entries?
  16003. r.ReadMapEnd()
  16004. }
  16005. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  16006. var h codecSelfer19780
  16007. z, r := GenHelperEncoder(e)
  16008. _, _, _ = h, z, r
  16009. r.WriteArrayStart(len(v))
  16010. for _, yyv1 := range v {
  16011. r.WriteArrayElem()
  16012. if yyv1 == nil {
  16013. r.EncodeNil()
  16014. } else {
  16015. yyv1.CodecEncodeSelf(e)
  16016. }
  16017. }
  16018. r.WriteArrayEnd()
  16019. }
  16020. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  16021. var h codecSelfer19780
  16022. z, r := GenHelperDecoder(d)
  16023. _, _, _ = h, z, r
  16024. yyv1 := *v
  16025. yyh1, yyl1 := z.DecSliceHelperStart()
  16026. var yyc1 bool
  16027. _ = yyc1
  16028. if yyl1 == 0 {
  16029. if yyv1 == nil {
  16030. yyv1 = []*TestStrucFlex{}
  16031. yyc1 = true
  16032. } else if len(yyv1) != 0 {
  16033. yyv1 = yyv1[:0]
  16034. yyc1 = true
  16035. }
  16036. } else {
  16037. yyhl1 := yyl1 > 0
  16038. var yyrl1 int
  16039. _ = yyrl1
  16040. if yyhl1 {
  16041. if yyl1 > cap(yyv1) {
  16042. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16043. if yyrl1 <= cap(yyv1) {
  16044. yyv1 = yyv1[:yyrl1]
  16045. } else {
  16046. yyv1 = make([]*TestStrucFlex, yyrl1)
  16047. }
  16048. yyc1 = true
  16049. } else if yyl1 != len(yyv1) {
  16050. yyv1 = yyv1[:yyl1]
  16051. yyc1 = true
  16052. }
  16053. }
  16054. var yyj1 int
  16055. // var yydn1 bool
  16056. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16057. if yyj1 == 0 && yyv1 == nil {
  16058. if yyhl1 {
  16059. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16060. } else {
  16061. yyrl1 = 8
  16062. }
  16063. yyv1 = make([]*TestStrucFlex, yyrl1)
  16064. yyc1 = true
  16065. }
  16066. yyh1.ElemContainerState(yyj1)
  16067. var yydb1 bool
  16068. if yyj1 >= len(yyv1) {
  16069. yyv1 = append(yyv1, nil)
  16070. yyc1 = true
  16071. }
  16072. if yydb1 {
  16073. z.DecSwallow()
  16074. } else {
  16075. if r.TryDecodeAsNil() {
  16076. yyv1[yyj1] = nil
  16077. } else {
  16078. if yyv1[yyj1] == nil {
  16079. yyv1[yyj1] = new(TestStrucFlex)
  16080. }
  16081. yyv1[yyj1].CodecDecodeSelf(d)
  16082. }
  16083. }
  16084. }
  16085. if yyj1 < len(yyv1) {
  16086. yyv1 = yyv1[:yyj1]
  16087. yyc1 = true
  16088. } else if yyj1 == 0 && yyv1 == nil {
  16089. yyv1 = make([]*TestStrucFlex, 0)
  16090. yyc1 = true
  16091. }
  16092. }
  16093. yyh1.End()
  16094. if yyc1 {
  16095. *v = yyv1
  16096. }
  16097. }