values_codecgen_generated_test.go 312 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477
  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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  945. }
  946. }
  947. case "AMSU16E":
  948. if r.TryDecodeAsNil() {
  949. x.AMSU16E = nil
  950. } else {
  951. if false {
  952. } else {
  953. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.encMapstringuint16((map[string]uint16)(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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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. h.decMapstringuint16((*map[string]uint16)(&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) encMapstringuint16(v map[string]uint16, e *Encoder) {
  14409. var h codecSelfer19780
  14410. z, r := GenHelperEncoder(e)
  14411. _, _, _ = h, z, r
  14412. r.WriteMapStart(len(v))
  14413. for yyk1, yyv1 := range v {
  14414. r.WriteMapElemKey()
  14415. if false {
  14416. } else {
  14417. if z.EncBasicHandle().StringToRaw {
  14418. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14419. } else {
  14420. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14421. }
  14422. }
  14423. r.WriteMapElemValue()
  14424. if false {
  14425. } else {
  14426. r.EncodeUint(uint64(yyv1))
  14427. }
  14428. }
  14429. r.WriteMapEnd()
  14430. }
  14431. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  14432. var h codecSelfer19780
  14433. z, r := GenHelperDecoder(d)
  14434. _, _, _ = h, z, r
  14435. yyv1 := *v
  14436. yyl1 := r.ReadMapStart()
  14437. yybh1 := z.DecBasicHandle()
  14438. if yyv1 == nil {
  14439. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  14440. yyv1 = make(map[string]uint16, yyrl1)
  14441. *v = yyv1
  14442. }
  14443. var yymk1 string
  14444. var yymv1 uint16
  14445. var yymg1, yymdn1 bool
  14446. if yybh1.MapValueReset {
  14447. }
  14448. if yyl1 != 0 {
  14449. yyhl1 := yyl1 > 0
  14450. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14451. r.ReadMapElemKey()
  14452. if r.TryDecodeAsNil() {
  14453. yymk1 = ""
  14454. } else {
  14455. yymk1 = (string)(r.DecodeString())
  14456. }
  14457. if yymg1 {
  14458. yymv1 = yyv1[yymk1]
  14459. }
  14460. r.ReadMapElemValue()
  14461. yymdn1 = false
  14462. if r.TryDecodeAsNil() {
  14463. yymdn1 = true
  14464. } else {
  14465. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  14466. }
  14467. if yymdn1 {
  14468. if yybh1.DeleteOnNilMapValue {
  14469. delete(yyv1, yymk1)
  14470. } else {
  14471. yyv1[yymk1] = 0
  14472. }
  14473. } else if yyv1 != nil {
  14474. yyv1[yymk1] = yymv1
  14475. }
  14476. }
  14477. } // else len==0: TODO: Should we clear map entries?
  14478. r.ReadMapEnd()
  14479. }
  14480. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  14481. var h codecSelfer19780
  14482. z, r := GenHelperEncoder(e)
  14483. _, _, _ = h, z, r
  14484. r.WriteArrayStart(len(v))
  14485. for _, yyv1 := range v {
  14486. r.WriteArrayElem()
  14487. if false {
  14488. } else {
  14489. r.EncodeInt(int64(yyv1))
  14490. }
  14491. }
  14492. r.WriteArrayEnd()
  14493. }
  14494. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  14495. var h codecSelfer19780
  14496. z, r := GenHelperDecoder(d)
  14497. _, _, _ = h, z, r
  14498. yyv1 := v
  14499. yyh1, yyl1 := z.DecSliceHelperStart()
  14500. if yyl1 == 0 {
  14501. } else {
  14502. yyhl1 := yyl1 > 0
  14503. var yyrl1 int
  14504. _ = yyrl1
  14505. var yyj1 int
  14506. // var yydn1 bool
  14507. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14508. yyh1.ElemContainerState(yyj1)
  14509. var yydb1 bool
  14510. if yyj1 >= len(yyv1) {
  14511. z.DecArrayCannotExpand(len(v), yyj1+1)
  14512. yydb1 = true
  14513. }
  14514. if yydb1 {
  14515. z.DecSwallow()
  14516. } else {
  14517. if r.TryDecodeAsNil() {
  14518. yyv1[yyj1] = 0
  14519. } else {
  14520. yyv1[yyj1] = (int64)(r.DecodeInt64())
  14521. }
  14522. }
  14523. }
  14524. }
  14525. yyh1.End()
  14526. }
  14527. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  14528. var h codecSelfer19780
  14529. z, r := GenHelperEncoder(e)
  14530. _, _, _ = h, z, r
  14531. r.WriteArrayStart(len(v))
  14532. for _, yyv1 := range v {
  14533. r.WriteArrayElem()
  14534. if yyv1 == nil {
  14535. r.EncodeNil()
  14536. } else {
  14537. yy2 := *yyv1
  14538. if false {
  14539. } else {
  14540. r.EncodeInt(int64(yy2))
  14541. }
  14542. }
  14543. }
  14544. r.WriteArrayEnd()
  14545. }
  14546. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  14547. var h codecSelfer19780
  14548. z, r := GenHelperDecoder(d)
  14549. _, _, _ = h, z, r
  14550. yyv1 := *v
  14551. yyh1, yyl1 := z.DecSliceHelperStart()
  14552. var yyc1 bool
  14553. _ = yyc1
  14554. if yyl1 == 0 {
  14555. if yyv1 == nil {
  14556. yyv1 = []*int64{}
  14557. yyc1 = true
  14558. } else if len(yyv1) != 0 {
  14559. yyv1 = yyv1[:0]
  14560. yyc1 = true
  14561. }
  14562. } else {
  14563. yyhl1 := yyl1 > 0
  14564. var yyrl1 int
  14565. _ = yyrl1
  14566. if yyhl1 {
  14567. if yyl1 > cap(yyv1) {
  14568. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14569. if yyrl1 <= cap(yyv1) {
  14570. yyv1 = yyv1[:yyrl1]
  14571. } else {
  14572. yyv1 = make([]*int64, yyrl1)
  14573. }
  14574. yyc1 = true
  14575. } else if yyl1 != len(yyv1) {
  14576. yyv1 = yyv1[:yyl1]
  14577. yyc1 = true
  14578. }
  14579. }
  14580. var yyj1 int
  14581. // var yydn1 bool
  14582. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14583. if yyj1 == 0 && yyv1 == nil {
  14584. if yyhl1 {
  14585. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14586. } else {
  14587. yyrl1 = 8
  14588. }
  14589. yyv1 = make([]*int64, yyrl1)
  14590. yyc1 = true
  14591. }
  14592. yyh1.ElemContainerState(yyj1)
  14593. var yydb1 bool
  14594. if yyj1 >= len(yyv1) {
  14595. yyv1 = append(yyv1, nil)
  14596. yyc1 = true
  14597. }
  14598. if yydb1 {
  14599. z.DecSwallow()
  14600. } else {
  14601. if r.TryDecodeAsNil() {
  14602. yyv1[yyj1] = nil
  14603. } else {
  14604. if yyv1[yyj1] == nil {
  14605. yyv1[yyj1] = new(int64)
  14606. }
  14607. if false {
  14608. } else {
  14609. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  14610. }
  14611. }
  14612. }
  14613. }
  14614. if yyj1 < len(yyv1) {
  14615. yyv1 = yyv1[:yyj1]
  14616. yyc1 = true
  14617. } else if yyj1 == 0 && yyv1 == nil {
  14618. yyv1 = make([]*int64, 0)
  14619. yyc1 = true
  14620. }
  14621. }
  14622. yyh1.End()
  14623. if yyc1 {
  14624. *v = yyv1
  14625. }
  14626. }
  14627. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  14628. var h codecSelfer19780
  14629. z, r := GenHelperEncoder(e)
  14630. _, _, _ = h, z, r
  14631. r.WriteArrayStart(len(v))
  14632. for _, yyv1 := range v {
  14633. r.WriteArrayElem()
  14634. yy2 := &yyv1
  14635. yy2.CodecEncodeSelf(e)
  14636. }
  14637. r.WriteArrayEnd()
  14638. }
  14639. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  14640. var h codecSelfer19780
  14641. z, r := GenHelperDecoder(d)
  14642. _, _, _ = h, z, r
  14643. yyv1 := *v
  14644. yyh1, yyl1 := z.DecSliceHelperStart()
  14645. var yyc1 bool
  14646. _ = yyc1
  14647. if yyl1 == 0 {
  14648. if yyv1 == nil {
  14649. yyv1 = []stringUint64T{}
  14650. yyc1 = true
  14651. } else if len(yyv1) != 0 {
  14652. yyv1 = yyv1[:0]
  14653. yyc1 = true
  14654. }
  14655. } else {
  14656. yyhl1 := yyl1 > 0
  14657. var yyrl1 int
  14658. _ = yyrl1
  14659. if yyhl1 {
  14660. if yyl1 > cap(yyv1) {
  14661. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14662. if yyrl1 <= cap(yyv1) {
  14663. yyv1 = yyv1[:yyrl1]
  14664. } else {
  14665. yyv1 = make([]stringUint64T, yyrl1)
  14666. }
  14667. yyc1 = true
  14668. } else if yyl1 != len(yyv1) {
  14669. yyv1 = yyv1[:yyl1]
  14670. yyc1 = true
  14671. }
  14672. }
  14673. var yyj1 int
  14674. // var yydn1 bool
  14675. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14676. if yyj1 == 0 && yyv1 == nil {
  14677. if yyhl1 {
  14678. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14679. } else {
  14680. yyrl1 = 8
  14681. }
  14682. yyv1 = make([]stringUint64T, yyrl1)
  14683. yyc1 = true
  14684. }
  14685. yyh1.ElemContainerState(yyj1)
  14686. var yydb1 bool
  14687. if yyj1 >= len(yyv1) {
  14688. yyv1 = append(yyv1, stringUint64T{})
  14689. yyc1 = true
  14690. }
  14691. if yydb1 {
  14692. z.DecSwallow()
  14693. } else {
  14694. if r.TryDecodeAsNil() {
  14695. yyv1[yyj1] = stringUint64T{}
  14696. } else {
  14697. yyv1[yyj1].CodecDecodeSelf(d)
  14698. }
  14699. }
  14700. }
  14701. if yyj1 < len(yyv1) {
  14702. yyv1 = yyv1[:yyj1]
  14703. yyc1 = true
  14704. } else if yyj1 == 0 && yyv1 == nil {
  14705. yyv1 = make([]stringUint64T, 0)
  14706. yyc1 = true
  14707. }
  14708. }
  14709. yyh1.End()
  14710. if yyc1 {
  14711. *v = yyv1
  14712. }
  14713. }
  14714. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  14715. var h codecSelfer19780
  14716. z, r := GenHelperEncoder(e)
  14717. _, _, _ = h, z, r
  14718. r.WriteMapStart(len(v))
  14719. for yyk1, yyv1 := range v {
  14720. r.WriteMapElemKey()
  14721. if false {
  14722. } else {
  14723. if z.EncBasicHandle().StringToRaw {
  14724. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14725. } else {
  14726. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14727. }
  14728. }
  14729. r.WriteMapElemValue()
  14730. if yyv1 == nil {
  14731. r.EncodeNil()
  14732. } else {
  14733. yyv1.CodecEncodeSelf(e)
  14734. }
  14735. }
  14736. r.WriteMapEnd()
  14737. }
  14738. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  14739. var h codecSelfer19780
  14740. z, r := GenHelperDecoder(d)
  14741. _, _, _ = h, z, r
  14742. yyv1 := *v
  14743. yyl1 := r.ReadMapStart()
  14744. yybh1 := z.DecBasicHandle()
  14745. if yyv1 == nil {
  14746. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  14747. yyv1 = make(map[string]*TestStruc, yyrl1)
  14748. *v = yyv1
  14749. }
  14750. var yymk1 string
  14751. var yymv1 *TestStruc
  14752. var yymg1, yymdn1, yyms1, yymok1 bool
  14753. if yybh1.MapValueReset {
  14754. yymg1 = true
  14755. }
  14756. if yyl1 != 0 {
  14757. yyhl1 := yyl1 > 0
  14758. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14759. r.ReadMapElemKey()
  14760. if r.TryDecodeAsNil() {
  14761. yymk1 = ""
  14762. } else {
  14763. yymk1 = (string)(r.DecodeString())
  14764. }
  14765. yyms1 = true
  14766. if yymg1 {
  14767. yymv1, yymok1 = yyv1[yymk1]
  14768. if yymok1 {
  14769. yyms1 = false
  14770. }
  14771. } else {
  14772. yymv1 = nil
  14773. }
  14774. r.ReadMapElemValue()
  14775. yymdn1 = false
  14776. if r.TryDecodeAsNil() {
  14777. yymdn1 = true
  14778. } else {
  14779. if yymv1 == nil {
  14780. yymv1 = new(TestStruc)
  14781. }
  14782. yymv1.CodecDecodeSelf(d)
  14783. }
  14784. if yymdn1 {
  14785. if yybh1.DeleteOnNilMapValue {
  14786. delete(yyv1, yymk1)
  14787. } else {
  14788. yyv1[yymk1] = nil
  14789. }
  14790. } else if yyms1 && yyv1 != nil {
  14791. yyv1[yymk1] = yymv1
  14792. }
  14793. }
  14794. } // else len==0: TODO: Should we clear map entries?
  14795. r.ReadMapEnd()
  14796. }
  14797. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  14798. var h codecSelfer19780
  14799. z, r := GenHelperEncoder(e)
  14800. _, _, _ = h, z, r
  14801. r.WriteMapStart(len(v))
  14802. for yyk1, yyv1 := range v {
  14803. r.WriteMapElemKey()
  14804. if false {
  14805. } else {
  14806. if z.EncBasicHandle().StringToRaw {
  14807. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14808. } else {
  14809. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14810. }
  14811. }
  14812. r.WriteMapElemValue()
  14813. yy3 := &yyv1
  14814. yy3.CodecEncodeSelf(e)
  14815. }
  14816. r.WriteMapEnd()
  14817. }
  14818. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  14819. var h codecSelfer19780
  14820. z, r := GenHelperDecoder(d)
  14821. _, _, _ = h, z, r
  14822. yyv1 := *v
  14823. yyl1 := r.ReadMapStart()
  14824. yybh1 := z.DecBasicHandle()
  14825. if yyv1 == nil {
  14826. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1184)
  14827. yyv1 = make(map[string]TestStruc, yyrl1)
  14828. *v = yyv1
  14829. }
  14830. var yymk1 string
  14831. var yymv1 TestStruc
  14832. var yymg1, yymdn1 bool
  14833. if yybh1.MapValueReset {
  14834. yymg1 = true
  14835. }
  14836. if yyl1 != 0 {
  14837. yyhl1 := yyl1 > 0
  14838. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14839. r.ReadMapElemKey()
  14840. if r.TryDecodeAsNil() {
  14841. yymk1 = ""
  14842. } else {
  14843. yymk1 = (string)(r.DecodeString())
  14844. }
  14845. if yymg1 {
  14846. yymv1 = yyv1[yymk1]
  14847. } else {
  14848. yymv1 = TestStruc{}
  14849. }
  14850. r.ReadMapElemValue()
  14851. yymdn1 = false
  14852. if r.TryDecodeAsNil() {
  14853. yymdn1 = true
  14854. } else {
  14855. yymv1.CodecDecodeSelf(d)
  14856. }
  14857. if yymdn1 {
  14858. if yybh1.DeleteOnNilMapValue {
  14859. delete(yyv1, yymk1)
  14860. } else {
  14861. yyv1[yymk1] = TestStruc{}
  14862. }
  14863. } else if yyv1 != nil {
  14864. yyv1[yymk1] = yymv1
  14865. }
  14866. }
  14867. } // else len==0: TODO: Should we clear map entries?
  14868. r.ReadMapEnd()
  14869. }
  14870. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  14871. var h codecSelfer19780
  14872. z, r := GenHelperEncoder(e)
  14873. _, _, _ = h, z, r
  14874. r.WriteArrayStart(len(v))
  14875. for _, yyv1 := range v {
  14876. r.WriteArrayElem()
  14877. if yyv1 == nil {
  14878. r.EncodeNil()
  14879. } else {
  14880. yyv1.CodecEncodeSelf(e)
  14881. }
  14882. }
  14883. r.WriteArrayEnd()
  14884. }
  14885. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  14886. var h codecSelfer19780
  14887. z, r := GenHelperDecoder(d)
  14888. _, _, _ = h, z, r
  14889. yyv1 := *v
  14890. yyh1, yyl1 := z.DecSliceHelperStart()
  14891. var yyc1 bool
  14892. _ = yyc1
  14893. if yyl1 == 0 {
  14894. if yyv1 == nil {
  14895. yyv1 = []*TestStruc{}
  14896. yyc1 = true
  14897. } else if len(yyv1) != 0 {
  14898. yyv1 = yyv1[:0]
  14899. yyc1 = true
  14900. }
  14901. } else {
  14902. yyhl1 := yyl1 > 0
  14903. var yyrl1 int
  14904. _ = yyrl1
  14905. if yyhl1 {
  14906. if yyl1 > cap(yyv1) {
  14907. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14908. if yyrl1 <= cap(yyv1) {
  14909. yyv1 = yyv1[:yyrl1]
  14910. } else {
  14911. yyv1 = make([]*TestStruc, yyrl1)
  14912. }
  14913. yyc1 = true
  14914. } else if yyl1 != len(yyv1) {
  14915. yyv1 = yyv1[:yyl1]
  14916. yyc1 = true
  14917. }
  14918. }
  14919. var yyj1 int
  14920. // var yydn1 bool
  14921. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14922. if yyj1 == 0 && yyv1 == nil {
  14923. if yyhl1 {
  14924. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14925. } else {
  14926. yyrl1 = 8
  14927. }
  14928. yyv1 = make([]*TestStruc, yyrl1)
  14929. yyc1 = true
  14930. }
  14931. yyh1.ElemContainerState(yyj1)
  14932. var yydb1 bool
  14933. if yyj1 >= len(yyv1) {
  14934. yyv1 = append(yyv1, nil)
  14935. yyc1 = true
  14936. }
  14937. if yydb1 {
  14938. z.DecSwallow()
  14939. } else {
  14940. if r.TryDecodeAsNil() {
  14941. yyv1[yyj1] = nil
  14942. } else {
  14943. if yyv1[yyj1] == nil {
  14944. yyv1[yyj1] = new(TestStruc)
  14945. }
  14946. yyv1[yyj1].CodecDecodeSelf(d)
  14947. }
  14948. }
  14949. }
  14950. if yyj1 < len(yyv1) {
  14951. yyv1 = yyv1[:yyj1]
  14952. yyc1 = true
  14953. } else if yyj1 == 0 && yyv1 == nil {
  14954. yyv1 = make([]*TestStruc, 0)
  14955. yyc1 = true
  14956. }
  14957. }
  14958. yyh1.End()
  14959. if yyc1 {
  14960. *v = yyv1
  14961. }
  14962. }
  14963. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  14964. var h codecSelfer19780
  14965. z, r := GenHelperEncoder(e)
  14966. _, _, _ = h, z, r
  14967. r.WriteArrayStart(len(v))
  14968. for _, yyv1 := range v {
  14969. r.WriteArrayElem()
  14970. if false {
  14971. } else {
  14972. if z.EncBasicHandle().StringToRaw {
  14973. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14974. } else {
  14975. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14976. }
  14977. }
  14978. }
  14979. r.WriteArrayEnd()
  14980. }
  14981. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  14982. var h codecSelfer19780
  14983. z, r := GenHelperDecoder(d)
  14984. _, _, _ = h, z, r
  14985. yyv1 := v
  14986. yyh1, yyl1 := z.DecSliceHelperStart()
  14987. if yyl1 == 0 {
  14988. } else {
  14989. yyhl1 := yyl1 > 0
  14990. var yyrl1 int
  14991. _ = yyrl1
  14992. var yyj1 int
  14993. // var yydn1 bool
  14994. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14995. yyh1.ElemContainerState(yyj1)
  14996. var yydb1 bool
  14997. if yyj1 >= len(yyv1) {
  14998. z.DecArrayCannotExpand(len(v), yyj1+1)
  14999. yydb1 = true
  15000. }
  15001. if yydb1 {
  15002. z.DecSwallow()
  15003. } else {
  15004. if r.TryDecodeAsNil() {
  15005. yyv1[yyj1] = ""
  15006. } else {
  15007. yyv1[yyj1] = (string)(r.DecodeString())
  15008. }
  15009. }
  15010. }
  15011. }
  15012. yyh1.End()
  15013. }
  15014. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  15015. var h codecSelfer19780
  15016. z, r := GenHelperEncoder(e)
  15017. _, _, _ = h, z, r
  15018. r.EncodeStringBytesRaw([]byte(v))
  15019. }
  15020. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  15021. var h codecSelfer19780
  15022. z, r := GenHelperDecoder(d)
  15023. _, _, _ = h, z, r
  15024. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  15025. }
  15026. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  15027. var h codecSelfer19780
  15028. z, r := GenHelperEncoder(e)
  15029. _, _, _ = h, z, r
  15030. if v == nil {
  15031. r.EncodeNil()
  15032. } else {
  15033. var sch1 []string
  15034. Lsch1:
  15035. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  15036. case timeout1 == 0: // only consume available
  15037. for {
  15038. select {
  15039. case b1 := <-v:
  15040. sch1 = append(sch1, b1)
  15041. default:
  15042. break Lsch1
  15043. }
  15044. }
  15045. case timeout1 > 0: // consume until timeout
  15046. tt1 := time.NewTimer(timeout1)
  15047. for {
  15048. select {
  15049. case b1 := <-v:
  15050. sch1 = append(sch1, b1)
  15051. case <-tt1.C:
  15052. // close(tt.C)
  15053. break Lsch1
  15054. }
  15055. }
  15056. default: // consume until close
  15057. for b1 := range v {
  15058. sch1 = append(sch1, b1)
  15059. }
  15060. }
  15061. r.WriteArrayStart(len(sch1))
  15062. for _, yyv1 := range sch1 {
  15063. r.WriteArrayElem()
  15064. if false {
  15065. } else {
  15066. if z.EncBasicHandle().StringToRaw {
  15067. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15068. } else {
  15069. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15070. }
  15071. }
  15072. }
  15073. r.WriteArrayEnd()
  15074. }
  15075. }
  15076. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  15077. var h codecSelfer19780
  15078. z, r := GenHelperDecoder(d)
  15079. _, _, _ = h, z, r
  15080. yyv1 := *v
  15081. yyh1, yyl1 := z.DecSliceHelperStart()
  15082. var yyc1 bool
  15083. _ = yyc1
  15084. if yyl1 == 0 {
  15085. if yyv1 == nil {
  15086. yyv1 = make(chan string, 0)
  15087. yyc1 = true
  15088. }
  15089. } else {
  15090. yyhl1 := yyl1 > 0
  15091. var yyrl1 int
  15092. _ = yyrl1
  15093. var yyj1 int
  15094. // var yydn1 bool
  15095. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15096. if yyj1 == 0 && yyv1 == nil {
  15097. if yyhl1 {
  15098. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15099. } else {
  15100. yyrl1 = 64
  15101. }
  15102. yyv1 = make(chan string, yyrl1)
  15103. yyc1 = true
  15104. }
  15105. yyh1.ElemContainerState(yyj1)
  15106. var yyvcx1 string
  15107. if r.TryDecodeAsNil() {
  15108. yyvcx1 = ""
  15109. } else {
  15110. yyvcx1 = (string)(r.DecodeString())
  15111. }
  15112. yyv1 <- yyvcx1
  15113. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  15114. }
  15115. }
  15116. yyh1.End()
  15117. if yyc1 {
  15118. *v = yyv1
  15119. }
  15120. }
  15121. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  15122. var h codecSelfer19780
  15123. z, r := GenHelperEncoder(e)
  15124. _, _, _ = h, z, r
  15125. r.WriteMapStart(len(v))
  15126. for yyk1, yyv1 := range v {
  15127. r.WriteMapElemKey()
  15128. if false {
  15129. } else {
  15130. r.EncodeBool(bool(yyk1))
  15131. }
  15132. r.WriteMapElemValue()
  15133. yy3 := &yyv1
  15134. if false {
  15135. } else {
  15136. z.EncFallback(yy3)
  15137. }
  15138. }
  15139. r.WriteMapEnd()
  15140. }
  15141. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  15142. var h codecSelfer19780
  15143. z, r := GenHelperDecoder(d)
  15144. _, _, _ = h, z, r
  15145. yyv1 := *v
  15146. yyl1 := r.ReadMapStart()
  15147. yybh1 := z.DecBasicHandle()
  15148. if yyv1 == nil {
  15149. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  15150. yyv1 = make(map[bool]struct{}, yyrl1)
  15151. *v = yyv1
  15152. }
  15153. var yymk1 bool
  15154. var yymv1 struct{}
  15155. var yymg1, yymdn1 bool
  15156. if yybh1.MapValueReset {
  15157. yymg1 = true
  15158. }
  15159. if yyl1 != 0 {
  15160. yyhl1 := yyl1 > 0
  15161. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15162. r.ReadMapElemKey()
  15163. if r.TryDecodeAsNil() {
  15164. yymk1 = false
  15165. } else {
  15166. yymk1 = (bool)(r.DecodeBool())
  15167. }
  15168. if yymg1 {
  15169. yymv1 = yyv1[yymk1]
  15170. } else {
  15171. yymv1 = struct{}{}
  15172. }
  15173. r.ReadMapElemValue()
  15174. yymdn1 = false
  15175. if r.TryDecodeAsNil() {
  15176. yymdn1 = true
  15177. } else {
  15178. if false {
  15179. } else {
  15180. z.DecFallback(&yymv1, false)
  15181. }
  15182. }
  15183. if yymdn1 {
  15184. if yybh1.DeleteOnNilMapValue {
  15185. delete(yyv1, yymk1)
  15186. } else {
  15187. yyv1[yymk1] = struct{}{}
  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) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, 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.EncodeInt(int64(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) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, 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[int]wrapUint64Slice, yyrl1)
  15226. *v = yyv1
  15227. }
  15228. var yymk1 int
  15229. var yymv1 wrapUint64Slice
  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 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  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) encMapfloat64wrapStringSlice(v map[float64]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.EncodeFloat64(float64(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) decMapfloat64wrapStringSlice(v *map[float64]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, 32)
  15297. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  15298. *v = yyv1
  15299. }
  15300. var yymk1 float64
  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 = (float64)(r.DecodeFloat64())
  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) encMapfloat32wrapStringSlice(v map[float32]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.EncodeFloat32(float32(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) decMapfloat32wrapStringSlice(v *map[float32]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, 28)
  15369. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  15370. *v = yyv1
  15371. }
  15372. var yymk1 float32
  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 = (float32)(r.DecodeFloat32As64())
  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) encMapuint64wrapStringSlice(v map[uint64]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. if false {
  15420. } else {
  15421. r.EncodeUint(uint64(yyk1))
  15422. }
  15423. r.WriteMapElemValue()
  15424. if yyv1 == nil {
  15425. r.EncodeNil()
  15426. } else {
  15427. yyv1.CodecEncodeSelf(e)
  15428. }
  15429. }
  15430. r.WriteMapEnd()
  15431. }
  15432. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  15433. var h codecSelfer19780
  15434. z, r := GenHelperDecoder(d)
  15435. _, _, _ = h, z, r
  15436. yyv1 := *v
  15437. yyl1 := r.ReadMapStart()
  15438. yybh1 := z.DecBasicHandle()
  15439. if yyv1 == nil {
  15440. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15441. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  15442. *v = yyv1
  15443. }
  15444. var yymk1 uint64
  15445. var yymv1 wrapStringSlice
  15446. var yymg1, yymdn1 bool
  15447. if yybh1.MapValueReset {
  15448. yymg1 = true
  15449. }
  15450. if yyl1 != 0 {
  15451. yyhl1 := yyl1 > 0
  15452. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15453. r.ReadMapElemKey()
  15454. if r.TryDecodeAsNil() {
  15455. yymk1 = 0
  15456. } else {
  15457. yymk1 = (uint64)(r.DecodeUint64())
  15458. }
  15459. if yymg1 {
  15460. yymv1 = yyv1[yymk1]
  15461. } else {
  15462. yymv1 = nil
  15463. }
  15464. r.ReadMapElemValue()
  15465. yymdn1 = false
  15466. if r.TryDecodeAsNil() {
  15467. yymdn1 = true
  15468. } else {
  15469. yymv1.CodecDecodeSelf(d)
  15470. }
  15471. if yymdn1 {
  15472. if yybh1.DeleteOnNilMapValue {
  15473. delete(yyv1, yymk1)
  15474. } else {
  15475. yyv1[yymk1] = nil
  15476. }
  15477. } else if yyv1 != nil {
  15478. yyv1[yymk1] = yymv1
  15479. }
  15480. }
  15481. } // else len==0: TODO: Should we clear map entries?
  15482. r.ReadMapEnd()
  15483. }
  15484. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  15485. var h codecSelfer19780
  15486. z, r := GenHelperEncoder(e)
  15487. _, _, _ = h, z, r
  15488. r.WriteMapStart(len(v))
  15489. for yyk1, yyv1 := range v {
  15490. r.WriteMapElemKey()
  15491. yy2 := &yyk1
  15492. yy2.CodecEncodeSelf(e)
  15493. r.WriteMapElemValue()
  15494. if yyv1 == nil {
  15495. r.EncodeNil()
  15496. } else {
  15497. yyv1.CodecEncodeSelf(e)
  15498. }
  15499. }
  15500. r.WriteMapEnd()
  15501. }
  15502. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  15503. var h codecSelfer19780
  15504. z, r := GenHelperDecoder(d)
  15505. _, _, _ = h, z, r
  15506. yyv1 := *v
  15507. yyl1 := r.ReadMapStart()
  15508. yybh1 := z.DecBasicHandle()
  15509. if yyv1 == nil {
  15510. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  15511. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  15512. *v = yyv1
  15513. }
  15514. var yymk1 stringUint64T
  15515. var yymv1 wrapStringSlice
  15516. var yymg1, yymdn1 bool
  15517. if yybh1.MapValueReset {
  15518. yymg1 = true
  15519. }
  15520. if yyl1 != 0 {
  15521. yyhl1 := yyl1 > 0
  15522. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15523. r.ReadMapElemKey()
  15524. if r.TryDecodeAsNil() {
  15525. yymk1 = stringUint64T{}
  15526. } else {
  15527. yymk1.CodecDecodeSelf(d)
  15528. }
  15529. if yymg1 {
  15530. yymv1 = yyv1[yymk1]
  15531. } else {
  15532. yymv1 = nil
  15533. }
  15534. r.ReadMapElemValue()
  15535. yymdn1 = false
  15536. if r.TryDecodeAsNil() {
  15537. yymdn1 = true
  15538. } else {
  15539. yymv1.CodecDecodeSelf(d)
  15540. }
  15541. if yymdn1 {
  15542. if yybh1.DeleteOnNilMapValue {
  15543. delete(yyv1, yymk1)
  15544. } else {
  15545. yyv1[yymk1] = nil
  15546. }
  15547. } else if yyv1 != nil {
  15548. yyv1[yymk1] = yymv1
  15549. }
  15550. }
  15551. } // else len==0: TODO: Should we clear map entries?
  15552. r.ReadMapEnd()
  15553. }
  15554. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  15555. var h codecSelfer19780
  15556. z, r := GenHelperEncoder(e)
  15557. _, _, _ = h, z, r
  15558. r.WriteArrayStart(len(v))
  15559. for _, yyv1 := range v {
  15560. r.WriteArrayElem()
  15561. if yyv1 == nil {
  15562. r.EncodeNil()
  15563. } else {
  15564. yyv1.CodecEncodeSelf(e)
  15565. }
  15566. }
  15567. r.WriteArrayEnd()
  15568. }
  15569. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  15570. var h codecSelfer19780
  15571. z, r := GenHelperDecoder(d)
  15572. _, _, _ = h, z, r
  15573. yyv1 := *v
  15574. yyh1, yyl1 := z.DecSliceHelperStart()
  15575. var yyc1 bool
  15576. _ = yyc1
  15577. if yyl1 == 0 {
  15578. if yyv1 == nil {
  15579. yyv1 = []wrapBytes{}
  15580. yyc1 = true
  15581. } else if len(yyv1) != 0 {
  15582. yyv1 = yyv1[:0]
  15583. yyc1 = true
  15584. }
  15585. } else {
  15586. yyhl1 := yyl1 > 0
  15587. var yyrl1 int
  15588. _ = yyrl1
  15589. if yyhl1 {
  15590. if yyl1 > cap(yyv1) {
  15591. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15592. if yyrl1 <= cap(yyv1) {
  15593. yyv1 = yyv1[:yyrl1]
  15594. } else {
  15595. yyv1 = make([]wrapBytes, yyrl1)
  15596. }
  15597. yyc1 = true
  15598. } else if yyl1 != len(yyv1) {
  15599. yyv1 = yyv1[:yyl1]
  15600. yyc1 = true
  15601. }
  15602. }
  15603. var yyj1 int
  15604. // var yydn1 bool
  15605. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15606. if yyj1 == 0 && yyv1 == nil {
  15607. if yyhl1 {
  15608. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15609. } else {
  15610. yyrl1 = 8
  15611. }
  15612. yyv1 = make([]wrapBytes, yyrl1)
  15613. yyc1 = true
  15614. }
  15615. yyh1.ElemContainerState(yyj1)
  15616. var yydb1 bool
  15617. if yyj1 >= len(yyv1) {
  15618. yyv1 = append(yyv1, nil)
  15619. yyc1 = true
  15620. }
  15621. if yydb1 {
  15622. z.DecSwallow()
  15623. } else {
  15624. if r.TryDecodeAsNil() {
  15625. yyv1[yyj1] = nil
  15626. } else {
  15627. yyv1[yyj1].CodecDecodeSelf(d)
  15628. }
  15629. }
  15630. }
  15631. if yyj1 < len(yyv1) {
  15632. yyv1 = yyv1[:yyj1]
  15633. yyc1 = true
  15634. } else if yyj1 == 0 && yyv1 == nil {
  15635. yyv1 = make([]wrapBytes, 0)
  15636. yyc1 = true
  15637. }
  15638. }
  15639. yyh1.End()
  15640. if yyc1 {
  15641. *v = yyv1
  15642. }
  15643. }
  15644. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  15645. var h codecSelfer19780
  15646. z, r := GenHelperEncoder(e)
  15647. _, _, _ = h, z, r
  15648. r.WriteArrayStart(len(v))
  15649. for _, yyv1 := range v {
  15650. r.WriteArrayElem()
  15651. yyv1.CodecEncodeSelf(e)
  15652. }
  15653. r.WriteArrayEnd()
  15654. }
  15655. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  15656. var h codecSelfer19780
  15657. z, r := GenHelperDecoder(d)
  15658. _, _, _ = h, z, r
  15659. yyv1 := *v
  15660. yyh1, yyl1 := z.DecSliceHelperStart()
  15661. var yyc1 bool
  15662. _ = yyc1
  15663. if yyl1 == 0 {
  15664. if yyv1 == nil {
  15665. yyv1 = []wrapUint8{}
  15666. yyc1 = true
  15667. } else if len(yyv1) != 0 {
  15668. yyv1 = yyv1[:0]
  15669. yyc1 = true
  15670. }
  15671. } else {
  15672. yyhl1 := yyl1 > 0
  15673. var yyrl1 int
  15674. _ = yyrl1
  15675. if yyhl1 {
  15676. if yyl1 > cap(yyv1) {
  15677. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15678. if yyrl1 <= cap(yyv1) {
  15679. yyv1 = yyv1[:yyrl1]
  15680. } else {
  15681. yyv1 = make([]wrapUint8, yyrl1)
  15682. }
  15683. yyc1 = true
  15684. } else if yyl1 != len(yyv1) {
  15685. yyv1 = yyv1[:yyl1]
  15686. yyc1 = true
  15687. }
  15688. }
  15689. var yyj1 int
  15690. // var yydn1 bool
  15691. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15692. if yyj1 == 0 && yyv1 == nil {
  15693. if yyhl1 {
  15694. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15695. } else {
  15696. yyrl1 = 8
  15697. }
  15698. yyv1 = make([]wrapUint8, yyrl1)
  15699. yyc1 = true
  15700. }
  15701. yyh1.ElemContainerState(yyj1)
  15702. var yydb1 bool
  15703. if yyj1 >= len(yyv1) {
  15704. yyv1 = append(yyv1, 0)
  15705. yyc1 = true
  15706. }
  15707. if yydb1 {
  15708. z.DecSwallow()
  15709. } else {
  15710. if r.TryDecodeAsNil() {
  15711. yyv1[yyj1] = 0
  15712. } else {
  15713. yyv1[yyj1].CodecDecodeSelf(d)
  15714. }
  15715. }
  15716. }
  15717. if yyj1 < len(yyv1) {
  15718. yyv1 = yyv1[:yyj1]
  15719. yyc1 = true
  15720. } else if yyj1 == 0 && yyv1 == nil {
  15721. yyv1 = make([]wrapUint8, 0)
  15722. yyc1 = true
  15723. }
  15724. }
  15725. yyh1.End()
  15726. if yyc1 {
  15727. *v = yyv1
  15728. }
  15729. }
  15730. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  15731. var h codecSelfer19780
  15732. z, r := GenHelperEncoder(e)
  15733. _, _, _ = h, z, r
  15734. r.WriteArrayStart(len(v))
  15735. for _, yyv1 := range v {
  15736. r.WriteArrayElem()
  15737. yy2 := &yyv1
  15738. yy2.CodecEncodeSelf(e)
  15739. }
  15740. r.WriteArrayEnd()
  15741. }
  15742. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  15743. var h codecSelfer19780
  15744. z, r := GenHelperDecoder(d)
  15745. _, _, _ = h, z, r
  15746. yyv1 := v
  15747. yyh1, yyl1 := z.DecSliceHelperStart()
  15748. if yyl1 == 0 {
  15749. } else {
  15750. yyhl1 := yyl1 > 0
  15751. var yyrl1 int
  15752. _ = yyrl1
  15753. var yyj1 int
  15754. // var yydn1 bool
  15755. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15756. yyh1.ElemContainerState(yyj1)
  15757. var yydb1 bool
  15758. if yyj1 >= len(yyv1) {
  15759. z.DecArrayCannotExpand(len(v), yyj1+1)
  15760. yydb1 = true
  15761. }
  15762. if yydb1 {
  15763. z.DecSwallow()
  15764. } else {
  15765. if r.TryDecodeAsNil() {
  15766. yyv1[yyj1] = stringUint64T{}
  15767. } else {
  15768. yyv1[yyj1].CodecDecodeSelf(d)
  15769. }
  15770. }
  15771. }
  15772. }
  15773. yyh1.End()
  15774. }
  15775. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  15776. var h codecSelfer19780
  15777. z, r := GenHelperEncoder(e)
  15778. _, _, _ = h, z, r
  15779. r.WriteArrayStart(len(v))
  15780. for _, yyv1 := range v {
  15781. r.WriteArrayElem()
  15782. if false {
  15783. } else {
  15784. r.EncodeUint(uint64(yyv1))
  15785. }
  15786. }
  15787. r.WriteArrayEnd()
  15788. }
  15789. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  15790. var h codecSelfer19780
  15791. z, r := GenHelperDecoder(d)
  15792. _, _, _ = h, z, r
  15793. yyv1 := v
  15794. yyh1, yyl1 := z.DecSliceHelperStart()
  15795. if yyl1 == 0 {
  15796. } else {
  15797. yyhl1 := yyl1 > 0
  15798. var yyrl1 int
  15799. _ = yyrl1
  15800. var yyj1 int
  15801. // var yydn1 bool
  15802. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15803. yyh1.ElemContainerState(yyj1)
  15804. var yydb1 bool
  15805. if yyj1 >= len(yyv1) {
  15806. z.DecArrayCannotExpand(len(v), yyj1+1)
  15807. yydb1 = true
  15808. }
  15809. if yydb1 {
  15810. z.DecSwallow()
  15811. } else {
  15812. if r.TryDecodeAsNil() {
  15813. yyv1[yyj1] = 0
  15814. } else {
  15815. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  15816. }
  15817. }
  15818. }
  15819. }
  15820. yyh1.End()
  15821. }
  15822. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  15823. var h codecSelfer19780
  15824. z, r := GenHelperEncoder(e)
  15825. _, _, _ = h, z, r
  15826. r.WriteArrayStart(len(v))
  15827. for _, yyv1 := range v {
  15828. r.WriteArrayElem()
  15829. if yyv1 == nil {
  15830. r.EncodeNil()
  15831. } else {
  15832. if false {
  15833. } else {
  15834. h.encArray4uint64((*[4]uint64)(yyv1), e)
  15835. }
  15836. }
  15837. }
  15838. r.WriteArrayEnd()
  15839. }
  15840. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  15841. var h codecSelfer19780
  15842. z, r := GenHelperDecoder(d)
  15843. _, _, _ = h, z, r
  15844. yyv1 := *v
  15845. yyh1, yyl1 := z.DecSliceHelperStart()
  15846. var yyc1 bool
  15847. _ = yyc1
  15848. if yyl1 == 0 {
  15849. if yyv1 == nil {
  15850. yyv1 = []*[4]uint64{}
  15851. yyc1 = true
  15852. } else if len(yyv1) != 0 {
  15853. yyv1 = yyv1[:0]
  15854. yyc1 = true
  15855. }
  15856. } else {
  15857. yyhl1 := yyl1 > 0
  15858. var yyrl1 int
  15859. _ = yyrl1
  15860. if yyhl1 {
  15861. if yyl1 > cap(yyv1) {
  15862. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15863. if yyrl1 <= cap(yyv1) {
  15864. yyv1 = yyv1[:yyrl1]
  15865. } else {
  15866. yyv1 = make([]*[4]uint64, yyrl1)
  15867. }
  15868. yyc1 = true
  15869. } else if yyl1 != len(yyv1) {
  15870. yyv1 = yyv1[:yyl1]
  15871. yyc1 = true
  15872. }
  15873. }
  15874. var yyj1 int
  15875. // var yydn1 bool
  15876. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15877. if yyj1 == 0 && yyv1 == nil {
  15878. if yyhl1 {
  15879. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15880. } else {
  15881. yyrl1 = 8
  15882. }
  15883. yyv1 = make([]*[4]uint64, yyrl1)
  15884. yyc1 = true
  15885. }
  15886. yyh1.ElemContainerState(yyj1)
  15887. var yydb1 bool
  15888. if yyj1 >= len(yyv1) {
  15889. yyv1 = append(yyv1, nil)
  15890. yyc1 = true
  15891. }
  15892. if yydb1 {
  15893. z.DecSwallow()
  15894. } else {
  15895. if r.TryDecodeAsNil() {
  15896. yyv1[yyj1] = nil
  15897. } else {
  15898. if yyv1[yyj1] == nil {
  15899. yyv1[yyj1] = new([4]uint64)
  15900. }
  15901. if false {
  15902. } else {
  15903. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  15904. }
  15905. }
  15906. }
  15907. }
  15908. if yyj1 < len(yyv1) {
  15909. yyv1 = yyv1[:yyj1]
  15910. yyc1 = true
  15911. } else if yyj1 == 0 && yyv1 == nil {
  15912. yyv1 = make([]*[4]uint64, 0)
  15913. yyc1 = true
  15914. }
  15915. }
  15916. yyh1.End()
  15917. if yyc1 {
  15918. *v = yyv1
  15919. }
  15920. }
  15921. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  15922. var h codecSelfer19780
  15923. z, r := GenHelperEncoder(e)
  15924. _, _, _ = h, z, r
  15925. r.WriteMapStart(len(v))
  15926. for yyk1, yyv1 := range v {
  15927. r.WriteMapElemKey()
  15928. if false {
  15929. } else {
  15930. if z.EncBasicHandle().StringToRaw {
  15931. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15932. } else {
  15933. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15934. }
  15935. }
  15936. r.WriteMapElemValue()
  15937. if yyv1 == nil {
  15938. r.EncodeNil()
  15939. } else {
  15940. yyv1.CodecEncodeSelf(e)
  15941. }
  15942. }
  15943. r.WriteMapEnd()
  15944. }
  15945. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  15946. var h codecSelfer19780
  15947. z, r := GenHelperDecoder(d)
  15948. _, _, _ = h, z, r
  15949. yyv1 := *v
  15950. yyl1 := r.ReadMapStart()
  15951. yybh1 := z.DecBasicHandle()
  15952. if yyv1 == nil {
  15953. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  15954. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  15955. *v = yyv1
  15956. }
  15957. var yymk1 string
  15958. var yymv1 *TestStrucFlex
  15959. var yymg1, yymdn1, yyms1, yymok1 bool
  15960. if yybh1.MapValueReset {
  15961. yymg1 = true
  15962. }
  15963. if yyl1 != 0 {
  15964. yyhl1 := yyl1 > 0
  15965. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15966. r.ReadMapElemKey()
  15967. if r.TryDecodeAsNil() {
  15968. yymk1 = ""
  15969. } else {
  15970. yymk1 = (string)(r.DecodeString())
  15971. }
  15972. yyms1 = true
  15973. if yymg1 {
  15974. yymv1, yymok1 = yyv1[yymk1]
  15975. if yymok1 {
  15976. yyms1 = false
  15977. }
  15978. } else {
  15979. yymv1 = nil
  15980. }
  15981. r.ReadMapElemValue()
  15982. yymdn1 = false
  15983. if r.TryDecodeAsNil() {
  15984. yymdn1 = true
  15985. } else {
  15986. if yymv1 == nil {
  15987. yymv1 = new(TestStrucFlex)
  15988. }
  15989. yymv1.CodecDecodeSelf(d)
  15990. }
  15991. if yymdn1 {
  15992. if yybh1.DeleteOnNilMapValue {
  15993. delete(yyv1, yymk1)
  15994. } else {
  15995. yyv1[yymk1] = nil
  15996. }
  15997. } else if yyms1 && yyv1 != nil {
  15998. yyv1[yymk1] = yymv1
  15999. }
  16000. }
  16001. } // else len==0: TODO: Should we clear map entries?
  16002. r.ReadMapEnd()
  16003. }
  16004. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  16005. var h codecSelfer19780
  16006. z, r := GenHelperEncoder(e)
  16007. _, _, _ = h, z, r
  16008. r.WriteMapStart(len(v))
  16009. for yyk1, yyv1 := range v {
  16010. r.WriteMapElemKey()
  16011. if false {
  16012. } else {
  16013. if z.EncBasicHandle().StringToRaw {
  16014. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16015. } else {
  16016. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16017. }
  16018. }
  16019. r.WriteMapElemValue()
  16020. yy3 := &yyv1
  16021. yy3.CodecEncodeSelf(e)
  16022. }
  16023. r.WriteMapEnd()
  16024. }
  16025. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  16026. var h codecSelfer19780
  16027. z, r := GenHelperDecoder(d)
  16028. _, _, _ = h, z, r
  16029. yyv1 := *v
  16030. yyl1 := r.ReadMapStart()
  16031. yybh1 := z.DecBasicHandle()
  16032. if yyv1 == nil {
  16033. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1488)
  16034. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  16035. *v = yyv1
  16036. }
  16037. var yymk1 string
  16038. var yymv1 TestStrucFlex
  16039. var yymg1, yymdn1 bool
  16040. if yybh1.MapValueReset {
  16041. yymg1 = true
  16042. }
  16043. if yyl1 != 0 {
  16044. yyhl1 := yyl1 > 0
  16045. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16046. r.ReadMapElemKey()
  16047. if r.TryDecodeAsNil() {
  16048. yymk1 = ""
  16049. } else {
  16050. yymk1 = (string)(r.DecodeString())
  16051. }
  16052. if yymg1 {
  16053. yymv1 = yyv1[yymk1]
  16054. } else {
  16055. yymv1 = TestStrucFlex{}
  16056. }
  16057. r.ReadMapElemValue()
  16058. yymdn1 = false
  16059. if r.TryDecodeAsNil() {
  16060. yymdn1 = true
  16061. } else {
  16062. yymv1.CodecDecodeSelf(d)
  16063. }
  16064. if yymdn1 {
  16065. if yybh1.DeleteOnNilMapValue {
  16066. delete(yyv1, yymk1)
  16067. } else {
  16068. yyv1[yymk1] = TestStrucFlex{}
  16069. }
  16070. } else if yyv1 != nil {
  16071. yyv1[yymk1] = yymv1
  16072. }
  16073. }
  16074. } // else len==0: TODO: Should we clear map entries?
  16075. r.ReadMapEnd()
  16076. }
  16077. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  16078. var h codecSelfer19780
  16079. z, r := GenHelperEncoder(e)
  16080. _, _, _ = h, z, r
  16081. r.WriteArrayStart(len(v))
  16082. for _, yyv1 := range v {
  16083. r.WriteArrayElem()
  16084. if yyv1 == nil {
  16085. r.EncodeNil()
  16086. } else {
  16087. yyv1.CodecEncodeSelf(e)
  16088. }
  16089. }
  16090. r.WriteArrayEnd()
  16091. }
  16092. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  16093. var h codecSelfer19780
  16094. z, r := GenHelperDecoder(d)
  16095. _, _, _ = h, z, r
  16096. yyv1 := *v
  16097. yyh1, yyl1 := z.DecSliceHelperStart()
  16098. var yyc1 bool
  16099. _ = yyc1
  16100. if yyl1 == 0 {
  16101. if yyv1 == nil {
  16102. yyv1 = []*TestStrucFlex{}
  16103. yyc1 = true
  16104. } else if len(yyv1) != 0 {
  16105. yyv1 = yyv1[:0]
  16106. yyc1 = true
  16107. }
  16108. } else {
  16109. yyhl1 := yyl1 > 0
  16110. var yyrl1 int
  16111. _ = yyrl1
  16112. if yyhl1 {
  16113. if yyl1 > cap(yyv1) {
  16114. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16115. if yyrl1 <= cap(yyv1) {
  16116. yyv1 = yyv1[:yyrl1]
  16117. } else {
  16118. yyv1 = make([]*TestStrucFlex, yyrl1)
  16119. }
  16120. yyc1 = true
  16121. } else if yyl1 != len(yyv1) {
  16122. yyv1 = yyv1[:yyl1]
  16123. yyc1 = true
  16124. }
  16125. }
  16126. var yyj1 int
  16127. // var yydn1 bool
  16128. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16129. if yyj1 == 0 && yyv1 == nil {
  16130. if yyhl1 {
  16131. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16132. } else {
  16133. yyrl1 = 8
  16134. }
  16135. yyv1 = make([]*TestStrucFlex, yyrl1)
  16136. yyc1 = true
  16137. }
  16138. yyh1.ElemContainerState(yyj1)
  16139. var yydb1 bool
  16140. if yyj1 >= len(yyv1) {
  16141. yyv1 = append(yyv1, nil)
  16142. yyc1 = true
  16143. }
  16144. if yydb1 {
  16145. z.DecSwallow()
  16146. } else {
  16147. if r.TryDecodeAsNil() {
  16148. yyv1[yyj1] = nil
  16149. } else {
  16150. if yyv1[yyj1] == nil {
  16151. yyv1[yyj1] = new(TestStrucFlex)
  16152. }
  16153. yyv1[yyj1].CodecDecodeSelf(d)
  16154. }
  16155. }
  16156. }
  16157. if yyj1 < len(yyv1) {
  16158. yyv1 = yyv1[:yyj1]
  16159. yyc1 = true
  16160. } else if yyj1 == 0 && yyv1 == nil {
  16161. yyv1 = make([]*TestStrucFlex, 0)
  16162. yyc1 = true
  16163. }
  16164. }
  16165. yyh1.End()
  16166. if yyc1 {
  16167. *v = yyv1
  16168. }
  16169. }