values_codecgen_generated_test.go 312 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479
  1. // +build codecgen generated
  2. // Code generated by codecgen - DO NOT EDIT.
  3. package codec
  4. import (
  5. "errors"
  6. "runtime"
  7. "strconv"
  8. "time"
  9. )
  10. const (
  11. // ----- content types ----
  12. codecSelferCcUTF819780 = 1
  13. codecSelferCcRAW19780 = 255
  14. // ----- value types used ----
  15. codecSelferValueTypeArray19780 = 10
  16. codecSelferValueTypeMap19780 = 9
  17. codecSelferValueTypeString19780 = 6
  18. codecSelferValueTypeInt19780 = 2
  19. codecSelferValueTypeUint19780 = 3
  20. codecSelferValueTypeFloat19780 = 4
  21. codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
  22. )
  23. var (
  24. errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
  25. )
  26. type codecSelfer19780 struct{}
  27. func codecSelfer19780False() bool { return false }
  28. func init() {
  29. if GenVersion != 10 {
  30. _, file, _, _ := runtime.Caller(0)
  31. panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(GenVersion), 10) + ". Re-generate file: " + file)
  32. }
  33. if false {
  34. var _ byte = 0 // reference the types, but skip this branch at build/run time
  35. var v0 time.Time
  36. _ = v0
  37. }
  38. }
  39. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  40. var h codecSelfer19780
  41. z, r := GenHelperEncoder(e)
  42. _, _, _ = h, z, r
  43. if x == nil {
  44. r.EncodeNil()
  45. } else {
  46. if false {
  47. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  48. z.EncExtension(x, yyxt1)
  49. } else {
  50. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  51. }
  52. }
  53. }
  54. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  55. var h codecSelfer19780
  56. z, r := GenHelperDecoder(d)
  57. _, _, _ = h, z, r
  58. if false {
  59. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  60. z.DecExtension(x, yyxt1)
  61. } else {
  62. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  63. }
  64. }
  65. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  66. var h codecSelfer19780
  67. z, r := GenHelperEncoder(e)
  68. _, _, _ = h, z, r
  69. if x == nil {
  70. r.EncodeNil()
  71. } else {
  72. if false {
  73. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  74. z.EncExtension(x, yyxt1)
  75. } else {
  76. h.encwrapSliceString((wrapSliceString)(x), e)
  77. }
  78. }
  79. }
  80. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  81. var h codecSelfer19780
  82. z, r := GenHelperDecoder(d)
  83. _, _, _ = h, z, r
  84. if false {
  85. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  86. z.DecExtension(x, yyxt1)
  87. } else {
  88. h.decwrapSliceString((*wrapSliceString)(x), d)
  89. }
  90. }
  91. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  92. var h codecSelfer19780
  93. z, r := GenHelperEncoder(e)
  94. _, _, _ = h, z, r
  95. if false {
  96. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  97. z.EncExtension(x, yyxt1)
  98. } else {
  99. r.EncodeUint(uint64(x))
  100. }
  101. }
  102. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  103. var h codecSelfer19780
  104. z, r := GenHelperDecoder(d)
  105. _, _, _ = h, z, r
  106. if false {
  107. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  108. z.DecExtension(x, yyxt1)
  109. } else {
  110. *x = (wrapUint64)(r.DecodeUint64())
  111. }
  112. }
  113. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  114. var h codecSelfer19780
  115. z, r := GenHelperEncoder(e)
  116. _, _, _ = h, z, r
  117. if false {
  118. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  119. z.EncExtension(x, yyxt1)
  120. } else {
  121. if z.EncBasicHandle().StringToRaw {
  122. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  123. } else {
  124. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  125. }
  126. }
  127. }
  128. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  129. var h codecSelfer19780
  130. z, r := GenHelperDecoder(d)
  131. _, _, _ = h, z, r
  132. if false {
  133. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  134. z.DecExtension(x, yyxt1)
  135. } else {
  136. *x = (wrapString)(r.DecodeString())
  137. }
  138. }
  139. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  140. var h codecSelfer19780
  141. z, r := GenHelperEncoder(e)
  142. _, _, _ = h, z, r
  143. if x == nil {
  144. r.EncodeNil()
  145. } else {
  146. if false {
  147. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  148. z.EncExtension(x, yyxt1)
  149. } else {
  150. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  151. }
  152. }
  153. }
  154. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  155. var h codecSelfer19780
  156. z, r := GenHelperDecoder(d)
  157. _, _, _ = h, z, r
  158. if false {
  159. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  160. z.DecExtension(x, yyxt1)
  161. } else {
  162. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  163. }
  164. }
  165. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  166. var h codecSelfer19780
  167. z, r := GenHelperEncoder(e)
  168. _, _, _ = h, z, r
  169. if x == nil {
  170. r.EncodeNil()
  171. } else {
  172. if false {
  173. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  174. z.EncExtension(x, yyxt1)
  175. } else {
  176. h.encwrapStringSlice((wrapStringSlice)(x), e)
  177. }
  178. }
  179. }
  180. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  181. var h codecSelfer19780
  182. z, r := GenHelperDecoder(d)
  183. _, _, _ = h, z, r
  184. if false {
  185. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  186. z.DecExtension(x, yyxt1)
  187. } else {
  188. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  189. }
  190. }
  191. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  192. var h codecSelfer19780
  193. z, r := GenHelperEncoder(e)
  194. _, _, _ = h, z, r
  195. if x == nil {
  196. r.EncodeNil()
  197. } else {
  198. if false {
  199. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  200. z.EncExtension(x, yyxt1)
  201. } else {
  202. yysep2 := !z.EncBinary()
  203. yy2arr2 := z.EncBasicHandle().StructToArray
  204. _, _ = yysep2, yy2arr2
  205. const yyr2 bool = false // struct tag has 'toArray'
  206. if yyr2 || yy2arr2 {
  207. r.WriteArrayStart(2)
  208. } else {
  209. r.WriteMapStart(2)
  210. }
  211. if yyr2 || yy2arr2 {
  212. r.WriteArrayElem()
  213. if false {
  214. } else {
  215. if z.EncBasicHandle().StringToRaw {
  216. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  217. } else {
  218. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  219. }
  220. }
  221. } else {
  222. r.WriteMapElemKey()
  223. if z.IsJSONHandle() {
  224. z.WriteStr("\"S\"")
  225. } else {
  226. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  227. }
  228. r.WriteMapElemValue()
  229. if false {
  230. } else {
  231. if z.EncBasicHandle().StringToRaw {
  232. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  233. } else {
  234. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  235. }
  236. }
  237. }
  238. if yyr2 || yy2arr2 {
  239. r.WriteArrayElem()
  240. if false {
  241. } else {
  242. r.EncodeUint(uint64(x.U))
  243. }
  244. } else {
  245. r.WriteMapElemKey()
  246. if z.IsJSONHandle() {
  247. z.WriteStr("\"U\"")
  248. } else {
  249. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  250. }
  251. r.WriteMapElemValue()
  252. if false {
  253. } else {
  254. r.EncodeUint(uint64(x.U))
  255. }
  256. }
  257. if yyr2 || yy2arr2 {
  258. r.WriteArrayEnd()
  259. } else {
  260. r.WriteMapEnd()
  261. }
  262. }
  263. }
  264. }
  265. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  266. var h codecSelfer19780
  267. z, r := GenHelperDecoder(d)
  268. _, _, _ = h, z, r
  269. if false {
  270. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  271. z.DecExtension(x, yyxt1)
  272. } else {
  273. yyct2 := r.ContainerType()
  274. if yyct2 == codecSelferValueTypeMap19780 {
  275. yyl2 := r.ReadMapStart()
  276. if yyl2 == 0 {
  277. r.ReadMapEnd()
  278. } else {
  279. x.codecDecodeSelfFromMap(yyl2, d)
  280. }
  281. } else if yyct2 == codecSelferValueTypeArray19780 {
  282. yyl2 := r.ReadArrayStart()
  283. if yyl2 == 0 {
  284. r.ReadArrayEnd()
  285. } else {
  286. x.codecDecodeSelfFromArray(yyl2, d)
  287. }
  288. } else {
  289. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  290. }
  291. }
  292. }
  293. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  294. var h codecSelfer19780
  295. z, r := GenHelperDecoder(d)
  296. _, _, _ = h, z, r
  297. var yyhl3 bool = l >= 0
  298. for yyj3 := 0; ; yyj3++ {
  299. if yyhl3 {
  300. if yyj3 >= l {
  301. break
  302. }
  303. } else {
  304. if r.CheckBreak() {
  305. break
  306. }
  307. }
  308. r.ReadMapElemKey()
  309. yys3 := z.StringView(r.DecodeStringAsBytes())
  310. r.ReadMapElemValue()
  311. switch yys3 {
  312. case "S":
  313. if r.TryDecodeAsNil() {
  314. x.S = ""
  315. } else {
  316. x.S = (string)(r.DecodeString())
  317. }
  318. case "U":
  319. if r.TryDecodeAsNil() {
  320. x.U = 0
  321. } else {
  322. x.U = (uint64)(r.DecodeUint64())
  323. }
  324. default:
  325. z.DecStructFieldNotFound(-1, yys3)
  326. } // end switch yys3
  327. } // end for yyj3
  328. r.ReadMapEnd()
  329. }
  330. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  331. var h codecSelfer19780
  332. z, r := GenHelperDecoder(d)
  333. _, _, _ = h, z, r
  334. var yyj6 int
  335. var yyb6 bool
  336. var yyhl6 bool = l >= 0
  337. yyj6++
  338. if yyhl6 {
  339. yyb6 = yyj6 > l
  340. } else {
  341. yyb6 = r.CheckBreak()
  342. }
  343. if yyb6 {
  344. r.ReadArrayEnd()
  345. return
  346. }
  347. r.ReadArrayElem()
  348. if r.TryDecodeAsNil() {
  349. x.S = ""
  350. } else {
  351. x.S = (string)(r.DecodeString())
  352. }
  353. yyj6++
  354. if yyhl6 {
  355. yyb6 = yyj6 > l
  356. } else {
  357. yyb6 = r.CheckBreak()
  358. }
  359. if yyb6 {
  360. r.ReadArrayEnd()
  361. return
  362. }
  363. r.ReadArrayElem()
  364. if r.TryDecodeAsNil() {
  365. x.U = 0
  366. } else {
  367. x.U = (uint64)(r.DecodeUint64())
  368. }
  369. for {
  370. yyj6++
  371. if yyhl6 {
  372. yyb6 = yyj6 > l
  373. } else {
  374. yyb6 = r.CheckBreak()
  375. }
  376. if yyb6 {
  377. break
  378. }
  379. r.ReadArrayElem()
  380. z.DecStructFieldNotFound(yyj6-1, "")
  381. }
  382. r.ReadArrayEnd()
  383. }
  384. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  385. var h codecSelfer19780
  386. z, r := GenHelperEncoder(e)
  387. _, _, _ = h, z, r
  388. if x == nil {
  389. r.EncodeNil()
  390. } else {
  391. if false {
  392. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  393. z.EncExtension(x, yyxt1)
  394. } else {
  395. yysep2 := !z.EncBinary()
  396. yy2arr2 := z.EncBasicHandle().StructToArray
  397. _, _ = yysep2, yy2arr2
  398. const yyr2 bool = false // struct tag has 'toArray'
  399. if yyr2 || yy2arr2 {
  400. r.WriteArrayStart(15)
  401. } else {
  402. r.WriteMapStart(15)
  403. }
  404. if yyr2 || yy2arr2 {
  405. r.WriteArrayElem()
  406. if false {
  407. } else {
  408. if z.EncBasicHandle().StringToRaw {
  409. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  410. } else {
  411. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  412. }
  413. }
  414. } else {
  415. r.WriteMapElemKey()
  416. if z.IsJSONHandle() {
  417. z.WriteStr("\"AS\"")
  418. } else {
  419. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  420. }
  421. r.WriteMapElemValue()
  422. if false {
  423. } else {
  424. if z.EncBasicHandle().StringToRaw {
  425. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  426. } else {
  427. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  428. }
  429. }
  430. }
  431. if yyr2 || yy2arr2 {
  432. r.WriteArrayElem()
  433. if false {
  434. } else {
  435. r.EncodeInt(int64(x.AI64))
  436. }
  437. } else {
  438. r.WriteMapElemKey()
  439. if z.IsJSONHandle() {
  440. z.WriteStr("\"AI64\"")
  441. } else {
  442. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  443. }
  444. r.WriteMapElemValue()
  445. if false {
  446. } else {
  447. r.EncodeInt(int64(x.AI64))
  448. }
  449. }
  450. if yyr2 || yy2arr2 {
  451. r.WriteArrayElem()
  452. if false {
  453. } else {
  454. r.EncodeInt(int64(x.AI16))
  455. }
  456. } else {
  457. r.WriteMapElemKey()
  458. if z.IsJSONHandle() {
  459. z.WriteStr("\"AI16\"")
  460. } else {
  461. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  462. }
  463. r.WriteMapElemValue()
  464. if false {
  465. } else {
  466. r.EncodeInt(int64(x.AI16))
  467. }
  468. }
  469. if yyr2 || yy2arr2 {
  470. r.WriteArrayElem()
  471. if false {
  472. } else {
  473. r.EncodeUint(uint64(x.AUi64))
  474. }
  475. } else {
  476. r.WriteMapElemKey()
  477. if z.IsJSONHandle() {
  478. z.WriteStr("\"AUi64\"")
  479. } else {
  480. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  481. }
  482. r.WriteMapElemValue()
  483. if false {
  484. } else {
  485. r.EncodeUint(uint64(x.AUi64))
  486. }
  487. }
  488. if yyr2 || yy2arr2 {
  489. r.WriteArrayElem()
  490. if x.ASslice == nil {
  491. r.EncodeNil()
  492. } else {
  493. if false {
  494. } else {
  495. z.F.EncSliceStringV(x.ASslice, e)
  496. }
  497. }
  498. } else {
  499. r.WriteMapElemKey()
  500. if z.IsJSONHandle() {
  501. z.WriteStr("\"ASslice\"")
  502. } else {
  503. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  504. }
  505. r.WriteMapElemValue()
  506. if x.ASslice == nil {
  507. r.EncodeNil()
  508. } else {
  509. if false {
  510. } else {
  511. z.F.EncSliceStringV(x.ASslice, e)
  512. }
  513. }
  514. }
  515. if yyr2 || yy2arr2 {
  516. r.WriteArrayElem()
  517. if x.AI64slice == nil {
  518. r.EncodeNil()
  519. } else {
  520. if false {
  521. } else {
  522. z.F.EncSliceInt64V(x.AI64slice, e)
  523. }
  524. }
  525. } else {
  526. r.WriteMapElemKey()
  527. if z.IsJSONHandle() {
  528. z.WriteStr("\"AI64slice\"")
  529. } else {
  530. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  531. }
  532. r.WriteMapElemValue()
  533. if x.AI64slice == nil {
  534. r.EncodeNil()
  535. } else {
  536. if false {
  537. } else {
  538. z.F.EncSliceInt64V(x.AI64slice, e)
  539. }
  540. }
  541. }
  542. if yyr2 || yy2arr2 {
  543. r.WriteArrayElem()
  544. if x.AUi64slice == nil {
  545. r.EncodeNil()
  546. } else {
  547. if false {
  548. } else {
  549. z.F.EncSliceUint64V(x.AUi64slice, e)
  550. }
  551. }
  552. } else {
  553. r.WriteMapElemKey()
  554. if z.IsJSONHandle() {
  555. z.WriteStr("\"AUi64slice\"")
  556. } else {
  557. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  558. }
  559. r.WriteMapElemValue()
  560. if x.AUi64slice == nil {
  561. r.EncodeNil()
  562. } else {
  563. if false {
  564. } else {
  565. z.F.EncSliceUint64V(x.AUi64slice, e)
  566. }
  567. }
  568. }
  569. if yyr2 || yy2arr2 {
  570. r.WriteArrayElem()
  571. if x.AF64slice == nil {
  572. r.EncodeNil()
  573. } else {
  574. if false {
  575. } else {
  576. z.F.EncSliceFloat64V(x.AF64slice, e)
  577. }
  578. }
  579. } else {
  580. r.WriteMapElemKey()
  581. if z.IsJSONHandle() {
  582. z.WriteStr("\"AF64slice\"")
  583. } else {
  584. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  585. }
  586. r.WriteMapElemValue()
  587. if x.AF64slice == nil {
  588. r.EncodeNil()
  589. } else {
  590. if false {
  591. } else {
  592. z.F.EncSliceFloat64V(x.AF64slice, e)
  593. }
  594. }
  595. }
  596. if yyr2 || yy2arr2 {
  597. r.WriteArrayElem()
  598. if x.AF32slice == nil {
  599. r.EncodeNil()
  600. } else {
  601. if false {
  602. } else {
  603. z.F.EncSliceFloat32V(x.AF32slice, e)
  604. }
  605. }
  606. } else {
  607. r.WriteMapElemKey()
  608. if z.IsJSONHandle() {
  609. z.WriteStr("\"AF32slice\"")
  610. } else {
  611. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  612. }
  613. r.WriteMapElemValue()
  614. if x.AF32slice == nil {
  615. r.EncodeNil()
  616. } else {
  617. if false {
  618. } else {
  619. z.F.EncSliceFloat32V(x.AF32slice, e)
  620. }
  621. }
  622. }
  623. if yyr2 || yy2arr2 {
  624. r.WriteArrayElem()
  625. if x.AMSU16 == nil {
  626. r.EncodeNil()
  627. } else {
  628. if false {
  629. } else {
  630. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  631. }
  632. }
  633. } else {
  634. r.WriteMapElemKey()
  635. if z.IsJSONHandle() {
  636. z.WriteStr("\"AMSU16\"")
  637. } else {
  638. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  639. }
  640. r.WriteMapElemValue()
  641. if x.AMSU16 == nil {
  642. r.EncodeNil()
  643. } else {
  644. if false {
  645. } else {
  646. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  647. }
  648. }
  649. }
  650. if yyr2 || yy2arr2 {
  651. r.WriteArrayElem()
  652. yy34 := &x.AI64arr0
  653. if false {
  654. } else {
  655. h.encArray0int64((*[0]int64)(yy34), e)
  656. }
  657. } else {
  658. r.WriteMapElemKey()
  659. if z.IsJSONHandle() {
  660. z.WriteStr("\"AI64arr0\"")
  661. } else {
  662. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  663. }
  664. r.WriteMapElemValue()
  665. yy36 := &x.AI64arr0
  666. if false {
  667. } else {
  668. h.encArray0int64((*[0]int64)(yy36), e)
  669. }
  670. }
  671. if yyr2 || yy2arr2 {
  672. r.WriteArrayElem()
  673. if x.A164slice0 == nil {
  674. r.EncodeNil()
  675. } else {
  676. if false {
  677. } else {
  678. z.F.EncSliceInt64V(x.A164slice0, e)
  679. }
  680. }
  681. } else {
  682. r.WriteMapElemKey()
  683. if z.IsJSONHandle() {
  684. z.WriteStr("\"A164slice0\"")
  685. } else {
  686. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  687. }
  688. r.WriteMapElemValue()
  689. if x.A164slice0 == nil {
  690. r.EncodeNil()
  691. } else {
  692. if false {
  693. } else {
  694. z.F.EncSliceInt64V(x.A164slice0, e)
  695. }
  696. }
  697. }
  698. if yyr2 || yy2arr2 {
  699. r.WriteArrayElem()
  700. if x.AUi64sliceN == nil {
  701. r.EncodeNil()
  702. } else {
  703. if false {
  704. } else {
  705. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  706. }
  707. }
  708. } else {
  709. r.WriteMapElemKey()
  710. if z.IsJSONHandle() {
  711. z.WriteStr("\"AUi64sliceN\"")
  712. } else {
  713. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  714. }
  715. r.WriteMapElemValue()
  716. if x.AUi64sliceN == nil {
  717. r.EncodeNil()
  718. } else {
  719. if false {
  720. } else {
  721. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  722. }
  723. }
  724. }
  725. if yyr2 || yy2arr2 {
  726. r.WriteArrayElem()
  727. if x.AMSU16N == nil {
  728. r.EncodeNil()
  729. } else {
  730. if false {
  731. } else {
  732. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  733. }
  734. }
  735. } else {
  736. r.WriteMapElemKey()
  737. if z.IsJSONHandle() {
  738. z.WriteStr("\"AMSU16N\"")
  739. } else {
  740. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  741. }
  742. r.WriteMapElemValue()
  743. if x.AMSU16N == nil {
  744. r.EncodeNil()
  745. } else {
  746. if false {
  747. } else {
  748. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  749. }
  750. }
  751. }
  752. if yyr2 || yy2arr2 {
  753. r.WriteArrayElem()
  754. if x.AMSU16E == nil {
  755. r.EncodeNil()
  756. } else {
  757. if false {
  758. } else {
  759. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  760. }
  761. }
  762. } else {
  763. r.WriteMapElemKey()
  764. if z.IsJSONHandle() {
  765. z.WriteStr("\"AMSU16E\"")
  766. } else {
  767. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  768. }
  769. r.WriteMapElemValue()
  770. if x.AMSU16E == nil {
  771. r.EncodeNil()
  772. } else {
  773. if false {
  774. } else {
  775. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  776. }
  777. }
  778. }
  779. if yyr2 || yy2arr2 {
  780. r.WriteArrayEnd()
  781. } else {
  782. r.WriteMapEnd()
  783. }
  784. }
  785. }
  786. }
  787. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  788. var h codecSelfer19780
  789. z, r := GenHelperDecoder(d)
  790. _, _, _ = h, z, r
  791. if false {
  792. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  793. z.DecExtension(x, yyxt1)
  794. } else {
  795. yyct2 := r.ContainerType()
  796. if yyct2 == codecSelferValueTypeMap19780 {
  797. yyl2 := r.ReadMapStart()
  798. if yyl2 == 0 {
  799. r.ReadMapEnd()
  800. } else {
  801. x.codecDecodeSelfFromMap(yyl2, d)
  802. }
  803. } else if yyct2 == codecSelferValueTypeArray19780 {
  804. yyl2 := r.ReadArrayStart()
  805. if yyl2 == 0 {
  806. r.ReadArrayEnd()
  807. } else {
  808. x.codecDecodeSelfFromArray(yyl2, d)
  809. }
  810. } else {
  811. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  812. }
  813. }
  814. }
  815. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  816. var h codecSelfer19780
  817. z, r := GenHelperDecoder(d)
  818. _, _, _ = h, z, r
  819. var yyhl3 bool = l >= 0
  820. for yyj3 := 0; ; yyj3++ {
  821. if yyhl3 {
  822. if yyj3 >= l {
  823. break
  824. }
  825. } else {
  826. if r.CheckBreak() {
  827. break
  828. }
  829. }
  830. r.ReadMapElemKey()
  831. yys3 := z.StringView(r.DecodeStringAsBytes())
  832. r.ReadMapElemValue()
  833. switch yys3 {
  834. case "AS":
  835. if r.TryDecodeAsNil() {
  836. x.AS = ""
  837. } else {
  838. x.AS = (string)(r.DecodeString())
  839. }
  840. case "AI64":
  841. if r.TryDecodeAsNil() {
  842. x.AI64 = 0
  843. } else {
  844. x.AI64 = (int64)(r.DecodeInt64())
  845. }
  846. case "AI16":
  847. if r.TryDecodeAsNil() {
  848. x.AI16 = 0
  849. } else {
  850. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  851. }
  852. case "AUi64":
  853. if r.TryDecodeAsNil() {
  854. x.AUi64 = 0
  855. } else {
  856. x.AUi64 = (uint64)(r.DecodeUint64())
  857. }
  858. case "ASslice":
  859. if r.TryDecodeAsNil() {
  860. x.ASslice = nil
  861. } else {
  862. if false {
  863. } else {
  864. z.F.DecSliceStringX(&x.ASslice, d)
  865. }
  866. }
  867. case "AI64slice":
  868. if r.TryDecodeAsNil() {
  869. x.AI64slice = nil
  870. } else {
  871. if false {
  872. } else {
  873. z.F.DecSliceInt64X(&x.AI64slice, d)
  874. }
  875. }
  876. case "AUi64slice":
  877. if r.TryDecodeAsNil() {
  878. x.AUi64slice = nil
  879. } else {
  880. if false {
  881. } else {
  882. z.F.DecSliceUint64X(&x.AUi64slice, d)
  883. }
  884. }
  885. case "AF64slice":
  886. if r.TryDecodeAsNil() {
  887. x.AF64slice = nil
  888. } else {
  889. if false {
  890. } else {
  891. z.F.DecSliceFloat64X(&x.AF64slice, d)
  892. }
  893. }
  894. case "AF32slice":
  895. if r.TryDecodeAsNil() {
  896. x.AF32slice = nil
  897. } else {
  898. if false {
  899. } else {
  900. z.F.DecSliceFloat32X(&x.AF32slice, d)
  901. }
  902. }
  903. case "AMSU16":
  904. if r.TryDecodeAsNil() {
  905. x.AMSU16 = nil
  906. } else {
  907. if false {
  908. } else {
  909. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  910. }
  911. }
  912. case "AI64arr0":
  913. if r.TryDecodeAsNil() {
  914. x.AI64arr0 = [0]int64{}
  915. } else {
  916. if false {
  917. } else {
  918. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  919. }
  920. }
  921. case "A164slice0":
  922. if r.TryDecodeAsNil() {
  923. x.A164slice0 = nil
  924. } else {
  925. if false {
  926. } else {
  927. z.F.DecSliceInt64X(&x.A164slice0, d)
  928. }
  929. }
  930. case "AUi64sliceN":
  931. if r.TryDecodeAsNil() {
  932. x.AUi64sliceN = nil
  933. } else {
  934. if false {
  935. } else {
  936. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  937. }
  938. }
  939. case "AMSU16N":
  940. if r.TryDecodeAsNil() {
  941. x.AMSU16N = nil
  942. } else {
  943. if false {
  944. } else {
  945. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  946. }
  947. }
  948. case "AMSU16E":
  949. if r.TryDecodeAsNil() {
  950. x.AMSU16E = nil
  951. } else {
  952. if false {
  953. } else {
  954. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  955. }
  956. }
  957. default:
  958. z.DecStructFieldNotFound(-1, yys3)
  959. } // end switch yys3
  960. } // end for yyj3
  961. r.ReadMapEnd()
  962. }
  963. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  964. var h codecSelfer19780
  965. z, r := GenHelperDecoder(d)
  966. _, _, _ = h, z, r
  967. var yyj30 int
  968. var yyb30 bool
  969. var yyhl30 bool = l >= 0
  970. yyj30++
  971. if yyhl30 {
  972. yyb30 = yyj30 > l
  973. } else {
  974. yyb30 = r.CheckBreak()
  975. }
  976. if yyb30 {
  977. r.ReadArrayEnd()
  978. return
  979. }
  980. r.ReadArrayElem()
  981. if r.TryDecodeAsNil() {
  982. x.AS = ""
  983. } else {
  984. x.AS = (string)(r.DecodeString())
  985. }
  986. yyj30++
  987. if yyhl30 {
  988. yyb30 = yyj30 > l
  989. } else {
  990. yyb30 = r.CheckBreak()
  991. }
  992. if yyb30 {
  993. r.ReadArrayEnd()
  994. return
  995. }
  996. r.ReadArrayElem()
  997. if r.TryDecodeAsNil() {
  998. x.AI64 = 0
  999. } else {
  1000. x.AI64 = (int64)(r.DecodeInt64())
  1001. }
  1002. yyj30++
  1003. if yyhl30 {
  1004. yyb30 = yyj30 > l
  1005. } else {
  1006. yyb30 = r.CheckBreak()
  1007. }
  1008. if yyb30 {
  1009. r.ReadArrayEnd()
  1010. return
  1011. }
  1012. r.ReadArrayElem()
  1013. if r.TryDecodeAsNil() {
  1014. x.AI16 = 0
  1015. } else {
  1016. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  1017. }
  1018. yyj30++
  1019. if yyhl30 {
  1020. yyb30 = yyj30 > l
  1021. } else {
  1022. yyb30 = r.CheckBreak()
  1023. }
  1024. if yyb30 {
  1025. r.ReadArrayEnd()
  1026. return
  1027. }
  1028. r.ReadArrayElem()
  1029. if r.TryDecodeAsNil() {
  1030. x.AUi64 = 0
  1031. } else {
  1032. x.AUi64 = (uint64)(r.DecodeUint64())
  1033. }
  1034. yyj30++
  1035. if yyhl30 {
  1036. yyb30 = yyj30 > l
  1037. } else {
  1038. yyb30 = r.CheckBreak()
  1039. }
  1040. if yyb30 {
  1041. r.ReadArrayEnd()
  1042. return
  1043. }
  1044. r.ReadArrayElem()
  1045. if r.TryDecodeAsNil() {
  1046. x.ASslice = nil
  1047. } else {
  1048. if false {
  1049. } else {
  1050. z.F.DecSliceStringX(&x.ASslice, d)
  1051. }
  1052. }
  1053. yyj30++
  1054. if yyhl30 {
  1055. yyb30 = yyj30 > l
  1056. } else {
  1057. yyb30 = r.CheckBreak()
  1058. }
  1059. if yyb30 {
  1060. r.ReadArrayEnd()
  1061. return
  1062. }
  1063. r.ReadArrayElem()
  1064. if r.TryDecodeAsNil() {
  1065. x.AI64slice = nil
  1066. } else {
  1067. if false {
  1068. } else {
  1069. z.F.DecSliceInt64X(&x.AI64slice, d)
  1070. }
  1071. }
  1072. yyj30++
  1073. if yyhl30 {
  1074. yyb30 = yyj30 > l
  1075. } else {
  1076. yyb30 = r.CheckBreak()
  1077. }
  1078. if yyb30 {
  1079. r.ReadArrayEnd()
  1080. return
  1081. }
  1082. r.ReadArrayElem()
  1083. if r.TryDecodeAsNil() {
  1084. x.AUi64slice = nil
  1085. } else {
  1086. if false {
  1087. } else {
  1088. z.F.DecSliceUint64X(&x.AUi64slice, d)
  1089. }
  1090. }
  1091. yyj30++
  1092. if yyhl30 {
  1093. yyb30 = yyj30 > l
  1094. } else {
  1095. yyb30 = r.CheckBreak()
  1096. }
  1097. if yyb30 {
  1098. r.ReadArrayEnd()
  1099. return
  1100. }
  1101. r.ReadArrayElem()
  1102. if r.TryDecodeAsNil() {
  1103. x.AF64slice = nil
  1104. } else {
  1105. if false {
  1106. } else {
  1107. z.F.DecSliceFloat64X(&x.AF64slice, d)
  1108. }
  1109. }
  1110. yyj30++
  1111. if yyhl30 {
  1112. yyb30 = yyj30 > l
  1113. } else {
  1114. yyb30 = r.CheckBreak()
  1115. }
  1116. if yyb30 {
  1117. r.ReadArrayEnd()
  1118. return
  1119. }
  1120. r.ReadArrayElem()
  1121. if r.TryDecodeAsNil() {
  1122. x.AF32slice = nil
  1123. } else {
  1124. if false {
  1125. } else {
  1126. z.F.DecSliceFloat32X(&x.AF32slice, d)
  1127. }
  1128. }
  1129. yyj30++
  1130. if yyhl30 {
  1131. yyb30 = yyj30 > l
  1132. } else {
  1133. yyb30 = r.CheckBreak()
  1134. }
  1135. if yyb30 {
  1136. r.ReadArrayEnd()
  1137. return
  1138. }
  1139. r.ReadArrayElem()
  1140. if r.TryDecodeAsNil() {
  1141. x.AMSU16 = nil
  1142. } else {
  1143. if false {
  1144. } else {
  1145. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  1146. }
  1147. }
  1148. yyj30++
  1149. if yyhl30 {
  1150. yyb30 = yyj30 > l
  1151. } else {
  1152. yyb30 = r.CheckBreak()
  1153. }
  1154. if yyb30 {
  1155. r.ReadArrayEnd()
  1156. return
  1157. }
  1158. r.ReadArrayElem()
  1159. if r.TryDecodeAsNil() {
  1160. x.AI64arr0 = [0]int64{}
  1161. } else {
  1162. if false {
  1163. } else {
  1164. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  1165. }
  1166. }
  1167. yyj30++
  1168. if yyhl30 {
  1169. yyb30 = yyj30 > l
  1170. } else {
  1171. yyb30 = r.CheckBreak()
  1172. }
  1173. if yyb30 {
  1174. r.ReadArrayEnd()
  1175. return
  1176. }
  1177. r.ReadArrayElem()
  1178. if r.TryDecodeAsNil() {
  1179. x.A164slice0 = nil
  1180. } else {
  1181. if false {
  1182. } else {
  1183. z.F.DecSliceInt64X(&x.A164slice0, d)
  1184. }
  1185. }
  1186. yyj30++
  1187. if yyhl30 {
  1188. yyb30 = yyj30 > l
  1189. } else {
  1190. yyb30 = r.CheckBreak()
  1191. }
  1192. if yyb30 {
  1193. r.ReadArrayEnd()
  1194. return
  1195. }
  1196. r.ReadArrayElem()
  1197. if r.TryDecodeAsNil() {
  1198. x.AUi64sliceN = nil
  1199. } else {
  1200. if false {
  1201. } else {
  1202. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  1203. }
  1204. }
  1205. yyj30++
  1206. if yyhl30 {
  1207. yyb30 = yyj30 > l
  1208. } else {
  1209. yyb30 = r.CheckBreak()
  1210. }
  1211. if yyb30 {
  1212. r.ReadArrayEnd()
  1213. return
  1214. }
  1215. r.ReadArrayElem()
  1216. if r.TryDecodeAsNil() {
  1217. x.AMSU16N = nil
  1218. } else {
  1219. if false {
  1220. } else {
  1221. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  1222. }
  1223. }
  1224. yyj30++
  1225. if yyhl30 {
  1226. yyb30 = yyj30 > l
  1227. } else {
  1228. yyb30 = r.CheckBreak()
  1229. }
  1230. if yyb30 {
  1231. r.ReadArrayEnd()
  1232. return
  1233. }
  1234. r.ReadArrayElem()
  1235. if r.TryDecodeAsNil() {
  1236. x.AMSU16E = nil
  1237. } else {
  1238. if false {
  1239. } else {
  1240. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  1241. }
  1242. }
  1243. for {
  1244. yyj30++
  1245. if yyhl30 {
  1246. yyb30 = yyj30 > l
  1247. } else {
  1248. yyb30 = r.CheckBreak()
  1249. }
  1250. if yyb30 {
  1251. break
  1252. }
  1253. r.ReadArrayElem()
  1254. z.DecStructFieldNotFound(yyj30-1, "")
  1255. }
  1256. r.ReadArrayEnd()
  1257. }
  1258. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  1259. var h codecSelfer19780
  1260. z, r := GenHelperEncoder(e)
  1261. _, _, _ = h, z, r
  1262. if x == nil {
  1263. r.EncodeNil()
  1264. } else {
  1265. if false {
  1266. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1267. z.EncExtension(x, yyxt1)
  1268. } else {
  1269. yysep2 := !z.EncBinary()
  1270. yy2arr2 := z.EncBasicHandle().StructToArray
  1271. _, _ = yysep2, yy2arr2
  1272. const yyr2 bool = false // struct tag has 'toArray'
  1273. if yyr2 || yy2arr2 {
  1274. r.WriteArrayStart(17)
  1275. } else {
  1276. r.WriteMapStart(17)
  1277. }
  1278. if yyr2 || yy2arr2 {
  1279. r.WriteArrayElem()
  1280. if false {
  1281. } else {
  1282. if z.EncBasicHandle().StringToRaw {
  1283. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1284. } else {
  1285. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1286. }
  1287. }
  1288. } else {
  1289. r.WriteMapElemKey()
  1290. if z.IsJSONHandle() {
  1291. z.WriteStr("\"S\"")
  1292. } else {
  1293. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1294. }
  1295. r.WriteMapElemValue()
  1296. if false {
  1297. } else {
  1298. if z.EncBasicHandle().StringToRaw {
  1299. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1300. } else {
  1301. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1302. }
  1303. }
  1304. }
  1305. if yyr2 || yy2arr2 {
  1306. r.WriteArrayElem()
  1307. if false {
  1308. } else {
  1309. r.EncodeInt(int64(x.I64))
  1310. }
  1311. } else {
  1312. r.WriteMapElemKey()
  1313. if z.IsJSONHandle() {
  1314. z.WriteStr("\"I64\"")
  1315. } else {
  1316. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1317. }
  1318. r.WriteMapElemValue()
  1319. if false {
  1320. } else {
  1321. r.EncodeInt(int64(x.I64))
  1322. }
  1323. }
  1324. if yyr2 || yy2arr2 {
  1325. r.WriteArrayElem()
  1326. if false {
  1327. } else {
  1328. r.EncodeInt(int64(x.I8))
  1329. }
  1330. } else {
  1331. r.WriteMapElemKey()
  1332. if z.IsJSONHandle() {
  1333. z.WriteStr("\"I8\"")
  1334. } else {
  1335. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1336. }
  1337. r.WriteMapElemValue()
  1338. if false {
  1339. } else {
  1340. r.EncodeInt(int64(x.I8))
  1341. }
  1342. }
  1343. if yyr2 || yy2arr2 {
  1344. r.WriteArrayElem()
  1345. if false {
  1346. } else {
  1347. r.EncodeUint(uint64(x.Ui64))
  1348. }
  1349. } else {
  1350. r.WriteMapElemKey()
  1351. if z.IsJSONHandle() {
  1352. z.WriteStr("\"Ui64\"")
  1353. } else {
  1354. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1355. }
  1356. r.WriteMapElemValue()
  1357. if false {
  1358. } else {
  1359. r.EncodeUint(uint64(x.Ui64))
  1360. }
  1361. }
  1362. if yyr2 || yy2arr2 {
  1363. r.WriteArrayElem()
  1364. if false {
  1365. } else {
  1366. r.EncodeUint(uint64(x.Ui8))
  1367. }
  1368. } else {
  1369. r.WriteMapElemKey()
  1370. if z.IsJSONHandle() {
  1371. z.WriteStr("\"Ui8\"")
  1372. } else {
  1373. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1374. }
  1375. r.WriteMapElemValue()
  1376. if false {
  1377. } else {
  1378. r.EncodeUint(uint64(x.Ui8))
  1379. }
  1380. }
  1381. if yyr2 || yy2arr2 {
  1382. r.WriteArrayElem()
  1383. if false {
  1384. } else {
  1385. r.EncodeFloat64(float64(x.F64))
  1386. }
  1387. } else {
  1388. r.WriteMapElemKey()
  1389. if z.IsJSONHandle() {
  1390. z.WriteStr("\"F64\"")
  1391. } else {
  1392. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1393. }
  1394. r.WriteMapElemValue()
  1395. if false {
  1396. } else {
  1397. r.EncodeFloat64(float64(x.F64))
  1398. }
  1399. }
  1400. if yyr2 || yy2arr2 {
  1401. r.WriteArrayElem()
  1402. if false {
  1403. } else {
  1404. r.EncodeFloat32(float32(x.F32))
  1405. }
  1406. } else {
  1407. r.WriteMapElemKey()
  1408. if z.IsJSONHandle() {
  1409. z.WriteStr("\"F32\"")
  1410. } else {
  1411. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1412. }
  1413. r.WriteMapElemValue()
  1414. if false {
  1415. } else {
  1416. r.EncodeFloat32(float32(x.F32))
  1417. }
  1418. }
  1419. if yyr2 || yy2arr2 {
  1420. r.WriteArrayElem()
  1421. if false {
  1422. } else {
  1423. r.EncodeBool(bool(x.B))
  1424. }
  1425. } else {
  1426. r.WriteMapElemKey()
  1427. if z.IsJSONHandle() {
  1428. z.WriteStr("\"B\"")
  1429. } else {
  1430. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1431. }
  1432. r.WriteMapElemValue()
  1433. if false {
  1434. } else {
  1435. r.EncodeBool(bool(x.B))
  1436. }
  1437. }
  1438. if yyr2 || yy2arr2 {
  1439. r.WriteArrayElem()
  1440. if x.Sslice == nil {
  1441. r.EncodeNil()
  1442. } else {
  1443. if false {
  1444. } else {
  1445. z.F.EncSliceStringV(x.Sslice, e)
  1446. }
  1447. }
  1448. } else {
  1449. r.WriteMapElemKey()
  1450. if z.IsJSONHandle() {
  1451. z.WriteStr("\"Sslice\"")
  1452. } else {
  1453. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1454. }
  1455. r.WriteMapElemValue()
  1456. if x.Sslice == nil {
  1457. r.EncodeNil()
  1458. } else {
  1459. if false {
  1460. } else {
  1461. z.F.EncSliceStringV(x.Sslice, e)
  1462. }
  1463. }
  1464. }
  1465. if yyr2 || yy2arr2 {
  1466. r.WriteArrayElem()
  1467. if x.I16slice == nil {
  1468. r.EncodeNil()
  1469. } else {
  1470. if false {
  1471. } else {
  1472. z.F.EncSliceInt16V(x.I16slice, e)
  1473. }
  1474. }
  1475. } else {
  1476. r.WriteMapElemKey()
  1477. if z.IsJSONHandle() {
  1478. z.WriteStr("\"I16slice\"")
  1479. } else {
  1480. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1481. }
  1482. r.WriteMapElemValue()
  1483. if x.I16slice == nil {
  1484. r.EncodeNil()
  1485. } else {
  1486. if false {
  1487. } else {
  1488. z.F.EncSliceInt16V(x.I16slice, e)
  1489. }
  1490. }
  1491. }
  1492. if yyr2 || yy2arr2 {
  1493. r.WriteArrayElem()
  1494. if x.Ui64slice == nil {
  1495. r.EncodeNil()
  1496. } else {
  1497. if false {
  1498. } else {
  1499. z.F.EncSliceUint64V(x.Ui64slice, e)
  1500. }
  1501. }
  1502. } else {
  1503. r.WriteMapElemKey()
  1504. if z.IsJSONHandle() {
  1505. z.WriteStr("\"Ui64slice\"")
  1506. } else {
  1507. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1508. }
  1509. r.WriteMapElemValue()
  1510. if x.Ui64slice == nil {
  1511. r.EncodeNil()
  1512. } else {
  1513. if false {
  1514. } else {
  1515. z.F.EncSliceUint64V(x.Ui64slice, e)
  1516. }
  1517. }
  1518. }
  1519. if yyr2 || yy2arr2 {
  1520. r.WriteArrayElem()
  1521. if x.Ui8slice == nil {
  1522. r.EncodeNil()
  1523. } else {
  1524. if false {
  1525. } else {
  1526. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1527. }
  1528. }
  1529. } else {
  1530. r.WriteMapElemKey()
  1531. if z.IsJSONHandle() {
  1532. z.WriteStr("\"Ui8slice\"")
  1533. } else {
  1534. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1535. }
  1536. r.WriteMapElemValue()
  1537. if x.Ui8slice == nil {
  1538. r.EncodeNil()
  1539. } else {
  1540. if false {
  1541. } else {
  1542. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1543. }
  1544. }
  1545. }
  1546. if yyr2 || yy2arr2 {
  1547. r.WriteArrayElem()
  1548. if x.Bslice == nil {
  1549. r.EncodeNil()
  1550. } else {
  1551. if false {
  1552. } else {
  1553. z.F.EncSliceBoolV(x.Bslice, e)
  1554. }
  1555. }
  1556. } else {
  1557. r.WriteMapElemKey()
  1558. if z.IsJSONHandle() {
  1559. z.WriteStr("\"Bslice\"")
  1560. } else {
  1561. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1562. }
  1563. r.WriteMapElemValue()
  1564. if x.Bslice == nil {
  1565. r.EncodeNil()
  1566. } else {
  1567. if false {
  1568. } else {
  1569. z.F.EncSliceBoolV(x.Bslice, e)
  1570. }
  1571. }
  1572. }
  1573. if yyr2 || yy2arr2 {
  1574. r.WriteArrayElem()
  1575. if x.Iptrslice == nil {
  1576. r.EncodeNil()
  1577. } else {
  1578. if false {
  1579. } else {
  1580. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1581. }
  1582. }
  1583. } else {
  1584. r.WriteMapElemKey()
  1585. if z.IsJSONHandle() {
  1586. z.WriteStr("\"Iptrslice\"")
  1587. } else {
  1588. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1589. }
  1590. r.WriteMapElemValue()
  1591. if x.Iptrslice == nil {
  1592. r.EncodeNil()
  1593. } else {
  1594. if false {
  1595. } else {
  1596. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1597. }
  1598. }
  1599. }
  1600. if yyr2 || yy2arr2 {
  1601. r.WriteArrayElem()
  1602. if x.WrapSliceInt64 == nil {
  1603. r.EncodeNil()
  1604. } else {
  1605. x.WrapSliceInt64.CodecEncodeSelf(e)
  1606. }
  1607. } else {
  1608. r.WriteMapElemKey()
  1609. if z.IsJSONHandle() {
  1610. z.WriteStr("\"WrapSliceInt64\"")
  1611. } else {
  1612. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1613. }
  1614. r.WriteMapElemValue()
  1615. if x.WrapSliceInt64 == nil {
  1616. r.EncodeNil()
  1617. } else {
  1618. x.WrapSliceInt64.CodecEncodeSelf(e)
  1619. }
  1620. }
  1621. if yyr2 || yy2arr2 {
  1622. r.WriteArrayElem()
  1623. if x.WrapSliceString == nil {
  1624. r.EncodeNil()
  1625. } else {
  1626. x.WrapSliceString.CodecEncodeSelf(e)
  1627. }
  1628. } else {
  1629. r.WriteMapElemKey()
  1630. if z.IsJSONHandle() {
  1631. z.WriteStr("\"WrapSliceString\"")
  1632. } else {
  1633. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1634. }
  1635. r.WriteMapElemValue()
  1636. if x.WrapSliceString == nil {
  1637. r.EncodeNil()
  1638. } else {
  1639. x.WrapSliceString.CodecEncodeSelf(e)
  1640. }
  1641. }
  1642. if yyr2 || yy2arr2 {
  1643. r.WriteArrayElem()
  1644. if x.Msi64 == nil {
  1645. r.EncodeNil()
  1646. } else {
  1647. if false {
  1648. } else {
  1649. z.F.EncMapStringInt64V(x.Msi64, e)
  1650. }
  1651. }
  1652. } else {
  1653. r.WriteMapElemKey()
  1654. if z.IsJSONHandle() {
  1655. z.WriteStr("\"Msi64\"")
  1656. } else {
  1657. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1658. }
  1659. r.WriteMapElemValue()
  1660. if x.Msi64 == nil {
  1661. r.EncodeNil()
  1662. } else {
  1663. if false {
  1664. } else {
  1665. z.F.EncMapStringInt64V(x.Msi64, e)
  1666. }
  1667. }
  1668. }
  1669. if yyr2 || yy2arr2 {
  1670. r.WriteArrayEnd()
  1671. } else {
  1672. r.WriteMapEnd()
  1673. }
  1674. }
  1675. }
  1676. }
  1677. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1678. var h codecSelfer19780
  1679. z, r := GenHelperDecoder(d)
  1680. _, _, _ = h, z, r
  1681. if false {
  1682. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  1683. z.DecExtension(x, yyxt1)
  1684. } else {
  1685. yyct2 := r.ContainerType()
  1686. if yyct2 == codecSelferValueTypeMap19780 {
  1687. yyl2 := r.ReadMapStart()
  1688. if yyl2 == 0 {
  1689. r.ReadMapEnd()
  1690. } else {
  1691. x.codecDecodeSelfFromMap(yyl2, d)
  1692. }
  1693. } else if yyct2 == codecSelferValueTypeArray19780 {
  1694. yyl2 := r.ReadArrayStart()
  1695. if yyl2 == 0 {
  1696. r.ReadArrayEnd()
  1697. } else {
  1698. x.codecDecodeSelfFromArray(yyl2, d)
  1699. }
  1700. } else {
  1701. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1702. }
  1703. }
  1704. }
  1705. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1706. var h codecSelfer19780
  1707. z, r := GenHelperDecoder(d)
  1708. _, _, _ = h, z, r
  1709. var yyhl3 bool = l >= 0
  1710. for yyj3 := 0; ; yyj3++ {
  1711. if yyhl3 {
  1712. if yyj3 >= l {
  1713. break
  1714. }
  1715. } else {
  1716. if r.CheckBreak() {
  1717. break
  1718. }
  1719. }
  1720. r.ReadMapElemKey()
  1721. yys3 := z.StringView(r.DecodeStringAsBytes())
  1722. r.ReadMapElemValue()
  1723. switch yys3 {
  1724. case "S":
  1725. if r.TryDecodeAsNil() {
  1726. x.S = ""
  1727. } else {
  1728. x.S = (string)(r.DecodeString())
  1729. }
  1730. case "I64":
  1731. if r.TryDecodeAsNil() {
  1732. x.I64 = 0
  1733. } else {
  1734. x.I64 = (int64)(r.DecodeInt64())
  1735. }
  1736. case "I8":
  1737. if r.TryDecodeAsNil() {
  1738. x.I8 = 0
  1739. } else {
  1740. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1741. }
  1742. case "Ui64":
  1743. if r.TryDecodeAsNil() {
  1744. x.Ui64 = 0
  1745. } else {
  1746. x.Ui64 = (uint64)(r.DecodeUint64())
  1747. }
  1748. case "Ui8":
  1749. if r.TryDecodeAsNil() {
  1750. x.Ui8 = 0
  1751. } else {
  1752. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1753. }
  1754. case "F64":
  1755. if r.TryDecodeAsNil() {
  1756. x.F64 = 0
  1757. } else {
  1758. x.F64 = (float64)(r.DecodeFloat64())
  1759. }
  1760. case "F32":
  1761. if r.TryDecodeAsNil() {
  1762. x.F32 = 0
  1763. } else {
  1764. x.F32 = (float32)(r.DecodeFloat32As64())
  1765. }
  1766. case "B":
  1767. if r.TryDecodeAsNil() {
  1768. x.B = false
  1769. } else {
  1770. x.B = (bool)(r.DecodeBool())
  1771. }
  1772. case "Sslice":
  1773. if r.TryDecodeAsNil() {
  1774. x.Sslice = nil
  1775. } else {
  1776. if false {
  1777. } else {
  1778. z.F.DecSliceStringX(&x.Sslice, d)
  1779. }
  1780. }
  1781. case "I16slice":
  1782. if r.TryDecodeAsNil() {
  1783. x.I16slice = nil
  1784. } else {
  1785. if false {
  1786. } else {
  1787. z.F.DecSliceInt16X(&x.I16slice, d)
  1788. }
  1789. }
  1790. case "Ui64slice":
  1791. if r.TryDecodeAsNil() {
  1792. x.Ui64slice = nil
  1793. } else {
  1794. if false {
  1795. } else {
  1796. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1797. }
  1798. }
  1799. case "Ui8slice":
  1800. if r.TryDecodeAsNil() {
  1801. x.Ui8slice = nil
  1802. } else {
  1803. if false {
  1804. } else {
  1805. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1806. }
  1807. }
  1808. case "Bslice":
  1809. if r.TryDecodeAsNil() {
  1810. x.Bslice = nil
  1811. } else {
  1812. if false {
  1813. } else {
  1814. z.F.DecSliceBoolX(&x.Bslice, d)
  1815. }
  1816. }
  1817. case "Iptrslice":
  1818. if r.TryDecodeAsNil() {
  1819. x.Iptrslice = nil
  1820. } else {
  1821. if false {
  1822. } else {
  1823. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1824. }
  1825. }
  1826. case "WrapSliceInt64":
  1827. if r.TryDecodeAsNil() {
  1828. x.WrapSliceInt64 = nil
  1829. } else {
  1830. x.WrapSliceInt64.CodecDecodeSelf(d)
  1831. }
  1832. case "WrapSliceString":
  1833. if r.TryDecodeAsNil() {
  1834. x.WrapSliceString = nil
  1835. } else {
  1836. x.WrapSliceString.CodecDecodeSelf(d)
  1837. }
  1838. case "Msi64":
  1839. if r.TryDecodeAsNil() {
  1840. x.Msi64 = nil
  1841. } else {
  1842. if false {
  1843. } else {
  1844. z.F.DecMapStringInt64X(&x.Msi64, d)
  1845. }
  1846. }
  1847. default:
  1848. z.DecStructFieldNotFound(-1, yys3)
  1849. } // end switch yys3
  1850. } // end for yyj3
  1851. r.ReadMapEnd()
  1852. }
  1853. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1854. var h codecSelfer19780
  1855. z, r := GenHelperDecoder(d)
  1856. _, _, _ = h, z, r
  1857. var yyj28 int
  1858. var yyb28 bool
  1859. var yyhl28 bool = l >= 0
  1860. yyj28++
  1861. if yyhl28 {
  1862. yyb28 = yyj28 > l
  1863. } else {
  1864. yyb28 = r.CheckBreak()
  1865. }
  1866. if yyb28 {
  1867. r.ReadArrayEnd()
  1868. return
  1869. }
  1870. r.ReadArrayElem()
  1871. if r.TryDecodeAsNil() {
  1872. x.S = ""
  1873. } else {
  1874. x.S = (string)(r.DecodeString())
  1875. }
  1876. yyj28++
  1877. if yyhl28 {
  1878. yyb28 = yyj28 > l
  1879. } else {
  1880. yyb28 = r.CheckBreak()
  1881. }
  1882. if yyb28 {
  1883. r.ReadArrayEnd()
  1884. return
  1885. }
  1886. r.ReadArrayElem()
  1887. if r.TryDecodeAsNil() {
  1888. x.I64 = 0
  1889. } else {
  1890. x.I64 = (int64)(r.DecodeInt64())
  1891. }
  1892. yyj28++
  1893. if yyhl28 {
  1894. yyb28 = yyj28 > l
  1895. } else {
  1896. yyb28 = r.CheckBreak()
  1897. }
  1898. if yyb28 {
  1899. r.ReadArrayEnd()
  1900. return
  1901. }
  1902. r.ReadArrayElem()
  1903. if r.TryDecodeAsNil() {
  1904. x.I8 = 0
  1905. } else {
  1906. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1907. }
  1908. yyj28++
  1909. if yyhl28 {
  1910. yyb28 = yyj28 > l
  1911. } else {
  1912. yyb28 = r.CheckBreak()
  1913. }
  1914. if yyb28 {
  1915. r.ReadArrayEnd()
  1916. return
  1917. }
  1918. r.ReadArrayElem()
  1919. if r.TryDecodeAsNil() {
  1920. x.Ui64 = 0
  1921. } else {
  1922. x.Ui64 = (uint64)(r.DecodeUint64())
  1923. }
  1924. yyj28++
  1925. if yyhl28 {
  1926. yyb28 = yyj28 > l
  1927. } else {
  1928. yyb28 = r.CheckBreak()
  1929. }
  1930. if yyb28 {
  1931. r.ReadArrayEnd()
  1932. return
  1933. }
  1934. r.ReadArrayElem()
  1935. if r.TryDecodeAsNil() {
  1936. x.Ui8 = 0
  1937. } else {
  1938. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1939. }
  1940. yyj28++
  1941. if yyhl28 {
  1942. yyb28 = yyj28 > l
  1943. } else {
  1944. yyb28 = r.CheckBreak()
  1945. }
  1946. if yyb28 {
  1947. r.ReadArrayEnd()
  1948. return
  1949. }
  1950. r.ReadArrayElem()
  1951. if r.TryDecodeAsNil() {
  1952. x.F64 = 0
  1953. } else {
  1954. x.F64 = (float64)(r.DecodeFloat64())
  1955. }
  1956. yyj28++
  1957. if yyhl28 {
  1958. yyb28 = yyj28 > l
  1959. } else {
  1960. yyb28 = r.CheckBreak()
  1961. }
  1962. if yyb28 {
  1963. r.ReadArrayEnd()
  1964. return
  1965. }
  1966. r.ReadArrayElem()
  1967. if r.TryDecodeAsNil() {
  1968. x.F32 = 0
  1969. } else {
  1970. x.F32 = (float32)(r.DecodeFloat32As64())
  1971. }
  1972. yyj28++
  1973. if yyhl28 {
  1974. yyb28 = yyj28 > l
  1975. } else {
  1976. yyb28 = r.CheckBreak()
  1977. }
  1978. if yyb28 {
  1979. r.ReadArrayEnd()
  1980. return
  1981. }
  1982. r.ReadArrayElem()
  1983. if r.TryDecodeAsNil() {
  1984. x.B = false
  1985. } else {
  1986. x.B = (bool)(r.DecodeBool())
  1987. }
  1988. yyj28++
  1989. if yyhl28 {
  1990. yyb28 = yyj28 > l
  1991. } else {
  1992. yyb28 = r.CheckBreak()
  1993. }
  1994. if yyb28 {
  1995. r.ReadArrayEnd()
  1996. return
  1997. }
  1998. r.ReadArrayElem()
  1999. if r.TryDecodeAsNil() {
  2000. x.Sslice = nil
  2001. } else {
  2002. if false {
  2003. } else {
  2004. z.F.DecSliceStringX(&x.Sslice, d)
  2005. }
  2006. }
  2007. yyj28++
  2008. if yyhl28 {
  2009. yyb28 = yyj28 > l
  2010. } else {
  2011. yyb28 = r.CheckBreak()
  2012. }
  2013. if yyb28 {
  2014. r.ReadArrayEnd()
  2015. return
  2016. }
  2017. r.ReadArrayElem()
  2018. if r.TryDecodeAsNil() {
  2019. x.I16slice = nil
  2020. } else {
  2021. if false {
  2022. } else {
  2023. z.F.DecSliceInt16X(&x.I16slice, d)
  2024. }
  2025. }
  2026. yyj28++
  2027. if yyhl28 {
  2028. yyb28 = yyj28 > l
  2029. } else {
  2030. yyb28 = r.CheckBreak()
  2031. }
  2032. if yyb28 {
  2033. r.ReadArrayEnd()
  2034. return
  2035. }
  2036. r.ReadArrayElem()
  2037. if r.TryDecodeAsNil() {
  2038. x.Ui64slice = nil
  2039. } else {
  2040. if false {
  2041. } else {
  2042. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2043. }
  2044. }
  2045. yyj28++
  2046. if yyhl28 {
  2047. yyb28 = yyj28 > l
  2048. } else {
  2049. yyb28 = r.CheckBreak()
  2050. }
  2051. if yyb28 {
  2052. r.ReadArrayEnd()
  2053. return
  2054. }
  2055. r.ReadArrayElem()
  2056. if r.TryDecodeAsNil() {
  2057. x.Ui8slice = nil
  2058. } else {
  2059. if false {
  2060. } else {
  2061. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2062. }
  2063. }
  2064. yyj28++
  2065. if yyhl28 {
  2066. yyb28 = yyj28 > l
  2067. } else {
  2068. yyb28 = r.CheckBreak()
  2069. }
  2070. if yyb28 {
  2071. r.ReadArrayEnd()
  2072. return
  2073. }
  2074. r.ReadArrayElem()
  2075. if r.TryDecodeAsNil() {
  2076. x.Bslice = nil
  2077. } else {
  2078. if false {
  2079. } else {
  2080. z.F.DecSliceBoolX(&x.Bslice, d)
  2081. }
  2082. }
  2083. yyj28++
  2084. if yyhl28 {
  2085. yyb28 = yyj28 > l
  2086. } else {
  2087. yyb28 = r.CheckBreak()
  2088. }
  2089. if yyb28 {
  2090. r.ReadArrayEnd()
  2091. return
  2092. }
  2093. r.ReadArrayElem()
  2094. if r.TryDecodeAsNil() {
  2095. x.Iptrslice = nil
  2096. } else {
  2097. if false {
  2098. } else {
  2099. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2100. }
  2101. }
  2102. yyj28++
  2103. if yyhl28 {
  2104. yyb28 = yyj28 > l
  2105. } else {
  2106. yyb28 = r.CheckBreak()
  2107. }
  2108. if yyb28 {
  2109. r.ReadArrayEnd()
  2110. return
  2111. }
  2112. r.ReadArrayElem()
  2113. if r.TryDecodeAsNil() {
  2114. x.WrapSliceInt64 = nil
  2115. } else {
  2116. x.WrapSliceInt64.CodecDecodeSelf(d)
  2117. }
  2118. yyj28++
  2119. if yyhl28 {
  2120. yyb28 = yyj28 > l
  2121. } else {
  2122. yyb28 = r.CheckBreak()
  2123. }
  2124. if yyb28 {
  2125. r.ReadArrayEnd()
  2126. return
  2127. }
  2128. r.ReadArrayElem()
  2129. if r.TryDecodeAsNil() {
  2130. x.WrapSliceString = nil
  2131. } else {
  2132. x.WrapSliceString.CodecDecodeSelf(d)
  2133. }
  2134. yyj28++
  2135. if yyhl28 {
  2136. yyb28 = yyj28 > l
  2137. } else {
  2138. yyb28 = r.CheckBreak()
  2139. }
  2140. if yyb28 {
  2141. r.ReadArrayEnd()
  2142. return
  2143. }
  2144. r.ReadArrayElem()
  2145. if r.TryDecodeAsNil() {
  2146. x.Msi64 = nil
  2147. } else {
  2148. if false {
  2149. } else {
  2150. z.F.DecMapStringInt64X(&x.Msi64, d)
  2151. }
  2152. }
  2153. for {
  2154. yyj28++
  2155. if yyhl28 {
  2156. yyb28 = yyj28 > l
  2157. } else {
  2158. yyb28 = r.CheckBreak()
  2159. }
  2160. if yyb28 {
  2161. break
  2162. }
  2163. r.ReadArrayElem()
  2164. z.DecStructFieldNotFound(yyj28-1, "")
  2165. }
  2166. r.ReadArrayEnd()
  2167. }
  2168. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  2169. var h codecSelfer19780
  2170. z, r := GenHelperEncoder(e)
  2171. _, _, _ = h, z, r
  2172. if x == nil {
  2173. r.EncodeNil()
  2174. } else {
  2175. if false {
  2176. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  2177. z.EncExtension(x, yyxt1)
  2178. } else {
  2179. yysep2 := !z.EncBinary()
  2180. yy2arr2 := z.EncBasicHandle().StructToArray
  2181. _, _ = yysep2, yy2arr2
  2182. const yyr2 bool = false // struct tag has 'toArray'
  2183. if yyr2 || yy2arr2 {
  2184. r.WriteArrayStart(49)
  2185. } else {
  2186. r.WriteMapStart(49)
  2187. }
  2188. if yyr2 || yy2arr2 {
  2189. r.WriteArrayElem()
  2190. if false {
  2191. } else {
  2192. if z.EncBasicHandle().StringToRaw {
  2193. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2194. } else {
  2195. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2196. }
  2197. }
  2198. } else {
  2199. r.WriteMapElemKey()
  2200. if z.IsJSONHandle() {
  2201. z.WriteStr("\"S\"")
  2202. } else {
  2203. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  2204. }
  2205. r.WriteMapElemValue()
  2206. if false {
  2207. } else {
  2208. if z.EncBasicHandle().StringToRaw {
  2209. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  2210. } else {
  2211. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  2212. }
  2213. }
  2214. }
  2215. if yyr2 || yy2arr2 {
  2216. r.WriteArrayElem()
  2217. if false {
  2218. } else {
  2219. r.EncodeInt(int64(x.I64))
  2220. }
  2221. } else {
  2222. r.WriteMapElemKey()
  2223. if z.IsJSONHandle() {
  2224. z.WriteStr("\"I64\"")
  2225. } else {
  2226. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  2227. }
  2228. r.WriteMapElemValue()
  2229. if false {
  2230. } else {
  2231. r.EncodeInt(int64(x.I64))
  2232. }
  2233. }
  2234. if yyr2 || yy2arr2 {
  2235. r.WriteArrayElem()
  2236. if false {
  2237. } else {
  2238. r.EncodeInt(int64(x.I32))
  2239. }
  2240. } else {
  2241. r.WriteMapElemKey()
  2242. if z.IsJSONHandle() {
  2243. z.WriteStr("\"I32\"")
  2244. } else {
  2245. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  2246. }
  2247. r.WriteMapElemValue()
  2248. if false {
  2249. } else {
  2250. r.EncodeInt(int64(x.I32))
  2251. }
  2252. }
  2253. if yyr2 || yy2arr2 {
  2254. r.WriteArrayElem()
  2255. if false {
  2256. } else {
  2257. r.EncodeInt(int64(x.I16))
  2258. }
  2259. } else {
  2260. r.WriteMapElemKey()
  2261. if z.IsJSONHandle() {
  2262. z.WriteStr("\"I16\"")
  2263. } else {
  2264. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  2265. }
  2266. r.WriteMapElemValue()
  2267. if false {
  2268. } else {
  2269. r.EncodeInt(int64(x.I16))
  2270. }
  2271. }
  2272. if yyr2 || yy2arr2 {
  2273. r.WriteArrayElem()
  2274. if false {
  2275. } else {
  2276. r.EncodeInt(int64(x.I8))
  2277. }
  2278. } else {
  2279. r.WriteMapElemKey()
  2280. if z.IsJSONHandle() {
  2281. z.WriteStr("\"I8\"")
  2282. } else {
  2283. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  2284. }
  2285. r.WriteMapElemValue()
  2286. if false {
  2287. } else {
  2288. r.EncodeInt(int64(x.I8))
  2289. }
  2290. }
  2291. if yyr2 || yy2arr2 {
  2292. r.WriteArrayElem()
  2293. if false {
  2294. } else {
  2295. r.EncodeInt(int64(x.I64n))
  2296. }
  2297. } else {
  2298. r.WriteMapElemKey()
  2299. if z.IsJSONHandle() {
  2300. z.WriteStr("\"I64n\"")
  2301. } else {
  2302. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  2303. }
  2304. r.WriteMapElemValue()
  2305. if false {
  2306. } else {
  2307. r.EncodeInt(int64(x.I64n))
  2308. }
  2309. }
  2310. if yyr2 || yy2arr2 {
  2311. r.WriteArrayElem()
  2312. if false {
  2313. } else {
  2314. r.EncodeInt(int64(x.I32n))
  2315. }
  2316. } else {
  2317. r.WriteMapElemKey()
  2318. if z.IsJSONHandle() {
  2319. z.WriteStr("\"I32n\"")
  2320. } else {
  2321. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  2322. }
  2323. r.WriteMapElemValue()
  2324. if false {
  2325. } else {
  2326. r.EncodeInt(int64(x.I32n))
  2327. }
  2328. }
  2329. if yyr2 || yy2arr2 {
  2330. r.WriteArrayElem()
  2331. if false {
  2332. } else {
  2333. r.EncodeInt(int64(x.I16n))
  2334. }
  2335. } else {
  2336. r.WriteMapElemKey()
  2337. if z.IsJSONHandle() {
  2338. z.WriteStr("\"I16n\"")
  2339. } else {
  2340. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  2341. }
  2342. r.WriteMapElemValue()
  2343. if false {
  2344. } else {
  2345. r.EncodeInt(int64(x.I16n))
  2346. }
  2347. }
  2348. if yyr2 || yy2arr2 {
  2349. r.WriteArrayElem()
  2350. if false {
  2351. } else {
  2352. r.EncodeInt(int64(x.I8n))
  2353. }
  2354. } else {
  2355. r.WriteMapElemKey()
  2356. if z.IsJSONHandle() {
  2357. z.WriteStr("\"I8n\"")
  2358. } else {
  2359. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  2360. }
  2361. r.WriteMapElemValue()
  2362. if false {
  2363. } else {
  2364. r.EncodeInt(int64(x.I8n))
  2365. }
  2366. }
  2367. if yyr2 || yy2arr2 {
  2368. r.WriteArrayElem()
  2369. if false {
  2370. } else {
  2371. r.EncodeUint(uint64(x.Ui64))
  2372. }
  2373. } else {
  2374. r.WriteMapElemKey()
  2375. if z.IsJSONHandle() {
  2376. z.WriteStr("\"Ui64\"")
  2377. } else {
  2378. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  2379. }
  2380. r.WriteMapElemValue()
  2381. if false {
  2382. } else {
  2383. r.EncodeUint(uint64(x.Ui64))
  2384. }
  2385. }
  2386. if yyr2 || yy2arr2 {
  2387. r.WriteArrayElem()
  2388. if false {
  2389. } else {
  2390. r.EncodeUint(uint64(x.Ui32))
  2391. }
  2392. } else {
  2393. r.WriteMapElemKey()
  2394. if z.IsJSONHandle() {
  2395. z.WriteStr("\"Ui32\"")
  2396. } else {
  2397. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  2398. }
  2399. r.WriteMapElemValue()
  2400. if false {
  2401. } else {
  2402. r.EncodeUint(uint64(x.Ui32))
  2403. }
  2404. }
  2405. if yyr2 || yy2arr2 {
  2406. r.WriteArrayElem()
  2407. if false {
  2408. } else {
  2409. r.EncodeUint(uint64(x.Ui16))
  2410. }
  2411. } else {
  2412. r.WriteMapElemKey()
  2413. if z.IsJSONHandle() {
  2414. z.WriteStr("\"Ui16\"")
  2415. } else {
  2416. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  2417. }
  2418. r.WriteMapElemValue()
  2419. if false {
  2420. } else {
  2421. r.EncodeUint(uint64(x.Ui16))
  2422. }
  2423. }
  2424. if yyr2 || yy2arr2 {
  2425. r.WriteArrayElem()
  2426. if false {
  2427. } else {
  2428. r.EncodeUint(uint64(x.Ui8))
  2429. }
  2430. } else {
  2431. r.WriteMapElemKey()
  2432. if z.IsJSONHandle() {
  2433. z.WriteStr("\"Ui8\"")
  2434. } else {
  2435. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  2436. }
  2437. r.WriteMapElemValue()
  2438. if false {
  2439. } else {
  2440. r.EncodeUint(uint64(x.Ui8))
  2441. }
  2442. }
  2443. if yyr2 || yy2arr2 {
  2444. r.WriteArrayElem()
  2445. if false {
  2446. } else {
  2447. r.EncodeFloat64(float64(x.F64))
  2448. }
  2449. } else {
  2450. r.WriteMapElemKey()
  2451. if z.IsJSONHandle() {
  2452. z.WriteStr("\"F64\"")
  2453. } else {
  2454. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  2455. }
  2456. r.WriteMapElemValue()
  2457. if false {
  2458. } else {
  2459. r.EncodeFloat64(float64(x.F64))
  2460. }
  2461. }
  2462. if yyr2 || yy2arr2 {
  2463. r.WriteArrayElem()
  2464. if false {
  2465. } else {
  2466. r.EncodeFloat32(float32(x.F32))
  2467. }
  2468. } else {
  2469. r.WriteMapElemKey()
  2470. if z.IsJSONHandle() {
  2471. z.WriteStr("\"F32\"")
  2472. } else {
  2473. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  2474. }
  2475. r.WriteMapElemValue()
  2476. if false {
  2477. } else {
  2478. r.EncodeFloat32(float32(x.F32))
  2479. }
  2480. }
  2481. if yyr2 || yy2arr2 {
  2482. r.WriteArrayElem()
  2483. if false {
  2484. } else {
  2485. r.EncodeBool(bool(x.B))
  2486. }
  2487. } else {
  2488. r.WriteMapElemKey()
  2489. if z.IsJSONHandle() {
  2490. z.WriteStr("\"B\"")
  2491. } else {
  2492. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  2493. }
  2494. r.WriteMapElemValue()
  2495. if false {
  2496. } else {
  2497. r.EncodeBool(bool(x.B))
  2498. }
  2499. }
  2500. if yyr2 || yy2arr2 {
  2501. r.WriteArrayElem()
  2502. if false {
  2503. } else {
  2504. r.EncodeUint(uint64(x.By))
  2505. }
  2506. } else {
  2507. r.WriteMapElemKey()
  2508. if z.IsJSONHandle() {
  2509. z.WriteStr("\"By\"")
  2510. } else {
  2511. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  2512. }
  2513. r.WriteMapElemValue()
  2514. if false {
  2515. } else {
  2516. r.EncodeUint(uint64(x.By))
  2517. }
  2518. }
  2519. if yyr2 || yy2arr2 {
  2520. r.WriteArrayElem()
  2521. if x.Sslice == nil {
  2522. r.EncodeNil()
  2523. } else {
  2524. if false {
  2525. } else {
  2526. z.F.EncSliceStringV(x.Sslice, e)
  2527. }
  2528. }
  2529. } else {
  2530. r.WriteMapElemKey()
  2531. if z.IsJSONHandle() {
  2532. z.WriteStr("\"Sslice\"")
  2533. } else {
  2534. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  2535. }
  2536. r.WriteMapElemValue()
  2537. if x.Sslice == nil {
  2538. r.EncodeNil()
  2539. } else {
  2540. if false {
  2541. } else {
  2542. z.F.EncSliceStringV(x.Sslice, e)
  2543. }
  2544. }
  2545. }
  2546. if yyr2 || yy2arr2 {
  2547. r.WriteArrayElem()
  2548. if x.I64slice == nil {
  2549. r.EncodeNil()
  2550. } else {
  2551. if false {
  2552. } else {
  2553. z.F.EncSliceInt64V(x.I64slice, e)
  2554. }
  2555. }
  2556. } else {
  2557. r.WriteMapElemKey()
  2558. if z.IsJSONHandle() {
  2559. z.WriteStr("\"I64slice\"")
  2560. } else {
  2561. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  2562. }
  2563. r.WriteMapElemValue()
  2564. if x.I64slice == nil {
  2565. r.EncodeNil()
  2566. } else {
  2567. if false {
  2568. } else {
  2569. z.F.EncSliceInt64V(x.I64slice, e)
  2570. }
  2571. }
  2572. }
  2573. if yyr2 || yy2arr2 {
  2574. r.WriteArrayElem()
  2575. if x.I16slice == nil {
  2576. r.EncodeNil()
  2577. } else {
  2578. if false {
  2579. } else {
  2580. z.F.EncSliceInt16V(x.I16slice, e)
  2581. }
  2582. }
  2583. } else {
  2584. r.WriteMapElemKey()
  2585. if z.IsJSONHandle() {
  2586. z.WriteStr("\"I16slice\"")
  2587. } else {
  2588. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  2589. }
  2590. r.WriteMapElemValue()
  2591. if x.I16slice == nil {
  2592. r.EncodeNil()
  2593. } else {
  2594. if false {
  2595. } else {
  2596. z.F.EncSliceInt16V(x.I16slice, e)
  2597. }
  2598. }
  2599. }
  2600. if yyr2 || yy2arr2 {
  2601. r.WriteArrayElem()
  2602. if x.Ui64slice == nil {
  2603. r.EncodeNil()
  2604. } else {
  2605. if false {
  2606. } else {
  2607. z.F.EncSliceUint64V(x.Ui64slice, e)
  2608. }
  2609. }
  2610. } else {
  2611. r.WriteMapElemKey()
  2612. if z.IsJSONHandle() {
  2613. z.WriteStr("\"Ui64slice\"")
  2614. } else {
  2615. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  2616. }
  2617. r.WriteMapElemValue()
  2618. if x.Ui64slice == nil {
  2619. r.EncodeNil()
  2620. } else {
  2621. if false {
  2622. } else {
  2623. z.F.EncSliceUint64V(x.Ui64slice, e)
  2624. }
  2625. }
  2626. }
  2627. if yyr2 || yy2arr2 {
  2628. r.WriteArrayElem()
  2629. if x.Ui8slice == nil {
  2630. r.EncodeNil()
  2631. } else {
  2632. if false {
  2633. } else {
  2634. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2635. }
  2636. }
  2637. } else {
  2638. r.WriteMapElemKey()
  2639. if z.IsJSONHandle() {
  2640. z.WriteStr("\"Ui8slice\"")
  2641. } else {
  2642. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  2643. }
  2644. r.WriteMapElemValue()
  2645. if x.Ui8slice == nil {
  2646. r.EncodeNil()
  2647. } else {
  2648. if false {
  2649. } else {
  2650. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  2651. }
  2652. }
  2653. }
  2654. if yyr2 || yy2arr2 {
  2655. r.WriteArrayElem()
  2656. if x.Bslice == nil {
  2657. r.EncodeNil()
  2658. } else {
  2659. if false {
  2660. } else {
  2661. z.F.EncSliceBoolV(x.Bslice, e)
  2662. }
  2663. }
  2664. } else {
  2665. r.WriteMapElemKey()
  2666. if z.IsJSONHandle() {
  2667. z.WriteStr("\"Bslice\"")
  2668. } else {
  2669. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  2670. }
  2671. r.WriteMapElemValue()
  2672. if x.Bslice == nil {
  2673. r.EncodeNil()
  2674. } else {
  2675. if false {
  2676. } else {
  2677. z.F.EncSliceBoolV(x.Bslice, e)
  2678. }
  2679. }
  2680. }
  2681. if yyr2 || yy2arr2 {
  2682. r.WriteArrayElem()
  2683. if x.Byslice == nil {
  2684. r.EncodeNil()
  2685. } else {
  2686. if false {
  2687. } else {
  2688. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2689. }
  2690. }
  2691. } else {
  2692. r.WriteMapElemKey()
  2693. if z.IsJSONHandle() {
  2694. z.WriteStr("\"Byslice\"")
  2695. } else {
  2696. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  2697. }
  2698. r.WriteMapElemValue()
  2699. if x.Byslice == nil {
  2700. r.EncodeNil()
  2701. } else {
  2702. if false {
  2703. } else {
  2704. r.EncodeStringBytesRaw([]byte(x.Byslice))
  2705. }
  2706. }
  2707. }
  2708. if yyr2 || yy2arr2 {
  2709. r.WriteArrayElem()
  2710. if x.Iptrslice == nil {
  2711. r.EncodeNil()
  2712. } else {
  2713. if false {
  2714. } else {
  2715. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2716. }
  2717. }
  2718. } else {
  2719. r.WriteMapElemKey()
  2720. if z.IsJSONHandle() {
  2721. z.WriteStr("\"Iptrslice\"")
  2722. } else {
  2723. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  2724. }
  2725. r.WriteMapElemValue()
  2726. if x.Iptrslice == nil {
  2727. r.EncodeNil()
  2728. } else {
  2729. if false {
  2730. } else {
  2731. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  2732. }
  2733. }
  2734. }
  2735. if yyr2 || yy2arr2 {
  2736. r.WriteArrayElem()
  2737. if x.WrapSliceInt64 == nil {
  2738. r.EncodeNil()
  2739. } else {
  2740. x.WrapSliceInt64.CodecEncodeSelf(e)
  2741. }
  2742. } else {
  2743. r.WriteMapElemKey()
  2744. if z.IsJSONHandle() {
  2745. z.WriteStr("\"WrapSliceInt64\"")
  2746. } else {
  2747. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  2748. }
  2749. r.WriteMapElemValue()
  2750. if x.WrapSliceInt64 == nil {
  2751. r.EncodeNil()
  2752. } else {
  2753. x.WrapSliceInt64.CodecEncodeSelf(e)
  2754. }
  2755. }
  2756. if yyr2 || yy2arr2 {
  2757. r.WriteArrayElem()
  2758. if x.WrapSliceString == nil {
  2759. r.EncodeNil()
  2760. } else {
  2761. x.WrapSliceString.CodecEncodeSelf(e)
  2762. }
  2763. } else {
  2764. r.WriteMapElemKey()
  2765. if z.IsJSONHandle() {
  2766. z.WriteStr("\"WrapSliceString\"")
  2767. } else {
  2768. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  2769. }
  2770. r.WriteMapElemValue()
  2771. if x.WrapSliceString == nil {
  2772. r.EncodeNil()
  2773. } else {
  2774. x.WrapSliceString.CodecEncodeSelf(e)
  2775. }
  2776. }
  2777. if yyr2 || yy2arr2 {
  2778. r.WriteArrayElem()
  2779. if x.Msi64 == nil {
  2780. r.EncodeNil()
  2781. } else {
  2782. if false {
  2783. } else {
  2784. z.F.EncMapStringInt64V(x.Msi64, e)
  2785. }
  2786. }
  2787. } else {
  2788. r.WriteMapElemKey()
  2789. if z.IsJSONHandle() {
  2790. z.WriteStr("\"Msi64\"")
  2791. } else {
  2792. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  2793. }
  2794. r.WriteMapElemValue()
  2795. if x.Msi64 == nil {
  2796. r.EncodeNil()
  2797. } else {
  2798. if false {
  2799. } else {
  2800. z.F.EncMapStringInt64V(x.Msi64, e)
  2801. }
  2802. }
  2803. }
  2804. if yyr2 || yy2arr2 {
  2805. r.WriteArrayElem()
  2806. yy88 := &x.Simplef
  2807. yy88.CodecEncodeSelf(e)
  2808. } else {
  2809. r.WriteMapElemKey()
  2810. if z.IsJSONHandle() {
  2811. z.WriteStr("\"Simplef\"")
  2812. } else {
  2813. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  2814. }
  2815. r.WriteMapElemValue()
  2816. yy90 := &x.Simplef
  2817. yy90.CodecEncodeSelf(e)
  2818. }
  2819. if yyr2 || yy2arr2 {
  2820. r.WriteArrayElem()
  2821. if x.SstrUi64T == nil {
  2822. r.EncodeNil()
  2823. } else {
  2824. if false {
  2825. } else {
  2826. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2827. }
  2828. }
  2829. } else {
  2830. r.WriteMapElemKey()
  2831. if z.IsJSONHandle() {
  2832. z.WriteStr("\"SstrUi64T\"")
  2833. } else {
  2834. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  2835. }
  2836. r.WriteMapElemValue()
  2837. if x.SstrUi64T == nil {
  2838. r.EncodeNil()
  2839. } else {
  2840. if false {
  2841. } else {
  2842. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  2843. }
  2844. }
  2845. }
  2846. if yyr2 || yy2arr2 {
  2847. r.WriteArrayElem()
  2848. if false {
  2849. } else {
  2850. if z.EncBasicHandle().StringToRaw {
  2851. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  2852. } else {
  2853. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  2854. }
  2855. }
  2856. } else {
  2857. r.WriteMapElemKey()
  2858. if z.IsJSONHandle() {
  2859. z.WriteStr("\"AS\"")
  2860. } else {
  2861. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  2862. }
  2863. r.WriteMapElemValue()
  2864. if false {
  2865. } else {
  2866. if z.EncBasicHandle().StringToRaw {
  2867. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  2868. } else {
  2869. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  2870. }
  2871. }
  2872. }
  2873. if yyr2 || yy2arr2 {
  2874. r.WriteArrayElem()
  2875. if false {
  2876. } else {
  2877. r.EncodeInt(int64(x.AI64))
  2878. }
  2879. } else {
  2880. r.WriteMapElemKey()
  2881. if z.IsJSONHandle() {
  2882. z.WriteStr("\"AI64\"")
  2883. } else {
  2884. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  2885. }
  2886. r.WriteMapElemValue()
  2887. if false {
  2888. } else {
  2889. r.EncodeInt(int64(x.AI64))
  2890. }
  2891. }
  2892. if yyr2 || yy2arr2 {
  2893. r.WriteArrayElem()
  2894. if false {
  2895. } else {
  2896. r.EncodeInt(int64(x.AI16))
  2897. }
  2898. } else {
  2899. r.WriteMapElemKey()
  2900. if z.IsJSONHandle() {
  2901. z.WriteStr("\"AI16\"")
  2902. } else {
  2903. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  2904. }
  2905. r.WriteMapElemValue()
  2906. if false {
  2907. } else {
  2908. r.EncodeInt(int64(x.AI16))
  2909. }
  2910. }
  2911. if yyr2 || yy2arr2 {
  2912. r.WriteArrayElem()
  2913. if false {
  2914. } else {
  2915. r.EncodeUint(uint64(x.AUi64))
  2916. }
  2917. } else {
  2918. r.WriteMapElemKey()
  2919. if z.IsJSONHandle() {
  2920. z.WriteStr("\"AUi64\"")
  2921. } else {
  2922. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  2923. }
  2924. r.WriteMapElemValue()
  2925. if false {
  2926. } else {
  2927. r.EncodeUint(uint64(x.AUi64))
  2928. }
  2929. }
  2930. if yyr2 || yy2arr2 {
  2931. r.WriteArrayElem()
  2932. if x.ASslice == nil {
  2933. r.EncodeNil()
  2934. } else {
  2935. if false {
  2936. } else {
  2937. z.F.EncSliceStringV(x.ASslice, e)
  2938. }
  2939. }
  2940. } else {
  2941. r.WriteMapElemKey()
  2942. if z.IsJSONHandle() {
  2943. z.WriteStr("\"ASslice\"")
  2944. } else {
  2945. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  2946. }
  2947. r.WriteMapElemValue()
  2948. if x.ASslice == nil {
  2949. r.EncodeNil()
  2950. } else {
  2951. if false {
  2952. } else {
  2953. z.F.EncSliceStringV(x.ASslice, e)
  2954. }
  2955. }
  2956. }
  2957. if yyr2 || yy2arr2 {
  2958. r.WriteArrayElem()
  2959. if x.AI64slice == nil {
  2960. r.EncodeNil()
  2961. } else {
  2962. if false {
  2963. } else {
  2964. z.F.EncSliceInt64V(x.AI64slice, e)
  2965. }
  2966. }
  2967. } else {
  2968. r.WriteMapElemKey()
  2969. if z.IsJSONHandle() {
  2970. z.WriteStr("\"AI64slice\"")
  2971. } else {
  2972. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  2973. }
  2974. r.WriteMapElemValue()
  2975. if x.AI64slice == nil {
  2976. r.EncodeNil()
  2977. } else {
  2978. if false {
  2979. } else {
  2980. z.F.EncSliceInt64V(x.AI64slice, e)
  2981. }
  2982. }
  2983. }
  2984. if yyr2 || yy2arr2 {
  2985. r.WriteArrayElem()
  2986. if x.AUi64slice == nil {
  2987. r.EncodeNil()
  2988. } else {
  2989. if false {
  2990. } else {
  2991. z.F.EncSliceUint64V(x.AUi64slice, e)
  2992. }
  2993. }
  2994. } else {
  2995. r.WriteMapElemKey()
  2996. if z.IsJSONHandle() {
  2997. z.WriteStr("\"AUi64slice\"")
  2998. } else {
  2999. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3000. }
  3001. r.WriteMapElemValue()
  3002. if x.AUi64slice == nil {
  3003. r.EncodeNil()
  3004. } else {
  3005. if false {
  3006. } else {
  3007. z.F.EncSliceUint64V(x.AUi64slice, e)
  3008. }
  3009. }
  3010. }
  3011. if yyr2 || yy2arr2 {
  3012. r.WriteArrayElem()
  3013. if x.AF64slice == nil {
  3014. r.EncodeNil()
  3015. } else {
  3016. if false {
  3017. } else {
  3018. z.F.EncSliceFloat64V(x.AF64slice, e)
  3019. }
  3020. }
  3021. } else {
  3022. r.WriteMapElemKey()
  3023. if z.IsJSONHandle() {
  3024. z.WriteStr("\"AF64slice\"")
  3025. } else {
  3026. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3027. }
  3028. r.WriteMapElemValue()
  3029. if x.AF64slice == nil {
  3030. r.EncodeNil()
  3031. } else {
  3032. if false {
  3033. } else {
  3034. z.F.EncSliceFloat64V(x.AF64slice, e)
  3035. }
  3036. }
  3037. }
  3038. if yyr2 || yy2arr2 {
  3039. r.WriteArrayElem()
  3040. if x.AF32slice == nil {
  3041. r.EncodeNil()
  3042. } else {
  3043. if false {
  3044. } else {
  3045. z.F.EncSliceFloat32V(x.AF32slice, e)
  3046. }
  3047. }
  3048. } else {
  3049. r.WriteMapElemKey()
  3050. if z.IsJSONHandle() {
  3051. z.WriteStr("\"AF32slice\"")
  3052. } else {
  3053. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3054. }
  3055. r.WriteMapElemValue()
  3056. if x.AF32slice == nil {
  3057. r.EncodeNil()
  3058. } else {
  3059. if false {
  3060. } else {
  3061. z.F.EncSliceFloat32V(x.AF32slice, e)
  3062. }
  3063. }
  3064. }
  3065. if yyr2 || yy2arr2 {
  3066. r.WriteArrayElem()
  3067. if x.AMSU16 == nil {
  3068. r.EncodeNil()
  3069. } else {
  3070. if false {
  3071. } else {
  3072. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  3073. }
  3074. }
  3075. } else {
  3076. r.WriteMapElemKey()
  3077. if z.IsJSONHandle() {
  3078. z.WriteStr("\"AMSU16\"")
  3079. } else {
  3080. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3081. }
  3082. r.WriteMapElemValue()
  3083. if x.AMSU16 == nil {
  3084. r.EncodeNil()
  3085. } else {
  3086. if false {
  3087. } else {
  3088. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  3089. }
  3090. }
  3091. }
  3092. if yyr2 || yy2arr2 {
  3093. r.WriteArrayElem()
  3094. yy126 := &x.AI64arr0
  3095. if false {
  3096. } else {
  3097. h.encArray0int64((*[0]int64)(yy126), e)
  3098. }
  3099. } else {
  3100. r.WriteMapElemKey()
  3101. if z.IsJSONHandle() {
  3102. z.WriteStr("\"AI64arr0\"")
  3103. } else {
  3104. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3105. }
  3106. r.WriteMapElemValue()
  3107. yy128 := &x.AI64arr0
  3108. if false {
  3109. } else {
  3110. h.encArray0int64((*[0]int64)(yy128), e)
  3111. }
  3112. }
  3113. if yyr2 || yy2arr2 {
  3114. r.WriteArrayElem()
  3115. if x.A164slice0 == nil {
  3116. r.EncodeNil()
  3117. } else {
  3118. if false {
  3119. } else {
  3120. z.F.EncSliceInt64V(x.A164slice0, e)
  3121. }
  3122. }
  3123. } else {
  3124. r.WriteMapElemKey()
  3125. if z.IsJSONHandle() {
  3126. z.WriteStr("\"A164slice0\"")
  3127. } else {
  3128. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  3129. }
  3130. r.WriteMapElemValue()
  3131. if x.A164slice0 == nil {
  3132. r.EncodeNil()
  3133. } else {
  3134. if false {
  3135. } else {
  3136. z.F.EncSliceInt64V(x.A164slice0, e)
  3137. }
  3138. }
  3139. }
  3140. if yyr2 || yy2arr2 {
  3141. r.WriteArrayElem()
  3142. if x.AUi64sliceN == nil {
  3143. r.EncodeNil()
  3144. } else {
  3145. if false {
  3146. } else {
  3147. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  3148. }
  3149. }
  3150. } else {
  3151. r.WriteMapElemKey()
  3152. if z.IsJSONHandle() {
  3153. z.WriteStr("\"AUi64sliceN\"")
  3154. } else {
  3155. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3156. }
  3157. r.WriteMapElemValue()
  3158. if x.AUi64sliceN == nil {
  3159. r.EncodeNil()
  3160. } else {
  3161. if false {
  3162. } else {
  3163. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  3164. }
  3165. }
  3166. }
  3167. if yyr2 || yy2arr2 {
  3168. r.WriteArrayElem()
  3169. if x.AMSU16N == nil {
  3170. r.EncodeNil()
  3171. } else {
  3172. if false {
  3173. } else {
  3174. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  3175. }
  3176. }
  3177. } else {
  3178. r.WriteMapElemKey()
  3179. if z.IsJSONHandle() {
  3180. z.WriteStr("\"AMSU16N\"")
  3181. } else {
  3182. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3183. }
  3184. r.WriteMapElemValue()
  3185. if x.AMSU16N == nil {
  3186. r.EncodeNil()
  3187. } else {
  3188. if false {
  3189. } else {
  3190. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  3191. }
  3192. }
  3193. }
  3194. if yyr2 || yy2arr2 {
  3195. r.WriteArrayElem()
  3196. if x.AMSU16E == nil {
  3197. r.EncodeNil()
  3198. } else {
  3199. if false {
  3200. } else {
  3201. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  3202. }
  3203. }
  3204. } else {
  3205. r.WriteMapElemKey()
  3206. if z.IsJSONHandle() {
  3207. z.WriteStr("\"AMSU16E\"")
  3208. } else {
  3209. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3210. }
  3211. r.WriteMapElemValue()
  3212. if x.AMSU16E == nil {
  3213. r.EncodeNil()
  3214. } else {
  3215. if false {
  3216. } else {
  3217. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  3218. }
  3219. }
  3220. }
  3221. if yyr2 || yy2arr2 {
  3222. r.WriteArrayElem()
  3223. yy143 := &x.NotAnon
  3224. yy143.CodecEncodeSelf(e)
  3225. } else {
  3226. r.WriteMapElemKey()
  3227. if z.IsJSONHandle() {
  3228. z.WriteStr("\"NotAnon\"")
  3229. } else {
  3230. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3231. }
  3232. r.WriteMapElemValue()
  3233. yy145 := &x.NotAnon
  3234. yy145.CodecEncodeSelf(e)
  3235. }
  3236. if yyr2 || yy2arr2 {
  3237. r.WriteArrayElem()
  3238. if x.Nmap == nil {
  3239. r.EncodeNil()
  3240. } else {
  3241. if false {
  3242. } else {
  3243. z.F.EncMapStringBoolV(x.Nmap, e)
  3244. }
  3245. }
  3246. } else {
  3247. r.WriteMapElemKey()
  3248. if z.IsJSONHandle() {
  3249. z.WriteStr("\"Nmap\"")
  3250. } else {
  3251. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3252. }
  3253. r.WriteMapElemValue()
  3254. if x.Nmap == nil {
  3255. r.EncodeNil()
  3256. } else {
  3257. if false {
  3258. } else {
  3259. z.F.EncMapStringBoolV(x.Nmap, e)
  3260. }
  3261. }
  3262. }
  3263. if yyr2 || yy2arr2 {
  3264. r.WriteArrayElem()
  3265. if x.Nslice == nil {
  3266. r.EncodeNil()
  3267. } else {
  3268. if false {
  3269. } else {
  3270. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3271. }
  3272. }
  3273. } else {
  3274. r.WriteMapElemKey()
  3275. if z.IsJSONHandle() {
  3276. z.WriteStr("\"Nslice\"")
  3277. } else {
  3278. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3279. }
  3280. r.WriteMapElemValue()
  3281. if x.Nslice == nil {
  3282. r.EncodeNil()
  3283. } else {
  3284. if false {
  3285. } else {
  3286. r.EncodeStringBytesRaw([]byte(x.Nslice))
  3287. }
  3288. }
  3289. }
  3290. var yyn153 bool
  3291. if x.Nint64 == nil {
  3292. yyn153 = true
  3293. goto LABEL153
  3294. }
  3295. LABEL153:
  3296. if yyr2 || yy2arr2 {
  3297. if yyn153 {
  3298. r.WriteArrayElem()
  3299. r.EncodeNil()
  3300. } else {
  3301. r.WriteArrayElem()
  3302. if x.Nint64 == nil {
  3303. r.EncodeNil()
  3304. } else {
  3305. yy154 := *x.Nint64
  3306. if false {
  3307. } else {
  3308. r.EncodeInt(int64(yy154))
  3309. }
  3310. }
  3311. }
  3312. } else {
  3313. r.WriteMapElemKey()
  3314. if z.IsJSONHandle() {
  3315. z.WriteStr("\"Nint64\"")
  3316. } else {
  3317. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3318. }
  3319. r.WriteMapElemValue()
  3320. if yyn153 {
  3321. r.EncodeNil()
  3322. } else {
  3323. if x.Nint64 == nil {
  3324. r.EncodeNil()
  3325. } else {
  3326. yy156 := *x.Nint64
  3327. if false {
  3328. } else {
  3329. r.EncodeInt(int64(yy156))
  3330. }
  3331. }
  3332. }
  3333. }
  3334. if yyr2 || yy2arr2 {
  3335. r.WriteArrayEnd()
  3336. } else {
  3337. r.WriteMapEnd()
  3338. }
  3339. }
  3340. }
  3341. }
  3342. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  3343. var h codecSelfer19780
  3344. z, r := GenHelperDecoder(d)
  3345. _, _, _ = h, z, r
  3346. if false {
  3347. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  3348. z.DecExtension(x, yyxt1)
  3349. } else {
  3350. yyct2 := r.ContainerType()
  3351. if yyct2 == codecSelferValueTypeMap19780 {
  3352. yyl2 := r.ReadMapStart()
  3353. if yyl2 == 0 {
  3354. r.ReadMapEnd()
  3355. } else {
  3356. x.codecDecodeSelfFromMap(yyl2, d)
  3357. }
  3358. } else if yyct2 == codecSelferValueTypeArray19780 {
  3359. yyl2 := r.ReadArrayStart()
  3360. if yyl2 == 0 {
  3361. r.ReadArrayEnd()
  3362. } else {
  3363. x.codecDecodeSelfFromArray(yyl2, d)
  3364. }
  3365. } else {
  3366. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3367. }
  3368. }
  3369. }
  3370. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  3371. var h codecSelfer19780
  3372. z, r := GenHelperDecoder(d)
  3373. _, _, _ = h, z, r
  3374. var yyhl3 bool = l >= 0
  3375. for yyj3 := 0; ; yyj3++ {
  3376. if yyhl3 {
  3377. if yyj3 >= l {
  3378. break
  3379. }
  3380. } else {
  3381. if r.CheckBreak() {
  3382. break
  3383. }
  3384. }
  3385. r.ReadMapElemKey()
  3386. yys3 := z.StringView(r.DecodeStringAsBytes())
  3387. r.ReadMapElemValue()
  3388. switch yys3 {
  3389. case "S":
  3390. if r.TryDecodeAsNil() {
  3391. x.S = ""
  3392. } else {
  3393. x.S = (string)(r.DecodeString())
  3394. }
  3395. case "I64":
  3396. if r.TryDecodeAsNil() {
  3397. x.I64 = 0
  3398. } else {
  3399. x.I64 = (int64)(r.DecodeInt64())
  3400. }
  3401. case "I32":
  3402. if r.TryDecodeAsNil() {
  3403. x.I32 = 0
  3404. } else {
  3405. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3406. }
  3407. case "I16":
  3408. if r.TryDecodeAsNil() {
  3409. x.I16 = 0
  3410. } else {
  3411. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3412. }
  3413. case "I8":
  3414. if r.TryDecodeAsNil() {
  3415. x.I8 = 0
  3416. } else {
  3417. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3418. }
  3419. case "I64n":
  3420. if r.TryDecodeAsNil() {
  3421. x.I64n = 0
  3422. } else {
  3423. x.I64n = (int64)(r.DecodeInt64())
  3424. }
  3425. case "I32n":
  3426. if r.TryDecodeAsNil() {
  3427. x.I32n = 0
  3428. } else {
  3429. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3430. }
  3431. case "I16n":
  3432. if r.TryDecodeAsNil() {
  3433. x.I16n = 0
  3434. } else {
  3435. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3436. }
  3437. case "I8n":
  3438. if r.TryDecodeAsNil() {
  3439. x.I8n = 0
  3440. } else {
  3441. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3442. }
  3443. case "Ui64":
  3444. if r.TryDecodeAsNil() {
  3445. x.Ui64 = 0
  3446. } else {
  3447. x.Ui64 = (uint64)(r.DecodeUint64())
  3448. }
  3449. case "Ui32":
  3450. if r.TryDecodeAsNil() {
  3451. x.Ui32 = 0
  3452. } else {
  3453. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3454. }
  3455. case "Ui16":
  3456. if r.TryDecodeAsNil() {
  3457. x.Ui16 = 0
  3458. } else {
  3459. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3460. }
  3461. case "Ui8":
  3462. if r.TryDecodeAsNil() {
  3463. x.Ui8 = 0
  3464. } else {
  3465. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3466. }
  3467. case "F64":
  3468. if r.TryDecodeAsNil() {
  3469. x.F64 = 0
  3470. } else {
  3471. x.F64 = (float64)(r.DecodeFloat64())
  3472. }
  3473. case "F32":
  3474. if r.TryDecodeAsNil() {
  3475. x.F32 = 0
  3476. } else {
  3477. x.F32 = (float32)(r.DecodeFloat32As64())
  3478. }
  3479. case "B":
  3480. if r.TryDecodeAsNil() {
  3481. x.B = false
  3482. } else {
  3483. x.B = (bool)(r.DecodeBool())
  3484. }
  3485. case "By":
  3486. if r.TryDecodeAsNil() {
  3487. x.By = 0
  3488. } else {
  3489. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3490. }
  3491. case "Sslice":
  3492. if r.TryDecodeAsNil() {
  3493. x.Sslice = nil
  3494. } else {
  3495. if false {
  3496. } else {
  3497. z.F.DecSliceStringX(&x.Sslice, d)
  3498. }
  3499. }
  3500. case "I64slice":
  3501. if r.TryDecodeAsNil() {
  3502. x.I64slice = nil
  3503. } else {
  3504. if false {
  3505. } else {
  3506. z.F.DecSliceInt64X(&x.I64slice, d)
  3507. }
  3508. }
  3509. case "I16slice":
  3510. if r.TryDecodeAsNil() {
  3511. x.I16slice = nil
  3512. } else {
  3513. if false {
  3514. } else {
  3515. z.F.DecSliceInt16X(&x.I16slice, d)
  3516. }
  3517. }
  3518. case "Ui64slice":
  3519. if r.TryDecodeAsNil() {
  3520. x.Ui64slice = nil
  3521. } else {
  3522. if false {
  3523. } else {
  3524. z.F.DecSliceUint64X(&x.Ui64slice, d)
  3525. }
  3526. }
  3527. case "Ui8slice":
  3528. if r.TryDecodeAsNil() {
  3529. x.Ui8slice = nil
  3530. } else {
  3531. if false {
  3532. } else {
  3533. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  3534. }
  3535. }
  3536. case "Bslice":
  3537. if r.TryDecodeAsNil() {
  3538. x.Bslice = nil
  3539. } else {
  3540. if false {
  3541. } else {
  3542. z.F.DecSliceBoolX(&x.Bslice, d)
  3543. }
  3544. }
  3545. case "Byslice":
  3546. if r.TryDecodeAsNil() {
  3547. x.Byslice = nil
  3548. } else {
  3549. if false {
  3550. } else {
  3551. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  3552. }
  3553. }
  3554. case "Iptrslice":
  3555. if r.TryDecodeAsNil() {
  3556. x.Iptrslice = nil
  3557. } else {
  3558. if false {
  3559. } else {
  3560. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  3561. }
  3562. }
  3563. case "WrapSliceInt64":
  3564. if r.TryDecodeAsNil() {
  3565. x.WrapSliceInt64 = nil
  3566. } else {
  3567. x.WrapSliceInt64.CodecDecodeSelf(d)
  3568. }
  3569. case "WrapSliceString":
  3570. if r.TryDecodeAsNil() {
  3571. x.WrapSliceString = nil
  3572. } else {
  3573. x.WrapSliceString.CodecDecodeSelf(d)
  3574. }
  3575. case "Msi64":
  3576. if r.TryDecodeAsNil() {
  3577. x.Msi64 = nil
  3578. } else {
  3579. if false {
  3580. } else {
  3581. z.F.DecMapStringInt64X(&x.Msi64, d)
  3582. }
  3583. }
  3584. case "Simplef":
  3585. if r.TryDecodeAsNil() {
  3586. x.Simplef = testSimpleFields{}
  3587. } else {
  3588. x.Simplef.CodecDecodeSelf(d)
  3589. }
  3590. case "SstrUi64T":
  3591. if r.TryDecodeAsNil() {
  3592. x.SstrUi64T = nil
  3593. } else {
  3594. if false {
  3595. } else {
  3596. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  3597. }
  3598. }
  3599. case "AS":
  3600. if r.TryDecodeAsNil() {
  3601. x.AnonInTestStruc.AS = ""
  3602. } else {
  3603. x.AS = (string)(r.DecodeString())
  3604. }
  3605. case "AI64":
  3606. if r.TryDecodeAsNil() {
  3607. x.AnonInTestStruc.AI64 = 0
  3608. } else {
  3609. x.AI64 = (int64)(r.DecodeInt64())
  3610. }
  3611. case "AI16":
  3612. if r.TryDecodeAsNil() {
  3613. x.AnonInTestStruc.AI16 = 0
  3614. } else {
  3615. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3616. }
  3617. case "AUi64":
  3618. if r.TryDecodeAsNil() {
  3619. x.AnonInTestStruc.AUi64 = 0
  3620. } else {
  3621. x.AUi64 = (uint64)(r.DecodeUint64())
  3622. }
  3623. case "ASslice":
  3624. if r.TryDecodeAsNil() {
  3625. x.AnonInTestStruc.ASslice = nil
  3626. } else {
  3627. if false {
  3628. } else {
  3629. z.F.DecSliceStringX(&x.ASslice, d)
  3630. }
  3631. }
  3632. case "AI64slice":
  3633. if r.TryDecodeAsNil() {
  3634. x.AnonInTestStruc.AI64slice = nil
  3635. } else {
  3636. if false {
  3637. } else {
  3638. z.F.DecSliceInt64X(&x.AI64slice, d)
  3639. }
  3640. }
  3641. case "AUi64slice":
  3642. if r.TryDecodeAsNil() {
  3643. x.AnonInTestStruc.AUi64slice = nil
  3644. } else {
  3645. if false {
  3646. } else {
  3647. z.F.DecSliceUint64X(&x.AUi64slice, d)
  3648. }
  3649. }
  3650. case "AF64slice":
  3651. if r.TryDecodeAsNil() {
  3652. x.AnonInTestStruc.AF64slice = nil
  3653. } else {
  3654. if false {
  3655. } else {
  3656. z.F.DecSliceFloat64X(&x.AF64slice, d)
  3657. }
  3658. }
  3659. case "AF32slice":
  3660. if r.TryDecodeAsNil() {
  3661. x.AnonInTestStruc.AF32slice = nil
  3662. } else {
  3663. if false {
  3664. } else {
  3665. z.F.DecSliceFloat32X(&x.AF32slice, d)
  3666. }
  3667. }
  3668. case "AMSU16":
  3669. if r.TryDecodeAsNil() {
  3670. x.AnonInTestStruc.AMSU16 = nil
  3671. } else {
  3672. if false {
  3673. } else {
  3674. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  3675. }
  3676. }
  3677. case "AI64arr0":
  3678. if r.TryDecodeAsNil() {
  3679. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3680. } else {
  3681. if false {
  3682. } else {
  3683. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  3684. }
  3685. }
  3686. case "A164slice0":
  3687. if r.TryDecodeAsNil() {
  3688. x.AnonInTestStruc.A164slice0 = nil
  3689. } else {
  3690. if false {
  3691. } else {
  3692. z.F.DecSliceInt64X(&x.A164slice0, d)
  3693. }
  3694. }
  3695. case "AUi64sliceN":
  3696. if r.TryDecodeAsNil() {
  3697. x.AnonInTestStruc.AUi64sliceN = nil
  3698. } else {
  3699. if false {
  3700. } else {
  3701. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  3702. }
  3703. }
  3704. case "AMSU16N":
  3705. if r.TryDecodeAsNil() {
  3706. x.AnonInTestStruc.AMSU16N = nil
  3707. } else {
  3708. if false {
  3709. } else {
  3710. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  3711. }
  3712. }
  3713. case "AMSU16E":
  3714. if r.TryDecodeAsNil() {
  3715. x.AnonInTestStruc.AMSU16E = nil
  3716. } else {
  3717. if false {
  3718. } else {
  3719. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  3720. }
  3721. }
  3722. case "NotAnon":
  3723. if r.TryDecodeAsNil() {
  3724. x.NotAnon = AnonInTestStruc{}
  3725. } else {
  3726. x.NotAnon.CodecDecodeSelf(d)
  3727. }
  3728. case "Nmap":
  3729. if r.TryDecodeAsNil() {
  3730. x.Nmap = nil
  3731. } else {
  3732. if false {
  3733. } else {
  3734. z.F.DecMapStringBoolX(&x.Nmap, d)
  3735. }
  3736. }
  3737. case "Nslice":
  3738. if r.TryDecodeAsNil() {
  3739. x.Nslice = nil
  3740. } else {
  3741. if false {
  3742. } else {
  3743. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3744. }
  3745. }
  3746. case "Nint64":
  3747. if r.TryDecodeAsNil() {
  3748. if true && x.Nint64 != nil {
  3749. x.Nint64 = nil
  3750. }
  3751. } else {
  3752. if x.Nint64 == nil {
  3753. x.Nint64 = new(int64)
  3754. }
  3755. if false {
  3756. } else {
  3757. *x.Nint64 = (int64)(r.DecodeInt64())
  3758. }
  3759. }
  3760. default:
  3761. z.DecStructFieldNotFound(-1, yys3)
  3762. } // end switch yys3
  3763. } // end for yyj3
  3764. r.ReadMapEnd()
  3765. }
  3766. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  3767. var h codecSelfer19780
  3768. z, r := GenHelperDecoder(d)
  3769. _, _, _ = h, z, r
  3770. var yyj77 int
  3771. var yyb77 bool
  3772. var yyhl77 bool = l >= 0
  3773. yyj77++
  3774. if yyhl77 {
  3775. yyb77 = yyj77 > l
  3776. } else {
  3777. yyb77 = r.CheckBreak()
  3778. }
  3779. if yyb77 {
  3780. r.ReadArrayEnd()
  3781. return
  3782. }
  3783. r.ReadArrayElem()
  3784. if r.TryDecodeAsNil() {
  3785. x.S = ""
  3786. } else {
  3787. x.S = (string)(r.DecodeString())
  3788. }
  3789. yyj77++
  3790. if yyhl77 {
  3791. yyb77 = yyj77 > l
  3792. } else {
  3793. yyb77 = r.CheckBreak()
  3794. }
  3795. if yyb77 {
  3796. r.ReadArrayEnd()
  3797. return
  3798. }
  3799. r.ReadArrayElem()
  3800. if r.TryDecodeAsNil() {
  3801. x.I64 = 0
  3802. } else {
  3803. x.I64 = (int64)(r.DecodeInt64())
  3804. }
  3805. yyj77++
  3806. if yyhl77 {
  3807. yyb77 = yyj77 > l
  3808. } else {
  3809. yyb77 = r.CheckBreak()
  3810. }
  3811. if yyb77 {
  3812. r.ReadArrayEnd()
  3813. return
  3814. }
  3815. r.ReadArrayElem()
  3816. if r.TryDecodeAsNil() {
  3817. x.I32 = 0
  3818. } else {
  3819. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3820. }
  3821. yyj77++
  3822. if yyhl77 {
  3823. yyb77 = yyj77 > l
  3824. } else {
  3825. yyb77 = r.CheckBreak()
  3826. }
  3827. if yyb77 {
  3828. r.ReadArrayEnd()
  3829. return
  3830. }
  3831. r.ReadArrayElem()
  3832. if r.TryDecodeAsNil() {
  3833. x.I16 = 0
  3834. } else {
  3835. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3836. }
  3837. yyj77++
  3838. if yyhl77 {
  3839. yyb77 = yyj77 > l
  3840. } else {
  3841. yyb77 = r.CheckBreak()
  3842. }
  3843. if yyb77 {
  3844. r.ReadArrayEnd()
  3845. return
  3846. }
  3847. r.ReadArrayElem()
  3848. if r.TryDecodeAsNil() {
  3849. x.I8 = 0
  3850. } else {
  3851. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3852. }
  3853. yyj77++
  3854. if yyhl77 {
  3855. yyb77 = yyj77 > l
  3856. } else {
  3857. yyb77 = r.CheckBreak()
  3858. }
  3859. if yyb77 {
  3860. r.ReadArrayEnd()
  3861. return
  3862. }
  3863. r.ReadArrayElem()
  3864. if r.TryDecodeAsNil() {
  3865. x.I64n = 0
  3866. } else {
  3867. x.I64n = (int64)(r.DecodeInt64())
  3868. }
  3869. yyj77++
  3870. if yyhl77 {
  3871. yyb77 = yyj77 > l
  3872. } else {
  3873. yyb77 = r.CheckBreak()
  3874. }
  3875. if yyb77 {
  3876. r.ReadArrayEnd()
  3877. return
  3878. }
  3879. r.ReadArrayElem()
  3880. if r.TryDecodeAsNil() {
  3881. x.I32n = 0
  3882. } else {
  3883. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3884. }
  3885. yyj77++
  3886. if yyhl77 {
  3887. yyb77 = yyj77 > l
  3888. } else {
  3889. yyb77 = r.CheckBreak()
  3890. }
  3891. if yyb77 {
  3892. r.ReadArrayEnd()
  3893. return
  3894. }
  3895. r.ReadArrayElem()
  3896. if r.TryDecodeAsNil() {
  3897. x.I16n = 0
  3898. } else {
  3899. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3900. }
  3901. yyj77++
  3902. if yyhl77 {
  3903. yyb77 = yyj77 > l
  3904. } else {
  3905. yyb77 = r.CheckBreak()
  3906. }
  3907. if yyb77 {
  3908. r.ReadArrayEnd()
  3909. return
  3910. }
  3911. r.ReadArrayElem()
  3912. if r.TryDecodeAsNil() {
  3913. x.I8n = 0
  3914. } else {
  3915. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3916. }
  3917. yyj77++
  3918. if yyhl77 {
  3919. yyb77 = yyj77 > l
  3920. } else {
  3921. yyb77 = r.CheckBreak()
  3922. }
  3923. if yyb77 {
  3924. r.ReadArrayEnd()
  3925. return
  3926. }
  3927. r.ReadArrayElem()
  3928. if r.TryDecodeAsNil() {
  3929. x.Ui64 = 0
  3930. } else {
  3931. x.Ui64 = (uint64)(r.DecodeUint64())
  3932. }
  3933. yyj77++
  3934. if yyhl77 {
  3935. yyb77 = yyj77 > l
  3936. } else {
  3937. yyb77 = r.CheckBreak()
  3938. }
  3939. if yyb77 {
  3940. r.ReadArrayEnd()
  3941. return
  3942. }
  3943. r.ReadArrayElem()
  3944. if r.TryDecodeAsNil() {
  3945. x.Ui32 = 0
  3946. } else {
  3947. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3948. }
  3949. yyj77++
  3950. if yyhl77 {
  3951. yyb77 = yyj77 > l
  3952. } else {
  3953. yyb77 = r.CheckBreak()
  3954. }
  3955. if yyb77 {
  3956. r.ReadArrayEnd()
  3957. return
  3958. }
  3959. r.ReadArrayElem()
  3960. if r.TryDecodeAsNil() {
  3961. x.Ui16 = 0
  3962. } else {
  3963. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3964. }
  3965. yyj77++
  3966. if yyhl77 {
  3967. yyb77 = yyj77 > l
  3968. } else {
  3969. yyb77 = r.CheckBreak()
  3970. }
  3971. if yyb77 {
  3972. r.ReadArrayEnd()
  3973. return
  3974. }
  3975. r.ReadArrayElem()
  3976. if r.TryDecodeAsNil() {
  3977. x.Ui8 = 0
  3978. } else {
  3979. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3980. }
  3981. yyj77++
  3982. if yyhl77 {
  3983. yyb77 = yyj77 > l
  3984. } else {
  3985. yyb77 = r.CheckBreak()
  3986. }
  3987. if yyb77 {
  3988. r.ReadArrayEnd()
  3989. return
  3990. }
  3991. r.ReadArrayElem()
  3992. if r.TryDecodeAsNil() {
  3993. x.F64 = 0
  3994. } else {
  3995. x.F64 = (float64)(r.DecodeFloat64())
  3996. }
  3997. yyj77++
  3998. if yyhl77 {
  3999. yyb77 = yyj77 > l
  4000. } else {
  4001. yyb77 = r.CheckBreak()
  4002. }
  4003. if yyb77 {
  4004. r.ReadArrayEnd()
  4005. return
  4006. }
  4007. r.ReadArrayElem()
  4008. if r.TryDecodeAsNil() {
  4009. x.F32 = 0
  4010. } else {
  4011. x.F32 = (float32)(r.DecodeFloat32As64())
  4012. }
  4013. yyj77++
  4014. if yyhl77 {
  4015. yyb77 = yyj77 > l
  4016. } else {
  4017. yyb77 = r.CheckBreak()
  4018. }
  4019. if yyb77 {
  4020. r.ReadArrayEnd()
  4021. return
  4022. }
  4023. r.ReadArrayElem()
  4024. if r.TryDecodeAsNil() {
  4025. x.B = false
  4026. } else {
  4027. x.B = (bool)(r.DecodeBool())
  4028. }
  4029. yyj77++
  4030. if yyhl77 {
  4031. yyb77 = yyj77 > l
  4032. } else {
  4033. yyb77 = r.CheckBreak()
  4034. }
  4035. if yyb77 {
  4036. r.ReadArrayEnd()
  4037. return
  4038. }
  4039. r.ReadArrayElem()
  4040. if r.TryDecodeAsNil() {
  4041. x.By = 0
  4042. } else {
  4043. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4044. }
  4045. yyj77++
  4046. if yyhl77 {
  4047. yyb77 = yyj77 > l
  4048. } else {
  4049. yyb77 = r.CheckBreak()
  4050. }
  4051. if yyb77 {
  4052. r.ReadArrayEnd()
  4053. return
  4054. }
  4055. r.ReadArrayElem()
  4056. if r.TryDecodeAsNil() {
  4057. x.Sslice = nil
  4058. } else {
  4059. if false {
  4060. } else {
  4061. z.F.DecSliceStringX(&x.Sslice, d)
  4062. }
  4063. }
  4064. yyj77++
  4065. if yyhl77 {
  4066. yyb77 = yyj77 > l
  4067. } else {
  4068. yyb77 = r.CheckBreak()
  4069. }
  4070. if yyb77 {
  4071. r.ReadArrayEnd()
  4072. return
  4073. }
  4074. r.ReadArrayElem()
  4075. if r.TryDecodeAsNil() {
  4076. x.I64slice = nil
  4077. } else {
  4078. if false {
  4079. } else {
  4080. z.F.DecSliceInt64X(&x.I64slice, d)
  4081. }
  4082. }
  4083. yyj77++
  4084. if yyhl77 {
  4085. yyb77 = yyj77 > l
  4086. } else {
  4087. yyb77 = r.CheckBreak()
  4088. }
  4089. if yyb77 {
  4090. r.ReadArrayEnd()
  4091. return
  4092. }
  4093. r.ReadArrayElem()
  4094. if r.TryDecodeAsNil() {
  4095. x.I16slice = nil
  4096. } else {
  4097. if false {
  4098. } else {
  4099. z.F.DecSliceInt16X(&x.I16slice, d)
  4100. }
  4101. }
  4102. yyj77++
  4103. if yyhl77 {
  4104. yyb77 = yyj77 > l
  4105. } else {
  4106. yyb77 = r.CheckBreak()
  4107. }
  4108. if yyb77 {
  4109. r.ReadArrayEnd()
  4110. return
  4111. }
  4112. r.ReadArrayElem()
  4113. if r.TryDecodeAsNil() {
  4114. x.Ui64slice = nil
  4115. } else {
  4116. if false {
  4117. } else {
  4118. z.F.DecSliceUint64X(&x.Ui64slice, d)
  4119. }
  4120. }
  4121. yyj77++
  4122. if yyhl77 {
  4123. yyb77 = yyj77 > l
  4124. } else {
  4125. yyb77 = r.CheckBreak()
  4126. }
  4127. if yyb77 {
  4128. r.ReadArrayEnd()
  4129. return
  4130. }
  4131. r.ReadArrayElem()
  4132. if r.TryDecodeAsNil() {
  4133. x.Ui8slice = nil
  4134. } else {
  4135. if false {
  4136. } else {
  4137. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  4138. }
  4139. }
  4140. yyj77++
  4141. if yyhl77 {
  4142. yyb77 = yyj77 > l
  4143. } else {
  4144. yyb77 = r.CheckBreak()
  4145. }
  4146. if yyb77 {
  4147. r.ReadArrayEnd()
  4148. return
  4149. }
  4150. r.ReadArrayElem()
  4151. if r.TryDecodeAsNil() {
  4152. x.Bslice = nil
  4153. } else {
  4154. if false {
  4155. } else {
  4156. z.F.DecSliceBoolX(&x.Bslice, d)
  4157. }
  4158. }
  4159. yyj77++
  4160. if yyhl77 {
  4161. yyb77 = yyj77 > l
  4162. } else {
  4163. yyb77 = r.CheckBreak()
  4164. }
  4165. if yyb77 {
  4166. r.ReadArrayEnd()
  4167. return
  4168. }
  4169. r.ReadArrayElem()
  4170. if r.TryDecodeAsNil() {
  4171. x.Byslice = nil
  4172. } else {
  4173. if false {
  4174. } else {
  4175. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  4176. }
  4177. }
  4178. yyj77++
  4179. if yyhl77 {
  4180. yyb77 = yyj77 > l
  4181. } else {
  4182. yyb77 = r.CheckBreak()
  4183. }
  4184. if yyb77 {
  4185. r.ReadArrayEnd()
  4186. return
  4187. }
  4188. r.ReadArrayElem()
  4189. if r.TryDecodeAsNil() {
  4190. x.Iptrslice = nil
  4191. } else {
  4192. if false {
  4193. } else {
  4194. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  4195. }
  4196. }
  4197. yyj77++
  4198. if yyhl77 {
  4199. yyb77 = yyj77 > l
  4200. } else {
  4201. yyb77 = r.CheckBreak()
  4202. }
  4203. if yyb77 {
  4204. r.ReadArrayEnd()
  4205. return
  4206. }
  4207. r.ReadArrayElem()
  4208. if r.TryDecodeAsNil() {
  4209. x.WrapSliceInt64 = nil
  4210. } else {
  4211. x.WrapSliceInt64.CodecDecodeSelf(d)
  4212. }
  4213. yyj77++
  4214. if yyhl77 {
  4215. yyb77 = yyj77 > l
  4216. } else {
  4217. yyb77 = r.CheckBreak()
  4218. }
  4219. if yyb77 {
  4220. r.ReadArrayEnd()
  4221. return
  4222. }
  4223. r.ReadArrayElem()
  4224. if r.TryDecodeAsNil() {
  4225. x.WrapSliceString = nil
  4226. } else {
  4227. x.WrapSliceString.CodecDecodeSelf(d)
  4228. }
  4229. yyj77++
  4230. if yyhl77 {
  4231. yyb77 = yyj77 > l
  4232. } else {
  4233. yyb77 = r.CheckBreak()
  4234. }
  4235. if yyb77 {
  4236. r.ReadArrayEnd()
  4237. return
  4238. }
  4239. r.ReadArrayElem()
  4240. if r.TryDecodeAsNil() {
  4241. x.Msi64 = nil
  4242. } else {
  4243. if false {
  4244. } else {
  4245. z.F.DecMapStringInt64X(&x.Msi64, d)
  4246. }
  4247. }
  4248. yyj77++
  4249. if yyhl77 {
  4250. yyb77 = yyj77 > l
  4251. } else {
  4252. yyb77 = r.CheckBreak()
  4253. }
  4254. if yyb77 {
  4255. r.ReadArrayEnd()
  4256. return
  4257. }
  4258. r.ReadArrayElem()
  4259. if r.TryDecodeAsNil() {
  4260. x.Simplef = testSimpleFields{}
  4261. } else {
  4262. x.Simplef.CodecDecodeSelf(d)
  4263. }
  4264. yyj77++
  4265. if yyhl77 {
  4266. yyb77 = yyj77 > l
  4267. } else {
  4268. yyb77 = r.CheckBreak()
  4269. }
  4270. if yyb77 {
  4271. r.ReadArrayEnd()
  4272. return
  4273. }
  4274. r.ReadArrayElem()
  4275. if r.TryDecodeAsNil() {
  4276. x.SstrUi64T = nil
  4277. } else {
  4278. if false {
  4279. } else {
  4280. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  4281. }
  4282. }
  4283. yyj77++
  4284. if yyhl77 {
  4285. yyb77 = yyj77 > l
  4286. } else {
  4287. yyb77 = r.CheckBreak()
  4288. }
  4289. if yyb77 {
  4290. r.ReadArrayEnd()
  4291. return
  4292. }
  4293. r.ReadArrayElem()
  4294. if r.TryDecodeAsNil() {
  4295. x.AnonInTestStruc.AS = ""
  4296. } else {
  4297. x.AS = (string)(r.DecodeString())
  4298. }
  4299. yyj77++
  4300. if yyhl77 {
  4301. yyb77 = yyj77 > l
  4302. } else {
  4303. yyb77 = r.CheckBreak()
  4304. }
  4305. if yyb77 {
  4306. r.ReadArrayEnd()
  4307. return
  4308. }
  4309. r.ReadArrayElem()
  4310. if r.TryDecodeAsNil() {
  4311. x.AnonInTestStruc.AI64 = 0
  4312. } else {
  4313. x.AI64 = (int64)(r.DecodeInt64())
  4314. }
  4315. yyj77++
  4316. if yyhl77 {
  4317. yyb77 = yyj77 > l
  4318. } else {
  4319. yyb77 = r.CheckBreak()
  4320. }
  4321. if yyb77 {
  4322. r.ReadArrayEnd()
  4323. return
  4324. }
  4325. r.ReadArrayElem()
  4326. if r.TryDecodeAsNil() {
  4327. x.AnonInTestStruc.AI16 = 0
  4328. } else {
  4329. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4330. }
  4331. yyj77++
  4332. if yyhl77 {
  4333. yyb77 = yyj77 > l
  4334. } else {
  4335. yyb77 = r.CheckBreak()
  4336. }
  4337. if yyb77 {
  4338. r.ReadArrayEnd()
  4339. return
  4340. }
  4341. r.ReadArrayElem()
  4342. if r.TryDecodeAsNil() {
  4343. x.AnonInTestStruc.AUi64 = 0
  4344. } else {
  4345. x.AUi64 = (uint64)(r.DecodeUint64())
  4346. }
  4347. yyj77++
  4348. if yyhl77 {
  4349. yyb77 = yyj77 > l
  4350. } else {
  4351. yyb77 = r.CheckBreak()
  4352. }
  4353. if yyb77 {
  4354. r.ReadArrayEnd()
  4355. return
  4356. }
  4357. r.ReadArrayElem()
  4358. if r.TryDecodeAsNil() {
  4359. x.AnonInTestStruc.ASslice = nil
  4360. } else {
  4361. if false {
  4362. } else {
  4363. z.F.DecSliceStringX(&x.ASslice, d)
  4364. }
  4365. }
  4366. yyj77++
  4367. if yyhl77 {
  4368. yyb77 = yyj77 > l
  4369. } else {
  4370. yyb77 = r.CheckBreak()
  4371. }
  4372. if yyb77 {
  4373. r.ReadArrayEnd()
  4374. return
  4375. }
  4376. r.ReadArrayElem()
  4377. if r.TryDecodeAsNil() {
  4378. x.AnonInTestStruc.AI64slice = nil
  4379. } else {
  4380. if false {
  4381. } else {
  4382. z.F.DecSliceInt64X(&x.AI64slice, d)
  4383. }
  4384. }
  4385. yyj77++
  4386. if yyhl77 {
  4387. yyb77 = yyj77 > l
  4388. } else {
  4389. yyb77 = r.CheckBreak()
  4390. }
  4391. if yyb77 {
  4392. r.ReadArrayEnd()
  4393. return
  4394. }
  4395. r.ReadArrayElem()
  4396. if r.TryDecodeAsNil() {
  4397. x.AnonInTestStruc.AUi64slice = nil
  4398. } else {
  4399. if false {
  4400. } else {
  4401. z.F.DecSliceUint64X(&x.AUi64slice, d)
  4402. }
  4403. }
  4404. yyj77++
  4405. if yyhl77 {
  4406. yyb77 = yyj77 > l
  4407. } else {
  4408. yyb77 = r.CheckBreak()
  4409. }
  4410. if yyb77 {
  4411. r.ReadArrayEnd()
  4412. return
  4413. }
  4414. r.ReadArrayElem()
  4415. if r.TryDecodeAsNil() {
  4416. x.AnonInTestStruc.AF64slice = nil
  4417. } else {
  4418. if false {
  4419. } else {
  4420. z.F.DecSliceFloat64X(&x.AF64slice, d)
  4421. }
  4422. }
  4423. yyj77++
  4424. if yyhl77 {
  4425. yyb77 = yyj77 > l
  4426. } else {
  4427. yyb77 = r.CheckBreak()
  4428. }
  4429. if yyb77 {
  4430. r.ReadArrayEnd()
  4431. return
  4432. }
  4433. r.ReadArrayElem()
  4434. if r.TryDecodeAsNil() {
  4435. x.AnonInTestStruc.AF32slice = nil
  4436. } else {
  4437. if false {
  4438. } else {
  4439. z.F.DecSliceFloat32X(&x.AF32slice, d)
  4440. }
  4441. }
  4442. yyj77++
  4443. if yyhl77 {
  4444. yyb77 = yyj77 > l
  4445. } else {
  4446. yyb77 = r.CheckBreak()
  4447. }
  4448. if yyb77 {
  4449. r.ReadArrayEnd()
  4450. return
  4451. }
  4452. r.ReadArrayElem()
  4453. if r.TryDecodeAsNil() {
  4454. x.AnonInTestStruc.AMSU16 = nil
  4455. } else {
  4456. if false {
  4457. } else {
  4458. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  4459. }
  4460. }
  4461. yyj77++
  4462. if yyhl77 {
  4463. yyb77 = yyj77 > l
  4464. } else {
  4465. yyb77 = r.CheckBreak()
  4466. }
  4467. if yyb77 {
  4468. r.ReadArrayEnd()
  4469. return
  4470. }
  4471. r.ReadArrayElem()
  4472. if r.TryDecodeAsNil() {
  4473. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  4474. } else {
  4475. if false {
  4476. } else {
  4477. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  4478. }
  4479. }
  4480. yyj77++
  4481. if yyhl77 {
  4482. yyb77 = yyj77 > l
  4483. } else {
  4484. yyb77 = r.CheckBreak()
  4485. }
  4486. if yyb77 {
  4487. r.ReadArrayEnd()
  4488. return
  4489. }
  4490. r.ReadArrayElem()
  4491. if r.TryDecodeAsNil() {
  4492. x.AnonInTestStruc.A164slice0 = nil
  4493. } else {
  4494. if false {
  4495. } else {
  4496. z.F.DecSliceInt64X(&x.A164slice0, d)
  4497. }
  4498. }
  4499. yyj77++
  4500. if yyhl77 {
  4501. yyb77 = yyj77 > l
  4502. } else {
  4503. yyb77 = r.CheckBreak()
  4504. }
  4505. if yyb77 {
  4506. r.ReadArrayEnd()
  4507. return
  4508. }
  4509. r.ReadArrayElem()
  4510. if r.TryDecodeAsNil() {
  4511. x.AnonInTestStruc.AUi64sliceN = nil
  4512. } else {
  4513. if false {
  4514. } else {
  4515. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  4516. }
  4517. }
  4518. yyj77++
  4519. if yyhl77 {
  4520. yyb77 = yyj77 > l
  4521. } else {
  4522. yyb77 = r.CheckBreak()
  4523. }
  4524. if yyb77 {
  4525. r.ReadArrayEnd()
  4526. return
  4527. }
  4528. r.ReadArrayElem()
  4529. if r.TryDecodeAsNil() {
  4530. x.AnonInTestStruc.AMSU16N = nil
  4531. } else {
  4532. if false {
  4533. } else {
  4534. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  4535. }
  4536. }
  4537. yyj77++
  4538. if yyhl77 {
  4539. yyb77 = yyj77 > l
  4540. } else {
  4541. yyb77 = r.CheckBreak()
  4542. }
  4543. if yyb77 {
  4544. r.ReadArrayEnd()
  4545. return
  4546. }
  4547. r.ReadArrayElem()
  4548. if r.TryDecodeAsNil() {
  4549. x.AnonInTestStruc.AMSU16E = nil
  4550. } else {
  4551. if false {
  4552. } else {
  4553. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  4554. }
  4555. }
  4556. yyj77++
  4557. if yyhl77 {
  4558. yyb77 = yyj77 > l
  4559. } else {
  4560. yyb77 = r.CheckBreak()
  4561. }
  4562. if yyb77 {
  4563. r.ReadArrayEnd()
  4564. return
  4565. }
  4566. r.ReadArrayElem()
  4567. if r.TryDecodeAsNil() {
  4568. x.NotAnon = AnonInTestStruc{}
  4569. } else {
  4570. x.NotAnon.CodecDecodeSelf(d)
  4571. }
  4572. yyj77++
  4573. if yyhl77 {
  4574. yyb77 = yyj77 > l
  4575. } else {
  4576. yyb77 = r.CheckBreak()
  4577. }
  4578. if yyb77 {
  4579. r.ReadArrayEnd()
  4580. return
  4581. }
  4582. r.ReadArrayElem()
  4583. if r.TryDecodeAsNil() {
  4584. x.Nmap = nil
  4585. } else {
  4586. if false {
  4587. } else {
  4588. z.F.DecMapStringBoolX(&x.Nmap, d)
  4589. }
  4590. }
  4591. yyj77++
  4592. if yyhl77 {
  4593. yyb77 = yyj77 > l
  4594. } else {
  4595. yyb77 = r.CheckBreak()
  4596. }
  4597. if yyb77 {
  4598. r.ReadArrayEnd()
  4599. return
  4600. }
  4601. r.ReadArrayElem()
  4602. if r.TryDecodeAsNil() {
  4603. x.Nslice = nil
  4604. } else {
  4605. if false {
  4606. } else {
  4607. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  4608. }
  4609. }
  4610. yyj77++
  4611. if yyhl77 {
  4612. yyb77 = yyj77 > l
  4613. } else {
  4614. yyb77 = r.CheckBreak()
  4615. }
  4616. if yyb77 {
  4617. r.ReadArrayEnd()
  4618. return
  4619. }
  4620. r.ReadArrayElem()
  4621. if r.TryDecodeAsNil() {
  4622. if true && x.Nint64 != nil {
  4623. x.Nint64 = nil
  4624. }
  4625. } else {
  4626. if x.Nint64 == nil {
  4627. x.Nint64 = new(int64)
  4628. }
  4629. if false {
  4630. } else {
  4631. *x.Nint64 = (int64)(r.DecodeInt64())
  4632. }
  4633. }
  4634. for {
  4635. yyj77++
  4636. if yyhl77 {
  4637. yyb77 = yyj77 > l
  4638. } else {
  4639. yyb77 = r.CheckBreak()
  4640. }
  4641. if yyb77 {
  4642. break
  4643. }
  4644. r.ReadArrayElem()
  4645. z.DecStructFieldNotFound(yyj77-1, "")
  4646. }
  4647. r.ReadArrayEnd()
  4648. }
  4649. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  4650. var h codecSelfer19780
  4651. z, r := GenHelperEncoder(e)
  4652. _, _, _ = h, z, r
  4653. if x == nil {
  4654. r.EncodeNil()
  4655. } else {
  4656. if false {
  4657. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  4658. z.EncExtension(x, yyxt1)
  4659. } else {
  4660. yysep2 := !z.EncBinary()
  4661. yy2arr2 := z.EncBasicHandle().StructToArray
  4662. _, _ = yysep2, yy2arr2
  4663. const yyr2 bool = false // struct tag has 'toArray'
  4664. if yyr2 || yy2arr2 {
  4665. r.WriteArrayStart(53)
  4666. } else {
  4667. r.WriteMapStart(53)
  4668. }
  4669. if yyr2 || yy2arr2 {
  4670. r.WriteArrayElem()
  4671. if false {
  4672. } else {
  4673. if z.EncBasicHandle().StringToRaw {
  4674. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  4675. } else {
  4676. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  4677. }
  4678. }
  4679. } else {
  4680. r.WriteMapElemKey()
  4681. if z.IsJSONHandle() {
  4682. z.WriteStr("\"S\"")
  4683. } else {
  4684. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  4685. }
  4686. r.WriteMapElemValue()
  4687. if false {
  4688. } else {
  4689. if z.EncBasicHandle().StringToRaw {
  4690. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  4691. } else {
  4692. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  4693. }
  4694. }
  4695. }
  4696. if yyr2 || yy2arr2 {
  4697. r.WriteArrayElem()
  4698. if false {
  4699. } else {
  4700. r.EncodeInt(int64(x.I64))
  4701. }
  4702. } else {
  4703. r.WriteMapElemKey()
  4704. if z.IsJSONHandle() {
  4705. z.WriteStr("\"I64\"")
  4706. } else {
  4707. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  4708. }
  4709. r.WriteMapElemValue()
  4710. if false {
  4711. } else {
  4712. r.EncodeInt(int64(x.I64))
  4713. }
  4714. }
  4715. if yyr2 || yy2arr2 {
  4716. r.WriteArrayElem()
  4717. if false {
  4718. } else {
  4719. r.EncodeInt(int64(x.I32))
  4720. }
  4721. } else {
  4722. r.WriteMapElemKey()
  4723. if z.IsJSONHandle() {
  4724. z.WriteStr("\"I32\"")
  4725. } else {
  4726. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  4727. }
  4728. r.WriteMapElemValue()
  4729. if false {
  4730. } else {
  4731. r.EncodeInt(int64(x.I32))
  4732. }
  4733. }
  4734. if yyr2 || yy2arr2 {
  4735. r.WriteArrayElem()
  4736. if false {
  4737. } else {
  4738. r.EncodeInt(int64(x.I16))
  4739. }
  4740. } else {
  4741. r.WriteMapElemKey()
  4742. if z.IsJSONHandle() {
  4743. z.WriteStr("\"I16\"")
  4744. } else {
  4745. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  4746. }
  4747. r.WriteMapElemValue()
  4748. if false {
  4749. } else {
  4750. r.EncodeInt(int64(x.I16))
  4751. }
  4752. }
  4753. if yyr2 || yy2arr2 {
  4754. r.WriteArrayElem()
  4755. if false {
  4756. } else {
  4757. r.EncodeInt(int64(x.I8))
  4758. }
  4759. } else {
  4760. r.WriteMapElemKey()
  4761. if z.IsJSONHandle() {
  4762. z.WriteStr("\"I8\"")
  4763. } else {
  4764. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  4765. }
  4766. r.WriteMapElemValue()
  4767. if false {
  4768. } else {
  4769. r.EncodeInt(int64(x.I8))
  4770. }
  4771. }
  4772. if yyr2 || yy2arr2 {
  4773. r.WriteArrayElem()
  4774. if false {
  4775. } else {
  4776. r.EncodeInt(int64(x.I64n))
  4777. }
  4778. } else {
  4779. r.WriteMapElemKey()
  4780. if z.IsJSONHandle() {
  4781. z.WriteStr("\"I64n\"")
  4782. } else {
  4783. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  4784. }
  4785. r.WriteMapElemValue()
  4786. if false {
  4787. } else {
  4788. r.EncodeInt(int64(x.I64n))
  4789. }
  4790. }
  4791. if yyr2 || yy2arr2 {
  4792. r.WriteArrayElem()
  4793. if false {
  4794. } else {
  4795. r.EncodeInt(int64(x.I32n))
  4796. }
  4797. } else {
  4798. r.WriteMapElemKey()
  4799. if z.IsJSONHandle() {
  4800. z.WriteStr("\"I32n\"")
  4801. } else {
  4802. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  4803. }
  4804. r.WriteMapElemValue()
  4805. if false {
  4806. } else {
  4807. r.EncodeInt(int64(x.I32n))
  4808. }
  4809. }
  4810. if yyr2 || yy2arr2 {
  4811. r.WriteArrayElem()
  4812. if false {
  4813. } else {
  4814. r.EncodeInt(int64(x.I16n))
  4815. }
  4816. } else {
  4817. r.WriteMapElemKey()
  4818. if z.IsJSONHandle() {
  4819. z.WriteStr("\"I16n\"")
  4820. } else {
  4821. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  4822. }
  4823. r.WriteMapElemValue()
  4824. if false {
  4825. } else {
  4826. r.EncodeInt(int64(x.I16n))
  4827. }
  4828. }
  4829. if yyr2 || yy2arr2 {
  4830. r.WriteArrayElem()
  4831. if false {
  4832. } else {
  4833. r.EncodeInt(int64(x.I8n))
  4834. }
  4835. } else {
  4836. r.WriteMapElemKey()
  4837. if z.IsJSONHandle() {
  4838. z.WriteStr("\"I8n\"")
  4839. } else {
  4840. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  4841. }
  4842. r.WriteMapElemValue()
  4843. if false {
  4844. } else {
  4845. r.EncodeInt(int64(x.I8n))
  4846. }
  4847. }
  4848. if yyr2 || yy2arr2 {
  4849. r.WriteArrayElem()
  4850. if false {
  4851. } else {
  4852. r.EncodeUint(uint64(x.Ui64))
  4853. }
  4854. } else {
  4855. r.WriteMapElemKey()
  4856. if z.IsJSONHandle() {
  4857. z.WriteStr("\"Ui64\"")
  4858. } else {
  4859. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  4860. }
  4861. r.WriteMapElemValue()
  4862. if false {
  4863. } else {
  4864. r.EncodeUint(uint64(x.Ui64))
  4865. }
  4866. }
  4867. if yyr2 || yy2arr2 {
  4868. r.WriteArrayElem()
  4869. if false {
  4870. } else {
  4871. r.EncodeUint(uint64(x.Ui32))
  4872. }
  4873. } else {
  4874. r.WriteMapElemKey()
  4875. if z.IsJSONHandle() {
  4876. z.WriteStr("\"Ui32\"")
  4877. } else {
  4878. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  4879. }
  4880. r.WriteMapElemValue()
  4881. if false {
  4882. } else {
  4883. r.EncodeUint(uint64(x.Ui32))
  4884. }
  4885. }
  4886. if yyr2 || yy2arr2 {
  4887. r.WriteArrayElem()
  4888. if false {
  4889. } else {
  4890. r.EncodeUint(uint64(x.Ui16))
  4891. }
  4892. } else {
  4893. r.WriteMapElemKey()
  4894. if z.IsJSONHandle() {
  4895. z.WriteStr("\"Ui16\"")
  4896. } else {
  4897. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  4898. }
  4899. r.WriteMapElemValue()
  4900. if false {
  4901. } else {
  4902. r.EncodeUint(uint64(x.Ui16))
  4903. }
  4904. }
  4905. if yyr2 || yy2arr2 {
  4906. r.WriteArrayElem()
  4907. if false {
  4908. } else {
  4909. r.EncodeUint(uint64(x.Ui8))
  4910. }
  4911. } else {
  4912. r.WriteMapElemKey()
  4913. if z.IsJSONHandle() {
  4914. z.WriteStr("\"Ui8\"")
  4915. } else {
  4916. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  4917. }
  4918. r.WriteMapElemValue()
  4919. if false {
  4920. } else {
  4921. r.EncodeUint(uint64(x.Ui8))
  4922. }
  4923. }
  4924. if yyr2 || yy2arr2 {
  4925. r.WriteArrayElem()
  4926. if false {
  4927. } else {
  4928. r.EncodeFloat64(float64(x.F64))
  4929. }
  4930. } else {
  4931. r.WriteMapElemKey()
  4932. if z.IsJSONHandle() {
  4933. z.WriteStr("\"F64\"")
  4934. } else {
  4935. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  4936. }
  4937. r.WriteMapElemValue()
  4938. if false {
  4939. } else {
  4940. r.EncodeFloat64(float64(x.F64))
  4941. }
  4942. }
  4943. if yyr2 || yy2arr2 {
  4944. r.WriteArrayElem()
  4945. if false {
  4946. } else {
  4947. r.EncodeFloat32(float32(x.F32))
  4948. }
  4949. } else {
  4950. r.WriteMapElemKey()
  4951. if z.IsJSONHandle() {
  4952. z.WriteStr("\"F32\"")
  4953. } else {
  4954. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  4955. }
  4956. r.WriteMapElemValue()
  4957. if false {
  4958. } else {
  4959. r.EncodeFloat32(float32(x.F32))
  4960. }
  4961. }
  4962. if yyr2 || yy2arr2 {
  4963. r.WriteArrayElem()
  4964. if false {
  4965. } else {
  4966. r.EncodeBool(bool(x.B))
  4967. }
  4968. } else {
  4969. r.WriteMapElemKey()
  4970. if z.IsJSONHandle() {
  4971. z.WriteStr("\"B\"")
  4972. } else {
  4973. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  4974. }
  4975. r.WriteMapElemValue()
  4976. if false {
  4977. } else {
  4978. r.EncodeBool(bool(x.B))
  4979. }
  4980. }
  4981. if yyr2 || yy2arr2 {
  4982. r.WriteArrayElem()
  4983. if false {
  4984. } else {
  4985. r.EncodeUint(uint64(x.By))
  4986. }
  4987. } else {
  4988. r.WriteMapElemKey()
  4989. if z.IsJSONHandle() {
  4990. z.WriteStr("\"By\"")
  4991. } else {
  4992. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  4993. }
  4994. r.WriteMapElemValue()
  4995. if false {
  4996. } else {
  4997. r.EncodeUint(uint64(x.By))
  4998. }
  4999. }
  5000. if yyr2 || yy2arr2 {
  5001. r.WriteArrayElem()
  5002. if x.Sslice == nil {
  5003. r.EncodeNil()
  5004. } else {
  5005. if false {
  5006. } else {
  5007. z.F.EncSliceStringV(x.Sslice, e)
  5008. }
  5009. }
  5010. } else {
  5011. r.WriteMapElemKey()
  5012. if z.IsJSONHandle() {
  5013. z.WriteStr("\"Sslice\"")
  5014. } else {
  5015. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  5016. }
  5017. r.WriteMapElemValue()
  5018. if x.Sslice == nil {
  5019. r.EncodeNil()
  5020. } else {
  5021. if false {
  5022. } else {
  5023. z.F.EncSliceStringV(x.Sslice, e)
  5024. }
  5025. }
  5026. }
  5027. if yyr2 || yy2arr2 {
  5028. r.WriteArrayElem()
  5029. if x.I64slice == nil {
  5030. r.EncodeNil()
  5031. } else {
  5032. if false {
  5033. } else {
  5034. z.F.EncSliceInt64V(x.I64slice, e)
  5035. }
  5036. }
  5037. } else {
  5038. r.WriteMapElemKey()
  5039. if z.IsJSONHandle() {
  5040. z.WriteStr("\"I64slice\"")
  5041. } else {
  5042. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  5043. }
  5044. r.WriteMapElemValue()
  5045. if x.I64slice == nil {
  5046. r.EncodeNil()
  5047. } else {
  5048. if false {
  5049. } else {
  5050. z.F.EncSliceInt64V(x.I64slice, e)
  5051. }
  5052. }
  5053. }
  5054. if yyr2 || yy2arr2 {
  5055. r.WriteArrayElem()
  5056. if x.I16slice == nil {
  5057. r.EncodeNil()
  5058. } else {
  5059. if false {
  5060. } else {
  5061. z.F.EncSliceInt16V(x.I16slice, e)
  5062. }
  5063. }
  5064. } else {
  5065. r.WriteMapElemKey()
  5066. if z.IsJSONHandle() {
  5067. z.WriteStr("\"I16slice\"")
  5068. } else {
  5069. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  5070. }
  5071. r.WriteMapElemValue()
  5072. if x.I16slice == nil {
  5073. r.EncodeNil()
  5074. } else {
  5075. if false {
  5076. } else {
  5077. z.F.EncSliceInt16V(x.I16slice, e)
  5078. }
  5079. }
  5080. }
  5081. if yyr2 || yy2arr2 {
  5082. r.WriteArrayElem()
  5083. if x.Ui64slice == nil {
  5084. r.EncodeNil()
  5085. } else {
  5086. if false {
  5087. } else {
  5088. z.F.EncSliceUint64V(x.Ui64slice, e)
  5089. }
  5090. }
  5091. } else {
  5092. r.WriteMapElemKey()
  5093. if z.IsJSONHandle() {
  5094. z.WriteStr("\"Ui64slice\"")
  5095. } else {
  5096. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  5097. }
  5098. r.WriteMapElemValue()
  5099. if x.Ui64slice == nil {
  5100. r.EncodeNil()
  5101. } else {
  5102. if false {
  5103. } else {
  5104. z.F.EncSliceUint64V(x.Ui64slice, e)
  5105. }
  5106. }
  5107. }
  5108. if yyr2 || yy2arr2 {
  5109. r.WriteArrayElem()
  5110. if x.Ui8slice == nil {
  5111. r.EncodeNil()
  5112. } else {
  5113. if false {
  5114. } else {
  5115. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  5116. }
  5117. }
  5118. } else {
  5119. r.WriteMapElemKey()
  5120. if z.IsJSONHandle() {
  5121. z.WriteStr("\"Ui8slice\"")
  5122. } else {
  5123. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  5124. }
  5125. r.WriteMapElemValue()
  5126. if x.Ui8slice == nil {
  5127. r.EncodeNil()
  5128. } else {
  5129. if false {
  5130. } else {
  5131. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  5132. }
  5133. }
  5134. }
  5135. if yyr2 || yy2arr2 {
  5136. r.WriteArrayElem()
  5137. if x.Bslice == nil {
  5138. r.EncodeNil()
  5139. } else {
  5140. if false {
  5141. } else {
  5142. z.F.EncSliceBoolV(x.Bslice, e)
  5143. }
  5144. }
  5145. } else {
  5146. r.WriteMapElemKey()
  5147. if z.IsJSONHandle() {
  5148. z.WriteStr("\"Bslice\"")
  5149. } else {
  5150. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  5151. }
  5152. r.WriteMapElemValue()
  5153. if x.Bslice == nil {
  5154. r.EncodeNil()
  5155. } else {
  5156. if false {
  5157. } else {
  5158. z.F.EncSliceBoolV(x.Bslice, e)
  5159. }
  5160. }
  5161. }
  5162. if yyr2 || yy2arr2 {
  5163. r.WriteArrayElem()
  5164. if x.Byslice == nil {
  5165. r.EncodeNil()
  5166. } else {
  5167. if false {
  5168. } else {
  5169. r.EncodeStringBytesRaw([]byte(x.Byslice))
  5170. }
  5171. }
  5172. } else {
  5173. r.WriteMapElemKey()
  5174. if z.IsJSONHandle() {
  5175. z.WriteStr("\"Byslice\"")
  5176. } else {
  5177. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  5178. }
  5179. r.WriteMapElemValue()
  5180. if x.Byslice == nil {
  5181. r.EncodeNil()
  5182. } else {
  5183. if false {
  5184. } else {
  5185. r.EncodeStringBytesRaw([]byte(x.Byslice))
  5186. }
  5187. }
  5188. }
  5189. if yyr2 || yy2arr2 {
  5190. r.WriteArrayElem()
  5191. if x.Iptrslice == nil {
  5192. r.EncodeNil()
  5193. } else {
  5194. if false {
  5195. } else {
  5196. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  5197. }
  5198. }
  5199. } else {
  5200. r.WriteMapElemKey()
  5201. if z.IsJSONHandle() {
  5202. z.WriteStr("\"Iptrslice\"")
  5203. } else {
  5204. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  5205. }
  5206. r.WriteMapElemValue()
  5207. if x.Iptrslice == nil {
  5208. r.EncodeNil()
  5209. } else {
  5210. if false {
  5211. } else {
  5212. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  5213. }
  5214. }
  5215. }
  5216. if yyr2 || yy2arr2 {
  5217. r.WriteArrayElem()
  5218. if x.WrapSliceInt64 == nil {
  5219. r.EncodeNil()
  5220. } else {
  5221. x.WrapSliceInt64.CodecEncodeSelf(e)
  5222. }
  5223. } else {
  5224. r.WriteMapElemKey()
  5225. if z.IsJSONHandle() {
  5226. z.WriteStr("\"WrapSliceInt64\"")
  5227. } else {
  5228. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  5229. }
  5230. r.WriteMapElemValue()
  5231. if x.WrapSliceInt64 == nil {
  5232. r.EncodeNil()
  5233. } else {
  5234. x.WrapSliceInt64.CodecEncodeSelf(e)
  5235. }
  5236. }
  5237. if yyr2 || yy2arr2 {
  5238. r.WriteArrayElem()
  5239. if x.WrapSliceString == nil {
  5240. r.EncodeNil()
  5241. } else {
  5242. x.WrapSliceString.CodecEncodeSelf(e)
  5243. }
  5244. } else {
  5245. r.WriteMapElemKey()
  5246. if z.IsJSONHandle() {
  5247. z.WriteStr("\"WrapSliceString\"")
  5248. } else {
  5249. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  5250. }
  5251. r.WriteMapElemValue()
  5252. if x.WrapSliceString == nil {
  5253. r.EncodeNil()
  5254. } else {
  5255. x.WrapSliceString.CodecEncodeSelf(e)
  5256. }
  5257. }
  5258. if yyr2 || yy2arr2 {
  5259. r.WriteArrayElem()
  5260. if x.Msi64 == nil {
  5261. r.EncodeNil()
  5262. } else {
  5263. if false {
  5264. } else {
  5265. z.F.EncMapStringInt64V(x.Msi64, e)
  5266. }
  5267. }
  5268. } else {
  5269. r.WriteMapElemKey()
  5270. if z.IsJSONHandle() {
  5271. z.WriteStr("\"Msi64\"")
  5272. } else {
  5273. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  5274. }
  5275. r.WriteMapElemValue()
  5276. if x.Msi64 == nil {
  5277. r.EncodeNil()
  5278. } else {
  5279. if false {
  5280. } else {
  5281. z.F.EncMapStringInt64V(x.Msi64, e)
  5282. }
  5283. }
  5284. }
  5285. if yyr2 || yy2arr2 {
  5286. r.WriteArrayElem()
  5287. yy88 := &x.Simplef
  5288. yy88.CodecEncodeSelf(e)
  5289. } else {
  5290. r.WriteMapElemKey()
  5291. if z.IsJSONHandle() {
  5292. z.WriteStr("\"Simplef\"")
  5293. } else {
  5294. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  5295. }
  5296. r.WriteMapElemValue()
  5297. yy90 := &x.Simplef
  5298. yy90.CodecEncodeSelf(e)
  5299. }
  5300. if yyr2 || yy2arr2 {
  5301. r.WriteArrayElem()
  5302. if x.SstrUi64T == nil {
  5303. r.EncodeNil()
  5304. } else {
  5305. if false {
  5306. } else {
  5307. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  5308. }
  5309. }
  5310. } else {
  5311. r.WriteMapElemKey()
  5312. if z.IsJSONHandle() {
  5313. z.WriteStr("\"SstrUi64T\"")
  5314. } else {
  5315. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  5316. }
  5317. r.WriteMapElemValue()
  5318. if x.SstrUi64T == nil {
  5319. r.EncodeNil()
  5320. } else {
  5321. if false {
  5322. } else {
  5323. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  5324. }
  5325. }
  5326. }
  5327. if yyr2 || yy2arr2 {
  5328. r.WriteArrayElem()
  5329. if false {
  5330. } else {
  5331. if z.EncBasicHandle().StringToRaw {
  5332. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  5333. } else {
  5334. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  5335. }
  5336. }
  5337. } else {
  5338. r.WriteMapElemKey()
  5339. if z.IsJSONHandle() {
  5340. z.WriteStr("\"AS\"")
  5341. } else {
  5342. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  5343. }
  5344. r.WriteMapElemValue()
  5345. if false {
  5346. } else {
  5347. if z.EncBasicHandle().StringToRaw {
  5348. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  5349. } else {
  5350. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  5351. }
  5352. }
  5353. }
  5354. if yyr2 || yy2arr2 {
  5355. r.WriteArrayElem()
  5356. if false {
  5357. } else {
  5358. r.EncodeInt(int64(x.AI64))
  5359. }
  5360. } else {
  5361. r.WriteMapElemKey()
  5362. if z.IsJSONHandle() {
  5363. z.WriteStr("\"AI64\"")
  5364. } else {
  5365. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  5366. }
  5367. r.WriteMapElemValue()
  5368. if false {
  5369. } else {
  5370. r.EncodeInt(int64(x.AI64))
  5371. }
  5372. }
  5373. if yyr2 || yy2arr2 {
  5374. r.WriteArrayElem()
  5375. if false {
  5376. } else {
  5377. r.EncodeInt(int64(x.AI16))
  5378. }
  5379. } else {
  5380. r.WriteMapElemKey()
  5381. if z.IsJSONHandle() {
  5382. z.WriteStr("\"AI16\"")
  5383. } else {
  5384. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  5385. }
  5386. r.WriteMapElemValue()
  5387. if false {
  5388. } else {
  5389. r.EncodeInt(int64(x.AI16))
  5390. }
  5391. }
  5392. if yyr2 || yy2arr2 {
  5393. r.WriteArrayElem()
  5394. if false {
  5395. } else {
  5396. r.EncodeUint(uint64(x.AUi64))
  5397. }
  5398. } else {
  5399. r.WriteMapElemKey()
  5400. if z.IsJSONHandle() {
  5401. z.WriteStr("\"AUi64\"")
  5402. } else {
  5403. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  5404. }
  5405. r.WriteMapElemValue()
  5406. if false {
  5407. } else {
  5408. r.EncodeUint(uint64(x.AUi64))
  5409. }
  5410. }
  5411. if yyr2 || yy2arr2 {
  5412. r.WriteArrayElem()
  5413. if x.ASslice == nil {
  5414. r.EncodeNil()
  5415. } else {
  5416. if false {
  5417. } else {
  5418. z.F.EncSliceStringV(x.ASslice, e)
  5419. }
  5420. }
  5421. } else {
  5422. r.WriteMapElemKey()
  5423. if z.IsJSONHandle() {
  5424. z.WriteStr("\"ASslice\"")
  5425. } else {
  5426. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  5427. }
  5428. r.WriteMapElemValue()
  5429. if x.ASslice == nil {
  5430. r.EncodeNil()
  5431. } else {
  5432. if false {
  5433. } else {
  5434. z.F.EncSliceStringV(x.ASslice, e)
  5435. }
  5436. }
  5437. }
  5438. if yyr2 || yy2arr2 {
  5439. r.WriteArrayElem()
  5440. if x.AI64slice == nil {
  5441. r.EncodeNil()
  5442. } else {
  5443. if false {
  5444. } else {
  5445. z.F.EncSliceInt64V(x.AI64slice, e)
  5446. }
  5447. }
  5448. } else {
  5449. r.WriteMapElemKey()
  5450. if z.IsJSONHandle() {
  5451. z.WriteStr("\"AI64slice\"")
  5452. } else {
  5453. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  5454. }
  5455. r.WriteMapElemValue()
  5456. if x.AI64slice == nil {
  5457. r.EncodeNil()
  5458. } else {
  5459. if false {
  5460. } else {
  5461. z.F.EncSliceInt64V(x.AI64slice, e)
  5462. }
  5463. }
  5464. }
  5465. if yyr2 || yy2arr2 {
  5466. r.WriteArrayElem()
  5467. if x.AUi64slice == nil {
  5468. r.EncodeNil()
  5469. } else {
  5470. if false {
  5471. } else {
  5472. z.F.EncSliceUint64V(x.AUi64slice, e)
  5473. }
  5474. }
  5475. } else {
  5476. r.WriteMapElemKey()
  5477. if z.IsJSONHandle() {
  5478. z.WriteStr("\"AUi64slice\"")
  5479. } else {
  5480. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  5481. }
  5482. r.WriteMapElemValue()
  5483. if x.AUi64slice == nil {
  5484. r.EncodeNil()
  5485. } else {
  5486. if false {
  5487. } else {
  5488. z.F.EncSliceUint64V(x.AUi64slice, e)
  5489. }
  5490. }
  5491. }
  5492. if yyr2 || yy2arr2 {
  5493. r.WriteArrayElem()
  5494. if x.AF64slice == nil {
  5495. r.EncodeNil()
  5496. } else {
  5497. if false {
  5498. } else {
  5499. z.F.EncSliceFloat64V(x.AF64slice, e)
  5500. }
  5501. }
  5502. } else {
  5503. r.WriteMapElemKey()
  5504. if z.IsJSONHandle() {
  5505. z.WriteStr("\"AF64slice\"")
  5506. } else {
  5507. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  5508. }
  5509. r.WriteMapElemValue()
  5510. if x.AF64slice == nil {
  5511. r.EncodeNil()
  5512. } else {
  5513. if false {
  5514. } else {
  5515. z.F.EncSliceFloat64V(x.AF64slice, e)
  5516. }
  5517. }
  5518. }
  5519. if yyr2 || yy2arr2 {
  5520. r.WriteArrayElem()
  5521. if x.AF32slice == nil {
  5522. r.EncodeNil()
  5523. } else {
  5524. if false {
  5525. } else {
  5526. z.F.EncSliceFloat32V(x.AF32slice, e)
  5527. }
  5528. }
  5529. } else {
  5530. r.WriteMapElemKey()
  5531. if z.IsJSONHandle() {
  5532. z.WriteStr("\"AF32slice\"")
  5533. } else {
  5534. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  5535. }
  5536. r.WriteMapElemValue()
  5537. if x.AF32slice == nil {
  5538. r.EncodeNil()
  5539. } else {
  5540. if false {
  5541. } else {
  5542. z.F.EncSliceFloat32V(x.AF32slice, e)
  5543. }
  5544. }
  5545. }
  5546. if yyr2 || yy2arr2 {
  5547. r.WriteArrayElem()
  5548. if x.AMSU16 == nil {
  5549. r.EncodeNil()
  5550. } else {
  5551. if false {
  5552. } else {
  5553. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  5554. }
  5555. }
  5556. } else {
  5557. r.WriteMapElemKey()
  5558. if z.IsJSONHandle() {
  5559. z.WriteStr("\"AMSU16\"")
  5560. } else {
  5561. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  5562. }
  5563. r.WriteMapElemValue()
  5564. if x.AMSU16 == nil {
  5565. r.EncodeNil()
  5566. } else {
  5567. if false {
  5568. } else {
  5569. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  5570. }
  5571. }
  5572. }
  5573. if yyr2 || yy2arr2 {
  5574. r.WriteArrayElem()
  5575. yy126 := &x.AI64arr0
  5576. if false {
  5577. } else {
  5578. h.encArray0int64((*[0]int64)(yy126), e)
  5579. }
  5580. } else {
  5581. r.WriteMapElemKey()
  5582. if z.IsJSONHandle() {
  5583. z.WriteStr("\"AI64arr0\"")
  5584. } else {
  5585. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  5586. }
  5587. r.WriteMapElemValue()
  5588. yy128 := &x.AI64arr0
  5589. if false {
  5590. } else {
  5591. h.encArray0int64((*[0]int64)(yy128), e)
  5592. }
  5593. }
  5594. if yyr2 || yy2arr2 {
  5595. r.WriteArrayElem()
  5596. if x.A164slice0 == nil {
  5597. r.EncodeNil()
  5598. } else {
  5599. if false {
  5600. } else {
  5601. z.F.EncSliceInt64V(x.A164slice0, e)
  5602. }
  5603. }
  5604. } else {
  5605. r.WriteMapElemKey()
  5606. if z.IsJSONHandle() {
  5607. z.WriteStr("\"A164slice0\"")
  5608. } else {
  5609. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  5610. }
  5611. r.WriteMapElemValue()
  5612. if x.A164slice0 == nil {
  5613. r.EncodeNil()
  5614. } else {
  5615. if false {
  5616. } else {
  5617. z.F.EncSliceInt64V(x.A164slice0, e)
  5618. }
  5619. }
  5620. }
  5621. if yyr2 || yy2arr2 {
  5622. r.WriteArrayElem()
  5623. if x.AUi64sliceN == nil {
  5624. r.EncodeNil()
  5625. } else {
  5626. if false {
  5627. } else {
  5628. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  5629. }
  5630. }
  5631. } else {
  5632. r.WriteMapElemKey()
  5633. if z.IsJSONHandle() {
  5634. z.WriteStr("\"AUi64sliceN\"")
  5635. } else {
  5636. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  5637. }
  5638. r.WriteMapElemValue()
  5639. if x.AUi64sliceN == nil {
  5640. r.EncodeNil()
  5641. } else {
  5642. if false {
  5643. } else {
  5644. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  5645. }
  5646. }
  5647. }
  5648. if yyr2 || yy2arr2 {
  5649. r.WriteArrayElem()
  5650. if x.AMSU16N == nil {
  5651. r.EncodeNil()
  5652. } else {
  5653. if false {
  5654. } else {
  5655. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  5656. }
  5657. }
  5658. } else {
  5659. r.WriteMapElemKey()
  5660. if z.IsJSONHandle() {
  5661. z.WriteStr("\"AMSU16N\"")
  5662. } else {
  5663. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  5664. }
  5665. r.WriteMapElemValue()
  5666. if x.AMSU16N == nil {
  5667. r.EncodeNil()
  5668. } else {
  5669. if false {
  5670. } else {
  5671. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  5672. }
  5673. }
  5674. }
  5675. if yyr2 || yy2arr2 {
  5676. r.WriteArrayElem()
  5677. if x.AMSU16E == nil {
  5678. r.EncodeNil()
  5679. } else {
  5680. if false {
  5681. } else {
  5682. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  5683. }
  5684. }
  5685. } else {
  5686. r.WriteMapElemKey()
  5687. if z.IsJSONHandle() {
  5688. z.WriteStr("\"AMSU16E\"")
  5689. } else {
  5690. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  5691. }
  5692. r.WriteMapElemValue()
  5693. if x.AMSU16E == nil {
  5694. r.EncodeNil()
  5695. } else {
  5696. if false {
  5697. } else {
  5698. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  5699. }
  5700. }
  5701. }
  5702. if yyr2 || yy2arr2 {
  5703. r.WriteArrayElem()
  5704. yy143 := &x.NotAnon
  5705. yy143.CodecEncodeSelf(e)
  5706. } else {
  5707. r.WriteMapElemKey()
  5708. if z.IsJSONHandle() {
  5709. z.WriteStr("\"NotAnon\"")
  5710. } else {
  5711. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  5712. }
  5713. r.WriteMapElemValue()
  5714. yy145 := &x.NotAnon
  5715. yy145.CodecEncodeSelf(e)
  5716. }
  5717. if yyr2 || yy2arr2 {
  5718. r.WriteArrayElem()
  5719. if x.Nmap == nil {
  5720. r.EncodeNil()
  5721. } else {
  5722. if false {
  5723. } else {
  5724. z.F.EncMapStringBoolV(x.Nmap, e)
  5725. }
  5726. }
  5727. } else {
  5728. r.WriteMapElemKey()
  5729. if z.IsJSONHandle() {
  5730. z.WriteStr("\"Nmap\"")
  5731. } else {
  5732. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  5733. }
  5734. r.WriteMapElemValue()
  5735. if x.Nmap == nil {
  5736. r.EncodeNil()
  5737. } else {
  5738. if false {
  5739. } else {
  5740. z.F.EncMapStringBoolV(x.Nmap, e)
  5741. }
  5742. }
  5743. }
  5744. if yyr2 || yy2arr2 {
  5745. r.WriteArrayElem()
  5746. if x.Nslice == nil {
  5747. r.EncodeNil()
  5748. } else {
  5749. if false {
  5750. } else {
  5751. r.EncodeStringBytesRaw([]byte(x.Nslice))
  5752. }
  5753. }
  5754. } else {
  5755. r.WriteMapElemKey()
  5756. if z.IsJSONHandle() {
  5757. z.WriteStr("\"Nslice\"")
  5758. } else {
  5759. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  5760. }
  5761. r.WriteMapElemValue()
  5762. if x.Nslice == nil {
  5763. r.EncodeNil()
  5764. } else {
  5765. if false {
  5766. } else {
  5767. r.EncodeStringBytesRaw([]byte(x.Nslice))
  5768. }
  5769. }
  5770. }
  5771. var yyn153 bool
  5772. if x.TestStrucCommon.Nint64 == nil {
  5773. yyn153 = true
  5774. goto LABEL153
  5775. }
  5776. LABEL153:
  5777. if yyr2 || yy2arr2 {
  5778. if yyn153 {
  5779. r.WriteArrayElem()
  5780. r.EncodeNil()
  5781. } else {
  5782. r.WriteArrayElem()
  5783. if x.Nint64 == nil {
  5784. r.EncodeNil()
  5785. } else {
  5786. yy154 := *x.Nint64
  5787. if false {
  5788. } else {
  5789. r.EncodeInt(int64(yy154))
  5790. }
  5791. }
  5792. }
  5793. } else {
  5794. r.WriteMapElemKey()
  5795. if z.IsJSONHandle() {
  5796. z.WriteStr("\"Nint64\"")
  5797. } else {
  5798. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  5799. }
  5800. r.WriteMapElemValue()
  5801. if yyn153 {
  5802. r.EncodeNil()
  5803. } else {
  5804. if x.Nint64 == nil {
  5805. r.EncodeNil()
  5806. } else {
  5807. yy156 := *x.Nint64
  5808. if false {
  5809. } else {
  5810. r.EncodeInt(int64(yy156))
  5811. }
  5812. }
  5813. }
  5814. }
  5815. if yyr2 || yy2arr2 {
  5816. r.WriteArrayElem()
  5817. if x.Mtsptr == nil {
  5818. r.EncodeNil()
  5819. } else {
  5820. if false {
  5821. } else {
  5822. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5823. }
  5824. }
  5825. } else {
  5826. r.WriteMapElemKey()
  5827. if z.IsJSONHandle() {
  5828. z.WriteStr("\"Mtsptr\"")
  5829. } else {
  5830. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  5831. }
  5832. r.WriteMapElemValue()
  5833. if x.Mtsptr == nil {
  5834. r.EncodeNil()
  5835. } else {
  5836. if false {
  5837. } else {
  5838. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  5839. }
  5840. }
  5841. }
  5842. if yyr2 || yy2arr2 {
  5843. r.WriteArrayElem()
  5844. if x.Mts == nil {
  5845. r.EncodeNil()
  5846. } else {
  5847. if false {
  5848. } else {
  5849. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5850. }
  5851. }
  5852. } else {
  5853. r.WriteMapElemKey()
  5854. if z.IsJSONHandle() {
  5855. z.WriteStr("\"Mts\"")
  5856. } else {
  5857. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  5858. }
  5859. r.WriteMapElemValue()
  5860. if x.Mts == nil {
  5861. r.EncodeNil()
  5862. } else {
  5863. if false {
  5864. } else {
  5865. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  5866. }
  5867. }
  5868. }
  5869. if yyr2 || yy2arr2 {
  5870. r.WriteArrayElem()
  5871. if x.Its == nil {
  5872. r.EncodeNil()
  5873. } else {
  5874. if false {
  5875. } else {
  5876. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5877. }
  5878. }
  5879. } else {
  5880. r.WriteMapElemKey()
  5881. if z.IsJSONHandle() {
  5882. z.WriteStr("\"Its\"")
  5883. } else {
  5884. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  5885. }
  5886. r.WriteMapElemValue()
  5887. if x.Its == nil {
  5888. r.EncodeNil()
  5889. } else {
  5890. if false {
  5891. } else {
  5892. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  5893. }
  5894. }
  5895. }
  5896. var yyn167 bool
  5897. if x.Nteststruc == nil {
  5898. yyn167 = true
  5899. goto LABEL167
  5900. }
  5901. LABEL167:
  5902. if yyr2 || yy2arr2 {
  5903. if yyn167 {
  5904. r.WriteArrayElem()
  5905. r.EncodeNil()
  5906. } else {
  5907. r.WriteArrayElem()
  5908. if x.Nteststruc == nil {
  5909. r.EncodeNil()
  5910. } else {
  5911. x.Nteststruc.CodecEncodeSelf(e)
  5912. }
  5913. }
  5914. } else {
  5915. r.WriteMapElemKey()
  5916. if z.IsJSONHandle() {
  5917. z.WriteStr("\"Nteststruc\"")
  5918. } else {
  5919. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  5920. }
  5921. r.WriteMapElemValue()
  5922. if yyn167 {
  5923. r.EncodeNil()
  5924. } else {
  5925. if x.Nteststruc == nil {
  5926. r.EncodeNil()
  5927. } else {
  5928. x.Nteststruc.CodecEncodeSelf(e)
  5929. }
  5930. }
  5931. }
  5932. if yyr2 || yy2arr2 {
  5933. r.WriteArrayEnd()
  5934. } else {
  5935. r.WriteMapEnd()
  5936. }
  5937. }
  5938. }
  5939. }
  5940. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  5941. var h codecSelfer19780
  5942. z, r := GenHelperDecoder(d)
  5943. _, _, _ = h, z, r
  5944. if false {
  5945. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  5946. z.DecExtension(x, yyxt1)
  5947. } else {
  5948. yyct2 := r.ContainerType()
  5949. if yyct2 == codecSelferValueTypeMap19780 {
  5950. yyl2 := r.ReadMapStart()
  5951. if yyl2 == 0 {
  5952. r.ReadMapEnd()
  5953. } else {
  5954. x.codecDecodeSelfFromMap(yyl2, d)
  5955. }
  5956. } else if yyct2 == codecSelferValueTypeArray19780 {
  5957. yyl2 := r.ReadArrayStart()
  5958. if yyl2 == 0 {
  5959. r.ReadArrayEnd()
  5960. } else {
  5961. x.codecDecodeSelfFromArray(yyl2, d)
  5962. }
  5963. } else {
  5964. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5965. }
  5966. }
  5967. }
  5968. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  5969. var h codecSelfer19780
  5970. z, r := GenHelperDecoder(d)
  5971. _, _, _ = h, z, r
  5972. var yyhl3 bool = l >= 0
  5973. for yyj3 := 0; ; yyj3++ {
  5974. if yyhl3 {
  5975. if yyj3 >= l {
  5976. break
  5977. }
  5978. } else {
  5979. if r.CheckBreak() {
  5980. break
  5981. }
  5982. }
  5983. r.ReadMapElemKey()
  5984. yys3 := z.StringView(r.DecodeStringAsBytes())
  5985. r.ReadMapElemValue()
  5986. switch yys3 {
  5987. case "S":
  5988. if r.TryDecodeAsNil() {
  5989. x.TestStrucCommon.S = ""
  5990. } else {
  5991. x.S = (string)(r.DecodeString())
  5992. }
  5993. case "I64":
  5994. if r.TryDecodeAsNil() {
  5995. x.TestStrucCommon.I64 = 0
  5996. } else {
  5997. x.I64 = (int64)(r.DecodeInt64())
  5998. }
  5999. case "I32":
  6000. if r.TryDecodeAsNil() {
  6001. x.TestStrucCommon.I32 = 0
  6002. } else {
  6003. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6004. }
  6005. case "I16":
  6006. if r.TryDecodeAsNil() {
  6007. x.TestStrucCommon.I16 = 0
  6008. } else {
  6009. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6010. }
  6011. case "I8":
  6012. if r.TryDecodeAsNil() {
  6013. x.TestStrucCommon.I8 = 0
  6014. } else {
  6015. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6016. }
  6017. case "I64n":
  6018. if r.TryDecodeAsNil() {
  6019. x.TestStrucCommon.I64n = 0
  6020. } else {
  6021. x.I64n = (int64)(r.DecodeInt64())
  6022. }
  6023. case "I32n":
  6024. if r.TryDecodeAsNil() {
  6025. x.TestStrucCommon.I32n = 0
  6026. } else {
  6027. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6028. }
  6029. case "I16n":
  6030. if r.TryDecodeAsNil() {
  6031. x.TestStrucCommon.I16n = 0
  6032. } else {
  6033. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6034. }
  6035. case "I8n":
  6036. if r.TryDecodeAsNil() {
  6037. x.TestStrucCommon.I8n = 0
  6038. } else {
  6039. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6040. }
  6041. case "Ui64":
  6042. if r.TryDecodeAsNil() {
  6043. x.TestStrucCommon.Ui64 = 0
  6044. } else {
  6045. x.Ui64 = (uint64)(r.DecodeUint64())
  6046. }
  6047. case "Ui32":
  6048. if r.TryDecodeAsNil() {
  6049. x.TestStrucCommon.Ui32 = 0
  6050. } else {
  6051. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6052. }
  6053. case "Ui16":
  6054. if r.TryDecodeAsNil() {
  6055. x.TestStrucCommon.Ui16 = 0
  6056. } else {
  6057. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6058. }
  6059. case "Ui8":
  6060. if r.TryDecodeAsNil() {
  6061. x.TestStrucCommon.Ui8 = 0
  6062. } else {
  6063. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6064. }
  6065. case "F64":
  6066. if r.TryDecodeAsNil() {
  6067. x.TestStrucCommon.F64 = 0
  6068. } else {
  6069. x.F64 = (float64)(r.DecodeFloat64())
  6070. }
  6071. case "F32":
  6072. if r.TryDecodeAsNil() {
  6073. x.TestStrucCommon.F32 = 0
  6074. } else {
  6075. x.F32 = (float32)(r.DecodeFloat32As64())
  6076. }
  6077. case "B":
  6078. if r.TryDecodeAsNil() {
  6079. x.TestStrucCommon.B = false
  6080. } else {
  6081. x.B = (bool)(r.DecodeBool())
  6082. }
  6083. case "By":
  6084. if r.TryDecodeAsNil() {
  6085. x.TestStrucCommon.By = 0
  6086. } else {
  6087. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6088. }
  6089. case "Sslice":
  6090. if r.TryDecodeAsNil() {
  6091. x.TestStrucCommon.Sslice = nil
  6092. } else {
  6093. if false {
  6094. } else {
  6095. z.F.DecSliceStringX(&x.Sslice, d)
  6096. }
  6097. }
  6098. case "I64slice":
  6099. if r.TryDecodeAsNil() {
  6100. x.TestStrucCommon.I64slice = nil
  6101. } else {
  6102. if false {
  6103. } else {
  6104. z.F.DecSliceInt64X(&x.I64slice, d)
  6105. }
  6106. }
  6107. case "I16slice":
  6108. if r.TryDecodeAsNil() {
  6109. x.TestStrucCommon.I16slice = nil
  6110. } else {
  6111. if false {
  6112. } else {
  6113. z.F.DecSliceInt16X(&x.I16slice, d)
  6114. }
  6115. }
  6116. case "Ui64slice":
  6117. if r.TryDecodeAsNil() {
  6118. x.TestStrucCommon.Ui64slice = nil
  6119. } else {
  6120. if false {
  6121. } else {
  6122. z.F.DecSliceUint64X(&x.Ui64slice, d)
  6123. }
  6124. }
  6125. case "Ui8slice":
  6126. if r.TryDecodeAsNil() {
  6127. x.TestStrucCommon.Ui8slice = nil
  6128. } else {
  6129. if false {
  6130. } else {
  6131. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  6132. }
  6133. }
  6134. case "Bslice":
  6135. if r.TryDecodeAsNil() {
  6136. x.TestStrucCommon.Bslice = nil
  6137. } else {
  6138. if false {
  6139. } else {
  6140. z.F.DecSliceBoolX(&x.Bslice, d)
  6141. }
  6142. }
  6143. case "Byslice":
  6144. if r.TryDecodeAsNil() {
  6145. x.TestStrucCommon.Byslice = nil
  6146. } else {
  6147. if false {
  6148. } else {
  6149. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  6150. }
  6151. }
  6152. case "Iptrslice":
  6153. if r.TryDecodeAsNil() {
  6154. x.TestStrucCommon.Iptrslice = nil
  6155. } else {
  6156. if false {
  6157. } else {
  6158. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  6159. }
  6160. }
  6161. case "WrapSliceInt64":
  6162. if r.TryDecodeAsNil() {
  6163. x.TestStrucCommon.WrapSliceInt64 = nil
  6164. } else {
  6165. x.WrapSliceInt64.CodecDecodeSelf(d)
  6166. }
  6167. case "WrapSliceString":
  6168. if r.TryDecodeAsNil() {
  6169. x.TestStrucCommon.WrapSliceString = nil
  6170. } else {
  6171. x.WrapSliceString.CodecDecodeSelf(d)
  6172. }
  6173. case "Msi64":
  6174. if r.TryDecodeAsNil() {
  6175. x.TestStrucCommon.Msi64 = nil
  6176. } else {
  6177. if false {
  6178. } else {
  6179. z.F.DecMapStringInt64X(&x.Msi64, d)
  6180. }
  6181. }
  6182. case "Simplef":
  6183. if r.TryDecodeAsNil() {
  6184. x.TestStrucCommon.Simplef = testSimpleFields{}
  6185. } else {
  6186. x.Simplef.CodecDecodeSelf(d)
  6187. }
  6188. case "SstrUi64T":
  6189. if r.TryDecodeAsNil() {
  6190. x.TestStrucCommon.SstrUi64T = nil
  6191. } else {
  6192. if false {
  6193. } else {
  6194. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  6195. }
  6196. }
  6197. case "AS":
  6198. if r.TryDecodeAsNil() {
  6199. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6200. } else {
  6201. x.AS = (string)(r.DecodeString())
  6202. }
  6203. case "AI64":
  6204. if r.TryDecodeAsNil() {
  6205. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6206. } else {
  6207. x.AI64 = (int64)(r.DecodeInt64())
  6208. }
  6209. case "AI16":
  6210. if r.TryDecodeAsNil() {
  6211. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6212. } else {
  6213. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6214. }
  6215. case "AUi64":
  6216. if r.TryDecodeAsNil() {
  6217. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6218. } else {
  6219. x.AUi64 = (uint64)(r.DecodeUint64())
  6220. }
  6221. case "ASslice":
  6222. if r.TryDecodeAsNil() {
  6223. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6224. } else {
  6225. if false {
  6226. } else {
  6227. z.F.DecSliceStringX(&x.ASslice, d)
  6228. }
  6229. }
  6230. case "AI64slice":
  6231. if r.TryDecodeAsNil() {
  6232. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  6233. } else {
  6234. if false {
  6235. } else {
  6236. z.F.DecSliceInt64X(&x.AI64slice, d)
  6237. }
  6238. }
  6239. case "AUi64slice":
  6240. if r.TryDecodeAsNil() {
  6241. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  6242. } else {
  6243. if false {
  6244. } else {
  6245. z.F.DecSliceUint64X(&x.AUi64slice, d)
  6246. }
  6247. }
  6248. case "AF64slice":
  6249. if r.TryDecodeAsNil() {
  6250. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  6251. } else {
  6252. if false {
  6253. } else {
  6254. z.F.DecSliceFloat64X(&x.AF64slice, d)
  6255. }
  6256. }
  6257. case "AF32slice":
  6258. if r.TryDecodeAsNil() {
  6259. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  6260. } else {
  6261. if false {
  6262. } else {
  6263. z.F.DecSliceFloat32X(&x.AF32slice, d)
  6264. }
  6265. }
  6266. case "AMSU16":
  6267. if r.TryDecodeAsNil() {
  6268. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  6269. } else {
  6270. if false {
  6271. } else {
  6272. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  6273. }
  6274. }
  6275. case "AI64arr0":
  6276. if r.TryDecodeAsNil() {
  6277. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  6278. } else {
  6279. if false {
  6280. } else {
  6281. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  6282. }
  6283. }
  6284. case "A164slice0":
  6285. if r.TryDecodeAsNil() {
  6286. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  6287. } else {
  6288. if false {
  6289. } else {
  6290. z.F.DecSliceInt64X(&x.A164slice0, d)
  6291. }
  6292. }
  6293. case "AUi64sliceN":
  6294. if r.TryDecodeAsNil() {
  6295. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  6296. } else {
  6297. if false {
  6298. } else {
  6299. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  6300. }
  6301. }
  6302. case "AMSU16N":
  6303. if r.TryDecodeAsNil() {
  6304. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  6305. } else {
  6306. if false {
  6307. } else {
  6308. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  6309. }
  6310. }
  6311. case "AMSU16E":
  6312. if r.TryDecodeAsNil() {
  6313. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  6314. } else {
  6315. if false {
  6316. } else {
  6317. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  6318. }
  6319. }
  6320. case "NotAnon":
  6321. if r.TryDecodeAsNil() {
  6322. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  6323. } else {
  6324. x.NotAnon.CodecDecodeSelf(d)
  6325. }
  6326. case "Nmap":
  6327. if r.TryDecodeAsNil() {
  6328. x.TestStrucCommon.Nmap = nil
  6329. } else {
  6330. if false {
  6331. } else {
  6332. z.F.DecMapStringBoolX(&x.Nmap, d)
  6333. }
  6334. }
  6335. case "Nslice":
  6336. if r.TryDecodeAsNil() {
  6337. x.TestStrucCommon.Nslice = nil
  6338. } else {
  6339. if false {
  6340. } else {
  6341. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  6342. }
  6343. }
  6344. case "Nint64":
  6345. if r.TryDecodeAsNil() {
  6346. if true && x.TestStrucCommon.Nint64 != nil {
  6347. x.TestStrucCommon.Nint64 = nil
  6348. }
  6349. } else {
  6350. if x.TestStrucCommon.Nint64 == nil {
  6351. x.TestStrucCommon.Nint64 = new(int64)
  6352. }
  6353. if false {
  6354. } else {
  6355. *x.Nint64 = (int64)(r.DecodeInt64())
  6356. }
  6357. }
  6358. case "Mtsptr":
  6359. if r.TryDecodeAsNil() {
  6360. x.Mtsptr = nil
  6361. } else {
  6362. if false {
  6363. } else {
  6364. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  6365. }
  6366. }
  6367. case "Mts":
  6368. if r.TryDecodeAsNil() {
  6369. x.Mts = nil
  6370. } else {
  6371. if false {
  6372. } else {
  6373. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  6374. }
  6375. }
  6376. case "Its":
  6377. if r.TryDecodeAsNil() {
  6378. x.Its = nil
  6379. } else {
  6380. if false {
  6381. } else {
  6382. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  6383. }
  6384. }
  6385. case "Nteststruc":
  6386. if r.TryDecodeAsNil() {
  6387. if true && x.Nteststruc != nil {
  6388. x.Nteststruc = nil
  6389. }
  6390. } else {
  6391. if x.Nteststruc == nil {
  6392. x.Nteststruc = new(TestStruc)
  6393. }
  6394. x.Nteststruc.CodecDecodeSelf(d)
  6395. }
  6396. default:
  6397. z.DecStructFieldNotFound(-1, yys3)
  6398. } // end switch yys3
  6399. } // end for yyj3
  6400. r.ReadMapEnd()
  6401. }
  6402. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  6403. var h codecSelfer19780
  6404. z, r := GenHelperDecoder(d)
  6405. _, _, _ = h, z, r
  6406. var yyj84 int
  6407. var yyb84 bool
  6408. var yyhl84 bool = l >= 0
  6409. yyj84++
  6410. if yyhl84 {
  6411. yyb84 = yyj84 > l
  6412. } else {
  6413. yyb84 = r.CheckBreak()
  6414. }
  6415. if yyb84 {
  6416. r.ReadArrayEnd()
  6417. return
  6418. }
  6419. r.ReadArrayElem()
  6420. if r.TryDecodeAsNil() {
  6421. x.TestStrucCommon.S = ""
  6422. } else {
  6423. x.S = (string)(r.DecodeString())
  6424. }
  6425. yyj84++
  6426. if yyhl84 {
  6427. yyb84 = yyj84 > l
  6428. } else {
  6429. yyb84 = r.CheckBreak()
  6430. }
  6431. if yyb84 {
  6432. r.ReadArrayEnd()
  6433. return
  6434. }
  6435. r.ReadArrayElem()
  6436. if r.TryDecodeAsNil() {
  6437. x.TestStrucCommon.I64 = 0
  6438. } else {
  6439. x.I64 = (int64)(r.DecodeInt64())
  6440. }
  6441. yyj84++
  6442. if yyhl84 {
  6443. yyb84 = yyj84 > l
  6444. } else {
  6445. yyb84 = r.CheckBreak()
  6446. }
  6447. if yyb84 {
  6448. r.ReadArrayEnd()
  6449. return
  6450. }
  6451. r.ReadArrayElem()
  6452. if r.TryDecodeAsNil() {
  6453. x.TestStrucCommon.I32 = 0
  6454. } else {
  6455. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6456. }
  6457. yyj84++
  6458. if yyhl84 {
  6459. yyb84 = yyj84 > l
  6460. } else {
  6461. yyb84 = r.CheckBreak()
  6462. }
  6463. if yyb84 {
  6464. r.ReadArrayEnd()
  6465. return
  6466. }
  6467. r.ReadArrayElem()
  6468. if r.TryDecodeAsNil() {
  6469. x.TestStrucCommon.I16 = 0
  6470. } else {
  6471. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6472. }
  6473. yyj84++
  6474. if yyhl84 {
  6475. yyb84 = yyj84 > l
  6476. } else {
  6477. yyb84 = r.CheckBreak()
  6478. }
  6479. if yyb84 {
  6480. r.ReadArrayEnd()
  6481. return
  6482. }
  6483. r.ReadArrayElem()
  6484. if r.TryDecodeAsNil() {
  6485. x.TestStrucCommon.I8 = 0
  6486. } else {
  6487. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6488. }
  6489. yyj84++
  6490. if yyhl84 {
  6491. yyb84 = yyj84 > l
  6492. } else {
  6493. yyb84 = r.CheckBreak()
  6494. }
  6495. if yyb84 {
  6496. r.ReadArrayEnd()
  6497. return
  6498. }
  6499. r.ReadArrayElem()
  6500. if r.TryDecodeAsNil() {
  6501. x.TestStrucCommon.I64n = 0
  6502. } else {
  6503. x.I64n = (int64)(r.DecodeInt64())
  6504. }
  6505. yyj84++
  6506. if yyhl84 {
  6507. yyb84 = yyj84 > l
  6508. } else {
  6509. yyb84 = r.CheckBreak()
  6510. }
  6511. if yyb84 {
  6512. r.ReadArrayEnd()
  6513. return
  6514. }
  6515. r.ReadArrayElem()
  6516. if r.TryDecodeAsNil() {
  6517. x.TestStrucCommon.I32n = 0
  6518. } else {
  6519. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  6520. }
  6521. yyj84++
  6522. if yyhl84 {
  6523. yyb84 = yyj84 > l
  6524. } else {
  6525. yyb84 = r.CheckBreak()
  6526. }
  6527. if yyb84 {
  6528. r.ReadArrayEnd()
  6529. return
  6530. }
  6531. r.ReadArrayElem()
  6532. if r.TryDecodeAsNil() {
  6533. x.TestStrucCommon.I16n = 0
  6534. } else {
  6535. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6536. }
  6537. yyj84++
  6538. if yyhl84 {
  6539. yyb84 = yyj84 > l
  6540. } else {
  6541. yyb84 = r.CheckBreak()
  6542. }
  6543. if yyb84 {
  6544. r.ReadArrayEnd()
  6545. return
  6546. }
  6547. r.ReadArrayElem()
  6548. if r.TryDecodeAsNil() {
  6549. x.TestStrucCommon.I8n = 0
  6550. } else {
  6551. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  6552. }
  6553. yyj84++
  6554. if yyhl84 {
  6555. yyb84 = yyj84 > l
  6556. } else {
  6557. yyb84 = r.CheckBreak()
  6558. }
  6559. if yyb84 {
  6560. r.ReadArrayEnd()
  6561. return
  6562. }
  6563. r.ReadArrayElem()
  6564. if r.TryDecodeAsNil() {
  6565. x.TestStrucCommon.Ui64 = 0
  6566. } else {
  6567. x.Ui64 = (uint64)(r.DecodeUint64())
  6568. }
  6569. yyj84++
  6570. if yyhl84 {
  6571. yyb84 = yyj84 > l
  6572. } else {
  6573. yyb84 = r.CheckBreak()
  6574. }
  6575. if yyb84 {
  6576. r.ReadArrayEnd()
  6577. return
  6578. }
  6579. r.ReadArrayElem()
  6580. if r.TryDecodeAsNil() {
  6581. x.TestStrucCommon.Ui32 = 0
  6582. } else {
  6583. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6584. }
  6585. yyj84++
  6586. if yyhl84 {
  6587. yyb84 = yyj84 > l
  6588. } else {
  6589. yyb84 = r.CheckBreak()
  6590. }
  6591. if yyb84 {
  6592. r.ReadArrayEnd()
  6593. return
  6594. }
  6595. r.ReadArrayElem()
  6596. if r.TryDecodeAsNil() {
  6597. x.TestStrucCommon.Ui16 = 0
  6598. } else {
  6599. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  6600. }
  6601. yyj84++
  6602. if yyhl84 {
  6603. yyb84 = yyj84 > l
  6604. } else {
  6605. yyb84 = r.CheckBreak()
  6606. }
  6607. if yyb84 {
  6608. r.ReadArrayEnd()
  6609. return
  6610. }
  6611. r.ReadArrayElem()
  6612. if r.TryDecodeAsNil() {
  6613. x.TestStrucCommon.Ui8 = 0
  6614. } else {
  6615. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6616. }
  6617. yyj84++
  6618. if yyhl84 {
  6619. yyb84 = yyj84 > l
  6620. } else {
  6621. yyb84 = r.CheckBreak()
  6622. }
  6623. if yyb84 {
  6624. r.ReadArrayEnd()
  6625. return
  6626. }
  6627. r.ReadArrayElem()
  6628. if r.TryDecodeAsNil() {
  6629. x.TestStrucCommon.F64 = 0
  6630. } else {
  6631. x.F64 = (float64)(r.DecodeFloat64())
  6632. }
  6633. yyj84++
  6634. if yyhl84 {
  6635. yyb84 = yyj84 > l
  6636. } else {
  6637. yyb84 = r.CheckBreak()
  6638. }
  6639. if yyb84 {
  6640. r.ReadArrayEnd()
  6641. return
  6642. }
  6643. r.ReadArrayElem()
  6644. if r.TryDecodeAsNil() {
  6645. x.TestStrucCommon.F32 = 0
  6646. } else {
  6647. x.F32 = (float32)(r.DecodeFloat32As64())
  6648. }
  6649. yyj84++
  6650. if yyhl84 {
  6651. yyb84 = yyj84 > l
  6652. } else {
  6653. yyb84 = r.CheckBreak()
  6654. }
  6655. if yyb84 {
  6656. r.ReadArrayEnd()
  6657. return
  6658. }
  6659. r.ReadArrayElem()
  6660. if r.TryDecodeAsNil() {
  6661. x.TestStrucCommon.B = false
  6662. } else {
  6663. x.B = (bool)(r.DecodeBool())
  6664. }
  6665. yyj84++
  6666. if yyhl84 {
  6667. yyb84 = yyj84 > l
  6668. } else {
  6669. yyb84 = r.CheckBreak()
  6670. }
  6671. if yyb84 {
  6672. r.ReadArrayEnd()
  6673. return
  6674. }
  6675. r.ReadArrayElem()
  6676. if r.TryDecodeAsNil() {
  6677. x.TestStrucCommon.By = 0
  6678. } else {
  6679. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  6680. }
  6681. yyj84++
  6682. if yyhl84 {
  6683. yyb84 = yyj84 > l
  6684. } else {
  6685. yyb84 = r.CheckBreak()
  6686. }
  6687. if yyb84 {
  6688. r.ReadArrayEnd()
  6689. return
  6690. }
  6691. r.ReadArrayElem()
  6692. if r.TryDecodeAsNil() {
  6693. x.TestStrucCommon.Sslice = nil
  6694. } else {
  6695. if false {
  6696. } else {
  6697. z.F.DecSliceStringX(&x.Sslice, d)
  6698. }
  6699. }
  6700. yyj84++
  6701. if yyhl84 {
  6702. yyb84 = yyj84 > l
  6703. } else {
  6704. yyb84 = r.CheckBreak()
  6705. }
  6706. if yyb84 {
  6707. r.ReadArrayEnd()
  6708. return
  6709. }
  6710. r.ReadArrayElem()
  6711. if r.TryDecodeAsNil() {
  6712. x.TestStrucCommon.I64slice = nil
  6713. } else {
  6714. if false {
  6715. } else {
  6716. z.F.DecSliceInt64X(&x.I64slice, d)
  6717. }
  6718. }
  6719. yyj84++
  6720. if yyhl84 {
  6721. yyb84 = yyj84 > l
  6722. } else {
  6723. yyb84 = r.CheckBreak()
  6724. }
  6725. if yyb84 {
  6726. r.ReadArrayEnd()
  6727. return
  6728. }
  6729. r.ReadArrayElem()
  6730. if r.TryDecodeAsNil() {
  6731. x.TestStrucCommon.I16slice = nil
  6732. } else {
  6733. if false {
  6734. } else {
  6735. z.F.DecSliceInt16X(&x.I16slice, d)
  6736. }
  6737. }
  6738. yyj84++
  6739. if yyhl84 {
  6740. yyb84 = yyj84 > l
  6741. } else {
  6742. yyb84 = r.CheckBreak()
  6743. }
  6744. if yyb84 {
  6745. r.ReadArrayEnd()
  6746. return
  6747. }
  6748. r.ReadArrayElem()
  6749. if r.TryDecodeAsNil() {
  6750. x.TestStrucCommon.Ui64slice = nil
  6751. } else {
  6752. if false {
  6753. } else {
  6754. z.F.DecSliceUint64X(&x.Ui64slice, d)
  6755. }
  6756. }
  6757. yyj84++
  6758. if yyhl84 {
  6759. yyb84 = yyj84 > l
  6760. } else {
  6761. yyb84 = r.CheckBreak()
  6762. }
  6763. if yyb84 {
  6764. r.ReadArrayEnd()
  6765. return
  6766. }
  6767. r.ReadArrayElem()
  6768. if r.TryDecodeAsNil() {
  6769. x.TestStrucCommon.Ui8slice = nil
  6770. } else {
  6771. if false {
  6772. } else {
  6773. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  6774. }
  6775. }
  6776. yyj84++
  6777. if yyhl84 {
  6778. yyb84 = yyj84 > l
  6779. } else {
  6780. yyb84 = r.CheckBreak()
  6781. }
  6782. if yyb84 {
  6783. r.ReadArrayEnd()
  6784. return
  6785. }
  6786. r.ReadArrayElem()
  6787. if r.TryDecodeAsNil() {
  6788. x.TestStrucCommon.Bslice = nil
  6789. } else {
  6790. if false {
  6791. } else {
  6792. z.F.DecSliceBoolX(&x.Bslice, d)
  6793. }
  6794. }
  6795. yyj84++
  6796. if yyhl84 {
  6797. yyb84 = yyj84 > l
  6798. } else {
  6799. yyb84 = r.CheckBreak()
  6800. }
  6801. if yyb84 {
  6802. r.ReadArrayEnd()
  6803. return
  6804. }
  6805. r.ReadArrayElem()
  6806. if r.TryDecodeAsNil() {
  6807. x.TestStrucCommon.Byslice = nil
  6808. } else {
  6809. if false {
  6810. } else {
  6811. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  6812. }
  6813. }
  6814. yyj84++
  6815. if yyhl84 {
  6816. yyb84 = yyj84 > l
  6817. } else {
  6818. yyb84 = r.CheckBreak()
  6819. }
  6820. if yyb84 {
  6821. r.ReadArrayEnd()
  6822. return
  6823. }
  6824. r.ReadArrayElem()
  6825. if r.TryDecodeAsNil() {
  6826. x.TestStrucCommon.Iptrslice = nil
  6827. } else {
  6828. if false {
  6829. } else {
  6830. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  6831. }
  6832. }
  6833. yyj84++
  6834. if yyhl84 {
  6835. yyb84 = yyj84 > l
  6836. } else {
  6837. yyb84 = r.CheckBreak()
  6838. }
  6839. if yyb84 {
  6840. r.ReadArrayEnd()
  6841. return
  6842. }
  6843. r.ReadArrayElem()
  6844. if r.TryDecodeAsNil() {
  6845. x.TestStrucCommon.WrapSliceInt64 = nil
  6846. } else {
  6847. x.WrapSliceInt64.CodecDecodeSelf(d)
  6848. }
  6849. yyj84++
  6850. if yyhl84 {
  6851. yyb84 = yyj84 > l
  6852. } else {
  6853. yyb84 = r.CheckBreak()
  6854. }
  6855. if yyb84 {
  6856. r.ReadArrayEnd()
  6857. return
  6858. }
  6859. r.ReadArrayElem()
  6860. if r.TryDecodeAsNil() {
  6861. x.TestStrucCommon.WrapSliceString = nil
  6862. } else {
  6863. x.WrapSliceString.CodecDecodeSelf(d)
  6864. }
  6865. yyj84++
  6866. if yyhl84 {
  6867. yyb84 = yyj84 > l
  6868. } else {
  6869. yyb84 = r.CheckBreak()
  6870. }
  6871. if yyb84 {
  6872. r.ReadArrayEnd()
  6873. return
  6874. }
  6875. r.ReadArrayElem()
  6876. if r.TryDecodeAsNil() {
  6877. x.TestStrucCommon.Msi64 = nil
  6878. } else {
  6879. if false {
  6880. } else {
  6881. z.F.DecMapStringInt64X(&x.Msi64, d)
  6882. }
  6883. }
  6884. yyj84++
  6885. if yyhl84 {
  6886. yyb84 = yyj84 > l
  6887. } else {
  6888. yyb84 = r.CheckBreak()
  6889. }
  6890. if yyb84 {
  6891. r.ReadArrayEnd()
  6892. return
  6893. }
  6894. r.ReadArrayElem()
  6895. if r.TryDecodeAsNil() {
  6896. x.TestStrucCommon.Simplef = testSimpleFields{}
  6897. } else {
  6898. x.Simplef.CodecDecodeSelf(d)
  6899. }
  6900. yyj84++
  6901. if yyhl84 {
  6902. yyb84 = yyj84 > l
  6903. } else {
  6904. yyb84 = r.CheckBreak()
  6905. }
  6906. if yyb84 {
  6907. r.ReadArrayEnd()
  6908. return
  6909. }
  6910. r.ReadArrayElem()
  6911. if r.TryDecodeAsNil() {
  6912. x.TestStrucCommon.SstrUi64T = nil
  6913. } else {
  6914. if false {
  6915. } else {
  6916. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  6917. }
  6918. }
  6919. yyj84++
  6920. if yyhl84 {
  6921. yyb84 = yyj84 > l
  6922. } else {
  6923. yyb84 = r.CheckBreak()
  6924. }
  6925. if yyb84 {
  6926. r.ReadArrayEnd()
  6927. return
  6928. }
  6929. r.ReadArrayElem()
  6930. if r.TryDecodeAsNil() {
  6931. x.TestStrucCommon.AnonInTestStruc.AS = ""
  6932. } else {
  6933. x.AS = (string)(r.DecodeString())
  6934. }
  6935. yyj84++
  6936. if yyhl84 {
  6937. yyb84 = yyj84 > l
  6938. } else {
  6939. yyb84 = r.CheckBreak()
  6940. }
  6941. if yyb84 {
  6942. r.ReadArrayEnd()
  6943. return
  6944. }
  6945. r.ReadArrayElem()
  6946. if r.TryDecodeAsNil() {
  6947. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  6948. } else {
  6949. x.AI64 = (int64)(r.DecodeInt64())
  6950. }
  6951. yyj84++
  6952. if yyhl84 {
  6953. yyb84 = yyj84 > l
  6954. } else {
  6955. yyb84 = r.CheckBreak()
  6956. }
  6957. if yyb84 {
  6958. r.ReadArrayEnd()
  6959. return
  6960. }
  6961. r.ReadArrayElem()
  6962. if r.TryDecodeAsNil() {
  6963. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  6964. } else {
  6965. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  6966. }
  6967. yyj84++
  6968. if yyhl84 {
  6969. yyb84 = yyj84 > l
  6970. } else {
  6971. yyb84 = r.CheckBreak()
  6972. }
  6973. if yyb84 {
  6974. r.ReadArrayEnd()
  6975. return
  6976. }
  6977. r.ReadArrayElem()
  6978. if r.TryDecodeAsNil() {
  6979. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  6980. } else {
  6981. x.AUi64 = (uint64)(r.DecodeUint64())
  6982. }
  6983. yyj84++
  6984. if yyhl84 {
  6985. yyb84 = yyj84 > l
  6986. } else {
  6987. yyb84 = r.CheckBreak()
  6988. }
  6989. if yyb84 {
  6990. r.ReadArrayEnd()
  6991. return
  6992. }
  6993. r.ReadArrayElem()
  6994. if r.TryDecodeAsNil() {
  6995. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  6996. } else {
  6997. if false {
  6998. } else {
  6999. z.F.DecSliceStringX(&x.ASslice, d)
  7000. }
  7001. }
  7002. yyj84++
  7003. if yyhl84 {
  7004. yyb84 = yyj84 > l
  7005. } else {
  7006. yyb84 = r.CheckBreak()
  7007. }
  7008. if yyb84 {
  7009. r.ReadArrayEnd()
  7010. return
  7011. }
  7012. r.ReadArrayElem()
  7013. if r.TryDecodeAsNil() {
  7014. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  7015. } else {
  7016. if false {
  7017. } else {
  7018. z.F.DecSliceInt64X(&x.AI64slice, d)
  7019. }
  7020. }
  7021. yyj84++
  7022. if yyhl84 {
  7023. yyb84 = yyj84 > l
  7024. } else {
  7025. yyb84 = r.CheckBreak()
  7026. }
  7027. if yyb84 {
  7028. r.ReadArrayEnd()
  7029. return
  7030. }
  7031. r.ReadArrayElem()
  7032. if r.TryDecodeAsNil() {
  7033. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  7034. } else {
  7035. if false {
  7036. } else {
  7037. z.F.DecSliceUint64X(&x.AUi64slice, d)
  7038. }
  7039. }
  7040. yyj84++
  7041. if yyhl84 {
  7042. yyb84 = yyj84 > l
  7043. } else {
  7044. yyb84 = r.CheckBreak()
  7045. }
  7046. if yyb84 {
  7047. r.ReadArrayEnd()
  7048. return
  7049. }
  7050. r.ReadArrayElem()
  7051. if r.TryDecodeAsNil() {
  7052. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  7053. } else {
  7054. if false {
  7055. } else {
  7056. z.F.DecSliceFloat64X(&x.AF64slice, d)
  7057. }
  7058. }
  7059. yyj84++
  7060. if yyhl84 {
  7061. yyb84 = yyj84 > l
  7062. } else {
  7063. yyb84 = r.CheckBreak()
  7064. }
  7065. if yyb84 {
  7066. r.ReadArrayEnd()
  7067. return
  7068. }
  7069. r.ReadArrayElem()
  7070. if r.TryDecodeAsNil() {
  7071. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  7072. } else {
  7073. if false {
  7074. } else {
  7075. z.F.DecSliceFloat32X(&x.AF32slice, d)
  7076. }
  7077. }
  7078. yyj84++
  7079. if yyhl84 {
  7080. yyb84 = yyj84 > l
  7081. } else {
  7082. yyb84 = r.CheckBreak()
  7083. }
  7084. if yyb84 {
  7085. r.ReadArrayEnd()
  7086. return
  7087. }
  7088. r.ReadArrayElem()
  7089. if r.TryDecodeAsNil() {
  7090. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  7091. } else {
  7092. if false {
  7093. } else {
  7094. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  7095. }
  7096. }
  7097. yyj84++
  7098. if yyhl84 {
  7099. yyb84 = yyj84 > l
  7100. } else {
  7101. yyb84 = r.CheckBreak()
  7102. }
  7103. if yyb84 {
  7104. r.ReadArrayEnd()
  7105. return
  7106. }
  7107. r.ReadArrayElem()
  7108. if r.TryDecodeAsNil() {
  7109. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  7110. } else {
  7111. if false {
  7112. } else {
  7113. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  7114. }
  7115. }
  7116. yyj84++
  7117. if yyhl84 {
  7118. yyb84 = yyj84 > l
  7119. } else {
  7120. yyb84 = r.CheckBreak()
  7121. }
  7122. if yyb84 {
  7123. r.ReadArrayEnd()
  7124. return
  7125. }
  7126. r.ReadArrayElem()
  7127. if r.TryDecodeAsNil() {
  7128. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  7129. } else {
  7130. if false {
  7131. } else {
  7132. z.F.DecSliceInt64X(&x.A164slice0, d)
  7133. }
  7134. }
  7135. yyj84++
  7136. if yyhl84 {
  7137. yyb84 = yyj84 > l
  7138. } else {
  7139. yyb84 = r.CheckBreak()
  7140. }
  7141. if yyb84 {
  7142. r.ReadArrayEnd()
  7143. return
  7144. }
  7145. r.ReadArrayElem()
  7146. if r.TryDecodeAsNil() {
  7147. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  7148. } else {
  7149. if false {
  7150. } else {
  7151. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  7152. }
  7153. }
  7154. yyj84++
  7155. if yyhl84 {
  7156. yyb84 = yyj84 > l
  7157. } else {
  7158. yyb84 = r.CheckBreak()
  7159. }
  7160. if yyb84 {
  7161. r.ReadArrayEnd()
  7162. return
  7163. }
  7164. r.ReadArrayElem()
  7165. if r.TryDecodeAsNil() {
  7166. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  7167. } else {
  7168. if false {
  7169. } else {
  7170. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  7171. }
  7172. }
  7173. yyj84++
  7174. if yyhl84 {
  7175. yyb84 = yyj84 > l
  7176. } else {
  7177. yyb84 = r.CheckBreak()
  7178. }
  7179. if yyb84 {
  7180. r.ReadArrayEnd()
  7181. return
  7182. }
  7183. r.ReadArrayElem()
  7184. if r.TryDecodeAsNil() {
  7185. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  7186. } else {
  7187. if false {
  7188. } else {
  7189. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  7190. }
  7191. }
  7192. yyj84++
  7193. if yyhl84 {
  7194. yyb84 = yyj84 > l
  7195. } else {
  7196. yyb84 = r.CheckBreak()
  7197. }
  7198. if yyb84 {
  7199. r.ReadArrayEnd()
  7200. return
  7201. }
  7202. r.ReadArrayElem()
  7203. if r.TryDecodeAsNil() {
  7204. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  7205. } else {
  7206. x.NotAnon.CodecDecodeSelf(d)
  7207. }
  7208. yyj84++
  7209. if yyhl84 {
  7210. yyb84 = yyj84 > l
  7211. } else {
  7212. yyb84 = r.CheckBreak()
  7213. }
  7214. if yyb84 {
  7215. r.ReadArrayEnd()
  7216. return
  7217. }
  7218. r.ReadArrayElem()
  7219. if r.TryDecodeAsNil() {
  7220. x.TestStrucCommon.Nmap = nil
  7221. } else {
  7222. if false {
  7223. } else {
  7224. z.F.DecMapStringBoolX(&x.Nmap, d)
  7225. }
  7226. }
  7227. yyj84++
  7228. if yyhl84 {
  7229. yyb84 = yyj84 > l
  7230. } else {
  7231. yyb84 = r.CheckBreak()
  7232. }
  7233. if yyb84 {
  7234. r.ReadArrayEnd()
  7235. return
  7236. }
  7237. r.ReadArrayElem()
  7238. if r.TryDecodeAsNil() {
  7239. x.TestStrucCommon.Nslice = nil
  7240. } else {
  7241. if false {
  7242. } else {
  7243. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  7244. }
  7245. }
  7246. yyj84++
  7247. if yyhl84 {
  7248. yyb84 = yyj84 > l
  7249. } else {
  7250. yyb84 = r.CheckBreak()
  7251. }
  7252. if yyb84 {
  7253. r.ReadArrayEnd()
  7254. return
  7255. }
  7256. r.ReadArrayElem()
  7257. if r.TryDecodeAsNil() {
  7258. if true && x.TestStrucCommon.Nint64 != nil {
  7259. x.TestStrucCommon.Nint64 = nil
  7260. }
  7261. } else {
  7262. if x.TestStrucCommon.Nint64 == nil {
  7263. x.TestStrucCommon.Nint64 = new(int64)
  7264. }
  7265. if false {
  7266. } else {
  7267. *x.Nint64 = (int64)(r.DecodeInt64())
  7268. }
  7269. }
  7270. yyj84++
  7271. if yyhl84 {
  7272. yyb84 = yyj84 > l
  7273. } else {
  7274. yyb84 = r.CheckBreak()
  7275. }
  7276. if yyb84 {
  7277. r.ReadArrayEnd()
  7278. return
  7279. }
  7280. r.ReadArrayElem()
  7281. if r.TryDecodeAsNil() {
  7282. x.Mtsptr = nil
  7283. } else {
  7284. if false {
  7285. } else {
  7286. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  7287. }
  7288. }
  7289. yyj84++
  7290. if yyhl84 {
  7291. yyb84 = yyj84 > l
  7292. } else {
  7293. yyb84 = r.CheckBreak()
  7294. }
  7295. if yyb84 {
  7296. r.ReadArrayEnd()
  7297. return
  7298. }
  7299. r.ReadArrayElem()
  7300. if r.TryDecodeAsNil() {
  7301. x.Mts = nil
  7302. } else {
  7303. if false {
  7304. } else {
  7305. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  7306. }
  7307. }
  7308. yyj84++
  7309. if yyhl84 {
  7310. yyb84 = yyj84 > l
  7311. } else {
  7312. yyb84 = r.CheckBreak()
  7313. }
  7314. if yyb84 {
  7315. r.ReadArrayEnd()
  7316. return
  7317. }
  7318. r.ReadArrayElem()
  7319. if r.TryDecodeAsNil() {
  7320. x.Its = nil
  7321. } else {
  7322. if false {
  7323. } else {
  7324. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  7325. }
  7326. }
  7327. yyj84++
  7328. if yyhl84 {
  7329. yyb84 = yyj84 > l
  7330. } else {
  7331. yyb84 = r.CheckBreak()
  7332. }
  7333. if yyb84 {
  7334. r.ReadArrayEnd()
  7335. return
  7336. }
  7337. r.ReadArrayElem()
  7338. if r.TryDecodeAsNil() {
  7339. if true && x.Nteststruc != nil {
  7340. x.Nteststruc = nil
  7341. }
  7342. } else {
  7343. if x.Nteststruc == nil {
  7344. x.Nteststruc = new(TestStruc)
  7345. }
  7346. x.Nteststruc.CodecDecodeSelf(d)
  7347. }
  7348. for {
  7349. yyj84++
  7350. if yyhl84 {
  7351. yyb84 = yyj84 > l
  7352. } else {
  7353. yyb84 = r.CheckBreak()
  7354. }
  7355. if yyb84 {
  7356. break
  7357. }
  7358. r.ReadArrayElem()
  7359. z.DecStructFieldNotFound(yyj84-1, "")
  7360. }
  7361. r.ReadArrayEnd()
  7362. }
  7363. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  7364. var h codecSelfer19780
  7365. z, r := GenHelperEncoder(e)
  7366. _, _, _ = h, z, r
  7367. if false {
  7368. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7369. z.EncExtension(x, yyxt1)
  7370. } else {
  7371. r.EncodeBool(bool(x))
  7372. }
  7373. }
  7374. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  7375. var h codecSelfer19780
  7376. z, r := GenHelperDecoder(d)
  7377. _, _, _ = h, z, r
  7378. if false {
  7379. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7380. z.DecExtension(x, yyxt1)
  7381. } else {
  7382. *x = (Bbool)(r.DecodeBool())
  7383. }
  7384. }
  7385. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  7386. var h codecSelfer19780
  7387. z, r := GenHelperEncoder(e)
  7388. _, _, _ = h, z, r
  7389. if x == nil {
  7390. r.EncodeNil()
  7391. } else {
  7392. if false {
  7393. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7394. z.EncExtension(x, yyxt1)
  7395. } else {
  7396. h.encAarray((*Aarray)(x), e)
  7397. }
  7398. }
  7399. }
  7400. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  7401. var h codecSelfer19780
  7402. z, r := GenHelperDecoder(d)
  7403. _, _, _ = h, z, r
  7404. if false {
  7405. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7406. z.DecExtension(x, yyxt1)
  7407. } else {
  7408. h.decAarray((*Aarray)(x), d)
  7409. }
  7410. }
  7411. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  7412. var h codecSelfer19780
  7413. z, r := GenHelperEncoder(e)
  7414. _, _, _ = h, z, r
  7415. if false {
  7416. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7417. z.EncExtension(x, yyxt1)
  7418. } else {
  7419. if z.EncBasicHandle().StringToRaw {
  7420. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  7421. } else {
  7422. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  7423. }
  7424. }
  7425. }
  7426. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  7427. var h codecSelfer19780
  7428. z, r := GenHelperDecoder(d)
  7429. _, _, _ = h, z, r
  7430. if false {
  7431. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7432. z.DecExtension(x, yyxt1)
  7433. } else {
  7434. *x = (Sstring)(r.DecodeString())
  7435. }
  7436. }
  7437. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  7438. var h codecSelfer19780
  7439. z, r := GenHelperEncoder(e)
  7440. _, _, _ = h, z, r
  7441. if x == nil {
  7442. r.EncodeNil()
  7443. } else {
  7444. if false {
  7445. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7446. z.EncExtension(x, yyxt1)
  7447. } else {
  7448. yysep2 := !z.EncBinary()
  7449. yy2arr2 := z.EncBasicHandle().StructToArray
  7450. _, _ = yysep2, yy2arr2
  7451. const yyr2 bool = false // struct tag has 'toArray'
  7452. if yyr2 || yy2arr2 {
  7453. r.WriteArrayStart(1)
  7454. } else {
  7455. r.WriteMapStart(1)
  7456. }
  7457. if yyr2 || yy2arr2 {
  7458. r.WriteArrayElem()
  7459. if false {
  7460. } else {
  7461. r.EncodeInt(int64(x.A))
  7462. }
  7463. } else {
  7464. r.WriteMapElemKey()
  7465. if z.IsJSONHandle() {
  7466. z.WriteStr("\"A\"")
  7467. } else {
  7468. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7469. }
  7470. r.WriteMapElemValue()
  7471. if false {
  7472. } else {
  7473. r.EncodeInt(int64(x.A))
  7474. }
  7475. }
  7476. if yyr2 || yy2arr2 {
  7477. r.WriteArrayEnd()
  7478. } else {
  7479. r.WriteMapEnd()
  7480. }
  7481. }
  7482. }
  7483. }
  7484. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  7485. var h codecSelfer19780
  7486. z, r := GenHelperDecoder(d)
  7487. _, _, _ = h, z, r
  7488. if false {
  7489. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7490. z.DecExtension(x, yyxt1)
  7491. } else {
  7492. yyct2 := r.ContainerType()
  7493. if yyct2 == codecSelferValueTypeMap19780 {
  7494. yyl2 := r.ReadMapStart()
  7495. if yyl2 == 0 {
  7496. r.ReadMapEnd()
  7497. } else {
  7498. x.codecDecodeSelfFromMap(yyl2, d)
  7499. }
  7500. } else if yyct2 == codecSelferValueTypeArray19780 {
  7501. yyl2 := r.ReadArrayStart()
  7502. if yyl2 == 0 {
  7503. r.ReadArrayEnd()
  7504. } else {
  7505. x.codecDecodeSelfFromArray(yyl2, d)
  7506. }
  7507. } else {
  7508. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7509. }
  7510. }
  7511. }
  7512. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  7513. var h codecSelfer19780
  7514. z, r := GenHelperDecoder(d)
  7515. _, _, _ = h, z, r
  7516. var yyhl3 bool = l >= 0
  7517. for yyj3 := 0; ; yyj3++ {
  7518. if yyhl3 {
  7519. if yyj3 >= l {
  7520. break
  7521. }
  7522. } else {
  7523. if r.CheckBreak() {
  7524. break
  7525. }
  7526. }
  7527. r.ReadMapElemKey()
  7528. yys3 := z.StringView(r.DecodeStringAsBytes())
  7529. r.ReadMapElemValue()
  7530. switch yys3 {
  7531. case "A":
  7532. if r.TryDecodeAsNil() {
  7533. x.A = 0
  7534. } else {
  7535. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7536. }
  7537. default:
  7538. z.DecStructFieldNotFound(-1, yys3)
  7539. } // end switch yys3
  7540. } // end for yyj3
  7541. r.ReadMapEnd()
  7542. }
  7543. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  7544. var h codecSelfer19780
  7545. z, r := GenHelperDecoder(d)
  7546. _, _, _ = h, z, r
  7547. var yyj5 int
  7548. var yyb5 bool
  7549. var yyhl5 bool = l >= 0
  7550. yyj5++
  7551. if yyhl5 {
  7552. yyb5 = yyj5 > l
  7553. } else {
  7554. yyb5 = r.CheckBreak()
  7555. }
  7556. if yyb5 {
  7557. r.ReadArrayEnd()
  7558. return
  7559. }
  7560. r.ReadArrayElem()
  7561. if r.TryDecodeAsNil() {
  7562. x.A = 0
  7563. } else {
  7564. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7565. }
  7566. for {
  7567. yyj5++
  7568. if yyhl5 {
  7569. yyb5 = yyj5 > l
  7570. } else {
  7571. yyb5 = r.CheckBreak()
  7572. }
  7573. if yyb5 {
  7574. break
  7575. }
  7576. r.ReadArrayElem()
  7577. z.DecStructFieldNotFound(yyj5-1, "")
  7578. }
  7579. r.ReadArrayEnd()
  7580. }
  7581. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  7582. var h codecSelfer19780
  7583. z, r := GenHelperEncoder(e)
  7584. _, _, _ = h, z, r
  7585. if x == nil {
  7586. r.EncodeNil()
  7587. } else {
  7588. if false {
  7589. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7590. z.EncExtension(x, yyxt1)
  7591. } else {
  7592. yysep2 := !z.EncBinary()
  7593. yy2arr2 := z.EncBasicHandle().StructToArray
  7594. _, _ = yysep2, yy2arr2
  7595. const yyr2 bool = false // struct tag has 'toArray'
  7596. if yyr2 || yy2arr2 {
  7597. r.WriteArrayStart(5)
  7598. } else {
  7599. r.WriteMapStart(5)
  7600. }
  7601. if yyr2 || yy2arr2 {
  7602. r.WriteArrayElem()
  7603. if false {
  7604. } else {
  7605. r.EncodeInt(int64(x.A))
  7606. }
  7607. } else {
  7608. r.WriteMapElemKey()
  7609. if z.IsJSONHandle() {
  7610. z.WriteStr("\"A\"")
  7611. } else {
  7612. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7613. }
  7614. r.WriteMapElemValue()
  7615. if false {
  7616. } else {
  7617. r.EncodeInt(int64(x.A))
  7618. }
  7619. }
  7620. if yyr2 || yy2arr2 {
  7621. r.WriteArrayElem()
  7622. if false {
  7623. } else {
  7624. r.EncodeBool(bool(x.B))
  7625. }
  7626. } else {
  7627. r.WriteMapElemKey()
  7628. if z.IsJSONHandle() {
  7629. z.WriteStr("\"B\"")
  7630. } else {
  7631. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7632. }
  7633. r.WriteMapElemValue()
  7634. if false {
  7635. } else {
  7636. r.EncodeBool(bool(x.B))
  7637. }
  7638. }
  7639. var yyn9 bool
  7640. if x.Ssmallptr == nil {
  7641. yyn9 = true
  7642. goto LABEL9
  7643. }
  7644. LABEL9:
  7645. if yyr2 || yy2arr2 {
  7646. if yyn9 {
  7647. r.WriteArrayElem()
  7648. r.EncodeNil()
  7649. } else {
  7650. r.WriteArrayElem()
  7651. if x.Ssmallptr == nil {
  7652. r.EncodeNil()
  7653. } else {
  7654. x.Ssmallptr.CodecEncodeSelf(e)
  7655. }
  7656. }
  7657. } else {
  7658. r.WriteMapElemKey()
  7659. if z.IsJSONHandle() {
  7660. z.WriteStr("\"Ssmallptr\"")
  7661. } else {
  7662. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  7663. }
  7664. r.WriteMapElemValue()
  7665. if yyn9 {
  7666. r.EncodeNil()
  7667. } else {
  7668. if x.Ssmallptr == nil {
  7669. r.EncodeNil()
  7670. } else {
  7671. x.Ssmallptr.CodecEncodeSelf(e)
  7672. }
  7673. }
  7674. }
  7675. var yyn12 bool
  7676. if x.Ssmall == nil {
  7677. yyn12 = true
  7678. goto LABEL12
  7679. }
  7680. LABEL12:
  7681. if yyr2 || yy2arr2 {
  7682. if yyn12 {
  7683. r.WriteArrayElem()
  7684. r.EncodeNil()
  7685. } else {
  7686. r.WriteArrayElem()
  7687. if x.Ssmall == nil {
  7688. r.EncodeNil()
  7689. } else {
  7690. x.Ssmall.CodecEncodeSelf(e)
  7691. }
  7692. }
  7693. } else {
  7694. r.WriteMapElemKey()
  7695. if z.IsJSONHandle() {
  7696. z.WriteStr("\"Ssmall\"")
  7697. } else {
  7698. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  7699. }
  7700. r.WriteMapElemValue()
  7701. if yyn12 {
  7702. r.EncodeNil()
  7703. } else {
  7704. if x.Ssmall == nil {
  7705. r.EncodeNil()
  7706. } else {
  7707. x.Ssmall.CodecEncodeSelf(e)
  7708. }
  7709. }
  7710. }
  7711. var yyn15 bool
  7712. if x.Sptr == nil {
  7713. yyn15 = true
  7714. goto LABEL15
  7715. }
  7716. LABEL15:
  7717. if yyr2 || yy2arr2 {
  7718. if yyn15 {
  7719. r.WriteArrayElem()
  7720. r.EncodeNil()
  7721. } else {
  7722. r.WriteArrayElem()
  7723. if x.Sptr == nil {
  7724. r.EncodeNil()
  7725. } else {
  7726. x.Sptr.CodecEncodeSelf(e)
  7727. }
  7728. }
  7729. } else {
  7730. r.WriteMapElemKey()
  7731. if z.IsJSONHandle() {
  7732. z.WriteStr("\"Sptr\"")
  7733. } else {
  7734. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  7735. }
  7736. r.WriteMapElemValue()
  7737. if yyn15 {
  7738. r.EncodeNil()
  7739. } else {
  7740. if x.Sptr == nil {
  7741. r.EncodeNil()
  7742. } else {
  7743. x.Sptr.CodecEncodeSelf(e)
  7744. }
  7745. }
  7746. }
  7747. if yyr2 || yy2arr2 {
  7748. r.WriteArrayEnd()
  7749. } else {
  7750. r.WriteMapEnd()
  7751. }
  7752. }
  7753. }
  7754. }
  7755. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  7756. var h codecSelfer19780
  7757. z, r := GenHelperDecoder(d)
  7758. _, _, _ = h, z, r
  7759. if false {
  7760. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7761. z.DecExtension(x, yyxt1)
  7762. } else {
  7763. yyct2 := r.ContainerType()
  7764. if yyct2 == codecSelferValueTypeMap19780 {
  7765. yyl2 := r.ReadMapStart()
  7766. if yyl2 == 0 {
  7767. r.ReadMapEnd()
  7768. } else {
  7769. x.codecDecodeSelfFromMap(yyl2, d)
  7770. }
  7771. } else if yyct2 == codecSelferValueTypeArray19780 {
  7772. yyl2 := r.ReadArrayStart()
  7773. if yyl2 == 0 {
  7774. r.ReadArrayEnd()
  7775. } else {
  7776. x.codecDecodeSelfFromArray(yyl2, d)
  7777. }
  7778. } else {
  7779. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7780. }
  7781. }
  7782. }
  7783. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  7784. var h codecSelfer19780
  7785. z, r := GenHelperDecoder(d)
  7786. _, _, _ = h, z, r
  7787. var yyhl3 bool = l >= 0
  7788. for yyj3 := 0; ; yyj3++ {
  7789. if yyhl3 {
  7790. if yyj3 >= l {
  7791. break
  7792. }
  7793. } else {
  7794. if r.CheckBreak() {
  7795. break
  7796. }
  7797. }
  7798. r.ReadMapElemKey()
  7799. yys3 := z.StringView(r.DecodeStringAsBytes())
  7800. r.ReadMapElemValue()
  7801. switch yys3 {
  7802. case "A":
  7803. if r.TryDecodeAsNil() {
  7804. x.A = 0
  7805. } else {
  7806. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7807. }
  7808. case "B":
  7809. if r.TryDecodeAsNil() {
  7810. x.B = false
  7811. } else {
  7812. x.B = (bool)(r.DecodeBool())
  7813. }
  7814. case "Ssmallptr":
  7815. if r.TryDecodeAsNil() {
  7816. if true && x.Ssmallptr != nil {
  7817. x.Ssmallptr = nil
  7818. }
  7819. } else {
  7820. if x.Ssmallptr == nil {
  7821. x.Ssmallptr = new(Sstructsmall)
  7822. }
  7823. x.Ssmallptr.CodecDecodeSelf(d)
  7824. }
  7825. case "Ssmall":
  7826. if r.TryDecodeAsNil() {
  7827. if true && x.Ssmall != nil {
  7828. x.Ssmall = nil
  7829. }
  7830. } else {
  7831. if x.Ssmall == nil {
  7832. x.Ssmall = new(Sstructsmall)
  7833. }
  7834. x.Ssmall.CodecDecodeSelf(d)
  7835. }
  7836. case "Sptr":
  7837. if r.TryDecodeAsNil() {
  7838. if true && x.Sptr != nil {
  7839. x.Sptr = nil
  7840. }
  7841. } else {
  7842. if x.Sptr == nil {
  7843. x.Sptr = new(Sstructbig)
  7844. }
  7845. x.Sptr.CodecDecodeSelf(d)
  7846. }
  7847. default:
  7848. z.DecStructFieldNotFound(-1, yys3)
  7849. } // end switch yys3
  7850. } // end for yyj3
  7851. r.ReadMapEnd()
  7852. }
  7853. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  7854. var h codecSelfer19780
  7855. z, r := GenHelperDecoder(d)
  7856. _, _, _ = h, z, r
  7857. var yyj9 int
  7858. var yyb9 bool
  7859. var yyhl9 bool = l >= 0
  7860. yyj9++
  7861. if yyhl9 {
  7862. yyb9 = yyj9 > l
  7863. } else {
  7864. yyb9 = r.CheckBreak()
  7865. }
  7866. if yyb9 {
  7867. r.ReadArrayEnd()
  7868. return
  7869. }
  7870. r.ReadArrayElem()
  7871. if r.TryDecodeAsNil() {
  7872. x.A = 0
  7873. } else {
  7874. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7875. }
  7876. yyj9++
  7877. if yyhl9 {
  7878. yyb9 = yyj9 > l
  7879. } else {
  7880. yyb9 = r.CheckBreak()
  7881. }
  7882. if yyb9 {
  7883. r.ReadArrayEnd()
  7884. return
  7885. }
  7886. r.ReadArrayElem()
  7887. if r.TryDecodeAsNil() {
  7888. x.B = false
  7889. } else {
  7890. x.B = (bool)(r.DecodeBool())
  7891. }
  7892. yyj9++
  7893. if yyhl9 {
  7894. yyb9 = yyj9 > l
  7895. } else {
  7896. yyb9 = r.CheckBreak()
  7897. }
  7898. if yyb9 {
  7899. r.ReadArrayEnd()
  7900. return
  7901. }
  7902. r.ReadArrayElem()
  7903. if r.TryDecodeAsNil() {
  7904. if true && x.Ssmallptr != nil {
  7905. x.Ssmallptr = nil
  7906. }
  7907. } else {
  7908. if x.Ssmallptr == nil {
  7909. x.Ssmallptr = new(Sstructsmall)
  7910. }
  7911. x.Ssmallptr.CodecDecodeSelf(d)
  7912. }
  7913. yyj9++
  7914. if yyhl9 {
  7915. yyb9 = yyj9 > l
  7916. } else {
  7917. yyb9 = r.CheckBreak()
  7918. }
  7919. if yyb9 {
  7920. r.ReadArrayEnd()
  7921. return
  7922. }
  7923. r.ReadArrayElem()
  7924. if r.TryDecodeAsNil() {
  7925. if true && x.Ssmall != nil {
  7926. x.Ssmall = nil
  7927. }
  7928. } else {
  7929. if x.Ssmall == nil {
  7930. x.Ssmall = new(Sstructsmall)
  7931. }
  7932. x.Ssmall.CodecDecodeSelf(d)
  7933. }
  7934. yyj9++
  7935. if yyhl9 {
  7936. yyb9 = yyj9 > l
  7937. } else {
  7938. yyb9 = r.CheckBreak()
  7939. }
  7940. if yyb9 {
  7941. r.ReadArrayEnd()
  7942. return
  7943. }
  7944. r.ReadArrayElem()
  7945. if r.TryDecodeAsNil() {
  7946. if true && x.Sptr != nil {
  7947. x.Sptr = nil
  7948. }
  7949. } else {
  7950. if x.Sptr == nil {
  7951. x.Sptr = new(Sstructbig)
  7952. }
  7953. x.Sptr.CodecDecodeSelf(d)
  7954. }
  7955. for {
  7956. yyj9++
  7957. if yyhl9 {
  7958. yyb9 = yyj9 > l
  7959. } else {
  7960. yyb9 = r.CheckBreak()
  7961. }
  7962. if yyb9 {
  7963. break
  7964. }
  7965. r.ReadArrayElem()
  7966. z.DecStructFieldNotFound(yyj9-1, "")
  7967. }
  7968. r.ReadArrayEnd()
  7969. }
  7970. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  7971. var h codecSelfer19780
  7972. z, r := GenHelperEncoder(e)
  7973. _, _, _ = h, z, r
  7974. if x == nil {
  7975. r.EncodeNil()
  7976. } else {
  7977. if false {
  7978. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  7979. z.EncExtension(x, yyxt1)
  7980. } else {
  7981. yysep2 := !z.EncBinary()
  7982. yy2arr2 := z.EncBasicHandle().StructToArray
  7983. _, _ = yysep2, yy2arr2
  7984. const yyr2 bool = true // struct tag has 'toArray'
  7985. if yyr2 || yy2arr2 {
  7986. r.WriteArrayStart(5)
  7987. } else {
  7988. r.WriteMapStart(5)
  7989. }
  7990. if yyr2 || yy2arr2 {
  7991. r.WriteArrayElem()
  7992. if false {
  7993. } else {
  7994. r.EncodeInt(int64(x.A))
  7995. }
  7996. } else {
  7997. r.WriteMapElemKey()
  7998. if z.IsJSONHandle() {
  7999. z.WriteStr("\"A\"")
  8000. } else {
  8001. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8002. }
  8003. r.WriteMapElemValue()
  8004. if false {
  8005. } else {
  8006. r.EncodeInt(int64(x.A))
  8007. }
  8008. }
  8009. if yyr2 || yy2arr2 {
  8010. r.WriteArrayElem()
  8011. if false {
  8012. } else {
  8013. r.EncodeBool(bool(x.B))
  8014. }
  8015. } else {
  8016. r.WriteMapElemKey()
  8017. if z.IsJSONHandle() {
  8018. z.WriteStr("\"B\"")
  8019. } else {
  8020. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8021. }
  8022. r.WriteMapElemValue()
  8023. if false {
  8024. } else {
  8025. r.EncodeBool(bool(x.B))
  8026. }
  8027. }
  8028. var yyn9 bool
  8029. if x.Ssmallptr == nil {
  8030. yyn9 = true
  8031. goto LABEL9
  8032. }
  8033. LABEL9:
  8034. if yyr2 || yy2arr2 {
  8035. if yyn9 {
  8036. r.WriteArrayElem()
  8037. r.EncodeNil()
  8038. } else {
  8039. r.WriteArrayElem()
  8040. if x.Ssmallptr == nil {
  8041. r.EncodeNil()
  8042. } else {
  8043. x.Ssmallptr.CodecEncodeSelf(e)
  8044. }
  8045. }
  8046. } else {
  8047. r.WriteMapElemKey()
  8048. if z.IsJSONHandle() {
  8049. z.WriteStr("\"Ssmallptr\"")
  8050. } else {
  8051. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  8052. }
  8053. r.WriteMapElemValue()
  8054. if yyn9 {
  8055. r.EncodeNil()
  8056. } else {
  8057. if x.Ssmallptr == nil {
  8058. r.EncodeNil()
  8059. } else {
  8060. x.Ssmallptr.CodecEncodeSelf(e)
  8061. }
  8062. }
  8063. }
  8064. var yyn12 bool
  8065. if x.Ssmall == nil {
  8066. yyn12 = true
  8067. goto LABEL12
  8068. }
  8069. LABEL12:
  8070. if yyr2 || yy2arr2 {
  8071. if yyn12 {
  8072. r.WriteArrayElem()
  8073. r.EncodeNil()
  8074. } else {
  8075. r.WriteArrayElem()
  8076. if x.Ssmall == nil {
  8077. r.EncodeNil()
  8078. } else {
  8079. x.Ssmall.CodecEncodeSelf(e)
  8080. }
  8081. }
  8082. } else {
  8083. r.WriteMapElemKey()
  8084. if z.IsJSONHandle() {
  8085. z.WriteStr("\"Ssmall\"")
  8086. } else {
  8087. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  8088. }
  8089. r.WriteMapElemValue()
  8090. if yyn12 {
  8091. r.EncodeNil()
  8092. } else {
  8093. if x.Ssmall == nil {
  8094. r.EncodeNil()
  8095. } else {
  8096. x.Ssmall.CodecEncodeSelf(e)
  8097. }
  8098. }
  8099. }
  8100. var yyn15 bool
  8101. if x.Sptr == nil {
  8102. yyn15 = true
  8103. goto LABEL15
  8104. }
  8105. LABEL15:
  8106. if yyr2 || yy2arr2 {
  8107. if yyn15 {
  8108. r.WriteArrayElem()
  8109. r.EncodeNil()
  8110. } else {
  8111. r.WriteArrayElem()
  8112. if x.Sptr == nil {
  8113. r.EncodeNil()
  8114. } else {
  8115. x.Sptr.CodecEncodeSelf(e)
  8116. }
  8117. }
  8118. } else {
  8119. r.WriteMapElemKey()
  8120. if z.IsJSONHandle() {
  8121. z.WriteStr("\"Sptr\"")
  8122. } else {
  8123. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  8124. }
  8125. r.WriteMapElemValue()
  8126. if yyn15 {
  8127. r.EncodeNil()
  8128. } else {
  8129. if x.Sptr == nil {
  8130. r.EncodeNil()
  8131. } else {
  8132. x.Sptr.CodecEncodeSelf(e)
  8133. }
  8134. }
  8135. }
  8136. if yyr2 || yy2arr2 {
  8137. r.WriteArrayEnd()
  8138. } else {
  8139. r.WriteMapEnd()
  8140. }
  8141. }
  8142. }
  8143. }
  8144. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  8145. var h codecSelfer19780
  8146. z, r := GenHelperDecoder(d)
  8147. _, _, _ = h, z, r
  8148. if false {
  8149. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8150. z.DecExtension(x, yyxt1)
  8151. } else {
  8152. yyct2 := r.ContainerType()
  8153. if yyct2 == codecSelferValueTypeMap19780 {
  8154. yyl2 := r.ReadMapStart()
  8155. if yyl2 == 0 {
  8156. r.ReadMapEnd()
  8157. } else {
  8158. x.codecDecodeSelfFromMap(yyl2, d)
  8159. }
  8160. } else if yyct2 == codecSelferValueTypeArray19780 {
  8161. yyl2 := r.ReadArrayStart()
  8162. if yyl2 == 0 {
  8163. r.ReadArrayEnd()
  8164. } else {
  8165. x.codecDecodeSelfFromArray(yyl2, d)
  8166. }
  8167. } else {
  8168. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8169. }
  8170. }
  8171. }
  8172. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  8173. var h codecSelfer19780
  8174. z, r := GenHelperDecoder(d)
  8175. _, _, _ = h, z, r
  8176. var yyhl3 bool = l >= 0
  8177. for yyj3 := 0; ; yyj3++ {
  8178. if yyhl3 {
  8179. if yyj3 >= l {
  8180. break
  8181. }
  8182. } else {
  8183. if r.CheckBreak() {
  8184. break
  8185. }
  8186. }
  8187. r.ReadMapElemKey()
  8188. yys3 := z.StringView(r.DecodeStringAsBytes())
  8189. r.ReadMapElemValue()
  8190. switch yys3 {
  8191. case "A":
  8192. if r.TryDecodeAsNil() {
  8193. x.A = 0
  8194. } else {
  8195. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8196. }
  8197. case "B":
  8198. if r.TryDecodeAsNil() {
  8199. x.B = false
  8200. } else {
  8201. x.B = (bool)(r.DecodeBool())
  8202. }
  8203. case "Ssmallptr":
  8204. if r.TryDecodeAsNil() {
  8205. if true && x.Ssmallptr != nil {
  8206. x.Ssmallptr = nil
  8207. }
  8208. } else {
  8209. if x.Ssmallptr == nil {
  8210. x.Ssmallptr = new(Sstructsmall)
  8211. }
  8212. x.Ssmallptr.CodecDecodeSelf(d)
  8213. }
  8214. case "Ssmall":
  8215. if r.TryDecodeAsNil() {
  8216. if true && x.Ssmall != nil {
  8217. x.Ssmall = nil
  8218. }
  8219. } else {
  8220. if x.Ssmall == nil {
  8221. x.Ssmall = new(Sstructsmall)
  8222. }
  8223. x.Ssmall.CodecDecodeSelf(d)
  8224. }
  8225. case "Sptr":
  8226. if r.TryDecodeAsNil() {
  8227. if true && x.Sptr != nil {
  8228. x.Sptr = nil
  8229. }
  8230. } else {
  8231. if x.Sptr == nil {
  8232. x.Sptr = new(Sstructbig)
  8233. }
  8234. x.Sptr.CodecDecodeSelf(d)
  8235. }
  8236. default:
  8237. z.DecStructFieldNotFound(-1, yys3)
  8238. } // end switch yys3
  8239. } // end for yyj3
  8240. r.ReadMapEnd()
  8241. }
  8242. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  8243. var h codecSelfer19780
  8244. z, r := GenHelperDecoder(d)
  8245. _, _, _ = h, z, r
  8246. var yyj9 int
  8247. var yyb9 bool
  8248. var yyhl9 bool = l >= 0
  8249. yyj9++
  8250. if yyhl9 {
  8251. yyb9 = yyj9 > l
  8252. } else {
  8253. yyb9 = r.CheckBreak()
  8254. }
  8255. if yyb9 {
  8256. r.ReadArrayEnd()
  8257. return
  8258. }
  8259. r.ReadArrayElem()
  8260. if r.TryDecodeAsNil() {
  8261. x.A = 0
  8262. } else {
  8263. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8264. }
  8265. yyj9++
  8266. if yyhl9 {
  8267. yyb9 = yyj9 > l
  8268. } else {
  8269. yyb9 = r.CheckBreak()
  8270. }
  8271. if yyb9 {
  8272. r.ReadArrayEnd()
  8273. return
  8274. }
  8275. r.ReadArrayElem()
  8276. if r.TryDecodeAsNil() {
  8277. x.B = false
  8278. } else {
  8279. x.B = (bool)(r.DecodeBool())
  8280. }
  8281. yyj9++
  8282. if yyhl9 {
  8283. yyb9 = yyj9 > l
  8284. } else {
  8285. yyb9 = r.CheckBreak()
  8286. }
  8287. if yyb9 {
  8288. r.ReadArrayEnd()
  8289. return
  8290. }
  8291. r.ReadArrayElem()
  8292. if r.TryDecodeAsNil() {
  8293. if true && x.Ssmallptr != nil {
  8294. x.Ssmallptr = nil
  8295. }
  8296. } else {
  8297. if x.Ssmallptr == nil {
  8298. x.Ssmallptr = new(Sstructsmall)
  8299. }
  8300. x.Ssmallptr.CodecDecodeSelf(d)
  8301. }
  8302. yyj9++
  8303. if yyhl9 {
  8304. yyb9 = yyj9 > l
  8305. } else {
  8306. yyb9 = r.CheckBreak()
  8307. }
  8308. if yyb9 {
  8309. r.ReadArrayEnd()
  8310. return
  8311. }
  8312. r.ReadArrayElem()
  8313. if r.TryDecodeAsNil() {
  8314. if true && x.Ssmall != nil {
  8315. x.Ssmall = nil
  8316. }
  8317. } else {
  8318. if x.Ssmall == nil {
  8319. x.Ssmall = new(Sstructsmall)
  8320. }
  8321. x.Ssmall.CodecDecodeSelf(d)
  8322. }
  8323. yyj9++
  8324. if yyhl9 {
  8325. yyb9 = yyj9 > l
  8326. } else {
  8327. yyb9 = r.CheckBreak()
  8328. }
  8329. if yyb9 {
  8330. r.ReadArrayEnd()
  8331. return
  8332. }
  8333. r.ReadArrayElem()
  8334. if r.TryDecodeAsNil() {
  8335. if true && x.Sptr != nil {
  8336. x.Sptr = nil
  8337. }
  8338. } else {
  8339. if x.Sptr == nil {
  8340. x.Sptr = new(Sstructbig)
  8341. }
  8342. x.Sptr.CodecDecodeSelf(d)
  8343. }
  8344. for {
  8345. yyj9++
  8346. if yyhl9 {
  8347. yyb9 = yyj9 > l
  8348. } else {
  8349. yyb9 = r.CheckBreak()
  8350. }
  8351. if yyb9 {
  8352. break
  8353. }
  8354. r.ReadArrayElem()
  8355. z.DecStructFieldNotFound(yyj9-1, "")
  8356. }
  8357. r.ReadArrayEnd()
  8358. }
  8359. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  8360. var h codecSelfer19780
  8361. z, r := GenHelperEncoder(e)
  8362. _, _, _ = h, z, r
  8363. if x == nil {
  8364. r.EncodeNil()
  8365. } else {
  8366. if false {
  8367. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8368. z.EncExtension(x, yyxt1)
  8369. } else {
  8370. yysep2 := !z.EncBinary()
  8371. yy2arr2 := z.EncBasicHandle().StructToArray
  8372. _, _ = yysep2, yy2arr2
  8373. const yyr2 bool = false // struct tag has 'toArray'
  8374. if yyr2 || yy2arr2 {
  8375. r.WriteArrayStart(2)
  8376. } else {
  8377. r.WriteMapStart(2)
  8378. }
  8379. if yyr2 || yy2arr2 {
  8380. r.WriteArrayElem()
  8381. if false {
  8382. } else {
  8383. r.EncodeInt(int64(x.I))
  8384. }
  8385. } else {
  8386. r.WriteMapElemKey()
  8387. if z.IsJSONHandle() {
  8388. z.WriteStr("\"I\"")
  8389. } else {
  8390. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8391. }
  8392. r.WriteMapElemValue()
  8393. if false {
  8394. } else {
  8395. r.EncodeInt(int64(x.I))
  8396. }
  8397. }
  8398. if yyr2 || yy2arr2 {
  8399. r.WriteArrayElem()
  8400. if false {
  8401. } else {
  8402. if z.EncBasicHandle().StringToRaw {
  8403. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8404. } else {
  8405. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8406. }
  8407. }
  8408. } else {
  8409. r.WriteMapElemKey()
  8410. if z.IsJSONHandle() {
  8411. z.WriteStr("\"S\"")
  8412. } else {
  8413. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8414. }
  8415. r.WriteMapElemValue()
  8416. if false {
  8417. } else {
  8418. if z.EncBasicHandle().StringToRaw {
  8419. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8420. } else {
  8421. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8422. }
  8423. }
  8424. }
  8425. if yyr2 || yy2arr2 {
  8426. r.WriteArrayEnd()
  8427. } else {
  8428. r.WriteMapEnd()
  8429. }
  8430. }
  8431. }
  8432. }
  8433. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  8434. var h codecSelfer19780
  8435. z, r := GenHelperDecoder(d)
  8436. _, _, _ = h, z, r
  8437. if false {
  8438. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8439. z.DecExtension(x, yyxt1)
  8440. } else {
  8441. yyct2 := r.ContainerType()
  8442. if yyct2 == codecSelferValueTypeMap19780 {
  8443. yyl2 := r.ReadMapStart()
  8444. if yyl2 == 0 {
  8445. r.ReadMapEnd()
  8446. } else {
  8447. x.codecDecodeSelfFromMap(yyl2, d)
  8448. }
  8449. } else if yyct2 == codecSelferValueTypeArray19780 {
  8450. yyl2 := r.ReadArrayStart()
  8451. if yyl2 == 0 {
  8452. r.ReadArrayEnd()
  8453. } else {
  8454. x.codecDecodeSelfFromArray(yyl2, d)
  8455. }
  8456. } else {
  8457. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8458. }
  8459. }
  8460. }
  8461. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  8462. var h codecSelfer19780
  8463. z, r := GenHelperDecoder(d)
  8464. _, _, _ = h, z, r
  8465. var yyhl3 bool = l >= 0
  8466. for yyj3 := 0; ; yyj3++ {
  8467. if yyhl3 {
  8468. if yyj3 >= l {
  8469. break
  8470. }
  8471. } else {
  8472. if r.CheckBreak() {
  8473. break
  8474. }
  8475. }
  8476. r.ReadMapElemKey()
  8477. yys3 := z.StringView(r.DecodeStringAsBytes())
  8478. r.ReadMapElemValue()
  8479. switch yys3 {
  8480. case "I":
  8481. if r.TryDecodeAsNil() {
  8482. x.I = 0
  8483. } else {
  8484. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8485. }
  8486. case "S":
  8487. if r.TryDecodeAsNil() {
  8488. x.S = ""
  8489. } else {
  8490. x.S = (string)(r.DecodeString())
  8491. }
  8492. default:
  8493. z.DecStructFieldNotFound(-1, yys3)
  8494. } // end switch yys3
  8495. } // end for yyj3
  8496. r.ReadMapEnd()
  8497. }
  8498. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  8499. var h codecSelfer19780
  8500. z, r := GenHelperDecoder(d)
  8501. _, _, _ = h, z, r
  8502. var yyj6 int
  8503. var yyb6 bool
  8504. var yyhl6 bool = l >= 0
  8505. yyj6++
  8506. if yyhl6 {
  8507. yyb6 = yyj6 > l
  8508. } else {
  8509. yyb6 = r.CheckBreak()
  8510. }
  8511. if yyb6 {
  8512. r.ReadArrayEnd()
  8513. return
  8514. }
  8515. r.ReadArrayElem()
  8516. if r.TryDecodeAsNil() {
  8517. x.I = 0
  8518. } else {
  8519. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  8520. }
  8521. yyj6++
  8522. if yyhl6 {
  8523. yyb6 = yyj6 > l
  8524. } else {
  8525. yyb6 = r.CheckBreak()
  8526. }
  8527. if yyb6 {
  8528. r.ReadArrayEnd()
  8529. return
  8530. }
  8531. r.ReadArrayElem()
  8532. if r.TryDecodeAsNil() {
  8533. x.S = ""
  8534. } else {
  8535. x.S = (string)(r.DecodeString())
  8536. }
  8537. for {
  8538. yyj6++
  8539. if yyhl6 {
  8540. yyb6 = yyj6 > l
  8541. } else {
  8542. yyb6 = r.CheckBreak()
  8543. }
  8544. if yyb6 {
  8545. break
  8546. }
  8547. r.ReadArrayElem()
  8548. z.DecStructFieldNotFound(yyj6-1, "")
  8549. }
  8550. r.ReadArrayEnd()
  8551. }
  8552. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  8553. var h codecSelfer19780
  8554. z, r := GenHelperEncoder(e)
  8555. _, _, _ = h, z, r
  8556. if false {
  8557. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8558. z.EncExtension(x, yyxt1)
  8559. } else {
  8560. r.EncodeInt(int64(x))
  8561. }
  8562. }
  8563. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  8564. var h codecSelfer19780
  8565. z, r := GenHelperDecoder(d)
  8566. _, _, _ = h, z, r
  8567. if false {
  8568. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8569. z.DecExtension(x, yyxt1)
  8570. } else {
  8571. *x = (wrapInt64)(r.DecodeInt64())
  8572. }
  8573. }
  8574. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  8575. var h codecSelfer19780
  8576. z, r := GenHelperEncoder(e)
  8577. _, _, _ = h, z, r
  8578. if false {
  8579. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8580. z.EncExtension(x, yyxt1)
  8581. } else {
  8582. r.EncodeUint(uint64(x))
  8583. }
  8584. }
  8585. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  8586. var h codecSelfer19780
  8587. z, r := GenHelperDecoder(d)
  8588. _, _, _ = h, z, r
  8589. if false {
  8590. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8591. z.DecExtension(x, yyxt1)
  8592. } else {
  8593. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  8594. }
  8595. }
  8596. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  8597. var h codecSelfer19780
  8598. z, r := GenHelperEncoder(e)
  8599. _, _, _ = h, z, r
  8600. if x == nil {
  8601. r.EncodeNil()
  8602. } else {
  8603. if false {
  8604. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8605. z.EncExtension(x, yyxt1)
  8606. } else {
  8607. h.encwrapBytes((wrapBytes)(x), e)
  8608. }
  8609. }
  8610. }
  8611. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  8612. var h codecSelfer19780
  8613. z, r := GenHelperDecoder(d)
  8614. _, _, _ = h, z, r
  8615. if false {
  8616. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8617. z.DecExtension(x, yyxt1)
  8618. } else {
  8619. h.decwrapBytes((*wrapBytes)(x), d)
  8620. }
  8621. }
  8622. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  8623. var h codecSelfer19780
  8624. z, r := GenHelperEncoder(e)
  8625. _, _, _ = h, z, r
  8626. if x == nil {
  8627. r.EncodeNil()
  8628. } else {
  8629. if false {
  8630. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8631. z.EncExtension(x, yyxt1)
  8632. } else {
  8633. yysep2 := !z.EncBinary()
  8634. yy2arr2 := z.EncBasicHandle().StructToArray
  8635. _, _ = yysep2, yy2arr2
  8636. const yyr2 bool = false // struct tag has 'toArray'
  8637. if yyr2 || yy2arr2 {
  8638. r.WriteArrayStart(5)
  8639. } else {
  8640. r.WriteMapStart(5)
  8641. }
  8642. if yyr2 || yy2arr2 {
  8643. r.WriteArrayElem()
  8644. if x.Islice == nil {
  8645. r.EncodeNil()
  8646. } else {
  8647. if false {
  8648. } else {
  8649. z.F.EncSliceIntfV(x.Islice, e)
  8650. }
  8651. }
  8652. } else {
  8653. r.WriteMapElemKey()
  8654. if z.IsJSONHandle() {
  8655. z.WriteStr("\"Islice\"")
  8656. } else {
  8657. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  8658. }
  8659. r.WriteMapElemValue()
  8660. if x.Islice == nil {
  8661. r.EncodeNil()
  8662. } else {
  8663. if false {
  8664. } else {
  8665. z.F.EncSliceIntfV(x.Islice, e)
  8666. }
  8667. }
  8668. }
  8669. if yyr2 || yy2arr2 {
  8670. r.WriteArrayElem()
  8671. if x.Ms == nil {
  8672. r.EncodeNil()
  8673. } else {
  8674. if false {
  8675. } else {
  8676. z.F.EncMapStringIntfV(x.Ms, e)
  8677. }
  8678. }
  8679. } else {
  8680. r.WriteMapElemKey()
  8681. if z.IsJSONHandle() {
  8682. z.WriteStr("\"Ms\"")
  8683. } else {
  8684. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  8685. }
  8686. r.WriteMapElemValue()
  8687. if x.Ms == nil {
  8688. r.EncodeNil()
  8689. } else {
  8690. if false {
  8691. } else {
  8692. z.F.EncMapStringIntfV(x.Ms, e)
  8693. }
  8694. }
  8695. }
  8696. if yyr2 || yy2arr2 {
  8697. r.WriteArrayElem()
  8698. if x.Nintf == nil {
  8699. r.EncodeNil()
  8700. } else {
  8701. if false {
  8702. } else {
  8703. z.EncFallback(x.Nintf)
  8704. }
  8705. }
  8706. } else {
  8707. r.WriteMapElemKey()
  8708. if z.IsJSONHandle() {
  8709. z.WriteStr("\"Nintf\"")
  8710. } else {
  8711. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  8712. }
  8713. r.WriteMapElemValue()
  8714. if x.Nintf == nil {
  8715. r.EncodeNil()
  8716. } else {
  8717. if false {
  8718. } else {
  8719. z.EncFallback(x.Nintf)
  8720. }
  8721. }
  8722. }
  8723. if yyr2 || yy2arr2 {
  8724. r.WriteArrayElem()
  8725. if false {
  8726. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8727. r.EncodeTime(x.T)
  8728. } else if yyxt13 := z.Extension(z.I2Rtid(x.T)); yyxt13 != nil {
  8729. z.EncExtension(x.T, yyxt13)
  8730. } else if z.EncBinary() {
  8731. z.EncBinaryMarshal(x.T)
  8732. } else if !z.EncBinary() && z.IsJSONHandle() {
  8733. z.EncJSONMarshal(x.T)
  8734. } else {
  8735. z.EncFallback(x.T)
  8736. }
  8737. } else {
  8738. r.WriteMapElemKey()
  8739. if z.IsJSONHandle() {
  8740. z.WriteStr("\"T\"")
  8741. } else {
  8742. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  8743. }
  8744. r.WriteMapElemValue()
  8745. if false {
  8746. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8747. r.EncodeTime(x.T)
  8748. } else if yyxt14 := z.Extension(z.I2Rtid(x.T)); yyxt14 != nil {
  8749. z.EncExtension(x.T, yyxt14)
  8750. } else if z.EncBinary() {
  8751. z.EncBinaryMarshal(x.T)
  8752. } else if !z.EncBinary() && z.IsJSONHandle() {
  8753. z.EncJSONMarshal(x.T)
  8754. } else {
  8755. z.EncFallback(x.T)
  8756. }
  8757. }
  8758. var yyn15 bool
  8759. if x.Tptr == nil {
  8760. yyn15 = true
  8761. goto LABEL15
  8762. }
  8763. LABEL15:
  8764. if yyr2 || yy2arr2 {
  8765. if yyn15 {
  8766. r.WriteArrayElem()
  8767. r.EncodeNil()
  8768. } else {
  8769. r.WriteArrayElem()
  8770. if x.Tptr == nil {
  8771. r.EncodeNil()
  8772. } else {
  8773. yy16 := *x.Tptr
  8774. if false {
  8775. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8776. r.EncodeTime(yy16)
  8777. } else if yyxt17 := z.Extension(z.I2Rtid(yy16)); yyxt17 != nil {
  8778. z.EncExtension(yy16, yyxt17)
  8779. } else if z.EncBinary() {
  8780. z.EncBinaryMarshal(yy16)
  8781. } else if !z.EncBinary() && z.IsJSONHandle() {
  8782. z.EncJSONMarshal(yy16)
  8783. } else {
  8784. z.EncFallback(yy16)
  8785. }
  8786. }
  8787. }
  8788. } else {
  8789. r.WriteMapElemKey()
  8790. if z.IsJSONHandle() {
  8791. z.WriteStr("\"Tptr\"")
  8792. } else {
  8793. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  8794. }
  8795. r.WriteMapElemValue()
  8796. if yyn15 {
  8797. r.EncodeNil()
  8798. } else {
  8799. if x.Tptr == nil {
  8800. r.EncodeNil()
  8801. } else {
  8802. yy18 := *x.Tptr
  8803. if false {
  8804. } else if !z.EncBasicHandle().TimeNotBuiltin {
  8805. r.EncodeTime(yy18)
  8806. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  8807. z.EncExtension(yy18, yyxt19)
  8808. } else if z.EncBinary() {
  8809. z.EncBinaryMarshal(yy18)
  8810. } else if !z.EncBinary() && z.IsJSONHandle() {
  8811. z.EncJSONMarshal(yy18)
  8812. } else {
  8813. z.EncFallback(yy18)
  8814. }
  8815. }
  8816. }
  8817. }
  8818. if yyr2 || yy2arr2 {
  8819. r.WriteArrayEnd()
  8820. } else {
  8821. r.WriteMapEnd()
  8822. }
  8823. }
  8824. }
  8825. }
  8826. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  8827. var h codecSelfer19780
  8828. z, r := GenHelperDecoder(d)
  8829. _, _, _ = h, z, r
  8830. if false {
  8831. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  8832. z.DecExtension(x, yyxt1)
  8833. } else {
  8834. yyct2 := r.ContainerType()
  8835. if yyct2 == codecSelferValueTypeMap19780 {
  8836. yyl2 := r.ReadMapStart()
  8837. if yyl2 == 0 {
  8838. r.ReadMapEnd()
  8839. } else {
  8840. x.codecDecodeSelfFromMap(yyl2, d)
  8841. }
  8842. } else if yyct2 == codecSelferValueTypeArray19780 {
  8843. yyl2 := r.ReadArrayStart()
  8844. if yyl2 == 0 {
  8845. r.ReadArrayEnd()
  8846. } else {
  8847. x.codecDecodeSelfFromArray(yyl2, d)
  8848. }
  8849. } else {
  8850. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8851. }
  8852. }
  8853. }
  8854. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  8855. var h codecSelfer19780
  8856. z, r := GenHelperDecoder(d)
  8857. _, _, _ = h, z, r
  8858. var yyhl3 bool = l >= 0
  8859. for yyj3 := 0; ; yyj3++ {
  8860. if yyhl3 {
  8861. if yyj3 >= l {
  8862. break
  8863. }
  8864. } else {
  8865. if r.CheckBreak() {
  8866. break
  8867. }
  8868. }
  8869. r.ReadMapElemKey()
  8870. yys3 := z.StringView(r.DecodeStringAsBytes())
  8871. r.ReadMapElemValue()
  8872. switch yys3 {
  8873. case "Islice":
  8874. if r.TryDecodeAsNil() {
  8875. x.Islice = nil
  8876. } else {
  8877. if false {
  8878. } else {
  8879. z.F.DecSliceIntfX(&x.Islice, d)
  8880. }
  8881. }
  8882. case "Ms":
  8883. if r.TryDecodeAsNil() {
  8884. x.Ms = nil
  8885. } else {
  8886. if false {
  8887. } else {
  8888. z.F.DecMapStringIntfX(&x.Ms, d)
  8889. }
  8890. }
  8891. case "Nintf":
  8892. if r.TryDecodeAsNil() {
  8893. x.Nintf = nil
  8894. } else {
  8895. if false {
  8896. } else {
  8897. z.DecFallback(&x.Nintf, true)
  8898. }
  8899. }
  8900. case "T":
  8901. if r.TryDecodeAsNil() {
  8902. x.T = time.Time{}
  8903. } else {
  8904. if false {
  8905. } else if !z.DecBasicHandle().TimeNotBuiltin {
  8906. x.T = r.DecodeTime()
  8907. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  8908. z.DecExtension(x.T, yyxt11)
  8909. } else if z.DecBinary() {
  8910. z.DecBinaryUnmarshal(&x.T)
  8911. } else if !z.DecBinary() && z.IsJSONHandle() {
  8912. z.DecJSONUnmarshal(&x.T)
  8913. } else {
  8914. z.DecFallback(&x.T, false)
  8915. }
  8916. }
  8917. case "Tptr":
  8918. if r.TryDecodeAsNil() {
  8919. if true && x.Tptr != nil {
  8920. x.Tptr = nil
  8921. }
  8922. } else {
  8923. if x.Tptr == nil {
  8924. x.Tptr = new(time.Time)
  8925. }
  8926. if false {
  8927. } else if !z.DecBasicHandle().TimeNotBuiltin {
  8928. *x.Tptr = r.DecodeTime()
  8929. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  8930. z.DecExtension(x.Tptr, yyxt13)
  8931. } else if z.DecBinary() {
  8932. z.DecBinaryUnmarshal(x.Tptr)
  8933. } else if !z.DecBinary() && z.IsJSONHandle() {
  8934. z.DecJSONUnmarshal(x.Tptr)
  8935. } else {
  8936. z.DecFallback(x.Tptr, false)
  8937. }
  8938. }
  8939. default:
  8940. z.DecStructFieldNotFound(-1, yys3)
  8941. } // end switch yys3
  8942. } // end for yyj3
  8943. r.ReadMapEnd()
  8944. }
  8945. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  8946. var h codecSelfer19780
  8947. z, r := GenHelperDecoder(d)
  8948. _, _, _ = h, z, r
  8949. var yyj14 int
  8950. var yyb14 bool
  8951. var yyhl14 bool = l >= 0
  8952. yyj14++
  8953. if yyhl14 {
  8954. yyb14 = yyj14 > l
  8955. } else {
  8956. yyb14 = r.CheckBreak()
  8957. }
  8958. if yyb14 {
  8959. r.ReadArrayEnd()
  8960. return
  8961. }
  8962. r.ReadArrayElem()
  8963. if r.TryDecodeAsNil() {
  8964. x.Islice = nil
  8965. } else {
  8966. if false {
  8967. } else {
  8968. z.F.DecSliceIntfX(&x.Islice, d)
  8969. }
  8970. }
  8971. yyj14++
  8972. if yyhl14 {
  8973. yyb14 = yyj14 > l
  8974. } else {
  8975. yyb14 = r.CheckBreak()
  8976. }
  8977. if yyb14 {
  8978. r.ReadArrayEnd()
  8979. return
  8980. }
  8981. r.ReadArrayElem()
  8982. if r.TryDecodeAsNil() {
  8983. x.Ms = nil
  8984. } else {
  8985. if false {
  8986. } else {
  8987. z.F.DecMapStringIntfX(&x.Ms, d)
  8988. }
  8989. }
  8990. yyj14++
  8991. if yyhl14 {
  8992. yyb14 = yyj14 > l
  8993. } else {
  8994. yyb14 = r.CheckBreak()
  8995. }
  8996. if yyb14 {
  8997. r.ReadArrayEnd()
  8998. return
  8999. }
  9000. r.ReadArrayElem()
  9001. if r.TryDecodeAsNil() {
  9002. x.Nintf = nil
  9003. } else {
  9004. if false {
  9005. } else {
  9006. z.DecFallback(&x.Nintf, true)
  9007. }
  9008. }
  9009. yyj14++
  9010. if yyhl14 {
  9011. yyb14 = yyj14 > l
  9012. } else {
  9013. yyb14 = r.CheckBreak()
  9014. }
  9015. if yyb14 {
  9016. r.ReadArrayEnd()
  9017. return
  9018. }
  9019. r.ReadArrayElem()
  9020. if r.TryDecodeAsNil() {
  9021. x.T = time.Time{}
  9022. } else {
  9023. if false {
  9024. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9025. x.T = r.DecodeTime()
  9026. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  9027. z.DecExtension(x.T, yyxt22)
  9028. } else if z.DecBinary() {
  9029. z.DecBinaryUnmarshal(&x.T)
  9030. } else if !z.DecBinary() && z.IsJSONHandle() {
  9031. z.DecJSONUnmarshal(&x.T)
  9032. } else {
  9033. z.DecFallback(&x.T, false)
  9034. }
  9035. }
  9036. yyj14++
  9037. if yyhl14 {
  9038. yyb14 = yyj14 > l
  9039. } else {
  9040. yyb14 = r.CheckBreak()
  9041. }
  9042. if yyb14 {
  9043. r.ReadArrayEnd()
  9044. return
  9045. }
  9046. r.ReadArrayElem()
  9047. if r.TryDecodeAsNil() {
  9048. if true && x.Tptr != nil {
  9049. x.Tptr = nil
  9050. }
  9051. } else {
  9052. if x.Tptr == nil {
  9053. x.Tptr = new(time.Time)
  9054. }
  9055. if false {
  9056. } else if !z.DecBasicHandle().TimeNotBuiltin {
  9057. *x.Tptr = r.DecodeTime()
  9058. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  9059. z.DecExtension(x.Tptr, yyxt24)
  9060. } else if z.DecBinary() {
  9061. z.DecBinaryUnmarshal(x.Tptr)
  9062. } else if !z.DecBinary() && z.IsJSONHandle() {
  9063. z.DecJSONUnmarshal(x.Tptr)
  9064. } else {
  9065. z.DecFallback(x.Tptr, false)
  9066. }
  9067. }
  9068. for {
  9069. yyj14++
  9070. if yyhl14 {
  9071. yyb14 = yyj14 > l
  9072. } else {
  9073. yyb14 = r.CheckBreak()
  9074. }
  9075. if yyb14 {
  9076. break
  9077. }
  9078. r.ReadArrayElem()
  9079. z.DecStructFieldNotFound(yyj14-1, "")
  9080. }
  9081. r.ReadArrayEnd()
  9082. }
  9083. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  9084. var h codecSelfer19780
  9085. z, r := GenHelperEncoder(e)
  9086. _, _, _ = h, z, r
  9087. if x == nil {
  9088. r.EncodeNil()
  9089. } else {
  9090. if false {
  9091. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9092. z.EncExtension(x, yyxt1)
  9093. } else {
  9094. yysep2 := !z.EncBinary()
  9095. yy2arr2 := z.EncBasicHandle().StructToArray
  9096. _, _ = yysep2, yy2arr2
  9097. const yyr2 bool = false // struct tag has 'toArray'
  9098. if yyr2 || yy2arr2 {
  9099. r.WriteArrayStart(2)
  9100. } else {
  9101. r.WriteMapStart(2)
  9102. }
  9103. if yyr2 || yy2arr2 {
  9104. r.WriteArrayElem()
  9105. if false {
  9106. } else {
  9107. if z.EncBasicHandle().StringToRaw {
  9108. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9109. } else {
  9110. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9111. }
  9112. }
  9113. } else {
  9114. r.WriteMapElemKey()
  9115. if z.IsJSONHandle() {
  9116. z.WriteStr("\"S\"")
  9117. } else {
  9118. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9119. }
  9120. r.WriteMapElemValue()
  9121. if false {
  9122. } else {
  9123. if z.EncBasicHandle().StringToRaw {
  9124. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9125. } else {
  9126. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9127. }
  9128. }
  9129. }
  9130. if yyr2 || yy2arr2 {
  9131. r.WriteArrayElem()
  9132. if false {
  9133. } else {
  9134. r.EncodeBool(bool(x.B))
  9135. }
  9136. } else {
  9137. r.WriteMapElemKey()
  9138. if z.IsJSONHandle() {
  9139. z.WriteStr("\"B\"")
  9140. } else {
  9141. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9142. }
  9143. r.WriteMapElemValue()
  9144. if false {
  9145. } else {
  9146. r.EncodeBool(bool(x.B))
  9147. }
  9148. }
  9149. if yyr2 || yy2arr2 {
  9150. r.WriteArrayEnd()
  9151. } else {
  9152. r.WriteMapEnd()
  9153. }
  9154. }
  9155. }
  9156. }
  9157. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  9158. var h codecSelfer19780
  9159. z, r := GenHelperDecoder(d)
  9160. _, _, _ = h, z, r
  9161. if false {
  9162. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9163. z.DecExtension(x, yyxt1)
  9164. } else {
  9165. yyct2 := r.ContainerType()
  9166. if yyct2 == codecSelferValueTypeMap19780 {
  9167. yyl2 := r.ReadMapStart()
  9168. if yyl2 == 0 {
  9169. r.ReadMapEnd()
  9170. } else {
  9171. x.codecDecodeSelfFromMap(yyl2, d)
  9172. }
  9173. } else if yyct2 == codecSelferValueTypeArray19780 {
  9174. yyl2 := r.ReadArrayStart()
  9175. if yyl2 == 0 {
  9176. r.ReadArrayEnd()
  9177. } else {
  9178. x.codecDecodeSelfFromArray(yyl2, d)
  9179. }
  9180. } else {
  9181. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9182. }
  9183. }
  9184. }
  9185. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  9186. var h codecSelfer19780
  9187. z, r := GenHelperDecoder(d)
  9188. _, _, _ = h, z, r
  9189. var yyhl3 bool = l >= 0
  9190. for yyj3 := 0; ; yyj3++ {
  9191. if yyhl3 {
  9192. if yyj3 >= l {
  9193. break
  9194. }
  9195. } else {
  9196. if r.CheckBreak() {
  9197. break
  9198. }
  9199. }
  9200. r.ReadMapElemKey()
  9201. yys3 := z.StringView(r.DecodeStringAsBytes())
  9202. r.ReadMapElemValue()
  9203. switch yys3 {
  9204. case "S":
  9205. if r.TryDecodeAsNil() {
  9206. x.S = ""
  9207. } else {
  9208. x.S = (string)(r.DecodeString())
  9209. }
  9210. case "B":
  9211. if r.TryDecodeAsNil() {
  9212. x.B = false
  9213. } else {
  9214. x.B = (bool)(r.DecodeBool())
  9215. }
  9216. default:
  9217. z.DecStructFieldNotFound(-1, yys3)
  9218. } // end switch yys3
  9219. } // end for yyj3
  9220. r.ReadMapEnd()
  9221. }
  9222. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  9223. var h codecSelfer19780
  9224. z, r := GenHelperDecoder(d)
  9225. _, _, _ = h, z, r
  9226. var yyj6 int
  9227. var yyb6 bool
  9228. var yyhl6 bool = l >= 0
  9229. yyj6++
  9230. if yyhl6 {
  9231. yyb6 = yyj6 > l
  9232. } else {
  9233. yyb6 = r.CheckBreak()
  9234. }
  9235. if yyb6 {
  9236. r.ReadArrayEnd()
  9237. return
  9238. }
  9239. r.ReadArrayElem()
  9240. if r.TryDecodeAsNil() {
  9241. x.S = ""
  9242. } else {
  9243. x.S = (string)(r.DecodeString())
  9244. }
  9245. yyj6++
  9246. if yyhl6 {
  9247. yyb6 = yyj6 > l
  9248. } else {
  9249. yyb6 = r.CheckBreak()
  9250. }
  9251. if yyb6 {
  9252. r.ReadArrayEnd()
  9253. return
  9254. }
  9255. r.ReadArrayElem()
  9256. if r.TryDecodeAsNil() {
  9257. x.B = false
  9258. } else {
  9259. x.B = (bool)(r.DecodeBool())
  9260. }
  9261. for {
  9262. yyj6++
  9263. if yyhl6 {
  9264. yyb6 = yyj6 > l
  9265. } else {
  9266. yyb6 = r.CheckBreak()
  9267. }
  9268. if yyb6 {
  9269. break
  9270. }
  9271. r.ReadArrayElem()
  9272. z.DecStructFieldNotFound(yyj6-1, "")
  9273. }
  9274. r.ReadArrayEnd()
  9275. }
  9276. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  9277. var h codecSelfer19780
  9278. z, r := GenHelperEncoder(e)
  9279. _, _, _ = h, z, r
  9280. if x == nil {
  9281. r.EncodeNil()
  9282. } else {
  9283. if false {
  9284. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9285. z.EncExtension(x, yyxt1)
  9286. } else {
  9287. yysep2 := !z.EncBinary()
  9288. yy2arr2 := z.EncBasicHandle().StructToArray
  9289. _, _ = yysep2, yy2arr2
  9290. const yyr2 bool = false // struct tag has 'toArray'
  9291. if yyr2 || yy2arr2 {
  9292. r.WriteArrayStart(4)
  9293. } else {
  9294. r.WriteMapStart(4)
  9295. }
  9296. if yyr2 || yy2arr2 {
  9297. r.WriteArrayElem()
  9298. if false {
  9299. } else {
  9300. if z.EncBasicHandle().StringToRaw {
  9301. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9302. } else {
  9303. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9304. }
  9305. }
  9306. } else {
  9307. r.WriteMapElemKey()
  9308. if z.IsJSONHandle() {
  9309. z.WriteStr("\"S\"")
  9310. } else {
  9311. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9312. }
  9313. r.WriteMapElemValue()
  9314. if false {
  9315. } else {
  9316. if z.EncBasicHandle().StringToRaw {
  9317. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9318. } else {
  9319. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9320. }
  9321. }
  9322. }
  9323. if yyr2 || yy2arr2 {
  9324. r.WriteArrayElem()
  9325. if false {
  9326. } else {
  9327. r.EncodeBool(bool(x.B))
  9328. }
  9329. } else {
  9330. r.WriteMapElemKey()
  9331. if z.IsJSONHandle() {
  9332. z.WriteStr("\"B\"")
  9333. } else {
  9334. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9335. }
  9336. r.WriteMapElemValue()
  9337. if false {
  9338. } else {
  9339. r.EncodeBool(bool(x.B))
  9340. }
  9341. }
  9342. if yyr2 || yy2arr2 {
  9343. r.WriteArrayElem()
  9344. if false {
  9345. } else {
  9346. r.EncodeFloat64(float64(x.F))
  9347. }
  9348. } else {
  9349. r.WriteMapElemKey()
  9350. if z.IsJSONHandle() {
  9351. z.WriteStr("\"F\"")
  9352. } else {
  9353. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  9354. }
  9355. r.WriteMapElemValue()
  9356. if false {
  9357. } else {
  9358. r.EncodeFloat64(float64(x.F))
  9359. }
  9360. }
  9361. if yyr2 || yy2arr2 {
  9362. r.WriteArrayElem()
  9363. if false {
  9364. } else {
  9365. r.EncodeInt(int64(x.I))
  9366. }
  9367. } else {
  9368. r.WriteMapElemKey()
  9369. if z.IsJSONHandle() {
  9370. z.WriteStr("\"I\"")
  9371. } else {
  9372. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  9373. }
  9374. r.WriteMapElemValue()
  9375. if false {
  9376. } else {
  9377. r.EncodeInt(int64(x.I))
  9378. }
  9379. }
  9380. if yyr2 || yy2arr2 {
  9381. r.WriteArrayEnd()
  9382. } else {
  9383. r.WriteMapEnd()
  9384. }
  9385. }
  9386. }
  9387. }
  9388. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  9389. var h codecSelfer19780
  9390. z, r := GenHelperDecoder(d)
  9391. _, _, _ = h, z, r
  9392. if false {
  9393. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9394. z.DecExtension(x, yyxt1)
  9395. } else {
  9396. yyct2 := r.ContainerType()
  9397. if yyct2 == codecSelferValueTypeMap19780 {
  9398. yyl2 := r.ReadMapStart()
  9399. if yyl2 == 0 {
  9400. r.ReadMapEnd()
  9401. } else {
  9402. x.codecDecodeSelfFromMap(yyl2, d)
  9403. }
  9404. } else if yyct2 == codecSelferValueTypeArray19780 {
  9405. yyl2 := r.ReadArrayStart()
  9406. if yyl2 == 0 {
  9407. r.ReadArrayEnd()
  9408. } else {
  9409. x.codecDecodeSelfFromArray(yyl2, d)
  9410. }
  9411. } else {
  9412. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9413. }
  9414. }
  9415. }
  9416. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  9417. var h codecSelfer19780
  9418. z, r := GenHelperDecoder(d)
  9419. _, _, _ = h, z, r
  9420. var yyhl3 bool = l >= 0
  9421. for yyj3 := 0; ; yyj3++ {
  9422. if yyhl3 {
  9423. if yyj3 >= l {
  9424. break
  9425. }
  9426. } else {
  9427. if r.CheckBreak() {
  9428. break
  9429. }
  9430. }
  9431. r.ReadMapElemKey()
  9432. yys3 := z.StringView(r.DecodeStringAsBytes())
  9433. r.ReadMapElemValue()
  9434. switch yys3 {
  9435. case "S":
  9436. if r.TryDecodeAsNil() {
  9437. x.S = ""
  9438. } else {
  9439. x.S = (string)(r.DecodeString())
  9440. }
  9441. case "B":
  9442. if r.TryDecodeAsNil() {
  9443. x.B = false
  9444. } else {
  9445. x.B = (bool)(r.DecodeBool())
  9446. }
  9447. case "F":
  9448. if r.TryDecodeAsNil() {
  9449. x.F = 0
  9450. } else {
  9451. x.F = (float64)(r.DecodeFloat64())
  9452. }
  9453. case "I":
  9454. if r.TryDecodeAsNil() {
  9455. x.I = 0
  9456. } else {
  9457. x.I = (int64)(r.DecodeInt64())
  9458. }
  9459. default:
  9460. z.DecStructFieldNotFound(-1, yys3)
  9461. } // end switch yys3
  9462. } // end for yyj3
  9463. r.ReadMapEnd()
  9464. }
  9465. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  9466. var h codecSelfer19780
  9467. z, r := GenHelperDecoder(d)
  9468. _, _, _ = h, z, r
  9469. var yyj8 int
  9470. var yyb8 bool
  9471. var yyhl8 bool = l >= 0
  9472. yyj8++
  9473. if yyhl8 {
  9474. yyb8 = yyj8 > l
  9475. } else {
  9476. yyb8 = r.CheckBreak()
  9477. }
  9478. if yyb8 {
  9479. r.ReadArrayEnd()
  9480. return
  9481. }
  9482. r.ReadArrayElem()
  9483. if r.TryDecodeAsNil() {
  9484. x.S = ""
  9485. } else {
  9486. x.S = (string)(r.DecodeString())
  9487. }
  9488. yyj8++
  9489. if yyhl8 {
  9490. yyb8 = yyj8 > l
  9491. } else {
  9492. yyb8 = r.CheckBreak()
  9493. }
  9494. if yyb8 {
  9495. r.ReadArrayEnd()
  9496. return
  9497. }
  9498. r.ReadArrayElem()
  9499. if r.TryDecodeAsNil() {
  9500. x.B = false
  9501. } else {
  9502. x.B = (bool)(r.DecodeBool())
  9503. }
  9504. yyj8++
  9505. if yyhl8 {
  9506. yyb8 = yyj8 > l
  9507. } else {
  9508. yyb8 = r.CheckBreak()
  9509. }
  9510. if yyb8 {
  9511. r.ReadArrayEnd()
  9512. return
  9513. }
  9514. r.ReadArrayElem()
  9515. if r.TryDecodeAsNil() {
  9516. x.F = 0
  9517. } else {
  9518. x.F = (float64)(r.DecodeFloat64())
  9519. }
  9520. yyj8++
  9521. if yyhl8 {
  9522. yyb8 = yyj8 > l
  9523. } else {
  9524. yyb8 = r.CheckBreak()
  9525. }
  9526. if yyb8 {
  9527. r.ReadArrayEnd()
  9528. return
  9529. }
  9530. r.ReadArrayElem()
  9531. if r.TryDecodeAsNil() {
  9532. x.I = 0
  9533. } else {
  9534. x.I = (int64)(r.DecodeInt64())
  9535. }
  9536. for {
  9537. yyj8++
  9538. if yyhl8 {
  9539. yyb8 = yyj8 > l
  9540. } else {
  9541. yyb8 = r.CheckBreak()
  9542. }
  9543. if yyb8 {
  9544. break
  9545. }
  9546. r.ReadArrayElem()
  9547. z.DecStructFieldNotFound(yyj8-1, "")
  9548. }
  9549. r.ReadArrayEnd()
  9550. }
  9551. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  9552. var h codecSelfer19780
  9553. z, r := GenHelperEncoder(e)
  9554. _, _, _ = h, z, r
  9555. if x == nil {
  9556. r.EncodeNil()
  9557. } else {
  9558. if false {
  9559. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  9560. z.EncExtension(x, yyxt1)
  9561. } else {
  9562. yysep2 := !z.EncBinary()
  9563. yy2arr2 := z.EncBasicHandle().StructToArray
  9564. _, _ = yysep2, yy2arr2
  9565. const yyr2 bool = false // struct tag has 'toArray'
  9566. var yyq2 = [73]bool{ // should field at this index be written?
  9567. x.S != "", // S
  9568. x.I64 != 0, // I64
  9569. x.I32 != 0, // I32
  9570. x.I16 != 0, // I16
  9571. x.I8 != 0, // I8
  9572. x.I64n != 0, // I64n
  9573. x.I32n != 0, // I32n
  9574. x.I16n != 0, // I16n
  9575. x.I8n != 0, // I8n
  9576. x.Ui64 != 0, // Ui64
  9577. x.Ui32 != 0, // Ui32
  9578. x.Ui16 != 0, // Ui16
  9579. x.Ui8 != 0, // Ui8
  9580. x.F64 != 0, // F64
  9581. x.F32 != 0, // F32
  9582. x.B, // B
  9583. x.By != 0, // By
  9584. len(x.Sslice) != 0, // Sslice
  9585. len(x.I64slice) != 0, // I64slice
  9586. len(x.I16slice) != 0, // I16slice
  9587. len(x.Ui64slice) != 0, // Ui64slice
  9588. len(x.Ui8slice) != 0, // Ui8slice
  9589. len(x.Bslice) != 0, // Bslice
  9590. len(x.Byslice) != 0, // Byslice
  9591. len(x.Iptrslice) != 0, // Iptrslice
  9592. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  9593. len(x.WrapSliceString) != 0, // WrapSliceString
  9594. len(x.Msi64) != 0, // Msi64
  9595. 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
  9596. len(x.SstrUi64T) != 0, // SstrUi64T
  9597. x.AS != "", // AS
  9598. x.AI64 != 0, // AI64
  9599. x.AI16 != 0, // AI16
  9600. x.AUi64 != 0, // AUi64
  9601. len(x.ASslice) != 0, // ASslice
  9602. len(x.AI64slice) != 0, // AI64slice
  9603. len(x.AUi64slice) != 0, // AUi64slice
  9604. len(x.AF64slice) != 0, // AF64slice
  9605. len(x.AF32slice) != 0, // AF32slice
  9606. len(x.AMSU16) != 0, // AMSU16
  9607. len(x.AI64arr0) != 0, // AI64arr0
  9608. len(x.A164slice0) != 0, // A164slice0
  9609. len(x.AUi64sliceN) != 0, // AUi64sliceN
  9610. len(x.AMSU16N) != 0, // AMSU16N
  9611. len(x.AMSU16E) != 0, // AMSU16E
  9612. 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
  9613. len(x.Nmap) != 0, // Nmap
  9614. len(x.Nslice) != 0, // Nslice
  9615. x.Nint64 != nil, // Nint64
  9616. len(x.Chstr) != 0, // Chstr
  9617. len(x.Mis) != 0, // Mis
  9618. len(x.Mbu64) != 0, // Mbu64
  9619. len(x.Miwu64s) != 0, // Miwu64s
  9620. len(x.Mfwss) != 0, // Mfwss
  9621. len(x.Mf32wss) != 0, // Mf32wss
  9622. len(x.Mui2wss) != 0, // Mui2wss
  9623. len(x.Msu2wss) != 0, // Msu2wss
  9624. x.Ci64 != 0, // Ci64
  9625. len(x.Swrapbytes) != 0, // Swrapbytes
  9626. len(x.Swrapuint8) != 0, // Swrapuint8
  9627. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  9628. len(x.Ui64array) != 0, // Ui64array
  9629. len(x.Ui64slicearray) != 0, // Ui64slicearray
  9630. len(x.SintfAarray) != 0, // SintfAarray
  9631. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  9632. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  9633. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  9634. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  9635. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  9636. len(x.Mtsptr) != 0, // Mtsptr
  9637. len(x.Mts) != 0, // Mts
  9638. len(x.Its) != 0, // Its
  9639. x.Nteststruc != nil, // Nteststruc
  9640. }
  9641. _ = yyq2
  9642. if yyr2 || yy2arr2 {
  9643. r.WriteArrayStart(73)
  9644. } else {
  9645. var yynn2 int
  9646. for _, b := range yyq2 {
  9647. if b {
  9648. yynn2++
  9649. }
  9650. }
  9651. r.WriteMapStart(yynn2)
  9652. yynn2 = 0
  9653. }
  9654. if yyr2 || yy2arr2 {
  9655. r.WriteArrayElem()
  9656. if yyq2[0] {
  9657. if false {
  9658. } else {
  9659. if z.EncBasicHandle().StringToRaw {
  9660. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9661. } else {
  9662. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9663. }
  9664. }
  9665. } else {
  9666. if z.EncBasicHandle().StringToRaw {
  9667. r.EncodeStringBytesRaw([]byte{})
  9668. } else {
  9669. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  9670. }
  9671. }
  9672. } else {
  9673. if yyq2[0] {
  9674. r.WriteMapElemKey()
  9675. if z.IsJSONHandle() {
  9676. z.WriteStr("\"S\"")
  9677. } else {
  9678. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9679. }
  9680. r.WriteMapElemValue()
  9681. if false {
  9682. } else {
  9683. if z.EncBasicHandle().StringToRaw {
  9684. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  9685. } else {
  9686. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  9687. }
  9688. }
  9689. }
  9690. }
  9691. if yyr2 || yy2arr2 {
  9692. r.WriteArrayElem()
  9693. if yyq2[1] {
  9694. if false {
  9695. } else {
  9696. r.EncodeInt(int64(x.I64))
  9697. }
  9698. } else {
  9699. r.EncodeInt(0)
  9700. }
  9701. } else {
  9702. if yyq2[1] {
  9703. r.WriteMapElemKey()
  9704. if z.IsJSONHandle() {
  9705. z.WriteStr("\"I64\"")
  9706. } else {
  9707. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9708. }
  9709. r.WriteMapElemValue()
  9710. if false {
  9711. } else {
  9712. r.EncodeInt(int64(x.I64))
  9713. }
  9714. }
  9715. }
  9716. if yyr2 || yy2arr2 {
  9717. r.WriteArrayElem()
  9718. if yyq2[2] {
  9719. if false {
  9720. } else {
  9721. r.EncodeInt(int64(x.I32))
  9722. }
  9723. } else {
  9724. r.EncodeInt(0)
  9725. }
  9726. } else {
  9727. if yyq2[2] {
  9728. r.WriteMapElemKey()
  9729. if z.IsJSONHandle() {
  9730. z.WriteStr("\"I32\"")
  9731. } else {
  9732. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9733. }
  9734. r.WriteMapElemValue()
  9735. if false {
  9736. } else {
  9737. r.EncodeInt(int64(x.I32))
  9738. }
  9739. }
  9740. }
  9741. if yyr2 || yy2arr2 {
  9742. r.WriteArrayElem()
  9743. if yyq2[3] {
  9744. if false {
  9745. } else {
  9746. r.EncodeInt(int64(x.I16))
  9747. }
  9748. } else {
  9749. r.EncodeInt(0)
  9750. }
  9751. } else {
  9752. if yyq2[3] {
  9753. r.WriteMapElemKey()
  9754. if z.IsJSONHandle() {
  9755. z.WriteStr("\"I16\"")
  9756. } else {
  9757. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9758. }
  9759. r.WriteMapElemValue()
  9760. if false {
  9761. } else {
  9762. r.EncodeInt(int64(x.I16))
  9763. }
  9764. }
  9765. }
  9766. if yyr2 || yy2arr2 {
  9767. r.WriteArrayElem()
  9768. if yyq2[4] {
  9769. if false {
  9770. } else {
  9771. r.EncodeInt(int64(x.I8))
  9772. }
  9773. } else {
  9774. r.EncodeInt(0)
  9775. }
  9776. } else {
  9777. if yyq2[4] {
  9778. r.WriteMapElemKey()
  9779. if z.IsJSONHandle() {
  9780. z.WriteStr("\"I8\"")
  9781. } else {
  9782. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9783. }
  9784. r.WriteMapElemValue()
  9785. if false {
  9786. } else {
  9787. r.EncodeInt(int64(x.I8))
  9788. }
  9789. }
  9790. }
  9791. if yyr2 || yy2arr2 {
  9792. r.WriteArrayElem()
  9793. if yyq2[5] {
  9794. if false {
  9795. } else {
  9796. r.EncodeInt(int64(x.I64n))
  9797. }
  9798. } else {
  9799. r.EncodeInt(0)
  9800. }
  9801. } else {
  9802. if yyq2[5] {
  9803. r.WriteMapElemKey()
  9804. if z.IsJSONHandle() {
  9805. z.WriteStr("\"I64n\"")
  9806. } else {
  9807. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9808. }
  9809. r.WriteMapElemValue()
  9810. if false {
  9811. } else {
  9812. r.EncodeInt(int64(x.I64n))
  9813. }
  9814. }
  9815. }
  9816. if yyr2 || yy2arr2 {
  9817. r.WriteArrayElem()
  9818. if yyq2[6] {
  9819. if false {
  9820. } else {
  9821. r.EncodeInt(int64(x.I32n))
  9822. }
  9823. } else {
  9824. r.EncodeInt(0)
  9825. }
  9826. } else {
  9827. if yyq2[6] {
  9828. r.WriteMapElemKey()
  9829. if z.IsJSONHandle() {
  9830. z.WriteStr("\"I32n\"")
  9831. } else {
  9832. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9833. }
  9834. r.WriteMapElemValue()
  9835. if false {
  9836. } else {
  9837. r.EncodeInt(int64(x.I32n))
  9838. }
  9839. }
  9840. }
  9841. if yyr2 || yy2arr2 {
  9842. r.WriteArrayElem()
  9843. if yyq2[7] {
  9844. if false {
  9845. } else {
  9846. r.EncodeInt(int64(x.I16n))
  9847. }
  9848. } else {
  9849. r.EncodeInt(0)
  9850. }
  9851. } else {
  9852. if yyq2[7] {
  9853. r.WriteMapElemKey()
  9854. if z.IsJSONHandle() {
  9855. z.WriteStr("\"I16n\"")
  9856. } else {
  9857. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9858. }
  9859. r.WriteMapElemValue()
  9860. if false {
  9861. } else {
  9862. r.EncodeInt(int64(x.I16n))
  9863. }
  9864. }
  9865. }
  9866. if yyr2 || yy2arr2 {
  9867. r.WriteArrayElem()
  9868. if yyq2[8] {
  9869. if false {
  9870. } else {
  9871. r.EncodeInt(int64(x.I8n))
  9872. }
  9873. } else {
  9874. r.EncodeInt(0)
  9875. }
  9876. } else {
  9877. if yyq2[8] {
  9878. r.WriteMapElemKey()
  9879. if z.IsJSONHandle() {
  9880. z.WriteStr("\"I8n\"")
  9881. } else {
  9882. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9883. }
  9884. r.WriteMapElemValue()
  9885. if false {
  9886. } else {
  9887. r.EncodeInt(int64(x.I8n))
  9888. }
  9889. }
  9890. }
  9891. if yyr2 || yy2arr2 {
  9892. r.WriteArrayElem()
  9893. if yyq2[9] {
  9894. if false {
  9895. } else {
  9896. r.EncodeUint(uint64(x.Ui64))
  9897. }
  9898. } else {
  9899. r.EncodeUint(0)
  9900. }
  9901. } else {
  9902. if yyq2[9] {
  9903. r.WriteMapElemKey()
  9904. if z.IsJSONHandle() {
  9905. z.WriteStr("\"Ui64\"")
  9906. } else {
  9907. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9908. }
  9909. r.WriteMapElemValue()
  9910. if false {
  9911. } else {
  9912. r.EncodeUint(uint64(x.Ui64))
  9913. }
  9914. }
  9915. }
  9916. if yyr2 || yy2arr2 {
  9917. r.WriteArrayElem()
  9918. if yyq2[10] {
  9919. if false {
  9920. } else {
  9921. r.EncodeUint(uint64(x.Ui32))
  9922. }
  9923. } else {
  9924. r.EncodeUint(0)
  9925. }
  9926. } else {
  9927. if yyq2[10] {
  9928. r.WriteMapElemKey()
  9929. if z.IsJSONHandle() {
  9930. z.WriteStr("\"Ui32\"")
  9931. } else {
  9932. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9933. }
  9934. r.WriteMapElemValue()
  9935. if false {
  9936. } else {
  9937. r.EncodeUint(uint64(x.Ui32))
  9938. }
  9939. }
  9940. }
  9941. if yyr2 || yy2arr2 {
  9942. r.WriteArrayElem()
  9943. if yyq2[11] {
  9944. if false {
  9945. } else {
  9946. r.EncodeUint(uint64(x.Ui16))
  9947. }
  9948. } else {
  9949. r.EncodeUint(0)
  9950. }
  9951. } else {
  9952. if yyq2[11] {
  9953. r.WriteMapElemKey()
  9954. if z.IsJSONHandle() {
  9955. z.WriteStr("\"Ui16\"")
  9956. } else {
  9957. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9958. }
  9959. r.WriteMapElemValue()
  9960. if false {
  9961. } else {
  9962. r.EncodeUint(uint64(x.Ui16))
  9963. }
  9964. }
  9965. }
  9966. if yyr2 || yy2arr2 {
  9967. r.WriteArrayElem()
  9968. if yyq2[12] {
  9969. if false {
  9970. } else {
  9971. r.EncodeUint(uint64(x.Ui8))
  9972. }
  9973. } else {
  9974. r.EncodeUint(0)
  9975. }
  9976. } else {
  9977. if yyq2[12] {
  9978. r.WriteMapElemKey()
  9979. if z.IsJSONHandle() {
  9980. z.WriteStr("\"Ui8\"")
  9981. } else {
  9982. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9983. }
  9984. r.WriteMapElemValue()
  9985. if false {
  9986. } else {
  9987. r.EncodeUint(uint64(x.Ui8))
  9988. }
  9989. }
  9990. }
  9991. if yyr2 || yy2arr2 {
  9992. r.WriteArrayElem()
  9993. if yyq2[13] {
  9994. if false {
  9995. } else {
  9996. r.EncodeFloat64(float64(x.F64))
  9997. }
  9998. } else {
  9999. r.EncodeFloat64(0)
  10000. }
  10001. } else {
  10002. if yyq2[13] {
  10003. r.WriteMapElemKey()
  10004. if z.IsJSONHandle() {
  10005. z.WriteStr("\"F64\"")
  10006. } else {
  10007. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  10008. }
  10009. r.WriteMapElemValue()
  10010. if false {
  10011. } else {
  10012. r.EncodeFloat64(float64(x.F64))
  10013. }
  10014. }
  10015. }
  10016. if yyr2 || yy2arr2 {
  10017. r.WriteArrayElem()
  10018. if yyq2[14] {
  10019. if false {
  10020. } else {
  10021. r.EncodeFloat32(float32(x.F32))
  10022. }
  10023. } else {
  10024. r.EncodeFloat32(0)
  10025. }
  10026. } else {
  10027. if yyq2[14] {
  10028. r.WriteMapElemKey()
  10029. if z.IsJSONHandle() {
  10030. z.WriteStr("\"F32\"")
  10031. } else {
  10032. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  10033. }
  10034. r.WriteMapElemValue()
  10035. if false {
  10036. } else {
  10037. r.EncodeFloat32(float32(x.F32))
  10038. }
  10039. }
  10040. }
  10041. if yyr2 || yy2arr2 {
  10042. r.WriteArrayElem()
  10043. if yyq2[15] {
  10044. if false {
  10045. } else {
  10046. r.EncodeBool(bool(x.B))
  10047. }
  10048. } else {
  10049. r.EncodeBool(false)
  10050. }
  10051. } else {
  10052. if yyq2[15] {
  10053. r.WriteMapElemKey()
  10054. if z.IsJSONHandle() {
  10055. z.WriteStr("\"B\"")
  10056. } else {
  10057. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  10058. }
  10059. r.WriteMapElemValue()
  10060. if false {
  10061. } else {
  10062. r.EncodeBool(bool(x.B))
  10063. }
  10064. }
  10065. }
  10066. if yyr2 || yy2arr2 {
  10067. r.WriteArrayElem()
  10068. if yyq2[16] {
  10069. if false {
  10070. } else {
  10071. r.EncodeUint(uint64(x.By))
  10072. }
  10073. } else {
  10074. r.EncodeUint(0)
  10075. }
  10076. } else {
  10077. if yyq2[16] {
  10078. r.WriteMapElemKey()
  10079. if z.IsJSONHandle() {
  10080. z.WriteStr("\"By\"")
  10081. } else {
  10082. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  10083. }
  10084. r.WriteMapElemValue()
  10085. if false {
  10086. } else {
  10087. r.EncodeUint(uint64(x.By))
  10088. }
  10089. }
  10090. }
  10091. if yyr2 || yy2arr2 {
  10092. r.WriteArrayElem()
  10093. if yyq2[17] {
  10094. if x.Sslice == nil {
  10095. r.EncodeNil()
  10096. } else {
  10097. if false {
  10098. } else {
  10099. z.F.EncSliceStringV(x.Sslice, e)
  10100. }
  10101. }
  10102. } else {
  10103. r.EncodeNil()
  10104. }
  10105. } else {
  10106. if yyq2[17] {
  10107. r.WriteMapElemKey()
  10108. if z.IsJSONHandle() {
  10109. z.WriteStr("\"Sslice\"")
  10110. } else {
  10111. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  10112. }
  10113. r.WriteMapElemValue()
  10114. if x.Sslice == nil {
  10115. r.EncodeNil()
  10116. } else {
  10117. if false {
  10118. } else {
  10119. z.F.EncSliceStringV(x.Sslice, e)
  10120. }
  10121. }
  10122. }
  10123. }
  10124. if yyr2 || yy2arr2 {
  10125. r.WriteArrayElem()
  10126. if yyq2[18] {
  10127. if x.I64slice == nil {
  10128. r.EncodeNil()
  10129. } else {
  10130. if false {
  10131. } else {
  10132. z.F.EncSliceInt64V(x.I64slice, e)
  10133. }
  10134. }
  10135. } else {
  10136. r.EncodeNil()
  10137. }
  10138. } else {
  10139. if yyq2[18] {
  10140. r.WriteMapElemKey()
  10141. if z.IsJSONHandle() {
  10142. z.WriteStr("\"I64slice\"")
  10143. } else {
  10144. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  10145. }
  10146. r.WriteMapElemValue()
  10147. if x.I64slice == nil {
  10148. r.EncodeNil()
  10149. } else {
  10150. if false {
  10151. } else {
  10152. z.F.EncSliceInt64V(x.I64slice, e)
  10153. }
  10154. }
  10155. }
  10156. }
  10157. if yyr2 || yy2arr2 {
  10158. r.WriteArrayElem()
  10159. if yyq2[19] {
  10160. if x.I16slice == nil {
  10161. r.EncodeNil()
  10162. } else {
  10163. if false {
  10164. } else {
  10165. z.F.EncSliceInt16V(x.I16slice, e)
  10166. }
  10167. }
  10168. } else {
  10169. r.EncodeNil()
  10170. }
  10171. } else {
  10172. if yyq2[19] {
  10173. r.WriteMapElemKey()
  10174. if z.IsJSONHandle() {
  10175. z.WriteStr("\"I16slice\"")
  10176. } else {
  10177. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  10178. }
  10179. r.WriteMapElemValue()
  10180. if x.I16slice == nil {
  10181. r.EncodeNil()
  10182. } else {
  10183. if false {
  10184. } else {
  10185. z.F.EncSliceInt16V(x.I16slice, e)
  10186. }
  10187. }
  10188. }
  10189. }
  10190. if yyr2 || yy2arr2 {
  10191. r.WriteArrayElem()
  10192. if yyq2[20] {
  10193. if x.Ui64slice == nil {
  10194. r.EncodeNil()
  10195. } else {
  10196. if false {
  10197. } else {
  10198. z.F.EncSliceUint64V(x.Ui64slice, e)
  10199. }
  10200. }
  10201. } else {
  10202. r.EncodeNil()
  10203. }
  10204. } else {
  10205. if yyq2[20] {
  10206. r.WriteMapElemKey()
  10207. if z.IsJSONHandle() {
  10208. z.WriteStr("\"Ui64slice\"")
  10209. } else {
  10210. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  10211. }
  10212. r.WriteMapElemValue()
  10213. if x.Ui64slice == nil {
  10214. r.EncodeNil()
  10215. } else {
  10216. if false {
  10217. } else {
  10218. z.F.EncSliceUint64V(x.Ui64slice, e)
  10219. }
  10220. }
  10221. }
  10222. }
  10223. if yyr2 || yy2arr2 {
  10224. r.WriteArrayElem()
  10225. if yyq2[21] {
  10226. if x.Ui8slice == nil {
  10227. r.EncodeNil()
  10228. } else {
  10229. if false {
  10230. } else {
  10231. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  10232. }
  10233. }
  10234. } else {
  10235. r.EncodeNil()
  10236. }
  10237. } else {
  10238. if yyq2[21] {
  10239. r.WriteMapElemKey()
  10240. if z.IsJSONHandle() {
  10241. z.WriteStr("\"Ui8slice\"")
  10242. } else {
  10243. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  10244. }
  10245. r.WriteMapElemValue()
  10246. if x.Ui8slice == nil {
  10247. r.EncodeNil()
  10248. } else {
  10249. if false {
  10250. } else {
  10251. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  10252. }
  10253. }
  10254. }
  10255. }
  10256. if yyr2 || yy2arr2 {
  10257. r.WriteArrayElem()
  10258. if yyq2[22] {
  10259. if x.Bslice == nil {
  10260. r.EncodeNil()
  10261. } else {
  10262. if false {
  10263. } else {
  10264. z.F.EncSliceBoolV(x.Bslice, e)
  10265. }
  10266. }
  10267. } else {
  10268. r.EncodeNil()
  10269. }
  10270. } else {
  10271. if yyq2[22] {
  10272. r.WriteMapElemKey()
  10273. if z.IsJSONHandle() {
  10274. z.WriteStr("\"Bslice\"")
  10275. } else {
  10276. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  10277. }
  10278. r.WriteMapElemValue()
  10279. if x.Bslice == nil {
  10280. r.EncodeNil()
  10281. } else {
  10282. if false {
  10283. } else {
  10284. z.F.EncSliceBoolV(x.Bslice, e)
  10285. }
  10286. }
  10287. }
  10288. }
  10289. if yyr2 || yy2arr2 {
  10290. r.WriteArrayElem()
  10291. if yyq2[23] {
  10292. if x.Byslice == nil {
  10293. r.EncodeNil()
  10294. } else {
  10295. if false {
  10296. } else {
  10297. r.EncodeStringBytesRaw([]byte(x.Byslice))
  10298. }
  10299. }
  10300. } else {
  10301. r.EncodeNil()
  10302. }
  10303. } else {
  10304. if yyq2[23] {
  10305. r.WriteMapElemKey()
  10306. if z.IsJSONHandle() {
  10307. z.WriteStr("\"Byslice\"")
  10308. } else {
  10309. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  10310. }
  10311. r.WriteMapElemValue()
  10312. if x.Byslice == nil {
  10313. r.EncodeNil()
  10314. } else {
  10315. if false {
  10316. } else {
  10317. r.EncodeStringBytesRaw([]byte(x.Byslice))
  10318. }
  10319. }
  10320. }
  10321. }
  10322. if yyr2 || yy2arr2 {
  10323. r.WriteArrayElem()
  10324. if yyq2[24] {
  10325. if x.Iptrslice == nil {
  10326. r.EncodeNil()
  10327. } else {
  10328. if false {
  10329. } else {
  10330. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  10331. }
  10332. }
  10333. } else {
  10334. r.EncodeNil()
  10335. }
  10336. } else {
  10337. if yyq2[24] {
  10338. r.WriteMapElemKey()
  10339. if z.IsJSONHandle() {
  10340. z.WriteStr("\"Iptrslice\"")
  10341. } else {
  10342. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  10343. }
  10344. r.WriteMapElemValue()
  10345. if x.Iptrslice == nil {
  10346. r.EncodeNil()
  10347. } else {
  10348. if false {
  10349. } else {
  10350. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  10351. }
  10352. }
  10353. }
  10354. }
  10355. if yyr2 || yy2arr2 {
  10356. r.WriteArrayElem()
  10357. if yyq2[25] {
  10358. if x.WrapSliceInt64 == nil {
  10359. r.EncodeNil()
  10360. } else {
  10361. x.WrapSliceInt64.CodecEncodeSelf(e)
  10362. }
  10363. } else {
  10364. r.EncodeNil()
  10365. }
  10366. } else {
  10367. if yyq2[25] {
  10368. r.WriteMapElemKey()
  10369. if z.IsJSONHandle() {
  10370. z.WriteStr("\"WrapSliceInt64\"")
  10371. } else {
  10372. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  10373. }
  10374. r.WriteMapElemValue()
  10375. if x.WrapSliceInt64 == nil {
  10376. r.EncodeNil()
  10377. } else {
  10378. x.WrapSliceInt64.CodecEncodeSelf(e)
  10379. }
  10380. }
  10381. }
  10382. if yyr2 || yy2arr2 {
  10383. r.WriteArrayElem()
  10384. if yyq2[26] {
  10385. if x.WrapSliceString == nil {
  10386. r.EncodeNil()
  10387. } else {
  10388. x.WrapSliceString.CodecEncodeSelf(e)
  10389. }
  10390. } else {
  10391. r.EncodeNil()
  10392. }
  10393. } else {
  10394. if yyq2[26] {
  10395. r.WriteMapElemKey()
  10396. if z.IsJSONHandle() {
  10397. z.WriteStr("\"WrapSliceString\"")
  10398. } else {
  10399. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  10400. }
  10401. r.WriteMapElemValue()
  10402. if x.WrapSliceString == nil {
  10403. r.EncodeNil()
  10404. } else {
  10405. x.WrapSliceString.CodecEncodeSelf(e)
  10406. }
  10407. }
  10408. }
  10409. if yyr2 || yy2arr2 {
  10410. r.WriteArrayElem()
  10411. if yyq2[27] {
  10412. if x.Msi64 == nil {
  10413. r.EncodeNil()
  10414. } else {
  10415. if false {
  10416. } else {
  10417. z.F.EncMapStringInt64V(x.Msi64, e)
  10418. }
  10419. }
  10420. } else {
  10421. r.EncodeNil()
  10422. }
  10423. } else {
  10424. if yyq2[27] {
  10425. r.WriteMapElemKey()
  10426. if z.IsJSONHandle() {
  10427. z.WriteStr("\"Msi64\"")
  10428. } else {
  10429. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  10430. }
  10431. r.WriteMapElemValue()
  10432. if x.Msi64 == nil {
  10433. r.EncodeNil()
  10434. } else {
  10435. if false {
  10436. } else {
  10437. z.F.EncMapStringInt64V(x.Msi64, e)
  10438. }
  10439. }
  10440. }
  10441. }
  10442. if yyr2 || yy2arr2 {
  10443. r.WriteArrayElem()
  10444. if yyq2[28] {
  10445. yy88 := &x.Simplef
  10446. yy88.CodecEncodeSelf(e)
  10447. } else {
  10448. r.EncodeNil()
  10449. }
  10450. } else {
  10451. if yyq2[28] {
  10452. r.WriteMapElemKey()
  10453. if z.IsJSONHandle() {
  10454. z.WriteStr("\"Simplef\"")
  10455. } else {
  10456. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  10457. }
  10458. r.WriteMapElemValue()
  10459. yy90 := &x.Simplef
  10460. yy90.CodecEncodeSelf(e)
  10461. }
  10462. }
  10463. if yyr2 || yy2arr2 {
  10464. r.WriteArrayElem()
  10465. if yyq2[29] {
  10466. if x.SstrUi64T == nil {
  10467. r.EncodeNil()
  10468. } else {
  10469. if false {
  10470. } else {
  10471. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  10472. }
  10473. }
  10474. } else {
  10475. r.EncodeNil()
  10476. }
  10477. } else {
  10478. if yyq2[29] {
  10479. r.WriteMapElemKey()
  10480. if z.IsJSONHandle() {
  10481. z.WriteStr("\"SstrUi64T\"")
  10482. } else {
  10483. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  10484. }
  10485. r.WriteMapElemValue()
  10486. if x.SstrUi64T == nil {
  10487. r.EncodeNil()
  10488. } else {
  10489. if false {
  10490. } else {
  10491. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  10492. }
  10493. }
  10494. }
  10495. }
  10496. if yyr2 || yy2arr2 {
  10497. r.WriteArrayElem()
  10498. if yyq2[30] {
  10499. if false {
  10500. } else {
  10501. if z.EncBasicHandle().StringToRaw {
  10502. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  10503. } else {
  10504. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  10505. }
  10506. }
  10507. } else {
  10508. if z.EncBasicHandle().StringToRaw {
  10509. r.EncodeStringBytesRaw([]byte{})
  10510. } else {
  10511. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  10512. }
  10513. }
  10514. } else {
  10515. if yyq2[30] {
  10516. r.WriteMapElemKey()
  10517. if z.IsJSONHandle() {
  10518. z.WriteStr("\"AS\"")
  10519. } else {
  10520. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  10521. }
  10522. r.WriteMapElemValue()
  10523. if false {
  10524. } else {
  10525. if z.EncBasicHandle().StringToRaw {
  10526. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  10527. } else {
  10528. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  10529. }
  10530. }
  10531. }
  10532. }
  10533. if yyr2 || yy2arr2 {
  10534. r.WriteArrayElem()
  10535. if yyq2[31] {
  10536. if false {
  10537. } else {
  10538. r.EncodeInt(int64(x.AI64))
  10539. }
  10540. } else {
  10541. r.EncodeInt(0)
  10542. }
  10543. } else {
  10544. if yyq2[31] {
  10545. r.WriteMapElemKey()
  10546. if z.IsJSONHandle() {
  10547. z.WriteStr("\"AI64\"")
  10548. } else {
  10549. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  10550. }
  10551. r.WriteMapElemValue()
  10552. if false {
  10553. } else {
  10554. r.EncodeInt(int64(x.AI64))
  10555. }
  10556. }
  10557. }
  10558. if yyr2 || yy2arr2 {
  10559. r.WriteArrayElem()
  10560. if yyq2[32] {
  10561. if false {
  10562. } else {
  10563. r.EncodeInt(int64(x.AI16))
  10564. }
  10565. } else {
  10566. r.EncodeInt(0)
  10567. }
  10568. } else {
  10569. if yyq2[32] {
  10570. r.WriteMapElemKey()
  10571. if z.IsJSONHandle() {
  10572. z.WriteStr("\"AI16\"")
  10573. } else {
  10574. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  10575. }
  10576. r.WriteMapElemValue()
  10577. if false {
  10578. } else {
  10579. r.EncodeInt(int64(x.AI16))
  10580. }
  10581. }
  10582. }
  10583. if yyr2 || yy2arr2 {
  10584. r.WriteArrayElem()
  10585. if yyq2[33] {
  10586. if false {
  10587. } else {
  10588. r.EncodeUint(uint64(x.AUi64))
  10589. }
  10590. } else {
  10591. r.EncodeUint(0)
  10592. }
  10593. } else {
  10594. if yyq2[33] {
  10595. r.WriteMapElemKey()
  10596. if z.IsJSONHandle() {
  10597. z.WriteStr("\"AUi64\"")
  10598. } else {
  10599. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  10600. }
  10601. r.WriteMapElemValue()
  10602. if false {
  10603. } else {
  10604. r.EncodeUint(uint64(x.AUi64))
  10605. }
  10606. }
  10607. }
  10608. if yyr2 || yy2arr2 {
  10609. r.WriteArrayElem()
  10610. if yyq2[34] {
  10611. if x.ASslice == nil {
  10612. r.EncodeNil()
  10613. } else {
  10614. if false {
  10615. } else {
  10616. z.F.EncSliceStringV(x.ASslice, e)
  10617. }
  10618. }
  10619. } else {
  10620. r.EncodeNil()
  10621. }
  10622. } else {
  10623. if yyq2[34] {
  10624. r.WriteMapElemKey()
  10625. if z.IsJSONHandle() {
  10626. z.WriteStr("\"ASslice\"")
  10627. } else {
  10628. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  10629. }
  10630. r.WriteMapElemValue()
  10631. if x.ASslice == nil {
  10632. r.EncodeNil()
  10633. } else {
  10634. if false {
  10635. } else {
  10636. z.F.EncSliceStringV(x.ASslice, e)
  10637. }
  10638. }
  10639. }
  10640. }
  10641. if yyr2 || yy2arr2 {
  10642. r.WriteArrayElem()
  10643. if yyq2[35] {
  10644. if x.AI64slice == nil {
  10645. r.EncodeNil()
  10646. } else {
  10647. if false {
  10648. } else {
  10649. z.F.EncSliceInt64V(x.AI64slice, e)
  10650. }
  10651. }
  10652. } else {
  10653. r.EncodeNil()
  10654. }
  10655. } else {
  10656. if yyq2[35] {
  10657. r.WriteMapElemKey()
  10658. if z.IsJSONHandle() {
  10659. z.WriteStr("\"AI64slice\"")
  10660. } else {
  10661. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  10662. }
  10663. r.WriteMapElemValue()
  10664. if x.AI64slice == nil {
  10665. r.EncodeNil()
  10666. } else {
  10667. if false {
  10668. } else {
  10669. z.F.EncSliceInt64V(x.AI64slice, e)
  10670. }
  10671. }
  10672. }
  10673. }
  10674. if yyr2 || yy2arr2 {
  10675. r.WriteArrayElem()
  10676. if yyq2[36] {
  10677. if x.AUi64slice == nil {
  10678. r.EncodeNil()
  10679. } else {
  10680. if false {
  10681. } else {
  10682. z.F.EncSliceUint64V(x.AUi64slice, e)
  10683. }
  10684. }
  10685. } else {
  10686. r.EncodeNil()
  10687. }
  10688. } else {
  10689. if yyq2[36] {
  10690. r.WriteMapElemKey()
  10691. if z.IsJSONHandle() {
  10692. z.WriteStr("\"AUi64slice\"")
  10693. } else {
  10694. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  10695. }
  10696. r.WriteMapElemValue()
  10697. if x.AUi64slice == nil {
  10698. r.EncodeNil()
  10699. } else {
  10700. if false {
  10701. } else {
  10702. z.F.EncSliceUint64V(x.AUi64slice, e)
  10703. }
  10704. }
  10705. }
  10706. }
  10707. if yyr2 || yy2arr2 {
  10708. r.WriteArrayElem()
  10709. if yyq2[37] {
  10710. if x.AF64slice == nil {
  10711. r.EncodeNil()
  10712. } else {
  10713. if false {
  10714. } else {
  10715. z.F.EncSliceFloat64V(x.AF64slice, e)
  10716. }
  10717. }
  10718. } else {
  10719. r.EncodeNil()
  10720. }
  10721. } else {
  10722. if yyq2[37] {
  10723. r.WriteMapElemKey()
  10724. if z.IsJSONHandle() {
  10725. z.WriteStr("\"AF64slice\"")
  10726. } else {
  10727. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  10728. }
  10729. r.WriteMapElemValue()
  10730. if x.AF64slice == nil {
  10731. r.EncodeNil()
  10732. } else {
  10733. if false {
  10734. } else {
  10735. z.F.EncSliceFloat64V(x.AF64slice, e)
  10736. }
  10737. }
  10738. }
  10739. }
  10740. if yyr2 || yy2arr2 {
  10741. r.WriteArrayElem()
  10742. if yyq2[38] {
  10743. if x.AF32slice == nil {
  10744. r.EncodeNil()
  10745. } else {
  10746. if false {
  10747. } else {
  10748. z.F.EncSliceFloat32V(x.AF32slice, e)
  10749. }
  10750. }
  10751. } else {
  10752. r.EncodeNil()
  10753. }
  10754. } else {
  10755. if yyq2[38] {
  10756. r.WriteMapElemKey()
  10757. if z.IsJSONHandle() {
  10758. z.WriteStr("\"AF32slice\"")
  10759. } else {
  10760. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  10761. }
  10762. r.WriteMapElemValue()
  10763. if x.AF32slice == nil {
  10764. r.EncodeNil()
  10765. } else {
  10766. if false {
  10767. } else {
  10768. z.F.EncSliceFloat32V(x.AF32slice, e)
  10769. }
  10770. }
  10771. }
  10772. }
  10773. if yyr2 || yy2arr2 {
  10774. r.WriteArrayElem()
  10775. if yyq2[39] {
  10776. if x.AMSU16 == nil {
  10777. r.EncodeNil()
  10778. } else {
  10779. if false {
  10780. } else {
  10781. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  10782. }
  10783. }
  10784. } else {
  10785. r.EncodeNil()
  10786. }
  10787. } else {
  10788. if yyq2[39] {
  10789. r.WriteMapElemKey()
  10790. if z.IsJSONHandle() {
  10791. z.WriteStr("\"AMSU16\"")
  10792. } else {
  10793. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  10794. }
  10795. r.WriteMapElemValue()
  10796. if x.AMSU16 == nil {
  10797. r.EncodeNil()
  10798. } else {
  10799. if false {
  10800. } else {
  10801. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  10802. }
  10803. }
  10804. }
  10805. }
  10806. if yyr2 || yy2arr2 {
  10807. r.WriteArrayElem()
  10808. if yyq2[40] {
  10809. yy126 := &x.AI64arr0
  10810. if false {
  10811. } else {
  10812. h.encArray0int64((*[0]int64)(yy126), e)
  10813. }
  10814. } else {
  10815. r.EncodeNil()
  10816. }
  10817. } else {
  10818. if yyq2[40] {
  10819. r.WriteMapElemKey()
  10820. if z.IsJSONHandle() {
  10821. z.WriteStr("\"AI64arr0\"")
  10822. } else {
  10823. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  10824. }
  10825. r.WriteMapElemValue()
  10826. yy128 := &x.AI64arr0
  10827. if false {
  10828. } else {
  10829. h.encArray0int64((*[0]int64)(yy128), e)
  10830. }
  10831. }
  10832. }
  10833. if yyr2 || yy2arr2 {
  10834. r.WriteArrayElem()
  10835. if yyq2[41] {
  10836. if x.A164slice0 == nil {
  10837. r.EncodeNil()
  10838. } else {
  10839. if false {
  10840. } else {
  10841. z.F.EncSliceInt64V(x.A164slice0, e)
  10842. }
  10843. }
  10844. } else {
  10845. r.EncodeNil()
  10846. }
  10847. } else {
  10848. if yyq2[41] {
  10849. r.WriteMapElemKey()
  10850. if z.IsJSONHandle() {
  10851. z.WriteStr("\"A164slice0\"")
  10852. } else {
  10853. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  10854. }
  10855. r.WriteMapElemValue()
  10856. if x.A164slice0 == nil {
  10857. r.EncodeNil()
  10858. } else {
  10859. if false {
  10860. } else {
  10861. z.F.EncSliceInt64V(x.A164slice0, e)
  10862. }
  10863. }
  10864. }
  10865. }
  10866. if yyr2 || yy2arr2 {
  10867. r.WriteArrayElem()
  10868. if yyq2[42] {
  10869. if x.AUi64sliceN == nil {
  10870. r.EncodeNil()
  10871. } else {
  10872. if false {
  10873. } else {
  10874. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  10875. }
  10876. }
  10877. } else {
  10878. r.EncodeNil()
  10879. }
  10880. } else {
  10881. if yyq2[42] {
  10882. r.WriteMapElemKey()
  10883. if z.IsJSONHandle() {
  10884. z.WriteStr("\"AUi64sliceN\"")
  10885. } else {
  10886. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  10887. }
  10888. r.WriteMapElemValue()
  10889. if x.AUi64sliceN == nil {
  10890. r.EncodeNil()
  10891. } else {
  10892. if false {
  10893. } else {
  10894. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  10895. }
  10896. }
  10897. }
  10898. }
  10899. if yyr2 || yy2arr2 {
  10900. r.WriteArrayElem()
  10901. if yyq2[43] {
  10902. if x.AMSU16N == nil {
  10903. r.EncodeNil()
  10904. } else {
  10905. if false {
  10906. } else {
  10907. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  10908. }
  10909. }
  10910. } else {
  10911. r.EncodeNil()
  10912. }
  10913. } else {
  10914. if yyq2[43] {
  10915. r.WriteMapElemKey()
  10916. if z.IsJSONHandle() {
  10917. z.WriteStr("\"AMSU16N\"")
  10918. } else {
  10919. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  10920. }
  10921. r.WriteMapElemValue()
  10922. if x.AMSU16N == nil {
  10923. r.EncodeNil()
  10924. } else {
  10925. if false {
  10926. } else {
  10927. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  10928. }
  10929. }
  10930. }
  10931. }
  10932. if yyr2 || yy2arr2 {
  10933. r.WriteArrayElem()
  10934. if yyq2[44] {
  10935. if x.AMSU16E == nil {
  10936. r.EncodeNil()
  10937. } else {
  10938. if false {
  10939. } else {
  10940. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  10941. }
  10942. }
  10943. } else {
  10944. r.EncodeNil()
  10945. }
  10946. } else {
  10947. if yyq2[44] {
  10948. r.WriteMapElemKey()
  10949. if z.IsJSONHandle() {
  10950. z.WriteStr("\"AMSU16E\"")
  10951. } else {
  10952. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10953. }
  10954. r.WriteMapElemValue()
  10955. if x.AMSU16E == nil {
  10956. r.EncodeNil()
  10957. } else {
  10958. if false {
  10959. } else {
  10960. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  10961. }
  10962. }
  10963. }
  10964. }
  10965. if yyr2 || yy2arr2 {
  10966. r.WriteArrayElem()
  10967. if yyq2[45] {
  10968. yy143 := &x.NotAnon
  10969. yy143.CodecEncodeSelf(e)
  10970. } else {
  10971. r.EncodeNil()
  10972. }
  10973. } else {
  10974. if yyq2[45] {
  10975. r.WriteMapElemKey()
  10976. if z.IsJSONHandle() {
  10977. z.WriteStr("\"NotAnon\"")
  10978. } else {
  10979. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10980. }
  10981. r.WriteMapElemValue()
  10982. yy145 := &x.NotAnon
  10983. yy145.CodecEncodeSelf(e)
  10984. }
  10985. }
  10986. if yyr2 || yy2arr2 {
  10987. r.WriteArrayElem()
  10988. if yyq2[46] {
  10989. if x.Nmap == nil {
  10990. r.EncodeNil()
  10991. } else {
  10992. if false {
  10993. } else {
  10994. z.F.EncMapStringBoolV(x.Nmap, e)
  10995. }
  10996. }
  10997. } else {
  10998. r.EncodeNil()
  10999. }
  11000. } else {
  11001. if yyq2[46] {
  11002. r.WriteMapElemKey()
  11003. if z.IsJSONHandle() {
  11004. z.WriteStr("\"Nmap\"")
  11005. } else {
  11006. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  11007. }
  11008. r.WriteMapElemValue()
  11009. if x.Nmap == nil {
  11010. r.EncodeNil()
  11011. } else {
  11012. if false {
  11013. } else {
  11014. z.F.EncMapStringBoolV(x.Nmap, e)
  11015. }
  11016. }
  11017. }
  11018. }
  11019. if yyr2 || yy2arr2 {
  11020. r.WriteArrayElem()
  11021. if yyq2[47] {
  11022. if x.Nslice == nil {
  11023. r.EncodeNil()
  11024. } else {
  11025. if false {
  11026. } else {
  11027. r.EncodeStringBytesRaw([]byte(x.Nslice))
  11028. }
  11029. }
  11030. } else {
  11031. r.EncodeNil()
  11032. }
  11033. } else {
  11034. if yyq2[47] {
  11035. r.WriteMapElemKey()
  11036. if z.IsJSONHandle() {
  11037. z.WriteStr("\"Nslice\"")
  11038. } else {
  11039. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  11040. }
  11041. r.WriteMapElemValue()
  11042. if x.Nslice == nil {
  11043. r.EncodeNil()
  11044. } else {
  11045. if false {
  11046. } else {
  11047. r.EncodeStringBytesRaw([]byte(x.Nslice))
  11048. }
  11049. }
  11050. }
  11051. }
  11052. var yyn153 bool
  11053. if x.TestStrucCommon.Nint64 == nil {
  11054. yyn153 = true
  11055. goto LABEL153
  11056. }
  11057. LABEL153:
  11058. if yyr2 || yy2arr2 {
  11059. if yyn153 {
  11060. r.WriteArrayElem()
  11061. r.EncodeNil()
  11062. } else {
  11063. r.WriteArrayElem()
  11064. if yyq2[48] {
  11065. if x.Nint64 == nil {
  11066. r.EncodeNil()
  11067. } else {
  11068. yy154 := *x.Nint64
  11069. if false {
  11070. } else {
  11071. r.EncodeInt(int64(yy154))
  11072. }
  11073. }
  11074. } else {
  11075. r.EncodeNil()
  11076. }
  11077. }
  11078. } else {
  11079. if yyq2[48] {
  11080. r.WriteMapElemKey()
  11081. if z.IsJSONHandle() {
  11082. z.WriteStr("\"Nint64\"")
  11083. } else {
  11084. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  11085. }
  11086. r.WriteMapElemValue()
  11087. if yyn153 {
  11088. r.EncodeNil()
  11089. } else {
  11090. if x.Nint64 == nil {
  11091. r.EncodeNil()
  11092. } else {
  11093. yy156 := *x.Nint64
  11094. if false {
  11095. } else {
  11096. r.EncodeInt(int64(yy156))
  11097. }
  11098. }
  11099. }
  11100. }
  11101. }
  11102. if yyr2 || yy2arr2 {
  11103. r.WriteArrayElem()
  11104. if yyq2[49] {
  11105. if x.Chstr == nil {
  11106. r.EncodeNil()
  11107. } else {
  11108. if false {
  11109. } else {
  11110. h.encChanstring((chan string)(x.Chstr), e)
  11111. }
  11112. }
  11113. } else {
  11114. r.EncodeNil()
  11115. }
  11116. } else {
  11117. if yyq2[49] {
  11118. r.WriteMapElemKey()
  11119. if z.IsJSONHandle() {
  11120. z.WriteStr("\"Chstr\"")
  11121. } else {
  11122. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  11123. }
  11124. r.WriteMapElemValue()
  11125. if x.Chstr == nil {
  11126. r.EncodeNil()
  11127. } else {
  11128. if false {
  11129. } else {
  11130. h.encChanstring((chan string)(x.Chstr), e)
  11131. }
  11132. }
  11133. }
  11134. }
  11135. if yyr2 || yy2arr2 {
  11136. r.WriteArrayElem()
  11137. if yyq2[50] {
  11138. if x.Mis == nil {
  11139. r.EncodeNil()
  11140. } else {
  11141. if false {
  11142. } else {
  11143. z.F.EncMapIntStringV(x.Mis, e)
  11144. }
  11145. }
  11146. } else {
  11147. r.EncodeNil()
  11148. }
  11149. } else {
  11150. if yyq2[50] {
  11151. r.WriteMapElemKey()
  11152. if z.IsJSONHandle() {
  11153. z.WriteStr("\"Mis\"")
  11154. } else {
  11155. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  11156. }
  11157. r.WriteMapElemValue()
  11158. if x.Mis == nil {
  11159. r.EncodeNil()
  11160. } else {
  11161. if false {
  11162. } else {
  11163. z.F.EncMapIntStringV(x.Mis, e)
  11164. }
  11165. }
  11166. }
  11167. }
  11168. if yyr2 || yy2arr2 {
  11169. r.WriteArrayElem()
  11170. if yyq2[51] {
  11171. if x.Mbu64 == nil {
  11172. r.EncodeNil()
  11173. } else {
  11174. if false {
  11175. } else {
  11176. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  11177. }
  11178. }
  11179. } else {
  11180. r.EncodeNil()
  11181. }
  11182. } else {
  11183. if yyq2[51] {
  11184. r.WriteMapElemKey()
  11185. if z.IsJSONHandle() {
  11186. z.WriteStr("\"Mbu64\"")
  11187. } else {
  11188. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  11189. }
  11190. r.WriteMapElemValue()
  11191. if x.Mbu64 == nil {
  11192. r.EncodeNil()
  11193. } else {
  11194. if false {
  11195. } else {
  11196. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  11197. }
  11198. }
  11199. }
  11200. }
  11201. if yyr2 || yy2arr2 {
  11202. r.WriteArrayElem()
  11203. if yyq2[52] {
  11204. if x.Miwu64s == nil {
  11205. r.EncodeNil()
  11206. } else {
  11207. if false {
  11208. } else {
  11209. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  11210. }
  11211. }
  11212. } else {
  11213. r.EncodeNil()
  11214. }
  11215. } else {
  11216. if yyq2[52] {
  11217. r.WriteMapElemKey()
  11218. if z.IsJSONHandle() {
  11219. z.WriteStr("\"Miwu64s\"")
  11220. } else {
  11221. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  11222. }
  11223. r.WriteMapElemValue()
  11224. if x.Miwu64s == nil {
  11225. r.EncodeNil()
  11226. } else {
  11227. if false {
  11228. } else {
  11229. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  11230. }
  11231. }
  11232. }
  11233. }
  11234. if yyr2 || yy2arr2 {
  11235. r.WriteArrayElem()
  11236. if yyq2[53] {
  11237. if x.Mfwss == nil {
  11238. r.EncodeNil()
  11239. } else {
  11240. if false {
  11241. } else {
  11242. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  11243. }
  11244. }
  11245. } else {
  11246. r.EncodeNil()
  11247. }
  11248. } else {
  11249. if yyq2[53] {
  11250. r.WriteMapElemKey()
  11251. if z.IsJSONHandle() {
  11252. z.WriteStr("\"Mfwss\"")
  11253. } else {
  11254. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  11255. }
  11256. r.WriteMapElemValue()
  11257. if x.Mfwss == nil {
  11258. r.EncodeNil()
  11259. } else {
  11260. if false {
  11261. } else {
  11262. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  11263. }
  11264. }
  11265. }
  11266. }
  11267. if yyr2 || yy2arr2 {
  11268. r.WriteArrayElem()
  11269. if yyq2[54] {
  11270. if x.Mf32wss == nil {
  11271. r.EncodeNil()
  11272. } else {
  11273. if false {
  11274. } else {
  11275. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  11276. }
  11277. }
  11278. } else {
  11279. r.EncodeNil()
  11280. }
  11281. } else {
  11282. if yyq2[54] {
  11283. r.WriteMapElemKey()
  11284. if z.IsJSONHandle() {
  11285. z.WriteStr("\"Mf32wss\"")
  11286. } else {
  11287. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  11288. }
  11289. r.WriteMapElemValue()
  11290. if x.Mf32wss == nil {
  11291. r.EncodeNil()
  11292. } else {
  11293. if false {
  11294. } else {
  11295. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  11296. }
  11297. }
  11298. }
  11299. }
  11300. if yyr2 || yy2arr2 {
  11301. r.WriteArrayElem()
  11302. if yyq2[55] {
  11303. if x.Mui2wss == nil {
  11304. r.EncodeNil()
  11305. } else {
  11306. if false {
  11307. } else {
  11308. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  11309. }
  11310. }
  11311. } else {
  11312. r.EncodeNil()
  11313. }
  11314. } else {
  11315. if yyq2[55] {
  11316. r.WriteMapElemKey()
  11317. if z.IsJSONHandle() {
  11318. z.WriteStr("\"Mui2wss\"")
  11319. } else {
  11320. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  11321. }
  11322. r.WriteMapElemValue()
  11323. if x.Mui2wss == nil {
  11324. r.EncodeNil()
  11325. } else {
  11326. if false {
  11327. } else {
  11328. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  11329. }
  11330. }
  11331. }
  11332. }
  11333. if yyr2 || yy2arr2 {
  11334. r.WriteArrayElem()
  11335. if yyq2[56] {
  11336. if x.Msu2wss == nil {
  11337. r.EncodeNil()
  11338. } else {
  11339. if false {
  11340. } else {
  11341. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  11342. }
  11343. }
  11344. } else {
  11345. r.EncodeNil()
  11346. }
  11347. } else {
  11348. if yyq2[56] {
  11349. r.WriteMapElemKey()
  11350. if z.IsJSONHandle() {
  11351. z.WriteStr("\"Msu2wss\"")
  11352. } else {
  11353. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  11354. }
  11355. r.WriteMapElemValue()
  11356. if x.Msu2wss == nil {
  11357. r.EncodeNil()
  11358. } else {
  11359. if false {
  11360. } else {
  11361. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  11362. }
  11363. }
  11364. }
  11365. }
  11366. if yyr2 || yy2arr2 {
  11367. r.WriteArrayElem()
  11368. if yyq2[57] {
  11369. x.Ci64.CodecEncodeSelf(e)
  11370. } else {
  11371. r.EncodeInt(0)
  11372. }
  11373. } else {
  11374. if yyq2[57] {
  11375. r.WriteMapElemKey()
  11376. if z.IsJSONHandle() {
  11377. z.WriteStr("\"Ci64\"")
  11378. } else {
  11379. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  11380. }
  11381. r.WriteMapElemValue()
  11382. x.Ci64.CodecEncodeSelf(e)
  11383. }
  11384. }
  11385. if yyr2 || yy2arr2 {
  11386. r.WriteArrayElem()
  11387. if yyq2[58] {
  11388. if x.Swrapbytes == nil {
  11389. r.EncodeNil()
  11390. } else {
  11391. if false {
  11392. } else {
  11393. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  11394. }
  11395. }
  11396. } else {
  11397. r.EncodeNil()
  11398. }
  11399. } else {
  11400. if yyq2[58] {
  11401. r.WriteMapElemKey()
  11402. if z.IsJSONHandle() {
  11403. z.WriteStr("\"Swrapbytes\"")
  11404. } else {
  11405. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  11406. }
  11407. r.WriteMapElemValue()
  11408. if x.Swrapbytes == nil {
  11409. r.EncodeNil()
  11410. } else {
  11411. if false {
  11412. } else {
  11413. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  11414. }
  11415. }
  11416. }
  11417. }
  11418. if yyr2 || yy2arr2 {
  11419. r.WriteArrayElem()
  11420. if yyq2[59] {
  11421. if x.Swrapuint8 == nil {
  11422. r.EncodeNil()
  11423. } else {
  11424. if false {
  11425. } else {
  11426. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  11427. }
  11428. }
  11429. } else {
  11430. r.EncodeNil()
  11431. }
  11432. } else {
  11433. if yyq2[59] {
  11434. r.WriteMapElemKey()
  11435. if z.IsJSONHandle() {
  11436. z.WriteStr("\"Swrapuint8\"")
  11437. } else {
  11438. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  11439. }
  11440. r.WriteMapElemValue()
  11441. if x.Swrapuint8 == nil {
  11442. r.EncodeNil()
  11443. } else {
  11444. if false {
  11445. } else {
  11446. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  11447. }
  11448. }
  11449. }
  11450. }
  11451. if yyr2 || yy2arr2 {
  11452. r.WriteArrayElem()
  11453. if yyq2[60] {
  11454. yy192 := &x.ArrStrUi64T
  11455. if false {
  11456. } else {
  11457. h.encArray4stringUint64T((*[4]stringUint64T)(yy192), e)
  11458. }
  11459. } else {
  11460. r.EncodeNil()
  11461. }
  11462. } else {
  11463. if yyq2[60] {
  11464. r.WriteMapElemKey()
  11465. if z.IsJSONHandle() {
  11466. z.WriteStr("\"ArrStrUi64T\"")
  11467. } else {
  11468. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  11469. }
  11470. r.WriteMapElemValue()
  11471. yy194 := &x.ArrStrUi64T
  11472. if false {
  11473. } else {
  11474. h.encArray4stringUint64T((*[4]stringUint64T)(yy194), e)
  11475. }
  11476. }
  11477. }
  11478. if yyr2 || yy2arr2 {
  11479. r.WriteArrayElem()
  11480. if yyq2[61] {
  11481. yy197 := &x.Ui64array
  11482. if false {
  11483. } else {
  11484. h.encArray4uint64((*[4]uint64)(yy197), e)
  11485. }
  11486. } else {
  11487. r.EncodeNil()
  11488. }
  11489. } else {
  11490. if yyq2[61] {
  11491. r.WriteMapElemKey()
  11492. if z.IsJSONHandle() {
  11493. z.WriteStr("\"Ui64array\"")
  11494. } else {
  11495. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  11496. }
  11497. r.WriteMapElemValue()
  11498. yy199 := &x.Ui64array
  11499. if false {
  11500. } else {
  11501. h.encArray4uint64((*[4]uint64)(yy199), e)
  11502. }
  11503. }
  11504. }
  11505. if yyr2 || yy2arr2 {
  11506. r.WriteArrayElem()
  11507. if yyq2[62] {
  11508. if x.Ui64slicearray == nil {
  11509. r.EncodeNil()
  11510. } else {
  11511. if false {
  11512. } else {
  11513. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  11514. }
  11515. }
  11516. } else {
  11517. r.EncodeNil()
  11518. }
  11519. } else {
  11520. if yyq2[62] {
  11521. r.WriteMapElemKey()
  11522. if z.IsJSONHandle() {
  11523. z.WriteStr("\"Ui64slicearray\"")
  11524. } else {
  11525. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  11526. }
  11527. r.WriteMapElemValue()
  11528. if x.Ui64slicearray == nil {
  11529. r.EncodeNil()
  11530. } else {
  11531. if false {
  11532. } else {
  11533. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  11534. }
  11535. }
  11536. }
  11537. }
  11538. if yyr2 || yy2arr2 {
  11539. r.WriteArrayElem()
  11540. if yyq2[63] {
  11541. if x.SintfAarray == nil {
  11542. r.EncodeNil()
  11543. } else {
  11544. if false {
  11545. } else {
  11546. z.F.EncSliceIntfV(x.SintfAarray, e)
  11547. }
  11548. }
  11549. } else {
  11550. r.EncodeNil()
  11551. }
  11552. } else {
  11553. if yyq2[63] {
  11554. r.WriteMapElemKey()
  11555. if z.IsJSONHandle() {
  11556. z.WriteStr("\"SintfAarray\"")
  11557. } else {
  11558. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  11559. }
  11560. r.WriteMapElemValue()
  11561. if x.SintfAarray == nil {
  11562. r.EncodeNil()
  11563. } else {
  11564. if false {
  11565. } else {
  11566. z.F.EncSliceIntfV(x.SintfAarray, e)
  11567. }
  11568. }
  11569. }
  11570. }
  11571. var yyn207 bool
  11572. if x.AnonInTestStrucIntf == nil {
  11573. yyn207 = true
  11574. goto LABEL207
  11575. }
  11576. LABEL207:
  11577. if yyr2 || yy2arr2 {
  11578. if yyn207 {
  11579. r.WriteArrayElem()
  11580. r.EncodeNil()
  11581. } else {
  11582. r.WriteArrayElem()
  11583. if yyq2[64] {
  11584. if x.Islice == nil {
  11585. r.EncodeNil()
  11586. } else {
  11587. if false {
  11588. } else {
  11589. z.F.EncSliceIntfV(x.Islice, e)
  11590. }
  11591. }
  11592. } else {
  11593. r.EncodeNil()
  11594. }
  11595. }
  11596. } else {
  11597. if yyq2[64] {
  11598. r.WriteMapElemKey()
  11599. if z.IsJSONHandle() {
  11600. z.WriteStr("\"Islice\"")
  11601. } else {
  11602. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  11603. }
  11604. r.WriteMapElemValue()
  11605. if yyn207 {
  11606. r.EncodeNil()
  11607. } else {
  11608. if x.Islice == nil {
  11609. r.EncodeNil()
  11610. } else {
  11611. if false {
  11612. } else {
  11613. z.F.EncSliceIntfV(x.Islice, e)
  11614. }
  11615. }
  11616. }
  11617. }
  11618. }
  11619. var yyn210 bool
  11620. if x.AnonInTestStrucIntf == nil {
  11621. yyn210 = true
  11622. goto LABEL210
  11623. }
  11624. LABEL210:
  11625. if yyr2 || yy2arr2 {
  11626. if yyn210 {
  11627. r.WriteArrayElem()
  11628. r.EncodeNil()
  11629. } else {
  11630. r.WriteArrayElem()
  11631. if yyq2[65] {
  11632. if x.Ms == nil {
  11633. r.EncodeNil()
  11634. } else {
  11635. if false {
  11636. } else {
  11637. z.F.EncMapStringIntfV(x.Ms, e)
  11638. }
  11639. }
  11640. } else {
  11641. r.EncodeNil()
  11642. }
  11643. }
  11644. } else {
  11645. if yyq2[65] {
  11646. r.WriteMapElemKey()
  11647. if z.IsJSONHandle() {
  11648. z.WriteStr("\"Ms\"")
  11649. } else {
  11650. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  11651. }
  11652. r.WriteMapElemValue()
  11653. if yyn210 {
  11654. r.EncodeNil()
  11655. } else {
  11656. if x.Ms == nil {
  11657. r.EncodeNil()
  11658. } else {
  11659. if false {
  11660. } else {
  11661. z.F.EncMapStringIntfV(x.Ms, e)
  11662. }
  11663. }
  11664. }
  11665. }
  11666. }
  11667. var yyn213 bool
  11668. if x.AnonInTestStrucIntf == nil {
  11669. yyn213 = true
  11670. goto LABEL213
  11671. }
  11672. LABEL213:
  11673. if yyr2 || yy2arr2 {
  11674. if yyn213 {
  11675. r.WriteArrayElem()
  11676. r.EncodeNil()
  11677. } else {
  11678. r.WriteArrayElem()
  11679. if yyq2[66] {
  11680. if x.Nintf == nil {
  11681. r.EncodeNil()
  11682. } else {
  11683. if false {
  11684. } else {
  11685. z.EncFallback(x.Nintf)
  11686. }
  11687. }
  11688. } else {
  11689. r.EncodeNil()
  11690. }
  11691. }
  11692. } else {
  11693. if yyq2[66] {
  11694. r.WriteMapElemKey()
  11695. if z.IsJSONHandle() {
  11696. z.WriteStr("\"Nintf\"")
  11697. } else {
  11698. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  11699. }
  11700. r.WriteMapElemValue()
  11701. if yyn213 {
  11702. r.EncodeNil()
  11703. } else {
  11704. if x.Nintf == nil {
  11705. r.EncodeNil()
  11706. } else {
  11707. if false {
  11708. } else {
  11709. z.EncFallback(x.Nintf)
  11710. }
  11711. }
  11712. }
  11713. }
  11714. }
  11715. var yyn216 bool
  11716. if x.AnonInTestStrucIntf == nil {
  11717. yyn216 = true
  11718. goto LABEL216
  11719. }
  11720. LABEL216:
  11721. if yyr2 || yy2arr2 {
  11722. if yyn216 {
  11723. r.WriteArrayElem()
  11724. r.EncodeNil()
  11725. } else {
  11726. r.WriteArrayElem()
  11727. if yyq2[67] {
  11728. if false {
  11729. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11730. r.EncodeTime(x.T)
  11731. } else if yyxt217 := z.Extension(z.I2Rtid(x.T)); yyxt217 != nil {
  11732. z.EncExtension(x.T, yyxt217)
  11733. } else if z.EncBinary() {
  11734. z.EncBinaryMarshal(x.T)
  11735. } else if !z.EncBinary() && z.IsJSONHandle() {
  11736. z.EncJSONMarshal(x.T)
  11737. } else {
  11738. z.EncFallback(x.T)
  11739. }
  11740. } else {
  11741. r.EncodeNil()
  11742. }
  11743. }
  11744. } else {
  11745. if yyq2[67] {
  11746. r.WriteMapElemKey()
  11747. if z.IsJSONHandle() {
  11748. z.WriteStr("\"T\"")
  11749. } else {
  11750. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  11751. }
  11752. r.WriteMapElemValue()
  11753. if yyn216 {
  11754. r.EncodeNil()
  11755. } else {
  11756. if false {
  11757. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11758. r.EncodeTime(x.T)
  11759. } else if yyxt218 := z.Extension(z.I2Rtid(x.T)); yyxt218 != nil {
  11760. z.EncExtension(x.T, yyxt218)
  11761. } else if z.EncBinary() {
  11762. z.EncBinaryMarshal(x.T)
  11763. } else if !z.EncBinary() && z.IsJSONHandle() {
  11764. z.EncJSONMarshal(x.T)
  11765. } else {
  11766. z.EncFallback(x.T)
  11767. }
  11768. }
  11769. }
  11770. }
  11771. var yyn219 bool
  11772. if x.AnonInTestStrucIntf == nil {
  11773. yyn219 = true
  11774. goto LABEL219
  11775. }
  11776. if x.AnonInTestStrucIntf.Tptr == nil {
  11777. yyn219 = true
  11778. goto LABEL219
  11779. }
  11780. LABEL219:
  11781. if yyr2 || yy2arr2 {
  11782. if yyn219 {
  11783. r.WriteArrayElem()
  11784. r.EncodeNil()
  11785. } else {
  11786. r.WriteArrayElem()
  11787. if yyq2[68] {
  11788. if x.Tptr == nil {
  11789. r.EncodeNil()
  11790. } else {
  11791. yy220 := *x.Tptr
  11792. if false {
  11793. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11794. r.EncodeTime(yy220)
  11795. } else if yyxt221 := z.Extension(z.I2Rtid(yy220)); yyxt221 != nil {
  11796. z.EncExtension(yy220, yyxt221)
  11797. } else if z.EncBinary() {
  11798. z.EncBinaryMarshal(yy220)
  11799. } else if !z.EncBinary() && z.IsJSONHandle() {
  11800. z.EncJSONMarshal(yy220)
  11801. } else {
  11802. z.EncFallback(yy220)
  11803. }
  11804. }
  11805. } else {
  11806. r.EncodeNil()
  11807. }
  11808. }
  11809. } else {
  11810. if yyq2[68] {
  11811. r.WriteMapElemKey()
  11812. if z.IsJSONHandle() {
  11813. z.WriteStr("\"Tptr\"")
  11814. } else {
  11815. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  11816. }
  11817. r.WriteMapElemValue()
  11818. if yyn219 {
  11819. r.EncodeNil()
  11820. } else {
  11821. if x.Tptr == nil {
  11822. r.EncodeNil()
  11823. } else {
  11824. yy222 := *x.Tptr
  11825. if false {
  11826. } else if !z.EncBasicHandle().TimeNotBuiltin {
  11827. r.EncodeTime(yy222)
  11828. } else if yyxt223 := z.Extension(z.I2Rtid(yy222)); yyxt223 != nil {
  11829. z.EncExtension(yy222, yyxt223)
  11830. } else if z.EncBinary() {
  11831. z.EncBinaryMarshal(yy222)
  11832. } else if !z.EncBinary() && z.IsJSONHandle() {
  11833. z.EncJSONMarshal(yy222)
  11834. } else {
  11835. z.EncFallback(yy222)
  11836. }
  11837. }
  11838. }
  11839. }
  11840. }
  11841. if yyr2 || yy2arr2 {
  11842. r.WriteArrayElem()
  11843. if yyq2[69] {
  11844. if x.Mtsptr == nil {
  11845. r.EncodeNil()
  11846. } else {
  11847. if false {
  11848. } else {
  11849. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  11850. }
  11851. }
  11852. } else {
  11853. r.EncodeNil()
  11854. }
  11855. } else {
  11856. if yyq2[69] {
  11857. r.WriteMapElemKey()
  11858. if z.IsJSONHandle() {
  11859. z.WriteStr("\"Mtsptr\"")
  11860. } else {
  11861. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  11862. }
  11863. r.WriteMapElemValue()
  11864. if x.Mtsptr == nil {
  11865. r.EncodeNil()
  11866. } else {
  11867. if false {
  11868. } else {
  11869. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  11870. }
  11871. }
  11872. }
  11873. }
  11874. if yyr2 || yy2arr2 {
  11875. r.WriteArrayElem()
  11876. if yyq2[70] {
  11877. if x.Mts == nil {
  11878. r.EncodeNil()
  11879. } else {
  11880. if false {
  11881. } else {
  11882. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  11883. }
  11884. }
  11885. } else {
  11886. r.EncodeNil()
  11887. }
  11888. } else {
  11889. if yyq2[70] {
  11890. r.WriteMapElemKey()
  11891. if z.IsJSONHandle() {
  11892. z.WriteStr("\"Mts\"")
  11893. } else {
  11894. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  11895. }
  11896. r.WriteMapElemValue()
  11897. if x.Mts == nil {
  11898. r.EncodeNil()
  11899. } else {
  11900. if false {
  11901. } else {
  11902. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  11903. }
  11904. }
  11905. }
  11906. }
  11907. if yyr2 || yy2arr2 {
  11908. r.WriteArrayElem()
  11909. if yyq2[71] {
  11910. if x.Its == nil {
  11911. r.EncodeNil()
  11912. } else {
  11913. if false {
  11914. } else {
  11915. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  11916. }
  11917. }
  11918. } else {
  11919. r.EncodeNil()
  11920. }
  11921. } else {
  11922. if yyq2[71] {
  11923. r.WriteMapElemKey()
  11924. if z.IsJSONHandle() {
  11925. z.WriteStr("\"Its\"")
  11926. } else {
  11927. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  11928. }
  11929. r.WriteMapElemValue()
  11930. if x.Its == nil {
  11931. r.EncodeNil()
  11932. } else {
  11933. if false {
  11934. } else {
  11935. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  11936. }
  11937. }
  11938. }
  11939. }
  11940. var yyn233 bool
  11941. if x.Nteststruc == nil {
  11942. yyn233 = true
  11943. goto LABEL233
  11944. }
  11945. LABEL233:
  11946. if yyr2 || yy2arr2 {
  11947. if yyn233 {
  11948. r.WriteArrayElem()
  11949. r.EncodeNil()
  11950. } else {
  11951. r.WriteArrayElem()
  11952. if yyq2[72] {
  11953. if x.Nteststruc == nil {
  11954. r.EncodeNil()
  11955. } else {
  11956. x.Nteststruc.CodecEncodeSelf(e)
  11957. }
  11958. } else {
  11959. r.EncodeNil()
  11960. }
  11961. }
  11962. } else {
  11963. if yyq2[72] {
  11964. r.WriteMapElemKey()
  11965. if z.IsJSONHandle() {
  11966. z.WriteStr("\"Nteststruc\"")
  11967. } else {
  11968. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  11969. }
  11970. r.WriteMapElemValue()
  11971. if yyn233 {
  11972. r.EncodeNil()
  11973. } else {
  11974. if x.Nteststruc == nil {
  11975. r.EncodeNil()
  11976. } else {
  11977. x.Nteststruc.CodecEncodeSelf(e)
  11978. }
  11979. }
  11980. }
  11981. }
  11982. if yyr2 || yy2arr2 {
  11983. r.WriteArrayEnd()
  11984. } else {
  11985. r.WriteMapEnd()
  11986. }
  11987. }
  11988. }
  11989. }
  11990. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  11991. var h codecSelfer19780
  11992. z, r := GenHelperDecoder(d)
  11993. _, _, _ = h, z, r
  11994. if false {
  11995. } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
  11996. z.DecExtension(x, yyxt1)
  11997. } else {
  11998. yyct2 := r.ContainerType()
  11999. if yyct2 == codecSelferValueTypeMap19780 {
  12000. yyl2 := r.ReadMapStart()
  12001. if yyl2 == 0 {
  12002. r.ReadMapEnd()
  12003. } else {
  12004. x.codecDecodeSelfFromMap(yyl2, d)
  12005. }
  12006. } else if yyct2 == codecSelferValueTypeArray19780 {
  12007. yyl2 := r.ReadArrayStart()
  12008. if yyl2 == 0 {
  12009. r.ReadArrayEnd()
  12010. } else {
  12011. x.codecDecodeSelfFromArray(yyl2, d)
  12012. }
  12013. } else {
  12014. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  12015. }
  12016. }
  12017. }
  12018. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  12019. var h codecSelfer19780
  12020. z, r := GenHelperDecoder(d)
  12021. _, _, _ = h, z, r
  12022. var yyhl3 bool = l >= 0
  12023. for yyj3 := 0; ; yyj3++ {
  12024. if yyhl3 {
  12025. if yyj3 >= l {
  12026. break
  12027. }
  12028. } else {
  12029. if r.CheckBreak() {
  12030. break
  12031. }
  12032. }
  12033. r.ReadMapElemKey()
  12034. yys3 := z.StringView(r.DecodeStringAsBytes())
  12035. r.ReadMapElemValue()
  12036. switch yys3 {
  12037. case "S":
  12038. if r.TryDecodeAsNil() {
  12039. x.TestStrucCommon.S = ""
  12040. } else {
  12041. x.S = (string)(r.DecodeString())
  12042. }
  12043. case "I64":
  12044. if r.TryDecodeAsNil() {
  12045. x.TestStrucCommon.I64 = 0
  12046. } else {
  12047. x.I64 = (int64)(r.DecodeInt64())
  12048. }
  12049. case "I32":
  12050. if r.TryDecodeAsNil() {
  12051. x.TestStrucCommon.I32 = 0
  12052. } else {
  12053. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12054. }
  12055. case "I16":
  12056. if r.TryDecodeAsNil() {
  12057. x.TestStrucCommon.I16 = 0
  12058. } else {
  12059. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12060. }
  12061. case "I8":
  12062. if r.TryDecodeAsNil() {
  12063. x.TestStrucCommon.I8 = 0
  12064. } else {
  12065. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12066. }
  12067. case "I64n":
  12068. if r.TryDecodeAsNil() {
  12069. x.TestStrucCommon.I64n = 0
  12070. } else {
  12071. x.I64n = (int64)(r.DecodeInt64())
  12072. }
  12073. case "I32n":
  12074. if r.TryDecodeAsNil() {
  12075. x.TestStrucCommon.I32n = 0
  12076. } else {
  12077. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12078. }
  12079. case "I16n":
  12080. if r.TryDecodeAsNil() {
  12081. x.TestStrucCommon.I16n = 0
  12082. } else {
  12083. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12084. }
  12085. case "I8n":
  12086. if r.TryDecodeAsNil() {
  12087. x.TestStrucCommon.I8n = 0
  12088. } else {
  12089. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12090. }
  12091. case "Ui64":
  12092. if r.TryDecodeAsNil() {
  12093. x.TestStrucCommon.Ui64 = 0
  12094. } else {
  12095. x.Ui64 = (uint64)(r.DecodeUint64())
  12096. }
  12097. case "Ui32":
  12098. if r.TryDecodeAsNil() {
  12099. x.TestStrucCommon.Ui32 = 0
  12100. } else {
  12101. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12102. }
  12103. case "Ui16":
  12104. if r.TryDecodeAsNil() {
  12105. x.TestStrucCommon.Ui16 = 0
  12106. } else {
  12107. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12108. }
  12109. case "Ui8":
  12110. if r.TryDecodeAsNil() {
  12111. x.TestStrucCommon.Ui8 = 0
  12112. } else {
  12113. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12114. }
  12115. case "F64":
  12116. if r.TryDecodeAsNil() {
  12117. x.TestStrucCommon.F64 = 0
  12118. } else {
  12119. x.F64 = (float64)(r.DecodeFloat64())
  12120. }
  12121. case "F32":
  12122. if r.TryDecodeAsNil() {
  12123. x.TestStrucCommon.F32 = 0
  12124. } else {
  12125. x.F32 = (float32)(r.DecodeFloat32As64())
  12126. }
  12127. case "B":
  12128. if r.TryDecodeAsNil() {
  12129. x.TestStrucCommon.B = false
  12130. } else {
  12131. x.B = (bool)(r.DecodeBool())
  12132. }
  12133. case "By":
  12134. if r.TryDecodeAsNil() {
  12135. x.TestStrucCommon.By = 0
  12136. } else {
  12137. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12138. }
  12139. case "Sslice":
  12140. if r.TryDecodeAsNil() {
  12141. x.TestStrucCommon.Sslice = nil
  12142. } else {
  12143. if false {
  12144. } else {
  12145. z.F.DecSliceStringX(&x.Sslice, d)
  12146. }
  12147. }
  12148. case "I64slice":
  12149. if r.TryDecodeAsNil() {
  12150. x.TestStrucCommon.I64slice = nil
  12151. } else {
  12152. if false {
  12153. } else {
  12154. z.F.DecSliceInt64X(&x.I64slice, d)
  12155. }
  12156. }
  12157. case "I16slice":
  12158. if r.TryDecodeAsNil() {
  12159. x.TestStrucCommon.I16slice = nil
  12160. } else {
  12161. if false {
  12162. } else {
  12163. z.F.DecSliceInt16X(&x.I16slice, d)
  12164. }
  12165. }
  12166. case "Ui64slice":
  12167. if r.TryDecodeAsNil() {
  12168. x.TestStrucCommon.Ui64slice = nil
  12169. } else {
  12170. if false {
  12171. } else {
  12172. z.F.DecSliceUint64X(&x.Ui64slice, d)
  12173. }
  12174. }
  12175. case "Ui8slice":
  12176. if r.TryDecodeAsNil() {
  12177. x.TestStrucCommon.Ui8slice = nil
  12178. } else {
  12179. if false {
  12180. } else {
  12181. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  12182. }
  12183. }
  12184. case "Bslice":
  12185. if r.TryDecodeAsNil() {
  12186. x.TestStrucCommon.Bslice = nil
  12187. } else {
  12188. if false {
  12189. } else {
  12190. z.F.DecSliceBoolX(&x.Bslice, d)
  12191. }
  12192. }
  12193. case "Byslice":
  12194. if r.TryDecodeAsNil() {
  12195. x.TestStrucCommon.Byslice = nil
  12196. } else {
  12197. if false {
  12198. } else {
  12199. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  12200. }
  12201. }
  12202. case "Iptrslice":
  12203. if r.TryDecodeAsNil() {
  12204. x.TestStrucCommon.Iptrslice = nil
  12205. } else {
  12206. if false {
  12207. } else {
  12208. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  12209. }
  12210. }
  12211. case "WrapSliceInt64":
  12212. if r.TryDecodeAsNil() {
  12213. x.TestStrucCommon.WrapSliceInt64 = nil
  12214. } else {
  12215. x.WrapSliceInt64.CodecDecodeSelf(d)
  12216. }
  12217. case "WrapSliceString":
  12218. if r.TryDecodeAsNil() {
  12219. x.TestStrucCommon.WrapSliceString = nil
  12220. } else {
  12221. x.WrapSliceString.CodecDecodeSelf(d)
  12222. }
  12223. case "Msi64":
  12224. if r.TryDecodeAsNil() {
  12225. x.TestStrucCommon.Msi64 = nil
  12226. } else {
  12227. if false {
  12228. } else {
  12229. z.F.DecMapStringInt64X(&x.Msi64, d)
  12230. }
  12231. }
  12232. case "Simplef":
  12233. if r.TryDecodeAsNil() {
  12234. x.TestStrucCommon.Simplef = testSimpleFields{}
  12235. } else {
  12236. x.Simplef.CodecDecodeSelf(d)
  12237. }
  12238. case "SstrUi64T":
  12239. if r.TryDecodeAsNil() {
  12240. x.TestStrucCommon.SstrUi64T = nil
  12241. } else {
  12242. if false {
  12243. } else {
  12244. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  12245. }
  12246. }
  12247. case "AS":
  12248. if r.TryDecodeAsNil() {
  12249. x.TestStrucCommon.AnonInTestStruc.AS = ""
  12250. } else {
  12251. x.AS = (string)(r.DecodeString())
  12252. }
  12253. case "AI64":
  12254. if r.TryDecodeAsNil() {
  12255. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  12256. } else {
  12257. x.AI64 = (int64)(r.DecodeInt64())
  12258. }
  12259. case "AI16":
  12260. if r.TryDecodeAsNil() {
  12261. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  12262. } else {
  12263. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12264. }
  12265. case "AUi64":
  12266. if r.TryDecodeAsNil() {
  12267. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  12268. } else {
  12269. x.AUi64 = (uint64)(r.DecodeUint64())
  12270. }
  12271. case "ASslice":
  12272. if r.TryDecodeAsNil() {
  12273. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  12274. } else {
  12275. if false {
  12276. } else {
  12277. z.F.DecSliceStringX(&x.ASslice, d)
  12278. }
  12279. }
  12280. case "AI64slice":
  12281. if r.TryDecodeAsNil() {
  12282. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  12283. } else {
  12284. if false {
  12285. } else {
  12286. z.F.DecSliceInt64X(&x.AI64slice, d)
  12287. }
  12288. }
  12289. case "AUi64slice":
  12290. if r.TryDecodeAsNil() {
  12291. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  12292. } else {
  12293. if false {
  12294. } else {
  12295. z.F.DecSliceUint64X(&x.AUi64slice, d)
  12296. }
  12297. }
  12298. case "AF64slice":
  12299. if r.TryDecodeAsNil() {
  12300. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  12301. } else {
  12302. if false {
  12303. } else {
  12304. z.F.DecSliceFloat64X(&x.AF64slice, d)
  12305. }
  12306. }
  12307. case "AF32slice":
  12308. if r.TryDecodeAsNil() {
  12309. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  12310. } else {
  12311. if false {
  12312. } else {
  12313. z.F.DecSliceFloat32X(&x.AF32slice, d)
  12314. }
  12315. }
  12316. case "AMSU16":
  12317. if r.TryDecodeAsNil() {
  12318. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  12319. } else {
  12320. if false {
  12321. } else {
  12322. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  12323. }
  12324. }
  12325. case "AI64arr0":
  12326. if r.TryDecodeAsNil() {
  12327. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  12328. } else {
  12329. if false {
  12330. } else {
  12331. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  12332. }
  12333. }
  12334. case "A164slice0":
  12335. if r.TryDecodeAsNil() {
  12336. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  12337. } else {
  12338. if false {
  12339. } else {
  12340. z.F.DecSliceInt64X(&x.A164slice0, d)
  12341. }
  12342. }
  12343. case "AUi64sliceN":
  12344. if r.TryDecodeAsNil() {
  12345. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  12346. } else {
  12347. if false {
  12348. } else {
  12349. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  12350. }
  12351. }
  12352. case "AMSU16N":
  12353. if r.TryDecodeAsNil() {
  12354. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  12355. } else {
  12356. if false {
  12357. } else {
  12358. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  12359. }
  12360. }
  12361. case "AMSU16E":
  12362. if r.TryDecodeAsNil() {
  12363. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  12364. } else {
  12365. if false {
  12366. } else {
  12367. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  12368. }
  12369. }
  12370. case "NotAnon":
  12371. if r.TryDecodeAsNil() {
  12372. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  12373. } else {
  12374. x.NotAnon.CodecDecodeSelf(d)
  12375. }
  12376. case "Nmap":
  12377. if r.TryDecodeAsNil() {
  12378. x.TestStrucCommon.Nmap = nil
  12379. } else {
  12380. if false {
  12381. } else {
  12382. z.F.DecMapStringBoolX(&x.Nmap, d)
  12383. }
  12384. }
  12385. case "Nslice":
  12386. if r.TryDecodeAsNil() {
  12387. x.TestStrucCommon.Nslice = nil
  12388. } else {
  12389. if false {
  12390. } else {
  12391. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  12392. }
  12393. }
  12394. case "Nint64":
  12395. if r.TryDecodeAsNil() {
  12396. if true && x.TestStrucCommon.Nint64 != nil {
  12397. x.TestStrucCommon.Nint64 = nil
  12398. }
  12399. } else {
  12400. if x.TestStrucCommon.Nint64 == nil {
  12401. x.TestStrucCommon.Nint64 = new(int64)
  12402. }
  12403. if false {
  12404. } else {
  12405. *x.Nint64 = (int64)(r.DecodeInt64())
  12406. }
  12407. }
  12408. case "Chstr":
  12409. if r.TryDecodeAsNil() {
  12410. x.Chstr = nil
  12411. } else {
  12412. if false {
  12413. } else {
  12414. h.decChanstring((*chan string)(&x.Chstr), d)
  12415. }
  12416. }
  12417. case "Mis":
  12418. if r.TryDecodeAsNil() {
  12419. x.Mis = nil
  12420. } else {
  12421. if false {
  12422. } else {
  12423. z.F.DecMapIntStringX(&x.Mis, d)
  12424. }
  12425. }
  12426. case "Mbu64":
  12427. if r.TryDecodeAsNil() {
  12428. x.Mbu64 = nil
  12429. } else {
  12430. if false {
  12431. } else {
  12432. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  12433. }
  12434. }
  12435. case "Miwu64s":
  12436. if r.TryDecodeAsNil() {
  12437. x.Miwu64s = nil
  12438. } else {
  12439. if false {
  12440. } else {
  12441. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  12442. }
  12443. }
  12444. case "Mfwss":
  12445. if r.TryDecodeAsNil() {
  12446. x.Mfwss = nil
  12447. } else {
  12448. if false {
  12449. } else {
  12450. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  12451. }
  12452. }
  12453. case "Mf32wss":
  12454. if r.TryDecodeAsNil() {
  12455. x.Mf32wss = nil
  12456. } else {
  12457. if false {
  12458. } else {
  12459. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  12460. }
  12461. }
  12462. case "Mui2wss":
  12463. if r.TryDecodeAsNil() {
  12464. x.Mui2wss = nil
  12465. } else {
  12466. if false {
  12467. } else {
  12468. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  12469. }
  12470. }
  12471. case "Msu2wss":
  12472. if r.TryDecodeAsNil() {
  12473. x.Msu2wss = nil
  12474. } else {
  12475. if false {
  12476. } else {
  12477. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  12478. }
  12479. }
  12480. case "Ci64":
  12481. if r.TryDecodeAsNil() {
  12482. x.Ci64 = 0
  12483. } else {
  12484. x.Ci64.CodecDecodeSelf(d)
  12485. }
  12486. case "Swrapbytes":
  12487. if r.TryDecodeAsNil() {
  12488. x.Swrapbytes = nil
  12489. } else {
  12490. if false {
  12491. } else {
  12492. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  12493. }
  12494. }
  12495. case "Swrapuint8":
  12496. if r.TryDecodeAsNil() {
  12497. x.Swrapuint8 = nil
  12498. } else {
  12499. if false {
  12500. } else {
  12501. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  12502. }
  12503. }
  12504. case "ArrStrUi64T":
  12505. if r.TryDecodeAsNil() {
  12506. x.ArrStrUi64T = [4]stringUint64T{}
  12507. } else {
  12508. if false {
  12509. } else {
  12510. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  12511. }
  12512. }
  12513. case "Ui64array":
  12514. if r.TryDecodeAsNil() {
  12515. x.Ui64array = [4]uint64{}
  12516. } else {
  12517. if false {
  12518. } else {
  12519. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  12520. }
  12521. }
  12522. case "Ui64slicearray":
  12523. if r.TryDecodeAsNil() {
  12524. x.Ui64slicearray = nil
  12525. } else {
  12526. if false {
  12527. } else {
  12528. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  12529. }
  12530. }
  12531. case "SintfAarray":
  12532. if r.TryDecodeAsNil() {
  12533. x.SintfAarray = nil
  12534. } else {
  12535. if false {
  12536. } else {
  12537. z.F.DecSliceIntfX(&x.SintfAarray, d)
  12538. }
  12539. }
  12540. case "Islice":
  12541. if r.TryDecodeAsNil() {
  12542. if true && x.AnonInTestStrucIntf != nil {
  12543. x.AnonInTestStrucIntf.Islice = nil
  12544. }
  12545. } else {
  12546. if x.AnonInTestStrucIntf == nil {
  12547. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12548. }
  12549. if false {
  12550. } else {
  12551. z.F.DecSliceIntfX(&x.Islice, d)
  12552. }
  12553. }
  12554. case "Ms":
  12555. if r.TryDecodeAsNil() {
  12556. if true && x.AnonInTestStrucIntf != nil {
  12557. x.AnonInTestStrucIntf.Ms = nil
  12558. }
  12559. } else {
  12560. if x.AnonInTestStrucIntf == nil {
  12561. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12562. }
  12563. if false {
  12564. } else {
  12565. z.F.DecMapStringIntfX(&x.Ms, d)
  12566. }
  12567. }
  12568. case "Nintf":
  12569. if r.TryDecodeAsNil() {
  12570. if true && x.AnonInTestStrucIntf != nil {
  12571. x.AnonInTestStrucIntf.Nintf = nil
  12572. }
  12573. } else {
  12574. if x.AnonInTestStrucIntf == nil {
  12575. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12576. }
  12577. if false {
  12578. } else {
  12579. z.DecFallback(&x.Nintf, true)
  12580. }
  12581. }
  12582. case "T":
  12583. if r.TryDecodeAsNil() {
  12584. if true && x.AnonInTestStrucIntf != nil {
  12585. x.AnonInTestStrucIntf.T = time.Time{}
  12586. }
  12587. } else {
  12588. if x.AnonInTestStrucIntf == nil {
  12589. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12590. }
  12591. if false {
  12592. } else if !z.DecBasicHandle().TimeNotBuiltin {
  12593. x.T = r.DecodeTime()
  12594. } else if yyxt113 := z.Extension(z.I2Rtid(x.T)); yyxt113 != nil {
  12595. z.DecExtension(x.T, yyxt113)
  12596. } else if z.DecBinary() {
  12597. z.DecBinaryUnmarshal(&x.T)
  12598. } else if !z.DecBinary() && z.IsJSONHandle() {
  12599. z.DecJSONUnmarshal(&x.T)
  12600. } else {
  12601. z.DecFallback(&x.T, false)
  12602. }
  12603. }
  12604. case "Tptr":
  12605. if r.TryDecodeAsNil() {
  12606. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  12607. x.AnonInTestStrucIntf.Tptr = nil
  12608. }
  12609. } else {
  12610. if x.AnonInTestStrucIntf == nil {
  12611. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  12612. }
  12613. if x.AnonInTestStrucIntf.Tptr == nil {
  12614. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  12615. }
  12616. if false {
  12617. } else if !z.DecBasicHandle().TimeNotBuiltin {
  12618. *x.Tptr = r.DecodeTime()
  12619. } else if yyxt115 := z.Extension(z.I2Rtid(x.Tptr)); yyxt115 != nil {
  12620. z.DecExtension(x.Tptr, yyxt115)
  12621. } else if z.DecBinary() {
  12622. z.DecBinaryUnmarshal(x.Tptr)
  12623. } else if !z.DecBinary() && z.IsJSONHandle() {
  12624. z.DecJSONUnmarshal(x.Tptr)
  12625. } else {
  12626. z.DecFallback(x.Tptr, false)
  12627. }
  12628. }
  12629. case "Mtsptr":
  12630. if r.TryDecodeAsNil() {
  12631. x.Mtsptr = nil
  12632. } else {
  12633. if false {
  12634. } else {
  12635. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  12636. }
  12637. }
  12638. case "Mts":
  12639. if r.TryDecodeAsNil() {
  12640. x.Mts = nil
  12641. } else {
  12642. if false {
  12643. } else {
  12644. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  12645. }
  12646. }
  12647. case "Its":
  12648. if r.TryDecodeAsNil() {
  12649. x.Its = nil
  12650. } else {
  12651. if false {
  12652. } else {
  12653. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  12654. }
  12655. }
  12656. case "Nteststruc":
  12657. if r.TryDecodeAsNil() {
  12658. if true && x.Nteststruc != nil {
  12659. x.Nteststruc = nil
  12660. }
  12661. } else {
  12662. if x.Nteststruc == nil {
  12663. x.Nteststruc = new(TestStrucFlex)
  12664. }
  12665. x.Nteststruc.CodecDecodeSelf(d)
  12666. }
  12667. default:
  12668. z.DecStructFieldNotFound(-1, yys3)
  12669. } // end switch yys3
  12670. } // end for yyj3
  12671. r.ReadMapEnd()
  12672. }
  12673. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  12674. var h codecSelfer19780
  12675. z, r := GenHelperDecoder(d)
  12676. _, _, _ = h, z, r
  12677. var yyj123 int
  12678. var yyb123 bool
  12679. var yyhl123 bool = l >= 0
  12680. yyj123++
  12681. if yyhl123 {
  12682. yyb123 = yyj123 > l
  12683. } else {
  12684. yyb123 = r.CheckBreak()
  12685. }
  12686. if yyb123 {
  12687. r.ReadArrayEnd()
  12688. return
  12689. }
  12690. r.ReadArrayElem()
  12691. if r.TryDecodeAsNil() {
  12692. x.TestStrucCommon.S = ""
  12693. } else {
  12694. x.S = (string)(r.DecodeString())
  12695. }
  12696. yyj123++
  12697. if yyhl123 {
  12698. yyb123 = yyj123 > l
  12699. } else {
  12700. yyb123 = r.CheckBreak()
  12701. }
  12702. if yyb123 {
  12703. r.ReadArrayEnd()
  12704. return
  12705. }
  12706. r.ReadArrayElem()
  12707. if r.TryDecodeAsNil() {
  12708. x.TestStrucCommon.I64 = 0
  12709. } else {
  12710. x.I64 = (int64)(r.DecodeInt64())
  12711. }
  12712. yyj123++
  12713. if yyhl123 {
  12714. yyb123 = yyj123 > l
  12715. } else {
  12716. yyb123 = r.CheckBreak()
  12717. }
  12718. if yyb123 {
  12719. r.ReadArrayEnd()
  12720. return
  12721. }
  12722. r.ReadArrayElem()
  12723. if r.TryDecodeAsNil() {
  12724. x.TestStrucCommon.I32 = 0
  12725. } else {
  12726. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12727. }
  12728. yyj123++
  12729. if yyhl123 {
  12730. yyb123 = yyj123 > l
  12731. } else {
  12732. yyb123 = r.CheckBreak()
  12733. }
  12734. if yyb123 {
  12735. r.ReadArrayEnd()
  12736. return
  12737. }
  12738. r.ReadArrayElem()
  12739. if r.TryDecodeAsNil() {
  12740. x.TestStrucCommon.I16 = 0
  12741. } else {
  12742. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12743. }
  12744. yyj123++
  12745. if yyhl123 {
  12746. yyb123 = yyj123 > l
  12747. } else {
  12748. yyb123 = r.CheckBreak()
  12749. }
  12750. if yyb123 {
  12751. r.ReadArrayEnd()
  12752. return
  12753. }
  12754. r.ReadArrayElem()
  12755. if r.TryDecodeAsNil() {
  12756. x.TestStrucCommon.I8 = 0
  12757. } else {
  12758. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12759. }
  12760. yyj123++
  12761. if yyhl123 {
  12762. yyb123 = yyj123 > l
  12763. } else {
  12764. yyb123 = r.CheckBreak()
  12765. }
  12766. if yyb123 {
  12767. r.ReadArrayEnd()
  12768. return
  12769. }
  12770. r.ReadArrayElem()
  12771. if r.TryDecodeAsNil() {
  12772. x.TestStrucCommon.I64n = 0
  12773. } else {
  12774. x.I64n = (int64)(r.DecodeInt64())
  12775. }
  12776. yyj123++
  12777. if yyhl123 {
  12778. yyb123 = yyj123 > l
  12779. } else {
  12780. yyb123 = r.CheckBreak()
  12781. }
  12782. if yyb123 {
  12783. r.ReadArrayEnd()
  12784. return
  12785. }
  12786. r.ReadArrayElem()
  12787. if r.TryDecodeAsNil() {
  12788. x.TestStrucCommon.I32n = 0
  12789. } else {
  12790. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  12791. }
  12792. yyj123++
  12793. if yyhl123 {
  12794. yyb123 = yyj123 > l
  12795. } else {
  12796. yyb123 = r.CheckBreak()
  12797. }
  12798. if yyb123 {
  12799. r.ReadArrayEnd()
  12800. return
  12801. }
  12802. r.ReadArrayElem()
  12803. if r.TryDecodeAsNil() {
  12804. x.TestStrucCommon.I16n = 0
  12805. } else {
  12806. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  12807. }
  12808. yyj123++
  12809. if yyhl123 {
  12810. yyb123 = yyj123 > l
  12811. } else {
  12812. yyb123 = r.CheckBreak()
  12813. }
  12814. if yyb123 {
  12815. r.ReadArrayEnd()
  12816. return
  12817. }
  12818. r.ReadArrayElem()
  12819. if r.TryDecodeAsNil() {
  12820. x.TestStrucCommon.I8n = 0
  12821. } else {
  12822. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  12823. }
  12824. yyj123++
  12825. if yyhl123 {
  12826. yyb123 = yyj123 > l
  12827. } else {
  12828. yyb123 = r.CheckBreak()
  12829. }
  12830. if yyb123 {
  12831. r.ReadArrayEnd()
  12832. return
  12833. }
  12834. r.ReadArrayElem()
  12835. if r.TryDecodeAsNil() {
  12836. x.TestStrucCommon.Ui64 = 0
  12837. } else {
  12838. x.Ui64 = (uint64)(r.DecodeUint64())
  12839. }
  12840. yyj123++
  12841. if yyhl123 {
  12842. yyb123 = yyj123 > l
  12843. } else {
  12844. yyb123 = r.CheckBreak()
  12845. }
  12846. if yyb123 {
  12847. r.ReadArrayEnd()
  12848. return
  12849. }
  12850. r.ReadArrayElem()
  12851. if r.TryDecodeAsNil() {
  12852. x.TestStrucCommon.Ui32 = 0
  12853. } else {
  12854. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  12855. }
  12856. yyj123++
  12857. if yyhl123 {
  12858. yyb123 = yyj123 > l
  12859. } else {
  12860. yyb123 = r.CheckBreak()
  12861. }
  12862. if yyb123 {
  12863. r.ReadArrayEnd()
  12864. return
  12865. }
  12866. r.ReadArrayElem()
  12867. if r.TryDecodeAsNil() {
  12868. x.TestStrucCommon.Ui16 = 0
  12869. } else {
  12870. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12871. }
  12872. yyj123++
  12873. if yyhl123 {
  12874. yyb123 = yyj123 > l
  12875. } else {
  12876. yyb123 = r.CheckBreak()
  12877. }
  12878. if yyb123 {
  12879. r.ReadArrayEnd()
  12880. return
  12881. }
  12882. r.ReadArrayElem()
  12883. if r.TryDecodeAsNil() {
  12884. x.TestStrucCommon.Ui8 = 0
  12885. } else {
  12886. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12887. }
  12888. yyj123++
  12889. if yyhl123 {
  12890. yyb123 = yyj123 > l
  12891. } else {
  12892. yyb123 = r.CheckBreak()
  12893. }
  12894. if yyb123 {
  12895. r.ReadArrayEnd()
  12896. return
  12897. }
  12898. r.ReadArrayElem()
  12899. if r.TryDecodeAsNil() {
  12900. x.TestStrucCommon.F64 = 0
  12901. } else {
  12902. x.F64 = (float64)(r.DecodeFloat64())
  12903. }
  12904. yyj123++
  12905. if yyhl123 {
  12906. yyb123 = yyj123 > l
  12907. } else {
  12908. yyb123 = r.CheckBreak()
  12909. }
  12910. if yyb123 {
  12911. r.ReadArrayEnd()
  12912. return
  12913. }
  12914. r.ReadArrayElem()
  12915. if r.TryDecodeAsNil() {
  12916. x.TestStrucCommon.F32 = 0
  12917. } else {
  12918. x.F32 = (float32)(r.DecodeFloat32As64())
  12919. }
  12920. yyj123++
  12921. if yyhl123 {
  12922. yyb123 = yyj123 > l
  12923. } else {
  12924. yyb123 = r.CheckBreak()
  12925. }
  12926. if yyb123 {
  12927. r.ReadArrayEnd()
  12928. return
  12929. }
  12930. r.ReadArrayElem()
  12931. if r.TryDecodeAsNil() {
  12932. x.TestStrucCommon.B = false
  12933. } else {
  12934. x.B = (bool)(r.DecodeBool())
  12935. }
  12936. yyj123++
  12937. if yyhl123 {
  12938. yyb123 = yyj123 > l
  12939. } else {
  12940. yyb123 = r.CheckBreak()
  12941. }
  12942. if yyb123 {
  12943. r.ReadArrayEnd()
  12944. return
  12945. }
  12946. r.ReadArrayElem()
  12947. if r.TryDecodeAsNil() {
  12948. x.TestStrucCommon.By = 0
  12949. } else {
  12950. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  12951. }
  12952. yyj123++
  12953. if yyhl123 {
  12954. yyb123 = yyj123 > l
  12955. } else {
  12956. yyb123 = r.CheckBreak()
  12957. }
  12958. if yyb123 {
  12959. r.ReadArrayEnd()
  12960. return
  12961. }
  12962. r.ReadArrayElem()
  12963. if r.TryDecodeAsNil() {
  12964. x.TestStrucCommon.Sslice = nil
  12965. } else {
  12966. if false {
  12967. } else {
  12968. z.F.DecSliceStringX(&x.Sslice, d)
  12969. }
  12970. }
  12971. yyj123++
  12972. if yyhl123 {
  12973. yyb123 = yyj123 > l
  12974. } else {
  12975. yyb123 = r.CheckBreak()
  12976. }
  12977. if yyb123 {
  12978. r.ReadArrayEnd()
  12979. return
  12980. }
  12981. r.ReadArrayElem()
  12982. if r.TryDecodeAsNil() {
  12983. x.TestStrucCommon.I64slice = nil
  12984. } else {
  12985. if false {
  12986. } else {
  12987. z.F.DecSliceInt64X(&x.I64slice, d)
  12988. }
  12989. }
  12990. yyj123++
  12991. if yyhl123 {
  12992. yyb123 = yyj123 > l
  12993. } else {
  12994. yyb123 = r.CheckBreak()
  12995. }
  12996. if yyb123 {
  12997. r.ReadArrayEnd()
  12998. return
  12999. }
  13000. r.ReadArrayElem()
  13001. if r.TryDecodeAsNil() {
  13002. x.TestStrucCommon.I16slice = nil
  13003. } else {
  13004. if false {
  13005. } else {
  13006. z.F.DecSliceInt16X(&x.I16slice, d)
  13007. }
  13008. }
  13009. yyj123++
  13010. if yyhl123 {
  13011. yyb123 = yyj123 > l
  13012. } else {
  13013. yyb123 = r.CheckBreak()
  13014. }
  13015. if yyb123 {
  13016. r.ReadArrayEnd()
  13017. return
  13018. }
  13019. r.ReadArrayElem()
  13020. if r.TryDecodeAsNil() {
  13021. x.TestStrucCommon.Ui64slice = nil
  13022. } else {
  13023. if false {
  13024. } else {
  13025. z.F.DecSliceUint64X(&x.Ui64slice, d)
  13026. }
  13027. }
  13028. yyj123++
  13029. if yyhl123 {
  13030. yyb123 = yyj123 > l
  13031. } else {
  13032. yyb123 = r.CheckBreak()
  13033. }
  13034. if yyb123 {
  13035. r.ReadArrayEnd()
  13036. return
  13037. }
  13038. r.ReadArrayElem()
  13039. if r.TryDecodeAsNil() {
  13040. x.TestStrucCommon.Ui8slice = nil
  13041. } else {
  13042. if false {
  13043. } else {
  13044. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  13045. }
  13046. }
  13047. yyj123++
  13048. if yyhl123 {
  13049. yyb123 = yyj123 > l
  13050. } else {
  13051. yyb123 = r.CheckBreak()
  13052. }
  13053. if yyb123 {
  13054. r.ReadArrayEnd()
  13055. return
  13056. }
  13057. r.ReadArrayElem()
  13058. if r.TryDecodeAsNil() {
  13059. x.TestStrucCommon.Bslice = nil
  13060. } else {
  13061. if false {
  13062. } else {
  13063. z.F.DecSliceBoolX(&x.Bslice, d)
  13064. }
  13065. }
  13066. yyj123++
  13067. if yyhl123 {
  13068. yyb123 = yyj123 > l
  13069. } else {
  13070. yyb123 = r.CheckBreak()
  13071. }
  13072. if yyb123 {
  13073. r.ReadArrayEnd()
  13074. return
  13075. }
  13076. r.ReadArrayElem()
  13077. if r.TryDecodeAsNil() {
  13078. x.TestStrucCommon.Byslice = nil
  13079. } else {
  13080. if false {
  13081. } else {
  13082. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  13083. }
  13084. }
  13085. yyj123++
  13086. if yyhl123 {
  13087. yyb123 = yyj123 > l
  13088. } else {
  13089. yyb123 = r.CheckBreak()
  13090. }
  13091. if yyb123 {
  13092. r.ReadArrayEnd()
  13093. return
  13094. }
  13095. r.ReadArrayElem()
  13096. if r.TryDecodeAsNil() {
  13097. x.TestStrucCommon.Iptrslice = nil
  13098. } else {
  13099. if false {
  13100. } else {
  13101. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  13102. }
  13103. }
  13104. yyj123++
  13105. if yyhl123 {
  13106. yyb123 = yyj123 > l
  13107. } else {
  13108. yyb123 = r.CheckBreak()
  13109. }
  13110. if yyb123 {
  13111. r.ReadArrayEnd()
  13112. return
  13113. }
  13114. r.ReadArrayElem()
  13115. if r.TryDecodeAsNil() {
  13116. x.TestStrucCommon.WrapSliceInt64 = nil
  13117. } else {
  13118. x.WrapSliceInt64.CodecDecodeSelf(d)
  13119. }
  13120. yyj123++
  13121. if yyhl123 {
  13122. yyb123 = yyj123 > l
  13123. } else {
  13124. yyb123 = r.CheckBreak()
  13125. }
  13126. if yyb123 {
  13127. r.ReadArrayEnd()
  13128. return
  13129. }
  13130. r.ReadArrayElem()
  13131. if r.TryDecodeAsNil() {
  13132. x.TestStrucCommon.WrapSliceString = nil
  13133. } else {
  13134. x.WrapSliceString.CodecDecodeSelf(d)
  13135. }
  13136. yyj123++
  13137. if yyhl123 {
  13138. yyb123 = yyj123 > l
  13139. } else {
  13140. yyb123 = r.CheckBreak()
  13141. }
  13142. if yyb123 {
  13143. r.ReadArrayEnd()
  13144. return
  13145. }
  13146. r.ReadArrayElem()
  13147. if r.TryDecodeAsNil() {
  13148. x.TestStrucCommon.Msi64 = nil
  13149. } else {
  13150. if false {
  13151. } else {
  13152. z.F.DecMapStringInt64X(&x.Msi64, d)
  13153. }
  13154. }
  13155. yyj123++
  13156. if yyhl123 {
  13157. yyb123 = yyj123 > l
  13158. } else {
  13159. yyb123 = r.CheckBreak()
  13160. }
  13161. if yyb123 {
  13162. r.ReadArrayEnd()
  13163. return
  13164. }
  13165. r.ReadArrayElem()
  13166. if r.TryDecodeAsNil() {
  13167. x.TestStrucCommon.Simplef = testSimpleFields{}
  13168. } else {
  13169. x.Simplef.CodecDecodeSelf(d)
  13170. }
  13171. yyj123++
  13172. if yyhl123 {
  13173. yyb123 = yyj123 > l
  13174. } else {
  13175. yyb123 = r.CheckBreak()
  13176. }
  13177. if yyb123 {
  13178. r.ReadArrayEnd()
  13179. return
  13180. }
  13181. r.ReadArrayElem()
  13182. if r.TryDecodeAsNil() {
  13183. x.TestStrucCommon.SstrUi64T = nil
  13184. } else {
  13185. if false {
  13186. } else {
  13187. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  13188. }
  13189. }
  13190. yyj123++
  13191. if yyhl123 {
  13192. yyb123 = yyj123 > l
  13193. } else {
  13194. yyb123 = r.CheckBreak()
  13195. }
  13196. if yyb123 {
  13197. r.ReadArrayEnd()
  13198. return
  13199. }
  13200. r.ReadArrayElem()
  13201. if r.TryDecodeAsNil() {
  13202. x.TestStrucCommon.AnonInTestStruc.AS = ""
  13203. } else {
  13204. x.AS = (string)(r.DecodeString())
  13205. }
  13206. yyj123++
  13207. if yyhl123 {
  13208. yyb123 = yyj123 > l
  13209. } else {
  13210. yyb123 = r.CheckBreak()
  13211. }
  13212. if yyb123 {
  13213. r.ReadArrayEnd()
  13214. return
  13215. }
  13216. r.ReadArrayElem()
  13217. if r.TryDecodeAsNil() {
  13218. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  13219. } else {
  13220. x.AI64 = (int64)(r.DecodeInt64())
  13221. }
  13222. yyj123++
  13223. if yyhl123 {
  13224. yyb123 = yyj123 > l
  13225. } else {
  13226. yyb123 = r.CheckBreak()
  13227. }
  13228. if yyb123 {
  13229. r.ReadArrayEnd()
  13230. return
  13231. }
  13232. r.ReadArrayElem()
  13233. if r.TryDecodeAsNil() {
  13234. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  13235. } else {
  13236. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  13237. }
  13238. yyj123++
  13239. if yyhl123 {
  13240. yyb123 = yyj123 > l
  13241. } else {
  13242. yyb123 = r.CheckBreak()
  13243. }
  13244. if yyb123 {
  13245. r.ReadArrayEnd()
  13246. return
  13247. }
  13248. r.ReadArrayElem()
  13249. if r.TryDecodeAsNil() {
  13250. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  13251. } else {
  13252. x.AUi64 = (uint64)(r.DecodeUint64())
  13253. }
  13254. yyj123++
  13255. if yyhl123 {
  13256. yyb123 = yyj123 > l
  13257. } else {
  13258. yyb123 = r.CheckBreak()
  13259. }
  13260. if yyb123 {
  13261. r.ReadArrayEnd()
  13262. return
  13263. }
  13264. r.ReadArrayElem()
  13265. if r.TryDecodeAsNil() {
  13266. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  13267. } else {
  13268. if false {
  13269. } else {
  13270. z.F.DecSliceStringX(&x.ASslice, d)
  13271. }
  13272. }
  13273. yyj123++
  13274. if yyhl123 {
  13275. yyb123 = yyj123 > l
  13276. } else {
  13277. yyb123 = r.CheckBreak()
  13278. }
  13279. if yyb123 {
  13280. r.ReadArrayEnd()
  13281. return
  13282. }
  13283. r.ReadArrayElem()
  13284. if r.TryDecodeAsNil() {
  13285. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  13286. } else {
  13287. if false {
  13288. } else {
  13289. z.F.DecSliceInt64X(&x.AI64slice, d)
  13290. }
  13291. }
  13292. yyj123++
  13293. if yyhl123 {
  13294. yyb123 = yyj123 > l
  13295. } else {
  13296. yyb123 = r.CheckBreak()
  13297. }
  13298. if yyb123 {
  13299. r.ReadArrayEnd()
  13300. return
  13301. }
  13302. r.ReadArrayElem()
  13303. if r.TryDecodeAsNil() {
  13304. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  13305. } else {
  13306. if false {
  13307. } else {
  13308. z.F.DecSliceUint64X(&x.AUi64slice, d)
  13309. }
  13310. }
  13311. yyj123++
  13312. if yyhl123 {
  13313. yyb123 = yyj123 > l
  13314. } else {
  13315. yyb123 = r.CheckBreak()
  13316. }
  13317. if yyb123 {
  13318. r.ReadArrayEnd()
  13319. return
  13320. }
  13321. r.ReadArrayElem()
  13322. if r.TryDecodeAsNil() {
  13323. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  13324. } else {
  13325. if false {
  13326. } else {
  13327. z.F.DecSliceFloat64X(&x.AF64slice, d)
  13328. }
  13329. }
  13330. yyj123++
  13331. if yyhl123 {
  13332. yyb123 = yyj123 > l
  13333. } else {
  13334. yyb123 = r.CheckBreak()
  13335. }
  13336. if yyb123 {
  13337. r.ReadArrayEnd()
  13338. return
  13339. }
  13340. r.ReadArrayElem()
  13341. if r.TryDecodeAsNil() {
  13342. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  13343. } else {
  13344. if false {
  13345. } else {
  13346. z.F.DecSliceFloat32X(&x.AF32slice, d)
  13347. }
  13348. }
  13349. yyj123++
  13350. if yyhl123 {
  13351. yyb123 = yyj123 > l
  13352. } else {
  13353. yyb123 = r.CheckBreak()
  13354. }
  13355. if yyb123 {
  13356. r.ReadArrayEnd()
  13357. return
  13358. }
  13359. r.ReadArrayElem()
  13360. if r.TryDecodeAsNil() {
  13361. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  13362. } else {
  13363. if false {
  13364. } else {
  13365. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  13366. }
  13367. }
  13368. yyj123++
  13369. if yyhl123 {
  13370. yyb123 = yyj123 > l
  13371. } else {
  13372. yyb123 = r.CheckBreak()
  13373. }
  13374. if yyb123 {
  13375. r.ReadArrayEnd()
  13376. return
  13377. }
  13378. r.ReadArrayElem()
  13379. if r.TryDecodeAsNil() {
  13380. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  13381. } else {
  13382. if false {
  13383. } else {
  13384. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  13385. }
  13386. }
  13387. yyj123++
  13388. if yyhl123 {
  13389. yyb123 = yyj123 > l
  13390. } else {
  13391. yyb123 = r.CheckBreak()
  13392. }
  13393. if yyb123 {
  13394. r.ReadArrayEnd()
  13395. return
  13396. }
  13397. r.ReadArrayElem()
  13398. if r.TryDecodeAsNil() {
  13399. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  13400. } else {
  13401. if false {
  13402. } else {
  13403. z.F.DecSliceInt64X(&x.A164slice0, d)
  13404. }
  13405. }
  13406. yyj123++
  13407. if yyhl123 {
  13408. yyb123 = yyj123 > l
  13409. } else {
  13410. yyb123 = r.CheckBreak()
  13411. }
  13412. if yyb123 {
  13413. r.ReadArrayEnd()
  13414. return
  13415. }
  13416. r.ReadArrayElem()
  13417. if r.TryDecodeAsNil() {
  13418. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  13419. } else {
  13420. if false {
  13421. } else {
  13422. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  13423. }
  13424. }
  13425. yyj123++
  13426. if yyhl123 {
  13427. yyb123 = yyj123 > l
  13428. } else {
  13429. yyb123 = r.CheckBreak()
  13430. }
  13431. if yyb123 {
  13432. r.ReadArrayEnd()
  13433. return
  13434. }
  13435. r.ReadArrayElem()
  13436. if r.TryDecodeAsNil() {
  13437. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  13438. } else {
  13439. if false {
  13440. } else {
  13441. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  13442. }
  13443. }
  13444. yyj123++
  13445. if yyhl123 {
  13446. yyb123 = yyj123 > l
  13447. } else {
  13448. yyb123 = r.CheckBreak()
  13449. }
  13450. if yyb123 {
  13451. r.ReadArrayEnd()
  13452. return
  13453. }
  13454. r.ReadArrayElem()
  13455. if r.TryDecodeAsNil() {
  13456. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  13457. } else {
  13458. if false {
  13459. } else {
  13460. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  13461. }
  13462. }
  13463. yyj123++
  13464. if yyhl123 {
  13465. yyb123 = yyj123 > l
  13466. } else {
  13467. yyb123 = r.CheckBreak()
  13468. }
  13469. if yyb123 {
  13470. r.ReadArrayEnd()
  13471. return
  13472. }
  13473. r.ReadArrayElem()
  13474. if r.TryDecodeAsNil() {
  13475. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  13476. } else {
  13477. x.NotAnon.CodecDecodeSelf(d)
  13478. }
  13479. yyj123++
  13480. if yyhl123 {
  13481. yyb123 = yyj123 > l
  13482. } else {
  13483. yyb123 = r.CheckBreak()
  13484. }
  13485. if yyb123 {
  13486. r.ReadArrayEnd()
  13487. return
  13488. }
  13489. r.ReadArrayElem()
  13490. if r.TryDecodeAsNil() {
  13491. x.TestStrucCommon.Nmap = nil
  13492. } else {
  13493. if false {
  13494. } else {
  13495. z.F.DecMapStringBoolX(&x.Nmap, d)
  13496. }
  13497. }
  13498. yyj123++
  13499. if yyhl123 {
  13500. yyb123 = yyj123 > l
  13501. } else {
  13502. yyb123 = r.CheckBreak()
  13503. }
  13504. if yyb123 {
  13505. r.ReadArrayEnd()
  13506. return
  13507. }
  13508. r.ReadArrayElem()
  13509. if r.TryDecodeAsNil() {
  13510. x.TestStrucCommon.Nslice = nil
  13511. } else {
  13512. if false {
  13513. } else {
  13514. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  13515. }
  13516. }
  13517. yyj123++
  13518. if yyhl123 {
  13519. yyb123 = yyj123 > l
  13520. } else {
  13521. yyb123 = r.CheckBreak()
  13522. }
  13523. if yyb123 {
  13524. r.ReadArrayEnd()
  13525. return
  13526. }
  13527. r.ReadArrayElem()
  13528. if r.TryDecodeAsNil() {
  13529. if true && x.TestStrucCommon.Nint64 != nil {
  13530. x.TestStrucCommon.Nint64 = nil
  13531. }
  13532. } else {
  13533. if x.TestStrucCommon.Nint64 == nil {
  13534. x.TestStrucCommon.Nint64 = new(int64)
  13535. }
  13536. if false {
  13537. } else {
  13538. *x.Nint64 = (int64)(r.DecodeInt64())
  13539. }
  13540. }
  13541. yyj123++
  13542. if yyhl123 {
  13543. yyb123 = yyj123 > l
  13544. } else {
  13545. yyb123 = r.CheckBreak()
  13546. }
  13547. if yyb123 {
  13548. r.ReadArrayEnd()
  13549. return
  13550. }
  13551. r.ReadArrayElem()
  13552. if r.TryDecodeAsNil() {
  13553. x.Chstr = nil
  13554. } else {
  13555. if false {
  13556. } else {
  13557. h.decChanstring((*chan string)(&x.Chstr), d)
  13558. }
  13559. }
  13560. yyj123++
  13561. if yyhl123 {
  13562. yyb123 = yyj123 > l
  13563. } else {
  13564. yyb123 = r.CheckBreak()
  13565. }
  13566. if yyb123 {
  13567. r.ReadArrayEnd()
  13568. return
  13569. }
  13570. r.ReadArrayElem()
  13571. if r.TryDecodeAsNil() {
  13572. x.Mis = nil
  13573. } else {
  13574. if false {
  13575. } else {
  13576. z.F.DecMapIntStringX(&x.Mis, d)
  13577. }
  13578. }
  13579. yyj123++
  13580. if yyhl123 {
  13581. yyb123 = yyj123 > l
  13582. } else {
  13583. yyb123 = r.CheckBreak()
  13584. }
  13585. if yyb123 {
  13586. r.ReadArrayEnd()
  13587. return
  13588. }
  13589. r.ReadArrayElem()
  13590. if r.TryDecodeAsNil() {
  13591. x.Mbu64 = nil
  13592. } else {
  13593. if false {
  13594. } else {
  13595. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  13596. }
  13597. }
  13598. yyj123++
  13599. if yyhl123 {
  13600. yyb123 = yyj123 > l
  13601. } else {
  13602. yyb123 = r.CheckBreak()
  13603. }
  13604. if yyb123 {
  13605. r.ReadArrayEnd()
  13606. return
  13607. }
  13608. r.ReadArrayElem()
  13609. if r.TryDecodeAsNil() {
  13610. x.Miwu64s = nil
  13611. } else {
  13612. if false {
  13613. } else {
  13614. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  13615. }
  13616. }
  13617. yyj123++
  13618. if yyhl123 {
  13619. yyb123 = yyj123 > l
  13620. } else {
  13621. yyb123 = r.CheckBreak()
  13622. }
  13623. if yyb123 {
  13624. r.ReadArrayEnd()
  13625. return
  13626. }
  13627. r.ReadArrayElem()
  13628. if r.TryDecodeAsNil() {
  13629. x.Mfwss = nil
  13630. } else {
  13631. if false {
  13632. } else {
  13633. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  13634. }
  13635. }
  13636. yyj123++
  13637. if yyhl123 {
  13638. yyb123 = yyj123 > l
  13639. } else {
  13640. yyb123 = r.CheckBreak()
  13641. }
  13642. if yyb123 {
  13643. r.ReadArrayEnd()
  13644. return
  13645. }
  13646. r.ReadArrayElem()
  13647. if r.TryDecodeAsNil() {
  13648. x.Mf32wss = nil
  13649. } else {
  13650. if false {
  13651. } else {
  13652. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  13653. }
  13654. }
  13655. yyj123++
  13656. if yyhl123 {
  13657. yyb123 = yyj123 > l
  13658. } else {
  13659. yyb123 = r.CheckBreak()
  13660. }
  13661. if yyb123 {
  13662. r.ReadArrayEnd()
  13663. return
  13664. }
  13665. r.ReadArrayElem()
  13666. if r.TryDecodeAsNil() {
  13667. x.Mui2wss = nil
  13668. } else {
  13669. if false {
  13670. } else {
  13671. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  13672. }
  13673. }
  13674. yyj123++
  13675. if yyhl123 {
  13676. yyb123 = yyj123 > l
  13677. } else {
  13678. yyb123 = r.CheckBreak()
  13679. }
  13680. if yyb123 {
  13681. r.ReadArrayEnd()
  13682. return
  13683. }
  13684. r.ReadArrayElem()
  13685. if r.TryDecodeAsNil() {
  13686. x.Msu2wss = nil
  13687. } else {
  13688. if false {
  13689. } else {
  13690. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  13691. }
  13692. }
  13693. yyj123++
  13694. if yyhl123 {
  13695. yyb123 = yyj123 > l
  13696. } else {
  13697. yyb123 = r.CheckBreak()
  13698. }
  13699. if yyb123 {
  13700. r.ReadArrayEnd()
  13701. return
  13702. }
  13703. r.ReadArrayElem()
  13704. if r.TryDecodeAsNil() {
  13705. x.Ci64 = 0
  13706. } else {
  13707. x.Ci64.CodecDecodeSelf(d)
  13708. }
  13709. yyj123++
  13710. if yyhl123 {
  13711. yyb123 = yyj123 > l
  13712. } else {
  13713. yyb123 = r.CheckBreak()
  13714. }
  13715. if yyb123 {
  13716. r.ReadArrayEnd()
  13717. return
  13718. }
  13719. r.ReadArrayElem()
  13720. if r.TryDecodeAsNil() {
  13721. x.Swrapbytes = nil
  13722. } else {
  13723. if false {
  13724. } else {
  13725. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  13726. }
  13727. }
  13728. yyj123++
  13729. if yyhl123 {
  13730. yyb123 = yyj123 > l
  13731. } else {
  13732. yyb123 = r.CheckBreak()
  13733. }
  13734. if yyb123 {
  13735. r.ReadArrayEnd()
  13736. return
  13737. }
  13738. r.ReadArrayElem()
  13739. if r.TryDecodeAsNil() {
  13740. x.Swrapuint8 = nil
  13741. } else {
  13742. if false {
  13743. } else {
  13744. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  13745. }
  13746. }
  13747. yyj123++
  13748. if yyhl123 {
  13749. yyb123 = yyj123 > l
  13750. } else {
  13751. yyb123 = r.CheckBreak()
  13752. }
  13753. if yyb123 {
  13754. r.ReadArrayEnd()
  13755. return
  13756. }
  13757. r.ReadArrayElem()
  13758. if r.TryDecodeAsNil() {
  13759. x.ArrStrUi64T = [4]stringUint64T{}
  13760. } else {
  13761. if false {
  13762. } else {
  13763. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  13764. }
  13765. }
  13766. yyj123++
  13767. if yyhl123 {
  13768. yyb123 = yyj123 > l
  13769. } else {
  13770. yyb123 = r.CheckBreak()
  13771. }
  13772. if yyb123 {
  13773. r.ReadArrayEnd()
  13774. return
  13775. }
  13776. r.ReadArrayElem()
  13777. if r.TryDecodeAsNil() {
  13778. x.Ui64array = [4]uint64{}
  13779. } else {
  13780. if false {
  13781. } else {
  13782. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  13783. }
  13784. }
  13785. yyj123++
  13786. if yyhl123 {
  13787. yyb123 = yyj123 > l
  13788. } else {
  13789. yyb123 = r.CheckBreak()
  13790. }
  13791. if yyb123 {
  13792. r.ReadArrayEnd()
  13793. return
  13794. }
  13795. r.ReadArrayElem()
  13796. if r.TryDecodeAsNil() {
  13797. x.Ui64slicearray = nil
  13798. } else {
  13799. if false {
  13800. } else {
  13801. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  13802. }
  13803. }
  13804. yyj123++
  13805. if yyhl123 {
  13806. yyb123 = yyj123 > l
  13807. } else {
  13808. yyb123 = r.CheckBreak()
  13809. }
  13810. if yyb123 {
  13811. r.ReadArrayEnd()
  13812. return
  13813. }
  13814. r.ReadArrayElem()
  13815. if r.TryDecodeAsNil() {
  13816. x.SintfAarray = nil
  13817. } else {
  13818. if false {
  13819. } else {
  13820. z.F.DecSliceIntfX(&x.SintfAarray, d)
  13821. }
  13822. }
  13823. yyj123++
  13824. if yyhl123 {
  13825. yyb123 = yyj123 > l
  13826. } else {
  13827. yyb123 = r.CheckBreak()
  13828. }
  13829. if yyb123 {
  13830. r.ReadArrayEnd()
  13831. return
  13832. }
  13833. r.ReadArrayElem()
  13834. if r.TryDecodeAsNil() {
  13835. if true && x.AnonInTestStrucIntf != nil {
  13836. x.AnonInTestStrucIntf.Islice = nil
  13837. }
  13838. } else {
  13839. if x.AnonInTestStrucIntf == nil {
  13840. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13841. }
  13842. if false {
  13843. } else {
  13844. z.F.DecSliceIntfX(&x.Islice, d)
  13845. }
  13846. }
  13847. yyj123++
  13848. if yyhl123 {
  13849. yyb123 = yyj123 > l
  13850. } else {
  13851. yyb123 = r.CheckBreak()
  13852. }
  13853. if yyb123 {
  13854. r.ReadArrayEnd()
  13855. return
  13856. }
  13857. r.ReadArrayElem()
  13858. if r.TryDecodeAsNil() {
  13859. if true && x.AnonInTestStrucIntf != nil {
  13860. x.AnonInTestStrucIntf.Ms = nil
  13861. }
  13862. } else {
  13863. if x.AnonInTestStrucIntf == nil {
  13864. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13865. }
  13866. if false {
  13867. } else {
  13868. z.F.DecMapStringIntfX(&x.Ms, d)
  13869. }
  13870. }
  13871. yyj123++
  13872. if yyhl123 {
  13873. yyb123 = yyj123 > l
  13874. } else {
  13875. yyb123 = r.CheckBreak()
  13876. }
  13877. if yyb123 {
  13878. r.ReadArrayEnd()
  13879. return
  13880. }
  13881. r.ReadArrayElem()
  13882. if r.TryDecodeAsNil() {
  13883. if true && x.AnonInTestStrucIntf != nil {
  13884. x.AnonInTestStrucIntf.Nintf = nil
  13885. }
  13886. } else {
  13887. if x.AnonInTestStrucIntf == nil {
  13888. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13889. }
  13890. if false {
  13891. } else {
  13892. z.DecFallback(&x.Nintf, true)
  13893. }
  13894. }
  13895. yyj123++
  13896. if yyhl123 {
  13897. yyb123 = yyj123 > l
  13898. } else {
  13899. yyb123 = r.CheckBreak()
  13900. }
  13901. if yyb123 {
  13902. r.ReadArrayEnd()
  13903. return
  13904. }
  13905. r.ReadArrayElem()
  13906. if r.TryDecodeAsNil() {
  13907. if true && x.AnonInTestStrucIntf != nil {
  13908. x.AnonInTestStrucIntf.T = time.Time{}
  13909. }
  13910. } else {
  13911. if x.AnonInTestStrucIntf == nil {
  13912. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13913. }
  13914. if false {
  13915. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13916. x.T = r.DecodeTime()
  13917. } else if yyxt233 := z.Extension(z.I2Rtid(x.T)); yyxt233 != nil {
  13918. z.DecExtension(x.T, yyxt233)
  13919. } else if z.DecBinary() {
  13920. z.DecBinaryUnmarshal(&x.T)
  13921. } else if !z.DecBinary() && z.IsJSONHandle() {
  13922. z.DecJSONUnmarshal(&x.T)
  13923. } else {
  13924. z.DecFallback(&x.T, false)
  13925. }
  13926. }
  13927. yyj123++
  13928. if yyhl123 {
  13929. yyb123 = yyj123 > l
  13930. } else {
  13931. yyb123 = r.CheckBreak()
  13932. }
  13933. if yyb123 {
  13934. r.ReadArrayEnd()
  13935. return
  13936. }
  13937. r.ReadArrayElem()
  13938. if r.TryDecodeAsNil() {
  13939. if true && x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil {
  13940. x.AnonInTestStrucIntf.Tptr = nil
  13941. }
  13942. } else {
  13943. if x.AnonInTestStrucIntf == nil {
  13944. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  13945. }
  13946. if x.AnonInTestStrucIntf.Tptr == nil {
  13947. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  13948. }
  13949. if false {
  13950. } else if !z.DecBasicHandle().TimeNotBuiltin {
  13951. *x.Tptr = r.DecodeTime()
  13952. } else if yyxt235 := z.Extension(z.I2Rtid(x.Tptr)); yyxt235 != nil {
  13953. z.DecExtension(x.Tptr, yyxt235)
  13954. } else if z.DecBinary() {
  13955. z.DecBinaryUnmarshal(x.Tptr)
  13956. } else if !z.DecBinary() && z.IsJSONHandle() {
  13957. z.DecJSONUnmarshal(x.Tptr)
  13958. } else {
  13959. z.DecFallback(x.Tptr, false)
  13960. }
  13961. }
  13962. yyj123++
  13963. if yyhl123 {
  13964. yyb123 = yyj123 > l
  13965. } else {
  13966. yyb123 = r.CheckBreak()
  13967. }
  13968. if yyb123 {
  13969. r.ReadArrayEnd()
  13970. return
  13971. }
  13972. r.ReadArrayElem()
  13973. if r.TryDecodeAsNil() {
  13974. x.Mtsptr = nil
  13975. } else {
  13976. if false {
  13977. } else {
  13978. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  13979. }
  13980. }
  13981. yyj123++
  13982. if yyhl123 {
  13983. yyb123 = yyj123 > l
  13984. } else {
  13985. yyb123 = r.CheckBreak()
  13986. }
  13987. if yyb123 {
  13988. r.ReadArrayEnd()
  13989. return
  13990. }
  13991. r.ReadArrayElem()
  13992. if r.TryDecodeAsNil() {
  13993. x.Mts = nil
  13994. } else {
  13995. if false {
  13996. } else {
  13997. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  13998. }
  13999. }
  14000. yyj123++
  14001. if yyhl123 {
  14002. yyb123 = yyj123 > l
  14003. } else {
  14004. yyb123 = r.CheckBreak()
  14005. }
  14006. if yyb123 {
  14007. r.ReadArrayEnd()
  14008. return
  14009. }
  14010. r.ReadArrayElem()
  14011. if r.TryDecodeAsNil() {
  14012. x.Its = nil
  14013. } else {
  14014. if false {
  14015. } else {
  14016. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  14017. }
  14018. }
  14019. yyj123++
  14020. if yyhl123 {
  14021. yyb123 = yyj123 > l
  14022. } else {
  14023. yyb123 = r.CheckBreak()
  14024. }
  14025. if yyb123 {
  14026. r.ReadArrayEnd()
  14027. return
  14028. }
  14029. r.ReadArrayElem()
  14030. if r.TryDecodeAsNil() {
  14031. if true && x.Nteststruc != nil {
  14032. x.Nteststruc = nil
  14033. }
  14034. } else {
  14035. if x.Nteststruc == nil {
  14036. x.Nteststruc = new(TestStrucFlex)
  14037. }
  14038. x.Nteststruc.CodecDecodeSelf(d)
  14039. }
  14040. for {
  14041. yyj123++
  14042. if yyhl123 {
  14043. yyb123 = yyj123 > l
  14044. } else {
  14045. yyb123 = r.CheckBreak()
  14046. }
  14047. if yyb123 {
  14048. break
  14049. }
  14050. r.ReadArrayElem()
  14051. z.DecStructFieldNotFound(yyj123-1, "")
  14052. }
  14053. r.ReadArrayEnd()
  14054. }
  14055. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  14056. var h codecSelfer19780
  14057. z, r := GenHelperEncoder(e)
  14058. _, _, _ = h, z, r
  14059. r.WriteArrayStart(len(v))
  14060. for _, yyv1 := range v {
  14061. r.WriteArrayElem()
  14062. if false {
  14063. } else {
  14064. r.EncodeUint(uint64(yyv1))
  14065. }
  14066. }
  14067. r.WriteArrayEnd()
  14068. }
  14069. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  14070. var h codecSelfer19780
  14071. z, r := GenHelperDecoder(d)
  14072. _, _, _ = h, z, r
  14073. yyv1 := *v
  14074. yyh1, yyl1 := z.DecSliceHelperStart()
  14075. var yyc1 bool
  14076. _ = yyc1
  14077. if yyl1 == 0 {
  14078. if yyv1 == nil {
  14079. yyv1 = []uint64{}
  14080. yyc1 = true
  14081. } else if len(yyv1) != 0 {
  14082. yyv1 = yyv1[:0]
  14083. yyc1 = true
  14084. }
  14085. } else {
  14086. yyhl1 := yyl1 > 0
  14087. var yyrl1 int
  14088. _ = yyrl1
  14089. if yyhl1 {
  14090. if yyl1 > cap(yyv1) {
  14091. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14092. if yyrl1 <= cap(yyv1) {
  14093. yyv1 = yyv1[:yyrl1]
  14094. } else {
  14095. yyv1 = make([]uint64, yyrl1)
  14096. }
  14097. yyc1 = true
  14098. } else if yyl1 != len(yyv1) {
  14099. yyv1 = yyv1[:yyl1]
  14100. yyc1 = true
  14101. }
  14102. }
  14103. var yyj1 int
  14104. // var yydn1 bool
  14105. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14106. if yyj1 == 0 && yyv1 == nil {
  14107. if yyhl1 {
  14108. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14109. } else {
  14110. yyrl1 = 8
  14111. }
  14112. yyv1 = make([]uint64, yyrl1)
  14113. yyc1 = true
  14114. }
  14115. yyh1.ElemContainerState(yyj1)
  14116. var yydb1 bool
  14117. if yyj1 >= len(yyv1) {
  14118. yyv1 = append(yyv1, 0)
  14119. yyc1 = true
  14120. }
  14121. if yydb1 {
  14122. z.DecSwallow()
  14123. } else {
  14124. if r.TryDecodeAsNil() {
  14125. yyv1[yyj1] = 0
  14126. } else {
  14127. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  14128. }
  14129. }
  14130. }
  14131. if yyj1 < len(yyv1) {
  14132. yyv1 = yyv1[:yyj1]
  14133. yyc1 = true
  14134. } else if yyj1 == 0 && yyv1 == nil {
  14135. yyv1 = make([]uint64, 0)
  14136. yyc1 = true
  14137. }
  14138. }
  14139. yyh1.End()
  14140. if yyc1 {
  14141. *v = yyv1
  14142. }
  14143. }
  14144. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  14145. var h codecSelfer19780
  14146. z, r := GenHelperEncoder(e)
  14147. _, _, _ = h, z, r
  14148. r.WriteArrayStart(len(v))
  14149. for _, yyv1 := range v {
  14150. r.WriteArrayElem()
  14151. if false {
  14152. } else {
  14153. if z.EncBasicHandle().StringToRaw {
  14154. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14155. } else {
  14156. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14157. }
  14158. }
  14159. }
  14160. r.WriteArrayEnd()
  14161. }
  14162. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  14163. var h codecSelfer19780
  14164. z, r := GenHelperDecoder(d)
  14165. _, _, _ = h, z, r
  14166. yyv1 := *v
  14167. yyh1, yyl1 := z.DecSliceHelperStart()
  14168. var yyc1 bool
  14169. _ = yyc1
  14170. if yyl1 == 0 {
  14171. if yyv1 == nil {
  14172. yyv1 = []string{}
  14173. yyc1 = true
  14174. } else if len(yyv1) != 0 {
  14175. yyv1 = yyv1[:0]
  14176. yyc1 = true
  14177. }
  14178. } else {
  14179. yyhl1 := yyl1 > 0
  14180. var yyrl1 int
  14181. _ = yyrl1
  14182. if yyhl1 {
  14183. if yyl1 > cap(yyv1) {
  14184. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14185. if yyrl1 <= cap(yyv1) {
  14186. yyv1 = yyv1[:yyrl1]
  14187. } else {
  14188. yyv1 = make([]string, yyrl1)
  14189. }
  14190. yyc1 = true
  14191. } else if yyl1 != len(yyv1) {
  14192. yyv1 = yyv1[:yyl1]
  14193. yyc1 = true
  14194. }
  14195. }
  14196. var yyj1 int
  14197. // var yydn1 bool
  14198. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14199. if yyj1 == 0 && yyv1 == nil {
  14200. if yyhl1 {
  14201. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14202. } else {
  14203. yyrl1 = 8
  14204. }
  14205. yyv1 = make([]string, yyrl1)
  14206. yyc1 = true
  14207. }
  14208. yyh1.ElemContainerState(yyj1)
  14209. var yydb1 bool
  14210. if yyj1 >= len(yyv1) {
  14211. yyv1 = append(yyv1, "")
  14212. yyc1 = true
  14213. }
  14214. if yydb1 {
  14215. z.DecSwallow()
  14216. } else {
  14217. if r.TryDecodeAsNil() {
  14218. yyv1[yyj1] = ""
  14219. } else {
  14220. yyv1[yyj1] = (string)(r.DecodeString())
  14221. }
  14222. }
  14223. }
  14224. if yyj1 < len(yyv1) {
  14225. yyv1 = yyv1[:yyj1]
  14226. yyc1 = true
  14227. } else if yyj1 == 0 && yyv1 == nil {
  14228. yyv1 = make([]string, 0)
  14229. yyc1 = true
  14230. }
  14231. }
  14232. yyh1.End()
  14233. if yyc1 {
  14234. *v = yyv1
  14235. }
  14236. }
  14237. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  14238. var h codecSelfer19780
  14239. z, r := GenHelperEncoder(e)
  14240. _, _, _ = h, z, r
  14241. r.WriteArrayStart(len(v))
  14242. for _, yyv1 := range v {
  14243. r.WriteArrayElem()
  14244. yyv1.CodecEncodeSelf(e)
  14245. }
  14246. r.WriteArrayEnd()
  14247. }
  14248. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  14249. var h codecSelfer19780
  14250. z, r := GenHelperDecoder(d)
  14251. _, _, _ = h, z, r
  14252. yyv1 := *v
  14253. yyh1, yyl1 := z.DecSliceHelperStart()
  14254. var yyc1 bool
  14255. _ = yyc1
  14256. if yyl1 == 0 {
  14257. if yyv1 == nil {
  14258. yyv1 = []wrapUint64{}
  14259. yyc1 = true
  14260. } else if len(yyv1) != 0 {
  14261. yyv1 = yyv1[:0]
  14262. yyc1 = true
  14263. }
  14264. } else {
  14265. yyhl1 := yyl1 > 0
  14266. var yyrl1 int
  14267. _ = yyrl1
  14268. if yyhl1 {
  14269. if yyl1 > cap(yyv1) {
  14270. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14271. if yyrl1 <= cap(yyv1) {
  14272. yyv1 = yyv1[:yyrl1]
  14273. } else {
  14274. yyv1 = make([]wrapUint64, yyrl1)
  14275. }
  14276. yyc1 = true
  14277. } else if yyl1 != len(yyv1) {
  14278. yyv1 = yyv1[:yyl1]
  14279. yyc1 = true
  14280. }
  14281. }
  14282. var yyj1 int
  14283. // var yydn1 bool
  14284. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14285. if yyj1 == 0 && yyv1 == nil {
  14286. if yyhl1 {
  14287. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14288. } else {
  14289. yyrl1 = 8
  14290. }
  14291. yyv1 = make([]wrapUint64, yyrl1)
  14292. yyc1 = true
  14293. }
  14294. yyh1.ElemContainerState(yyj1)
  14295. var yydb1 bool
  14296. if yyj1 >= len(yyv1) {
  14297. yyv1 = append(yyv1, 0)
  14298. yyc1 = true
  14299. }
  14300. if yydb1 {
  14301. z.DecSwallow()
  14302. } else {
  14303. if r.TryDecodeAsNil() {
  14304. yyv1[yyj1] = 0
  14305. } else {
  14306. yyv1[yyj1].CodecDecodeSelf(d)
  14307. }
  14308. }
  14309. }
  14310. if yyj1 < len(yyv1) {
  14311. yyv1 = yyv1[:yyj1]
  14312. yyc1 = true
  14313. } else if yyj1 == 0 && yyv1 == nil {
  14314. yyv1 = make([]wrapUint64, 0)
  14315. yyc1 = true
  14316. }
  14317. }
  14318. yyh1.End()
  14319. if yyc1 {
  14320. *v = yyv1
  14321. }
  14322. }
  14323. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  14324. var h codecSelfer19780
  14325. z, r := GenHelperEncoder(e)
  14326. _, _, _ = h, z, r
  14327. r.WriteArrayStart(len(v))
  14328. for _, yyv1 := range v {
  14329. r.WriteArrayElem()
  14330. yyv1.CodecEncodeSelf(e)
  14331. }
  14332. r.WriteArrayEnd()
  14333. }
  14334. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  14335. var h codecSelfer19780
  14336. z, r := GenHelperDecoder(d)
  14337. _, _, _ = h, z, r
  14338. yyv1 := *v
  14339. yyh1, yyl1 := z.DecSliceHelperStart()
  14340. var yyc1 bool
  14341. _ = yyc1
  14342. if yyl1 == 0 {
  14343. if yyv1 == nil {
  14344. yyv1 = []wrapString{}
  14345. yyc1 = true
  14346. } else if len(yyv1) != 0 {
  14347. yyv1 = yyv1[:0]
  14348. yyc1 = true
  14349. }
  14350. } else {
  14351. yyhl1 := yyl1 > 0
  14352. var yyrl1 int
  14353. _ = yyrl1
  14354. if yyhl1 {
  14355. if yyl1 > cap(yyv1) {
  14356. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14357. if yyrl1 <= cap(yyv1) {
  14358. yyv1 = yyv1[:yyrl1]
  14359. } else {
  14360. yyv1 = make([]wrapString, yyrl1)
  14361. }
  14362. yyc1 = true
  14363. } else if yyl1 != len(yyv1) {
  14364. yyv1 = yyv1[:yyl1]
  14365. yyc1 = true
  14366. }
  14367. }
  14368. var yyj1 int
  14369. // var yydn1 bool
  14370. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14371. if yyj1 == 0 && yyv1 == nil {
  14372. if yyhl1 {
  14373. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  14374. } else {
  14375. yyrl1 = 8
  14376. }
  14377. yyv1 = make([]wrapString, yyrl1)
  14378. yyc1 = true
  14379. }
  14380. yyh1.ElemContainerState(yyj1)
  14381. var yydb1 bool
  14382. if yyj1 >= len(yyv1) {
  14383. yyv1 = append(yyv1, "")
  14384. yyc1 = true
  14385. }
  14386. if yydb1 {
  14387. z.DecSwallow()
  14388. } else {
  14389. if r.TryDecodeAsNil() {
  14390. yyv1[yyj1] = ""
  14391. } else {
  14392. yyv1[yyj1].CodecDecodeSelf(d)
  14393. }
  14394. }
  14395. }
  14396. if yyj1 < len(yyv1) {
  14397. yyv1 = yyv1[:yyj1]
  14398. yyc1 = true
  14399. } else if yyj1 == 0 && yyv1 == nil {
  14400. yyv1 = make([]wrapString, 0)
  14401. yyc1 = true
  14402. }
  14403. }
  14404. yyh1.End()
  14405. if yyc1 {
  14406. *v = yyv1
  14407. }
  14408. }
  14409. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  14410. var h codecSelfer19780
  14411. z, r := GenHelperEncoder(e)
  14412. _, _, _ = h, z, r
  14413. r.WriteMapStart(len(v))
  14414. for yyk1, yyv1 := range v {
  14415. r.WriteMapElemKey()
  14416. if false {
  14417. } else {
  14418. if z.EncBasicHandle().StringToRaw {
  14419. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14420. } else {
  14421. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14422. }
  14423. }
  14424. r.WriteMapElemValue()
  14425. if false {
  14426. } else {
  14427. r.EncodeUint(uint64(yyv1))
  14428. }
  14429. }
  14430. r.WriteMapEnd()
  14431. }
  14432. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  14433. var h codecSelfer19780
  14434. z, r := GenHelperDecoder(d)
  14435. _, _, _ = h, z, r
  14436. yyv1 := *v
  14437. yyl1 := r.ReadMapStart()
  14438. yybh1 := z.DecBasicHandle()
  14439. if yyv1 == nil {
  14440. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  14441. yyv1 = make(map[string]uint16, yyrl1)
  14442. *v = yyv1
  14443. }
  14444. var yymk1 string
  14445. var yymv1 uint16
  14446. var yymg1, yymdn1 bool
  14447. if yybh1.MapValueReset {
  14448. }
  14449. if yyl1 != 0 {
  14450. yyhl1 := yyl1 > 0
  14451. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14452. r.ReadMapElemKey()
  14453. if r.TryDecodeAsNil() {
  14454. yymk1 = ""
  14455. } else {
  14456. yymk1 = (string)(r.DecodeString())
  14457. }
  14458. if yymg1 {
  14459. yymv1 = yyv1[yymk1]
  14460. }
  14461. r.ReadMapElemValue()
  14462. yymdn1 = false
  14463. if r.TryDecodeAsNil() {
  14464. yymdn1 = true
  14465. } else {
  14466. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  14467. }
  14468. if yymdn1 {
  14469. if yybh1.DeleteOnNilMapValue {
  14470. delete(yyv1, yymk1)
  14471. } else {
  14472. yyv1[yymk1] = 0
  14473. }
  14474. } else if yyv1 != nil {
  14475. yyv1[yymk1] = yymv1
  14476. }
  14477. }
  14478. } // else len==0: TODO: Should we clear map entries?
  14479. r.ReadMapEnd()
  14480. }
  14481. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  14482. var h codecSelfer19780
  14483. z, r := GenHelperEncoder(e)
  14484. _, _, _ = h, z, r
  14485. r.WriteArrayStart(len(v))
  14486. for _, yyv1 := range v {
  14487. r.WriteArrayElem()
  14488. if false {
  14489. } else {
  14490. r.EncodeInt(int64(yyv1))
  14491. }
  14492. }
  14493. r.WriteArrayEnd()
  14494. }
  14495. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  14496. var h codecSelfer19780
  14497. z, r := GenHelperDecoder(d)
  14498. _, _, _ = h, z, r
  14499. yyv1 := v
  14500. yyh1, yyl1 := z.DecSliceHelperStart()
  14501. if yyl1 == 0 {
  14502. } else {
  14503. yyhl1 := yyl1 > 0
  14504. var yyrl1 int
  14505. _ = yyrl1
  14506. var yyj1 int
  14507. // var yydn1 bool
  14508. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14509. yyh1.ElemContainerState(yyj1)
  14510. var yydb1 bool
  14511. if yyj1 >= len(yyv1) {
  14512. z.DecArrayCannotExpand(len(v), yyj1+1)
  14513. yydb1 = true
  14514. }
  14515. if yydb1 {
  14516. z.DecSwallow()
  14517. } else {
  14518. if r.TryDecodeAsNil() {
  14519. yyv1[yyj1] = 0
  14520. } else {
  14521. yyv1[yyj1] = (int64)(r.DecodeInt64())
  14522. }
  14523. }
  14524. }
  14525. }
  14526. yyh1.End()
  14527. }
  14528. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  14529. var h codecSelfer19780
  14530. z, r := GenHelperEncoder(e)
  14531. _, _, _ = h, z, r
  14532. r.WriteArrayStart(len(v))
  14533. for _, yyv1 := range v {
  14534. r.WriteArrayElem()
  14535. if yyv1 == nil {
  14536. r.EncodeNil()
  14537. } else {
  14538. yy2 := *yyv1
  14539. if false {
  14540. } else {
  14541. r.EncodeInt(int64(yy2))
  14542. }
  14543. }
  14544. }
  14545. r.WriteArrayEnd()
  14546. }
  14547. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  14548. var h codecSelfer19780
  14549. z, r := GenHelperDecoder(d)
  14550. _, _, _ = h, z, r
  14551. yyv1 := *v
  14552. yyh1, yyl1 := z.DecSliceHelperStart()
  14553. var yyc1 bool
  14554. _ = yyc1
  14555. if yyl1 == 0 {
  14556. if yyv1 == nil {
  14557. yyv1 = []*int64{}
  14558. yyc1 = true
  14559. } else if len(yyv1) != 0 {
  14560. yyv1 = yyv1[:0]
  14561. yyc1 = true
  14562. }
  14563. } else {
  14564. yyhl1 := yyl1 > 0
  14565. var yyrl1 int
  14566. _ = yyrl1
  14567. if yyhl1 {
  14568. if yyl1 > cap(yyv1) {
  14569. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14570. if yyrl1 <= cap(yyv1) {
  14571. yyv1 = yyv1[:yyrl1]
  14572. } else {
  14573. yyv1 = make([]*int64, yyrl1)
  14574. }
  14575. yyc1 = true
  14576. } else if yyl1 != len(yyv1) {
  14577. yyv1 = yyv1[:yyl1]
  14578. yyc1 = true
  14579. }
  14580. }
  14581. var yyj1 int
  14582. // var yydn1 bool
  14583. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14584. if yyj1 == 0 && yyv1 == nil {
  14585. if yyhl1 {
  14586. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14587. } else {
  14588. yyrl1 = 8
  14589. }
  14590. yyv1 = make([]*int64, yyrl1)
  14591. yyc1 = true
  14592. }
  14593. yyh1.ElemContainerState(yyj1)
  14594. var yydb1 bool
  14595. if yyj1 >= len(yyv1) {
  14596. yyv1 = append(yyv1, nil)
  14597. yyc1 = true
  14598. }
  14599. if yydb1 {
  14600. z.DecSwallow()
  14601. } else {
  14602. if r.TryDecodeAsNil() {
  14603. yyv1[yyj1] = nil
  14604. } else {
  14605. if yyv1[yyj1] == nil {
  14606. yyv1[yyj1] = new(int64)
  14607. }
  14608. if false {
  14609. } else {
  14610. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  14611. }
  14612. }
  14613. }
  14614. }
  14615. if yyj1 < len(yyv1) {
  14616. yyv1 = yyv1[:yyj1]
  14617. yyc1 = true
  14618. } else if yyj1 == 0 && yyv1 == nil {
  14619. yyv1 = make([]*int64, 0)
  14620. yyc1 = true
  14621. }
  14622. }
  14623. yyh1.End()
  14624. if yyc1 {
  14625. *v = yyv1
  14626. }
  14627. }
  14628. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  14629. var h codecSelfer19780
  14630. z, r := GenHelperEncoder(e)
  14631. _, _, _ = h, z, r
  14632. r.WriteArrayStart(len(v))
  14633. for _, yyv1 := range v {
  14634. r.WriteArrayElem()
  14635. yy2 := &yyv1
  14636. yy2.CodecEncodeSelf(e)
  14637. }
  14638. r.WriteArrayEnd()
  14639. }
  14640. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  14641. var h codecSelfer19780
  14642. z, r := GenHelperDecoder(d)
  14643. _, _, _ = h, z, r
  14644. yyv1 := *v
  14645. yyh1, yyl1 := z.DecSliceHelperStart()
  14646. var yyc1 bool
  14647. _ = yyc1
  14648. if yyl1 == 0 {
  14649. if yyv1 == nil {
  14650. yyv1 = []stringUint64T{}
  14651. yyc1 = true
  14652. } else if len(yyv1) != 0 {
  14653. yyv1 = yyv1[:0]
  14654. yyc1 = true
  14655. }
  14656. } else {
  14657. yyhl1 := yyl1 > 0
  14658. var yyrl1 int
  14659. _ = yyrl1
  14660. if yyhl1 {
  14661. if yyl1 > cap(yyv1) {
  14662. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14663. if yyrl1 <= cap(yyv1) {
  14664. yyv1 = yyv1[:yyrl1]
  14665. } else {
  14666. yyv1 = make([]stringUint64T, yyrl1)
  14667. }
  14668. yyc1 = true
  14669. } else if yyl1 != len(yyv1) {
  14670. yyv1 = yyv1[:yyl1]
  14671. yyc1 = true
  14672. }
  14673. }
  14674. var yyj1 int
  14675. // var yydn1 bool
  14676. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14677. if yyj1 == 0 && yyv1 == nil {
  14678. if yyhl1 {
  14679. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  14680. } else {
  14681. yyrl1 = 8
  14682. }
  14683. yyv1 = make([]stringUint64T, yyrl1)
  14684. yyc1 = true
  14685. }
  14686. yyh1.ElemContainerState(yyj1)
  14687. var yydb1 bool
  14688. if yyj1 >= len(yyv1) {
  14689. yyv1 = append(yyv1, stringUint64T{})
  14690. yyc1 = true
  14691. }
  14692. if yydb1 {
  14693. z.DecSwallow()
  14694. } else {
  14695. if r.TryDecodeAsNil() {
  14696. yyv1[yyj1] = stringUint64T{}
  14697. } else {
  14698. yyv1[yyj1].CodecDecodeSelf(d)
  14699. }
  14700. }
  14701. }
  14702. if yyj1 < len(yyv1) {
  14703. yyv1 = yyv1[:yyj1]
  14704. yyc1 = true
  14705. } else if yyj1 == 0 && yyv1 == nil {
  14706. yyv1 = make([]stringUint64T, 0)
  14707. yyc1 = true
  14708. }
  14709. }
  14710. yyh1.End()
  14711. if yyc1 {
  14712. *v = yyv1
  14713. }
  14714. }
  14715. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  14716. var h codecSelfer19780
  14717. z, r := GenHelperEncoder(e)
  14718. _, _, _ = h, z, r
  14719. r.WriteMapStart(len(v))
  14720. for yyk1, yyv1 := range v {
  14721. r.WriteMapElemKey()
  14722. if false {
  14723. } else {
  14724. if z.EncBasicHandle().StringToRaw {
  14725. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14726. } else {
  14727. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14728. }
  14729. }
  14730. r.WriteMapElemValue()
  14731. if yyv1 == nil {
  14732. r.EncodeNil()
  14733. } else {
  14734. yyv1.CodecEncodeSelf(e)
  14735. }
  14736. }
  14737. r.WriteMapEnd()
  14738. }
  14739. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  14740. var h codecSelfer19780
  14741. z, r := GenHelperDecoder(d)
  14742. _, _, _ = h, z, r
  14743. yyv1 := *v
  14744. yyl1 := r.ReadMapStart()
  14745. yybh1 := z.DecBasicHandle()
  14746. if yyv1 == nil {
  14747. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  14748. yyv1 = make(map[string]*TestStruc, yyrl1)
  14749. *v = yyv1
  14750. }
  14751. var yymk1 string
  14752. var yymv1 *TestStruc
  14753. var yymg1, yymdn1, yyms1, yymok1 bool
  14754. if yybh1.MapValueReset {
  14755. yymg1 = true
  14756. }
  14757. if yyl1 != 0 {
  14758. yyhl1 := yyl1 > 0
  14759. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14760. r.ReadMapElemKey()
  14761. if r.TryDecodeAsNil() {
  14762. yymk1 = ""
  14763. } else {
  14764. yymk1 = (string)(r.DecodeString())
  14765. }
  14766. yyms1 = true
  14767. if yymg1 {
  14768. yymv1, yymok1 = yyv1[yymk1]
  14769. if yymok1 {
  14770. yyms1 = false
  14771. }
  14772. } else {
  14773. yymv1 = nil
  14774. }
  14775. r.ReadMapElemValue()
  14776. yymdn1 = false
  14777. if r.TryDecodeAsNil() {
  14778. yymdn1 = true
  14779. } else {
  14780. if yymv1 == nil {
  14781. yymv1 = new(TestStruc)
  14782. }
  14783. yymv1.CodecDecodeSelf(d)
  14784. }
  14785. if yymdn1 {
  14786. if yybh1.DeleteOnNilMapValue {
  14787. delete(yyv1, yymk1)
  14788. } else {
  14789. yyv1[yymk1] = nil
  14790. }
  14791. } else if yyms1 && yyv1 != nil {
  14792. yyv1[yymk1] = yymv1
  14793. }
  14794. }
  14795. } // else len==0: TODO: Should we clear map entries?
  14796. r.ReadMapEnd()
  14797. }
  14798. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  14799. var h codecSelfer19780
  14800. z, r := GenHelperEncoder(e)
  14801. _, _, _ = h, z, r
  14802. r.WriteMapStart(len(v))
  14803. for yyk1, yyv1 := range v {
  14804. r.WriteMapElemKey()
  14805. if false {
  14806. } else {
  14807. if z.EncBasicHandle().StringToRaw {
  14808. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  14809. } else {
  14810. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  14811. }
  14812. }
  14813. r.WriteMapElemValue()
  14814. yy3 := &yyv1
  14815. yy3.CodecEncodeSelf(e)
  14816. }
  14817. r.WriteMapEnd()
  14818. }
  14819. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  14820. var h codecSelfer19780
  14821. z, r := GenHelperDecoder(d)
  14822. _, _, _ = h, z, r
  14823. yyv1 := *v
  14824. yyl1 := r.ReadMapStart()
  14825. yybh1 := z.DecBasicHandle()
  14826. if yyv1 == nil {
  14827. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1184)
  14828. yyv1 = make(map[string]TestStruc, yyrl1)
  14829. *v = yyv1
  14830. }
  14831. var yymk1 string
  14832. var yymv1 TestStruc
  14833. var yymg1, yymdn1 bool
  14834. if yybh1.MapValueReset {
  14835. yymg1 = true
  14836. }
  14837. if yyl1 != 0 {
  14838. yyhl1 := yyl1 > 0
  14839. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  14840. r.ReadMapElemKey()
  14841. if r.TryDecodeAsNil() {
  14842. yymk1 = ""
  14843. } else {
  14844. yymk1 = (string)(r.DecodeString())
  14845. }
  14846. if yymg1 {
  14847. yymv1 = yyv1[yymk1]
  14848. } else {
  14849. yymv1 = TestStruc{}
  14850. }
  14851. r.ReadMapElemValue()
  14852. yymdn1 = false
  14853. if r.TryDecodeAsNil() {
  14854. yymdn1 = true
  14855. } else {
  14856. yymv1.CodecDecodeSelf(d)
  14857. }
  14858. if yymdn1 {
  14859. if yybh1.DeleteOnNilMapValue {
  14860. delete(yyv1, yymk1)
  14861. } else {
  14862. yyv1[yymk1] = TestStruc{}
  14863. }
  14864. } else if yyv1 != nil {
  14865. yyv1[yymk1] = yymv1
  14866. }
  14867. }
  14868. } // else len==0: TODO: Should we clear map entries?
  14869. r.ReadMapEnd()
  14870. }
  14871. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  14872. var h codecSelfer19780
  14873. z, r := GenHelperEncoder(e)
  14874. _, _, _ = h, z, r
  14875. r.WriteArrayStart(len(v))
  14876. for _, yyv1 := range v {
  14877. r.WriteArrayElem()
  14878. if yyv1 == nil {
  14879. r.EncodeNil()
  14880. } else {
  14881. yyv1.CodecEncodeSelf(e)
  14882. }
  14883. }
  14884. r.WriteArrayEnd()
  14885. }
  14886. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  14887. var h codecSelfer19780
  14888. z, r := GenHelperDecoder(d)
  14889. _, _, _ = h, z, r
  14890. yyv1 := *v
  14891. yyh1, yyl1 := z.DecSliceHelperStart()
  14892. var yyc1 bool
  14893. _ = yyc1
  14894. if yyl1 == 0 {
  14895. if yyv1 == nil {
  14896. yyv1 = []*TestStruc{}
  14897. yyc1 = true
  14898. } else if len(yyv1) != 0 {
  14899. yyv1 = yyv1[:0]
  14900. yyc1 = true
  14901. }
  14902. } else {
  14903. yyhl1 := yyl1 > 0
  14904. var yyrl1 int
  14905. _ = yyrl1
  14906. if yyhl1 {
  14907. if yyl1 > cap(yyv1) {
  14908. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14909. if yyrl1 <= cap(yyv1) {
  14910. yyv1 = yyv1[:yyrl1]
  14911. } else {
  14912. yyv1 = make([]*TestStruc, yyrl1)
  14913. }
  14914. yyc1 = true
  14915. } else if yyl1 != len(yyv1) {
  14916. yyv1 = yyv1[:yyl1]
  14917. yyc1 = true
  14918. }
  14919. }
  14920. var yyj1 int
  14921. // var yydn1 bool
  14922. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14923. if yyj1 == 0 && yyv1 == nil {
  14924. if yyhl1 {
  14925. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  14926. } else {
  14927. yyrl1 = 8
  14928. }
  14929. yyv1 = make([]*TestStruc, yyrl1)
  14930. yyc1 = true
  14931. }
  14932. yyh1.ElemContainerState(yyj1)
  14933. var yydb1 bool
  14934. if yyj1 >= len(yyv1) {
  14935. yyv1 = append(yyv1, nil)
  14936. yyc1 = true
  14937. }
  14938. if yydb1 {
  14939. z.DecSwallow()
  14940. } else {
  14941. if r.TryDecodeAsNil() {
  14942. yyv1[yyj1] = nil
  14943. } else {
  14944. if yyv1[yyj1] == nil {
  14945. yyv1[yyj1] = new(TestStruc)
  14946. }
  14947. yyv1[yyj1].CodecDecodeSelf(d)
  14948. }
  14949. }
  14950. }
  14951. if yyj1 < len(yyv1) {
  14952. yyv1 = yyv1[:yyj1]
  14953. yyc1 = true
  14954. } else if yyj1 == 0 && yyv1 == nil {
  14955. yyv1 = make([]*TestStruc, 0)
  14956. yyc1 = true
  14957. }
  14958. }
  14959. yyh1.End()
  14960. if yyc1 {
  14961. *v = yyv1
  14962. }
  14963. }
  14964. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  14965. var h codecSelfer19780
  14966. z, r := GenHelperEncoder(e)
  14967. _, _, _ = h, z, r
  14968. r.WriteArrayStart(len(v))
  14969. for _, yyv1 := range v {
  14970. r.WriteArrayElem()
  14971. if false {
  14972. } else {
  14973. if z.EncBasicHandle().StringToRaw {
  14974. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  14975. } else {
  14976. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  14977. }
  14978. }
  14979. }
  14980. r.WriteArrayEnd()
  14981. }
  14982. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  14983. var h codecSelfer19780
  14984. z, r := GenHelperDecoder(d)
  14985. _, _, _ = h, z, r
  14986. yyv1 := v
  14987. yyh1, yyl1 := z.DecSliceHelperStart()
  14988. if yyl1 == 0 {
  14989. } else {
  14990. yyhl1 := yyl1 > 0
  14991. var yyrl1 int
  14992. _ = yyrl1
  14993. var yyj1 int
  14994. // var yydn1 bool
  14995. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  14996. yyh1.ElemContainerState(yyj1)
  14997. var yydb1 bool
  14998. if yyj1 >= len(yyv1) {
  14999. z.DecArrayCannotExpand(len(v), yyj1+1)
  15000. yydb1 = true
  15001. }
  15002. if yydb1 {
  15003. z.DecSwallow()
  15004. } else {
  15005. if r.TryDecodeAsNil() {
  15006. yyv1[yyj1] = ""
  15007. } else {
  15008. yyv1[yyj1] = (string)(r.DecodeString())
  15009. }
  15010. }
  15011. }
  15012. }
  15013. yyh1.End()
  15014. }
  15015. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  15016. var h codecSelfer19780
  15017. z, r := GenHelperEncoder(e)
  15018. _, _, _ = h, z, r
  15019. r.EncodeStringBytesRaw([]byte(v))
  15020. }
  15021. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  15022. var h codecSelfer19780
  15023. z, r := GenHelperDecoder(d)
  15024. _, _, _ = h, z, r
  15025. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  15026. }
  15027. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  15028. var h codecSelfer19780
  15029. z, r := GenHelperEncoder(e)
  15030. _, _, _ = h, z, r
  15031. if v == nil {
  15032. r.EncodeNil()
  15033. } else {
  15034. var sch1 []string
  15035. Lsch1:
  15036. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  15037. case timeout1 == 0: // only consume available
  15038. for {
  15039. select {
  15040. case b1 := <-v:
  15041. sch1 = append(sch1, b1)
  15042. default:
  15043. break Lsch1
  15044. }
  15045. }
  15046. case timeout1 > 0: // consume until timeout
  15047. tt1 := time.NewTimer(timeout1)
  15048. for {
  15049. select {
  15050. case b1 := <-v:
  15051. sch1 = append(sch1, b1)
  15052. case <-tt1.C:
  15053. // close(tt.C)
  15054. break Lsch1
  15055. }
  15056. }
  15057. default: // consume until close
  15058. for b1 := range v {
  15059. sch1 = append(sch1, b1)
  15060. }
  15061. }
  15062. r.WriteArrayStart(len(sch1))
  15063. for _, yyv1 := range sch1 {
  15064. r.WriteArrayElem()
  15065. if false {
  15066. } else {
  15067. if z.EncBasicHandle().StringToRaw {
  15068. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  15069. } else {
  15070. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  15071. }
  15072. }
  15073. }
  15074. r.WriteArrayEnd()
  15075. }
  15076. }
  15077. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  15078. var h codecSelfer19780
  15079. z, r := GenHelperDecoder(d)
  15080. _, _, _ = h, z, r
  15081. yyv1 := *v
  15082. yyh1, yyl1 := z.DecSliceHelperStart()
  15083. var yyc1 bool
  15084. _ = yyc1
  15085. if yyl1 == 0 {
  15086. if yyv1 == nil {
  15087. yyv1 = make(chan string, 0)
  15088. yyc1 = true
  15089. }
  15090. } else {
  15091. yyhl1 := yyl1 > 0
  15092. var yyrl1 int
  15093. _ = yyrl1
  15094. var yyj1 int
  15095. // var yydn1 bool
  15096. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15097. if yyj1 == 0 && yyv1 == nil {
  15098. if yyhl1 {
  15099. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  15100. } else {
  15101. yyrl1 = 64
  15102. }
  15103. yyv1 = make(chan string, yyrl1)
  15104. yyc1 = true
  15105. }
  15106. yyh1.ElemContainerState(yyj1)
  15107. var yyvcx1 string
  15108. if r.TryDecodeAsNil() {
  15109. yyvcx1 = ""
  15110. } else {
  15111. yyvcx1 = (string)(r.DecodeString())
  15112. }
  15113. yyv1 <- yyvcx1
  15114. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  15115. }
  15116. }
  15117. yyh1.End()
  15118. if yyc1 {
  15119. *v = yyv1
  15120. }
  15121. }
  15122. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  15123. var h codecSelfer19780
  15124. z, r := GenHelperEncoder(e)
  15125. _, _, _ = h, z, r
  15126. r.WriteMapStart(len(v))
  15127. for yyk1, yyv1 := range v {
  15128. r.WriteMapElemKey()
  15129. if false {
  15130. } else {
  15131. r.EncodeBool(bool(yyk1))
  15132. }
  15133. r.WriteMapElemValue()
  15134. yy3 := &yyv1
  15135. if false {
  15136. } else {
  15137. z.EncFallback(yy3)
  15138. }
  15139. }
  15140. r.WriteMapEnd()
  15141. }
  15142. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  15143. var h codecSelfer19780
  15144. z, r := GenHelperDecoder(d)
  15145. _, _, _ = h, z, r
  15146. yyv1 := *v
  15147. yyl1 := r.ReadMapStart()
  15148. yybh1 := z.DecBasicHandle()
  15149. if yyv1 == nil {
  15150. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  15151. yyv1 = make(map[bool]struct{}, yyrl1)
  15152. *v = yyv1
  15153. }
  15154. var yymk1 bool
  15155. var yymv1 struct{}
  15156. var yymg1, yymdn1 bool
  15157. if yybh1.MapValueReset {
  15158. yymg1 = true
  15159. }
  15160. if yyl1 != 0 {
  15161. yyhl1 := yyl1 > 0
  15162. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15163. r.ReadMapElemKey()
  15164. if r.TryDecodeAsNil() {
  15165. yymk1 = false
  15166. } else {
  15167. yymk1 = (bool)(r.DecodeBool())
  15168. }
  15169. if yymg1 {
  15170. yymv1 = yyv1[yymk1]
  15171. } else {
  15172. yymv1 = struct{}{}
  15173. }
  15174. r.ReadMapElemValue()
  15175. yymdn1 = false
  15176. if r.TryDecodeAsNil() {
  15177. yymdn1 = true
  15178. } else {
  15179. if false {
  15180. } else {
  15181. z.DecFallback(&yymv1, false)
  15182. }
  15183. }
  15184. if yymdn1 {
  15185. if yybh1.DeleteOnNilMapValue {
  15186. delete(yyv1, yymk1)
  15187. } else {
  15188. yyv1[yymk1] = struct{}{}
  15189. }
  15190. } else if yyv1 != nil {
  15191. yyv1[yymk1] = yymv1
  15192. }
  15193. }
  15194. } // else len==0: TODO: Should we clear map entries?
  15195. r.ReadMapEnd()
  15196. }
  15197. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  15198. var h codecSelfer19780
  15199. z, r := GenHelperEncoder(e)
  15200. _, _, _ = h, z, r
  15201. r.WriteMapStart(len(v))
  15202. for yyk1, yyv1 := range v {
  15203. r.WriteMapElemKey()
  15204. if false {
  15205. } else {
  15206. r.EncodeInt(int64(yyk1))
  15207. }
  15208. r.WriteMapElemValue()
  15209. if yyv1 == nil {
  15210. r.EncodeNil()
  15211. } else {
  15212. yyv1.CodecEncodeSelf(e)
  15213. }
  15214. }
  15215. r.WriteMapEnd()
  15216. }
  15217. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  15218. var h codecSelfer19780
  15219. z, r := GenHelperDecoder(d)
  15220. _, _, _ = h, z, r
  15221. yyv1 := *v
  15222. yyl1 := r.ReadMapStart()
  15223. yybh1 := z.DecBasicHandle()
  15224. if yyv1 == nil {
  15225. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15226. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  15227. *v = yyv1
  15228. }
  15229. var yymk1 int
  15230. var yymv1 wrapUint64Slice
  15231. var yymg1, yymdn1 bool
  15232. if yybh1.MapValueReset {
  15233. yymg1 = true
  15234. }
  15235. if yyl1 != 0 {
  15236. yyhl1 := yyl1 > 0
  15237. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15238. r.ReadMapElemKey()
  15239. if r.TryDecodeAsNil() {
  15240. yymk1 = 0
  15241. } else {
  15242. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  15243. }
  15244. if yymg1 {
  15245. yymv1 = yyv1[yymk1]
  15246. } else {
  15247. yymv1 = nil
  15248. }
  15249. r.ReadMapElemValue()
  15250. yymdn1 = false
  15251. if r.TryDecodeAsNil() {
  15252. yymdn1 = true
  15253. } else {
  15254. yymv1.CodecDecodeSelf(d)
  15255. }
  15256. if yymdn1 {
  15257. if yybh1.DeleteOnNilMapValue {
  15258. delete(yyv1, yymk1)
  15259. } else {
  15260. yyv1[yymk1] = nil
  15261. }
  15262. } else if yyv1 != nil {
  15263. yyv1[yymk1] = yymv1
  15264. }
  15265. }
  15266. } // else len==0: TODO: Should we clear map entries?
  15267. r.ReadMapEnd()
  15268. }
  15269. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  15270. var h codecSelfer19780
  15271. z, r := GenHelperEncoder(e)
  15272. _, _, _ = h, z, r
  15273. r.WriteMapStart(len(v))
  15274. for yyk1, yyv1 := range v {
  15275. r.WriteMapElemKey()
  15276. if false {
  15277. } else {
  15278. r.EncodeFloat64(float64(yyk1))
  15279. }
  15280. r.WriteMapElemValue()
  15281. if yyv1 == nil {
  15282. r.EncodeNil()
  15283. } else {
  15284. yyv1.CodecEncodeSelf(e)
  15285. }
  15286. }
  15287. r.WriteMapEnd()
  15288. }
  15289. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  15290. var h codecSelfer19780
  15291. z, r := GenHelperDecoder(d)
  15292. _, _, _ = h, z, r
  15293. yyv1 := *v
  15294. yyl1 := r.ReadMapStart()
  15295. yybh1 := z.DecBasicHandle()
  15296. if yyv1 == nil {
  15297. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15298. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  15299. *v = yyv1
  15300. }
  15301. var yymk1 float64
  15302. var yymv1 wrapStringSlice
  15303. var yymg1, yymdn1 bool
  15304. if yybh1.MapValueReset {
  15305. yymg1 = true
  15306. }
  15307. if yyl1 != 0 {
  15308. yyhl1 := yyl1 > 0
  15309. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15310. r.ReadMapElemKey()
  15311. if r.TryDecodeAsNil() {
  15312. yymk1 = 0
  15313. } else {
  15314. yymk1 = (float64)(r.DecodeFloat64())
  15315. }
  15316. if yymg1 {
  15317. yymv1 = yyv1[yymk1]
  15318. } else {
  15319. yymv1 = nil
  15320. }
  15321. r.ReadMapElemValue()
  15322. yymdn1 = false
  15323. if r.TryDecodeAsNil() {
  15324. yymdn1 = true
  15325. } else {
  15326. yymv1.CodecDecodeSelf(d)
  15327. }
  15328. if yymdn1 {
  15329. if yybh1.DeleteOnNilMapValue {
  15330. delete(yyv1, yymk1)
  15331. } else {
  15332. yyv1[yymk1] = nil
  15333. }
  15334. } else if yyv1 != nil {
  15335. yyv1[yymk1] = yymv1
  15336. }
  15337. }
  15338. } // else len==0: TODO: Should we clear map entries?
  15339. r.ReadMapEnd()
  15340. }
  15341. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  15342. var h codecSelfer19780
  15343. z, r := GenHelperEncoder(e)
  15344. _, _, _ = h, z, r
  15345. r.WriteMapStart(len(v))
  15346. for yyk1, yyv1 := range v {
  15347. r.WriteMapElemKey()
  15348. if false {
  15349. } else {
  15350. r.EncodeFloat32(float32(yyk1))
  15351. }
  15352. r.WriteMapElemValue()
  15353. if yyv1 == nil {
  15354. r.EncodeNil()
  15355. } else {
  15356. yyv1.CodecEncodeSelf(e)
  15357. }
  15358. }
  15359. r.WriteMapEnd()
  15360. }
  15361. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  15362. var h codecSelfer19780
  15363. z, r := GenHelperDecoder(d)
  15364. _, _, _ = h, z, r
  15365. yyv1 := *v
  15366. yyl1 := r.ReadMapStart()
  15367. yybh1 := z.DecBasicHandle()
  15368. if yyv1 == nil {
  15369. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  15370. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  15371. *v = yyv1
  15372. }
  15373. var yymk1 float32
  15374. var yymv1 wrapStringSlice
  15375. var yymg1, yymdn1 bool
  15376. if yybh1.MapValueReset {
  15377. yymg1 = true
  15378. }
  15379. if yyl1 != 0 {
  15380. yyhl1 := yyl1 > 0
  15381. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15382. r.ReadMapElemKey()
  15383. if r.TryDecodeAsNil() {
  15384. yymk1 = 0
  15385. } else {
  15386. yymk1 = (float32)(r.DecodeFloat32As64())
  15387. }
  15388. if yymg1 {
  15389. yymv1 = yyv1[yymk1]
  15390. } else {
  15391. yymv1 = nil
  15392. }
  15393. r.ReadMapElemValue()
  15394. yymdn1 = false
  15395. if r.TryDecodeAsNil() {
  15396. yymdn1 = true
  15397. } else {
  15398. yymv1.CodecDecodeSelf(d)
  15399. }
  15400. if yymdn1 {
  15401. if yybh1.DeleteOnNilMapValue {
  15402. delete(yyv1, yymk1)
  15403. } else {
  15404. yyv1[yymk1] = nil
  15405. }
  15406. } else if yyv1 != nil {
  15407. yyv1[yymk1] = yymv1
  15408. }
  15409. }
  15410. } // else len==0: TODO: Should we clear map entries?
  15411. r.ReadMapEnd()
  15412. }
  15413. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  15414. var h codecSelfer19780
  15415. z, r := GenHelperEncoder(e)
  15416. _, _, _ = h, z, r
  15417. r.WriteMapStart(len(v))
  15418. for yyk1, yyv1 := range v {
  15419. r.WriteMapElemKey()
  15420. if false {
  15421. } else {
  15422. r.EncodeUint(uint64(yyk1))
  15423. }
  15424. r.WriteMapElemValue()
  15425. if yyv1 == nil {
  15426. r.EncodeNil()
  15427. } else {
  15428. yyv1.CodecEncodeSelf(e)
  15429. }
  15430. }
  15431. r.WriteMapEnd()
  15432. }
  15433. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  15434. var h codecSelfer19780
  15435. z, r := GenHelperDecoder(d)
  15436. _, _, _ = h, z, r
  15437. yyv1 := *v
  15438. yyl1 := r.ReadMapStart()
  15439. yybh1 := z.DecBasicHandle()
  15440. if yyv1 == nil {
  15441. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  15442. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  15443. *v = yyv1
  15444. }
  15445. var yymk1 uint64
  15446. var yymv1 wrapStringSlice
  15447. var yymg1, yymdn1 bool
  15448. if yybh1.MapValueReset {
  15449. yymg1 = true
  15450. }
  15451. if yyl1 != 0 {
  15452. yyhl1 := yyl1 > 0
  15453. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15454. r.ReadMapElemKey()
  15455. if r.TryDecodeAsNil() {
  15456. yymk1 = 0
  15457. } else {
  15458. yymk1 = (uint64)(r.DecodeUint64())
  15459. }
  15460. if yymg1 {
  15461. yymv1 = yyv1[yymk1]
  15462. } else {
  15463. yymv1 = nil
  15464. }
  15465. r.ReadMapElemValue()
  15466. yymdn1 = false
  15467. if r.TryDecodeAsNil() {
  15468. yymdn1 = true
  15469. } else {
  15470. yymv1.CodecDecodeSelf(d)
  15471. }
  15472. if yymdn1 {
  15473. if yybh1.DeleteOnNilMapValue {
  15474. delete(yyv1, yymk1)
  15475. } else {
  15476. yyv1[yymk1] = nil
  15477. }
  15478. } else if yyv1 != nil {
  15479. yyv1[yymk1] = yymv1
  15480. }
  15481. }
  15482. } // else len==0: TODO: Should we clear map entries?
  15483. r.ReadMapEnd()
  15484. }
  15485. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  15486. var h codecSelfer19780
  15487. z, r := GenHelperEncoder(e)
  15488. _, _, _ = h, z, r
  15489. r.WriteMapStart(len(v))
  15490. for yyk1, yyv1 := range v {
  15491. r.WriteMapElemKey()
  15492. yy2 := &yyk1
  15493. yy2.CodecEncodeSelf(e)
  15494. r.WriteMapElemValue()
  15495. if yyv1 == nil {
  15496. r.EncodeNil()
  15497. } else {
  15498. yyv1.CodecEncodeSelf(e)
  15499. }
  15500. }
  15501. r.WriteMapEnd()
  15502. }
  15503. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  15504. var h codecSelfer19780
  15505. z, r := GenHelperDecoder(d)
  15506. _, _, _ = h, z, r
  15507. yyv1 := *v
  15508. yyl1 := r.ReadMapStart()
  15509. yybh1 := z.DecBasicHandle()
  15510. if yyv1 == nil {
  15511. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  15512. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  15513. *v = yyv1
  15514. }
  15515. var yymk1 stringUint64T
  15516. var yymv1 wrapStringSlice
  15517. var yymg1, yymdn1 bool
  15518. if yybh1.MapValueReset {
  15519. yymg1 = true
  15520. }
  15521. if yyl1 != 0 {
  15522. yyhl1 := yyl1 > 0
  15523. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15524. r.ReadMapElemKey()
  15525. if r.TryDecodeAsNil() {
  15526. yymk1 = stringUint64T{}
  15527. } else {
  15528. yymk1.CodecDecodeSelf(d)
  15529. }
  15530. if yymg1 {
  15531. yymv1 = yyv1[yymk1]
  15532. } else {
  15533. yymv1 = nil
  15534. }
  15535. r.ReadMapElemValue()
  15536. yymdn1 = false
  15537. if r.TryDecodeAsNil() {
  15538. yymdn1 = true
  15539. } else {
  15540. yymv1.CodecDecodeSelf(d)
  15541. }
  15542. if yymdn1 {
  15543. if yybh1.DeleteOnNilMapValue {
  15544. delete(yyv1, yymk1)
  15545. } else {
  15546. yyv1[yymk1] = nil
  15547. }
  15548. } else if yyv1 != nil {
  15549. yyv1[yymk1] = yymv1
  15550. }
  15551. }
  15552. } // else len==0: TODO: Should we clear map entries?
  15553. r.ReadMapEnd()
  15554. }
  15555. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  15556. var h codecSelfer19780
  15557. z, r := GenHelperEncoder(e)
  15558. _, _, _ = h, z, r
  15559. r.WriteArrayStart(len(v))
  15560. for _, yyv1 := range v {
  15561. r.WriteArrayElem()
  15562. if yyv1 == nil {
  15563. r.EncodeNil()
  15564. } else {
  15565. yyv1.CodecEncodeSelf(e)
  15566. }
  15567. }
  15568. r.WriteArrayEnd()
  15569. }
  15570. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  15571. var h codecSelfer19780
  15572. z, r := GenHelperDecoder(d)
  15573. _, _, _ = h, z, r
  15574. yyv1 := *v
  15575. yyh1, yyl1 := z.DecSliceHelperStart()
  15576. var yyc1 bool
  15577. _ = yyc1
  15578. if yyl1 == 0 {
  15579. if yyv1 == nil {
  15580. yyv1 = []wrapBytes{}
  15581. yyc1 = true
  15582. } else if len(yyv1) != 0 {
  15583. yyv1 = yyv1[:0]
  15584. yyc1 = true
  15585. }
  15586. } else {
  15587. yyhl1 := yyl1 > 0
  15588. var yyrl1 int
  15589. _ = yyrl1
  15590. if yyhl1 {
  15591. if yyl1 > cap(yyv1) {
  15592. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15593. if yyrl1 <= cap(yyv1) {
  15594. yyv1 = yyv1[:yyrl1]
  15595. } else {
  15596. yyv1 = make([]wrapBytes, yyrl1)
  15597. }
  15598. yyc1 = true
  15599. } else if yyl1 != len(yyv1) {
  15600. yyv1 = yyv1[:yyl1]
  15601. yyc1 = true
  15602. }
  15603. }
  15604. var yyj1 int
  15605. // var yydn1 bool
  15606. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15607. if yyj1 == 0 && yyv1 == nil {
  15608. if yyhl1 {
  15609. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  15610. } else {
  15611. yyrl1 = 8
  15612. }
  15613. yyv1 = make([]wrapBytes, yyrl1)
  15614. yyc1 = true
  15615. }
  15616. yyh1.ElemContainerState(yyj1)
  15617. var yydb1 bool
  15618. if yyj1 >= len(yyv1) {
  15619. yyv1 = append(yyv1, nil)
  15620. yyc1 = true
  15621. }
  15622. if yydb1 {
  15623. z.DecSwallow()
  15624. } else {
  15625. if r.TryDecodeAsNil() {
  15626. yyv1[yyj1] = nil
  15627. } else {
  15628. yyv1[yyj1].CodecDecodeSelf(d)
  15629. }
  15630. }
  15631. }
  15632. if yyj1 < len(yyv1) {
  15633. yyv1 = yyv1[:yyj1]
  15634. yyc1 = true
  15635. } else if yyj1 == 0 && yyv1 == nil {
  15636. yyv1 = make([]wrapBytes, 0)
  15637. yyc1 = true
  15638. }
  15639. }
  15640. yyh1.End()
  15641. if yyc1 {
  15642. *v = yyv1
  15643. }
  15644. }
  15645. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  15646. var h codecSelfer19780
  15647. z, r := GenHelperEncoder(e)
  15648. _, _, _ = h, z, r
  15649. r.WriteArrayStart(len(v))
  15650. for _, yyv1 := range v {
  15651. r.WriteArrayElem()
  15652. yyv1.CodecEncodeSelf(e)
  15653. }
  15654. r.WriteArrayEnd()
  15655. }
  15656. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  15657. var h codecSelfer19780
  15658. z, r := GenHelperDecoder(d)
  15659. _, _, _ = h, z, r
  15660. yyv1 := *v
  15661. yyh1, yyl1 := z.DecSliceHelperStart()
  15662. var yyc1 bool
  15663. _ = yyc1
  15664. if yyl1 == 0 {
  15665. if yyv1 == nil {
  15666. yyv1 = []wrapUint8{}
  15667. yyc1 = true
  15668. } else if len(yyv1) != 0 {
  15669. yyv1 = yyv1[:0]
  15670. yyc1 = true
  15671. }
  15672. } else {
  15673. yyhl1 := yyl1 > 0
  15674. var yyrl1 int
  15675. _ = yyrl1
  15676. if yyhl1 {
  15677. if yyl1 > cap(yyv1) {
  15678. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15679. if yyrl1 <= cap(yyv1) {
  15680. yyv1 = yyv1[:yyrl1]
  15681. } else {
  15682. yyv1 = make([]wrapUint8, yyrl1)
  15683. }
  15684. yyc1 = true
  15685. } else if yyl1 != len(yyv1) {
  15686. yyv1 = yyv1[:yyl1]
  15687. yyc1 = true
  15688. }
  15689. }
  15690. var yyj1 int
  15691. // var yydn1 bool
  15692. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15693. if yyj1 == 0 && yyv1 == nil {
  15694. if yyhl1 {
  15695. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  15696. } else {
  15697. yyrl1 = 8
  15698. }
  15699. yyv1 = make([]wrapUint8, yyrl1)
  15700. yyc1 = true
  15701. }
  15702. yyh1.ElemContainerState(yyj1)
  15703. var yydb1 bool
  15704. if yyj1 >= len(yyv1) {
  15705. yyv1 = append(yyv1, 0)
  15706. yyc1 = true
  15707. }
  15708. if yydb1 {
  15709. z.DecSwallow()
  15710. } else {
  15711. if r.TryDecodeAsNil() {
  15712. yyv1[yyj1] = 0
  15713. } else {
  15714. yyv1[yyj1].CodecDecodeSelf(d)
  15715. }
  15716. }
  15717. }
  15718. if yyj1 < len(yyv1) {
  15719. yyv1 = yyv1[:yyj1]
  15720. yyc1 = true
  15721. } else if yyj1 == 0 && yyv1 == nil {
  15722. yyv1 = make([]wrapUint8, 0)
  15723. yyc1 = true
  15724. }
  15725. }
  15726. yyh1.End()
  15727. if yyc1 {
  15728. *v = yyv1
  15729. }
  15730. }
  15731. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  15732. var h codecSelfer19780
  15733. z, r := GenHelperEncoder(e)
  15734. _, _, _ = h, z, r
  15735. r.WriteArrayStart(len(v))
  15736. for _, yyv1 := range v {
  15737. r.WriteArrayElem()
  15738. yy2 := &yyv1
  15739. yy2.CodecEncodeSelf(e)
  15740. }
  15741. r.WriteArrayEnd()
  15742. }
  15743. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  15744. var h codecSelfer19780
  15745. z, r := GenHelperDecoder(d)
  15746. _, _, _ = h, z, r
  15747. yyv1 := v
  15748. yyh1, yyl1 := z.DecSliceHelperStart()
  15749. if yyl1 == 0 {
  15750. } else {
  15751. yyhl1 := yyl1 > 0
  15752. var yyrl1 int
  15753. _ = yyrl1
  15754. var yyj1 int
  15755. // var yydn1 bool
  15756. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15757. yyh1.ElemContainerState(yyj1)
  15758. var yydb1 bool
  15759. if yyj1 >= len(yyv1) {
  15760. z.DecArrayCannotExpand(len(v), yyj1+1)
  15761. yydb1 = true
  15762. }
  15763. if yydb1 {
  15764. z.DecSwallow()
  15765. } else {
  15766. if r.TryDecodeAsNil() {
  15767. yyv1[yyj1] = stringUint64T{}
  15768. } else {
  15769. yyv1[yyj1].CodecDecodeSelf(d)
  15770. }
  15771. }
  15772. }
  15773. }
  15774. yyh1.End()
  15775. }
  15776. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  15777. var h codecSelfer19780
  15778. z, r := GenHelperEncoder(e)
  15779. _, _, _ = h, z, r
  15780. r.WriteArrayStart(len(v))
  15781. for _, yyv1 := range v {
  15782. r.WriteArrayElem()
  15783. if false {
  15784. } else {
  15785. r.EncodeUint(uint64(yyv1))
  15786. }
  15787. }
  15788. r.WriteArrayEnd()
  15789. }
  15790. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  15791. var h codecSelfer19780
  15792. z, r := GenHelperDecoder(d)
  15793. _, _, _ = h, z, r
  15794. yyv1 := v
  15795. yyh1, yyl1 := z.DecSliceHelperStart()
  15796. if yyl1 == 0 {
  15797. } else {
  15798. yyhl1 := yyl1 > 0
  15799. var yyrl1 int
  15800. _ = yyrl1
  15801. var yyj1 int
  15802. // var yydn1 bool
  15803. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15804. yyh1.ElemContainerState(yyj1)
  15805. var yydb1 bool
  15806. if yyj1 >= len(yyv1) {
  15807. z.DecArrayCannotExpand(len(v), yyj1+1)
  15808. yydb1 = true
  15809. }
  15810. if yydb1 {
  15811. z.DecSwallow()
  15812. } else {
  15813. if r.TryDecodeAsNil() {
  15814. yyv1[yyj1] = 0
  15815. } else {
  15816. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  15817. }
  15818. }
  15819. }
  15820. }
  15821. yyh1.End()
  15822. }
  15823. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  15824. var h codecSelfer19780
  15825. z, r := GenHelperEncoder(e)
  15826. _, _, _ = h, z, r
  15827. r.WriteArrayStart(len(v))
  15828. for _, yyv1 := range v {
  15829. r.WriteArrayElem()
  15830. if yyv1 == nil {
  15831. r.EncodeNil()
  15832. } else {
  15833. if false {
  15834. } else {
  15835. h.encArray4uint64((*[4]uint64)(yyv1), e)
  15836. }
  15837. }
  15838. }
  15839. r.WriteArrayEnd()
  15840. }
  15841. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  15842. var h codecSelfer19780
  15843. z, r := GenHelperDecoder(d)
  15844. _, _, _ = h, z, r
  15845. yyv1 := *v
  15846. yyh1, yyl1 := z.DecSliceHelperStart()
  15847. var yyc1 bool
  15848. _ = yyc1
  15849. if yyl1 == 0 {
  15850. if yyv1 == nil {
  15851. yyv1 = []*[4]uint64{}
  15852. yyc1 = true
  15853. } else if len(yyv1) != 0 {
  15854. yyv1 = yyv1[:0]
  15855. yyc1 = true
  15856. }
  15857. } else {
  15858. yyhl1 := yyl1 > 0
  15859. var yyrl1 int
  15860. _ = yyrl1
  15861. if yyhl1 {
  15862. if yyl1 > cap(yyv1) {
  15863. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15864. if yyrl1 <= cap(yyv1) {
  15865. yyv1 = yyv1[:yyrl1]
  15866. } else {
  15867. yyv1 = make([]*[4]uint64, yyrl1)
  15868. }
  15869. yyc1 = true
  15870. } else if yyl1 != len(yyv1) {
  15871. yyv1 = yyv1[:yyl1]
  15872. yyc1 = true
  15873. }
  15874. }
  15875. var yyj1 int
  15876. // var yydn1 bool
  15877. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  15878. if yyj1 == 0 && yyv1 == nil {
  15879. if yyhl1 {
  15880. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  15881. } else {
  15882. yyrl1 = 8
  15883. }
  15884. yyv1 = make([]*[4]uint64, yyrl1)
  15885. yyc1 = true
  15886. }
  15887. yyh1.ElemContainerState(yyj1)
  15888. var yydb1 bool
  15889. if yyj1 >= len(yyv1) {
  15890. yyv1 = append(yyv1, nil)
  15891. yyc1 = true
  15892. }
  15893. if yydb1 {
  15894. z.DecSwallow()
  15895. } else {
  15896. if r.TryDecodeAsNil() {
  15897. yyv1[yyj1] = nil
  15898. } else {
  15899. if yyv1[yyj1] == nil {
  15900. yyv1[yyj1] = new([4]uint64)
  15901. }
  15902. if false {
  15903. } else {
  15904. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  15905. }
  15906. }
  15907. }
  15908. }
  15909. if yyj1 < len(yyv1) {
  15910. yyv1 = yyv1[:yyj1]
  15911. yyc1 = true
  15912. } else if yyj1 == 0 && yyv1 == nil {
  15913. yyv1 = make([]*[4]uint64, 0)
  15914. yyc1 = true
  15915. }
  15916. }
  15917. yyh1.End()
  15918. if yyc1 {
  15919. *v = yyv1
  15920. }
  15921. }
  15922. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  15923. var h codecSelfer19780
  15924. z, r := GenHelperEncoder(e)
  15925. _, _, _ = h, z, r
  15926. r.WriteMapStart(len(v))
  15927. for yyk1, yyv1 := range v {
  15928. r.WriteMapElemKey()
  15929. if false {
  15930. } else {
  15931. if z.EncBasicHandle().StringToRaw {
  15932. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  15933. } else {
  15934. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  15935. }
  15936. }
  15937. r.WriteMapElemValue()
  15938. if yyv1 == nil {
  15939. r.EncodeNil()
  15940. } else {
  15941. yyv1.CodecEncodeSelf(e)
  15942. }
  15943. }
  15944. r.WriteMapEnd()
  15945. }
  15946. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  15947. var h codecSelfer19780
  15948. z, r := GenHelperDecoder(d)
  15949. _, _, _ = h, z, r
  15950. yyv1 := *v
  15951. yyl1 := r.ReadMapStart()
  15952. yybh1 := z.DecBasicHandle()
  15953. if yyv1 == nil {
  15954. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  15955. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  15956. *v = yyv1
  15957. }
  15958. var yymk1 string
  15959. var yymv1 *TestStrucFlex
  15960. var yymg1, yymdn1, yyms1, yymok1 bool
  15961. if yybh1.MapValueReset {
  15962. yymg1 = true
  15963. }
  15964. if yyl1 != 0 {
  15965. yyhl1 := yyl1 > 0
  15966. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  15967. r.ReadMapElemKey()
  15968. if r.TryDecodeAsNil() {
  15969. yymk1 = ""
  15970. } else {
  15971. yymk1 = (string)(r.DecodeString())
  15972. }
  15973. yyms1 = true
  15974. if yymg1 {
  15975. yymv1, yymok1 = yyv1[yymk1]
  15976. if yymok1 {
  15977. yyms1 = false
  15978. }
  15979. } else {
  15980. yymv1 = nil
  15981. }
  15982. r.ReadMapElemValue()
  15983. yymdn1 = false
  15984. if r.TryDecodeAsNil() {
  15985. yymdn1 = true
  15986. } else {
  15987. if yymv1 == nil {
  15988. yymv1 = new(TestStrucFlex)
  15989. }
  15990. yymv1.CodecDecodeSelf(d)
  15991. }
  15992. if yymdn1 {
  15993. if yybh1.DeleteOnNilMapValue {
  15994. delete(yyv1, yymk1)
  15995. } else {
  15996. yyv1[yymk1] = nil
  15997. }
  15998. } else if yyms1 && yyv1 != nil {
  15999. yyv1[yymk1] = yymv1
  16000. }
  16001. }
  16002. } // else len==0: TODO: Should we clear map entries?
  16003. r.ReadMapEnd()
  16004. }
  16005. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  16006. var h codecSelfer19780
  16007. z, r := GenHelperEncoder(e)
  16008. _, _, _ = h, z, r
  16009. r.WriteMapStart(len(v))
  16010. for yyk1, yyv1 := range v {
  16011. r.WriteMapElemKey()
  16012. if false {
  16013. } else {
  16014. if z.EncBasicHandle().StringToRaw {
  16015. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  16016. } else {
  16017. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  16018. }
  16019. }
  16020. r.WriteMapElemValue()
  16021. yy3 := &yyv1
  16022. yy3.CodecEncodeSelf(e)
  16023. }
  16024. r.WriteMapEnd()
  16025. }
  16026. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  16027. var h codecSelfer19780
  16028. z, r := GenHelperDecoder(d)
  16029. _, _, _ = h, z, r
  16030. yyv1 := *v
  16031. yyl1 := r.ReadMapStart()
  16032. yybh1 := z.DecBasicHandle()
  16033. if yyv1 == nil {
  16034. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1488)
  16035. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  16036. *v = yyv1
  16037. }
  16038. var yymk1 string
  16039. var yymv1 TestStrucFlex
  16040. var yymg1, yymdn1 bool
  16041. if yybh1.MapValueReset {
  16042. yymg1 = true
  16043. }
  16044. if yyl1 != 0 {
  16045. yyhl1 := yyl1 > 0
  16046. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  16047. r.ReadMapElemKey()
  16048. if r.TryDecodeAsNil() {
  16049. yymk1 = ""
  16050. } else {
  16051. yymk1 = (string)(r.DecodeString())
  16052. }
  16053. if yymg1 {
  16054. yymv1 = yyv1[yymk1]
  16055. } else {
  16056. yymv1 = TestStrucFlex{}
  16057. }
  16058. r.ReadMapElemValue()
  16059. yymdn1 = false
  16060. if r.TryDecodeAsNil() {
  16061. yymdn1 = true
  16062. } else {
  16063. yymv1.CodecDecodeSelf(d)
  16064. }
  16065. if yymdn1 {
  16066. if yybh1.DeleteOnNilMapValue {
  16067. delete(yyv1, yymk1)
  16068. } else {
  16069. yyv1[yymk1] = TestStrucFlex{}
  16070. }
  16071. } else if yyv1 != nil {
  16072. yyv1[yymk1] = yymv1
  16073. }
  16074. }
  16075. } // else len==0: TODO: Should we clear map entries?
  16076. r.ReadMapEnd()
  16077. }
  16078. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  16079. var h codecSelfer19780
  16080. z, r := GenHelperEncoder(e)
  16081. _, _, _ = h, z, r
  16082. r.WriteArrayStart(len(v))
  16083. for _, yyv1 := range v {
  16084. r.WriteArrayElem()
  16085. if yyv1 == nil {
  16086. r.EncodeNil()
  16087. } else {
  16088. yyv1.CodecEncodeSelf(e)
  16089. }
  16090. }
  16091. r.WriteArrayEnd()
  16092. }
  16093. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  16094. var h codecSelfer19780
  16095. z, r := GenHelperDecoder(d)
  16096. _, _, _ = h, z, r
  16097. yyv1 := *v
  16098. yyh1, yyl1 := z.DecSliceHelperStart()
  16099. var yyc1 bool
  16100. _ = yyc1
  16101. if yyl1 == 0 {
  16102. if yyv1 == nil {
  16103. yyv1 = []*TestStrucFlex{}
  16104. yyc1 = true
  16105. } else if len(yyv1) != 0 {
  16106. yyv1 = yyv1[:0]
  16107. yyc1 = true
  16108. }
  16109. } else {
  16110. yyhl1 := yyl1 > 0
  16111. var yyrl1 int
  16112. _ = yyrl1
  16113. if yyhl1 {
  16114. if yyl1 > cap(yyv1) {
  16115. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16116. if yyrl1 <= cap(yyv1) {
  16117. yyv1 = yyv1[:yyrl1]
  16118. } else {
  16119. yyv1 = make([]*TestStrucFlex, yyrl1)
  16120. }
  16121. yyc1 = true
  16122. } else if yyl1 != len(yyv1) {
  16123. yyv1 = yyv1[:yyl1]
  16124. yyc1 = true
  16125. }
  16126. }
  16127. var yyj1 int
  16128. // var yydn1 bool
  16129. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  16130. if yyj1 == 0 && yyv1 == nil {
  16131. if yyhl1 {
  16132. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  16133. } else {
  16134. yyrl1 = 8
  16135. }
  16136. yyv1 = make([]*TestStrucFlex, yyrl1)
  16137. yyc1 = true
  16138. }
  16139. yyh1.ElemContainerState(yyj1)
  16140. var yydb1 bool
  16141. if yyj1 >= len(yyv1) {
  16142. yyv1 = append(yyv1, nil)
  16143. yyc1 = true
  16144. }
  16145. if yydb1 {
  16146. z.DecSwallow()
  16147. } else {
  16148. if r.TryDecodeAsNil() {
  16149. yyv1[yyj1] = nil
  16150. } else {
  16151. if yyv1[yyj1] == nil {
  16152. yyv1[yyj1] = new(TestStrucFlex)
  16153. }
  16154. yyv1[yyj1].CodecDecodeSelf(d)
  16155. }
  16156. }
  16157. }
  16158. if yyj1 < len(yyv1) {
  16159. yyv1 = yyv1[:yyj1]
  16160. yyc1 = true
  16161. } else if yyj1 == 0 && yyv1 == nil {
  16162. yyv1 = make([]*TestStrucFlex, 0)
  16163. yyc1 = true
  16164. }
  16165. }
  16166. yyh1.End()
  16167. if yyc1 {
  16168. *v = yyv1
  16169. }
  16170. }