values_codecgen_generated_test.go 328 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246
  1. // +build go1.6
  2. // +build codecgen generated
  3. // Code generated by codecgen - DO NOT EDIT.
  4. package codec
  5. import (
  6. "errors"
  7. "runtime"
  8. "strconv"
  9. "time"
  10. )
  11. const (
  12. // ----- content types ----
  13. codecSelferCcUTF819780 = 1
  14. codecSelferCcRAW19780 = 255
  15. // ----- value types used ----
  16. codecSelferValueTypeArray19780 = 10
  17. codecSelferValueTypeMap19780 = 9
  18. codecSelferValueTypeString19780 = 6
  19. codecSelferValueTypeInt19780 = 2
  20. codecSelferValueTypeUint19780 = 3
  21. codecSelferValueTypeFloat19780 = 4
  22. codecSelferValueTypeNil19780 = 1
  23. codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
  24. codecSelferDecContainerLenNil19780 = -2147483648
  25. )
  26. var (
  27. errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
  28. )
  29. type codecSelfer19780 struct{}
  30. func codecSelfer19780False() bool { return false }
  31. func init() {
  32. if GenVersion != 14 {
  33. _, file, _, _ := runtime.Caller(0)
  34. ver := strconv.FormatInt(int64(GenVersion), 10)
  35. panic("codecgen version mismatch: current: 14, need " + ver + ". Re-generate file: " + file)
  36. }
  37. if false { // reference the types, but skip this branch at build/run time
  38. var _ time.Time
  39. }
  40. }
  41. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  42. var h codecSelfer19780
  43. z, r := GenHelperEncoder(e)
  44. _, _, _ = h, z, r
  45. if x == nil {
  46. r.EncodeNil()
  47. } else {
  48. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  49. } // end block: if x slice == nil
  50. }
  51. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  52. var h codecSelfer19780
  53. z, r := GenHelperDecoder(d)
  54. _, _, _ = h, z, r
  55. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  56. }
  57. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  58. var h codecSelfer19780
  59. z, r := GenHelperEncoder(e)
  60. _, _, _ = h, z, r
  61. if x == nil {
  62. r.EncodeNil()
  63. } else {
  64. h.encwrapSliceString((wrapSliceString)(x), e)
  65. } // end block: if x slice == nil
  66. }
  67. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  68. var h codecSelfer19780
  69. z, r := GenHelperDecoder(d)
  70. _, _, _ = h, z, r
  71. h.decwrapSliceString((*wrapSliceString)(x), d)
  72. }
  73. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  74. var h codecSelfer19780
  75. z, r := GenHelperEncoder(e)
  76. _, _, _ = h, z, r
  77. r.EncodeUint(uint64(x))
  78. }
  79. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  80. var h codecSelfer19780
  81. z, r := GenHelperDecoder(d)
  82. _, _, _ = h, z, r
  83. *x = (wrapUint64)(r.DecodeUint64())
  84. }
  85. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  86. var h codecSelfer19780
  87. z, r := GenHelperEncoder(e)
  88. _, _, _ = h, z, r
  89. if z.EncBasicHandle().StringToRaw {
  90. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  91. } else {
  92. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  93. }
  94. }
  95. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  96. var h codecSelfer19780
  97. z, r := GenHelperDecoder(d)
  98. _, _, _ = h, z, r
  99. *x = (wrapString)(string(r.DecodeStringAsBytes()))
  100. }
  101. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  102. var h codecSelfer19780
  103. z, r := GenHelperEncoder(e)
  104. _, _, _ = h, z, r
  105. if x == nil {
  106. r.EncodeNil()
  107. } else {
  108. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  109. } // end block: if x slice == nil
  110. }
  111. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  112. var h codecSelfer19780
  113. z, r := GenHelperDecoder(d)
  114. _, _, _ = h, z, r
  115. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  116. }
  117. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  118. var h codecSelfer19780
  119. z, r := GenHelperEncoder(e)
  120. _, _, _ = h, z, r
  121. if x == nil {
  122. r.EncodeNil()
  123. } else {
  124. h.encwrapStringSlice((wrapStringSlice)(x), e)
  125. } // end block: if x slice == nil
  126. }
  127. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  128. var h codecSelfer19780
  129. z, r := GenHelperDecoder(d)
  130. _, _, _ = h, z, r
  131. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  132. }
  133. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  134. var h codecSelfer19780
  135. z, r := GenHelperEncoder(e)
  136. _, _, _ = h, z, r
  137. if x == nil {
  138. r.EncodeNil()
  139. } else {
  140. yysep2 := !z.EncBinary()
  141. yy2arr2 := z.EncBasicHandle().StructToArray
  142. _, _ = yysep2, yy2arr2
  143. const yyr2 bool = false // struct tag has 'toArray'
  144. if yyr2 || yy2arr2 {
  145. z.EncWriteArrayStart(2)
  146. z.EncWriteArrayElem()
  147. if z.EncBasicHandle().StringToRaw {
  148. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  149. } else {
  150. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  151. }
  152. z.EncWriteArrayElem()
  153. r.EncodeUint(uint64(x.U))
  154. z.EncWriteArrayEnd()
  155. } else {
  156. z.EncWriteMapStart(2)
  157. z.EncWriteMapElemKey()
  158. if z.IsJSONHandle() {
  159. z.WriteStr("\"S\"")
  160. } else {
  161. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  162. }
  163. z.EncWriteMapElemValue()
  164. if z.EncBasicHandle().StringToRaw {
  165. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  166. } else {
  167. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  168. }
  169. z.EncWriteMapElemKey()
  170. if z.IsJSONHandle() {
  171. z.WriteStr("\"U\"")
  172. } else {
  173. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  174. }
  175. z.EncWriteMapElemValue()
  176. r.EncodeUint(uint64(x.U))
  177. z.EncWriteMapEnd()
  178. }
  179. }
  180. }
  181. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  182. var h codecSelfer19780
  183. z, r := GenHelperDecoder(d)
  184. _, _, _ = h, z, r
  185. yyct2 := r.ContainerType()
  186. if yyct2 == codecSelferValueTypeNil19780 {
  187. *(x) = stringUint64T{}
  188. } else if yyct2 == codecSelferValueTypeMap19780 {
  189. yyl2 := z.DecReadMapStart()
  190. if yyl2 == 0 {
  191. } else {
  192. x.codecDecodeSelfFromMap(yyl2, d)
  193. }
  194. z.DecReadMapEnd()
  195. } else if yyct2 == codecSelferValueTypeArray19780 {
  196. yyl2 := z.DecReadArrayStart()
  197. if yyl2 != 0 {
  198. x.codecDecodeSelfFromArray(yyl2, d)
  199. }
  200. z.DecReadArrayEnd()
  201. } else {
  202. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  203. }
  204. }
  205. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  206. var h codecSelfer19780
  207. z, r := GenHelperDecoder(d)
  208. _, _, _ = h, z, r
  209. var yyhl3 bool = l >= 0
  210. for yyj3 := 0; ; yyj3++ {
  211. if yyhl3 {
  212. if yyj3 >= l {
  213. break
  214. }
  215. } else {
  216. if r.CheckBreak() {
  217. break
  218. }
  219. }
  220. z.DecReadMapElemKey()
  221. yys3 := z.StringView(r.DecodeStringAsBytes())
  222. z.DecReadMapElemValue()
  223. switch yys3 {
  224. case "S":
  225. x.S = (string)(string(r.DecodeStringAsBytes()))
  226. case "U":
  227. x.U = (uint64)(r.DecodeUint64())
  228. default:
  229. z.DecStructFieldNotFound(-1, yys3)
  230. } // end switch yys3
  231. } // end for yyj3
  232. }
  233. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  234. var h codecSelfer19780
  235. z, r := GenHelperDecoder(d)
  236. _, _, _ = h, z, r
  237. var yyj6 int
  238. var yyb6 bool
  239. var yyhl6 bool = l >= 0
  240. yyj6++
  241. if yyhl6 {
  242. yyb6 = yyj6 > l
  243. } else {
  244. yyb6 = r.CheckBreak()
  245. }
  246. if yyb6 {
  247. z.DecReadArrayEnd()
  248. return
  249. }
  250. z.DecReadArrayElem()
  251. x.S = (string)(string(r.DecodeStringAsBytes()))
  252. yyj6++
  253. if yyhl6 {
  254. yyb6 = yyj6 > l
  255. } else {
  256. yyb6 = r.CheckBreak()
  257. }
  258. if yyb6 {
  259. z.DecReadArrayEnd()
  260. return
  261. }
  262. z.DecReadArrayElem()
  263. x.U = (uint64)(r.DecodeUint64())
  264. for {
  265. yyj6++
  266. if yyhl6 {
  267. yyb6 = yyj6 > l
  268. } else {
  269. yyb6 = r.CheckBreak()
  270. }
  271. if yyb6 {
  272. break
  273. }
  274. z.DecReadArrayElem()
  275. z.DecStructFieldNotFound(yyj6-1, "")
  276. }
  277. }
  278. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  279. var h codecSelfer19780
  280. z, r := GenHelperEncoder(e)
  281. _, _, _ = h, z, r
  282. if x == nil {
  283. r.EncodeNil()
  284. } else {
  285. yysep2 := !z.EncBinary()
  286. yy2arr2 := z.EncBasicHandle().StructToArray
  287. _, _ = yysep2, yy2arr2
  288. const yyr2 bool = false // struct tag has 'toArray'
  289. if yyr2 || yy2arr2 {
  290. z.EncWriteArrayStart(15)
  291. z.EncWriteArrayElem()
  292. if z.EncBasicHandle().StringToRaw {
  293. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  294. } else {
  295. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  296. }
  297. z.EncWriteArrayElem()
  298. r.EncodeInt(int64(x.AI64))
  299. z.EncWriteArrayElem()
  300. r.EncodeInt(int64(x.AI16))
  301. z.EncWriteArrayElem()
  302. r.EncodeUint(uint64(x.AUi64))
  303. z.EncWriteArrayElem()
  304. if x.ASslice == nil {
  305. r.EncodeNil()
  306. } else {
  307. z.F.EncSliceStringV(x.ASslice, e)
  308. } // end block: if x.ASslice slice == nil
  309. z.EncWriteArrayElem()
  310. if x.AI64slice == nil {
  311. r.EncodeNil()
  312. } else {
  313. z.F.EncSliceInt64V(x.AI64slice, e)
  314. } // end block: if x.AI64slice slice == nil
  315. z.EncWriteArrayElem()
  316. if x.AUi64slice == nil {
  317. r.EncodeNil()
  318. } else {
  319. z.F.EncSliceUint64V(x.AUi64slice, e)
  320. } // end block: if x.AUi64slice slice == nil
  321. z.EncWriteArrayElem()
  322. if x.AF64slice == nil {
  323. r.EncodeNil()
  324. } else {
  325. z.F.EncSliceFloat64V(x.AF64slice, e)
  326. } // end block: if x.AF64slice slice == nil
  327. z.EncWriteArrayElem()
  328. if x.AF32slice == nil {
  329. r.EncodeNil()
  330. } else {
  331. z.F.EncSliceFloat32V(x.AF32slice, e)
  332. } // end block: if x.AF32slice slice == nil
  333. z.EncWriteArrayElem()
  334. if x.AMSU16 == nil {
  335. r.EncodeNil()
  336. } else {
  337. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  338. } // end block: if x.AMSU16 map == nil
  339. z.EncWriteArrayElem()
  340. yy28 := &x.AI64arr0
  341. h.encArray0int64((*[0]int64)(yy28), e)
  342. z.EncWriteArrayElem()
  343. if x.AI64slice0 == nil {
  344. r.EncodeNil()
  345. } else {
  346. z.F.EncSliceInt64V(x.AI64slice0, e)
  347. } // end block: if x.AI64slice0 slice == nil
  348. z.EncWriteArrayElem()
  349. if x.AUi64sliceN == nil {
  350. r.EncodeNil()
  351. } else {
  352. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  353. } // end block: if x.AUi64sliceN slice == nil
  354. z.EncWriteArrayElem()
  355. if x.AMSU16N == nil {
  356. r.EncodeNil()
  357. } else {
  358. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  359. } // end block: if x.AMSU16N map == nil
  360. z.EncWriteArrayElem()
  361. if x.AMSU16E == nil {
  362. r.EncodeNil()
  363. } else {
  364. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  365. } // end block: if x.AMSU16E map == nil
  366. z.EncWriteArrayEnd()
  367. } else {
  368. z.EncWriteMapStart(15)
  369. z.EncWriteMapElemKey()
  370. if z.IsJSONHandle() {
  371. z.WriteStr("\"AS\"")
  372. } else {
  373. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  374. }
  375. z.EncWriteMapElemValue()
  376. if z.EncBasicHandle().StringToRaw {
  377. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  378. } else {
  379. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  380. }
  381. z.EncWriteMapElemKey()
  382. if z.IsJSONHandle() {
  383. z.WriteStr("\"AI64\"")
  384. } else {
  385. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  386. }
  387. z.EncWriteMapElemValue()
  388. r.EncodeInt(int64(x.AI64))
  389. z.EncWriteMapElemKey()
  390. if z.IsJSONHandle() {
  391. z.WriteStr("\"AI16\"")
  392. } else {
  393. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  394. }
  395. z.EncWriteMapElemValue()
  396. r.EncodeInt(int64(x.AI16))
  397. z.EncWriteMapElemKey()
  398. if z.IsJSONHandle() {
  399. z.WriteStr("\"AUi64\"")
  400. } else {
  401. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  402. }
  403. z.EncWriteMapElemValue()
  404. r.EncodeUint(uint64(x.AUi64))
  405. z.EncWriteMapElemKey()
  406. if z.IsJSONHandle() {
  407. z.WriteStr("\"ASslice\"")
  408. } else {
  409. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  410. }
  411. z.EncWriteMapElemValue()
  412. if x.ASslice == nil {
  413. r.EncodeNil()
  414. } else {
  415. z.F.EncSliceStringV(x.ASslice, e)
  416. } // end block: if x.ASslice slice == nil
  417. z.EncWriteMapElemKey()
  418. if z.IsJSONHandle() {
  419. z.WriteStr("\"AI64slice\"")
  420. } else {
  421. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  422. }
  423. z.EncWriteMapElemValue()
  424. if x.AI64slice == nil {
  425. r.EncodeNil()
  426. } else {
  427. z.F.EncSliceInt64V(x.AI64slice, e)
  428. } // end block: if x.AI64slice slice == nil
  429. z.EncWriteMapElemKey()
  430. if z.IsJSONHandle() {
  431. z.WriteStr("\"AUi64slice\"")
  432. } else {
  433. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  434. }
  435. z.EncWriteMapElemValue()
  436. if x.AUi64slice == nil {
  437. r.EncodeNil()
  438. } else {
  439. z.F.EncSliceUint64V(x.AUi64slice, e)
  440. } // end block: if x.AUi64slice slice == nil
  441. z.EncWriteMapElemKey()
  442. if z.IsJSONHandle() {
  443. z.WriteStr("\"AF64slice\"")
  444. } else {
  445. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  446. }
  447. z.EncWriteMapElemValue()
  448. if x.AF64slice == nil {
  449. r.EncodeNil()
  450. } else {
  451. z.F.EncSliceFloat64V(x.AF64slice, e)
  452. } // end block: if x.AF64slice slice == nil
  453. z.EncWriteMapElemKey()
  454. if z.IsJSONHandle() {
  455. z.WriteStr("\"AF32slice\"")
  456. } else {
  457. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  458. }
  459. z.EncWriteMapElemValue()
  460. if x.AF32slice == nil {
  461. r.EncodeNil()
  462. } else {
  463. z.F.EncSliceFloat32V(x.AF32slice, e)
  464. } // end block: if x.AF32slice slice == nil
  465. z.EncWriteMapElemKey()
  466. if z.IsJSONHandle() {
  467. z.WriteStr("\"AMSU16\"")
  468. } else {
  469. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  470. }
  471. z.EncWriteMapElemValue()
  472. if x.AMSU16 == nil {
  473. r.EncodeNil()
  474. } else {
  475. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  476. } // end block: if x.AMSU16 map == nil
  477. z.EncWriteMapElemKey()
  478. if z.IsJSONHandle() {
  479. z.WriteStr("\"AI64arr0\"")
  480. } else {
  481. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  482. }
  483. z.EncWriteMapElemValue()
  484. yy44 := &x.AI64arr0
  485. h.encArray0int64((*[0]int64)(yy44), e)
  486. z.EncWriteMapElemKey()
  487. if z.IsJSONHandle() {
  488. z.WriteStr("\"AI64slice0\"")
  489. } else {
  490. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  491. }
  492. z.EncWriteMapElemValue()
  493. if x.AI64slice0 == nil {
  494. r.EncodeNil()
  495. } else {
  496. z.F.EncSliceInt64V(x.AI64slice0, e)
  497. } // end block: if x.AI64slice0 slice == nil
  498. z.EncWriteMapElemKey()
  499. if z.IsJSONHandle() {
  500. z.WriteStr("\"AUi64sliceN\"")
  501. } else {
  502. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  503. }
  504. z.EncWriteMapElemValue()
  505. if x.AUi64sliceN == nil {
  506. r.EncodeNil()
  507. } else {
  508. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  509. } // end block: if x.AUi64sliceN slice == nil
  510. z.EncWriteMapElemKey()
  511. if z.IsJSONHandle() {
  512. z.WriteStr("\"AMSU16N\"")
  513. } else {
  514. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  515. }
  516. z.EncWriteMapElemValue()
  517. if x.AMSU16N == nil {
  518. r.EncodeNil()
  519. } else {
  520. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  521. } // end block: if x.AMSU16N map == nil
  522. z.EncWriteMapElemKey()
  523. if z.IsJSONHandle() {
  524. z.WriteStr("\"AMSU16E\"")
  525. } else {
  526. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  527. }
  528. z.EncWriteMapElemValue()
  529. if x.AMSU16E == nil {
  530. r.EncodeNil()
  531. } else {
  532. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  533. } // end block: if x.AMSU16E map == nil
  534. z.EncWriteMapEnd()
  535. }
  536. }
  537. }
  538. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  539. var h codecSelfer19780
  540. z, r := GenHelperDecoder(d)
  541. _, _, _ = h, z, r
  542. yyct2 := r.ContainerType()
  543. if yyct2 == codecSelferValueTypeNil19780 {
  544. *(x) = AnonInTestStruc{}
  545. } else if yyct2 == codecSelferValueTypeMap19780 {
  546. yyl2 := z.DecReadMapStart()
  547. if yyl2 == 0 {
  548. } else {
  549. x.codecDecodeSelfFromMap(yyl2, d)
  550. }
  551. z.DecReadMapEnd()
  552. } else if yyct2 == codecSelferValueTypeArray19780 {
  553. yyl2 := z.DecReadArrayStart()
  554. if yyl2 != 0 {
  555. x.codecDecodeSelfFromArray(yyl2, d)
  556. }
  557. z.DecReadArrayEnd()
  558. } else {
  559. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  560. }
  561. }
  562. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  563. var h codecSelfer19780
  564. z, r := GenHelperDecoder(d)
  565. _, _, _ = h, z, r
  566. var yyhl3 bool = l >= 0
  567. for yyj3 := 0; ; yyj3++ {
  568. if yyhl3 {
  569. if yyj3 >= l {
  570. break
  571. }
  572. } else {
  573. if r.CheckBreak() {
  574. break
  575. }
  576. }
  577. z.DecReadMapElemKey()
  578. yys3 := z.StringView(r.DecodeStringAsBytes())
  579. z.DecReadMapElemValue()
  580. switch yys3 {
  581. case "AS":
  582. x.AS = (string)(string(r.DecodeStringAsBytes()))
  583. case "AI64":
  584. x.AI64 = (int64)(r.DecodeInt64())
  585. case "AI16":
  586. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  587. case "AUi64":
  588. x.AUi64 = (uint64)(r.DecodeUint64())
  589. case "ASslice":
  590. z.F.DecSliceStringX(&x.ASslice, d)
  591. case "AI64slice":
  592. z.F.DecSliceInt64X(&x.AI64slice, d)
  593. case "AUi64slice":
  594. z.F.DecSliceUint64X(&x.AUi64slice, d)
  595. case "AF64slice":
  596. z.F.DecSliceFloat64X(&x.AF64slice, d)
  597. case "AF32slice":
  598. z.F.DecSliceFloat32X(&x.AF32slice, d)
  599. case "AMSU16":
  600. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  601. case "AI64arr0":
  602. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  603. case "AI64slice0":
  604. z.F.DecSliceInt64X(&x.AI64slice0, d)
  605. case "AUi64sliceN":
  606. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  607. case "AMSU16N":
  608. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  609. case "AMSU16E":
  610. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  611. default:
  612. z.DecStructFieldNotFound(-1, yys3)
  613. } // end switch yys3
  614. } // end for yyj3
  615. }
  616. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  617. var h codecSelfer19780
  618. z, r := GenHelperDecoder(d)
  619. _, _, _ = h, z, r
  620. var yyj30 int
  621. var yyb30 bool
  622. var yyhl30 bool = l >= 0
  623. yyj30++
  624. if yyhl30 {
  625. yyb30 = yyj30 > l
  626. } else {
  627. yyb30 = r.CheckBreak()
  628. }
  629. if yyb30 {
  630. z.DecReadArrayEnd()
  631. return
  632. }
  633. z.DecReadArrayElem()
  634. x.AS = (string)(string(r.DecodeStringAsBytes()))
  635. yyj30++
  636. if yyhl30 {
  637. yyb30 = yyj30 > l
  638. } else {
  639. yyb30 = r.CheckBreak()
  640. }
  641. if yyb30 {
  642. z.DecReadArrayEnd()
  643. return
  644. }
  645. z.DecReadArrayElem()
  646. x.AI64 = (int64)(r.DecodeInt64())
  647. yyj30++
  648. if yyhl30 {
  649. yyb30 = yyj30 > l
  650. } else {
  651. yyb30 = r.CheckBreak()
  652. }
  653. if yyb30 {
  654. z.DecReadArrayEnd()
  655. return
  656. }
  657. z.DecReadArrayElem()
  658. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  659. yyj30++
  660. if yyhl30 {
  661. yyb30 = yyj30 > l
  662. } else {
  663. yyb30 = r.CheckBreak()
  664. }
  665. if yyb30 {
  666. z.DecReadArrayEnd()
  667. return
  668. }
  669. z.DecReadArrayElem()
  670. x.AUi64 = (uint64)(r.DecodeUint64())
  671. yyj30++
  672. if yyhl30 {
  673. yyb30 = yyj30 > l
  674. } else {
  675. yyb30 = r.CheckBreak()
  676. }
  677. if yyb30 {
  678. z.DecReadArrayEnd()
  679. return
  680. }
  681. z.DecReadArrayElem()
  682. z.F.DecSliceStringX(&x.ASslice, d)
  683. yyj30++
  684. if yyhl30 {
  685. yyb30 = yyj30 > l
  686. } else {
  687. yyb30 = r.CheckBreak()
  688. }
  689. if yyb30 {
  690. z.DecReadArrayEnd()
  691. return
  692. }
  693. z.DecReadArrayElem()
  694. z.F.DecSliceInt64X(&x.AI64slice, d)
  695. yyj30++
  696. if yyhl30 {
  697. yyb30 = yyj30 > l
  698. } else {
  699. yyb30 = r.CheckBreak()
  700. }
  701. if yyb30 {
  702. z.DecReadArrayEnd()
  703. return
  704. }
  705. z.DecReadArrayElem()
  706. z.F.DecSliceUint64X(&x.AUi64slice, d)
  707. yyj30++
  708. if yyhl30 {
  709. yyb30 = yyj30 > l
  710. } else {
  711. yyb30 = r.CheckBreak()
  712. }
  713. if yyb30 {
  714. z.DecReadArrayEnd()
  715. return
  716. }
  717. z.DecReadArrayElem()
  718. z.F.DecSliceFloat64X(&x.AF64slice, d)
  719. yyj30++
  720. if yyhl30 {
  721. yyb30 = yyj30 > l
  722. } else {
  723. yyb30 = r.CheckBreak()
  724. }
  725. if yyb30 {
  726. z.DecReadArrayEnd()
  727. return
  728. }
  729. z.DecReadArrayElem()
  730. z.F.DecSliceFloat32X(&x.AF32slice, d)
  731. yyj30++
  732. if yyhl30 {
  733. yyb30 = yyj30 > l
  734. } else {
  735. yyb30 = r.CheckBreak()
  736. }
  737. if yyb30 {
  738. z.DecReadArrayEnd()
  739. return
  740. }
  741. z.DecReadArrayElem()
  742. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  743. yyj30++
  744. if yyhl30 {
  745. yyb30 = yyj30 > l
  746. } else {
  747. yyb30 = r.CheckBreak()
  748. }
  749. if yyb30 {
  750. z.DecReadArrayEnd()
  751. return
  752. }
  753. z.DecReadArrayElem()
  754. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  755. yyj30++
  756. if yyhl30 {
  757. yyb30 = yyj30 > l
  758. } else {
  759. yyb30 = r.CheckBreak()
  760. }
  761. if yyb30 {
  762. z.DecReadArrayEnd()
  763. return
  764. }
  765. z.DecReadArrayElem()
  766. z.F.DecSliceInt64X(&x.AI64slice0, d)
  767. yyj30++
  768. if yyhl30 {
  769. yyb30 = yyj30 > l
  770. } else {
  771. yyb30 = r.CheckBreak()
  772. }
  773. if yyb30 {
  774. z.DecReadArrayEnd()
  775. return
  776. }
  777. z.DecReadArrayElem()
  778. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  779. yyj30++
  780. if yyhl30 {
  781. yyb30 = yyj30 > l
  782. } else {
  783. yyb30 = r.CheckBreak()
  784. }
  785. if yyb30 {
  786. z.DecReadArrayEnd()
  787. return
  788. }
  789. z.DecReadArrayElem()
  790. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  791. yyj30++
  792. if yyhl30 {
  793. yyb30 = yyj30 > l
  794. } else {
  795. yyb30 = r.CheckBreak()
  796. }
  797. if yyb30 {
  798. z.DecReadArrayEnd()
  799. return
  800. }
  801. z.DecReadArrayElem()
  802. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  803. for {
  804. yyj30++
  805. if yyhl30 {
  806. yyb30 = yyj30 > l
  807. } else {
  808. yyb30 = r.CheckBreak()
  809. }
  810. if yyb30 {
  811. break
  812. }
  813. z.DecReadArrayElem()
  814. z.DecStructFieldNotFound(yyj30-1, "")
  815. }
  816. }
  817. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  818. var h codecSelfer19780
  819. z, r := GenHelperEncoder(e)
  820. _, _, _ = h, z, r
  821. if x == nil {
  822. r.EncodeNil()
  823. } else {
  824. yysep2 := !z.EncBinary()
  825. yy2arr2 := z.EncBasicHandle().StructToArray
  826. _, _ = yysep2, yy2arr2
  827. const yyr2 bool = false // struct tag has 'toArray'
  828. if yyr2 || yy2arr2 {
  829. z.EncWriteArrayStart(17)
  830. z.EncWriteArrayElem()
  831. if z.EncBasicHandle().StringToRaw {
  832. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  833. } else {
  834. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  835. }
  836. z.EncWriteArrayElem()
  837. r.EncodeInt(int64(x.I64))
  838. z.EncWriteArrayElem()
  839. r.EncodeInt(int64(x.I8))
  840. z.EncWriteArrayElem()
  841. r.EncodeUint(uint64(x.Ui64))
  842. z.EncWriteArrayElem()
  843. r.EncodeUint(uint64(x.Ui8))
  844. z.EncWriteArrayElem()
  845. r.EncodeFloat64(float64(x.F64))
  846. z.EncWriteArrayElem()
  847. r.EncodeFloat32(float32(x.F32))
  848. z.EncWriteArrayElem()
  849. r.EncodeBool(bool(x.B))
  850. z.EncWriteArrayElem()
  851. if x.Sslice == nil {
  852. r.EncodeNil()
  853. } else {
  854. z.F.EncSliceStringV(x.Sslice, e)
  855. } // end block: if x.Sslice slice == nil
  856. z.EncWriteArrayElem()
  857. if x.I16slice == nil {
  858. r.EncodeNil()
  859. } else {
  860. z.F.EncSliceInt16V(x.I16slice, e)
  861. } // end block: if x.I16slice slice == nil
  862. z.EncWriteArrayElem()
  863. if x.Ui64slice == nil {
  864. r.EncodeNil()
  865. } else {
  866. z.F.EncSliceUint64V(x.Ui64slice, e)
  867. } // end block: if x.Ui64slice slice == nil
  868. z.EncWriteArrayElem()
  869. if x.Ui8slice == nil {
  870. r.EncodeNil()
  871. } else {
  872. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  873. } // end block: if x.Ui8slice slice == nil
  874. z.EncWriteArrayElem()
  875. if x.Bslice == nil {
  876. r.EncodeNil()
  877. } else {
  878. z.F.EncSliceBoolV(x.Bslice, e)
  879. } // end block: if x.Bslice slice == nil
  880. z.EncWriteArrayElem()
  881. if x.Iptrslice == nil {
  882. r.EncodeNil()
  883. } else {
  884. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  885. } // end block: if x.Iptrslice slice == nil
  886. z.EncWriteArrayElem()
  887. x.WrapSliceInt64.CodecEncodeSelf(e)
  888. z.EncWriteArrayElem()
  889. x.WrapSliceString.CodecEncodeSelf(e)
  890. z.EncWriteArrayElem()
  891. if x.Msi64 == nil {
  892. r.EncodeNil()
  893. } else {
  894. z.F.EncMapStringInt64V(x.Msi64, e)
  895. } // end block: if x.Msi64 map == nil
  896. z.EncWriteArrayEnd()
  897. } else {
  898. z.EncWriteMapStart(17)
  899. z.EncWriteMapElemKey()
  900. if z.IsJSONHandle() {
  901. z.WriteStr("\"S\"")
  902. } else {
  903. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  904. }
  905. z.EncWriteMapElemValue()
  906. if z.EncBasicHandle().StringToRaw {
  907. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  908. } else {
  909. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  910. }
  911. z.EncWriteMapElemKey()
  912. if z.IsJSONHandle() {
  913. z.WriteStr("\"I64\"")
  914. } else {
  915. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  916. }
  917. z.EncWriteMapElemValue()
  918. r.EncodeInt(int64(x.I64))
  919. z.EncWriteMapElemKey()
  920. if z.IsJSONHandle() {
  921. z.WriteStr("\"I8\"")
  922. } else {
  923. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  924. }
  925. z.EncWriteMapElemValue()
  926. r.EncodeInt(int64(x.I8))
  927. z.EncWriteMapElemKey()
  928. if z.IsJSONHandle() {
  929. z.WriteStr("\"Ui64\"")
  930. } else {
  931. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  932. }
  933. z.EncWriteMapElemValue()
  934. r.EncodeUint(uint64(x.Ui64))
  935. z.EncWriteMapElemKey()
  936. if z.IsJSONHandle() {
  937. z.WriteStr("\"Ui8\"")
  938. } else {
  939. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  940. }
  941. z.EncWriteMapElemValue()
  942. r.EncodeUint(uint64(x.Ui8))
  943. z.EncWriteMapElemKey()
  944. if z.IsJSONHandle() {
  945. z.WriteStr("\"F64\"")
  946. } else {
  947. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  948. }
  949. z.EncWriteMapElemValue()
  950. r.EncodeFloat64(float64(x.F64))
  951. z.EncWriteMapElemKey()
  952. if z.IsJSONHandle() {
  953. z.WriteStr("\"F32\"")
  954. } else {
  955. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  956. }
  957. z.EncWriteMapElemValue()
  958. r.EncodeFloat32(float32(x.F32))
  959. z.EncWriteMapElemKey()
  960. if z.IsJSONHandle() {
  961. z.WriteStr("\"B\"")
  962. } else {
  963. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  964. }
  965. z.EncWriteMapElemValue()
  966. r.EncodeBool(bool(x.B))
  967. z.EncWriteMapElemKey()
  968. if z.IsJSONHandle() {
  969. z.WriteStr("\"Sslice\"")
  970. } else {
  971. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  972. }
  973. z.EncWriteMapElemValue()
  974. if x.Sslice == nil {
  975. r.EncodeNil()
  976. } else {
  977. z.F.EncSliceStringV(x.Sslice, e)
  978. } // end block: if x.Sslice slice == nil
  979. z.EncWriteMapElemKey()
  980. if z.IsJSONHandle() {
  981. z.WriteStr("\"I16slice\"")
  982. } else {
  983. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  984. }
  985. z.EncWriteMapElemValue()
  986. if x.I16slice == nil {
  987. r.EncodeNil()
  988. } else {
  989. z.F.EncSliceInt16V(x.I16slice, e)
  990. } // end block: if x.I16slice slice == nil
  991. z.EncWriteMapElemKey()
  992. if z.IsJSONHandle() {
  993. z.WriteStr("\"Ui64slice\"")
  994. } else {
  995. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  996. }
  997. z.EncWriteMapElemValue()
  998. if x.Ui64slice == nil {
  999. r.EncodeNil()
  1000. } else {
  1001. z.F.EncSliceUint64V(x.Ui64slice, e)
  1002. } // end block: if x.Ui64slice slice == nil
  1003. z.EncWriteMapElemKey()
  1004. if z.IsJSONHandle() {
  1005. z.WriteStr("\"Ui8slice\"")
  1006. } else {
  1007. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1008. }
  1009. z.EncWriteMapElemValue()
  1010. if x.Ui8slice == nil {
  1011. r.EncodeNil()
  1012. } else {
  1013. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1014. } // end block: if x.Ui8slice slice == nil
  1015. z.EncWriteMapElemKey()
  1016. if z.IsJSONHandle() {
  1017. z.WriteStr("\"Bslice\"")
  1018. } else {
  1019. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1020. }
  1021. z.EncWriteMapElemValue()
  1022. if x.Bslice == nil {
  1023. r.EncodeNil()
  1024. } else {
  1025. z.F.EncSliceBoolV(x.Bslice, e)
  1026. } // end block: if x.Bslice slice == nil
  1027. z.EncWriteMapElemKey()
  1028. if z.IsJSONHandle() {
  1029. z.WriteStr("\"Iptrslice\"")
  1030. } else {
  1031. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1032. }
  1033. z.EncWriteMapElemValue()
  1034. if x.Iptrslice == nil {
  1035. r.EncodeNil()
  1036. } else {
  1037. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1038. } // end block: if x.Iptrslice slice == nil
  1039. z.EncWriteMapElemKey()
  1040. if z.IsJSONHandle() {
  1041. z.WriteStr("\"WrapSliceInt64\"")
  1042. } else {
  1043. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1044. }
  1045. z.EncWriteMapElemValue()
  1046. x.WrapSliceInt64.CodecEncodeSelf(e)
  1047. z.EncWriteMapElemKey()
  1048. if z.IsJSONHandle() {
  1049. z.WriteStr("\"WrapSliceString\"")
  1050. } else {
  1051. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1052. }
  1053. z.EncWriteMapElemValue()
  1054. x.WrapSliceString.CodecEncodeSelf(e)
  1055. z.EncWriteMapElemKey()
  1056. if z.IsJSONHandle() {
  1057. z.WriteStr("\"Msi64\"")
  1058. } else {
  1059. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1060. }
  1061. z.EncWriteMapElemValue()
  1062. if x.Msi64 == nil {
  1063. r.EncodeNil()
  1064. } else {
  1065. z.F.EncMapStringInt64V(x.Msi64, e)
  1066. } // end block: if x.Msi64 map == nil
  1067. z.EncWriteMapEnd()
  1068. }
  1069. }
  1070. }
  1071. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1072. var h codecSelfer19780
  1073. z, r := GenHelperDecoder(d)
  1074. _, _, _ = h, z, r
  1075. yyct2 := r.ContainerType()
  1076. if yyct2 == codecSelferValueTypeNil19780 {
  1077. *(x) = testSimpleFields{}
  1078. } else if yyct2 == codecSelferValueTypeMap19780 {
  1079. yyl2 := z.DecReadMapStart()
  1080. if yyl2 == 0 {
  1081. } else {
  1082. x.codecDecodeSelfFromMap(yyl2, d)
  1083. }
  1084. z.DecReadMapEnd()
  1085. } else if yyct2 == codecSelferValueTypeArray19780 {
  1086. yyl2 := z.DecReadArrayStart()
  1087. if yyl2 != 0 {
  1088. x.codecDecodeSelfFromArray(yyl2, d)
  1089. }
  1090. z.DecReadArrayEnd()
  1091. } else {
  1092. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1093. }
  1094. }
  1095. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1096. var h codecSelfer19780
  1097. z, r := GenHelperDecoder(d)
  1098. _, _, _ = h, z, r
  1099. var yyhl3 bool = l >= 0
  1100. for yyj3 := 0; ; yyj3++ {
  1101. if yyhl3 {
  1102. if yyj3 >= l {
  1103. break
  1104. }
  1105. } else {
  1106. if r.CheckBreak() {
  1107. break
  1108. }
  1109. }
  1110. z.DecReadMapElemKey()
  1111. yys3 := z.StringView(r.DecodeStringAsBytes())
  1112. z.DecReadMapElemValue()
  1113. switch yys3 {
  1114. case "S":
  1115. x.S = (string)(string(r.DecodeStringAsBytes()))
  1116. case "I64":
  1117. x.I64 = (int64)(r.DecodeInt64())
  1118. case "I8":
  1119. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1120. case "Ui64":
  1121. x.Ui64 = (uint64)(r.DecodeUint64())
  1122. case "Ui8":
  1123. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1124. case "F64":
  1125. x.F64 = (float64)(r.DecodeFloat64())
  1126. case "F32":
  1127. x.F32 = (float32)(z.DecDecodeFloat32())
  1128. case "B":
  1129. x.B = (bool)(r.DecodeBool())
  1130. case "Sslice":
  1131. z.F.DecSliceStringX(&x.Sslice, d)
  1132. case "I16slice":
  1133. z.F.DecSliceInt16X(&x.I16slice, d)
  1134. case "Ui64slice":
  1135. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1136. case "Ui8slice":
  1137. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1138. case "Bslice":
  1139. z.F.DecSliceBoolX(&x.Bslice, d)
  1140. case "Iptrslice":
  1141. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1142. case "WrapSliceInt64":
  1143. x.WrapSliceInt64.CodecDecodeSelf(d)
  1144. case "WrapSliceString":
  1145. x.WrapSliceString.CodecDecodeSelf(d)
  1146. case "Msi64":
  1147. z.F.DecMapStringInt64X(&x.Msi64, d)
  1148. default:
  1149. z.DecStructFieldNotFound(-1, yys3)
  1150. } // end switch yys3
  1151. } // end for yyj3
  1152. }
  1153. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1154. var h codecSelfer19780
  1155. z, r := GenHelperDecoder(d)
  1156. _, _, _ = h, z, r
  1157. var yyj28 int
  1158. var yyb28 bool
  1159. var yyhl28 bool = l >= 0
  1160. yyj28++
  1161. if yyhl28 {
  1162. yyb28 = yyj28 > l
  1163. } else {
  1164. yyb28 = r.CheckBreak()
  1165. }
  1166. if yyb28 {
  1167. z.DecReadArrayEnd()
  1168. return
  1169. }
  1170. z.DecReadArrayElem()
  1171. x.S = (string)(string(r.DecodeStringAsBytes()))
  1172. yyj28++
  1173. if yyhl28 {
  1174. yyb28 = yyj28 > l
  1175. } else {
  1176. yyb28 = r.CheckBreak()
  1177. }
  1178. if yyb28 {
  1179. z.DecReadArrayEnd()
  1180. return
  1181. }
  1182. z.DecReadArrayElem()
  1183. x.I64 = (int64)(r.DecodeInt64())
  1184. yyj28++
  1185. if yyhl28 {
  1186. yyb28 = yyj28 > l
  1187. } else {
  1188. yyb28 = r.CheckBreak()
  1189. }
  1190. if yyb28 {
  1191. z.DecReadArrayEnd()
  1192. return
  1193. }
  1194. z.DecReadArrayElem()
  1195. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1196. yyj28++
  1197. if yyhl28 {
  1198. yyb28 = yyj28 > l
  1199. } else {
  1200. yyb28 = r.CheckBreak()
  1201. }
  1202. if yyb28 {
  1203. z.DecReadArrayEnd()
  1204. return
  1205. }
  1206. z.DecReadArrayElem()
  1207. x.Ui64 = (uint64)(r.DecodeUint64())
  1208. yyj28++
  1209. if yyhl28 {
  1210. yyb28 = yyj28 > l
  1211. } else {
  1212. yyb28 = r.CheckBreak()
  1213. }
  1214. if yyb28 {
  1215. z.DecReadArrayEnd()
  1216. return
  1217. }
  1218. z.DecReadArrayElem()
  1219. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1220. yyj28++
  1221. if yyhl28 {
  1222. yyb28 = yyj28 > l
  1223. } else {
  1224. yyb28 = r.CheckBreak()
  1225. }
  1226. if yyb28 {
  1227. z.DecReadArrayEnd()
  1228. return
  1229. }
  1230. z.DecReadArrayElem()
  1231. x.F64 = (float64)(r.DecodeFloat64())
  1232. yyj28++
  1233. if yyhl28 {
  1234. yyb28 = yyj28 > l
  1235. } else {
  1236. yyb28 = r.CheckBreak()
  1237. }
  1238. if yyb28 {
  1239. z.DecReadArrayEnd()
  1240. return
  1241. }
  1242. z.DecReadArrayElem()
  1243. x.F32 = (float32)(z.DecDecodeFloat32())
  1244. yyj28++
  1245. if yyhl28 {
  1246. yyb28 = yyj28 > l
  1247. } else {
  1248. yyb28 = r.CheckBreak()
  1249. }
  1250. if yyb28 {
  1251. z.DecReadArrayEnd()
  1252. return
  1253. }
  1254. z.DecReadArrayElem()
  1255. x.B = (bool)(r.DecodeBool())
  1256. yyj28++
  1257. if yyhl28 {
  1258. yyb28 = yyj28 > l
  1259. } else {
  1260. yyb28 = r.CheckBreak()
  1261. }
  1262. if yyb28 {
  1263. z.DecReadArrayEnd()
  1264. return
  1265. }
  1266. z.DecReadArrayElem()
  1267. z.F.DecSliceStringX(&x.Sslice, d)
  1268. yyj28++
  1269. if yyhl28 {
  1270. yyb28 = yyj28 > l
  1271. } else {
  1272. yyb28 = r.CheckBreak()
  1273. }
  1274. if yyb28 {
  1275. z.DecReadArrayEnd()
  1276. return
  1277. }
  1278. z.DecReadArrayElem()
  1279. z.F.DecSliceInt16X(&x.I16slice, d)
  1280. yyj28++
  1281. if yyhl28 {
  1282. yyb28 = yyj28 > l
  1283. } else {
  1284. yyb28 = r.CheckBreak()
  1285. }
  1286. if yyb28 {
  1287. z.DecReadArrayEnd()
  1288. return
  1289. }
  1290. z.DecReadArrayElem()
  1291. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1292. yyj28++
  1293. if yyhl28 {
  1294. yyb28 = yyj28 > l
  1295. } else {
  1296. yyb28 = r.CheckBreak()
  1297. }
  1298. if yyb28 {
  1299. z.DecReadArrayEnd()
  1300. return
  1301. }
  1302. z.DecReadArrayElem()
  1303. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1304. yyj28++
  1305. if yyhl28 {
  1306. yyb28 = yyj28 > l
  1307. } else {
  1308. yyb28 = r.CheckBreak()
  1309. }
  1310. if yyb28 {
  1311. z.DecReadArrayEnd()
  1312. return
  1313. }
  1314. z.DecReadArrayElem()
  1315. z.F.DecSliceBoolX(&x.Bslice, d)
  1316. yyj28++
  1317. if yyhl28 {
  1318. yyb28 = yyj28 > l
  1319. } else {
  1320. yyb28 = r.CheckBreak()
  1321. }
  1322. if yyb28 {
  1323. z.DecReadArrayEnd()
  1324. return
  1325. }
  1326. z.DecReadArrayElem()
  1327. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1328. yyj28++
  1329. if yyhl28 {
  1330. yyb28 = yyj28 > l
  1331. } else {
  1332. yyb28 = r.CheckBreak()
  1333. }
  1334. if yyb28 {
  1335. z.DecReadArrayEnd()
  1336. return
  1337. }
  1338. z.DecReadArrayElem()
  1339. x.WrapSliceInt64.CodecDecodeSelf(d)
  1340. yyj28++
  1341. if yyhl28 {
  1342. yyb28 = yyj28 > l
  1343. } else {
  1344. yyb28 = r.CheckBreak()
  1345. }
  1346. if yyb28 {
  1347. z.DecReadArrayEnd()
  1348. return
  1349. }
  1350. z.DecReadArrayElem()
  1351. x.WrapSliceString.CodecDecodeSelf(d)
  1352. yyj28++
  1353. if yyhl28 {
  1354. yyb28 = yyj28 > l
  1355. } else {
  1356. yyb28 = r.CheckBreak()
  1357. }
  1358. if yyb28 {
  1359. z.DecReadArrayEnd()
  1360. return
  1361. }
  1362. z.DecReadArrayElem()
  1363. z.F.DecMapStringInt64X(&x.Msi64, d)
  1364. for {
  1365. yyj28++
  1366. if yyhl28 {
  1367. yyb28 = yyj28 > l
  1368. } else {
  1369. yyb28 = r.CheckBreak()
  1370. }
  1371. if yyb28 {
  1372. break
  1373. }
  1374. z.DecReadArrayElem()
  1375. z.DecStructFieldNotFound(yyj28-1, "")
  1376. }
  1377. }
  1378. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  1379. var h codecSelfer19780
  1380. z, r := GenHelperEncoder(e)
  1381. _, _, _ = h, z, r
  1382. if x == nil {
  1383. r.EncodeNil()
  1384. } else {
  1385. yysep2 := !z.EncBinary()
  1386. yy2arr2 := z.EncBasicHandle().StructToArray
  1387. _, _ = yysep2, yy2arr2
  1388. const yyr2 bool = false // struct tag has 'toArray'
  1389. var yyn54 bool = x.Nint64 == nil
  1390. if yyr2 || yy2arr2 {
  1391. z.EncWriteArrayStart(52)
  1392. z.EncWriteArrayElem()
  1393. if z.EncBasicHandle().StringToRaw {
  1394. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1395. } else {
  1396. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1397. }
  1398. z.EncWriteArrayElem()
  1399. r.EncodeInt(int64(x.I64))
  1400. z.EncWriteArrayElem()
  1401. r.EncodeInt(int64(x.I32))
  1402. z.EncWriteArrayElem()
  1403. r.EncodeInt(int64(x.I16))
  1404. z.EncWriteArrayElem()
  1405. r.EncodeInt(int64(x.I8))
  1406. z.EncWriteArrayElem()
  1407. r.EncodeInt(int64(x.I64n))
  1408. z.EncWriteArrayElem()
  1409. r.EncodeInt(int64(x.I32n))
  1410. z.EncWriteArrayElem()
  1411. r.EncodeInt(int64(x.I16n))
  1412. z.EncWriteArrayElem()
  1413. r.EncodeInt(int64(x.I8n))
  1414. z.EncWriteArrayElem()
  1415. r.EncodeUint(uint64(x.Ui64))
  1416. z.EncWriteArrayElem()
  1417. r.EncodeUint(uint64(x.Ui32))
  1418. z.EncWriteArrayElem()
  1419. r.EncodeUint(uint64(x.Ui16))
  1420. z.EncWriteArrayElem()
  1421. r.EncodeUint(uint64(x.Ui8))
  1422. z.EncWriteArrayElem()
  1423. r.EncodeFloat64(float64(x.F64))
  1424. z.EncWriteArrayElem()
  1425. r.EncodeFloat32(float32(x.F32))
  1426. z.EncWriteArrayElem()
  1427. r.EncodeBool(bool(x.B))
  1428. z.EncWriteArrayElem()
  1429. r.EncodeUint(uint64(x.By))
  1430. z.EncWriteArrayElem()
  1431. if x.Sslice == nil {
  1432. r.EncodeNil()
  1433. } else {
  1434. z.F.EncSliceStringV(x.Sslice, e)
  1435. } // end block: if x.Sslice slice == nil
  1436. z.EncWriteArrayElem()
  1437. if x.I64slice == nil {
  1438. r.EncodeNil()
  1439. } else {
  1440. z.F.EncSliceInt64V(x.I64slice, e)
  1441. } // end block: if x.I64slice slice == nil
  1442. z.EncWriteArrayElem()
  1443. if x.I16slice == nil {
  1444. r.EncodeNil()
  1445. } else {
  1446. z.F.EncSliceInt16V(x.I16slice, e)
  1447. } // end block: if x.I16slice slice == nil
  1448. z.EncWriteArrayElem()
  1449. if x.Ui64slice == nil {
  1450. r.EncodeNil()
  1451. } else {
  1452. z.F.EncSliceUint64V(x.Ui64slice, e)
  1453. } // end block: if x.Ui64slice slice == nil
  1454. z.EncWriteArrayElem()
  1455. if x.Ui8slice == nil {
  1456. r.EncodeNil()
  1457. } else {
  1458. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1459. } // end block: if x.Ui8slice slice == nil
  1460. z.EncWriteArrayElem()
  1461. if x.Bslice == nil {
  1462. r.EncodeNil()
  1463. } else {
  1464. z.F.EncSliceBoolV(x.Bslice, e)
  1465. } // end block: if x.Bslice slice == nil
  1466. z.EncWriteArrayElem()
  1467. if x.Byslice == nil {
  1468. r.EncodeNil()
  1469. } else {
  1470. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1471. } // end block: if x.Byslice slice == nil
  1472. z.EncWriteArrayElem()
  1473. if x.BytesSlice == nil {
  1474. r.EncodeNil()
  1475. } else {
  1476. z.F.EncSliceBytesV(x.BytesSlice, e)
  1477. } // end block: if x.BytesSlice slice == nil
  1478. z.EncWriteArrayElem()
  1479. if x.Iptrslice == nil {
  1480. r.EncodeNil()
  1481. } else {
  1482. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1483. } // end block: if x.Iptrslice slice == nil
  1484. z.EncWriteArrayElem()
  1485. x.WrapSliceInt64.CodecEncodeSelf(e)
  1486. z.EncWriteArrayElem()
  1487. x.WrapSliceString.CodecEncodeSelf(e)
  1488. z.EncWriteArrayElem()
  1489. if x.Msi64 == nil {
  1490. r.EncodeNil()
  1491. } else {
  1492. z.F.EncMapStringInt64V(x.Msi64, e)
  1493. } // end block: if x.Msi64 map == nil
  1494. z.EncWriteArrayElem()
  1495. if x.Msbytes == nil {
  1496. r.EncodeNil()
  1497. } else {
  1498. z.F.EncMapStringBytesV(x.Msbytes, e)
  1499. } // end block: if x.Msbytes map == nil
  1500. z.EncWriteArrayElem()
  1501. yy85 := &x.Simplef
  1502. yy85.CodecEncodeSelf(e)
  1503. z.EncWriteArrayElem()
  1504. if x.SstrUi64T == nil {
  1505. r.EncodeNil()
  1506. } else {
  1507. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1508. } // end block: if x.SstrUi64T slice == nil
  1509. z.EncWriteArrayElem()
  1510. if x.MstrUi64T == nil {
  1511. r.EncodeNil()
  1512. } else {
  1513. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1514. } // end block: if x.MstrUi64T map == nil
  1515. z.EncWriteArrayElem()
  1516. if z.EncBasicHandle().StringToRaw {
  1517. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1518. } else {
  1519. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1520. }
  1521. z.EncWriteArrayElem()
  1522. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1523. z.EncWriteArrayElem()
  1524. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1525. z.EncWriteArrayElem()
  1526. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1527. z.EncWriteArrayElem()
  1528. if x.AnonInTestStruc.ASslice == nil {
  1529. r.EncodeNil()
  1530. } else {
  1531. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1532. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  1533. z.EncWriteArrayElem()
  1534. if x.AnonInTestStruc.AI64slice == nil {
  1535. r.EncodeNil()
  1536. } else {
  1537. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1538. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  1539. z.EncWriteArrayElem()
  1540. if x.AnonInTestStruc.AUi64slice == nil {
  1541. r.EncodeNil()
  1542. } else {
  1543. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1544. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  1545. z.EncWriteArrayElem()
  1546. if x.AnonInTestStruc.AF64slice == nil {
  1547. r.EncodeNil()
  1548. } else {
  1549. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1550. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  1551. z.EncWriteArrayElem()
  1552. if x.AnonInTestStruc.AF32slice == nil {
  1553. r.EncodeNil()
  1554. } else {
  1555. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1556. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  1557. z.EncWriteArrayElem()
  1558. if x.AnonInTestStruc.AMSU16 == nil {
  1559. r.EncodeNil()
  1560. } else {
  1561. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1562. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  1563. z.EncWriteArrayElem()
  1564. yy99 := &x.AnonInTestStruc.AI64arr0
  1565. h.encArray0int64((*[0]int64)(yy99), e)
  1566. z.EncWriteArrayElem()
  1567. if x.AnonInTestStruc.AI64slice0 == nil {
  1568. r.EncodeNil()
  1569. } else {
  1570. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  1571. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  1572. z.EncWriteArrayElem()
  1573. if x.AnonInTestStruc.AUi64sliceN == nil {
  1574. r.EncodeNil()
  1575. } else {
  1576. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  1577. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  1578. z.EncWriteArrayElem()
  1579. if x.AnonInTestStruc.AMSU16N == nil {
  1580. r.EncodeNil()
  1581. } else {
  1582. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  1583. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  1584. z.EncWriteArrayElem()
  1585. if x.AnonInTestStruc.AMSU16E == nil {
  1586. r.EncodeNil()
  1587. } else {
  1588. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  1589. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  1590. z.EncWriteArrayElem()
  1591. yy105 := &x.NotAnon
  1592. yy105.CodecEncodeSelf(e)
  1593. z.EncWriteArrayElem()
  1594. if x.Nmap == nil {
  1595. r.EncodeNil()
  1596. } else {
  1597. z.F.EncMapStringBoolV(x.Nmap, e)
  1598. } // end block: if x.Nmap map == nil
  1599. z.EncWriteArrayElem()
  1600. if x.Nslice == nil {
  1601. r.EncodeNil()
  1602. } else {
  1603. r.EncodeStringBytesRaw([]byte(x.Nslice))
  1604. } // end block: if x.Nslice slice == nil
  1605. if yyn54 {
  1606. z.EncWriteArrayElem()
  1607. r.EncodeNil()
  1608. } else {
  1609. z.EncWriteArrayElem()
  1610. yy109 := *x.Nint64
  1611. r.EncodeInt(int64(yy109))
  1612. }
  1613. z.EncWriteArrayEnd()
  1614. } else {
  1615. z.EncWriteMapStart(52)
  1616. z.EncWriteMapElemKey()
  1617. if z.IsJSONHandle() {
  1618. z.WriteStr("\"S\"")
  1619. } else {
  1620. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1621. }
  1622. z.EncWriteMapElemValue()
  1623. if z.EncBasicHandle().StringToRaw {
  1624. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1625. } else {
  1626. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1627. }
  1628. z.EncWriteMapElemKey()
  1629. if z.IsJSONHandle() {
  1630. z.WriteStr("\"I64\"")
  1631. } else {
  1632. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1633. }
  1634. z.EncWriteMapElemValue()
  1635. r.EncodeInt(int64(x.I64))
  1636. z.EncWriteMapElemKey()
  1637. if z.IsJSONHandle() {
  1638. z.WriteStr("\"I32\"")
  1639. } else {
  1640. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  1641. }
  1642. z.EncWriteMapElemValue()
  1643. r.EncodeInt(int64(x.I32))
  1644. z.EncWriteMapElemKey()
  1645. if z.IsJSONHandle() {
  1646. z.WriteStr("\"I16\"")
  1647. } else {
  1648. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  1649. }
  1650. z.EncWriteMapElemValue()
  1651. r.EncodeInt(int64(x.I16))
  1652. z.EncWriteMapElemKey()
  1653. if z.IsJSONHandle() {
  1654. z.WriteStr("\"I8\"")
  1655. } else {
  1656. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1657. }
  1658. z.EncWriteMapElemValue()
  1659. r.EncodeInt(int64(x.I8))
  1660. z.EncWriteMapElemKey()
  1661. if z.IsJSONHandle() {
  1662. z.WriteStr("\"I64n\"")
  1663. } else {
  1664. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  1665. }
  1666. z.EncWriteMapElemValue()
  1667. r.EncodeInt(int64(x.I64n))
  1668. z.EncWriteMapElemKey()
  1669. if z.IsJSONHandle() {
  1670. z.WriteStr("\"I32n\"")
  1671. } else {
  1672. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  1673. }
  1674. z.EncWriteMapElemValue()
  1675. r.EncodeInt(int64(x.I32n))
  1676. z.EncWriteMapElemKey()
  1677. if z.IsJSONHandle() {
  1678. z.WriteStr("\"I16n\"")
  1679. } else {
  1680. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  1681. }
  1682. z.EncWriteMapElemValue()
  1683. r.EncodeInt(int64(x.I16n))
  1684. z.EncWriteMapElemKey()
  1685. if z.IsJSONHandle() {
  1686. z.WriteStr("\"I8n\"")
  1687. } else {
  1688. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  1689. }
  1690. z.EncWriteMapElemValue()
  1691. r.EncodeInt(int64(x.I8n))
  1692. z.EncWriteMapElemKey()
  1693. if z.IsJSONHandle() {
  1694. z.WriteStr("\"Ui64\"")
  1695. } else {
  1696. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1697. }
  1698. z.EncWriteMapElemValue()
  1699. r.EncodeUint(uint64(x.Ui64))
  1700. z.EncWriteMapElemKey()
  1701. if z.IsJSONHandle() {
  1702. z.WriteStr("\"Ui32\"")
  1703. } else {
  1704. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  1705. }
  1706. z.EncWriteMapElemValue()
  1707. r.EncodeUint(uint64(x.Ui32))
  1708. z.EncWriteMapElemKey()
  1709. if z.IsJSONHandle() {
  1710. z.WriteStr("\"Ui16\"")
  1711. } else {
  1712. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  1713. }
  1714. z.EncWriteMapElemValue()
  1715. r.EncodeUint(uint64(x.Ui16))
  1716. z.EncWriteMapElemKey()
  1717. if z.IsJSONHandle() {
  1718. z.WriteStr("\"Ui8\"")
  1719. } else {
  1720. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1721. }
  1722. z.EncWriteMapElemValue()
  1723. r.EncodeUint(uint64(x.Ui8))
  1724. z.EncWriteMapElemKey()
  1725. if z.IsJSONHandle() {
  1726. z.WriteStr("\"F64\"")
  1727. } else {
  1728. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1729. }
  1730. z.EncWriteMapElemValue()
  1731. r.EncodeFloat64(float64(x.F64))
  1732. z.EncWriteMapElemKey()
  1733. if z.IsJSONHandle() {
  1734. z.WriteStr("\"F32\"")
  1735. } else {
  1736. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1737. }
  1738. z.EncWriteMapElemValue()
  1739. r.EncodeFloat32(float32(x.F32))
  1740. z.EncWriteMapElemKey()
  1741. if z.IsJSONHandle() {
  1742. z.WriteStr("\"B\"")
  1743. } else {
  1744. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1745. }
  1746. z.EncWriteMapElemValue()
  1747. r.EncodeBool(bool(x.B))
  1748. z.EncWriteMapElemKey()
  1749. if z.IsJSONHandle() {
  1750. z.WriteStr("\"By\"")
  1751. } else {
  1752. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  1753. }
  1754. z.EncWriteMapElemValue()
  1755. r.EncodeUint(uint64(x.By))
  1756. z.EncWriteMapElemKey()
  1757. if z.IsJSONHandle() {
  1758. z.WriteStr("\"Sslice\"")
  1759. } else {
  1760. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1761. }
  1762. z.EncWriteMapElemValue()
  1763. if x.Sslice == nil {
  1764. r.EncodeNil()
  1765. } else {
  1766. z.F.EncSliceStringV(x.Sslice, e)
  1767. } // end block: if x.Sslice slice == nil
  1768. z.EncWriteMapElemKey()
  1769. if z.IsJSONHandle() {
  1770. z.WriteStr("\"I64slice\"")
  1771. } else {
  1772. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  1773. }
  1774. z.EncWriteMapElemValue()
  1775. if x.I64slice == nil {
  1776. r.EncodeNil()
  1777. } else {
  1778. z.F.EncSliceInt64V(x.I64slice, e)
  1779. } // end block: if x.I64slice slice == nil
  1780. z.EncWriteMapElemKey()
  1781. if z.IsJSONHandle() {
  1782. z.WriteStr("\"I16slice\"")
  1783. } else {
  1784. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1785. }
  1786. z.EncWriteMapElemValue()
  1787. if x.I16slice == nil {
  1788. r.EncodeNil()
  1789. } else {
  1790. z.F.EncSliceInt16V(x.I16slice, e)
  1791. } // end block: if x.I16slice slice == nil
  1792. z.EncWriteMapElemKey()
  1793. if z.IsJSONHandle() {
  1794. z.WriteStr("\"Ui64slice\"")
  1795. } else {
  1796. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1797. }
  1798. z.EncWriteMapElemValue()
  1799. if x.Ui64slice == nil {
  1800. r.EncodeNil()
  1801. } else {
  1802. z.F.EncSliceUint64V(x.Ui64slice, e)
  1803. } // end block: if x.Ui64slice slice == nil
  1804. z.EncWriteMapElemKey()
  1805. if z.IsJSONHandle() {
  1806. z.WriteStr("\"Ui8slice\"")
  1807. } else {
  1808. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1809. }
  1810. z.EncWriteMapElemValue()
  1811. if x.Ui8slice == nil {
  1812. r.EncodeNil()
  1813. } else {
  1814. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1815. } // end block: if x.Ui8slice slice == nil
  1816. z.EncWriteMapElemKey()
  1817. if z.IsJSONHandle() {
  1818. z.WriteStr("\"Bslice\"")
  1819. } else {
  1820. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1821. }
  1822. z.EncWriteMapElemValue()
  1823. if x.Bslice == nil {
  1824. r.EncodeNil()
  1825. } else {
  1826. z.F.EncSliceBoolV(x.Bslice, e)
  1827. } // end block: if x.Bslice slice == nil
  1828. z.EncWriteMapElemKey()
  1829. if z.IsJSONHandle() {
  1830. z.WriteStr("\"Byslice\"")
  1831. } else {
  1832. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  1833. }
  1834. z.EncWriteMapElemValue()
  1835. if x.Byslice == nil {
  1836. r.EncodeNil()
  1837. } else {
  1838. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1839. } // end block: if x.Byslice slice == nil
  1840. z.EncWriteMapElemKey()
  1841. if z.IsJSONHandle() {
  1842. z.WriteStr("\"BytesSlice\"")
  1843. } else {
  1844. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  1845. }
  1846. z.EncWriteMapElemValue()
  1847. if x.BytesSlice == nil {
  1848. r.EncodeNil()
  1849. } else {
  1850. z.F.EncSliceBytesV(x.BytesSlice, e)
  1851. } // end block: if x.BytesSlice slice == nil
  1852. z.EncWriteMapElemKey()
  1853. if z.IsJSONHandle() {
  1854. z.WriteStr("\"Iptrslice\"")
  1855. } else {
  1856. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1857. }
  1858. z.EncWriteMapElemValue()
  1859. if x.Iptrslice == nil {
  1860. r.EncodeNil()
  1861. } else {
  1862. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1863. } // end block: if x.Iptrslice slice == nil
  1864. z.EncWriteMapElemKey()
  1865. if z.IsJSONHandle() {
  1866. z.WriteStr("\"WrapSliceInt64\"")
  1867. } else {
  1868. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1869. }
  1870. z.EncWriteMapElemValue()
  1871. x.WrapSliceInt64.CodecEncodeSelf(e)
  1872. z.EncWriteMapElemKey()
  1873. if z.IsJSONHandle() {
  1874. z.WriteStr("\"WrapSliceString\"")
  1875. } else {
  1876. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1877. }
  1878. z.EncWriteMapElemValue()
  1879. x.WrapSliceString.CodecEncodeSelf(e)
  1880. z.EncWriteMapElemKey()
  1881. if z.IsJSONHandle() {
  1882. z.WriteStr("\"Msi64\"")
  1883. } else {
  1884. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1885. }
  1886. z.EncWriteMapElemValue()
  1887. if x.Msi64 == nil {
  1888. r.EncodeNil()
  1889. } else {
  1890. z.F.EncMapStringInt64V(x.Msi64, e)
  1891. } // end block: if x.Msi64 map == nil
  1892. z.EncWriteMapElemKey()
  1893. if z.IsJSONHandle() {
  1894. z.WriteStr("\"Msbytes\"")
  1895. } else {
  1896. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  1897. }
  1898. z.EncWriteMapElemValue()
  1899. if x.Msbytes == nil {
  1900. r.EncodeNil()
  1901. } else {
  1902. z.F.EncMapStringBytesV(x.Msbytes, e)
  1903. } // end block: if x.Msbytes map == nil
  1904. z.EncWriteMapElemKey()
  1905. if z.IsJSONHandle() {
  1906. z.WriteStr("\"Simplef\"")
  1907. } else {
  1908. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  1909. }
  1910. z.EncWriteMapElemValue()
  1911. yy141 := &x.Simplef
  1912. yy141.CodecEncodeSelf(e)
  1913. z.EncWriteMapElemKey()
  1914. if z.IsJSONHandle() {
  1915. z.WriteStr("\"SstrUi64T\"")
  1916. } else {
  1917. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  1918. }
  1919. z.EncWriteMapElemValue()
  1920. if x.SstrUi64T == nil {
  1921. r.EncodeNil()
  1922. } else {
  1923. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1924. } // end block: if x.SstrUi64T slice == nil
  1925. z.EncWriteMapElemKey()
  1926. if z.IsJSONHandle() {
  1927. z.WriteStr("\"MstrUi64T\"")
  1928. } else {
  1929. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  1930. }
  1931. z.EncWriteMapElemValue()
  1932. if x.MstrUi64T == nil {
  1933. r.EncodeNil()
  1934. } else {
  1935. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1936. } // end block: if x.MstrUi64T map == nil
  1937. z.EncWriteMapElemKey()
  1938. if z.IsJSONHandle() {
  1939. z.WriteStr("\"AS\"")
  1940. } else {
  1941. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  1942. }
  1943. z.EncWriteMapElemValue()
  1944. if z.EncBasicHandle().StringToRaw {
  1945. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1946. } else {
  1947. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1948. }
  1949. z.EncWriteMapElemKey()
  1950. if z.IsJSONHandle() {
  1951. z.WriteStr("\"AI64\"")
  1952. } else {
  1953. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  1954. }
  1955. z.EncWriteMapElemValue()
  1956. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1957. z.EncWriteMapElemKey()
  1958. if z.IsJSONHandle() {
  1959. z.WriteStr("\"AI16\"")
  1960. } else {
  1961. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  1962. }
  1963. z.EncWriteMapElemValue()
  1964. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1965. z.EncWriteMapElemKey()
  1966. if z.IsJSONHandle() {
  1967. z.WriteStr("\"AUi64\"")
  1968. } else {
  1969. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  1970. }
  1971. z.EncWriteMapElemValue()
  1972. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1973. z.EncWriteMapElemKey()
  1974. if z.IsJSONHandle() {
  1975. z.WriteStr("\"ASslice\"")
  1976. } else {
  1977. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  1978. }
  1979. z.EncWriteMapElemValue()
  1980. if x.AnonInTestStruc.ASslice == nil {
  1981. r.EncodeNil()
  1982. } else {
  1983. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1984. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  1985. z.EncWriteMapElemKey()
  1986. if z.IsJSONHandle() {
  1987. z.WriteStr("\"AI64slice\"")
  1988. } else {
  1989. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  1990. }
  1991. z.EncWriteMapElemValue()
  1992. if x.AnonInTestStruc.AI64slice == nil {
  1993. r.EncodeNil()
  1994. } else {
  1995. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1996. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  1997. z.EncWriteMapElemKey()
  1998. if z.IsJSONHandle() {
  1999. z.WriteStr("\"AUi64slice\"")
  2000. } else {
  2001. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  2002. }
  2003. z.EncWriteMapElemValue()
  2004. if x.AnonInTestStruc.AUi64slice == nil {
  2005. r.EncodeNil()
  2006. } else {
  2007. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  2008. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  2009. z.EncWriteMapElemKey()
  2010. if z.IsJSONHandle() {
  2011. z.WriteStr("\"AF64slice\"")
  2012. } else {
  2013. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  2014. }
  2015. z.EncWriteMapElemValue()
  2016. if x.AnonInTestStruc.AF64slice == nil {
  2017. r.EncodeNil()
  2018. } else {
  2019. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  2020. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  2021. z.EncWriteMapElemKey()
  2022. if z.IsJSONHandle() {
  2023. z.WriteStr("\"AF32slice\"")
  2024. } else {
  2025. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  2026. }
  2027. z.EncWriteMapElemValue()
  2028. if x.AnonInTestStruc.AF32slice == nil {
  2029. r.EncodeNil()
  2030. } else {
  2031. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  2032. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  2033. z.EncWriteMapElemKey()
  2034. if z.IsJSONHandle() {
  2035. z.WriteStr("\"AMSU16\"")
  2036. } else {
  2037. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  2038. }
  2039. z.EncWriteMapElemValue()
  2040. if x.AnonInTestStruc.AMSU16 == nil {
  2041. r.EncodeNil()
  2042. } else {
  2043. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  2044. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  2045. z.EncWriteMapElemKey()
  2046. if z.IsJSONHandle() {
  2047. z.WriteStr("\"AI64arr0\"")
  2048. } else {
  2049. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  2050. }
  2051. z.EncWriteMapElemValue()
  2052. yy155 := &x.AnonInTestStruc.AI64arr0
  2053. h.encArray0int64((*[0]int64)(yy155), e)
  2054. z.EncWriteMapElemKey()
  2055. if z.IsJSONHandle() {
  2056. z.WriteStr("\"AI64slice0\"")
  2057. } else {
  2058. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  2059. }
  2060. z.EncWriteMapElemValue()
  2061. if x.AnonInTestStruc.AI64slice0 == nil {
  2062. r.EncodeNil()
  2063. } else {
  2064. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  2065. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  2066. z.EncWriteMapElemKey()
  2067. if z.IsJSONHandle() {
  2068. z.WriteStr("\"AUi64sliceN\"")
  2069. } else {
  2070. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  2071. }
  2072. z.EncWriteMapElemValue()
  2073. if x.AnonInTestStruc.AUi64sliceN == nil {
  2074. r.EncodeNil()
  2075. } else {
  2076. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  2077. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  2078. z.EncWriteMapElemKey()
  2079. if z.IsJSONHandle() {
  2080. z.WriteStr("\"AMSU16N\"")
  2081. } else {
  2082. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  2083. }
  2084. z.EncWriteMapElemValue()
  2085. if x.AnonInTestStruc.AMSU16N == nil {
  2086. r.EncodeNil()
  2087. } else {
  2088. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  2089. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  2090. z.EncWriteMapElemKey()
  2091. if z.IsJSONHandle() {
  2092. z.WriteStr("\"AMSU16E\"")
  2093. } else {
  2094. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  2095. }
  2096. z.EncWriteMapElemValue()
  2097. if x.AnonInTestStruc.AMSU16E == nil {
  2098. r.EncodeNil()
  2099. } else {
  2100. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  2101. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  2102. z.EncWriteMapElemKey()
  2103. if z.IsJSONHandle() {
  2104. z.WriteStr("\"NotAnon\"")
  2105. } else {
  2106. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  2107. }
  2108. z.EncWriteMapElemValue()
  2109. yy161 := &x.NotAnon
  2110. yy161.CodecEncodeSelf(e)
  2111. z.EncWriteMapElemKey()
  2112. if z.IsJSONHandle() {
  2113. z.WriteStr("\"Nmap\"")
  2114. } else {
  2115. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  2116. }
  2117. z.EncWriteMapElemValue()
  2118. if x.Nmap == nil {
  2119. r.EncodeNil()
  2120. } else {
  2121. z.F.EncMapStringBoolV(x.Nmap, e)
  2122. } // end block: if x.Nmap map == nil
  2123. z.EncWriteMapElemKey()
  2124. if z.IsJSONHandle() {
  2125. z.WriteStr("\"Nslice\"")
  2126. } else {
  2127. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  2128. }
  2129. z.EncWriteMapElemValue()
  2130. if x.Nslice == nil {
  2131. r.EncodeNil()
  2132. } else {
  2133. r.EncodeStringBytesRaw([]byte(x.Nslice))
  2134. } // end block: if x.Nslice slice == nil
  2135. z.EncWriteMapElemKey()
  2136. if z.IsJSONHandle() {
  2137. z.WriteStr("\"Nint64\"")
  2138. } else {
  2139. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  2140. }
  2141. z.EncWriteMapElemValue()
  2142. if yyn54 {
  2143. r.EncodeNil()
  2144. } else {
  2145. yy165 := *x.Nint64
  2146. r.EncodeInt(int64(yy165))
  2147. }
  2148. z.EncWriteMapEnd()
  2149. }
  2150. }
  2151. }
  2152. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  2153. var h codecSelfer19780
  2154. z, r := GenHelperDecoder(d)
  2155. _, _, _ = h, z, r
  2156. yyct2 := r.ContainerType()
  2157. if yyct2 == codecSelferValueTypeNil19780 {
  2158. *(x) = TestStrucCommon{}
  2159. } else if yyct2 == codecSelferValueTypeMap19780 {
  2160. yyl2 := z.DecReadMapStart()
  2161. if yyl2 == 0 {
  2162. } else {
  2163. x.codecDecodeSelfFromMap(yyl2, d)
  2164. }
  2165. z.DecReadMapEnd()
  2166. } else if yyct2 == codecSelferValueTypeArray19780 {
  2167. yyl2 := z.DecReadArrayStart()
  2168. if yyl2 != 0 {
  2169. x.codecDecodeSelfFromArray(yyl2, d)
  2170. }
  2171. z.DecReadArrayEnd()
  2172. } else {
  2173. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2174. }
  2175. }
  2176. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  2177. var h codecSelfer19780
  2178. z, r := GenHelperDecoder(d)
  2179. _, _, _ = h, z, r
  2180. var yyhl3 bool = l >= 0
  2181. for yyj3 := 0; ; yyj3++ {
  2182. if yyhl3 {
  2183. if yyj3 >= l {
  2184. break
  2185. }
  2186. } else {
  2187. if r.CheckBreak() {
  2188. break
  2189. }
  2190. }
  2191. z.DecReadMapElemKey()
  2192. yys3 := z.StringView(r.DecodeStringAsBytes())
  2193. z.DecReadMapElemValue()
  2194. switch yys3 {
  2195. case "S":
  2196. x.S = (string)(string(r.DecodeStringAsBytes()))
  2197. case "I64":
  2198. x.I64 = (int64)(r.DecodeInt64())
  2199. case "I32":
  2200. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2201. case "I16":
  2202. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2203. case "I8":
  2204. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2205. case "I64n":
  2206. x.I64n = (int64)(r.DecodeInt64())
  2207. case "I32n":
  2208. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2209. case "I16n":
  2210. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2211. case "I8n":
  2212. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2213. case "Ui64":
  2214. x.Ui64 = (uint64)(r.DecodeUint64())
  2215. case "Ui32":
  2216. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2217. case "Ui16":
  2218. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2219. case "Ui8":
  2220. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2221. case "F64":
  2222. x.F64 = (float64)(r.DecodeFloat64())
  2223. case "F32":
  2224. x.F32 = (float32)(z.DecDecodeFloat32())
  2225. case "B":
  2226. x.B = (bool)(r.DecodeBool())
  2227. case "By":
  2228. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2229. case "Sslice":
  2230. z.F.DecSliceStringX(&x.Sslice, d)
  2231. case "I64slice":
  2232. z.F.DecSliceInt64X(&x.I64slice, d)
  2233. case "I16slice":
  2234. z.F.DecSliceInt16X(&x.I16slice, d)
  2235. case "Ui64slice":
  2236. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2237. case "Ui8slice":
  2238. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2239. case "Bslice":
  2240. z.F.DecSliceBoolX(&x.Bslice, d)
  2241. case "Byslice":
  2242. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2243. case "BytesSlice":
  2244. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2245. case "Iptrslice":
  2246. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2247. case "WrapSliceInt64":
  2248. x.WrapSliceInt64.CodecDecodeSelf(d)
  2249. case "WrapSliceString":
  2250. x.WrapSliceString.CodecDecodeSelf(d)
  2251. case "Msi64":
  2252. z.F.DecMapStringInt64X(&x.Msi64, d)
  2253. case "Msbytes":
  2254. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2255. case "Simplef":
  2256. x.Simplef.CodecDecodeSelf(d)
  2257. case "SstrUi64T":
  2258. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2259. case "MstrUi64T":
  2260. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2261. case "AS":
  2262. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2263. case "AI64":
  2264. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2265. case "AI16":
  2266. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2267. case "AUi64":
  2268. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2269. case "ASslice":
  2270. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2271. case "AI64slice":
  2272. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2273. case "AUi64slice":
  2274. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2275. case "AF64slice":
  2276. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2277. case "AF32slice":
  2278. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2279. case "AMSU16":
  2280. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2281. case "AI64arr0":
  2282. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2283. case "AI64slice0":
  2284. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2285. case "AUi64sliceN":
  2286. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2287. case "AMSU16N":
  2288. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2289. case "AMSU16E":
  2290. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2291. case "NotAnon":
  2292. x.NotAnon.CodecDecodeSelf(d)
  2293. case "Nmap":
  2294. z.F.DecMapStringBoolX(&x.Nmap, d)
  2295. case "Nslice":
  2296. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2297. case "Nint64":
  2298. if r.TryNil() {
  2299. if x.Nint64 != nil { // remove the if-true
  2300. x.Nint64 = nil
  2301. }
  2302. } else {
  2303. if x.Nint64 == nil {
  2304. x.Nint64 = new(int64)
  2305. }
  2306. *x.Nint64 = (int64)(r.DecodeInt64())
  2307. }
  2308. default:
  2309. z.DecStructFieldNotFound(-1, yys3)
  2310. } // end switch yys3
  2311. } // end for yyj3
  2312. }
  2313. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  2314. var h codecSelfer19780
  2315. z, r := GenHelperDecoder(d)
  2316. _, _, _ = h, z, r
  2317. var yyj83 int
  2318. var yyb83 bool
  2319. var yyhl83 bool = l >= 0
  2320. yyj83++
  2321. if yyhl83 {
  2322. yyb83 = yyj83 > l
  2323. } else {
  2324. yyb83 = r.CheckBreak()
  2325. }
  2326. if yyb83 {
  2327. z.DecReadArrayEnd()
  2328. return
  2329. }
  2330. z.DecReadArrayElem()
  2331. x.S = (string)(string(r.DecodeStringAsBytes()))
  2332. yyj83++
  2333. if yyhl83 {
  2334. yyb83 = yyj83 > l
  2335. } else {
  2336. yyb83 = r.CheckBreak()
  2337. }
  2338. if yyb83 {
  2339. z.DecReadArrayEnd()
  2340. return
  2341. }
  2342. z.DecReadArrayElem()
  2343. x.I64 = (int64)(r.DecodeInt64())
  2344. yyj83++
  2345. if yyhl83 {
  2346. yyb83 = yyj83 > l
  2347. } else {
  2348. yyb83 = r.CheckBreak()
  2349. }
  2350. if yyb83 {
  2351. z.DecReadArrayEnd()
  2352. return
  2353. }
  2354. z.DecReadArrayElem()
  2355. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2356. yyj83++
  2357. if yyhl83 {
  2358. yyb83 = yyj83 > l
  2359. } else {
  2360. yyb83 = r.CheckBreak()
  2361. }
  2362. if yyb83 {
  2363. z.DecReadArrayEnd()
  2364. return
  2365. }
  2366. z.DecReadArrayElem()
  2367. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2368. yyj83++
  2369. if yyhl83 {
  2370. yyb83 = yyj83 > l
  2371. } else {
  2372. yyb83 = r.CheckBreak()
  2373. }
  2374. if yyb83 {
  2375. z.DecReadArrayEnd()
  2376. return
  2377. }
  2378. z.DecReadArrayElem()
  2379. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2380. yyj83++
  2381. if yyhl83 {
  2382. yyb83 = yyj83 > l
  2383. } else {
  2384. yyb83 = r.CheckBreak()
  2385. }
  2386. if yyb83 {
  2387. z.DecReadArrayEnd()
  2388. return
  2389. }
  2390. z.DecReadArrayElem()
  2391. x.I64n = (int64)(r.DecodeInt64())
  2392. yyj83++
  2393. if yyhl83 {
  2394. yyb83 = yyj83 > l
  2395. } else {
  2396. yyb83 = r.CheckBreak()
  2397. }
  2398. if yyb83 {
  2399. z.DecReadArrayEnd()
  2400. return
  2401. }
  2402. z.DecReadArrayElem()
  2403. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2404. yyj83++
  2405. if yyhl83 {
  2406. yyb83 = yyj83 > l
  2407. } else {
  2408. yyb83 = r.CheckBreak()
  2409. }
  2410. if yyb83 {
  2411. z.DecReadArrayEnd()
  2412. return
  2413. }
  2414. z.DecReadArrayElem()
  2415. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2416. yyj83++
  2417. if yyhl83 {
  2418. yyb83 = yyj83 > l
  2419. } else {
  2420. yyb83 = r.CheckBreak()
  2421. }
  2422. if yyb83 {
  2423. z.DecReadArrayEnd()
  2424. return
  2425. }
  2426. z.DecReadArrayElem()
  2427. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2428. yyj83++
  2429. if yyhl83 {
  2430. yyb83 = yyj83 > l
  2431. } else {
  2432. yyb83 = r.CheckBreak()
  2433. }
  2434. if yyb83 {
  2435. z.DecReadArrayEnd()
  2436. return
  2437. }
  2438. z.DecReadArrayElem()
  2439. x.Ui64 = (uint64)(r.DecodeUint64())
  2440. yyj83++
  2441. if yyhl83 {
  2442. yyb83 = yyj83 > l
  2443. } else {
  2444. yyb83 = r.CheckBreak()
  2445. }
  2446. if yyb83 {
  2447. z.DecReadArrayEnd()
  2448. return
  2449. }
  2450. z.DecReadArrayElem()
  2451. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2452. yyj83++
  2453. if yyhl83 {
  2454. yyb83 = yyj83 > l
  2455. } else {
  2456. yyb83 = r.CheckBreak()
  2457. }
  2458. if yyb83 {
  2459. z.DecReadArrayEnd()
  2460. return
  2461. }
  2462. z.DecReadArrayElem()
  2463. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2464. yyj83++
  2465. if yyhl83 {
  2466. yyb83 = yyj83 > l
  2467. } else {
  2468. yyb83 = r.CheckBreak()
  2469. }
  2470. if yyb83 {
  2471. z.DecReadArrayEnd()
  2472. return
  2473. }
  2474. z.DecReadArrayElem()
  2475. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2476. yyj83++
  2477. if yyhl83 {
  2478. yyb83 = yyj83 > l
  2479. } else {
  2480. yyb83 = r.CheckBreak()
  2481. }
  2482. if yyb83 {
  2483. z.DecReadArrayEnd()
  2484. return
  2485. }
  2486. z.DecReadArrayElem()
  2487. x.F64 = (float64)(r.DecodeFloat64())
  2488. yyj83++
  2489. if yyhl83 {
  2490. yyb83 = yyj83 > l
  2491. } else {
  2492. yyb83 = r.CheckBreak()
  2493. }
  2494. if yyb83 {
  2495. z.DecReadArrayEnd()
  2496. return
  2497. }
  2498. z.DecReadArrayElem()
  2499. x.F32 = (float32)(z.DecDecodeFloat32())
  2500. yyj83++
  2501. if yyhl83 {
  2502. yyb83 = yyj83 > l
  2503. } else {
  2504. yyb83 = r.CheckBreak()
  2505. }
  2506. if yyb83 {
  2507. z.DecReadArrayEnd()
  2508. return
  2509. }
  2510. z.DecReadArrayElem()
  2511. x.B = (bool)(r.DecodeBool())
  2512. yyj83++
  2513. if yyhl83 {
  2514. yyb83 = yyj83 > l
  2515. } else {
  2516. yyb83 = r.CheckBreak()
  2517. }
  2518. if yyb83 {
  2519. z.DecReadArrayEnd()
  2520. return
  2521. }
  2522. z.DecReadArrayElem()
  2523. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2524. yyj83++
  2525. if yyhl83 {
  2526. yyb83 = yyj83 > l
  2527. } else {
  2528. yyb83 = r.CheckBreak()
  2529. }
  2530. if yyb83 {
  2531. z.DecReadArrayEnd()
  2532. return
  2533. }
  2534. z.DecReadArrayElem()
  2535. z.F.DecSliceStringX(&x.Sslice, d)
  2536. yyj83++
  2537. if yyhl83 {
  2538. yyb83 = yyj83 > l
  2539. } else {
  2540. yyb83 = r.CheckBreak()
  2541. }
  2542. if yyb83 {
  2543. z.DecReadArrayEnd()
  2544. return
  2545. }
  2546. z.DecReadArrayElem()
  2547. z.F.DecSliceInt64X(&x.I64slice, d)
  2548. yyj83++
  2549. if yyhl83 {
  2550. yyb83 = yyj83 > l
  2551. } else {
  2552. yyb83 = r.CheckBreak()
  2553. }
  2554. if yyb83 {
  2555. z.DecReadArrayEnd()
  2556. return
  2557. }
  2558. z.DecReadArrayElem()
  2559. z.F.DecSliceInt16X(&x.I16slice, d)
  2560. yyj83++
  2561. if yyhl83 {
  2562. yyb83 = yyj83 > l
  2563. } else {
  2564. yyb83 = r.CheckBreak()
  2565. }
  2566. if yyb83 {
  2567. z.DecReadArrayEnd()
  2568. return
  2569. }
  2570. z.DecReadArrayElem()
  2571. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2572. yyj83++
  2573. if yyhl83 {
  2574. yyb83 = yyj83 > l
  2575. } else {
  2576. yyb83 = r.CheckBreak()
  2577. }
  2578. if yyb83 {
  2579. z.DecReadArrayEnd()
  2580. return
  2581. }
  2582. z.DecReadArrayElem()
  2583. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2584. yyj83++
  2585. if yyhl83 {
  2586. yyb83 = yyj83 > l
  2587. } else {
  2588. yyb83 = r.CheckBreak()
  2589. }
  2590. if yyb83 {
  2591. z.DecReadArrayEnd()
  2592. return
  2593. }
  2594. z.DecReadArrayElem()
  2595. z.F.DecSliceBoolX(&x.Bslice, d)
  2596. yyj83++
  2597. if yyhl83 {
  2598. yyb83 = yyj83 > l
  2599. } else {
  2600. yyb83 = r.CheckBreak()
  2601. }
  2602. if yyb83 {
  2603. z.DecReadArrayEnd()
  2604. return
  2605. }
  2606. z.DecReadArrayElem()
  2607. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2608. yyj83++
  2609. if yyhl83 {
  2610. yyb83 = yyj83 > l
  2611. } else {
  2612. yyb83 = r.CheckBreak()
  2613. }
  2614. if yyb83 {
  2615. z.DecReadArrayEnd()
  2616. return
  2617. }
  2618. z.DecReadArrayElem()
  2619. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2620. yyj83++
  2621. if yyhl83 {
  2622. yyb83 = yyj83 > l
  2623. } else {
  2624. yyb83 = r.CheckBreak()
  2625. }
  2626. if yyb83 {
  2627. z.DecReadArrayEnd()
  2628. return
  2629. }
  2630. z.DecReadArrayElem()
  2631. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2632. yyj83++
  2633. if yyhl83 {
  2634. yyb83 = yyj83 > l
  2635. } else {
  2636. yyb83 = r.CheckBreak()
  2637. }
  2638. if yyb83 {
  2639. z.DecReadArrayEnd()
  2640. return
  2641. }
  2642. z.DecReadArrayElem()
  2643. x.WrapSliceInt64.CodecDecodeSelf(d)
  2644. yyj83++
  2645. if yyhl83 {
  2646. yyb83 = yyj83 > l
  2647. } else {
  2648. yyb83 = r.CheckBreak()
  2649. }
  2650. if yyb83 {
  2651. z.DecReadArrayEnd()
  2652. return
  2653. }
  2654. z.DecReadArrayElem()
  2655. x.WrapSliceString.CodecDecodeSelf(d)
  2656. yyj83++
  2657. if yyhl83 {
  2658. yyb83 = yyj83 > l
  2659. } else {
  2660. yyb83 = r.CheckBreak()
  2661. }
  2662. if yyb83 {
  2663. z.DecReadArrayEnd()
  2664. return
  2665. }
  2666. z.DecReadArrayElem()
  2667. z.F.DecMapStringInt64X(&x.Msi64, d)
  2668. yyj83++
  2669. if yyhl83 {
  2670. yyb83 = yyj83 > l
  2671. } else {
  2672. yyb83 = r.CheckBreak()
  2673. }
  2674. if yyb83 {
  2675. z.DecReadArrayEnd()
  2676. return
  2677. }
  2678. z.DecReadArrayElem()
  2679. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2680. yyj83++
  2681. if yyhl83 {
  2682. yyb83 = yyj83 > l
  2683. } else {
  2684. yyb83 = r.CheckBreak()
  2685. }
  2686. if yyb83 {
  2687. z.DecReadArrayEnd()
  2688. return
  2689. }
  2690. z.DecReadArrayElem()
  2691. x.Simplef.CodecDecodeSelf(d)
  2692. yyj83++
  2693. if yyhl83 {
  2694. yyb83 = yyj83 > l
  2695. } else {
  2696. yyb83 = r.CheckBreak()
  2697. }
  2698. if yyb83 {
  2699. z.DecReadArrayEnd()
  2700. return
  2701. }
  2702. z.DecReadArrayElem()
  2703. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2704. yyj83++
  2705. if yyhl83 {
  2706. yyb83 = yyj83 > l
  2707. } else {
  2708. yyb83 = r.CheckBreak()
  2709. }
  2710. if yyb83 {
  2711. z.DecReadArrayEnd()
  2712. return
  2713. }
  2714. z.DecReadArrayElem()
  2715. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2716. yyj83++
  2717. if yyhl83 {
  2718. yyb83 = yyj83 > l
  2719. } else {
  2720. yyb83 = r.CheckBreak()
  2721. }
  2722. if yyb83 {
  2723. z.DecReadArrayEnd()
  2724. return
  2725. }
  2726. z.DecReadArrayElem()
  2727. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2728. yyj83++
  2729. if yyhl83 {
  2730. yyb83 = yyj83 > l
  2731. } else {
  2732. yyb83 = r.CheckBreak()
  2733. }
  2734. if yyb83 {
  2735. z.DecReadArrayEnd()
  2736. return
  2737. }
  2738. z.DecReadArrayElem()
  2739. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2740. yyj83++
  2741. if yyhl83 {
  2742. yyb83 = yyj83 > l
  2743. } else {
  2744. yyb83 = r.CheckBreak()
  2745. }
  2746. if yyb83 {
  2747. z.DecReadArrayEnd()
  2748. return
  2749. }
  2750. z.DecReadArrayElem()
  2751. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2752. yyj83++
  2753. if yyhl83 {
  2754. yyb83 = yyj83 > l
  2755. } else {
  2756. yyb83 = r.CheckBreak()
  2757. }
  2758. if yyb83 {
  2759. z.DecReadArrayEnd()
  2760. return
  2761. }
  2762. z.DecReadArrayElem()
  2763. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2764. yyj83++
  2765. if yyhl83 {
  2766. yyb83 = yyj83 > l
  2767. } else {
  2768. yyb83 = r.CheckBreak()
  2769. }
  2770. if yyb83 {
  2771. z.DecReadArrayEnd()
  2772. return
  2773. }
  2774. z.DecReadArrayElem()
  2775. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2776. yyj83++
  2777. if yyhl83 {
  2778. yyb83 = yyj83 > l
  2779. } else {
  2780. yyb83 = r.CheckBreak()
  2781. }
  2782. if yyb83 {
  2783. z.DecReadArrayEnd()
  2784. return
  2785. }
  2786. z.DecReadArrayElem()
  2787. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2788. yyj83++
  2789. if yyhl83 {
  2790. yyb83 = yyj83 > l
  2791. } else {
  2792. yyb83 = r.CheckBreak()
  2793. }
  2794. if yyb83 {
  2795. z.DecReadArrayEnd()
  2796. return
  2797. }
  2798. z.DecReadArrayElem()
  2799. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2800. yyj83++
  2801. if yyhl83 {
  2802. yyb83 = yyj83 > l
  2803. } else {
  2804. yyb83 = r.CheckBreak()
  2805. }
  2806. if yyb83 {
  2807. z.DecReadArrayEnd()
  2808. return
  2809. }
  2810. z.DecReadArrayElem()
  2811. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2812. yyj83++
  2813. if yyhl83 {
  2814. yyb83 = yyj83 > l
  2815. } else {
  2816. yyb83 = r.CheckBreak()
  2817. }
  2818. if yyb83 {
  2819. z.DecReadArrayEnd()
  2820. return
  2821. }
  2822. z.DecReadArrayElem()
  2823. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2824. yyj83++
  2825. if yyhl83 {
  2826. yyb83 = yyj83 > l
  2827. } else {
  2828. yyb83 = r.CheckBreak()
  2829. }
  2830. if yyb83 {
  2831. z.DecReadArrayEnd()
  2832. return
  2833. }
  2834. z.DecReadArrayElem()
  2835. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2836. yyj83++
  2837. if yyhl83 {
  2838. yyb83 = yyj83 > l
  2839. } else {
  2840. yyb83 = r.CheckBreak()
  2841. }
  2842. if yyb83 {
  2843. z.DecReadArrayEnd()
  2844. return
  2845. }
  2846. z.DecReadArrayElem()
  2847. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2848. yyj83++
  2849. if yyhl83 {
  2850. yyb83 = yyj83 > l
  2851. } else {
  2852. yyb83 = r.CheckBreak()
  2853. }
  2854. if yyb83 {
  2855. z.DecReadArrayEnd()
  2856. return
  2857. }
  2858. z.DecReadArrayElem()
  2859. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2860. yyj83++
  2861. if yyhl83 {
  2862. yyb83 = yyj83 > l
  2863. } else {
  2864. yyb83 = r.CheckBreak()
  2865. }
  2866. if yyb83 {
  2867. z.DecReadArrayEnd()
  2868. return
  2869. }
  2870. z.DecReadArrayElem()
  2871. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2872. yyj83++
  2873. if yyhl83 {
  2874. yyb83 = yyj83 > l
  2875. } else {
  2876. yyb83 = r.CheckBreak()
  2877. }
  2878. if yyb83 {
  2879. z.DecReadArrayEnd()
  2880. return
  2881. }
  2882. z.DecReadArrayElem()
  2883. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2884. yyj83++
  2885. if yyhl83 {
  2886. yyb83 = yyj83 > l
  2887. } else {
  2888. yyb83 = r.CheckBreak()
  2889. }
  2890. if yyb83 {
  2891. z.DecReadArrayEnd()
  2892. return
  2893. }
  2894. z.DecReadArrayElem()
  2895. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2896. yyj83++
  2897. if yyhl83 {
  2898. yyb83 = yyj83 > l
  2899. } else {
  2900. yyb83 = r.CheckBreak()
  2901. }
  2902. if yyb83 {
  2903. z.DecReadArrayEnd()
  2904. return
  2905. }
  2906. z.DecReadArrayElem()
  2907. x.NotAnon.CodecDecodeSelf(d)
  2908. yyj83++
  2909. if yyhl83 {
  2910. yyb83 = yyj83 > l
  2911. } else {
  2912. yyb83 = r.CheckBreak()
  2913. }
  2914. if yyb83 {
  2915. z.DecReadArrayEnd()
  2916. return
  2917. }
  2918. z.DecReadArrayElem()
  2919. z.F.DecMapStringBoolX(&x.Nmap, d)
  2920. yyj83++
  2921. if yyhl83 {
  2922. yyb83 = yyj83 > l
  2923. } else {
  2924. yyb83 = r.CheckBreak()
  2925. }
  2926. if yyb83 {
  2927. z.DecReadArrayEnd()
  2928. return
  2929. }
  2930. z.DecReadArrayElem()
  2931. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2932. yyj83++
  2933. if yyhl83 {
  2934. yyb83 = yyj83 > l
  2935. } else {
  2936. yyb83 = r.CheckBreak()
  2937. }
  2938. if yyb83 {
  2939. z.DecReadArrayEnd()
  2940. return
  2941. }
  2942. z.DecReadArrayElem()
  2943. if r.TryNil() {
  2944. if x.Nint64 != nil { // remove the if-true
  2945. x.Nint64 = nil
  2946. }
  2947. } else {
  2948. if x.Nint64 == nil {
  2949. x.Nint64 = new(int64)
  2950. }
  2951. *x.Nint64 = (int64)(r.DecodeInt64())
  2952. }
  2953. for {
  2954. yyj83++
  2955. if yyhl83 {
  2956. yyb83 = yyj83 > l
  2957. } else {
  2958. yyb83 = r.CheckBreak()
  2959. }
  2960. if yyb83 {
  2961. break
  2962. }
  2963. z.DecReadArrayElem()
  2964. z.DecStructFieldNotFound(yyj83-1, "")
  2965. }
  2966. }
  2967. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  2968. var h codecSelfer19780
  2969. z, r := GenHelperEncoder(e)
  2970. _, _, _ = h, z, r
  2971. if x == nil {
  2972. r.EncodeNil()
  2973. } else {
  2974. yysep2 := !z.EncBinary()
  2975. yy2arr2 := z.EncBasicHandle().StructToArray
  2976. _, _ = yysep2, yy2arr2
  2977. const yyr2 bool = false // struct tag has 'toArray'
  2978. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  2979. var yyn58 bool = x.Nteststruc == nil
  2980. if yyr2 || yy2arr2 {
  2981. z.EncWriteArrayStart(56)
  2982. z.EncWriteArrayElem()
  2983. if z.EncBasicHandle().StringToRaw {
  2984. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  2985. } else {
  2986. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  2987. }
  2988. z.EncWriteArrayElem()
  2989. r.EncodeInt(int64(x.TestStrucCommon.I64))
  2990. z.EncWriteArrayElem()
  2991. r.EncodeInt(int64(x.TestStrucCommon.I32))
  2992. z.EncWriteArrayElem()
  2993. r.EncodeInt(int64(x.TestStrucCommon.I16))
  2994. z.EncWriteArrayElem()
  2995. r.EncodeInt(int64(x.TestStrucCommon.I8))
  2996. z.EncWriteArrayElem()
  2997. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  2998. z.EncWriteArrayElem()
  2999. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3000. z.EncWriteArrayElem()
  3001. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3002. z.EncWriteArrayElem()
  3003. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3004. z.EncWriteArrayElem()
  3005. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3006. z.EncWriteArrayElem()
  3007. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3008. z.EncWriteArrayElem()
  3009. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3010. z.EncWriteArrayElem()
  3011. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3012. z.EncWriteArrayElem()
  3013. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3014. z.EncWriteArrayElem()
  3015. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3016. z.EncWriteArrayElem()
  3017. r.EncodeBool(bool(x.TestStrucCommon.B))
  3018. z.EncWriteArrayElem()
  3019. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3020. z.EncWriteArrayElem()
  3021. if x.TestStrucCommon.Sslice == nil {
  3022. r.EncodeNil()
  3023. } else {
  3024. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3025. } // end block: if x.TestStrucCommon.Sslice slice == nil
  3026. z.EncWriteArrayElem()
  3027. if x.TestStrucCommon.I64slice == nil {
  3028. r.EncodeNil()
  3029. } else {
  3030. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3031. } // end block: if x.TestStrucCommon.I64slice slice == nil
  3032. z.EncWriteArrayElem()
  3033. if x.TestStrucCommon.I16slice == nil {
  3034. r.EncodeNil()
  3035. } else {
  3036. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3037. } // end block: if x.TestStrucCommon.I16slice slice == nil
  3038. z.EncWriteArrayElem()
  3039. if x.TestStrucCommon.Ui64slice == nil {
  3040. r.EncodeNil()
  3041. } else {
  3042. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3043. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  3044. z.EncWriteArrayElem()
  3045. if x.TestStrucCommon.Ui8slice == nil {
  3046. r.EncodeNil()
  3047. } else {
  3048. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3049. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  3050. z.EncWriteArrayElem()
  3051. if x.TestStrucCommon.Bslice == nil {
  3052. r.EncodeNil()
  3053. } else {
  3054. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3055. } // end block: if x.TestStrucCommon.Bslice slice == nil
  3056. z.EncWriteArrayElem()
  3057. if x.TestStrucCommon.Byslice == nil {
  3058. r.EncodeNil()
  3059. } else {
  3060. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3061. } // end block: if x.TestStrucCommon.Byslice slice == nil
  3062. z.EncWriteArrayElem()
  3063. if x.TestStrucCommon.BytesSlice == nil {
  3064. r.EncodeNil()
  3065. } else {
  3066. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3067. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  3068. z.EncWriteArrayElem()
  3069. if x.TestStrucCommon.Iptrslice == nil {
  3070. r.EncodeNil()
  3071. } else {
  3072. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3073. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  3074. z.EncWriteArrayElem()
  3075. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3076. z.EncWriteArrayElem()
  3077. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3078. z.EncWriteArrayElem()
  3079. if x.TestStrucCommon.Msi64 == nil {
  3080. r.EncodeNil()
  3081. } else {
  3082. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3083. } // end block: if x.TestStrucCommon.Msi64 map == nil
  3084. z.EncWriteArrayElem()
  3085. if x.TestStrucCommon.Msbytes == nil {
  3086. r.EncodeNil()
  3087. } else {
  3088. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3089. } // end block: if x.TestStrucCommon.Msbytes map == nil
  3090. z.EncWriteArrayElem()
  3091. yy89 := &x.TestStrucCommon.Simplef
  3092. yy89.CodecEncodeSelf(e)
  3093. z.EncWriteArrayElem()
  3094. if x.TestStrucCommon.SstrUi64T == nil {
  3095. r.EncodeNil()
  3096. } else {
  3097. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3098. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  3099. z.EncWriteArrayElem()
  3100. if x.TestStrucCommon.MstrUi64T == nil {
  3101. r.EncodeNil()
  3102. } else {
  3103. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3104. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  3105. z.EncWriteArrayElem()
  3106. if z.EncBasicHandle().StringToRaw {
  3107. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3108. } else {
  3109. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3110. }
  3111. z.EncWriteArrayElem()
  3112. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3113. z.EncWriteArrayElem()
  3114. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3115. z.EncWriteArrayElem()
  3116. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3117. z.EncWriteArrayElem()
  3118. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  3119. r.EncodeNil()
  3120. } else {
  3121. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3122. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  3123. z.EncWriteArrayElem()
  3124. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  3125. r.EncodeNil()
  3126. } else {
  3127. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3128. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  3129. z.EncWriteArrayElem()
  3130. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  3131. r.EncodeNil()
  3132. } else {
  3133. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3134. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  3135. z.EncWriteArrayElem()
  3136. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  3137. r.EncodeNil()
  3138. } else {
  3139. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3140. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  3141. z.EncWriteArrayElem()
  3142. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  3143. r.EncodeNil()
  3144. } else {
  3145. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3146. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  3147. z.EncWriteArrayElem()
  3148. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  3149. r.EncodeNil()
  3150. } else {
  3151. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3152. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  3153. z.EncWriteArrayElem()
  3154. yy103 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3155. h.encArray0int64((*[0]int64)(yy103), e)
  3156. z.EncWriteArrayElem()
  3157. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  3158. r.EncodeNil()
  3159. } else {
  3160. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3161. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  3162. z.EncWriteArrayElem()
  3163. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  3164. r.EncodeNil()
  3165. } else {
  3166. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3167. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  3168. z.EncWriteArrayElem()
  3169. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  3170. r.EncodeNil()
  3171. } else {
  3172. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3173. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  3174. z.EncWriteArrayElem()
  3175. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  3176. r.EncodeNil()
  3177. } else {
  3178. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3179. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  3180. z.EncWriteArrayElem()
  3181. yy109 := &x.TestStrucCommon.NotAnon
  3182. yy109.CodecEncodeSelf(e)
  3183. z.EncWriteArrayElem()
  3184. if x.TestStrucCommon.Nmap == nil {
  3185. r.EncodeNil()
  3186. } else {
  3187. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3188. } // end block: if x.TestStrucCommon.Nmap map == nil
  3189. z.EncWriteArrayElem()
  3190. if x.TestStrucCommon.Nslice == nil {
  3191. r.EncodeNil()
  3192. } else {
  3193. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3194. } // end block: if x.TestStrucCommon.Nslice slice == nil
  3195. if yyn54 {
  3196. z.EncWriteArrayElem()
  3197. r.EncodeNil()
  3198. } else {
  3199. z.EncWriteArrayElem()
  3200. yy113 := *x.TestStrucCommon.Nint64
  3201. r.EncodeInt(int64(yy113))
  3202. }
  3203. z.EncWriteArrayElem()
  3204. if x.Mtsptr == nil {
  3205. r.EncodeNil()
  3206. } else {
  3207. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3208. } // end block: if x.Mtsptr map == nil
  3209. z.EncWriteArrayElem()
  3210. if x.Mts == nil {
  3211. r.EncodeNil()
  3212. } else {
  3213. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3214. } // end block: if x.Mts map == nil
  3215. z.EncWriteArrayElem()
  3216. if x.Its == nil {
  3217. r.EncodeNil()
  3218. } else {
  3219. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3220. } // end block: if x.Its slice == nil
  3221. if yyn58 {
  3222. z.EncWriteArrayElem()
  3223. r.EncodeNil()
  3224. } else {
  3225. z.EncWriteArrayElem()
  3226. x.Nteststruc.CodecEncodeSelf(e)
  3227. }
  3228. z.EncWriteArrayEnd()
  3229. } else {
  3230. z.EncWriteMapStart(56)
  3231. z.EncWriteMapElemKey()
  3232. if z.IsJSONHandle() {
  3233. z.WriteStr("\"S\"")
  3234. } else {
  3235. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3236. }
  3237. z.EncWriteMapElemValue()
  3238. if z.EncBasicHandle().StringToRaw {
  3239. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3240. } else {
  3241. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3242. }
  3243. z.EncWriteMapElemKey()
  3244. if z.IsJSONHandle() {
  3245. z.WriteStr("\"I64\"")
  3246. } else {
  3247. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3248. }
  3249. z.EncWriteMapElemValue()
  3250. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3251. z.EncWriteMapElemKey()
  3252. if z.IsJSONHandle() {
  3253. z.WriteStr("\"I32\"")
  3254. } else {
  3255. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3256. }
  3257. z.EncWriteMapElemValue()
  3258. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3259. z.EncWriteMapElemKey()
  3260. if z.IsJSONHandle() {
  3261. z.WriteStr("\"I16\"")
  3262. } else {
  3263. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3264. }
  3265. z.EncWriteMapElemValue()
  3266. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3267. z.EncWriteMapElemKey()
  3268. if z.IsJSONHandle() {
  3269. z.WriteStr("\"I8\"")
  3270. } else {
  3271. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3272. }
  3273. z.EncWriteMapElemValue()
  3274. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3275. z.EncWriteMapElemKey()
  3276. if z.IsJSONHandle() {
  3277. z.WriteStr("\"I64n\"")
  3278. } else {
  3279. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3280. }
  3281. z.EncWriteMapElemValue()
  3282. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3283. z.EncWriteMapElemKey()
  3284. if z.IsJSONHandle() {
  3285. z.WriteStr("\"I32n\"")
  3286. } else {
  3287. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3288. }
  3289. z.EncWriteMapElemValue()
  3290. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3291. z.EncWriteMapElemKey()
  3292. if z.IsJSONHandle() {
  3293. z.WriteStr("\"I16n\"")
  3294. } else {
  3295. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3296. }
  3297. z.EncWriteMapElemValue()
  3298. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3299. z.EncWriteMapElemKey()
  3300. if z.IsJSONHandle() {
  3301. z.WriteStr("\"I8n\"")
  3302. } else {
  3303. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3304. }
  3305. z.EncWriteMapElemValue()
  3306. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3307. z.EncWriteMapElemKey()
  3308. if z.IsJSONHandle() {
  3309. z.WriteStr("\"Ui64\"")
  3310. } else {
  3311. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3312. }
  3313. z.EncWriteMapElemValue()
  3314. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3315. z.EncWriteMapElemKey()
  3316. if z.IsJSONHandle() {
  3317. z.WriteStr("\"Ui32\"")
  3318. } else {
  3319. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3320. }
  3321. z.EncWriteMapElemValue()
  3322. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3323. z.EncWriteMapElemKey()
  3324. if z.IsJSONHandle() {
  3325. z.WriteStr("\"Ui16\"")
  3326. } else {
  3327. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3328. }
  3329. z.EncWriteMapElemValue()
  3330. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3331. z.EncWriteMapElemKey()
  3332. if z.IsJSONHandle() {
  3333. z.WriteStr("\"Ui8\"")
  3334. } else {
  3335. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  3336. }
  3337. z.EncWriteMapElemValue()
  3338. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3339. z.EncWriteMapElemKey()
  3340. if z.IsJSONHandle() {
  3341. z.WriteStr("\"F64\"")
  3342. } else {
  3343. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  3344. }
  3345. z.EncWriteMapElemValue()
  3346. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3347. z.EncWriteMapElemKey()
  3348. if z.IsJSONHandle() {
  3349. z.WriteStr("\"F32\"")
  3350. } else {
  3351. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  3352. }
  3353. z.EncWriteMapElemValue()
  3354. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3355. z.EncWriteMapElemKey()
  3356. if z.IsJSONHandle() {
  3357. z.WriteStr("\"B\"")
  3358. } else {
  3359. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  3360. }
  3361. z.EncWriteMapElemValue()
  3362. r.EncodeBool(bool(x.TestStrucCommon.B))
  3363. z.EncWriteMapElemKey()
  3364. if z.IsJSONHandle() {
  3365. z.WriteStr("\"By\"")
  3366. } else {
  3367. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  3368. }
  3369. z.EncWriteMapElemValue()
  3370. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3371. z.EncWriteMapElemKey()
  3372. if z.IsJSONHandle() {
  3373. z.WriteStr("\"Sslice\"")
  3374. } else {
  3375. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  3376. }
  3377. z.EncWriteMapElemValue()
  3378. if x.TestStrucCommon.Sslice == nil {
  3379. r.EncodeNil()
  3380. } else {
  3381. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3382. } // end block: if x.TestStrucCommon.Sslice slice == nil
  3383. z.EncWriteMapElemKey()
  3384. if z.IsJSONHandle() {
  3385. z.WriteStr("\"I64slice\"")
  3386. } else {
  3387. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  3388. }
  3389. z.EncWriteMapElemValue()
  3390. if x.TestStrucCommon.I64slice == nil {
  3391. r.EncodeNil()
  3392. } else {
  3393. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3394. } // end block: if x.TestStrucCommon.I64slice slice == nil
  3395. z.EncWriteMapElemKey()
  3396. if z.IsJSONHandle() {
  3397. z.WriteStr("\"I16slice\"")
  3398. } else {
  3399. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  3400. }
  3401. z.EncWriteMapElemValue()
  3402. if x.TestStrucCommon.I16slice == nil {
  3403. r.EncodeNil()
  3404. } else {
  3405. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3406. } // end block: if x.TestStrucCommon.I16slice slice == nil
  3407. z.EncWriteMapElemKey()
  3408. if z.IsJSONHandle() {
  3409. z.WriteStr("\"Ui64slice\"")
  3410. } else {
  3411. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  3412. }
  3413. z.EncWriteMapElemValue()
  3414. if x.TestStrucCommon.Ui64slice == nil {
  3415. r.EncodeNil()
  3416. } else {
  3417. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3418. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  3419. z.EncWriteMapElemKey()
  3420. if z.IsJSONHandle() {
  3421. z.WriteStr("\"Ui8slice\"")
  3422. } else {
  3423. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  3424. }
  3425. z.EncWriteMapElemValue()
  3426. if x.TestStrucCommon.Ui8slice == nil {
  3427. r.EncodeNil()
  3428. } else {
  3429. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3430. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  3431. z.EncWriteMapElemKey()
  3432. if z.IsJSONHandle() {
  3433. z.WriteStr("\"Bslice\"")
  3434. } else {
  3435. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  3436. }
  3437. z.EncWriteMapElemValue()
  3438. if x.TestStrucCommon.Bslice == nil {
  3439. r.EncodeNil()
  3440. } else {
  3441. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3442. } // end block: if x.TestStrucCommon.Bslice slice == nil
  3443. z.EncWriteMapElemKey()
  3444. if z.IsJSONHandle() {
  3445. z.WriteStr("\"Byslice\"")
  3446. } else {
  3447. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  3448. }
  3449. z.EncWriteMapElemValue()
  3450. if x.TestStrucCommon.Byslice == nil {
  3451. r.EncodeNil()
  3452. } else {
  3453. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3454. } // end block: if x.TestStrucCommon.Byslice slice == nil
  3455. z.EncWriteMapElemKey()
  3456. if z.IsJSONHandle() {
  3457. z.WriteStr("\"BytesSlice\"")
  3458. } else {
  3459. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  3460. }
  3461. z.EncWriteMapElemValue()
  3462. if x.TestStrucCommon.BytesSlice == nil {
  3463. r.EncodeNil()
  3464. } else {
  3465. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3466. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  3467. z.EncWriteMapElemKey()
  3468. if z.IsJSONHandle() {
  3469. z.WriteStr("\"Iptrslice\"")
  3470. } else {
  3471. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  3472. }
  3473. z.EncWriteMapElemValue()
  3474. if x.TestStrucCommon.Iptrslice == nil {
  3475. r.EncodeNil()
  3476. } else {
  3477. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3478. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  3479. z.EncWriteMapElemKey()
  3480. if z.IsJSONHandle() {
  3481. z.WriteStr("\"WrapSliceInt64\"")
  3482. } else {
  3483. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  3484. }
  3485. z.EncWriteMapElemValue()
  3486. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3487. z.EncWriteMapElemKey()
  3488. if z.IsJSONHandle() {
  3489. z.WriteStr("\"WrapSliceString\"")
  3490. } else {
  3491. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  3492. }
  3493. z.EncWriteMapElemValue()
  3494. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3495. z.EncWriteMapElemKey()
  3496. if z.IsJSONHandle() {
  3497. z.WriteStr("\"Msi64\"")
  3498. } else {
  3499. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  3500. }
  3501. z.EncWriteMapElemValue()
  3502. if x.TestStrucCommon.Msi64 == nil {
  3503. r.EncodeNil()
  3504. } else {
  3505. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3506. } // end block: if x.TestStrucCommon.Msi64 map == nil
  3507. z.EncWriteMapElemKey()
  3508. if z.IsJSONHandle() {
  3509. z.WriteStr("\"Msbytes\"")
  3510. } else {
  3511. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  3512. }
  3513. z.EncWriteMapElemValue()
  3514. if x.TestStrucCommon.Msbytes == nil {
  3515. r.EncodeNil()
  3516. } else {
  3517. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3518. } // end block: if x.TestStrucCommon.Msbytes map == nil
  3519. z.EncWriteMapElemKey()
  3520. if z.IsJSONHandle() {
  3521. z.WriteStr("\"Simplef\"")
  3522. } else {
  3523. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  3524. }
  3525. z.EncWriteMapElemValue()
  3526. yy149 := &x.TestStrucCommon.Simplef
  3527. yy149.CodecEncodeSelf(e)
  3528. z.EncWriteMapElemKey()
  3529. if z.IsJSONHandle() {
  3530. z.WriteStr("\"SstrUi64T\"")
  3531. } else {
  3532. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  3533. }
  3534. z.EncWriteMapElemValue()
  3535. if x.TestStrucCommon.SstrUi64T == nil {
  3536. r.EncodeNil()
  3537. } else {
  3538. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3539. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  3540. z.EncWriteMapElemKey()
  3541. if z.IsJSONHandle() {
  3542. z.WriteStr("\"MstrUi64T\"")
  3543. } else {
  3544. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  3545. }
  3546. z.EncWriteMapElemValue()
  3547. if x.TestStrucCommon.MstrUi64T == nil {
  3548. r.EncodeNil()
  3549. } else {
  3550. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3551. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  3552. z.EncWriteMapElemKey()
  3553. if z.IsJSONHandle() {
  3554. z.WriteStr("\"AS\"")
  3555. } else {
  3556. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  3557. }
  3558. z.EncWriteMapElemValue()
  3559. if z.EncBasicHandle().StringToRaw {
  3560. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3561. } else {
  3562. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3563. }
  3564. z.EncWriteMapElemKey()
  3565. if z.IsJSONHandle() {
  3566. z.WriteStr("\"AI64\"")
  3567. } else {
  3568. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  3569. }
  3570. z.EncWriteMapElemValue()
  3571. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3572. z.EncWriteMapElemKey()
  3573. if z.IsJSONHandle() {
  3574. z.WriteStr("\"AI16\"")
  3575. } else {
  3576. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  3577. }
  3578. z.EncWriteMapElemValue()
  3579. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3580. z.EncWriteMapElemKey()
  3581. if z.IsJSONHandle() {
  3582. z.WriteStr("\"AUi64\"")
  3583. } else {
  3584. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  3585. }
  3586. z.EncWriteMapElemValue()
  3587. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3588. z.EncWriteMapElemKey()
  3589. if z.IsJSONHandle() {
  3590. z.WriteStr("\"ASslice\"")
  3591. } else {
  3592. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  3593. }
  3594. z.EncWriteMapElemValue()
  3595. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  3596. r.EncodeNil()
  3597. } else {
  3598. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3599. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  3600. z.EncWriteMapElemKey()
  3601. if z.IsJSONHandle() {
  3602. z.WriteStr("\"AI64slice\"")
  3603. } else {
  3604. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  3605. }
  3606. z.EncWriteMapElemValue()
  3607. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  3608. r.EncodeNil()
  3609. } else {
  3610. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3611. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  3612. z.EncWriteMapElemKey()
  3613. if z.IsJSONHandle() {
  3614. z.WriteStr("\"AUi64slice\"")
  3615. } else {
  3616. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3617. }
  3618. z.EncWriteMapElemValue()
  3619. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  3620. r.EncodeNil()
  3621. } else {
  3622. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3623. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  3624. z.EncWriteMapElemKey()
  3625. if z.IsJSONHandle() {
  3626. z.WriteStr("\"AF64slice\"")
  3627. } else {
  3628. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3629. }
  3630. z.EncWriteMapElemValue()
  3631. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  3632. r.EncodeNil()
  3633. } else {
  3634. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3635. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  3636. z.EncWriteMapElemKey()
  3637. if z.IsJSONHandle() {
  3638. z.WriteStr("\"AF32slice\"")
  3639. } else {
  3640. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3641. }
  3642. z.EncWriteMapElemValue()
  3643. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  3644. r.EncodeNil()
  3645. } else {
  3646. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3647. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  3648. z.EncWriteMapElemKey()
  3649. if z.IsJSONHandle() {
  3650. z.WriteStr("\"AMSU16\"")
  3651. } else {
  3652. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3653. }
  3654. z.EncWriteMapElemValue()
  3655. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  3656. r.EncodeNil()
  3657. } else {
  3658. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3659. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  3660. z.EncWriteMapElemKey()
  3661. if z.IsJSONHandle() {
  3662. z.WriteStr("\"AI64arr0\"")
  3663. } else {
  3664. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3665. }
  3666. z.EncWriteMapElemValue()
  3667. yy163 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3668. h.encArray0int64((*[0]int64)(yy163), e)
  3669. z.EncWriteMapElemKey()
  3670. if z.IsJSONHandle() {
  3671. z.WriteStr("\"AI64slice0\"")
  3672. } else {
  3673. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  3674. }
  3675. z.EncWriteMapElemValue()
  3676. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  3677. r.EncodeNil()
  3678. } else {
  3679. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3680. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  3681. z.EncWriteMapElemKey()
  3682. if z.IsJSONHandle() {
  3683. z.WriteStr("\"AUi64sliceN\"")
  3684. } else {
  3685. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3686. }
  3687. z.EncWriteMapElemValue()
  3688. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  3689. r.EncodeNil()
  3690. } else {
  3691. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3692. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  3693. z.EncWriteMapElemKey()
  3694. if z.IsJSONHandle() {
  3695. z.WriteStr("\"AMSU16N\"")
  3696. } else {
  3697. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3698. }
  3699. z.EncWriteMapElemValue()
  3700. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  3701. r.EncodeNil()
  3702. } else {
  3703. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3704. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  3705. z.EncWriteMapElemKey()
  3706. if z.IsJSONHandle() {
  3707. z.WriteStr("\"AMSU16E\"")
  3708. } else {
  3709. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3710. }
  3711. z.EncWriteMapElemValue()
  3712. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  3713. r.EncodeNil()
  3714. } else {
  3715. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3716. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  3717. z.EncWriteMapElemKey()
  3718. if z.IsJSONHandle() {
  3719. z.WriteStr("\"NotAnon\"")
  3720. } else {
  3721. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3722. }
  3723. z.EncWriteMapElemValue()
  3724. yy169 := &x.TestStrucCommon.NotAnon
  3725. yy169.CodecEncodeSelf(e)
  3726. z.EncWriteMapElemKey()
  3727. if z.IsJSONHandle() {
  3728. z.WriteStr("\"Nmap\"")
  3729. } else {
  3730. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3731. }
  3732. z.EncWriteMapElemValue()
  3733. if x.TestStrucCommon.Nmap == nil {
  3734. r.EncodeNil()
  3735. } else {
  3736. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3737. } // end block: if x.TestStrucCommon.Nmap map == nil
  3738. z.EncWriteMapElemKey()
  3739. if z.IsJSONHandle() {
  3740. z.WriteStr("\"Nslice\"")
  3741. } else {
  3742. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3743. }
  3744. z.EncWriteMapElemValue()
  3745. if x.TestStrucCommon.Nslice == nil {
  3746. r.EncodeNil()
  3747. } else {
  3748. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3749. } // end block: if x.TestStrucCommon.Nslice slice == nil
  3750. z.EncWriteMapElemKey()
  3751. if z.IsJSONHandle() {
  3752. z.WriteStr("\"Nint64\"")
  3753. } else {
  3754. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3755. }
  3756. z.EncWriteMapElemValue()
  3757. if yyn54 {
  3758. r.EncodeNil()
  3759. } else {
  3760. yy173 := *x.TestStrucCommon.Nint64
  3761. r.EncodeInt(int64(yy173))
  3762. }
  3763. z.EncWriteMapElemKey()
  3764. if z.IsJSONHandle() {
  3765. z.WriteStr("\"Mtsptr\"")
  3766. } else {
  3767. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  3768. }
  3769. z.EncWriteMapElemValue()
  3770. if x.Mtsptr == nil {
  3771. r.EncodeNil()
  3772. } else {
  3773. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3774. } // end block: if x.Mtsptr map == nil
  3775. z.EncWriteMapElemKey()
  3776. if z.IsJSONHandle() {
  3777. z.WriteStr("\"Mts\"")
  3778. } else {
  3779. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  3780. }
  3781. z.EncWriteMapElemValue()
  3782. if x.Mts == nil {
  3783. r.EncodeNil()
  3784. } else {
  3785. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3786. } // end block: if x.Mts map == nil
  3787. z.EncWriteMapElemKey()
  3788. if z.IsJSONHandle() {
  3789. z.WriteStr("\"Its\"")
  3790. } else {
  3791. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  3792. }
  3793. z.EncWriteMapElemValue()
  3794. if x.Its == nil {
  3795. r.EncodeNil()
  3796. } else {
  3797. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3798. } // end block: if x.Its slice == nil
  3799. z.EncWriteMapElemKey()
  3800. if z.IsJSONHandle() {
  3801. z.WriteStr("\"Nteststruc\"")
  3802. } else {
  3803. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  3804. }
  3805. z.EncWriteMapElemValue()
  3806. if yyn58 {
  3807. r.EncodeNil()
  3808. } else {
  3809. x.Nteststruc.CodecEncodeSelf(e)
  3810. }
  3811. z.EncWriteMapEnd()
  3812. }
  3813. }
  3814. }
  3815. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  3816. var h codecSelfer19780
  3817. z, r := GenHelperDecoder(d)
  3818. _, _, _ = h, z, r
  3819. yyct2 := r.ContainerType()
  3820. if yyct2 == codecSelferValueTypeNil19780 {
  3821. *(x) = TestStruc{}
  3822. } else if yyct2 == codecSelferValueTypeMap19780 {
  3823. yyl2 := z.DecReadMapStart()
  3824. if yyl2 == 0 {
  3825. } else {
  3826. x.codecDecodeSelfFromMap(yyl2, d)
  3827. }
  3828. z.DecReadMapEnd()
  3829. } else if yyct2 == codecSelferValueTypeArray19780 {
  3830. yyl2 := z.DecReadArrayStart()
  3831. if yyl2 != 0 {
  3832. x.codecDecodeSelfFromArray(yyl2, d)
  3833. }
  3834. z.DecReadArrayEnd()
  3835. } else {
  3836. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3837. }
  3838. }
  3839. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  3840. var h codecSelfer19780
  3841. z, r := GenHelperDecoder(d)
  3842. _, _, _ = h, z, r
  3843. var yyhl3 bool = l >= 0
  3844. for yyj3 := 0; ; yyj3++ {
  3845. if yyhl3 {
  3846. if yyj3 >= l {
  3847. break
  3848. }
  3849. } else {
  3850. if r.CheckBreak() {
  3851. break
  3852. }
  3853. }
  3854. z.DecReadMapElemKey()
  3855. yys3 := z.StringView(r.DecodeStringAsBytes())
  3856. z.DecReadMapElemValue()
  3857. switch yys3 {
  3858. case "S":
  3859. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  3860. case "I64":
  3861. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  3862. case "I32":
  3863. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3864. case "I16":
  3865. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3866. case "I8":
  3867. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3868. case "I64n":
  3869. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  3870. case "I32n":
  3871. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3872. case "I16n":
  3873. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3874. case "I8n":
  3875. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3876. case "Ui64":
  3877. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  3878. case "Ui32":
  3879. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3880. case "Ui16":
  3881. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3882. case "Ui8":
  3883. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3884. case "F64":
  3885. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  3886. case "F32":
  3887. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  3888. case "B":
  3889. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  3890. case "By":
  3891. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3892. case "Sslice":
  3893. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  3894. case "I64slice":
  3895. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  3896. case "I16slice":
  3897. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  3898. case "Ui64slice":
  3899. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  3900. case "Ui8slice":
  3901. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  3902. case "Bslice":
  3903. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  3904. case "Byslice":
  3905. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  3906. case "BytesSlice":
  3907. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  3908. case "Iptrslice":
  3909. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  3910. case "WrapSliceInt64":
  3911. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  3912. case "WrapSliceString":
  3913. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  3914. case "Msi64":
  3915. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  3916. case "Msbytes":
  3917. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  3918. case "Simplef":
  3919. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  3920. case "SstrUi64T":
  3921. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  3922. case "MstrUi64T":
  3923. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  3924. case "AS":
  3925. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  3926. case "AI64":
  3927. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  3928. case "AI16":
  3929. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3930. case "AUi64":
  3931. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3932. case "ASslice":
  3933. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  3934. case "AI64slice":
  3935. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  3936. case "AUi64slice":
  3937. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  3938. case "AF64slice":
  3939. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  3940. case "AF32slice":
  3941. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  3942. case "AMSU16":
  3943. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  3944. case "AI64arr0":
  3945. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  3946. case "AI64slice0":
  3947. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  3948. case "AUi64sliceN":
  3949. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  3950. case "AMSU16N":
  3951. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  3952. case "AMSU16E":
  3953. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  3954. case "NotAnon":
  3955. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  3956. case "Nmap":
  3957. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  3958. case "Nslice":
  3959. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  3960. case "Nint64":
  3961. if r.TryNil() {
  3962. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  3963. x.TestStrucCommon.Nint64 = nil
  3964. }
  3965. } else {
  3966. if x.TestStrucCommon.Nint64 == nil {
  3967. x.TestStrucCommon.Nint64 = new(int64)
  3968. }
  3969. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  3970. }
  3971. case "Mtsptr":
  3972. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  3973. case "Mts":
  3974. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  3975. case "Its":
  3976. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  3977. case "Nteststruc":
  3978. if r.TryNil() {
  3979. if x.Nteststruc != nil { // remove the if-true
  3980. x.Nteststruc = nil
  3981. }
  3982. } else {
  3983. if x.Nteststruc == nil {
  3984. x.Nteststruc = new(TestStruc)
  3985. }
  3986. x.Nteststruc.CodecDecodeSelf(d)
  3987. }
  3988. default:
  3989. z.DecStructFieldNotFound(-1, yys3)
  3990. } // end switch yys3
  3991. } // end for yyj3
  3992. }
  3993. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  3994. var h codecSelfer19780
  3995. z, r := GenHelperDecoder(d)
  3996. _, _, _ = h, z, r
  3997. var yyj90 int
  3998. var yyb90 bool
  3999. var yyhl90 bool = l >= 0
  4000. yyj90++
  4001. if yyhl90 {
  4002. yyb90 = yyj90 > l
  4003. } else {
  4004. yyb90 = r.CheckBreak()
  4005. }
  4006. if yyb90 {
  4007. z.DecReadArrayEnd()
  4008. return
  4009. }
  4010. z.DecReadArrayElem()
  4011. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  4012. yyj90++
  4013. if yyhl90 {
  4014. yyb90 = yyj90 > l
  4015. } else {
  4016. yyb90 = r.CheckBreak()
  4017. }
  4018. if yyb90 {
  4019. z.DecReadArrayEnd()
  4020. return
  4021. }
  4022. z.DecReadArrayElem()
  4023. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4024. yyj90++
  4025. if yyhl90 {
  4026. yyb90 = yyj90 > l
  4027. } else {
  4028. yyb90 = r.CheckBreak()
  4029. }
  4030. if yyb90 {
  4031. z.DecReadArrayEnd()
  4032. return
  4033. }
  4034. z.DecReadArrayElem()
  4035. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4036. yyj90++
  4037. if yyhl90 {
  4038. yyb90 = yyj90 > l
  4039. } else {
  4040. yyb90 = r.CheckBreak()
  4041. }
  4042. if yyb90 {
  4043. z.DecReadArrayEnd()
  4044. return
  4045. }
  4046. z.DecReadArrayElem()
  4047. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4048. yyj90++
  4049. if yyhl90 {
  4050. yyb90 = yyj90 > l
  4051. } else {
  4052. yyb90 = r.CheckBreak()
  4053. }
  4054. if yyb90 {
  4055. z.DecReadArrayEnd()
  4056. return
  4057. }
  4058. z.DecReadArrayElem()
  4059. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4060. yyj90++
  4061. if yyhl90 {
  4062. yyb90 = yyj90 > l
  4063. } else {
  4064. yyb90 = r.CheckBreak()
  4065. }
  4066. if yyb90 {
  4067. z.DecReadArrayEnd()
  4068. return
  4069. }
  4070. z.DecReadArrayElem()
  4071. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4072. yyj90++
  4073. if yyhl90 {
  4074. yyb90 = yyj90 > l
  4075. } else {
  4076. yyb90 = r.CheckBreak()
  4077. }
  4078. if yyb90 {
  4079. z.DecReadArrayEnd()
  4080. return
  4081. }
  4082. z.DecReadArrayElem()
  4083. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4084. yyj90++
  4085. if yyhl90 {
  4086. yyb90 = yyj90 > l
  4087. } else {
  4088. yyb90 = r.CheckBreak()
  4089. }
  4090. if yyb90 {
  4091. z.DecReadArrayEnd()
  4092. return
  4093. }
  4094. z.DecReadArrayElem()
  4095. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4096. yyj90++
  4097. if yyhl90 {
  4098. yyb90 = yyj90 > l
  4099. } else {
  4100. yyb90 = r.CheckBreak()
  4101. }
  4102. if yyb90 {
  4103. z.DecReadArrayEnd()
  4104. return
  4105. }
  4106. z.DecReadArrayElem()
  4107. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4108. yyj90++
  4109. if yyhl90 {
  4110. yyb90 = yyj90 > l
  4111. } else {
  4112. yyb90 = r.CheckBreak()
  4113. }
  4114. if yyb90 {
  4115. z.DecReadArrayEnd()
  4116. return
  4117. }
  4118. z.DecReadArrayElem()
  4119. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4120. yyj90++
  4121. if yyhl90 {
  4122. yyb90 = yyj90 > l
  4123. } else {
  4124. yyb90 = r.CheckBreak()
  4125. }
  4126. if yyb90 {
  4127. z.DecReadArrayEnd()
  4128. return
  4129. }
  4130. z.DecReadArrayElem()
  4131. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4132. yyj90++
  4133. if yyhl90 {
  4134. yyb90 = yyj90 > l
  4135. } else {
  4136. yyb90 = r.CheckBreak()
  4137. }
  4138. if yyb90 {
  4139. z.DecReadArrayEnd()
  4140. return
  4141. }
  4142. z.DecReadArrayElem()
  4143. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4144. yyj90++
  4145. if yyhl90 {
  4146. yyb90 = yyj90 > l
  4147. } else {
  4148. yyb90 = r.CheckBreak()
  4149. }
  4150. if yyb90 {
  4151. z.DecReadArrayEnd()
  4152. return
  4153. }
  4154. z.DecReadArrayElem()
  4155. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4156. yyj90++
  4157. if yyhl90 {
  4158. yyb90 = yyj90 > l
  4159. } else {
  4160. yyb90 = r.CheckBreak()
  4161. }
  4162. if yyb90 {
  4163. z.DecReadArrayEnd()
  4164. return
  4165. }
  4166. z.DecReadArrayElem()
  4167. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4168. yyj90++
  4169. if yyhl90 {
  4170. yyb90 = yyj90 > l
  4171. } else {
  4172. yyb90 = r.CheckBreak()
  4173. }
  4174. if yyb90 {
  4175. z.DecReadArrayEnd()
  4176. return
  4177. }
  4178. z.DecReadArrayElem()
  4179. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4180. yyj90++
  4181. if yyhl90 {
  4182. yyb90 = yyj90 > l
  4183. } else {
  4184. yyb90 = r.CheckBreak()
  4185. }
  4186. if yyb90 {
  4187. z.DecReadArrayEnd()
  4188. return
  4189. }
  4190. z.DecReadArrayElem()
  4191. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4192. yyj90++
  4193. if yyhl90 {
  4194. yyb90 = yyj90 > l
  4195. } else {
  4196. yyb90 = r.CheckBreak()
  4197. }
  4198. if yyb90 {
  4199. z.DecReadArrayEnd()
  4200. return
  4201. }
  4202. z.DecReadArrayElem()
  4203. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4204. yyj90++
  4205. if yyhl90 {
  4206. yyb90 = yyj90 > l
  4207. } else {
  4208. yyb90 = r.CheckBreak()
  4209. }
  4210. if yyb90 {
  4211. z.DecReadArrayEnd()
  4212. return
  4213. }
  4214. z.DecReadArrayElem()
  4215. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4216. yyj90++
  4217. if yyhl90 {
  4218. yyb90 = yyj90 > l
  4219. } else {
  4220. yyb90 = r.CheckBreak()
  4221. }
  4222. if yyb90 {
  4223. z.DecReadArrayEnd()
  4224. return
  4225. }
  4226. z.DecReadArrayElem()
  4227. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4228. yyj90++
  4229. if yyhl90 {
  4230. yyb90 = yyj90 > l
  4231. } else {
  4232. yyb90 = r.CheckBreak()
  4233. }
  4234. if yyb90 {
  4235. z.DecReadArrayEnd()
  4236. return
  4237. }
  4238. z.DecReadArrayElem()
  4239. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4240. yyj90++
  4241. if yyhl90 {
  4242. yyb90 = yyj90 > l
  4243. } else {
  4244. yyb90 = r.CheckBreak()
  4245. }
  4246. if yyb90 {
  4247. z.DecReadArrayEnd()
  4248. return
  4249. }
  4250. z.DecReadArrayElem()
  4251. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4252. yyj90++
  4253. if yyhl90 {
  4254. yyb90 = yyj90 > l
  4255. } else {
  4256. yyb90 = r.CheckBreak()
  4257. }
  4258. if yyb90 {
  4259. z.DecReadArrayEnd()
  4260. return
  4261. }
  4262. z.DecReadArrayElem()
  4263. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4264. yyj90++
  4265. if yyhl90 {
  4266. yyb90 = yyj90 > l
  4267. } else {
  4268. yyb90 = r.CheckBreak()
  4269. }
  4270. if yyb90 {
  4271. z.DecReadArrayEnd()
  4272. return
  4273. }
  4274. z.DecReadArrayElem()
  4275. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4276. yyj90++
  4277. if yyhl90 {
  4278. yyb90 = yyj90 > l
  4279. } else {
  4280. yyb90 = r.CheckBreak()
  4281. }
  4282. if yyb90 {
  4283. z.DecReadArrayEnd()
  4284. return
  4285. }
  4286. z.DecReadArrayElem()
  4287. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4288. yyj90++
  4289. if yyhl90 {
  4290. yyb90 = yyj90 > l
  4291. } else {
  4292. yyb90 = r.CheckBreak()
  4293. }
  4294. if yyb90 {
  4295. z.DecReadArrayEnd()
  4296. return
  4297. }
  4298. z.DecReadArrayElem()
  4299. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4300. yyj90++
  4301. if yyhl90 {
  4302. yyb90 = yyj90 > l
  4303. } else {
  4304. yyb90 = r.CheckBreak()
  4305. }
  4306. if yyb90 {
  4307. z.DecReadArrayEnd()
  4308. return
  4309. }
  4310. z.DecReadArrayElem()
  4311. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4312. yyj90++
  4313. if yyhl90 {
  4314. yyb90 = yyj90 > l
  4315. } else {
  4316. yyb90 = r.CheckBreak()
  4317. }
  4318. if yyb90 {
  4319. z.DecReadArrayEnd()
  4320. return
  4321. }
  4322. z.DecReadArrayElem()
  4323. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4324. yyj90++
  4325. if yyhl90 {
  4326. yyb90 = yyj90 > l
  4327. } else {
  4328. yyb90 = r.CheckBreak()
  4329. }
  4330. if yyb90 {
  4331. z.DecReadArrayEnd()
  4332. return
  4333. }
  4334. z.DecReadArrayElem()
  4335. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4336. yyj90++
  4337. if yyhl90 {
  4338. yyb90 = yyj90 > l
  4339. } else {
  4340. yyb90 = r.CheckBreak()
  4341. }
  4342. if yyb90 {
  4343. z.DecReadArrayEnd()
  4344. return
  4345. }
  4346. z.DecReadArrayElem()
  4347. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4348. yyj90++
  4349. if yyhl90 {
  4350. yyb90 = yyj90 > l
  4351. } else {
  4352. yyb90 = r.CheckBreak()
  4353. }
  4354. if yyb90 {
  4355. z.DecReadArrayEnd()
  4356. return
  4357. }
  4358. z.DecReadArrayElem()
  4359. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4360. yyj90++
  4361. if yyhl90 {
  4362. yyb90 = yyj90 > l
  4363. } else {
  4364. yyb90 = r.CheckBreak()
  4365. }
  4366. if yyb90 {
  4367. z.DecReadArrayEnd()
  4368. return
  4369. }
  4370. z.DecReadArrayElem()
  4371. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4372. yyj90++
  4373. if yyhl90 {
  4374. yyb90 = yyj90 > l
  4375. } else {
  4376. yyb90 = r.CheckBreak()
  4377. }
  4378. if yyb90 {
  4379. z.DecReadArrayEnd()
  4380. return
  4381. }
  4382. z.DecReadArrayElem()
  4383. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4384. yyj90++
  4385. if yyhl90 {
  4386. yyb90 = yyj90 > l
  4387. } else {
  4388. yyb90 = r.CheckBreak()
  4389. }
  4390. if yyb90 {
  4391. z.DecReadArrayEnd()
  4392. return
  4393. }
  4394. z.DecReadArrayElem()
  4395. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  4396. yyj90++
  4397. if yyhl90 {
  4398. yyb90 = yyj90 > l
  4399. } else {
  4400. yyb90 = r.CheckBreak()
  4401. }
  4402. if yyb90 {
  4403. z.DecReadArrayEnd()
  4404. return
  4405. }
  4406. z.DecReadArrayElem()
  4407. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  4408. yyj90++
  4409. if yyhl90 {
  4410. yyb90 = yyj90 > l
  4411. } else {
  4412. yyb90 = r.CheckBreak()
  4413. }
  4414. if yyb90 {
  4415. z.DecReadArrayEnd()
  4416. return
  4417. }
  4418. z.DecReadArrayElem()
  4419. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4420. yyj90++
  4421. if yyhl90 {
  4422. yyb90 = yyj90 > l
  4423. } else {
  4424. yyb90 = r.CheckBreak()
  4425. }
  4426. if yyb90 {
  4427. z.DecReadArrayEnd()
  4428. return
  4429. }
  4430. z.DecReadArrayElem()
  4431. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4432. yyj90++
  4433. if yyhl90 {
  4434. yyb90 = yyj90 > l
  4435. } else {
  4436. yyb90 = r.CheckBreak()
  4437. }
  4438. if yyb90 {
  4439. z.DecReadArrayEnd()
  4440. return
  4441. }
  4442. z.DecReadArrayElem()
  4443. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4444. yyj90++
  4445. if yyhl90 {
  4446. yyb90 = yyj90 > l
  4447. } else {
  4448. yyb90 = r.CheckBreak()
  4449. }
  4450. if yyb90 {
  4451. z.DecReadArrayEnd()
  4452. return
  4453. }
  4454. z.DecReadArrayElem()
  4455. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4456. yyj90++
  4457. if yyhl90 {
  4458. yyb90 = yyj90 > l
  4459. } else {
  4460. yyb90 = r.CheckBreak()
  4461. }
  4462. if yyb90 {
  4463. z.DecReadArrayEnd()
  4464. return
  4465. }
  4466. z.DecReadArrayElem()
  4467. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4468. yyj90++
  4469. if yyhl90 {
  4470. yyb90 = yyj90 > l
  4471. } else {
  4472. yyb90 = r.CheckBreak()
  4473. }
  4474. if yyb90 {
  4475. z.DecReadArrayEnd()
  4476. return
  4477. }
  4478. z.DecReadArrayElem()
  4479. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4480. yyj90++
  4481. if yyhl90 {
  4482. yyb90 = yyj90 > l
  4483. } else {
  4484. yyb90 = r.CheckBreak()
  4485. }
  4486. if yyb90 {
  4487. z.DecReadArrayEnd()
  4488. return
  4489. }
  4490. z.DecReadArrayElem()
  4491. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4492. yyj90++
  4493. if yyhl90 {
  4494. yyb90 = yyj90 > l
  4495. } else {
  4496. yyb90 = r.CheckBreak()
  4497. }
  4498. if yyb90 {
  4499. z.DecReadArrayEnd()
  4500. return
  4501. }
  4502. z.DecReadArrayElem()
  4503. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4504. yyj90++
  4505. if yyhl90 {
  4506. yyb90 = yyj90 > l
  4507. } else {
  4508. yyb90 = r.CheckBreak()
  4509. }
  4510. if yyb90 {
  4511. z.DecReadArrayEnd()
  4512. return
  4513. }
  4514. z.DecReadArrayElem()
  4515. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4516. yyj90++
  4517. if yyhl90 {
  4518. yyb90 = yyj90 > l
  4519. } else {
  4520. yyb90 = r.CheckBreak()
  4521. }
  4522. if yyb90 {
  4523. z.DecReadArrayEnd()
  4524. return
  4525. }
  4526. z.DecReadArrayElem()
  4527. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4528. yyj90++
  4529. if yyhl90 {
  4530. yyb90 = yyj90 > l
  4531. } else {
  4532. yyb90 = r.CheckBreak()
  4533. }
  4534. if yyb90 {
  4535. z.DecReadArrayEnd()
  4536. return
  4537. }
  4538. z.DecReadArrayElem()
  4539. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  4540. yyj90++
  4541. if yyhl90 {
  4542. yyb90 = yyj90 > l
  4543. } else {
  4544. yyb90 = r.CheckBreak()
  4545. }
  4546. if yyb90 {
  4547. z.DecReadArrayEnd()
  4548. return
  4549. }
  4550. z.DecReadArrayElem()
  4551. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  4552. yyj90++
  4553. if yyhl90 {
  4554. yyb90 = yyj90 > l
  4555. } else {
  4556. yyb90 = r.CheckBreak()
  4557. }
  4558. if yyb90 {
  4559. z.DecReadArrayEnd()
  4560. return
  4561. }
  4562. z.DecReadArrayElem()
  4563. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  4564. yyj90++
  4565. if yyhl90 {
  4566. yyb90 = yyj90 > l
  4567. } else {
  4568. yyb90 = r.CheckBreak()
  4569. }
  4570. if yyb90 {
  4571. z.DecReadArrayEnd()
  4572. return
  4573. }
  4574. z.DecReadArrayElem()
  4575. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  4576. yyj90++
  4577. if yyhl90 {
  4578. yyb90 = yyj90 > l
  4579. } else {
  4580. yyb90 = r.CheckBreak()
  4581. }
  4582. if yyb90 {
  4583. z.DecReadArrayEnd()
  4584. return
  4585. }
  4586. z.DecReadArrayElem()
  4587. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  4588. yyj90++
  4589. if yyhl90 {
  4590. yyb90 = yyj90 > l
  4591. } else {
  4592. yyb90 = r.CheckBreak()
  4593. }
  4594. if yyb90 {
  4595. z.DecReadArrayEnd()
  4596. return
  4597. }
  4598. z.DecReadArrayElem()
  4599. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  4600. yyj90++
  4601. if yyhl90 {
  4602. yyb90 = yyj90 > l
  4603. } else {
  4604. yyb90 = r.CheckBreak()
  4605. }
  4606. if yyb90 {
  4607. z.DecReadArrayEnd()
  4608. return
  4609. }
  4610. z.DecReadArrayElem()
  4611. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  4612. yyj90++
  4613. if yyhl90 {
  4614. yyb90 = yyj90 > l
  4615. } else {
  4616. yyb90 = r.CheckBreak()
  4617. }
  4618. if yyb90 {
  4619. z.DecReadArrayEnd()
  4620. return
  4621. }
  4622. z.DecReadArrayElem()
  4623. if r.TryNil() {
  4624. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  4625. x.TestStrucCommon.Nint64 = nil
  4626. }
  4627. } else {
  4628. if x.TestStrucCommon.Nint64 == nil {
  4629. x.TestStrucCommon.Nint64 = new(int64)
  4630. }
  4631. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  4632. }
  4633. yyj90++
  4634. if yyhl90 {
  4635. yyb90 = yyj90 > l
  4636. } else {
  4637. yyb90 = r.CheckBreak()
  4638. }
  4639. if yyb90 {
  4640. z.DecReadArrayEnd()
  4641. return
  4642. }
  4643. z.DecReadArrayElem()
  4644. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  4645. yyj90++
  4646. if yyhl90 {
  4647. yyb90 = yyj90 > l
  4648. } else {
  4649. yyb90 = r.CheckBreak()
  4650. }
  4651. if yyb90 {
  4652. z.DecReadArrayEnd()
  4653. return
  4654. }
  4655. z.DecReadArrayElem()
  4656. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  4657. yyj90++
  4658. if yyhl90 {
  4659. yyb90 = yyj90 > l
  4660. } else {
  4661. yyb90 = r.CheckBreak()
  4662. }
  4663. if yyb90 {
  4664. z.DecReadArrayEnd()
  4665. return
  4666. }
  4667. z.DecReadArrayElem()
  4668. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  4669. yyj90++
  4670. if yyhl90 {
  4671. yyb90 = yyj90 > l
  4672. } else {
  4673. yyb90 = r.CheckBreak()
  4674. }
  4675. if yyb90 {
  4676. z.DecReadArrayEnd()
  4677. return
  4678. }
  4679. z.DecReadArrayElem()
  4680. if r.TryNil() {
  4681. if x.Nteststruc != nil { // remove the if-true
  4682. x.Nteststruc = nil
  4683. }
  4684. } else {
  4685. if x.Nteststruc == nil {
  4686. x.Nteststruc = new(TestStruc)
  4687. }
  4688. x.Nteststruc.CodecDecodeSelf(d)
  4689. }
  4690. for {
  4691. yyj90++
  4692. if yyhl90 {
  4693. yyb90 = yyj90 > l
  4694. } else {
  4695. yyb90 = r.CheckBreak()
  4696. }
  4697. if yyb90 {
  4698. break
  4699. }
  4700. z.DecReadArrayElem()
  4701. z.DecStructFieldNotFound(yyj90-1, "")
  4702. }
  4703. }
  4704. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  4705. var h codecSelfer19780
  4706. z, r := GenHelperEncoder(e)
  4707. _, _, _ = h, z, r
  4708. if x == nil {
  4709. r.EncodeNil()
  4710. } else {
  4711. yysep2 := !z.EncBinary()
  4712. yy2arr2 := z.EncBasicHandle().StructToArray
  4713. _, _ = yysep2, yy2arr2
  4714. const yyr2 bool = false // struct tag has 'toArray'
  4715. if yyr2 || yy2arr2 {
  4716. z.EncWriteArrayStart(1)
  4717. z.EncWriteArrayElem()
  4718. if x.ZZ == nil {
  4719. r.EncodeNil()
  4720. } else {
  4721. r.EncodeStringBytesRaw([]byte(x.ZZ))
  4722. } // end block: if x.ZZ slice == nil
  4723. z.EncWriteArrayEnd()
  4724. } else {
  4725. z.EncWriteMapStart(1)
  4726. z.EncWriteMapElemKey()
  4727. if z.IsJSONHandle() {
  4728. z.WriteStr("\"ZZ\"")
  4729. } else {
  4730. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  4731. }
  4732. z.EncWriteMapElemValue()
  4733. if x.ZZ == nil {
  4734. r.EncodeNil()
  4735. } else {
  4736. r.EncodeStringBytesRaw([]byte(x.ZZ))
  4737. } // end block: if x.ZZ slice == nil
  4738. z.EncWriteMapEnd()
  4739. }
  4740. }
  4741. }
  4742. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  4743. var h codecSelfer19780
  4744. z, r := GenHelperDecoder(d)
  4745. _, _, _ = h, z, r
  4746. yyct2 := r.ContainerType()
  4747. if yyct2 == codecSelferValueTypeNil19780 {
  4748. *(x) = codecgenA{}
  4749. } else if yyct2 == codecSelferValueTypeMap19780 {
  4750. yyl2 := z.DecReadMapStart()
  4751. if yyl2 == 0 {
  4752. } else {
  4753. x.codecDecodeSelfFromMap(yyl2, d)
  4754. }
  4755. z.DecReadMapEnd()
  4756. } else if yyct2 == codecSelferValueTypeArray19780 {
  4757. yyl2 := z.DecReadArrayStart()
  4758. if yyl2 != 0 {
  4759. x.codecDecodeSelfFromArray(yyl2, d)
  4760. }
  4761. z.DecReadArrayEnd()
  4762. } else {
  4763. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4764. }
  4765. }
  4766. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  4767. var h codecSelfer19780
  4768. z, r := GenHelperDecoder(d)
  4769. _, _, _ = h, z, r
  4770. var yyhl3 bool = l >= 0
  4771. for yyj3 := 0; ; yyj3++ {
  4772. if yyhl3 {
  4773. if yyj3 >= l {
  4774. break
  4775. }
  4776. } else {
  4777. if r.CheckBreak() {
  4778. break
  4779. }
  4780. }
  4781. z.DecReadMapElemKey()
  4782. yys3 := z.StringView(r.DecodeStringAsBytes())
  4783. z.DecReadMapElemValue()
  4784. switch yys3 {
  4785. case "ZZ":
  4786. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  4787. default:
  4788. z.DecStructFieldNotFound(-1, yys3)
  4789. } // end switch yys3
  4790. } // end for yyj3
  4791. }
  4792. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  4793. var h codecSelfer19780
  4794. z, r := GenHelperDecoder(d)
  4795. _, _, _ = h, z, r
  4796. var yyj6 int
  4797. var yyb6 bool
  4798. var yyhl6 bool = l >= 0
  4799. yyj6++
  4800. if yyhl6 {
  4801. yyb6 = yyj6 > l
  4802. } else {
  4803. yyb6 = r.CheckBreak()
  4804. }
  4805. if yyb6 {
  4806. z.DecReadArrayEnd()
  4807. return
  4808. }
  4809. z.DecReadArrayElem()
  4810. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  4811. for {
  4812. yyj6++
  4813. if yyhl6 {
  4814. yyb6 = yyj6 > l
  4815. } else {
  4816. yyb6 = r.CheckBreak()
  4817. }
  4818. if yyb6 {
  4819. break
  4820. }
  4821. z.DecReadArrayElem()
  4822. z.DecStructFieldNotFound(yyj6-1, "")
  4823. }
  4824. }
  4825. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  4826. var h codecSelfer19780
  4827. z, r := GenHelperEncoder(e)
  4828. _, _, _ = h, z, r
  4829. if x == nil {
  4830. r.EncodeNil()
  4831. } else {
  4832. yysep2 := !z.EncBinary()
  4833. yy2arr2 := z.EncBasicHandle().StructToArray
  4834. _, _ = yysep2, yy2arr2
  4835. const yyr2 bool = false // struct tag has 'toArray'
  4836. if yyr2 || yy2arr2 {
  4837. z.EncWriteArrayStart(1)
  4838. z.EncWriteArrayElem()
  4839. yy4 := &x.AA
  4840. yy4.CodecEncodeSelf(e)
  4841. z.EncWriteArrayEnd()
  4842. } else {
  4843. z.EncWriteMapStart(1)
  4844. z.EncWriteMapElemKey()
  4845. if z.IsJSONHandle() {
  4846. z.WriteStr("\"AA\"")
  4847. } else {
  4848. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  4849. }
  4850. z.EncWriteMapElemValue()
  4851. yy6 := &x.AA
  4852. yy6.CodecEncodeSelf(e)
  4853. z.EncWriteMapEnd()
  4854. }
  4855. }
  4856. }
  4857. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  4858. var h codecSelfer19780
  4859. z, r := GenHelperDecoder(d)
  4860. _, _, _ = h, z, r
  4861. yyct2 := r.ContainerType()
  4862. if yyct2 == codecSelferValueTypeNil19780 {
  4863. *(x) = codecgenB{}
  4864. } else if yyct2 == codecSelferValueTypeMap19780 {
  4865. yyl2 := z.DecReadMapStart()
  4866. if yyl2 == 0 {
  4867. } else {
  4868. x.codecDecodeSelfFromMap(yyl2, d)
  4869. }
  4870. z.DecReadMapEnd()
  4871. } else if yyct2 == codecSelferValueTypeArray19780 {
  4872. yyl2 := z.DecReadArrayStart()
  4873. if yyl2 != 0 {
  4874. x.codecDecodeSelfFromArray(yyl2, d)
  4875. }
  4876. z.DecReadArrayEnd()
  4877. } else {
  4878. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4879. }
  4880. }
  4881. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  4882. var h codecSelfer19780
  4883. z, r := GenHelperDecoder(d)
  4884. _, _, _ = h, z, r
  4885. var yyhl3 bool = l >= 0
  4886. for yyj3 := 0; ; yyj3++ {
  4887. if yyhl3 {
  4888. if yyj3 >= l {
  4889. break
  4890. }
  4891. } else {
  4892. if r.CheckBreak() {
  4893. break
  4894. }
  4895. }
  4896. z.DecReadMapElemKey()
  4897. yys3 := z.StringView(r.DecodeStringAsBytes())
  4898. z.DecReadMapElemValue()
  4899. switch yys3 {
  4900. case "AA":
  4901. x.AA.CodecDecodeSelf(d)
  4902. default:
  4903. z.DecStructFieldNotFound(-1, yys3)
  4904. } // end switch yys3
  4905. } // end for yyj3
  4906. }
  4907. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  4908. var h codecSelfer19780
  4909. z, r := GenHelperDecoder(d)
  4910. _, _, _ = h, z, r
  4911. var yyj5 int
  4912. var yyb5 bool
  4913. var yyhl5 bool = l >= 0
  4914. yyj5++
  4915. if yyhl5 {
  4916. yyb5 = yyj5 > l
  4917. } else {
  4918. yyb5 = r.CheckBreak()
  4919. }
  4920. if yyb5 {
  4921. z.DecReadArrayEnd()
  4922. return
  4923. }
  4924. z.DecReadArrayElem()
  4925. x.AA.CodecDecodeSelf(d)
  4926. for {
  4927. yyj5++
  4928. if yyhl5 {
  4929. yyb5 = yyj5 > l
  4930. } else {
  4931. yyb5 = r.CheckBreak()
  4932. }
  4933. if yyb5 {
  4934. break
  4935. }
  4936. z.DecReadArrayElem()
  4937. z.DecStructFieldNotFound(yyj5-1, "")
  4938. }
  4939. }
  4940. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  4941. var h codecSelfer19780
  4942. z, r := GenHelperEncoder(e)
  4943. _, _, _ = h, z, r
  4944. if x == nil {
  4945. r.EncodeNil()
  4946. } else {
  4947. yysep2 := !z.EncBinary()
  4948. yy2arr2 := z.EncBasicHandle().StructToArray
  4949. _, _ = yysep2, yy2arr2
  4950. const yyr2 bool = false // struct tag has 'toArray'
  4951. var yyq2 = [1]bool{ // should field at this index be written?
  4952. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  4953. }
  4954. _ = yyq2
  4955. if yyr2 || yy2arr2 {
  4956. z.EncWriteArrayStart(1)
  4957. z.EncWriteArrayElem()
  4958. if yyq2[0] {
  4959. yy4 := &x.BB
  4960. yy4.CodecEncodeSelf(e)
  4961. } else {
  4962. r.EncodeNil()
  4963. }
  4964. z.EncWriteArrayEnd()
  4965. } else {
  4966. var yynn2 int
  4967. for _, b := range yyq2 {
  4968. if b {
  4969. yynn2++
  4970. }
  4971. }
  4972. z.EncWriteMapStart(yynn2)
  4973. yynn2 = 0
  4974. if yyq2[0] {
  4975. z.EncWriteMapElemKey()
  4976. if z.IsJSONHandle() {
  4977. z.WriteStr("\"BB\"")
  4978. } else {
  4979. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  4980. }
  4981. z.EncWriteMapElemValue()
  4982. yy6 := &x.BB
  4983. yy6.CodecEncodeSelf(e)
  4984. }
  4985. z.EncWriteMapEnd()
  4986. }
  4987. }
  4988. }
  4989. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  4990. var h codecSelfer19780
  4991. z, r := GenHelperDecoder(d)
  4992. _, _, _ = h, z, r
  4993. yyct2 := r.ContainerType()
  4994. if yyct2 == codecSelferValueTypeNil19780 {
  4995. *(x) = codecgenC{}
  4996. } else if yyct2 == codecSelferValueTypeMap19780 {
  4997. yyl2 := z.DecReadMapStart()
  4998. if yyl2 == 0 {
  4999. } else {
  5000. x.codecDecodeSelfFromMap(yyl2, d)
  5001. }
  5002. z.DecReadMapEnd()
  5003. } else if yyct2 == codecSelferValueTypeArray19780 {
  5004. yyl2 := z.DecReadArrayStart()
  5005. if yyl2 != 0 {
  5006. x.codecDecodeSelfFromArray(yyl2, d)
  5007. }
  5008. z.DecReadArrayEnd()
  5009. } else {
  5010. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5011. }
  5012. }
  5013. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  5014. var h codecSelfer19780
  5015. z, r := GenHelperDecoder(d)
  5016. _, _, _ = h, z, r
  5017. var yyhl3 bool = l >= 0
  5018. for yyj3 := 0; ; yyj3++ {
  5019. if yyhl3 {
  5020. if yyj3 >= l {
  5021. break
  5022. }
  5023. } else {
  5024. if r.CheckBreak() {
  5025. break
  5026. }
  5027. }
  5028. z.DecReadMapElemKey()
  5029. yys3 := z.StringView(r.DecodeStringAsBytes())
  5030. z.DecReadMapElemValue()
  5031. switch yys3 {
  5032. case "BB":
  5033. x.BB.CodecDecodeSelf(d)
  5034. default:
  5035. z.DecStructFieldNotFound(-1, yys3)
  5036. } // end switch yys3
  5037. } // end for yyj3
  5038. }
  5039. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  5040. var h codecSelfer19780
  5041. z, r := GenHelperDecoder(d)
  5042. _, _, _ = h, z, r
  5043. var yyj5 int
  5044. var yyb5 bool
  5045. var yyhl5 bool = l >= 0
  5046. yyj5++
  5047. if yyhl5 {
  5048. yyb5 = yyj5 > l
  5049. } else {
  5050. yyb5 = r.CheckBreak()
  5051. }
  5052. if yyb5 {
  5053. z.DecReadArrayEnd()
  5054. return
  5055. }
  5056. z.DecReadArrayElem()
  5057. x.BB.CodecDecodeSelf(d)
  5058. for {
  5059. yyj5++
  5060. if yyhl5 {
  5061. yyb5 = yyj5 > l
  5062. } else {
  5063. yyb5 = r.CheckBreak()
  5064. }
  5065. if yyb5 {
  5066. break
  5067. }
  5068. z.DecReadArrayElem()
  5069. z.DecStructFieldNotFound(yyj5-1, "")
  5070. }
  5071. }
  5072. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  5073. var h codecSelfer19780
  5074. z, r := GenHelperEncoder(e)
  5075. _, _, _ = h, z, r
  5076. if x == nil {
  5077. r.EncodeNil()
  5078. } else {
  5079. yysep2 := !z.EncBinary()
  5080. yy2arr2 := z.EncBasicHandle().StructToArray
  5081. _, _ = yysep2, yy2arr2
  5082. const yyr2 bool = false // struct tag has 'toArray'
  5083. if yyr2 || yy2arr2 {
  5084. z.EncWriteArrayStart(1)
  5085. z.EncWriteArrayElem()
  5086. r.EncodeInt(int64(x.TestCodecgenG))
  5087. z.EncWriteArrayEnd()
  5088. } else {
  5089. z.EncWriteMapStart(1)
  5090. z.EncWriteMapElemKey()
  5091. if z.IsJSONHandle() {
  5092. z.WriteStr("\"TestCodecgenG\"")
  5093. } else {
  5094. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5095. }
  5096. z.EncWriteMapElemValue()
  5097. r.EncodeInt(int64(x.TestCodecgenG))
  5098. z.EncWriteMapEnd()
  5099. }
  5100. }
  5101. }
  5102. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  5103. var h codecSelfer19780
  5104. z, r := GenHelperDecoder(d)
  5105. _, _, _ = h, z, r
  5106. yyct2 := r.ContainerType()
  5107. if yyct2 == codecSelferValueTypeNil19780 {
  5108. *(x) = TestCodecgenG{}
  5109. } else if yyct2 == codecSelferValueTypeMap19780 {
  5110. yyl2 := z.DecReadMapStart()
  5111. if yyl2 == 0 {
  5112. } else {
  5113. x.codecDecodeSelfFromMap(yyl2, d)
  5114. }
  5115. z.DecReadMapEnd()
  5116. } else if yyct2 == codecSelferValueTypeArray19780 {
  5117. yyl2 := z.DecReadArrayStart()
  5118. if yyl2 != 0 {
  5119. x.codecDecodeSelfFromArray(yyl2, d)
  5120. }
  5121. z.DecReadArrayEnd()
  5122. } else {
  5123. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5124. }
  5125. }
  5126. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  5127. var h codecSelfer19780
  5128. z, r := GenHelperDecoder(d)
  5129. _, _, _ = h, z, r
  5130. var yyhl3 bool = l >= 0
  5131. for yyj3 := 0; ; yyj3++ {
  5132. if yyhl3 {
  5133. if yyj3 >= l {
  5134. break
  5135. }
  5136. } else {
  5137. if r.CheckBreak() {
  5138. break
  5139. }
  5140. }
  5141. z.DecReadMapElemKey()
  5142. yys3 := z.StringView(r.DecodeStringAsBytes())
  5143. z.DecReadMapElemValue()
  5144. switch yys3 {
  5145. case "TestCodecgenG":
  5146. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5147. default:
  5148. z.DecStructFieldNotFound(-1, yys3)
  5149. } // end switch yys3
  5150. } // end for yyj3
  5151. }
  5152. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  5153. var h codecSelfer19780
  5154. z, r := GenHelperDecoder(d)
  5155. _, _, _ = h, z, r
  5156. var yyj5 int
  5157. var yyb5 bool
  5158. var yyhl5 bool = l >= 0
  5159. yyj5++
  5160. if yyhl5 {
  5161. yyb5 = yyj5 > l
  5162. } else {
  5163. yyb5 = r.CheckBreak()
  5164. }
  5165. if yyb5 {
  5166. z.DecReadArrayEnd()
  5167. return
  5168. }
  5169. z.DecReadArrayElem()
  5170. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5171. for {
  5172. yyj5++
  5173. if yyhl5 {
  5174. yyb5 = yyj5 > l
  5175. } else {
  5176. yyb5 = r.CheckBreak()
  5177. }
  5178. if yyb5 {
  5179. break
  5180. }
  5181. z.DecReadArrayElem()
  5182. z.DecStructFieldNotFound(yyj5-1, "")
  5183. }
  5184. }
  5185. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  5186. var h codecSelfer19780
  5187. z, r := GenHelperEncoder(e)
  5188. _, _, _ = h, z, r
  5189. if x == nil {
  5190. r.EncodeNil()
  5191. } else {
  5192. yysep2 := !z.EncBinary()
  5193. yy2arr2 := z.EncBasicHandle().StructToArray
  5194. _, _ = yysep2, yy2arr2
  5195. const yyr2 bool = false // struct tag has 'toArray'
  5196. if yyr2 || yy2arr2 {
  5197. z.EncWriteArrayStart(1)
  5198. z.EncWriteArrayElem()
  5199. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5200. z.EncWriteArrayEnd()
  5201. } else {
  5202. z.EncWriteMapStart(1)
  5203. z.EncWriteMapElemKey()
  5204. if z.IsJSONHandle() {
  5205. z.WriteStr("\"TestCodecgenG\"")
  5206. } else {
  5207. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5208. }
  5209. z.EncWriteMapElemValue()
  5210. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5211. z.EncWriteMapEnd()
  5212. }
  5213. }
  5214. }
  5215. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  5216. var h codecSelfer19780
  5217. z, r := GenHelperDecoder(d)
  5218. _, _, _ = h, z, r
  5219. yyct2 := r.ContainerType()
  5220. if yyct2 == codecSelferValueTypeNil19780 {
  5221. *(x) = codecgenH{}
  5222. } else if yyct2 == codecSelferValueTypeMap19780 {
  5223. yyl2 := z.DecReadMapStart()
  5224. if yyl2 == 0 {
  5225. } else {
  5226. x.codecDecodeSelfFromMap(yyl2, d)
  5227. }
  5228. z.DecReadMapEnd()
  5229. } else if yyct2 == codecSelferValueTypeArray19780 {
  5230. yyl2 := z.DecReadArrayStart()
  5231. if yyl2 != 0 {
  5232. x.codecDecodeSelfFromArray(yyl2, d)
  5233. }
  5234. z.DecReadArrayEnd()
  5235. } else {
  5236. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5237. }
  5238. }
  5239. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  5240. var h codecSelfer19780
  5241. z, r := GenHelperDecoder(d)
  5242. _, _, _ = h, z, r
  5243. var yyhl3 bool = l >= 0
  5244. for yyj3 := 0; ; yyj3++ {
  5245. if yyhl3 {
  5246. if yyj3 >= l {
  5247. break
  5248. }
  5249. } else {
  5250. if r.CheckBreak() {
  5251. break
  5252. }
  5253. }
  5254. z.DecReadMapElemKey()
  5255. yys3 := z.StringView(r.DecodeStringAsBytes())
  5256. z.DecReadMapElemValue()
  5257. switch yys3 {
  5258. case "TestCodecgenG":
  5259. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5260. default:
  5261. z.DecStructFieldNotFound(-1, yys3)
  5262. } // end switch yys3
  5263. } // end for yyj3
  5264. }
  5265. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  5266. var h codecSelfer19780
  5267. z, r := GenHelperDecoder(d)
  5268. _, _, _ = h, z, r
  5269. var yyj5 int
  5270. var yyb5 bool
  5271. var yyhl5 bool = l >= 0
  5272. yyj5++
  5273. if yyhl5 {
  5274. yyb5 = yyj5 > l
  5275. } else {
  5276. yyb5 = r.CheckBreak()
  5277. }
  5278. if yyb5 {
  5279. z.DecReadArrayEnd()
  5280. return
  5281. }
  5282. z.DecReadArrayElem()
  5283. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5284. for {
  5285. yyj5++
  5286. if yyhl5 {
  5287. yyb5 = yyj5 > l
  5288. } else {
  5289. yyb5 = r.CheckBreak()
  5290. }
  5291. if yyb5 {
  5292. break
  5293. }
  5294. z.DecReadArrayElem()
  5295. z.DecStructFieldNotFound(yyj5-1, "")
  5296. }
  5297. }
  5298. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  5299. var h codecSelfer19780
  5300. z, r := GenHelperEncoder(e)
  5301. _, _, _ = h, z, r
  5302. if x == nil {
  5303. r.EncodeNil()
  5304. } else {
  5305. yysep2 := !z.EncBinary()
  5306. yy2arr2 := z.EncBasicHandle().StructToArray
  5307. _, _ = yysep2, yy2arr2
  5308. const yyr2 bool = false // struct tag has 'toArray'
  5309. if yyr2 || yy2arr2 {
  5310. z.EncWriteArrayStart(1)
  5311. z.EncWriteArrayElem()
  5312. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5313. z.EncWriteArrayEnd()
  5314. } else {
  5315. z.EncWriteMapStart(1)
  5316. z.EncWriteMapElemKey()
  5317. if z.IsJSONHandle() {
  5318. z.WriteStr("\"TestCodecgenG\"")
  5319. } else {
  5320. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5321. }
  5322. z.EncWriteMapElemValue()
  5323. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5324. z.EncWriteMapEnd()
  5325. }
  5326. }
  5327. }
  5328. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  5329. var h codecSelfer19780
  5330. z, r := GenHelperDecoder(d)
  5331. _, _, _ = h, z, r
  5332. yyct2 := r.ContainerType()
  5333. if yyct2 == codecSelferValueTypeNil19780 {
  5334. *(x) = codecgenI{}
  5335. } else if yyct2 == codecSelferValueTypeMap19780 {
  5336. yyl2 := z.DecReadMapStart()
  5337. if yyl2 == 0 {
  5338. } else {
  5339. x.codecDecodeSelfFromMap(yyl2, d)
  5340. }
  5341. z.DecReadMapEnd()
  5342. } else if yyct2 == codecSelferValueTypeArray19780 {
  5343. yyl2 := z.DecReadArrayStart()
  5344. if yyl2 != 0 {
  5345. x.codecDecodeSelfFromArray(yyl2, d)
  5346. }
  5347. z.DecReadArrayEnd()
  5348. } else {
  5349. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5350. }
  5351. }
  5352. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  5353. var h codecSelfer19780
  5354. z, r := GenHelperDecoder(d)
  5355. _, _, _ = h, z, r
  5356. var yyhl3 bool = l >= 0
  5357. for yyj3 := 0; ; yyj3++ {
  5358. if yyhl3 {
  5359. if yyj3 >= l {
  5360. break
  5361. }
  5362. } else {
  5363. if r.CheckBreak() {
  5364. break
  5365. }
  5366. }
  5367. z.DecReadMapElemKey()
  5368. yys3 := z.StringView(r.DecodeStringAsBytes())
  5369. z.DecReadMapElemValue()
  5370. switch yys3 {
  5371. case "TestCodecgenG":
  5372. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5373. default:
  5374. z.DecStructFieldNotFound(-1, yys3)
  5375. } // end switch yys3
  5376. } // end for yyj3
  5377. }
  5378. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  5379. var h codecSelfer19780
  5380. z, r := GenHelperDecoder(d)
  5381. _, _, _ = h, z, r
  5382. var yyj5 int
  5383. var yyb5 bool
  5384. var yyhl5 bool = l >= 0
  5385. yyj5++
  5386. if yyhl5 {
  5387. yyb5 = yyj5 > l
  5388. } else {
  5389. yyb5 = r.CheckBreak()
  5390. }
  5391. if yyb5 {
  5392. z.DecReadArrayEnd()
  5393. return
  5394. }
  5395. z.DecReadArrayElem()
  5396. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5397. for {
  5398. yyj5++
  5399. if yyhl5 {
  5400. yyb5 = yyj5 > l
  5401. } else {
  5402. yyb5 = r.CheckBreak()
  5403. }
  5404. if yyb5 {
  5405. break
  5406. }
  5407. z.DecReadArrayElem()
  5408. z.DecStructFieldNotFound(yyj5-1, "")
  5409. }
  5410. }
  5411. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  5412. var h codecSelfer19780
  5413. z, r := GenHelperEncoder(e)
  5414. _, _, _ = h, z, r
  5415. if x == nil {
  5416. r.EncodeNil()
  5417. } else {
  5418. yysep2 := !z.EncBinary()
  5419. yy2arr2 := z.EncBasicHandle().StructToArray
  5420. _, _ = yysep2, yy2arr2
  5421. const yyr2 bool = false // struct tag has 'toArray'
  5422. if yyr2 || yy2arr2 {
  5423. z.EncWriteArrayStart(2)
  5424. z.EncWriteArrayElem()
  5425. r.EncodeInt(int64(x.X))
  5426. z.EncWriteArrayElem()
  5427. if z.EncBasicHandle().StringToRaw {
  5428. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5429. } else {
  5430. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5431. }
  5432. z.EncWriteArrayEnd()
  5433. } else {
  5434. z.EncWriteMapStart(2)
  5435. z.EncWriteMapElemKey()
  5436. if z.IsJSONHandle() {
  5437. z.WriteStr("\"X\"")
  5438. } else {
  5439. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5440. }
  5441. z.EncWriteMapElemValue()
  5442. r.EncodeInt(int64(x.X))
  5443. z.EncWriteMapElemKey()
  5444. if z.IsJSONHandle() {
  5445. z.WriteStr("\"Y\"")
  5446. } else {
  5447. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5448. }
  5449. z.EncWriteMapElemValue()
  5450. if z.EncBasicHandle().StringToRaw {
  5451. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5452. } else {
  5453. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5454. }
  5455. z.EncWriteMapEnd()
  5456. }
  5457. }
  5458. }
  5459. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  5460. var h codecSelfer19780
  5461. z, r := GenHelperDecoder(d)
  5462. _, _, _ = h, z, r
  5463. yyct2 := r.ContainerType()
  5464. if yyct2 == codecSelferValueTypeNil19780 {
  5465. *(x) = codecgenK{}
  5466. } else if yyct2 == codecSelferValueTypeMap19780 {
  5467. yyl2 := z.DecReadMapStart()
  5468. if yyl2 == 0 {
  5469. } else {
  5470. x.codecDecodeSelfFromMap(yyl2, d)
  5471. }
  5472. z.DecReadMapEnd()
  5473. } else if yyct2 == codecSelferValueTypeArray19780 {
  5474. yyl2 := z.DecReadArrayStart()
  5475. if yyl2 != 0 {
  5476. x.codecDecodeSelfFromArray(yyl2, d)
  5477. }
  5478. z.DecReadArrayEnd()
  5479. } else {
  5480. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5481. }
  5482. }
  5483. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  5484. var h codecSelfer19780
  5485. z, r := GenHelperDecoder(d)
  5486. _, _, _ = h, z, r
  5487. var yyhl3 bool = l >= 0
  5488. for yyj3 := 0; ; yyj3++ {
  5489. if yyhl3 {
  5490. if yyj3 >= l {
  5491. break
  5492. }
  5493. } else {
  5494. if r.CheckBreak() {
  5495. break
  5496. }
  5497. }
  5498. z.DecReadMapElemKey()
  5499. yys3 := z.StringView(r.DecodeStringAsBytes())
  5500. z.DecReadMapElemValue()
  5501. switch yys3 {
  5502. case "X":
  5503. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5504. case "Y":
  5505. x.Y = (string)(string(r.DecodeStringAsBytes()))
  5506. default:
  5507. z.DecStructFieldNotFound(-1, yys3)
  5508. } // end switch yys3
  5509. } // end for yyj3
  5510. }
  5511. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  5512. var h codecSelfer19780
  5513. z, r := GenHelperDecoder(d)
  5514. _, _, _ = h, z, r
  5515. var yyj6 int
  5516. var yyb6 bool
  5517. var yyhl6 bool = l >= 0
  5518. yyj6++
  5519. if yyhl6 {
  5520. yyb6 = yyj6 > l
  5521. } else {
  5522. yyb6 = r.CheckBreak()
  5523. }
  5524. if yyb6 {
  5525. z.DecReadArrayEnd()
  5526. return
  5527. }
  5528. z.DecReadArrayElem()
  5529. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5530. yyj6++
  5531. if yyhl6 {
  5532. yyb6 = yyj6 > l
  5533. } else {
  5534. yyb6 = r.CheckBreak()
  5535. }
  5536. if yyb6 {
  5537. z.DecReadArrayEnd()
  5538. return
  5539. }
  5540. z.DecReadArrayElem()
  5541. x.Y = (string)(string(r.DecodeStringAsBytes()))
  5542. for {
  5543. yyj6++
  5544. if yyhl6 {
  5545. yyb6 = yyj6 > l
  5546. } else {
  5547. yyb6 = r.CheckBreak()
  5548. }
  5549. if yyb6 {
  5550. break
  5551. }
  5552. z.DecReadArrayElem()
  5553. z.DecStructFieldNotFound(yyj6-1, "")
  5554. }
  5555. }
  5556. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  5557. var h codecSelfer19780
  5558. z, r := GenHelperEncoder(e)
  5559. _, _, _ = h, z, r
  5560. if x == nil {
  5561. r.EncodeNil()
  5562. } else {
  5563. yysep2 := !z.EncBinary()
  5564. yy2arr2 := z.EncBasicHandle().StructToArray
  5565. _, _ = yysep2, yy2arr2
  5566. const yyr2 bool = false // struct tag has 'toArray'
  5567. if yyr2 || yy2arr2 {
  5568. z.EncWriteArrayStart(2)
  5569. z.EncWriteArrayElem()
  5570. r.EncodeInt(int64(x.X))
  5571. z.EncWriteArrayElem()
  5572. r.EncodeUint(uint64(x.Y))
  5573. z.EncWriteArrayEnd()
  5574. } else {
  5575. z.EncWriteMapStart(2)
  5576. z.EncWriteMapElemKey()
  5577. if z.IsJSONHandle() {
  5578. z.WriteStr("\"X\"")
  5579. } else {
  5580. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5581. }
  5582. z.EncWriteMapElemValue()
  5583. r.EncodeInt(int64(x.X))
  5584. z.EncWriteMapElemKey()
  5585. if z.IsJSONHandle() {
  5586. z.WriteStr("\"Y\"")
  5587. } else {
  5588. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5589. }
  5590. z.EncWriteMapElemValue()
  5591. r.EncodeUint(uint64(x.Y))
  5592. z.EncWriteMapEnd()
  5593. }
  5594. }
  5595. }
  5596. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  5597. var h codecSelfer19780
  5598. z, r := GenHelperDecoder(d)
  5599. _, _, _ = h, z, r
  5600. yyct2 := r.ContainerType()
  5601. if yyct2 == codecSelferValueTypeNil19780 {
  5602. *(x) = codecgenL{}
  5603. } else if yyct2 == codecSelferValueTypeMap19780 {
  5604. yyl2 := z.DecReadMapStart()
  5605. if yyl2 == 0 {
  5606. } else {
  5607. x.codecDecodeSelfFromMap(yyl2, d)
  5608. }
  5609. z.DecReadMapEnd()
  5610. } else if yyct2 == codecSelferValueTypeArray19780 {
  5611. yyl2 := z.DecReadArrayStart()
  5612. if yyl2 != 0 {
  5613. x.codecDecodeSelfFromArray(yyl2, d)
  5614. }
  5615. z.DecReadArrayEnd()
  5616. } else {
  5617. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5618. }
  5619. }
  5620. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  5621. var h codecSelfer19780
  5622. z, r := GenHelperDecoder(d)
  5623. _, _, _ = h, z, r
  5624. var yyhl3 bool = l >= 0
  5625. for yyj3 := 0; ; yyj3++ {
  5626. if yyhl3 {
  5627. if yyj3 >= l {
  5628. break
  5629. }
  5630. } else {
  5631. if r.CheckBreak() {
  5632. break
  5633. }
  5634. }
  5635. z.DecReadMapElemKey()
  5636. yys3 := z.StringView(r.DecodeStringAsBytes())
  5637. z.DecReadMapElemValue()
  5638. switch yys3 {
  5639. case "X":
  5640. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5641. case "Y":
  5642. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  5643. default:
  5644. z.DecStructFieldNotFound(-1, yys3)
  5645. } // end switch yys3
  5646. } // end for yyj3
  5647. }
  5648. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  5649. var h codecSelfer19780
  5650. z, r := GenHelperDecoder(d)
  5651. _, _, _ = h, z, r
  5652. var yyj6 int
  5653. var yyb6 bool
  5654. var yyhl6 bool = l >= 0
  5655. yyj6++
  5656. if yyhl6 {
  5657. yyb6 = yyj6 > l
  5658. } else {
  5659. yyb6 = r.CheckBreak()
  5660. }
  5661. if yyb6 {
  5662. z.DecReadArrayEnd()
  5663. return
  5664. }
  5665. z.DecReadArrayElem()
  5666. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5667. yyj6++
  5668. if yyhl6 {
  5669. yyb6 = yyj6 > l
  5670. } else {
  5671. yyb6 = r.CheckBreak()
  5672. }
  5673. if yyb6 {
  5674. z.DecReadArrayEnd()
  5675. return
  5676. }
  5677. z.DecReadArrayElem()
  5678. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  5679. for {
  5680. yyj6++
  5681. if yyhl6 {
  5682. yyb6 = yyj6 > l
  5683. } else {
  5684. yyb6 = r.CheckBreak()
  5685. }
  5686. if yyb6 {
  5687. break
  5688. }
  5689. z.DecReadArrayElem()
  5690. z.DecStructFieldNotFound(yyj6-1, "")
  5691. }
  5692. }
  5693. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  5694. var h codecSelfer19780
  5695. z, r := GenHelperEncoder(e)
  5696. _, _, _ = h, z, r
  5697. if x == nil {
  5698. r.EncodeNil()
  5699. } else {
  5700. yysep2 := !z.EncBinary()
  5701. yy2arr2 := z.EncBasicHandle().StructToArray
  5702. _, _ = yysep2, yy2arr2
  5703. const yyr2 bool = false // struct tag has 'toArray'
  5704. if yyr2 || yy2arr2 {
  5705. z.EncWriteArrayStart(2)
  5706. z.EncWriteArrayElem()
  5707. r.EncodeInt(int64(x.codecgenK.X))
  5708. z.EncWriteArrayElem()
  5709. if z.EncBasicHandle().StringToRaw {
  5710. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  5711. } else {
  5712. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  5713. }
  5714. z.EncWriteArrayEnd()
  5715. } else {
  5716. z.EncWriteMapStart(2)
  5717. z.EncWriteMapElemKey()
  5718. if z.IsJSONHandle() {
  5719. z.WriteStr("\"X\"")
  5720. } else {
  5721. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5722. }
  5723. z.EncWriteMapElemValue()
  5724. r.EncodeInt(int64(x.codecgenK.X))
  5725. z.EncWriteMapElemKey()
  5726. if z.IsJSONHandle() {
  5727. z.WriteStr("\"Y\"")
  5728. } else {
  5729. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5730. }
  5731. z.EncWriteMapElemValue()
  5732. if z.EncBasicHandle().StringToRaw {
  5733. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  5734. } else {
  5735. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  5736. }
  5737. z.EncWriteMapEnd()
  5738. }
  5739. }
  5740. }
  5741. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  5742. var h codecSelfer19780
  5743. z, r := GenHelperDecoder(d)
  5744. _, _, _ = h, z, r
  5745. yyct2 := r.ContainerType()
  5746. if yyct2 == codecSelferValueTypeNil19780 {
  5747. *(x) = codecgenM{}
  5748. } else if yyct2 == codecSelferValueTypeMap19780 {
  5749. yyl2 := z.DecReadMapStart()
  5750. if yyl2 == 0 {
  5751. } else {
  5752. x.codecDecodeSelfFromMap(yyl2, d)
  5753. }
  5754. z.DecReadMapEnd()
  5755. } else if yyct2 == codecSelferValueTypeArray19780 {
  5756. yyl2 := z.DecReadArrayStart()
  5757. if yyl2 != 0 {
  5758. x.codecDecodeSelfFromArray(yyl2, d)
  5759. }
  5760. z.DecReadArrayEnd()
  5761. } else {
  5762. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5763. }
  5764. }
  5765. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  5766. var h codecSelfer19780
  5767. z, r := GenHelperDecoder(d)
  5768. _, _, _ = h, z, r
  5769. var yyhl3 bool = l >= 0
  5770. for yyj3 := 0; ; yyj3++ {
  5771. if yyhl3 {
  5772. if yyj3 >= l {
  5773. break
  5774. }
  5775. } else {
  5776. if r.CheckBreak() {
  5777. break
  5778. }
  5779. }
  5780. z.DecReadMapElemKey()
  5781. yys3 := z.StringView(r.DecodeStringAsBytes())
  5782. z.DecReadMapElemValue()
  5783. switch yys3 {
  5784. case "X":
  5785. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5786. case "Y":
  5787. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  5788. default:
  5789. z.DecStructFieldNotFound(-1, yys3)
  5790. } // end switch yys3
  5791. } // end for yyj3
  5792. }
  5793. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  5794. var h codecSelfer19780
  5795. z, r := GenHelperDecoder(d)
  5796. _, _, _ = h, z, r
  5797. var yyj6 int
  5798. var yyb6 bool
  5799. var yyhl6 bool = l >= 0
  5800. yyj6++
  5801. if yyhl6 {
  5802. yyb6 = yyj6 > l
  5803. } else {
  5804. yyb6 = r.CheckBreak()
  5805. }
  5806. if yyb6 {
  5807. z.DecReadArrayEnd()
  5808. return
  5809. }
  5810. z.DecReadArrayElem()
  5811. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5812. yyj6++
  5813. if yyhl6 {
  5814. yyb6 = yyj6 > l
  5815. } else {
  5816. yyb6 = r.CheckBreak()
  5817. }
  5818. if yyb6 {
  5819. z.DecReadArrayEnd()
  5820. return
  5821. }
  5822. z.DecReadArrayElem()
  5823. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  5824. for {
  5825. yyj6++
  5826. if yyhl6 {
  5827. yyb6 = yyj6 > l
  5828. } else {
  5829. yyb6 = r.CheckBreak()
  5830. }
  5831. if yyb6 {
  5832. break
  5833. }
  5834. z.DecReadArrayElem()
  5835. z.DecStructFieldNotFound(yyj6-1, "")
  5836. }
  5837. }
  5838. func (x *testStrucKeyTypeT0) CodecEncodeSelf(e *Encoder) {
  5839. var h codecSelfer19780
  5840. z, r := GenHelperEncoder(e)
  5841. _, _, _ = h, z, r
  5842. if x == nil {
  5843. r.EncodeNil()
  5844. } else {
  5845. yysep2 := !z.EncBinary()
  5846. yy2arr2 := z.EncBasicHandle().StructToArray
  5847. _, _ = yysep2, yy2arr2
  5848. const yyr2 bool = false // struct tag has 'toArray'
  5849. if yyr2 || yy2arr2 {
  5850. z.EncWriteArrayStart(1)
  5851. z.EncWriteArrayElem()
  5852. r.EncodeInt(int64(x.F))
  5853. z.EncWriteArrayEnd()
  5854. } else {
  5855. z.EncWriteMapStart(1)
  5856. z.EncWriteMapElemKey()
  5857. if z.IsJSONHandle() {
  5858. z.WriteStr("\"F\"")
  5859. } else {
  5860. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  5861. }
  5862. z.EncWriteMapElemValue()
  5863. r.EncodeInt(int64(x.F))
  5864. z.EncWriteMapEnd()
  5865. }
  5866. }
  5867. }
  5868. func (x *testStrucKeyTypeT0) CodecDecodeSelf(d *Decoder) {
  5869. var h codecSelfer19780
  5870. z, r := GenHelperDecoder(d)
  5871. _, _, _ = h, z, r
  5872. yyct2 := r.ContainerType()
  5873. if yyct2 == codecSelferValueTypeNil19780 {
  5874. *(x) = testStrucKeyTypeT0{}
  5875. } else if yyct2 == codecSelferValueTypeMap19780 {
  5876. yyl2 := z.DecReadMapStart()
  5877. if yyl2 == 0 {
  5878. } else {
  5879. x.codecDecodeSelfFromMap(yyl2, d)
  5880. }
  5881. z.DecReadMapEnd()
  5882. } else if yyct2 == codecSelferValueTypeArray19780 {
  5883. yyl2 := z.DecReadArrayStart()
  5884. if yyl2 != 0 {
  5885. x.codecDecodeSelfFromArray(yyl2, d)
  5886. }
  5887. z.DecReadArrayEnd()
  5888. } else {
  5889. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5890. }
  5891. }
  5892. func (x *testStrucKeyTypeT0) codecDecodeSelfFromMap(l int, d *Decoder) {
  5893. var h codecSelfer19780
  5894. z, r := GenHelperDecoder(d)
  5895. _, _, _ = h, z, r
  5896. var yyhl3 bool = l >= 0
  5897. for yyj3 := 0; ; yyj3++ {
  5898. if yyhl3 {
  5899. if yyj3 >= l {
  5900. break
  5901. }
  5902. } else {
  5903. if r.CheckBreak() {
  5904. break
  5905. }
  5906. }
  5907. z.DecReadMapElemKey()
  5908. yys3 := z.StringView(r.DecodeStringAsBytes())
  5909. z.DecReadMapElemValue()
  5910. switch yys3 {
  5911. case "F":
  5912. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5913. default:
  5914. z.DecStructFieldNotFound(-1, yys3)
  5915. } // end switch yys3
  5916. } // end for yyj3
  5917. }
  5918. func (x *testStrucKeyTypeT0) codecDecodeSelfFromArray(l int, d *Decoder) {
  5919. var h codecSelfer19780
  5920. z, r := GenHelperDecoder(d)
  5921. _, _, _ = h, z, r
  5922. var yyj5 int
  5923. var yyb5 bool
  5924. var yyhl5 bool = l >= 0
  5925. yyj5++
  5926. if yyhl5 {
  5927. yyb5 = yyj5 > l
  5928. } else {
  5929. yyb5 = r.CheckBreak()
  5930. }
  5931. if yyb5 {
  5932. z.DecReadArrayEnd()
  5933. return
  5934. }
  5935. z.DecReadArrayElem()
  5936. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5937. for {
  5938. yyj5++
  5939. if yyhl5 {
  5940. yyb5 = yyj5 > l
  5941. } else {
  5942. yyb5 = r.CheckBreak()
  5943. }
  5944. if yyb5 {
  5945. break
  5946. }
  5947. z.DecReadArrayElem()
  5948. z.DecStructFieldNotFound(yyj5-1, "")
  5949. }
  5950. }
  5951. func (x *testStrucKeyTypeT1) CodecEncodeSelf(e *Encoder) {
  5952. var h codecSelfer19780
  5953. z, r := GenHelperEncoder(e)
  5954. _, _, _ = h, z, r
  5955. if x == nil {
  5956. r.EncodeNil()
  5957. } else {
  5958. yysep2 := !z.EncBinary()
  5959. yy2arr2 := z.EncBasicHandle().StructToArray
  5960. _, _ = yysep2, yy2arr2
  5961. const yyr2 bool = false // struct tag has 'toArray'
  5962. if yyr2 || yy2arr2 {
  5963. z.EncWriteArrayStart(1)
  5964. z.EncWriteArrayElem()
  5965. r.EncodeInt(int64(x.F))
  5966. z.EncWriteArrayEnd()
  5967. } else {
  5968. z.EncWriteMapStart(1)
  5969. z.EncWriteMapElemKey()
  5970. if z.IsJSONHandle() {
  5971. z.WriteStr("\"FFFF\"")
  5972. } else {
  5973. r.EncodeStringEnc(codecSelferCcUTF819780, `FFFF`)
  5974. }
  5975. z.EncWriteMapElemValue()
  5976. r.EncodeInt(int64(x.F))
  5977. z.EncWriteMapEnd()
  5978. }
  5979. }
  5980. }
  5981. func (x *testStrucKeyTypeT1) CodecDecodeSelf(d *Decoder) {
  5982. var h codecSelfer19780
  5983. z, r := GenHelperDecoder(d)
  5984. _, _, _ = h, z, r
  5985. yyct2 := r.ContainerType()
  5986. if yyct2 == codecSelferValueTypeNil19780 {
  5987. *(x) = testStrucKeyTypeT1{}
  5988. } else if yyct2 == codecSelferValueTypeMap19780 {
  5989. yyl2 := z.DecReadMapStart()
  5990. if yyl2 == 0 {
  5991. } else {
  5992. x.codecDecodeSelfFromMap(yyl2, d)
  5993. }
  5994. z.DecReadMapEnd()
  5995. } else if yyct2 == codecSelferValueTypeArray19780 {
  5996. yyl2 := z.DecReadArrayStart()
  5997. if yyl2 != 0 {
  5998. x.codecDecodeSelfFromArray(yyl2, d)
  5999. }
  6000. z.DecReadArrayEnd()
  6001. } else {
  6002. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6003. }
  6004. }
  6005. func (x *testStrucKeyTypeT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  6006. var h codecSelfer19780
  6007. z, r := GenHelperDecoder(d)
  6008. _, _, _ = h, z, r
  6009. var yyhl3 bool = l >= 0
  6010. for yyj3 := 0; ; yyj3++ {
  6011. if yyhl3 {
  6012. if yyj3 >= l {
  6013. break
  6014. }
  6015. } else {
  6016. if r.CheckBreak() {
  6017. break
  6018. }
  6019. }
  6020. z.DecReadMapElemKey()
  6021. yys3 := z.StringView(r.DecodeStringAsBytes())
  6022. z.DecReadMapElemValue()
  6023. switch yys3 {
  6024. case "FFFF":
  6025. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6026. default:
  6027. z.DecStructFieldNotFound(-1, yys3)
  6028. } // end switch yys3
  6029. } // end for yyj3
  6030. }
  6031. func (x *testStrucKeyTypeT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  6032. var h codecSelfer19780
  6033. z, r := GenHelperDecoder(d)
  6034. _, _, _ = h, z, r
  6035. var yyj5 int
  6036. var yyb5 bool
  6037. var yyhl5 bool = l >= 0
  6038. yyj5++
  6039. if yyhl5 {
  6040. yyb5 = yyj5 > l
  6041. } else {
  6042. yyb5 = r.CheckBreak()
  6043. }
  6044. if yyb5 {
  6045. z.DecReadArrayEnd()
  6046. return
  6047. }
  6048. z.DecReadArrayElem()
  6049. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6050. for {
  6051. yyj5++
  6052. if yyhl5 {
  6053. yyb5 = yyj5 > l
  6054. } else {
  6055. yyb5 = r.CheckBreak()
  6056. }
  6057. if yyb5 {
  6058. break
  6059. }
  6060. z.DecReadArrayElem()
  6061. z.DecStructFieldNotFound(yyj5-1, "")
  6062. }
  6063. }
  6064. func (x *testStrucKeyTypeT2) CodecEncodeSelf(e *Encoder) {
  6065. var h codecSelfer19780
  6066. z, r := GenHelperEncoder(e)
  6067. _, _, _ = h, z, r
  6068. if x == nil {
  6069. r.EncodeNil()
  6070. } else {
  6071. yysep2 := !z.EncBinary()
  6072. yy2arr2 := z.EncBasicHandle().StructToArray
  6073. _, _ = yysep2, yy2arr2
  6074. const yyr2 bool = false // struct tag has 'toArray'
  6075. if yyr2 || yy2arr2 {
  6076. z.EncWriteArrayStart(1)
  6077. z.EncWriteArrayElem()
  6078. r.EncodeInt(int64(x.F))
  6079. z.EncWriteArrayEnd()
  6080. } else {
  6081. z.EncWriteMapStart(1)
  6082. z.EncWriteMapElemKey()
  6083. r.EncodeInt(z.M.Int(strconv.ParseInt(`-1`, 10, 64)))
  6084. z.EncWriteMapElemValue()
  6085. r.EncodeInt(int64(x.F))
  6086. z.EncWriteMapEnd()
  6087. }
  6088. }
  6089. }
  6090. func (x *testStrucKeyTypeT2) CodecDecodeSelf(d *Decoder) {
  6091. var h codecSelfer19780
  6092. z, r := GenHelperDecoder(d)
  6093. _, _, _ = h, z, r
  6094. yyct2 := r.ContainerType()
  6095. if yyct2 == codecSelferValueTypeNil19780 {
  6096. *(x) = testStrucKeyTypeT2{}
  6097. } else if yyct2 == codecSelferValueTypeMap19780 {
  6098. yyl2 := z.DecReadMapStart()
  6099. if yyl2 == 0 {
  6100. } else {
  6101. x.codecDecodeSelfFromMap(yyl2, d)
  6102. }
  6103. z.DecReadMapEnd()
  6104. } else if yyct2 == codecSelferValueTypeArray19780 {
  6105. yyl2 := z.DecReadArrayStart()
  6106. if yyl2 != 0 {
  6107. x.codecDecodeSelfFromArray(yyl2, d)
  6108. }
  6109. z.DecReadArrayEnd()
  6110. } else {
  6111. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6112. }
  6113. }
  6114. func (x *testStrucKeyTypeT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  6115. var h codecSelfer19780
  6116. z, r := GenHelperDecoder(d)
  6117. _, _, _ = h, z, r
  6118. var yyhl3 bool = l >= 0
  6119. for yyj3 := 0; ; yyj3++ {
  6120. if yyhl3 {
  6121. if yyj3 >= l {
  6122. break
  6123. }
  6124. } else {
  6125. if r.CheckBreak() {
  6126. break
  6127. }
  6128. }
  6129. z.DecReadMapElemKey()
  6130. yys3 := z.StringView(strconv.AppendInt(z.DecScratchArrayBuffer()[:0], r.DecodeInt64(), 10))
  6131. z.DecReadMapElemValue()
  6132. switch yys3 {
  6133. case "-1":
  6134. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6135. default:
  6136. z.DecStructFieldNotFound(-1, yys3)
  6137. } // end switch yys3
  6138. } // end for yyj3
  6139. }
  6140. func (x *testStrucKeyTypeT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  6141. var h codecSelfer19780
  6142. z, r := GenHelperDecoder(d)
  6143. _, _, _ = h, z, r
  6144. var yyj5 int
  6145. var yyb5 bool
  6146. var yyhl5 bool = l >= 0
  6147. yyj5++
  6148. if yyhl5 {
  6149. yyb5 = yyj5 > l
  6150. } else {
  6151. yyb5 = r.CheckBreak()
  6152. }
  6153. if yyb5 {
  6154. z.DecReadArrayEnd()
  6155. return
  6156. }
  6157. z.DecReadArrayElem()
  6158. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6159. for {
  6160. yyj5++
  6161. if yyhl5 {
  6162. yyb5 = yyj5 > l
  6163. } else {
  6164. yyb5 = r.CheckBreak()
  6165. }
  6166. if yyb5 {
  6167. break
  6168. }
  6169. z.DecReadArrayElem()
  6170. z.DecStructFieldNotFound(yyj5-1, "")
  6171. }
  6172. }
  6173. func (x *testStrucKeyTypeT3) CodecEncodeSelf(e *Encoder) {
  6174. var h codecSelfer19780
  6175. z, r := GenHelperEncoder(e)
  6176. _, _, _ = h, z, r
  6177. if x == nil {
  6178. r.EncodeNil()
  6179. } else {
  6180. yysep2 := !z.EncBinary()
  6181. yy2arr2 := z.EncBasicHandle().StructToArray
  6182. _, _ = yysep2, yy2arr2
  6183. const yyr2 bool = false // struct tag has 'toArray'
  6184. if yyr2 || yy2arr2 {
  6185. z.EncWriteArrayStart(1)
  6186. z.EncWriteArrayElem()
  6187. r.EncodeInt(int64(x.F))
  6188. z.EncWriteArrayEnd()
  6189. } else {
  6190. z.EncWriteMapStart(1)
  6191. z.EncWriteMapElemKey()
  6192. r.EncodeUint(z.M.Uint(strconv.ParseUint(`1`, 10, 64)))
  6193. z.EncWriteMapElemValue()
  6194. r.EncodeInt(int64(x.F))
  6195. z.EncWriteMapEnd()
  6196. }
  6197. }
  6198. }
  6199. func (x *testStrucKeyTypeT3) CodecDecodeSelf(d *Decoder) {
  6200. var h codecSelfer19780
  6201. z, r := GenHelperDecoder(d)
  6202. _, _, _ = h, z, r
  6203. yyct2 := r.ContainerType()
  6204. if yyct2 == codecSelferValueTypeNil19780 {
  6205. *(x) = testStrucKeyTypeT3{}
  6206. } else if yyct2 == codecSelferValueTypeMap19780 {
  6207. yyl2 := z.DecReadMapStart()
  6208. if yyl2 == 0 {
  6209. } else {
  6210. x.codecDecodeSelfFromMap(yyl2, d)
  6211. }
  6212. z.DecReadMapEnd()
  6213. } else if yyct2 == codecSelferValueTypeArray19780 {
  6214. yyl2 := z.DecReadArrayStart()
  6215. if yyl2 != 0 {
  6216. x.codecDecodeSelfFromArray(yyl2, d)
  6217. }
  6218. z.DecReadArrayEnd()
  6219. } else {
  6220. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6221. }
  6222. }
  6223. func (x *testStrucKeyTypeT3) codecDecodeSelfFromMap(l int, d *Decoder) {
  6224. var h codecSelfer19780
  6225. z, r := GenHelperDecoder(d)
  6226. _, _, _ = h, z, r
  6227. var yyhl3 bool = l >= 0
  6228. for yyj3 := 0; ; yyj3++ {
  6229. if yyhl3 {
  6230. if yyj3 >= l {
  6231. break
  6232. }
  6233. } else {
  6234. if r.CheckBreak() {
  6235. break
  6236. }
  6237. }
  6238. z.DecReadMapElemKey()
  6239. yys3 := z.StringView(strconv.AppendUint(z.DecScratchArrayBuffer()[:0], r.DecodeUint64(), 10))
  6240. z.DecReadMapElemValue()
  6241. switch yys3 {
  6242. case "1":
  6243. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6244. default:
  6245. z.DecStructFieldNotFound(-1, yys3)
  6246. } // end switch yys3
  6247. } // end for yyj3
  6248. }
  6249. func (x *testStrucKeyTypeT3) codecDecodeSelfFromArray(l int, d *Decoder) {
  6250. var h codecSelfer19780
  6251. z, r := GenHelperDecoder(d)
  6252. _, _, _ = h, z, r
  6253. var yyj5 int
  6254. var yyb5 bool
  6255. var yyhl5 bool = l >= 0
  6256. yyj5++
  6257. if yyhl5 {
  6258. yyb5 = yyj5 > l
  6259. } else {
  6260. yyb5 = r.CheckBreak()
  6261. }
  6262. if yyb5 {
  6263. z.DecReadArrayEnd()
  6264. return
  6265. }
  6266. z.DecReadArrayElem()
  6267. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6268. for {
  6269. yyj5++
  6270. if yyhl5 {
  6271. yyb5 = yyj5 > l
  6272. } else {
  6273. yyb5 = r.CheckBreak()
  6274. }
  6275. if yyb5 {
  6276. break
  6277. }
  6278. z.DecReadArrayElem()
  6279. z.DecStructFieldNotFound(yyj5-1, "")
  6280. }
  6281. }
  6282. func (x *testStrucKeyTypeT4) CodecEncodeSelf(e *Encoder) {
  6283. var h codecSelfer19780
  6284. z, r := GenHelperEncoder(e)
  6285. _, _, _ = h, z, r
  6286. if x == nil {
  6287. r.EncodeNil()
  6288. } else {
  6289. yysep2 := !z.EncBinary()
  6290. yy2arr2 := z.EncBasicHandle().StructToArray
  6291. _, _ = yysep2, yy2arr2
  6292. const yyr2 bool = false // struct tag has 'toArray'
  6293. if yyr2 || yy2arr2 {
  6294. z.EncWriteArrayStart(1)
  6295. z.EncWriteArrayElem()
  6296. r.EncodeInt(int64(x.F))
  6297. z.EncWriteArrayEnd()
  6298. } else {
  6299. z.EncWriteMapStart(1)
  6300. z.EncWriteMapElemKey()
  6301. r.EncodeFloat64(z.M.Float(strconv.ParseFloat(`2.5`, 64)))
  6302. z.EncWriteMapElemValue()
  6303. r.EncodeInt(int64(x.F))
  6304. z.EncWriteMapEnd()
  6305. }
  6306. }
  6307. }
  6308. func (x *testStrucKeyTypeT4) CodecDecodeSelf(d *Decoder) {
  6309. var h codecSelfer19780
  6310. z, r := GenHelperDecoder(d)
  6311. _, _, _ = h, z, r
  6312. yyct2 := r.ContainerType()
  6313. if yyct2 == codecSelferValueTypeNil19780 {
  6314. *(x) = testStrucKeyTypeT4{}
  6315. } else if yyct2 == codecSelferValueTypeMap19780 {
  6316. yyl2 := z.DecReadMapStart()
  6317. if yyl2 == 0 {
  6318. } else {
  6319. x.codecDecodeSelfFromMap(yyl2, d)
  6320. }
  6321. z.DecReadMapEnd()
  6322. } else if yyct2 == codecSelferValueTypeArray19780 {
  6323. yyl2 := z.DecReadArrayStart()
  6324. if yyl2 != 0 {
  6325. x.codecDecodeSelfFromArray(yyl2, d)
  6326. }
  6327. z.DecReadArrayEnd()
  6328. } else {
  6329. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6330. }
  6331. }
  6332. func (x *testStrucKeyTypeT4) codecDecodeSelfFromMap(l int, d *Decoder) {
  6333. var h codecSelfer19780
  6334. z, r := GenHelperDecoder(d)
  6335. _, _, _ = h, z, r
  6336. var yyhl3 bool = l >= 0
  6337. for yyj3 := 0; ; yyj3++ {
  6338. if yyhl3 {
  6339. if yyj3 >= l {
  6340. break
  6341. }
  6342. } else {
  6343. if r.CheckBreak() {
  6344. break
  6345. }
  6346. }
  6347. z.DecReadMapElemKey()
  6348. yys3 := z.StringView(strconv.AppendFloat(z.DecScratchArrayBuffer()[:0], r.DecodeFloat64(), 'f', -1, 64))
  6349. z.DecReadMapElemValue()
  6350. switch yys3 {
  6351. case "2.5":
  6352. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6353. default:
  6354. z.DecStructFieldNotFound(-1, yys3)
  6355. } // end switch yys3
  6356. } // end for yyj3
  6357. }
  6358. func (x *testStrucKeyTypeT4) codecDecodeSelfFromArray(l int, d *Decoder) {
  6359. var h codecSelfer19780
  6360. z, r := GenHelperDecoder(d)
  6361. _, _, _ = h, z, r
  6362. var yyj5 int
  6363. var yyb5 bool
  6364. var yyhl5 bool = l >= 0
  6365. yyj5++
  6366. if yyhl5 {
  6367. yyb5 = yyj5 > l
  6368. } else {
  6369. yyb5 = r.CheckBreak()
  6370. }
  6371. if yyb5 {
  6372. z.DecReadArrayEnd()
  6373. return
  6374. }
  6375. z.DecReadArrayElem()
  6376. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6377. for {
  6378. yyj5++
  6379. if yyhl5 {
  6380. yyb5 = yyj5 > l
  6381. } else {
  6382. yyb5 = r.CheckBreak()
  6383. }
  6384. if yyb5 {
  6385. break
  6386. }
  6387. z.DecReadArrayElem()
  6388. z.DecStructFieldNotFound(yyj5-1, "")
  6389. }
  6390. }
  6391. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  6392. var h codecSelfer19780
  6393. z, r := GenHelperEncoder(e)
  6394. _, _, _ = h, z, r
  6395. r.EncodeBool(bool(x))
  6396. }
  6397. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  6398. var h codecSelfer19780
  6399. z, r := GenHelperDecoder(d)
  6400. _, _, _ = h, z, r
  6401. *x = (Bbool)(r.DecodeBool())
  6402. }
  6403. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  6404. var h codecSelfer19780
  6405. z, r := GenHelperEncoder(e)
  6406. _, _, _ = h, z, r
  6407. if x == nil {
  6408. r.EncodeNil()
  6409. } else {
  6410. h.encAarray((*Aarray)(x), e)
  6411. }
  6412. }
  6413. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  6414. var h codecSelfer19780
  6415. z, r := GenHelperDecoder(d)
  6416. _, _, _ = h, z, r
  6417. h.decAarray((*Aarray)(x), d)
  6418. }
  6419. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  6420. var h codecSelfer19780
  6421. z, r := GenHelperEncoder(e)
  6422. _, _, _ = h, z, r
  6423. if z.EncBasicHandle().StringToRaw {
  6424. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  6425. } else {
  6426. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  6427. }
  6428. }
  6429. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  6430. var h codecSelfer19780
  6431. z, r := GenHelperDecoder(d)
  6432. _, _, _ = h, z, r
  6433. *x = (Sstring)(string(r.DecodeStringAsBytes()))
  6434. }
  6435. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  6436. var h codecSelfer19780
  6437. z, r := GenHelperEncoder(e)
  6438. _, _, _ = h, z, r
  6439. if x == nil {
  6440. r.EncodeNil()
  6441. } else {
  6442. yysep2 := !z.EncBinary()
  6443. yy2arr2 := z.EncBasicHandle().StructToArray
  6444. _, _ = yysep2, yy2arr2
  6445. const yyr2 bool = false // struct tag has 'toArray'
  6446. if yyr2 || yy2arr2 {
  6447. z.EncWriteArrayStart(1)
  6448. z.EncWriteArrayElem()
  6449. r.EncodeInt(int64(x.A))
  6450. z.EncWriteArrayEnd()
  6451. } else {
  6452. z.EncWriteMapStart(1)
  6453. z.EncWriteMapElemKey()
  6454. if z.IsJSONHandle() {
  6455. z.WriteStr("\"A\"")
  6456. } else {
  6457. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6458. }
  6459. z.EncWriteMapElemValue()
  6460. r.EncodeInt(int64(x.A))
  6461. z.EncWriteMapEnd()
  6462. }
  6463. }
  6464. }
  6465. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  6466. var h codecSelfer19780
  6467. z, r := GenHelperDecoder(d)
  6468. _, _, _ = h, z, r
  6469. yyct2 := r.ContainerType()
  6470. if yyct2 == codecSelferValueTypeNil19780 {
  6471. *(x) = Sstructsmall{}
  6472. } else if yyct2 == codecSelferValueTypeMap19780 {
  6473. yyl2 := z.DecReadMapStart()
  6474. if yyl2 == 0 {
  6475. } else {
  6476. x.codecDecodeSelfFromMap(yyl2, d)
  6477. }
  6478. z.DecReadMapEnd()
  6479. } else if yyct2 == codecSelferValueTypeArray19780 {
  6480. yyl2 := z.DecReadArrayStart()
  6481. if yyl2 != 0 {
  6482. x.codecDecodeSelfFromArray(yyl2, d)
  6483. }
  6484. z.DecReadArrayEnd()
  6485. } else {
  6486. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6487. }
  6488. }
  6489. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  6490. var h codecSelfer19780
  6491. z, r := GenHelperDecoder(d)
  6492. _, _, _ = h, z, r
  6493. var yyhl3 bool = l >= 0
  6494. for yyj3 := 0; ; yyj3++ {
  6495. if yyhl3 {
  6496. if yyj3 >= l {
  6497. break
  6498. }
  6499. } else {
  6500. if r.CheckBreak() {
  6501. break
  6502. }
  6503. }
  6504. z.DecReadMapElemKey()
  6505. yys3 := z.StringView(r.DecodeStringAsBytes())
  6506. z.DecReadMapElemValue()
  6507. switch yys3 {
  6508. case "A":
  6509. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6510. default:
  6511. z.DecStructFieldNotFound(-1, yys3)
  6512. } // end switch yys3
  6513. } // end for yyj3
  6514. }
  6515. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  6516. var h codecSelfer19780
  6517. z, r := GenHelperDecoder(d)
  6518. _, _, _ = h, z, r
  6519. var yyj5 int
  6520. var yyb5 bool
  6521. var yyhl5 bool = l >= 0
  6522. yyj5++
  6523. if yyhl5 {
  6524. yyb5 = yyj5 > l
  6525. } else {
  6526. yyb5 = r.CheckBreak()
  6527. }
  6528. if yyb5 {
  6529. z.DecReadArrayEnd()
  6530. return
  6531. }
  6532. z.DecReadArrayElem()
  6533. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6534. for {
  6535. yyj5++
  6536. if yyhl5 {
  6537. yyb5 = yyj5 > l
  6538. } else {
  6539. yyb5 = r.CheckBreak()
  6540. }
  6541. if yyb5 {
  6542. break
  6543. }
  6544. z.DecReadArrayElem()
  6545. z.DecStructFieldNotFound(yyj5-1, "")
  6546. }
  6547. }
  6548. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  6549. var h codecSelfer19780
  6550. z, r := GenHelperEncoder(e)
  6551. _, _, _ = h, z, r
  6552. if x == nil {
  6553. r.EncodeNil()
  6554. } else {
  6555. yysep2 := !z.EncBinary()
  6556. yy2arr2 := z.EncBasicHandle().StructToArray
  6557. _, _ = yysep2, yy2arr2
  6558. const yyr2 bool = false // struct tag has 'toArray'
  6559. var yyn5 bool = x.Ssmallptr == nil
  6560. var yyn6 bool = x.Ssmall == nil
  6561. var yyn7 bool = x.Sptr == nil
  6562. if yyr2 || yy2arr2 {
  6563. z.EncWriteArrayStart(5)
  6564. z.EncWriteArrayElem()
  6565. r.EncodeInt(int64(x.A))
  6566. z.EncWriteArrayElem()
  6567. r.EncodeBool(bool(x.B))
  6568. if yyn5 {
  6569. z.EncWriteArrayElem()
  6570. r.EncodeNil()
  6571. } else {
  6572. z.EncWriteArrayElem()
  6573. x.Ssmallptr.CodecEncodeSelf(e)
  6574. }
  6575. if yyn6 {
  6576. z.EncWriteArrayElem()
  6577. r.EncodeNil()
  6578. } else {
  6579. z.EncWriteArrayElem()
  6580. x.Ssmall.CodecEncodeSelf(e)
  6581. }
  6582. if yyn7 {
  6583. z.EncWriteArrayElem()
  6584. r.EncodeNil()
  6585. } else {
  6586. z.EncWriteArrayElem()
  6587. x.Sptr.CodecEncodeSelf(e)
  6588. }
  6589. z.EncWriteArrayEnd()
  6590. } else {
  6591. z.EncWriteMapStart(5)
  6592. z.EncWriteMapElemKey()
  6593. if z.IsJSONHandle() {
  6594. z.WriteStr("\"A\"")
  6595. } else {
  6596. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6597. }
  6598. z.EncWriteMapElemValue()
  6599. r.EncodeInt(int64(x.A))
  6600. z.EncWriteMapElemKey()
  6601. if z.IsJSONHandle() {
  6602. z.WriteStr("\"B\"")
  6603. } else {
  6604. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6605. }
  6606. z.EncWriteMapElemValue()
  6607. r.EncodeBool(bool(x.B))
  6608. z.EncWriteMapElemKey()
  6609. if z.IsJSONHandle() {
  6610. z.WriteStr("\"Ssmallptr\"")
  6611. } else {
  6612. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6613. }
  6614. z.EncWriteMapElemValue()
  6615. if yyn5 {
  6616. r.EncodeNil()
  6617. } else {
  6618. x.Ssmallptr.CodecEncodeSelf(e)
  6619. }
  6620. z.EncWriteMapElemKey()
  6621. if z.IsJSONHandle() {
  6622. z.WriteStr("\"Ssmall\"")
  6623. } else {
  6624. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6625. }
  6626. z.EncWriteMapElemValue()
  6627. if yyn6 {
  6628. r.EncodeNil()
  6629. } else {
  6630. x.Ssmall.CodecEncodeSelf(e)
  6631. }
  6632. z.EncWriteMapElemKey()
  6633. if z.IsJSONHandle() {
  6634. z.WriteStr("\"Sptr\"")
  6635. } else {
  6636. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6637. }
  6638. z.EncWriteMapElemValue()
  6639. if yyn7 {
  6640. r.EncodeNil()
  6641. } else {
  6642. x.Sptr.CodecEncodeSelf(e)
  6643. }
  6644. z.EncWriteMapEnd()
  6645. }
  6646. }
  6647. }
  6648. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  6649. var h codecSelfer19780
  6650. z, r := GenHelperDecoder(d)
  6651. _, _, _ = h, z, r
  6652. yyct2 := r.ContainerType()
  6653. if yyct2 == codecSelferValueTypeNil19780 {
  6654. *(x) = Sstructbig{}
  6655. } else if yyct2 == codecSelferValueTypeMap19780 {
  6656. yyl2 := z.DecReadMapStart()
  6657. if yyl2 == 0 {
  6658. } else {
  6659. x.codecDecodeSelfFromMap(yyl2, d)
  6660. }
  6661. z.DecReadMapEnd()
  6662. } else if yyct2 == codecSelferValueTypeArray19780 {
  6663. yyl2 := z.DecReadArrayStart()
  6664. if yyl2 != 0 {
  6665. x.codecDecodeSelfFromArray(yyl2, d)
  6666. }
  6667. z.DecReadArrayEnd()
  6668. } else {
  6669. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6670. }
  6671. }
  6672. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  6673. var h codecSelfer19780
  6674. z, r := GenHelperDecoder(d)
  6675. _, _, _ = h, z, r
  6676. var yyhl3 bool = l >= 0
  6677. for yyj3 := 0; ; yyj3++ {
  6678. if yyhl3 {
  6679. if yyj3 >= l {
  6680. break
  6681. }
  6682. } else {
  6683. if r.CheckBreak() {
  6684. break
  6685. }
  6686. }
  6687. z.DecReadMapElemKey()
  6688. yys3 := z.StringView(r.DecodeStringAsBytes())
  6689. z.DecReadMapElemValue()
  6690. switch yys3 {
  6691. case "A":
  6692. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6693. case "B":
  6694. x.B = (bool)(r.DecodeBool())
  6695. case "Ssmallptr":
  6696. if r.TryNil() {
  6697. if x.Ssmallptr != nil { // remove the if-true
  6698. x.Ssmallptr = nil
  6699. }
  6700. } else {
  6701. if x.Ssmallptr == nil {
  6702. x.Ssmallptr = new(Sstructsmall)
  6703. }
  6704. x.Ssmallptr.CodecDecodeSelf(d)
  6705. }
  6706. case "Ssmall":
  6707. if r.TryNil() {
  6708. if x.Ssmall != nil { // remove the if-true
  6709. x.Ssmall = nil
  6710. }
  6711. } else {
  6712. if x.Ssmall == nil {
  6713. x.Ssmall = new(Sstructsmall)
  6714. }
  6715. x.Ssmall.CodecDecodeSelf(d)
  6716. }
  6717. case "Sptr":
  6718. if r.TryNil() {
  6719. if x.Sptr != nil { // remove the if-true
  6720. x.Sptr = nil
  6721. }
  6722. } else {
  6723. if x.Sptr == nil {
  6724. x.Sptr = new(Sstructbig)
  6725. }
  6726. x.Sptr.CodecDecodeSelf(d)
  6727. }
  6728. default:
  6729. z.DecStructFieldNotFound(-1, yys3)
  6730. } // end switch yys3
  6731. } // end for yyj3
  6732. }
  6733. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  6734. var h codecSelfer19780
  6735. z, r := GenHelperDecoder(d)
  6736. _, _, _ = h, z, r
  6737. var yyj9 int
  6738. var yyb9 bool
  6739. var yyhl9 bool = l >= 0
  6740. yyj9++
  6741. if yyhl9 {
  6742. yyb9 = yyj9 > l
  6743. } else {
  6744. yyb9 = r.CheckBreak()
  6745. }
  6746. if yyb9 {
  6747. z.DecReadArrayEnd()
  6748. return
  6749. }
  6750. z.DecReadArrayElem()
  6751. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6752. yyj9++
  6753. if yyhl9 {
  6754. yyb9 = yyj9 > l
  6755. } else {
  6756. yyb9 = r.CheckBreak()
  6757. }
  6758. if yyb9 {
  6759. z.DecReadArrayEnd()
  6760. return
  6761. }
  6762. z.DecReadArrayElem()
  6763. x.B = (bool)(r.DecodeBool())
  6764. yyj9++
  6765. if yyhl9 {
  6766. yyb9 = yyj9 > l
  6767. } else {
  6768. yyb9 = r.CheckBreak()
  6769. }
  6770. if yyb9 {
  6771. z.DecReadArrayEnd()
  6772. return
  6773. }
  6774. z.DecReadArrayElem()
  6775. if r.TryNil() {
  6776. if x.Ssmallptr != nil { // remove the if-true
  6777. x.Ssmallptr = nil
  6778. }
  6779. } else {
  6780. if x.Ssmallptr == nil {
  6781. x.Ssmallptr = new(Sstructsmall)
  6782. }
  6783. x.Ssmallptr.CodecDecodeSelf(d)
  6784. }
  6785. yyj9++
  6786. if yyhl9 {
  6787. yyb9 = yyj9 > l
  6788. } else {
  6789. yyb9 = r.CheckBreak()
  6790. }
  6791. if yyb9 {
  6792. z.DecReadArrayEnd()
  6793. return
  6794. }
  6795. z.DecReadArrayElem()
  6796. if r.TryNil() {
  6797. if x.Ssmall != nil { // remove the if-true
  6798. x.Ssmall = nil
  6799. }
  6800. } else {
  6801. if x.Ssmall == nil {
  6802. x.Ssmall = new(Sstructsmall)
  6803. }
  6804. x.Ssmall.CodecDecodeSelf(d)
  6805. }
  6806. yyj9++
  6807. if yyhl9 {
  6808. yyb9 = yyj9 > l
  6809. } else {
  6810. yyb9 = r.CheckBreak()
  6811. }
  6812. if yyb9 {
  6813. z.DecReadArrayEnd()
  6814. return
  6815. }
  6816. z.DecReadArrayElem()
  6817. if r.TryNil() {
  6818. if x.Sptr != nil { // remove the if-true
  6819. x.Sptr = nil
  6820. }
  6821. } else {
  6822. if x.Sptr == nil {
  6823. x.Sptr = new(Sstructbig)
  6824. }
  6825. x.Sptr.CodecDecodeSelf(d)
  6826. }
  6827. for {
  6828. yyj9++
  6829. if yyhl9 {
  6830. yyb9 = yyj9 > l
  6831. } else {
  6832. yyb9 = r.CheckBreak()
  6833. }
  6834. if yyb9 {
  6835. break
  6836. }
  6837. z.DecReadArrayElem()
  6838. z.DecStructFieldNotFound(yyj9-1, "")
  6839. }
  6840. }
  6841. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  6842. var h codecSelfer19780
  6843. z, r := GenHelperEncoder(e)
  6844. _, _, _ = h, z, r
  6845. if x == nil {
  6846. r.EncodeNil()
  6847. } else {
  6848. yysep2 := !z.EncBinary()
  6849. yy2arr2 := z.EncBasicHandle().StructToArray
  6850. _, _ = yysep2, yy2arr2
  6851. const yyr2 bool = true // struct tag has 'toArray'
  6852. var yyn5 bool = x.Ssmallptr == nil
  6853. var yyn6 bool = x.Ssmall == nil
  6854. var yyn7 bool = x.Sptr == nil
  6855. if yyr2 || yy2arr2 {
  6856. z.EncWriteArrayStart(5)
  6857. z.EncWriteArrayElem()
  6858. r.EncodeInt(int64(x.A))
  6859. z.EncWriteArrayElem()
  6860. r.EncodeBool(bool(x.B))
  6861. if yyn5 {
  6862. z.EncWriteArrayElem()
  6863. r.EncodeNil()
  6864. } else {
  6865. z.EncWriteArrayElem()
  6866. x.Ssmallptr.CodecEncodeSelf(e)
  6867. }
  6868. if yyn6 {
  6869. z.EncWriteArrayElem()
  6870. r.EncodeNil()
  6871. } else {
  6872. z.EncWriteArrayElem()
  6873. x.Ssmall.CodecEncodeSelf(e)
  6874. }
  6875. if yyn7 {
  6876. z.EncWriteArrayElem()
  6877. r.EncodeNil()
  6878. } else {
  6879. z.EncWriteArrayElem()
  6880. x.Sptr.CodecEncodeSelf(e)
  6881. }
  6882. z.EncWriteArrayEnd()
  6883. } else {
  6884. z.EncWriteMapStart(5)
  6885. z.EncWriteMapElemKey()
  6886. if z.IsJSONHandle() {
  6887. z.WriteStr("\"A\"")
  6888. } else {
  6889. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6890. }
  6891. z.EncWriteMapElemValue()
  6892. r.EncodeInt(int64(x.A))
  6893. z.EncWriteMapElemKey()
  6894. if z.IsJSONHandle() {
  6895. z.WriteStr("\"B\"")
  6896. } else {
  6897. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6898. }
  6899. z.EncWriteMapElemValue()
  6900. r.EncodeBool(bool(x.B))
  6901. z.EncWriteMapElemKey()
  6902. if z.IsJSONHandle() {
  6903. z.WriteStr("\"Ssmallptr\"")
  6904. } else {
  6905. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6906. }
  6907. z.EncWriteMapElemValue()
  6908. if yyn5 {
  6909. r.EncodeNil()
  6910. } else {
  6911. x.Ssmallptr.CodecEncodeSelf(e)
  6912. }
  6913. z.EncWriteMapElemKey()
  6914. if z.IsJSONHandle() {
  6915. z.WriteStr("\"Ssmall\"")
  6916. } else {
  6917. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6918. }
  6919. z.EncWriteMapElemValue()
  6920. if yyn6 {
  6921. r.EncodeNil()
  6922. } else {
  6923. x.Ssmall.CodecEncodeSelf(e)
  6924. }
  6925. z.EncWriteMapElemKey()
  6926. if z.IsJSONHandle() {
  6927. z.WriteStr("\"Sptr\"")
  6928. } else {
  6929. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6930. }
  6931. z.EncWriteMapElemValue()
  6932. if yyn7 {
  6933. r.EncodeNil()
  6934. } else {
  6935. x.Sptr.CodecEncodeSelf(e)
  6936. }
  6937. z.EncWriteMapEnd()
  6938. }
  6939. }
  6940. }
  6941. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  6942. var h codecSelfer19780
  6943. z, r := GenHelperDecoder(d)
  6944. _, _, _ = h, z, r
  6945. yyct2 := r.ContainerType()
  6946. if yyct2 == codecSelferValueTypeNil19780 {
  6947. *(x) = SstructbigMapBySlice{}
  6948. } else if yyct2 == codecSelferValueTypeMap19780 {
  6949. yyl2 := z.DecReadMapStart()
  6950. if yyl2 == 0 {
  6951. } else {
  6952. x.codecDecodeSelfFromMap(yyl2, d)
  6953. }
  6954. z.DecReadMapEnd()
  6955. } else if yyct2 == codecSelferValueTypeArray19780 {
  6956. yyl2 := z.DecReadArrayStart()
  6957. if yyl2 != 0 {
  6958. x.codecDecodeSelfFromArray(yyl2, d)
  6959. }
  6960. z.DecReadArrayEnd()
  6961. } else {
  6962. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6963. }
  6964. }
  6965. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  6966. var h codecSelfer19780
  6967. z, r := GenHelperDecoder(d)
  6968. _, _, _ = h, z, r
  6969. var yyhl3 bool = l >= 0
  6970. for yyj3 := 0; ; yyj3++ {
  6971. if yyhl3 {
  6972. if yyj3 >= l {
  6973. break
  6974. }
  6975. } else {
  6976. if r.CheckBreak() {
  6977. break
  6978. }
  6979. }
  6980. z.DecReadMapElemKey()
  6981. yys3 := z.StringView(r.DecodeStringAsBytes())
  6982. z.DecReadMapElemValue()
  6983. switch yys3 {
  6984. case "A":
  6985. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6986. case "B":
  6987. x.B = (bool)(r.DecodeBool())
  6988. case "Ssmallptr":
  6989. if r.TryNil() {
  6990. if x.Ssmallptr != nil { // remove the if-true
  6991. x.Ssmallptr = nil
  6992. }
  6993. } else {
  6994. if x.Ssmallptr == nil {
  6995. x.Ssmallptr = new(Sstructsmall)
  6996. }
  6997. x.Ssmallptr.CodecDecodeSelf(d)
  6998. }
  6999. case "Ssmall":
  7000. if r.TryNil() {
  7001. if x.Ssmall != nil { // remove the if-true
  7002. x.Ssmall = nil
  7003. }
  7004. } else {
  7005. if x.Ssmall == nil {
  7006. x.Ssmall = new(Sstructsmall)
  7007. }
  7008. x.Ssmall.CodecDecodeSelf(d)
  7009. }
  7010. case "Sptr":
  7011. if r.TryNil() {
  7012. if x.Sptr != nil { // remove the if-true
  7013. x.Sptr = nil
  7014. }
  7015. } else {
  7016. if x.Sptr == nil {
  7017. x.Sptr = new(Sstructbig)
  7018. }
  7019. x.Sptr.CodecDecodeSelf(d)
  7020. }
  7021. default:
  7022. z.DecStructFieldNotFound(-1, yys3)
  7023. } // end switch yys3
  7024. } // end for yyj3
  7025. }
  7026. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  7027. var h codecSelfer19780
  7028. z, r := GenHelperDecoder(d)
  7029. _, _, _ = h, z, r
  7030. var yyj9 int
  7031. var yyb9 bool
  7032. var yyhl9 bool = l >= 0
  7033. yyj9++
  7034. if yyhl9 {
  7035. yyb9 = yyj9 > l
  7036. } else {
  7037. yyb9 = r.CheckBreak()
  7038. }
  7039. if yyb9 {
  7040. z.DecReadArrayEnd()
  7041. return
  7042. }
  7043. z.DecReadArrayElem()
  7044. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7045. yyj9++
  7046. if yyhl9 {
  7047. yyb9 = yyj9 > l
  7048. } else {
  7049. yyb9 = r.CheckBreak()
  7050. }
  7051. if yyb9 {
  7052. z.DecReadArrayEnd()
  7053. return
  7054. }
  7055. z.DecReadArrayElem()
  7056. x.B = (bool)(r.DecodeBool())
  7057. yyj9++
  7058. if yyhl9 {
  7059. yyb9 = yyj9 > l
  7060. } else {
  7061. yyb9 = r.CheckBreak()
  7062. }
  7063. if yyb9 {
  7064. z.DecReadArrayEnd()
  7065. return
  7066. }
  7067. z.DecReadArrayElem()
  7068. if r.TryNil() {
  7069. if x.Ssmallptr != nil { // remove the if-true
  7070. x.Ssmallptr = nil
  7071. }
  7072. } else {
  7073. if x.Ssmallptr == nil {
  7074. x.Ssmallptr = new(Sstructsmall)
  7075. }
  7076. x.Ssmallptr.CodecDecodeSelf(d)
  7077. }
  7078. yyj9++
  7079. if yyhl9 {
  7080. yyb9 = yyj9 > l
  7081. } else {
  7082. yyb9 = r.CheckBreak()
  7083. }
  7084. if yyb9 {
  7085. z.DecReadArrayEnd()
  7086. return
  7087. }
  7088. z.DecReadArrayElem()
  7089. if r.TryNil() {
  7090. if x.Ssmall != nil { // remove the if-true
  7091. x.Ssmall = nil
  7092. }
  7093. } else {
  7094. if x.Ssmall == nil {
  7095. x.Ssmall = new(Sstructsmall)
  7096. }
  7097. x.Ssmall.CodecDecodeSelf(d)
  7098. }
  7099. yyj9++
  7100. if yyhl9 {
  7101. yyb9 = yyj9 > l
  7102. } else {
  7103. yyb9 = r.CheckBreak()
  7104. }
  7105. if yyb9 {
  7106. z.DecReadArrayEnd()
  7107. return
  7108. }
  7109. z.DecReadArrayElem()
  7110. if r.TryNil() {
  7111. if x.Sptr != nil { // remove the if-true
  7112. x.Sptr = nil
  7113. }
  7114. } else {
  7115. if x.Sptr == nil {
  7116. x.Sptr = new(Sstructbig)
  7117. }
  7118. x.Sptr.CodecDecodeSelf(d)
  7119. }
  7120. for {
  7121. yyj9++
  7122. if yyhl9 {
  7123. yyb9 = yyj9 > l
  7124. } else {
  7125. yyb9 = r.CheckBreak()
  7126. }
  7127. if yyb9 {
  7128. break
  7129. }
  7130. z.DecReadArrayElem()
  7131. z.DecStructFieldNotFound(yyj9-1, "")
  7132. }
  7133. }
  7134. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  7135. var h codecSelfer19780
  7136. z, r := GenHelperEncoder(e)
  7137. _, _, _ = h, z, r
  7138. if x == nil {
  7139. r.EncodeNil()
  7140. } else {
  7141. yysep2 := !z.EncBinary()
  7142. yy2arr2 := z.EncBasicHandle().StructToArray
  7143. _, _ = yysep2, yy2arr2
  7144. const yyr2 bool = false // struct tag has 'toArray'
  7145. if yyr2 || yy2arr2 {
  7146. z.EncWriteArrayStart(2)
  7147. z.EncWriteArrayElem()
  7148. r.EncodeInt(int64(x.I))
  7149. z.EncWriteArrayElem()
  7150. if z.EncBasicHandle().StringToRaw {
  7151. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7152. } else {
  7153. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7154. }
  7155. z.EncWriteArrayEnd()
  7156. } else {
  7157. z.EncWriteMapStart(2)
  7158. z.EncWriteMapElemKey()
  7159. if z.IsJSONHandle() {
  7160. z.WriteStr("\"I\"")
  7161. } else {
  7162. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7163. }
  7164. z.EncWriteMapElemValue()
  7165. r.EncodeInt(int64(x.I))
  7166. z.EncWriteMapElemKey()
  7167. if z.IsJSONHandle() {
  7168. z.WriteStr("\"S\"")
  7169. } else {
  7170. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7171. }
  7172. z.EncWriteMapElemValue()
  7173. if z.EncBasicHandle().StringToRaw {
  7174. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7175. } else {
  7176. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7177. }
  7178. z.EncWriteMapEnd()
  7179. }
  7180. }
  7181. }
  7182. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  7183. var h codecSelfer19780
  7184. z, r := GenHelperDecoder(d)
  7185. _, _, _ = h, z, r
  7186. yyct2 := r.ContainerType()
  7187. if yyct2 == codecSelferValueTypeNil19780 {
  7188. *(x) = tLowerFirstLetter{}
  7189. } else if yyct2 == codecSelferValueTypeMap19780 {
  7190. yyl2 := z.DecReadMapStart()
  7191. if yyl2 == 0 {
  7192. } else {
  7193. x.codecDecodeSelfFromMap(yyl2, d)
  7194. }
  7195. z.DecReadMapEnd()
  7196. } else if yyct2 == codecSelferValueTypeArray19780 {
  7197. yyl2 := z.DecReadArrayStart()
  7198. if yyl2 != 0 {
  7199. x.codecDecodeSelfFromArray(yyl2, d)
  7200. }
  7201. z.DecReadArrayEnd()
  7202. } else {
  7203. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7204. }
  7205. }
  7206. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  7207. var h codecSelfer19780
  7208. z, r := GenHelperDecoder(d)
  7209. _, _, _ = h, z, r
  7210. var yyhl3 bool = l >= 0
  7211. for yyj3 := 0; ; yyj3++ {
  7212. if yyhl3 {
  7213. if yyj3 >= l {
  7214. break
  7215. }
  7216. } else {
  7217. if r.CheckBreak() {
  7218. break
  7219. }
  7220. }
  7221. z.DecReadMapElemKey()
  7222. yys3 := z.StringView(r.DecodeStringAsBytes())
  7223. z.DecReadMapElemValue()
  7224. switch yys3 {
  7225. case "I":
  7226. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7227. case "S":
  7228. x.S = (string)(string(r.DecodeStringAsBytes()))
  7229. default:
  7230. z.DecStructFieldNotFound(-1, yys3)
  7231. } // end switch yys3
  7232. } // end for yyj3
  7233. }
  7234. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  7235. var h codecSelfer19780
  7236. z, r := GenHelperDecoder(d)
  7237. _, _, _ = h, z, r
  7238. var yyj6 int
  7239. var yyb6 bool
  7240. var yyhl6 bool = l >= 0
  7241. yyj6++
  7242. if yyhl6 {
  7243. yyb6 = yyj6 > l
  7244. } else {
  7245. yyb6 = r.CheckBreak()
  7246. }
  7247. if yyb6 {
  7248. z.DecReadArrayEnd()
  7249. return
  7250. }
  7251. z.DecReadArrayElem()
  7252. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7253. yyj6++
  7254. if yyhl6 {
  7255. yyb6 = yyj6 > l
  7256. } else {
  7257. yyb6 = r.CheckBreak()
  7258. }
  7259. if yyb6 {
  7260. z.DecReadArrayEnd()
  7261. return
  7262. }
  7263. z.DecReadArrayElem()
  7264. x.S = (string)(string(r.DecodeStringAsBytes()))
  7265. for {
  7266. yyj6++
  7267. if yyhl6 {
  7268. yyb6 = yyj6 > l
  7269. } else {
  7270. yyb6 = r.CheckBreak()
  7271. }
  7272. if yyb6 {
  7273. break
  7274. }
  7275. z.DecReadArrayElem()
  7276. z.DecStructFieldNotFound(yyj6-1, "")
  7277. }
  7278. }
  7279. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  7280. var h codecSelfer19780
  7281. z, r := GenHelperEncoder(e)
  7282. _, _, _ = h, z, r
  7283. r.EncodeInt(int64(x))
  7284. }
  7285. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  7286. var h codecSelfer19780
  7287. z, r := GenHelperDecoder(d)
  7288. _, _, _ = h, z, r
  7289. *x = (wrapInt64)(r.DecodeInt64())
  7290. }
  7291. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  7292. var h codecSelfer19780
  7293. z, r := GenHelperEncoder(e)
  7294. _, _, _ = h, z, r
  7295. r.EncodeUint(uint64(x))
  7296. }
  7297. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  7298. var h codecSelfer19780
  7299. z, r := GenHelperDecoder(d)
  7300. _, _, _ = h, z, r
  7301. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  7302. }
  7303. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  7304. var h codecSelfer19780
  7305. z, r := GenHelperEncoder(e)
  7306. _, _, _ = h, z, r
  7307. if x == nil {
  7308. r.EncodeNil()
  7309. } else {
  7310. h.encwrapBytes((wrapBytes)(x), e)
  7311. } // end block: if x slice == nil
  7312. }
  7313. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  7314. var h codecSelfer19780
  7315. z, r := GenHelperDecoder(d)
  7316. _, _, _ = h, z, r
  7317. h.decwrapBytes((*wrapBytes)(x), d)
  7318. }
  7319. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  7320. var h codecSelfer19780
  7321. z, r := GenHelperEncoder(e)
  7322. _, _, _ = h, z, r
  7323. if x == nil {
  7324. r.EncodeNil()
  7325. } else {
  7326. yysep2 := !z.EncBinary()
  7327. yy2arr2 := z.EncBasicHandle().StructToArray
  7328. _, _ = yysep2, yy2arr2
  7329. const yyr2 bool = false // struct tag has 'toArray'
  7330. var yyn7 bool = x.Tptr == nil
  7331. if yyr2 || yy2arr2 {
  7332. z.EncWriteArrayStart(5)
  7333. z.EncWriteArrayElem()
  7334. if x.Islice == nil {
  7335. r.EncodeNil()
  7336. } else {
  7337. z.F.EncSliceIntfV(x.Islice, e)
  7338. } // end block: if x.Islice slice == nil
  7339. z.EncWriteArrayElem()
  7340. if x.Ms == nil {
  7341. r.EncodeNil()
  7342. } else {
  7343. z.F.EncMapStringIntfV(x.Ms, e)
  7344. } // end block: if x.Ms map == nil
  7345. z.EncWriteArrayElem()
  7346. z.EncFallback(x.Nintf)
  7347. z.EncWriteArrayElem()
  7348. if !z.EncBasicHandle().TimeNotBuiltin {
  7349. r.EncodeTime(x.T)
  7350. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7351. z.EncExtension(x.T, yyxt11)
  7352. } else if z.EncBinary() {
  7353. z.EncBinaryMarshal(x.T)
  7354. } else if !z.EncBinary() && z.IsJSONHandle() {
  7355. z.EncJSONMarshal(x.T)
  7356. } else {
  7357. z.EncFallback(x.T)
  7358. }
  7359. if yyn7 {
  7360. z.EncWriteArrayElem()
  7361. r.EncodeNil()
  7362. } else {
  7363. z.EncWriteArrayElem()
  7364. yy12 := *x.Tptr
  7365. if !z.EncBasicHandle().TimeNotBuiltin {
  7366. r.EncodeTime(yy12)
  7367. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  7368. z.EncExtension(yy12, yyxt13)
  7369. } else if z.EncBinary() {
  7370. z.EncBinaryMarshal(yy12)
  7371. } else if !z.EncBinary() && z.IsJSONHandle() {
  7372. z.EncJSONMarshal(yy12)
  7373. } else {
  7374. z.EncFallback(yy12)
  7375. }
  7376. }
  7377. z.EncWriteArrayEnd()
  7378. } else {
  7379. z.EncWriteMapStart(5)
  7380. z.EncWriteMapElemKey()
  7381. if z.IsJSONHandle() {
  7382. z.WriteStr("\"Islice\"")
  7383. } else {
  7384. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  7385. }
  7386. z.EncWriteMapElemValue()
  7387. if x.Islice == nil {
  7388. r.EncodeNil()
  7389. } else {
  7390. z.F.EncSliceIntfV(x.Islice, e)
  7391. } // end block: if x.Islice slice == nil
  7392. z.EncWriteMapElemKey()
  7393. if z.IsJSONHandle() {
  7394. z.WriteStr("\"Ms\"")
  7395. } else {
  7396. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  7397. }
  7398. z.EncWriteMapElemValue()
  7399. if x.Ms == nil {
  7400. r.EncodeNil()
  7401. } else {
  7402. z.F.EncMapStringIntfV(x.Ms, e)
  7403. } // end block: if x.Ms map == nil
  7404. z.EncWriteMapElemKey()
  7405. if z.IsJSONHandle() {
  7406. z.WriteStr("\"Nintf\"")
  7407. } else {
  7408. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  7409. }
  7410. z.EncWriteMapElemValue()
  7411. z.EncFallback(x.Nintf)
  7412. z.EncWriteMapElemKey()
  7413. if z.IsJSONHandle() {
  7414. z.WriteStr("\"T\"")
  7415. } else {
  7416. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  7417. }
  7418. z.EncWriteMapElemValue()
  7419. if !z.EncBasicHandle().TimeNotBuiltin {
  7420. r.EncodeTime(x.T)
  7421. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  7422. z.EncExtension(x.T, yyxt17)
  7423. } else if z.EncBinary() {
  7424. z.EncBinaryMarshal(x.T)
  7425. } else if !z.EncBinary() && z.IsJSONHandle() {
  7426. z.EncJSONMarshal(x.T)
  7427. } else {
  7428. z.EncFallback(x.T)
  7429. }
  7430. z.EncWriteMapElemKey()
  7431. if z.IsJSONHandle() {
  7432. z.WriteStr("\"Tptr\"")
  7433. } else {
  7434. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  7435. }
  7436. z.EncWriteMapElemValue()
  7437. if yyn7 {
  7438. r.EncodeNil()
  7439. } else {
  7440. yy18 := *x.Tptr
  7441. if !z.EncBasicHandle().TimeNotBuiltin {
  7442. r.EncodeTime(yy18)
  7443. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  7444. z.EncExtension(yy18, yyxt19)
  7445. } else if z.EncBinary() {
  7446. z.EncBinaryMarshal(yy18)
  7447. } else if !z.EncBinary() && z.IsJSONHandle() {
  7448. z.EncJSONMarshal(yy18)
  7449. } else {
  7450. z.EncFallback(yy18)
  7451. }
  7452. }
  7453. z.EncWriteMapEnd()
  7454. }
  7455. }
  7456. }
  7457. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  7458. var h codecSelfer19780
  7459. z, r := GenHelperDecoder(d)
  7460. _, _, _ = h, z, r
  7461. yyct2 := r.ContainerType()
  7462. if yyct2 == codecSelferValueTypeNil19780 {
  7463. *(x) = AnonInTestStrucIntf{}
  7464. } else if yyct2 == codecSelferValueTypeMap19780 {
  7465. yyl2 := z.DecReadMapStart()
  7466. if yyl2 == 0 {
  7467. } else {
  7468. x.codecDecodeSelfFromMap(yyl2, d)
  7469. }
  7470. z.DecReadMapEnd()
  7471. } else if yyct2 == codecSelferValueTypeArray19780 {
  7472. yyl2 := z.DecReadArrayStart()
  7473. if yyl2 != 0 {
  7474. x.codecDecodeSelfFromArray(yyl2, d)
  7475. }
  7476. z.DecReadArrayEnd()
  7477. } else {
  7478. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7479. }
  7480. }
  7481. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  7482. var h codecSelfer19780
  7483. z, r := GenHelperDecoder(d)
  7484. _, _, _ = h, z, r
  7485. var yyhl3 bool = l >= 0
  7486. for yyj3 := 0; ; yyj3++ {
  7487. if yyhl3 {
  7488. if yyj3 >= l {
  7489. break
  7490. }
  7491. } else {
  7492. if r.CheckBreak() {
  7493. break
  7494. }
  7495. }
  7496. z.DecReadMapElemKey()
  7497. yys3 := z.StringView(r.DecodeStringAsBytes())
  7498. z.DecReadMapElemValue()
  7499. switch yys3 {
  7500. case "Islice":
  7501. z.F.DecSliceIntfX(&x.Islice, d)
  7502. case "Ms":
  7503. z.F.DecMapStringIntfX(&x.Ms, d)
  7504. case "Nintf":
  7505. z.DecFallback(&x.Nintf, true)
  7506. case "T":
  7507. if !z.DecBasicHandle().TimeNotBuiltin {
  7508. x.T = r.DecodeTime()
  7509. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7510. z.DecExtension(x.T, yyxt11)
  7511. } else if z.DecBinary() {
  7512. z.DecBinaryUnmarshal(&x.T)
  7513. } else if !z.DecBinary() && z.IsJSONHandle() {
  7514. z.DecJSONUnmarshal(&x.T)
  7515. } else {
  7516. z.DecFallback(&x.T, false)
  7517. }
  7518. case "Tptr":
  7519. if r.TryNil() {
  7520. if x.Tptr != nil { // remove the if-true
  7521. x.Tptr = nil
  7522. }
  7523. } else {
  7524. if x.Tptr == nil {
  7525. x.Tptr = new(time.Time)
  7526. }
  7527. if !z.DecBasicHandle().TimeNotBuiltin {
  7528. *x.Tptr = r.DecodeTime()
  7529. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  7530. z.DecExtension(x.Tptr, yyxt13)
  7531. } else if z.DecBinary() {
  7532. z.DecBinaryUnmarshal(x.Tptr)
  7533. } else if !z.DecBinary() && z.IsJSONHandle() {
  7534. z.DecJSONUnmarshal(x.Tptr)
  7535. } else {
  7536. z.DecFallback(x.Tptr, false)
  7537. }
  7538. }
  7539. default:
  7540. z.DecStructFieldNotFound(-1, yys3)
  7541. } // end switch yys3
  7542. } // end for yyj3
  7543. }
  7544. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  7545. var h codecSelfer19780
  7546. z, r := GenHelperDecoder(d)
  7547. _, _, _ = h, z, r
  7548. var yyj14 int
  7549. var yyb14 bool
  7550. var yyhl14 bool = l >= 0
  7551. yyj14++
  7552. if yyhl14 {
  7553. yyb14 = yyj14 > l
  7554. } else {
  7555. yyb14 = r.CheckBreak()
  7556. }
  7557. if yyb14 {
  7558. z.DecReadArrayEnd()
  7559. return
  7560. }
  7561. z.DecReadArrayElem()
  7562. z.F.DecSliceIntfX(&x.Islice, d)
  7563. yyj14++
  7564. if yyhl14 {
  7565. yyb14 = yyj14 > l
  7566. } else {
  7567. yyb14 = r.CheckBreak()
  7568. }
  7569. if yyb14 {
  7570. z.DecReadArrayEnd()
  7571. return
  7572. }
  7573. z.DecReadArrayElem()
  7574. z.F.DecMapStringIntfX(&x.Ms, d)
  7575. yyj14++
  7576. if yyhl14 {
  7577. yyb14 = yyj14 > l
  7578. } else {
  7579. yyb14 = r.CheckBreak()
  7580. }
  7581. if yyb14 {
  7582. z.DecReadArrayEnd()
  7583. return
  7584. }
  7585. z.DecReadArrayElem()
  7586. z.DecFallback(&x.Nintf, true)
  7587. yyj14++
  7588. if yyhl14 {
  7589. yyb14 = yyj14 > l
  7590. } else {
  7591. yyb14 = r.CheckBreak()
  7592. }
  7593. if yyb14 {
  7594. z.DecReadArrayEnd()
  7595. return
  7596. }
  7597. z.DecReadArrayElem()
  7598. if !z.DecBasicHandle().TimeNotBuiltin {
  7599. x.T = r.DecodeTime()
  7600. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  7601. z.DecExtension(x.T, yyxt22)
  7602. } else if z.DecBinary() {
  7603. z.DecBinaryUnmarshal(&x.T)
  7604. } else if !z.DecBinary() && z.IsJSONHandle() {
  7605. z.DecJSONUnmarshal(&x.T)
  7606. } else {
  7607. z.DecFallback(&x.T, false)
  7608. }
  7609. yyj14++
  7610. if yyhl14 {
  7611. yyb14 = yyj14 > l
  7612. } else {
  7613. yyb14 = r.CheckBreak()
  7614. }
  7615. if yyb14 {
  7616. z.DecReadArrayEnd()
  7617. return
  7618. }
  7619. z.DecReadArrayElem()
  7620. if r.TryNil() {
  7621. if x.Tptr != nil { // remove the if-true
  7622. x.Tptr = nil
  7623. }
  7624. } else {
  7625. if x.Tptr == nil {
  7626. x.Tptr = new(time.Time)
  7627. }
  7628. if !z.DecBasicHandle().TimeNotBuiltin {
  7629. *x.Tptr = r.DecodeTime()
  7630. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  7631. z.DecExtension(x.Tptr, yyxt24)
  7632. } else if z.DecBinary() {
  7633. z.DecBinaryUnmarshal(x.Tptr)
  7634. } else if !z.DecBinary() && z.IsJSONHandle() {
  7635. z.DecJSONUnmarshal(x.Tptr)
  7636. } else {
  7637. z.DecFallback(x.Tptr, false)
  7638. }
  7639. }
  7640. for {
  7641. yyj14++
  7642. if yyhl14 {
  7643. yyb14 = yyj14 > l
  7644. } else {
  7645. yyb14 = r.CheckBreak()
  7646. }
  7647. if yyb14 {
  7648. break
  7649. }
  7650. z.DecReadArrayElem()
  7651. z.DecStructFieldNotFound(yyj14-1, "")
  7652. }
  7653. }
  7654. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  7655. var h codecSelfer19780
  7656. z, r := GenHelperEncoder(e)
  7657. _, _, _ = h, z, r
  7658. if x == nil {
  7659. r.EncodeNil()
  7660. } else {
  7661. yysep2 := !z.EncBinary()
  7662. yy2arr2 := z.EncBasicHandle().StructToArray
  7663. _, _ = yysep2, yy2arr2
  7664. const yyr2 bool = false // struct tag has 'toArray'
  7665. if yyr2 || yy2arr2 {
  7666. z.EncWriteArrayStart(2)
  7667. z.EncWriteArrayElem()
  7668. if z.EncBasicHandle().StringToRaw {
  7669. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7670. } else {
  7671. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7672. }
  7673. z.EncWriteArrayElem()
  7674. r.EncodeBool(bool(x.B))
  7675. z.EncWriteArrayEnd()
  7676. } else {
  7677. z.EncWriteMapStart(2)
  7678. z.EncWriteMapElemKey()
  7679. if z.IsJSONHandle() {
  7680. z.WriteStr("\"S\"")
  7681. } else {
  7682. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7683. }
  7684. z.EncWriteMapElemValue()
  7685. if z.EncBasicHandle().StringToRaw {
  7686. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7687. } else {
  7688. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7689. }
  7690. z.EncWriteMapElemKey()
  7691. if z.IsJSONHandle() {
  7692. z.WriteStr("\"B\"")
  7693. } else {
  7694. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7695. }
  7696. z.EncWriteMapElemValue()
  7697. r.EncodeBool(bool(x.B))
  7698. z.EncWriteMapEnd()
  7699. }
  7700. }
  7701. }
  7702. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  7703. var h codecSelfer19780
  7704. z, r := GenHelperDecoder(d)
  7705. _, _, _ = h, z, r
  7706. yyct2 := r.ContainerType()
  7707. if yyct2 == codecSelferValueTypeNil19780 {
  7708. *(x) = missingFielderT1{}
  7709. } else if yyct2 == codecSelferValueTypeMap19780 {
  7710. yyl2 := z.DecReadMapStart()
  7711. if yyl2 == 0 {
  7712. } else {
  7713. x.codecDecodeSelfFromMap(yyl2, d)
  7714. }
  7715. z.DecReadMapEnd()
  7716. } else if yyct2 == codecSelferValueTypeArray19780 {
  7717. yyl2 := z.DecReadArrayStart()
  7718. if yyl2 != 0 {
  7719. x.codecDecodeSelfFromArray(yyl2, d)
  7720. }
  7721. z.DecReadArrayEnd()
  7722. } else {
  7723. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7724. }
  7725. }
  7726. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  7727. var h codecSelfer19780
  7728. z, r := GenHelperDecoder(d)
  7729. _, _, _ = h, z, r
  7730. var yyhl3 bool = l >= 0
  7731. for yyj3 := 0; ; yyj3++ {
  7732. if yyhl3 {
  7733. if yyj3 >= l {
  7734. break
  7735. }
  7736. } else {
  7737. if r.CheckBreak() {
  7738. break
  7739. }
  7740. }
  7741. z.DecReadMapElemKey()
  7742. yys3 := z.StringView(r.DecodeStringAsBytes())
  7743. z.DecReadMapElemValue()
  7744. switch yys3 {
  7745. case "S":
  7746. x.S = (string)(string(r.DecodeStringAsBytes()))
  7747. case "B":
  7748. x.B = (bool)(r.DecodeBool())
  7749. default:
  7750. z.DecStructFieldNotFound(-1, yys3)
  7751. } // end switch yys3
  7752. } // end for yyj3
  7753. }
  7754. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  7755. var h codecSelfer19780
  7756. z, r := GenHelperDecoder(d)
  7757. _, _, _ = h, z, r
  7758. var yyj6 int
  7759. var yyb6 bool
  7760. var yyhl6 bool = l >= 0
  7761. yyj6++
  7762. if yyhl6 {
  7763. yyb6 = yyj6 > l
  7764. } else {
  7765. yyb6 = r.CheckBreak()
  7766. }
  7767. if yyb6 {
  7768. z.DecReadArrayEnd()
  7769. return
  7770. }
  7771. z.DecReadArrayElem()
  7772. x.S = (string)(string(r.DecodeStringAsBytes()))
  7773. yyj6++
  7774. if yyhl6 {
  7775. yyb6 = yyj6 > l
  7776. } else {
  7777. yyb6 = r.CheckBreak()
  7778. }
  7779. if yyb6 {
  7780. z.DecReadArrayEnd()
  7781. return
  7782. }
  7783. z.DecReadArrayElem()
  7784. x.B = (bool)(r.DecodeBool())
  7785. for {
  7786. yyj6++
  7787. if yyhl6 {
  7788. yyb6 = yyj6 > l
  7789. } else {
  7790. yyb6 = r.CheckBreak()
  7791. }
  7792. if yyb6 {
  7793. break
  7794. }
  7795. z.DecReadArrayElem()
  7796. z.DecStructFieldNotFound(yyj6-1, "")
  7797. }
  7798. }
  7799. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  7800. var h codecSelfer19780
  7801. z, r := GenHelperEncoder(e)
  7802. _, _, _ = h, z, r
  7803. if x == nil {
  7804. r.EncodeNil()
  7805. } else {
  7806. yysep2 := !z.EncBinary()
  7807. yy2arr2 := z.EncBasicHandle().StructToArray
  7808. _, _ = yysep2, yy2arr2
  7809. const yyr2 bool = false // struct tag has 'toArray'
  7810. if yyr2 || yy2arr2 {
  7811. z.EncWriteArrayStart(4)
  7812. z.EncWriteArrayElem()
  7813. if z.EncBasicHandle().StringToRaw {
  7814. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7815. } else {
  7816. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7817. }
  7818. z.EncWriteArrayElem()
  7819. r.EncodeBool(bool(x.B))
  7820. z.EncWriteArrayElem()
  7821. r.EncodeFloat64(float64(x.F))
  7822. z.EncWriteArrayElem()
  7823. r.EncodeInt(int64(x.I))
  7824. z.EncWriteArrayEnd()
  7825. } else {
  7826. z.EncWriteMapStart(4)
  7827. z.EncWriteMapElemKey()
  7828. if z.IsJSONHandle() {
  7829. z.WriteStr("\"S\"")
  7830. } else {
  7831. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7832. }
  7833. z.EncWriteMapElemValue()
  7834. if z.EncBasicHandle().StringToRaw {
  7835. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7836. } else {
  7837. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7838. }
  7839. z.EncWriteMapElemKey()
  7840. if z.IsJSONHandle() {
  7841. z.WriteStr("\"B\"")
  7842. } else {
  7843. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7844. }
  7845. z.EncWriteMapElemValue()
  7846. r.EncodeBool(bool(x.B))
  7847. z.EncWriteMapElemKey()
  7848. if z.IsJSONHandle() {
  7849. z.WriteStr("\"F\"")
  7850. } else {
  7851. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  7852. }
  7853. z.EncWriteMapElemValue()
  7854. r.EncodeFloat64(float64(x.F))
  7855. z.EncWriteMapElemKey()
  7856. if z.IsJSONHandle() {
  7857. z.WriteStr("\"I\"")
  7858. } else {
  7859. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7860. }
  7861. z.EncWriteMapElemValue()
  7862. r.EncodeInt(int64(x.I))
  7863. z.EncWriteMapEnd()
  7864. }
  7865. }
  7866. }
  7867. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  7868. var h codecSelfer19780
  7869. z, r := GenHelperDecoder(d)
  7870. _, _, _ = h, z, r
  7871. yyct2 := r.ContainerType()
  7872. if yyct2 == codecSelferValueTypeNil19780 {
  7873. *(x) = missingFielderT2{}
  7874. } else if yyct2 == codecSelferValueTypeMap19780 {
  7875. yyl2 := z.DecReadMapStart()
  7876. if yyl2 == 0 {
  7877. } else {
  7878. x.codecDecodeSelfFromMap(yyl2, d)
  7879. }
  7880. z.DecReadMapEnd()
  7881. } else if yyct2 == codecSelferValueTypeArray19780 {
  7882. yyl2 := z.DecReadArrayStart()
  7883. if yyl2 != 0 {
  7884. x.codecDecodeSelfFromArray(yyl2, d)
  7885. }
  7886. z.DecReadArrayEnd()
  7887. } else {
  7888. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7889. }
  7890. }
  7891. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  7892. var h codecSelfer19780
  7893. z, r := GenHelperDecoder(d)
  7894. _, _, _ = h, z, r
  7895. var yyhl3 bool = l >= 0
  7896. for yyj3 := 0; ; yyj3++ {
  7897. if yyhl3 {
  7898. if yyj3 >= l {
  7899. break
  7900. }
  7901. } else {
  7902. if r.CheckBreak() {
  7903. break
  7904. }
  7905. }
  7906. z.DecReadMapElemKey()
  7907. yys3 := z.StringView(r.DecodeStringAsBytes())
  7908. z.DecReadMapElemValue()
  7909. switch yys3 {
  7910. case "S":
  7911. x.S = (string)(string(r.DecodeStringAsBytes()))
  7912. case "B":
  7913. x.B = (bool)(r.DecodeBool())
  7914. case "F":
  7915. x.F = (float64)(r.DecodeFloat64())
  7916. case "I":
  7917. x.I = (int64)(r.DecodeInt64())
  7918. default:
  7919. z.DecStructFieldNotFound(-1, yys3)
  7920. } // end switch yys3
  7921. } // end for yyj3
  7922. }
  7923. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  7924. var h codecSelfer19780
  7925. z, r := GenHelperDecoder(d)
  7926. _, _, _ = h, z, r
  7927. var yyj8 int
  7928. var yyb8 bool
  7929. var yyhl8 bool = l >= 0
  7930. yyj8++
  7931. if yyhl8 {
  7932. yyb8 = yyj8 > l
  7933. } else {
  7934. yyb8 = r.CheckBreak()
  7935. }
  7936. if yyb8 {
  7937. z.DecReadArrayEnd()
  7938. return
  7939. }
  7940. z.DecReadArrayElem()
  7941. x.S = (string)(string(r.DecodeStringAsBytes()))
  7942. yyj8++
  7943. if yyhl8 {
  7944. yyb8 = yyj8 > l
  7945. } else {
  7946. yyb8 = r.CheckBreak()
  7947. }
  7948. if yyb8 {
  7949. z.DecReadArrayEnd()
  7950. return
  7951. }
  7952. z.DecReadArrayElem()
  7953. x.B = (bool)(r.DecodeBool())
  7954. yyj8++
  7955. if yyhl8 {
  7956. yyb8 = yyj8 > l
  7957. } else {
  7958. yyb8 = r.CheckBreak()
  7959. }
  7960. if yyb8 {
  7961. z.DecReadArrayEnd()
  7962. return
  7963. }
  7964. z.DecReadArrayElem()
  7965. x.F = (float64)(r.DecodeFloat64())
  7966. yyj8++
  7967. if yyhl8 {
  7968. yyb8 = yyj8 > l
  7969. } else {
  7970. yyb8 = r.CheckBreak()
  7971. }
  7972. if yyb8 {
  7973. z.DecReadArrayEnd()
  7974. return
  7975. }
  7976. z.DecReadArrayElem()
  7977. x.I = (int64)(r.DecodeInt64())
  7978. for {
  7979. yyj8++
  7980. if yyhl8 {
  7981. yyb8 = yyj8 > l
  7982. } else {
  7983. yyb8 = r.CheckBreak()
  7984. }
  7985. if yyb8 {
  7986. break
  7987. }
  7988. z.DecReadArrayElem()
  7989. z.DecStructFieldNotFound(yyj8-1, "")
  7990. }
  7991. }
  7992. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  7993. var h codecSelfer19780
  7994. z, r := GenHelperEncoder(e)
  7995. _, _, _ = h, z, r
  7996. if x == nil {
  7997. r.EncodeNil()
  7998. } else {
  7999. yysep2 := !z.EncBinary()
  8000. yy2arr2 := z.EncBasicHandle().StructToArray
  8001. _, _ = yysep2, yy2arr2
  8002. const yyr2 bool = false // struct tag has 'toArray'
  8003. if yyr2 || yy2arr2 {
  8004. z.EncWriteArrayStart(3)
  8005. z.EncWriteArrayElem()
  8006. if z.EncBasicHandle().StringToRaw {
  8007. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8008. } else {
  8009. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8010. }
  8011. z.EncWriteArrayElem()
  8012. r.EncodeInt(int64(x.I))
  8013. z.EncWriteArrayElem()
  8014. r.EncodeBool(bool(x.B))
  8015. z.EncWriteArrayEnd()
  8016. } else {
  8017. z.EncWriteMapStart(3)
  8018. z.EncWriteMapElemKey()
  8019. if z.IsJSONHandle() {
  8020. z.WriteStr("\"S\"")
  8021. } else {
  8022. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8023. }
  8024. z.EncWriteMapElemValue()
  8025. if z.EncBasicHandle().StringToRaw {
  8026. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8027. } else {
  8028. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8029. }
  8030. z.EncWriteMapElemKey()
  8031. if z.IsJSONHandle() {
  8032. z.WriteStr("\"I\"")
  8033. } else {
  8034. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8035. }
  8036. z.EncWriteMapElemValue()
  8037. r.EncodeInt(int64(x.I))
  8038. z.EncWriteMapElemKey()
  8039. if z.IsJSONHandle() {
  8040. z.WriteStr("\"B\"")
  8041. } else {
  8042. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8043. }
  8044. z.EncWriteMapElemValue()
  8045. r.EncodeBool(bool(x.B))
  8046. z.EncWriteMapEnd()
  8047. }
  8048. }
  8049. }
  8050. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  8051. var h codecSelfer19780
  8052. z, r := GenHelperDecoder(d)
  8053. _, _, _ = h, z, r
  8054. yyct2 := r.ContainerType()
  8055. if yyct2 == codecSelferValueTypeNil19780 {
  8056. *(x) = testSelfExtHelper{}
  8057. } else if yyct2 == codecSelferValueTypeMap19780 {
  8058. yyl2 := z.DecReadMapStart()
  8059. if yyl2 == 0 {
  8060. } else {
  8061. x.codecDecodeSelfFromMap(yyl2, d)
  8062. }
  8063. z.DecReadMapEnd()
  8064. } else if yyct2 == codecSelferValueTypeArray19780 {
  8065. yyl2 := z.DecReadArrayStart()
  8066. if yyl2 != 0 {
  8067. x.codecDecodeSelfFromArray(yyl2, d)
  8068. }
  8069. z.DecReadArrayEnd()
  8070. } else {
  8071. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8072. }
  8073. }
  8074. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  8075. var h codecSelfer19780
  8076. z, r := GenHelperDecoder(d)
  8077. _, _, _ = h, z, r
  8078. var yyhl3 bool = l >= 0
  8079. for yyj3 := 0; ; yyj3++ {
  8080. if yyhl3 {
  8081. if yyj3 >= l {
  8082. break
  8083. }
  8084. } else {
  8085. if r.CheckBreak() {
  8086. break
  8087. }
  8088. }
  8089. z.DecReadMapElemKey()
  8090. yys3 := z.StringView(r.DecodeStringAsBytes())
  8091. z.DecReadMapElemValue()
  8092. switch yys3 {
  8093. case "S":
  8094. x.S = (string)(string(r.DecodeStringAsBytes()))
  8095. case "I":
  8096. x.I = (int64)(r.DecodeInt64())
  8097. case "B":
  8098. x.B = (bool)(r.DecodeBool())
  8099. default:
  8100. z.DecStructFieldNotFound(-1, yys3)
  8101. } // end switch yys3
  8102. } // end for yyj3
  8103. }
  8104. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  8105. var h codecSelfer19780
  8106. z, r := GenHelperDecoder(d)
  8107. _, _, _ = h, z, r
  8108. var yyj7 int
  8109. var yyb7 bool
  8110. var yyhl7 bool = l >= 0
  8111. yyj7++
  8112. if yyhl7 {
  8113. yyb7 = yyj7 > l
  8114. } else {
  8115. yyb7 = r.CheckBreak()
  8116. }
  8117. if yyb7 {
  8118. z.DecReadArrayEnd()
  8119. return
  8120. }
  8121. z.DecReadArrayElem()
  8122. x.S = (string)(string(r.DecodeStringAsBytes()))
  8123. yyj7++
  8124. if yyhl7 {
  8125. yyb7 = yyj7 > l
  8126. } else {
  8127. yyb7 = r.CheckBreak()
  8128. }
  8129. if yyb7 {
  8130. z.DecReadArrayEnd()
  8131. return
  8132. }
  8133. z.DecReadArrayElem()
  8134. x.I = (int64)(r.DecodeInt64())
  8135. yyj7++
  8136. if yyhl7 {
  8137. yyb7 = yyj7 > l
  8138. } else {
  8139. yyb7 = r.CheckBreak()
  8140. }
  8141. if yyb7 {
  8142. z.DecReadArrayEnd()
  8143. return
  8144. }
  8145. z.DecReadArrayElem()
  8146. x.B = (bool)(r.DecodeBool())
  8147. for {
  8148. yyj7++
  8149. if yyhl7 {
  8150. yyb7 = yyj7 > l
  8151. } else {
  8152. yyb7 = r.CheckBreak()
  8153. }
  8154. if yyb7 {
  8155. break
  8156. }
  8157. z.DecReadArrayElem()
  8158. z.DecStructFieldNotFound(yyj7-1, "")
  8159. }
  8160. }
  8161. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  8162. var h codecSelfer19780
  8163. z, r := GenHelperEncoder(e)
  8164. _, _, _ = h, z, r
  8165. if x == nil {
  8166. r.EncodeNil()
  8167. } else {
  8168. yysep2 := !z.EncBinary()
  8169. yy2arr2 := z.EncBasicHandle().StructToArray
  8170. _, _ = yysep2, yy2arr2
  8171. const yyr2 bool = false // struct tag has 'toArray'
  8172. if yyr2 || yy2arr2 {
  8173. z.EncWriteArrayStart(3)
  8174. z.EncWriteArrayElem()
  8175. if z.EncBasicHandle().StringToRaw {
  8176. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8177. } else {
  8178. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8179. }
  8180. z.EncWriteArrayElem()
  8181. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8182. z.EncWriteArrayElem()
  8183. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8184. z.EncWriteArrayEnd()
  8185. } else {
  8186. z.EncWriteMapStart(3)
  8187. z.EncWriteMapElemKey()
  8188. if z.IsJSONHandle() {
  8189. z.WriteStr("\"S\"")
  8190. } else {
  8191. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8192. }
  8193. z.EncWriteMapElemValue()
  8194. if z.EncBasicHandle().StringToRaw {
  8195. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8196. } else {
  8197. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8198. }
  8199. z.EncWriteMapElemKey()
  8200. if z.IsJSONHandle() {
  8201. z.WriteStr("\"I\"")
  8202. } else {
  8203. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8204. }
  8205. z.EncWriteMapElemValue()
  8206. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8207. z.EncWriteMapElemKey()
  8208. if z.IsJSONHandle() {
  8209. z.WriteStr("\"B\"")
  8210. } else {
  8211. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8212. }
  8213. z.EncWriteMapElemValue()
  8214. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8215. z.EncWriteMapEnd()
  8216. }
  8217. }
  8218. }
  8219. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  8220. var h codecSelfer19780
  8221. z, r := GenHelperDecoder(d)
  8222. _, _, _ = h, z, r
  8223. yyct2 := r.ContainerType()
  8224. if yyct2 == codecSelferValueTypeNil19780 {
  8225. *(x) = TestSelfExtImpl{}
  8226. } else if yyct2 == codecSelferValueTypeMap19780 {
  8227. yyl2 := z.DecReadMapStart()
  8228. if yyl2 == 0 {
  8229. } else {
  8230. x.codecDecodeSelfFromMap(yyl2, d)
  8231. }
  8232. z.DecReadMapEnd()
  8233. } else if yyct2 == codecSelferValueTypeArray19780 {
  8234. yyl2 := z.DecReadArrayStart()
  8235. if yyl2 != 0 {
  8236. x.codecDecodeSelfFromArray(yyl2, d)
  8237. }
  8238. z.DecReadArrayEnd()
  8239. } else {
  8240. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8241. }
  8242. }
  8243. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  8244. var h codecSelfer19780
  8245. z, r := GenHelperDecoder(d)
  8246. _, _, _ = h, z, r
  8247. var yyhl3 bool = l >= 0
  8248. for yyj3 := 0; ; yyj3++ {
  8249. if yyhl3 {
  8250. if yyj3 >= l {
  8251. break
  8252. }
  8253. } else {
  8254. if r.CheckBreak() {
  8255. break
  8256. }
  8257. }
  8258. z.DecReadMapElemKey()
  8259. yys3 := z.StringView(r.DecodeStringAsBytes())
  8260. z.DecReadMapElemValue()
  8261. switch yys3 {
  8262. case "S":
  8263. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8264. case "I":
  8265. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8266. case "B":
  8267. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8268. default:
  8269. z.DecStructFieldNotFound(-1, yys3)
  8270. } // end switch yys3
  8271. } // end for yyj3
  8272. }
  8273. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  8274. var h codecSelfer19780
  8275. z, r := GenHelperDecoder(d)
  8276. _, _, _ = h, z, r
  8277. var yyj7 int
  8278. var yyb7 bool
  8279. var yyhl7 bool = l >= 0
  8280. yyj7++
  8281. if yyhl7 {
  8282. yyb7 = yyj7 > l
  8283. } else {
  8284. yyb7 = r.CheckBreak()
  8285. }
  8286. if yyb7 {
  8287. z.DecReadArrayEnd()
  8288. return
  8289. }
  8290. z.DecReadArrayElem()
  8291. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8292. yyj7++
  8293. if yyhl7 {
  8294. yyb7 = yyj7 > l
  8295. } else {
  8296. yyb7 = r.CheckBreak()
  8297. }
  8298. if yyb7 {
  8299. z.DecReadArrayEnd()
  8300. return
  8301. }
  8302. z.DecReadArrayElem()
  8303. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8304. yyj7++
  8305. if yyhl7 {
  8306. yyb7 = yyj7 > l
  8307. } else {
  8308. yyb7 = r.CheckBreak()
  8309. }
  8310. if yyb7 {
  8311. z.DecReadArrayEnd()
  8312. return
  8313. }
  8314. z.DecReadArrayElem()
  8315. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8316. for {
  8317. yyj7++
  8318. if yyhl7 {
  8319. yyb7 = yyj7 > l
  8320. } else {
  8321. yyb7 = r.CheckBreak()
  8322. }
  8323. if yyb7 {
  8324. break
  8325. }
  8326. z.DecReadArrayElem()
  8327. z.DecStructFieldNotFound(yyj7-1, "")
  8328. }
  8329. }
  8330. func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
  8331. var h codecSelfer19780
  8332. z, r := GenHelperEncoder(e)
  8333. _, _, _ = h, z, r
  8334. if x == nil {
  8335. r.EncodeNil()
  8336. } else {
  8337. yysep2 := !z.EncBinary()
  8338. yy2arr2 := z.EncBasicHandle().StructToArray
  8339. _, _ = yysep2, yy2arr2
  8340. const yyr2 bool = false // struct tag has 'toArray'
  8341. if yyr2 || yy2arr2 {
  8342. z.EncWriteArrayStart(2)
  8343. z.EncWriteArrayElem()
  8344. if z.EncBasicHandle().StringToRaw {
  8345. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8346. } else {
  8347. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8348. }
  8349. z.EncWriteArrayElem()
  8350. r.EncodeBool(bool(x.O))
  8351. z.EncWriteArrayEnd()
  8352. } else {
  8353. z.EncWriteMapStart(2)
  8354. z.EncWriteMapElemKey()
  8355. if z.IsJSONHandle() {
  8356. z.WriteStr("\"M\"")
  8357. } else {
  8358. r.EncodeStringEnc(codecSelferCcUTF819780, `M`)
  8359. }
  8360. z.EncWriteMapElemValue()
  8361. if z.EncBasicHandle().StringToRaw {
  8362. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8363. } else {
  8364. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8365. }
  8366. z.EncWriteMapElemKey()
  8367. if z.IsJSONHandle() {
  8368. z.WriteStr("\"O\"")
  8369. } else {
  8370. r.EncodeStringEnc(codecSelferCcUTF819780, `O`)
  8371. }
  8372. z.EncWriteMapElemValue()
  8373. r.EncodeBool(bool(x.O))
  8374. z.EncWriteMapEnd()
  8375. }
  8376. }
  8377. }
  8378. func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
  8379. var h codecSelfer19780
  8380. z, r := GenHelperDecoder(d)
  8381. _, _, _ = h, z, r
  8382. yyct2 := r.ContainerType()
  8383. if yyct2 == codecSelferValueTypeNil19780 {
  8384. *(x) = TestSelfExtImpl2{}
  8385. } else if yyct2 == codecSelferValueTypeMap19780 {
  8386. yyl2 := z.DecReadMapStart()
  8387. if yyl2 == 0 {
  8388. } else {
  8389. x.codecDecodeSelfFromMap(yyl2, d)
  8390. }
  8391. z.DecReadMapEnd()
  8392. } else if yyct2 == codecSelferValueTypeArray19780 {
  8393. yyl2 := z.DecReadArrayStart()
  8394. if yyl2 != 0 {
  8395. x.codecDecodeSelfFromArray(yyl2, d)
  8396. }
  8397. z.DecReadArrayEnd()
  8398. } else {
  8399. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8400. }
  8401. }
  8402. func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8403. var h codecSelfer19780
  8404. z, r := GenHelperDecoder(d)
  8405. _, _, _ = h, z, r
  8406. var yyhl3 bool = l >= 0
  8407. for yyj3 := 0; ; yyj3++ {
  8408. if yyhl3 {
  8409. if yyj3 >= l {
  8410. break
  8411. }
  8412. } else {
  8413. if r.CheckBreak() {
  8414. break
  8415. }
  8416. }
  8417. z.DecReadMapElemKey()
  8418. yys3 := z.StringView(r.DecodeStringAsBytes())
  8419. z.DecReadMapElemValue()
  8420. switch yys3 {
  8421. case "M":
  8422. x.M = (string)(string(r.DecodeStringAsBytes()))
  8423. case "O":
  8424. x.O = (bool)(r.DecodeBool())
  8425. default:
  8426. z.DecStructFieldNotFound(-1, yys3)
  8427. } // end switch yys3
  8428. } // end for yyj3
  8429. }
  8430. func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8431. var h codecSelfer19780
  8432. z, r := GenHelperDecoder(d)
  8433. _, _, _ = h, z, r
  8434. var yyj6 int
  8435. var yyb6 bool
  8436. var yyhl6 bool = l >= 0
  8437. yyj6++
  8438. if yyhl6 {
  8439. yyb6 = yyj6 > l
  8440. } else {
  8441. yyb6 = r.CheckBreak()
  8442. }
  8443. if yyb6 {
  8444. z.DecReadArrayEnd()
  8445. return
  8446. }
  8447. z.DecReadArrayElem()
  8448. x.M = (string)(string(r.DecodeStringAsBytes()))
  8449. yyj6++
  8450. if yyhl6 {
  8451. yyb6 = yyj6 > l
  8452. } else {
  8453. yyb6 = r.CheckBreak()
  8454. }
  8455. if yyb6 {
  8456. z.DecReadArrayEnd()
  8457. return
  8458. }
  8459. z.DecReadArrayElem()
  8460. x.O = (bool)(r.DecodeBool())
  8461. for {
  8462. yyj6++
  8463. if yyhl6 {
  8464. yyb6 = yyj6 > l
  8465. } else {
  8466. yyb6 = r.CheckBreak()
  8467. }
  8468. if yyb6 {
  8469. break
  8470. }
  8471. z.DecReadArrayElem()
  8472. z.DecStructFieldNotFound(yyj6-1, "")
  8473. }
  8474. }
  8475. func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
  8476. var h codecSelfer19780
  8477. z, r := GenHelperEncoder(e)
  8478. _, _, _ = h, z, r
  8479. if x == nil {
  8480. r.EncodeNil()
  8481. } else {
  8482. yysep2 := !z.EncBinary()
  8483. yy2arr2 := z.EncBasicHandle().StructToArray
  8484. _, _ = yysep2, yy2arr2
  8485. const yyr2 bool = false // struct tag has 'toArray'
  8486. if yyr2 || yy2arr2 {
  8487. z.EncWriteArrayStart(2)
  8488. z.EncWriteArrayElem()
  8489. z.EncFallback(x.A)
  8490. z.EncWriteArrayElem()
  8491. z.EncFallback(x.B)
  8492. z.EncWriteArrayEnd()
  8493. } else {
  8494. z.EncWriteMapStart(2)
  8495. z.EncWriteMapElemKey()
  8496. if z.IsJSONHandle() {
  8497. z.WriteStr("\"A\"")
  8498. } else {
  8499. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8500. }
  8501. z.EncWriteMapElemValue()
  8502. z.EncFallback(x.A)
  8503. z.EncWriteMapElemKey()
  8504. if z.IsJSONHandle() {
  8505. z.WriteStr("\"B\"")
  8506. } else {
  8507. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8508. }
  8509. z.EncWriteMapElemValue()
  8510. z.EncFallback(x.B)
  8511. z.EncWriteMapEnd()
  8512. }
  8513. }
  8514. }
  8515. func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
  8516. var h codecSelfer19780
  8517. z, r := GenHelperDecoder(d)
  8518. _, _, _ = h, z, r
  8519. yyct2 := r.ContainerType()
  8520. if yyct2 == codecSelferValueTypeNil19780 {
  8521. *(x) = TestTwoNakedInterfaces{}
  8522. } else if yyct2 == codecSelferValueTypeMap19780 {
  8523. yyl2 := z.DecReadMapStart()
  8524. if yyl2 == 0 {
  8525. } else {
  8526. x.codecDecodeSelfFromMap(yyl2, d)
  8527. }
  8528. z.DecReadMapEnd()
  8529. } else if yyct2 == codecSelferValueTypeArray19780 {
  8530. yyl2 := z.DecReadArrayStart()
  8531. if yyl2 != 0 {
  8532. x.codecDecodeSelfFromArray(yyl2, d)
  8533. }
  8534. z.DecReadArrayEnd()
  8535. } else {
  8536. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8537. }
  8538. }
  8539. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
  8540. var h codecSelfer19780
  8541. z, r := GenHelperDecoder(d)
  8542. _, _, _ = h, z, r
  8543. var yyhl3 bool = l >= 0
  8544. for yyj3 := 0; ; yyj3++ {
  8545. if yyhl3 {
  8546. if yyj3 >= l {
  8547. break
  8548. }
  8549. } else {
  8550. if r.CheckBreak() {
  8551. break
  8552. }
  8553. }
  8554. z.DecReadMapElemKey()
  8555. yys3 := z.StringView(r.DecodeStringAsBytes())
  8556. z.DecReadMapElemValue()
  8557. switch yys3 {
  8558. case "A":
  8559. z.DecFallback(&x.A, true)
  8560. case "B":
  8561. z.DecFallback(&x.B, true)
  8562. default:
  8563. z.DecStructFieldNotFound(-1, yys3)
  8564. } // end switch yys3
  8565. } // end for yyj3
  8566. }
  8567. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
  8568. var h codecSelfer19780
  8569. z, r := GenHelperDecoder(d)
  8570. _, _, _ = h, z, r
  8571. var yyj8 int
  8572. var yyb8 bool
  8573. var yyhl8 bool = l >= 0
  8574. yyj8++
  8575. if yyhl8 {
  8576. yyb8 = yyj8 > l
  8577. } else {
  8578. yyb8 = r.CheckBreak()
  8579. }
  8580. if yyb8 {
  8581. z.DecReadArrayEnd()
  8582. return
  8583. }
  8584. z.DecReadArrayElem()
  8585. z.DecFallback(&x.A, true)
  8586. yyj8++
  8587. if yyhl8 {
  8588. yyb8 = yyj8 > l
  8589. } else {
  8590. yyb8 = r.CheckBreak()
  8591. }
  8592. if yyb8 {
  8593. z.DecReadArrayEnd()
  8594. return
  8595. }
  8596. z.DecReadArrayElem()
  8597. z.DecFallback(&x.B, true)
  8598. for {
  8599. yyj8++
  8600. if yyhl8 {
  8601. yyb8 = yyj8 > l
  8602. } else {
  8603. yyb8 = r.CheckBreak()
  8604. }
  8605. if yyb8 {
  8606. break
  8607. }
  8608. z.DecReadArrayElem()
  8609. z.DecStructFieldNotFound(yyj8-1, "")
  8610. }
  8611. }
  8612. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  8613. var h codecSelfer19780
  8614. z, r := GenHelperEncoder(e)
  8615. _, _, _ = h, z, r
  8616. if x == nil {
  8617. r.EncodeNil()
  8618. } else {
  8619. yysep2 := !z.EncBinary()
  8620. yy2arr2 := z.EncBasicHandle().StructToArray
  8621. _, _ = yysep2, yy2arr2
  8622. const yyr2 bool = false // struct tag has 'toArray'
  8623. var yyq2 = [77]bool{ // should field at this index be written?
  8624. x.S != "", // S
  8625. x.I64 != 0, // I64
  8626. x.I32 != 0, // I32
  8627. x.I16 != 0, // I16
  8628. x.I8 != 0, // I8
  8629. x.I64n != 0, // I64n
  8630. x.I32n != 0, // I32n
  8631. x.I16n != 0, // I16n
  8632. x.I8n != 0, // I8n
  8633. x.Ui64 != 0, // Ui64
  8634. x.Ui32 != 0, // Ui32
  8635. x.Ui16 != 0, // Ui16
  8636. x.Ui8 != 0, // Ui8
  8637. x.F64 != 0, // F64
  8638. x.F32 != 0, // F32
  8639. x.B, // B
  8640. x.By != 0, // By
  8641. len(x.Sslice) != 0, // Sslice
  8642. len(x.I64slice) != 0, // I64slice
  8643. len(x.I16slice) != 0, // I16slice
  8644. len(x.Ui64slice) != 0, // Ui64slice
  8645. len(x.Ui8slice) != 0, // Ui8slice
  8646. len(x.Bslice) != 0, // Bslice
  8647. len(x.Byslice) != 0, // Byslice
  8648. len(x.BytesSlice) != 0, // BytesSlice
  8649. len(x.Iptrslice) != 0, // Iptrslice
  8650. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  8651. len(x.WrapSliceString) != 0, // WrapSliceString
  8652. len(x.Msi64) != 0, // Msi64
  8653. len(x.Msbytes) != 0, // Msbytes
  8654. 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
  8655. len(x.SstrUi64T) != 0, // SstrUi64T
  8656. len(x.MstrUi64T) != 0, // MstrUi64T
  8657. x.AS != "", // AS
  8658. x.AI64 != 0, // AI64
  8659. x.AI16 != 0, // AI16
  8660. x.AUi64 != 0, // AUi64
  8661. len(x.ASslice) != 0, // ASslice
  8662. len(x.AI64slice) != 0, // AI64slice
  8663. len(x.AUi64slice) != 0, // AUi64slice
  8664. len(x.AF64slice) != 0, // AF64slice
  8665. len(x.AF32slice) != 0, // AF32slice
  8666. len(x.AMSU16) != 0, // AMSU16
  8667. len(x.AI64arr0) != 0, // AI64arr0
  8668. len(x.AI64slice0) != 0, // AI64slice0
  8669. len(x.AUi64sliceN) != 0, // AUi64sliceN
  8670. len(x.AMSU16N) != 0, // AMSU16N
  8671. len(x.AMSU16E) != 0, // AMSU16E
  8672. 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.AI64slice0) != 0 || len(x.NotAnon.AUi64sliceN) != 0 || len(x.NotAnon.AMSU16N) != 0 || len(x.NotAnon.AMSU16E) != 0, // NotAnon
  8673. len(x.Nmap) != 0, // Nmap
  8674. len(x.Nslice) != 0, // Nslice
  8675. x.Nint64 != nil, // Nint64
  8676. len(x.Chstr) != 0, // Chstr
  8677. len(x.Mis) != 0, // Mis
  8678. len(x.Mbu64) != 0, // Mbu64
  8679. len(x.Miwu64s) != 0, // Miwu64s
  8680. len(x.Mfwss) != 0, // Mfwss
  8681. len(x.Mf32wss) != 0, // Mf32wss
  8682. len(x.Mui2wss) != 0, // Mui2wss
  8683. len(x.Msu2wss) != 0, // Msu2wss
  8684. x.Ci64 != 0, // Ci64
  8685. len(x.Swrapbytes) != 0, // Swrapbytes
  8686. len(x.Swrapuint8) != 0, // Swrapuint8
  8687. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  8688. len(x.Ui64array) != 0, // Ui64array
  8689. len(x.Ui64slicearray) != 0, // Ui64slicearray
  8690. len(x.SintfAarray) != 0, // SintfAarray
  8691. len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
  8692. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  8693. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  8694. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  8695. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  8696. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  8697. len(x.Mtsptr) != 0, // Mtsptr
  8698. len(x.Mts) != 0, // Mts
  8699. len(x.Its) != 0, // Its
  8700. x.Nteststruc != nil, // Nteststruc
  8701. }
  8702. _ = yyq2
  8703. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  8704. var yyn71 bool = x.AnonInTestStrucIntf == nil
  8705. var yyn72 bool = x.AnonInTestStrucIntf == nil
  8706. var yyn73 bool = x.AnonInTestStrucIntf == nil
  8707. var yyn74 bool = x.AnonInTestStrucIntf == nil
  8708. var yyn75 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  8709. var yyn79 bool = x.Nteststruc == nil
  8710. if yyr2 || yy2arr2 {
  8711. z.EncWriteArrayStart(77)
  8712. z.EncWriteArrayElem()
  8713. if yyq2[0] {
  8714. if z.EncBasicHandle().StringToRaw {
  8715. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  8716. } else {
  8717. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  8718. }
  8719. } else {
  8720. if z.EncBasicHandle().StringToRaw {
  8721. r.EncodeStringBytesRaw([]byte{})
  8722. } else {
  8723. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8724. }
  8725. }
  8726. z.EncWriteArrayElem()
  8727. if yyq2[1] {
  8728. r.EncodeInt(int64(x.TestStrucCommon.I64))
  8729. } else {
  8730. r.EncodeInt(0)
  8731. }
  8732. z.EncWriteArrayElem()
  8733. if yyq2[2] {
  8734. r.EncodeInt(int64(x.TestStrucCommon.I32))
  8735. } else {
  8736. r.EncodeInt(0)
  8737. }
  8738. z.EncWriteArrayElem()
  8739. if yyq2[3] {
  8740. r.EncodeInt(int64(x.TestStrucCommon.I16))
  8741. } else {
  8742. r.EncodeInt(0)
  8743. }
  8744. z.EncWriteArrayElem()
  8745. if yyq2[4] {
  8746. r.EncodeInt(int64(x.TestStrucCommon.I8))
  8747. } else {
  8748. r.EncodeInt(0)
  8749. }
  8750. z.EncWriteArrayElem()
  8751. if yyq2[5] {
  8752. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  8753. } else {
  8754. r.EncodeInt(0)
  8755. }
  8756. z.EncWriteArrayElem()
  8757. if yyq2[6] {
  8758. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  8759. } else {
  8760. r.EncodeInt(0)
  8761. }
  8762. z.EncWriteArrayElem()
  8763. if yyq2[7] {
  8764. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  8765. } else {
  8766. r.EncodeInt(0)
  8767. }
  8768. z.EncWriteArrayElem()
  8769. if yyq2[8] {
  8770. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  8771. } else {
  8772. r.EncodeInt(0)
  8773. }
  8774. z.EncWriteArrayElem()
  8775. if yyq2[9] {
  8776. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  8777. } else {
  8778. r.EncodeUint(0)
  8779. }
  8780. z.EncWriteArrayElem()
  8781. if yyq2[10] {
  8782. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  8783. } else {
  8784. r.EncodeUint(0)
  8785. }
  8786. z.EncWriteArrayElem()
  8787. if yyq2[11] {
  8788. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  8789. } else {
  8790. r.EncodeUint(0)
  8791. }
  8792. z.EncWriteArrayElem()
  8793. if yyq2[12] {
  8794. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  8795. } else {
  8796. r.EncodeUint(0)
  8797. }
  8798. z.EncWriteArrayElem()
  8799. if yyq2[13] {
  8800. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  8801. } else {
  8802. r.EncodeFloat64(0)
  8803. }
  8804. z.EncWriteArrayElem()
  8805. if yyq2[14] {
  8806. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  8807. } else {
  8808. r.EncodeFloat32(0)
  8809. }
  8810. z.EncWriteArrayElem()
  8811. if yyq2[15] {
  8812. r.EncodeBool(bool(x.TestStrucCommon.B))
  8813. } else {
  8814. r.EncodeBool(false)
  8815. }
  8816. z.EncWriteArrayElem()
  8817. if yyq2[16] {
  8818. r.EncodeUint(uint64(x.TestStrucCommon.By))
  8819. } else {
  8820. r.EncodeUint(0)
  8821. }
  8822. z.EncWriteArrayElem()
  8823. if yyq2[17] {
  8824. if x.TestStrucCommon.Sslice == nil {
  8825. r.EncodeNil()
  8826. } else {
  8827. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  8828. } // end block: if x.TestStrucCommon.Sslice slice == nil
  8829. } else {
  8830. r.EncodeNil()
  8831. }
  8832. z.EncWriteArrayElem()
  8833. if yyq2[18] {
  8834. if x.TestStrucCommon.I64slice == nil {
  8835. r.EncodeNil()
  8836. } else {
  8837. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  8838. } // end block: if x.TestStrucCommon.I64slice slice == nil
  8839. } else {
  8840. r.EncodeNil()
  8841. }
  8842. z.EncWriteArrayElem()
  8843. if yyq2[19] {
  8844. if x.TestStrucCommon.I16slice == nil {
  8845. r.EncodeNil()
  8846. } else {
  8847. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  8848. } // end block: if x.TestStrucCommon.I16slice slice == nil
  8849. } else {
  8850. r.EncodeNil()
  8851. }
  8852. z.EncWriteArrayElem()
  8853. if yyq2[20] {
  8854. if x.TestStrucCommon.Ui64slice == nil {
  8855. r.EncodeNil()
  8856. } else {
  8857. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  8858. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  8859. } else {
  8860. r.EncodeNil()
  8861. }
  8862. z.EncWriteArrayElem()
  8863. if yyq2[21] {
  8864. if x.TestStrucCommon.Ui8slice == nil {
  8865. r.EncodeNil()
  8866. } else {
  8867. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  8868. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  8869. } else {
  8870. r.EncodeNil()
  8871. }
  8872. z.EncWriteArrayElem()
  8873. if yyq2[22] {
  8874. if x.TestStrucCommon.Bslice == nil {
  8875. r.EncodeNil()
  8876. } else {
  8877. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  8878. } // end block: if x.TestStrucCommon.Bslice slice == nil
  8879. } else {
  8880. r.EncodeNil()
  8881. }
  8882. z.EncWriteArrayElem()
  8883. if yyq2[23] {
  8884. if x.TestStrucCommon.Byslice == nil {
  8885. r.EncodeNil()
  8886. } else {
  8887. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  8888. } // end block: if x.TestStrucCommon.Byslice slice == nil
  8889. } else {
  8890. r.EncodeNil()
  8891. }
  8892. z.EncWriteArrayElem()
  8893. if yyq2[24] {
  8894. if x.TestStrucCommon.BytesSlice == nil {
  8895. r.EncodeNil()
  8896. } else {
  8897. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  8898. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  8899. } else {
  8900. r.EncodeNil()
  8901. }
  8902. z.EncWriteArrayElem()
  8903. if yyq2[25] {
  8904. if x.TestStrucCommon.Iptrslice == nil {
  8905. r.EncodeNil()
  8906. } else {
  8907. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  8908. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  8909. } else {
  8910. r.EncodeNil()
  8911. }
  8912. z.EncWriteArrayElem()
  8913. if yyq2[26] {
  8914. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  8915. } else {
  8916. r.EncodeNil()
  8917. }
  8918. z.EncWriteArrayElem()
  8919. if yyq2[27] {
  8920. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  8921. } else {
  8922. r.EncodeNil()
  8923. }
  8924. z.EncWriteArrayElem()
  8925. if yyq2[28] {
  8926. if x.TestStrucCommon.Msi64 == nil {
  8927. r.EncodeNil()
  8928. } else {
  8929. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  8930. } // end block: if x.TestStrucCommon.Msi64 map == nil
  8931. } else {
  8932. r.EncodeNil()
  8933. }
  8934. z.EncWriteArrayElem()
  8935. if yyq2[29] {
  8936. if x.TestStrucCommon.Msbytes == nil {
  8937. r.EncodeNil()
  8938. } else {
  8939. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  8940. } // end block: if x.TestStrucCommon.Msbytes map == nil
  8941. } else {
  8942. r.EncodeNil()
  8943. }
  8944. z.EncWriteArrayElem()
  8945. if yyq2[30] {
  8946. yy110 := &x.TestStrucCommon.Simplef
  8947. yy110.CodecEncodeSelf(e)
  8948. } else {
  8949. r.EncodeNil()
  8950. }
  8951. z.EncWriteArrayElem()
  8952. if yyq2[31] {
  8953. if x.TestStrucCommon.SstrUi64T == nil {
  8954. r.EncodeNil()
  8955. } else {
  8956. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  8957. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  8958. } else {
  8959. r.EncodeNil()
  8960. }
  8961. z.EncWriteArrayElem()
  8962. if yyq2[32] {
  8963. if x.TestStrucCommon.MstrUi64T == nil {
  8964. r.EncodeNil()
  8965. } else {
  8966. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  8967. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  8968. } else {
  8969. r.EncodeNil()
  8970. }
  8971. z.EncWriteArrayElem()
  8972. if yyq2[33] {
  8973. if z.EncBasicHandle().StringToRaw {
  8974. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  8975. } else {
  8976. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  8977. }
  8978. } else {
  8979. if z.EncBasicHandle().StringToRaw {
  8980. r.EncodeStringBytesRaw([]byte{})
  8981. } else {
  8982. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8983. }
  8984. }
  8985. z.EncWriteArrayElem()
  8986. if yyq2[34] {
  8987. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  8988. } else {
  8989. r.EncodeInt(0)
  8990. }
  8991. z.EncWriteArrayElem()
  8992. if yyq2[35] {
  8993. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  8994. } else {
  8995. r.EncodeInt(0)
  8996. }
  8997. z.EncWriteArrayElem()
  8998. if yyq2[36] {
  8999. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9000. } else {
  9001. r.EncodeUint(0)
  9002. }
  9003. z.EncWriteArrayElem()
  9004. if yyq2[37] {
  9005. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9006. r.EncodeNil()
  9007. } else {
  9008. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9009. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9010. } else {
  9011. r.EncodeNil()
  9012. }
  9013. z.EncWriteArrayElem()
  9014. if yyq2[38] {
  9015. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9016. r.EncodeNil()
  9017. } else {
  9018. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9019. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9020. } else {
  9021. r.EncodeNil()
  9022. }
  9023. z.EncWriteArrayElem()
  9024. if yyq2[39] {
  9025. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9026. r.EncodeNil()
  9027. } else {
  9028. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9029. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9030. } else {
  9031. r.EncodeNil()
  9032. }
  9033. z.EncWriteArrayElem()
  9034. if yyq2[40] {
  9035. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9036. r.EncodeNil()
  9037. } else {
  9038. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9039. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9040. } else {
  9041. r.EncodeNil()
  9042. }
  9043. z.EncWriteArrayElem()
  9044. if yyq2[41] {
  9045. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9046. r.EncodeNil()
  9047. } else {
  9048. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9049. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9050. } else {
  9051. r.EncodeNil()
  9052. }
  9053. z.EncWriteArrayElem()
  9054. if yyq2[42] {
  9055. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9056. r.EncodeNil()
  9057. } else {
  9058. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9059. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9060. } else {
  9061. r.EncodeNil()
  9062. }
  9063. z.EncWriteArrayElem()
  9064. if yyq2[43] {
  9065. yy124 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9066. h.encArray0int64((*[0]int64)(yy124), e)
  9067. } else {
  9068. r.EncodeNil()
  9069. }
  9070. z.EncWriteArrayElem()
  9071. if yyq2[44] {
  9072. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9073. r.EncodeNil()
  9074. } else {
  9075. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9076. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9077. } else {
  9078. r.EncodeNil()
  9079. }
  9080. z.EncWriteArrayElem()
  9081. if yyq2[45] {
  9082. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9083. r.EncodeNil()
  9084. } else {
  9085. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9086. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9087. } else {
  9088. r.EncodeNil()
  9089. }
  9090. z.EncWriteArrayElem()
  9091. if yyq2[46] {
  9092. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9093. r.EncodeNil()
  9094. } else {
  9095. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9096. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9097. } else {
  9098. r.EncodeNil()
  9099. }
  9100. z.EncWriteArrayElem()
  9101. if yyq2[47] {
  9102. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  9103. r.EncodeNil()
  9104. } else {
  9105. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9106. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  9107. } else {
  9108. r.EncodeNil()
  9109. }
  9110. z.EncWriteArrayElem()
  9111. if yyq2[48] {
  9112. yy130 := &x.TestStrucCommon.NotAnon
  9113. yy130.CodecEncodeSelf(e)
  9114. } else {
  9115. r.EncodeNil()
  9116. }
  9117. z.EncWriteArrayElem()
  9118. if yyq2[49] {
  9119. if x.TestStrucCommon.Nmap == nil {
  9120. r.EncodeNil()
  9121. } else {
  9122. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9123. } // end block: if x.TestStrucCommon.Nmap map == nil
  9124. } else {
  9125. r.EncodeNil()
  9126. }
  9127. z.EncWriteArrayElem()
  9128. if yyq2[50] {
  9129. if x.TestStrucCommon.Nslice == nil {
  9130. r.EncodeNil()
  9131. } else {
  9132. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9133. } // end block: if x.TestStrucCommon.Nslice slice == nil
  9134. } else {
  9135. r.EncodeNil()
  9136. }
  9137. if yyn54 {
  9138. z.EncWriteArrayElem()
  9139. r.EncodeNil()
  9140. } else {
  9141. z.EncWriteArrayElem()
  9142. if yyq2[51] {
  9143. yy134 := *x.TestStrucCommon.Nint64
  9144. r.EncodeInt(int64(yy134))
  9145. } else {
  9146. r.EncodeNil()
  9147. }
  9148. }
  9149. z.EncWriteArrayElem()
  9150. if yyq2[52] {
  9151. h.encChanstring((chan string)(x.Chstr), e)
  9152. } else {
  9153. r.EncodeNil()
  9154. }
  9155. z.EncWriteArrayElem()
  9156. if yyq2[53] {
  9157. if x.Mis == nil {
  9158. r.EncodeNil()
  9159. } else {
  9160. z.F.EncMapIntStringV(x.Mis, e)
  9161. } // end block: if x.Mis map == nil
  9162. } else {
  9163. r.EncodeNil()
  9164. }
  9165. z.EncWriteArrayElem()
  9166. if yyq2[54] {
  9167. if x.Mbu64 == nil {
  9168. r.EncodeNil()
  9169. } else {
  9170. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9171. } // end block: if x.Mbu64 map == nil
  9172. } else {
  9173. r.EncodeNil()
  9174. }
  9175. z.EncWriteArrayElem()
  9176. if yyq2[55] {
  9177. if x.Miwu64s == nil {
  9178. r.EncodeNil()
  9179. } else {
  9180. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  9181. } // end block: if x.Miwu64s map == nil
  9182. } else {
  9183. r.EncodeNil()
  9184. }
  9185. z.EncWriteArrayElem()
  9186. if yyq2[56] {
  9187. if x.Mfwss == nil {
  9188. r.EncodeNil()
  9189. } else {
  9190. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  9191. } // end block: if x.Mfwss map == nil
  9192. } else {
  9193. r.EncodeNil()
  9194. }
  9195. z.EncWriteArrayElem()
  9196. if yyq2[57] {
  9197. if x.Mf32wss == nil {
  9198. r.EncodeNil()
  9199. } else {
  9200. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9201. } // end block: if x.Mf32wss map == nil
  9202. } else {
  9203. r.EncodeNil()
  9204. }
  9205. z.EncWriteArrayElem()
  9206. if yyq2[58] {
  9207. if x.Mui2wss == nil {
  9208. r.EncodeNil()
  9209. } else {
  9210. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9211. } // end block: if x.Mui2wss map == nil
  9212. } else {
  9213. r.EncodeNil()
  9214. }
  9215. z.EncWriteArrayElem()
  9216. if yyq2[59] {
  9217. if x.Msu2wss == nil {
  9218. r.EncodeNil()
  9219. } else {
  9220. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9221. } // end block: if x.Msu2wss map == nil
  9222. } else {
  9223. r.EncodeNil()
  9224. }
  9225. z.EncWriteArrayElem()
  9226. if yyq2[60] {
  9227. x.Ci64.CodecEncodeSelf(e)
  9228. } else {
  9229. r.EncodeInt(0)
  9230. }
  9231. z.EncWriteArrayElem()
  9232. if yyq2[61] {
  9233. if x.Swrapbytes == nil {
  9234. r.EncodeNil()
  9235. } else {
  9236. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9237. } // end block: if x.Swrapbytes slice == nil
  9238. } else {
  9239. r.EncodeNil()
  9240. }
  9241. z.EncWriteArrayElem()
  9242. if yyq2[62] {
  9243. if x.Swrapuint8 == nil {
  9244. r.EncodeNil()
  9245. } else {
  9246. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9247. } // end block: if x.Swrapuint8 slice == nil
  9248. } else {
  9249. r.EncodeNil()
  9250. }
  9251. z.EncWriteArrayElem()
  9252. if yyq2[63] {
  9253. yy147 := &x.ArrStrUi64T
  9254. h.encArray4stringUint64T((*[4]stringUint64T)(yy147), e)
  9255. } else {
  9256. r.EncodeNil()
  9257. }
  9258. z.EncWriteArrayElem()
  9259. if yyq2[64] {
  9260. yy149 := &x.Ui64array
  9261. h.encArray4uint64((*[4]uint64)(yy149), e)
  9262. } else {
  9263. r.EncodeNil()
  9264. }
  9265. z.EncWriteArrayElem()
  9266. if yyq2[65] {
  9267. if x.Ui64slicearray == nil {
  9268. r.EncodeNil()
  9269. } else {
  9270. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9271. } // end block: if x.Ui64slicearray slice == nil
  9272. } else {
  9273. r.EncodeNil()
  9274. }
  9275. z.EncWriteArrayElem()
  9276. if yyq2[66] {
  9277. if x.SintfAarray == nil {
  9278. r.EncodeNil()
  9279. } else {
  9280. z.F.EncSliceIntfV(x.SintfAarray, e)
  9281. } // end block: if x.SintfAarray slice == nil
  9282. } else {
  9283. r.EncodeNil()
  9284. }
  9285. z.EncWriteArrayElem()
  9286. if yyq2[67] {
  9287. if x.MstrUi64TSelf == nil {
  9288. r.EncodeNil()
  9289. } else {
  9290. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  9291. } // end block: if x.MstrUi64TSelf map == nil
  9292. } else {
  9293. r.EncodeNil()
  9294. }
  9295. if yyn71 {
  9296. z.EncWriteArrayElem()
  9297. r.EncodeNil()
  9298. } else {
  9299. z.EncWriteArrayElem()
  9300. if yyq2[68] {
  9301. if x.AnonInTestStrucIntf.Islice == nil {
  9302. r.EncodeNil()
  9303. } else {
  9304. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9305. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  9306. } else {
  9307. r.EncodeNil()
  9308. }
  9309. }
  9310. if yyn72 {
  9311. z.EncWriteArrayElem()
  9312. r.EncodeNil()
  9313. } else {
  9314. z.EncWriteArrayElem()
  9315. if yyq2[69] {
  9316. if x.AnonInTestStrucIntf.Ms == nil {
  9317. r.EncodeNil()
  9318. } else {
  9319. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9320. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  9321. } else {
  9322. r.EncodeNil()
  9323. }
  9324. }
  9325. if yyn73 {
  9326. z.EncWriteArrayElem()
  9327. r.EncodeNil()
  9328. } else {
  9329. z.EncWriteArrayElem()
  9330. if yyq2[70] {
  9331. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9332. } else {
  9333. r.EncodeNil()
  9334. }
  9335. }
  9336. if yyn74 {
  9337. z.EncWriteArrayElem()
  9338. r.EncodeNil()
  9339. } else {
  9340. z.EncWriteArrayElem()
  9341. if yyq2[71] {
  9342. if !z.EncBasicHandle().TimeNotBuiltin {
  9343. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9344. } else if yyxt157 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt157 != nil {
  9345. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt157)
  9346. } else if z.EncBinary() {
  9347. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9348. } else if !z.EncBinary() && z.IsJSONHandle() {
  9349. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9350. } else {
  9351. z.EncFallback(x.AnonInTestStrucIntf.T)
  9352. }
  9353. } else {
  9354. r.EncodeNil()
  9355. }
  9356. }
  9357. if yyn75 {
  9358. z.EncWriteArrayElem()
  9359. r.EncodeNil()
  9360. } else {
  9361. z.EncWriteArrayElem()
  9362. if yyq2[72] {
  9363. yy158 := *x.AnonInTestStrucIntf.Tptr
  9364. if !z.EncBasicHandle().TimeNotBuiltin {
  9365. r.EncodeTime(yy158)
  9366. } else if yyxt159 := z.Extension(z.I2Rtid(yy158)); yyxt159 != nil {
  9367. z.EncExtension(yy158, yyxt159)
  9368. } else if z.EncBinary() {
  9369. z.EncBinaryMarshal(yy158)
  9370. } else if !z.EncBinary() && z.IsJSONHandle() {
  9371. z.EncJSONMarshal(yy158)
  9372. } else {
  9373. z.EncFallback(yy158)
  9374. }
  9375. } else {
  9376. r.EncodeNil()
  9377. }
  9378. }
  9379. z.EncWriteArrayElem()
  9380. if yyq2[73] {
  9381. if x.Mtsptr == nil {
  9382. r.EncodeNil()
  9383. } else {
  9384. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9385. } // end block: if x.Mtsptr map == nil
  9386. } else {
  9387. r.EncodeNil()
  9388. }
  9389. z.EncWriteArrayElem()
  9390. if yyq2[74] {
  9391. if x.Mts == nil {
  9392. r.EncodeNil()
  9393. } else {
  9394. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9395. } // end block: if x.Mts map == nil
  9396. } else {
  9397. r.EncodeNil()
  9398. }
  9399. z.EncWriteArrayElem()
  9400. if yyq2[75] {
  9401. if x.Its == nil {
  9402. r.EncodeNil()
  9403. } else {
  9404. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9405. } // end block: if x.Its slice == nil
  9406. } else {
  9407. r.EncodeNil()
  9408. }
  9409. if yyn79 {
  9410. z.EncWriteArrayElem()
  9411. r.EncodeNil()
  9412. } else {
  9413. z.EncWriteArrayElem()
  9414. if yyq2[76] {
  9415. x.Nteststruc.CodecEncodeSelf(e)
  9416. } else {
  9417. r.EncodeNil()
  9418. }
  9419. }
  9420. z.EncWriteArrayEnd()
  9421. } else {
  9422. var yynn2 int
  9423. for _, b := range yyq2 {
  9424. if b {
  9425. yynn2++
  9426. }
  9427. }
  9428. z.EncWriteMapStart(yynn2)
  9429. yynn2 = 0
  9430. if yyq2[0] {
  9431. z.EncWriteMapElemKey()
  9432. if z.IsJSONHandle() {
  9433. z.WriteStr("\"S\"")
  9434. } else {
  9435. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9436. }
  9437. z.EncWriteMapElemValue()
  9438. if z.EncBasicHandle().StringToRaw {
  9439. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9440. } else {
  9441. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9442. }
  9443. }
  9444. if yyq2[1] {
  9445. z.EncWriteMapElemKey()
  9446. if z.IsJSONHandle() {
  9447. z.WriteStr("\"I64\"")
  9448. } else {
  9449. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9450. }
  9451. z.EncWriteMapElemValue()
  9452. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9453. }
  9454. if yyq2[2] {
  9455. z.EncWriteMapElemKey()
  9456. if z.IsJSONHandle() {
  9457. z.WriteStr("\"I32\"")
  9458. } else {
  9459. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9460. }
  9461. z.EncWriteMapElemValue()
  9462. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9463. }
  9464. if yyq2[3] {
  9465. z.EncWriteMapElemKey()
  9466. if z.IsJSONHandle() {
  9467. z.WriteStr("\"I16\"")
  9468. } else {
  9469. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9470. }
  9471. z.EncWriteMapElemValue()
  9472. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9473. }
  9474. if yyq2[4] {
  9475. z.EncWriteMapElemKey()
  9476. if z.IsJSONHandle() {
  9477. z.WriteStr("\"I8\"")
  9478. } else {
  9479. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9480. }
  9481. z.EncWriteMapElemValue()
  9482. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9483. }
  9484. if yyq2[5] {
  9485. z.EncWriteMapElemKey()
  9486. if z.IsJSONHandle() {
  9487. z.WriteStr("\"I64n\"")
  9488. } else {
  9489. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9490. }
  9491. z.EncWriteMapElemValue()
  9492. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9493. }
  9494. if yyq2[6] {
  9495. z.EncWriteMapElemKey()
  9496. if z.IsJSONHandle() {
  9497. z.WriteStr("\"I32n\"")
  9498. } else {
  9499. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9500. }
  9501. z.EncWriteMapElemValue()
  9502. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9503. }
  9504. if yyq2[7] {
  9505. z.EncWriteMapElemKey()
  9506. if z.IsJSONHandle() {
  9507. z.WriteStr("\"I16n\"")
  9508. } else {
  9509. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9510. }
  9511. z.EncWriteMapElemValue()
  9512. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9513. }
  9514. if yyq2[8] {
  9515. z.EncWriteMapElemKey()
  9516. if z.IsJSONHandle() {
  9517. z.WriteStr("\"I8n\"")
  9518. } else {
  9519. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9520. }
  9521. z.EncWriteMapElemValue()
  9522. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9523. }
  9524. if yyq2[9] {
  9525. z.EncWriteMapElemKey()
  9526. if z.IsJSONHandle() {
  9527. z.WriteStr("\"Ui64\"")
  9528. } else {
  9529. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9530. }
  9531. z.EncWriteMapElemValue()
  9532. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9533. }
  9534. if yyq2[10] {
  9535. z.EncWriteMapElemKey()
  9536. if z.IsJSONHandle() {
  9537. z.WriteStr("\"Ui32\"")
  9538. } else {
  9539. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9540. }
  9541. z.EncWriteMapElemValue()
  9542. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9543. }
  9544. if yyq2[11] {
  9545. z.EncWriteMapElemKey()
  9546. if z.IsJSONHandle() {
  9547. z.WriteStr("\"Ui16\"")
  9548. } else {
  9549. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9550. }
  9551. z.EncWriteMapElemValue()
  9552. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9553. }
  9554. if yyq2[12] {
  9555. z.EncWriteMapElemKey()
  9556. if z.IsJSONHandle() {
  9557. z.WriteStr("\"Ui8\"")
  9558. } else {
  9559. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9560. }
  9561. z.EncWriteMapElemValue()
  9562. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9563. }
  9564. if yyq2[13] {
  9565. z.EncWriteMapElemKey()
  9566. if z.IsJSONHandle() {
  9567. z.WriteStr("\"F64\"")
  9568. } else {
  9569. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  9570. }
  9571. z.EncWriteMapElemValue()
  9572. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9573. }
  9574. if yyq2[14] {
  9575. z.EncWriteMapElemKey()
  9576. if z.IsJSONHandle() {
  9577. z.WriteStr("\"F32\"")
  9578. } else {
  9579. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  9580. }
  9581. z.EncWriteMapElemValue()
  9582. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9583. }
  9584. if yyq2[15] {
  9585. z.EncWriteMapElemKey()
  9586. if z.IsJSONHandle() {
  9587. z.WriteStr("\"B\"")
  9588. } else {
  9589. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9590. }
  9591. z.EncWriteMapElemValue()
  9592. r.EncodeBool(bool(x.TestStrucCommon.B))
  9593. }
  9594. if yyq2[16] {
  9595. z.EncWriteMapElemKey()
  9596. if z.IsJSONHandle() {
  9597. z.WriteStr("\"By\"")
  9598. } else {
  9599. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  9600. }
  9601. z.EncWriteMapElemValue()
  9602. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9603. }
  9604. if yyq2[17] {
  9605. z.EncWriteMapElemKey()
  9606. if z.IsJSONHandle() {
  9607. z.WriteStr("\"Sslice\"")
  9608. } else {
  9609. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  9610. }
  9611. z.EncWriteMapElemValue()
  9612. if x.TestStrucCommon.Sslice == nil {
  9613. r.EncodeNil()
  9614. } else {
  9615. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9616. } // end block: if x.TestStrucCommon.Sslice slice == nil
  9617. }
  9618. if yyq2[18] {
  9619. z.EncWriteMapElemKey()
  9620. if z.IsJSONHandle() {
  9621. z.WriteStr("\"I64slice\"")
  9622. } else {
  9623. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  9624. }
  9625. z.EncWriteMapElemValue()
  9626. if x.TestStrucCommon.I64slice == nil {
  9627. r.EncodeNil()
  9628. } else {
  9629. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9630. } // end block: if x.TestStrucCommon.I64slice slice == nil
  9631. }
  9632. if yyq2[19] {
  9633. z.EncWriteMapElemKey()
  9634. if z.IsJSONHandle() {
  9635. z.WriteStr("\"I16slice\"")
  9636. } else {
  9637. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  9638. }
  9639. z.EncWriteMapElemValue()
  9640. if x.TestStrucCommon.I16slice == nil {
  9641. r.EncodeNil()
  9642. } else {
  9643. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9644. } // end block: if x.TestStrucCommon.I16slice slice == nil
  9645. }
  9646. if yyq2[20] {
  9647. z.EncWriteMapElemKey()
  9648. if z.IsJSONHandle() {
  9649. z.WriteStr("\"Ui64slice\"")
  9650. } else {
  9651. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  9652. }
  9653. z.EncWriteMapElemValue()
  9654. if x.TestStrucCommon.Ui64slice == nil {
  9655. r.EncodeNil()
  9656. } else {
  9657. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9658. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  9659. }
  9660. if yyq2[21] {
  9661. z.EncWriteMapElemKey()
  9662. if z.IsJSONHandle() {
  9663. z.WriteStr("\"Ui8slice\"")
  9664. } else {
  9665. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  9666. }
  9667. z.EncWriteMapElemValue()
  9668. if x.TestStrucCommon.Ui8slice == nil {
  9669. r.EncodeNil()
  9670. } else {
  9671. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9672. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  9673. }
  9674. if yyq2[22] {
  9675. z.EncWriteMapElemKey()
  9676. if z.IsJSONHandle() {
  9677. z.WriteStr("\"Bslice\"")
  9678. } else {
  9679. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  9680. }
  9681. z.EncWriteMapElemValue()
  9682. if x.TestStrucCommon.Bslice == nil {
  9683. r.EncodeNil()
  9684. } else {
  9685. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9686. } // end block: if x.TestStrucCommon.Bslice slice == nil
  9687. }
  9688. if yyq2[23] {
  9689. z.EncWriteMapElemKey()
  9690. if z.IsJSONHandle() {
  9691. z.WriteStr("\"Byslice\"")
  9692. } else {
  9693. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  9694. }
  9695. z.EncWriteMapElemValue()
  9696. if x.TestStrucCommon.Byslice == nil {
  9697. r.EncodeNil()
  9698. } else {
  9699. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9700. } // end block: if x.TestStrucCommon.Byslice slice == nil
  9701. }
  9702. if yyq2[24] {
  9703. z.EncWriteMapElemKey()
  9704. if z.IsJSONHandle() {
  9705. z.WriteStr("\"BytesSlice\"")
  9706. } else {
  9707. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  9708. }
  9709. z.EncWriteMapElemValue()
  9710. if x.TestStrucCommon.BytesSlice == nil {
  9711. r.EncodeNil()
  9712. } else {
  9713. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9714. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  9715. }
  9716. if yyq2[25] {
  9717. z.EncWriteMapElemKey()
  9718. if z.IsJSONHandle() {
  9719. z.WriteStr("\"Iptrslice\"")
  9720. } else {
  9721. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  9722. }
  9723. z.EncWriteMapElemValue()
  9724. if x.TestStrucCommon.Iptrslice == nil {
  9725. r.EncodeNil()
  9726. } else {
  9727. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9728. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  9729. }
  9730. if yyq2[26] {
  9731. z.EncWriteMapElemKey()
  9732. if z.IsJSONHandle() {
  9733. z.WriteStr("\"WrapSliceInt64\"")
  9734. } else {
  9735. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  9736. }
  9737. z.EncWriteMapElemValue()
  9738. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9739. }
  9740. if yyq2[27] {
  9741. z.EncWriteMapElemKey()
  9742. if z.IsJSONHandle() {
  9743. z.WriteStr("\"WrapSliceString\"")
  9744. } else {
  9745. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  9746. }
  9747. z.EncWriteMapElemValue()
  9748. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9749. }
  9750. if yyq2[28] {
  9751. z.EncWriteMapElemKey()
  9752. if z.IsJSONHandle() {
  9753. z.WriteStr("\"Msi64\"")
  9754. } else {
  9755. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  9756. }
  9757. z.EncWriteMapElemValue()
  9758. if x.TestStrucCommon.Msi64 == nil {
  9759. r.EncodeNil()
  9760. } else {
  9761. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9762. } // end block: if x.TestStrucCommon.Msi64 map == nil
  9763. }
  9764. if yyq2[29] {
  9765. z.EncWriteMapElemKey()
  9766. if z.IsJSONHandle() {
  9767. z.WriteStr("\"Msbytes\"")
  9768. } else {
  9769. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  9770. }
  9771. z.EncWriteMapElemValue()
  9772. if x.TestStrucCommon.Msbytes == nil {
  9773. r.EncodeNil()
  9774. } else {
  9775. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9776. } // end block: if x.TestStrucCommon.Msbytes map == nil
  9777. }
  9778. if yyq2[30] {
  9779. z.EncWriteMapElemKey()
  9780. if z.IsJSONHandle() {
  9781. z.WriteStr("\"Simplef\"")
  9782. } else {
  9783. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  9784. }
  9785. z.EncWriteMapElemValue()
  9786. yy194 := &x.TestStrucCommon.Simplef
  9787. yy194.CodecEncodeSelf(e)
  9788. }
  9789. if yyq2[31] {
  9790. z.EncWriteMapElemKey()
  9791. if z.IsJSONHandle() {
  9792. z.WriteStr("\"SstrUi64T\"")
  9793. } else {
  9794. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  9795. }
  9796. z.EncWriteMapElemValue()
  9797. if x.TestStrucCommon.SstrUi64T == nil {
  9798. r.EncodeNil()
  9799. } else {
  9800. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9801. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  9802. }
  9803. if yyq2[32] {
  9804. z.EncWriteMapElemKey()
  9805. if z.IsJSONHandle() {
  9806. z.WriteStr("\"MstrUi64T\"")
  9807. } else {
  9808. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  9809. }
  9810. z.EncWriteMapElemValue()
  9811. if x.TestStrucCommon.MstrUi64T == nil {
  9812. r.EncodeNil()
  9813. } else {
  9814. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9815. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  9816. }
  9817. if yyq2[33] {
  9818. z.EncWriteMapElemKey()
  9819. if z.IsJSONHandle() {
  9820. z.WriteStr("\"AS\"")
  9821. } else {
  9822. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  9823. }
  9824. z.EncWriteMapElemValue()
  9825. if z.EncBasicHandle().StringToRaw {
  9826. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9827. } else {
  9828. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9829. }
  9830. }
  9831. if yyq2[34] {
  9832. z.EncWriteMapElemKey()
  9833. if z.IsJSONHandle() {
  9834. z.WriteStr("\"AI64\"")
  9835. } else {
  9836. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  9837. }
  9838. z.EncWriteMapElemValue()
  9839. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9840. }
  9841. if yyq2[35] {
  9842. z.EncWriteMapElemKey()
  9843. if z.IsJSONHandle() {
  9844. z.WriteStr("\"AI16\"")
  9845. } else {
  9846. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  9847. }
  9848. z.EncWriteMapElemValue()
  9849. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9850. }
  9851. if yyq2[36] {
  9852. z.EncWriteMapElemKey()
  9853. if z.IsJSONHandle() {
  9854. z.WriteStr("\"AUi64\"")
  9855. } else {
  9856. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  9857. }
  9858. z.EncWriteMapElemValue()
  9859. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9860. }
  9861. if yyq2[37] {
  9862. z.EncWriteMapElemKey()
  9863. if z.IsJSONHandle() {
  9864. z.WriteStr("\"ASslice\"")
  9865. } else {
  9866. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  9867. }
  9868. z.EncWriteMapElemValue()
  9869. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9870. r.EncodeNil()
  9871. } else {
  9872. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9873. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9874. }
  9875. if yyq2[38] {
  9876. z.EncWriteMapElemKey()
  9877. if z.IsJSONHandle() {
  9878. z.WriteStr("\"AI64slice\"")
  9879. } else {
  9880. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  9881. }
  9882. z.EncWriteMapElemValue()
  9883. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9884. r.EncodeNil()
  9885. } else {
  9886. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9887. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9888. }
  9889. if yyq2[39] {
  9890. z.EncWriteMapElemKey()
  9891. if z.IsJSONHandle() {
  9892. z.WriteStr("\"AUi64slice\"")
  9893. } else {
  9894. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  9895. }
  9896. z.EncWriteMapElemValue()
  9897. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9898. r.EncodeNil()
  9899. } else {
  9900. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9901. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9902. }
  9903. if yyq2[40] {
  9904. z.EncWriteMapElemKey()
  9905. if z.IsJSONHandle() {
  9906. z.WriteStr("\"AF64slice\"")
  9907. } else {
  9908. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  9909. }
  9910. z.EncWriteMapElemValue()
  9911. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9912. r.EncodeNil()
  9913. } else {
  9914. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9915. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9916. }
  9917. if yyq2[41] {
  9918. z.EncWriteMapElemKey()
  9919. if z.IsJSONHandle() {
  9920. z.WriteStr("\"AF32slice\"")
  9921. } else {
  9922. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  9923. }
  9924. z.EncWriteMapElemValue()
  9925. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9926. r.EncodeNil()
  9927. } else {
  9928. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9929. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9930. }
  9931. if yyq2[42] {
  9932. z.EncWriteMapElemKey()
  9933. if z.IsJSONHandle() {
  9934. z.WriteStr("\"AMSU16\"")
  9935. } else {
  9936. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  9937. }
  9938. z.EncWriteMapElemValue()
  9939. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9940. r.EncodeNil()
  9941. } else {
  9942. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9943. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9944. }
  9945. if yyq2[43] {
  9946. z.EncWriteMapElemKey()
  9947. if z.IsJSONHandle() {
  9948. z.WriteStr("\"AI64arr0\"")
  9949. } else {
  9950. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  9951. }
  9952. z.EncWriteMapElemValue()
  9953. yy208 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9954. h.encArray0int64((*[0]int64)(yy208), e)
  9955. }
  9956. if yyq2[44] {
  9957. z.EncWriteMapElemKey()
  9958. if z.IsJSONHandle() {
  9959. z.WriteStr("\"AI64slice0\"")
  9960. } else {
  9961. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  9962. }
  9963. z.EncWriteMapElemValue()
  9964. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9965. r.EncodeNil()
  9966. } else {
  9967. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9968. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9969. }
  9970. if yyq2[45] {
  9971. z.EncWriteMapElemKey()
  9972. if z.IsJSONHandle() {
  9973. z.WriteStr("\"AUi64sliceN\"")
  9974. } else {
  9975. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  9976. }
  9977. z.EncWriteMapElemValue()
  9978. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9979. r.EncodeNil()
  9980. } else {
  9981. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9982. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9983. }
  9984. if yyq2[46] {
  9985. z.EncWriteMapElemKey()
  9986. if z.IsJSONHandle() {
  9987. z.WriteStr("\"AMSU16N\"")
  9988. } else {
  9989. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  9990. }
  9991. z.EncWriteMapElemValue()
  9992. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9993. r.EncodeNil()
  9994. } else {
  9995. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9996. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9997. }
  9998. if yyq2[47] {
  9999. z.EncWriteMapElemKey()
  10000. if z.IsJSONHandle() {
  10001. z.WriteStr("\"AMSU16E\"")
  10002. } else {
  10003. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10004. }
  10005. z.EncWriteMapElemValue()
  10006. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  10007. r.EncodeNil()
  10008. } else {
  10009. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  10010. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  10011. }
  10012. if yyq2[48] {
  10013. z.EncWriteMapElemKey()
  10014. if z.IsJSONHandle() {
  10015. z.WriteStr("\"NotAnon\"")
  10016. } else {
  10017. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10018. }
  10019. z.EncWriteMapElemValue()
  10020. yy214 := &x.TestStrucCommon.NotAnon
  10021. yy214.CodecEncodeSelf(e)
  10022. }
  10023. if yyq2[49] {
  10024. z.EncWriteMapElemKey()
  10025. if z.IsJSONHandle() {
  10026. z.WriteStr("\"Nmap\"")
  10027. } else {
  10028. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  10029. }
  10030. z.EncWriteMapElemValue()
  10031. if x.TestStrucCommon.Nmap == nil {
  10032. r.EncodeNil()
  10033. } else {
  10034. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  10035. } // end block: if x.TestStrucCommon.Nmap map == nil
  10036. }
  10037. if yyq2[50] {
  10038. z.EncWriteMapElemKey()
  10039. if z.IsJSONHandle() {
  10040. z.WriteStr("\"Nslice\"")
  10041. } else {
  10042. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  10043. }
  10044. z.EncWriteMapElemValue()
  10045. if x.TestStrucCommon.Nslice == nil {
  10046. r.EncodeNil()
  10047. } else {
  10048. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  10049. } // end block: if x.TestStrucCommon.Nslice slice == nil
  10050. }
  10051. if yyq2[51] {
  10052. z.EncWriteMapElemKey()
  10053. if z.IsJSONHandle() {
  10054. z.WriteStr("\"Nint64\"")
  10055. } else {
  10056. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  10057. }
  10058. z.EncWriteMapElemValue()
  10059. if yyn54 {
  10060. r.EncodeNil()
  10061. } else {
  10062. yy218 := *x.TestStrucCommon.Nint64
  10063. r.EncodeInt(int64(yy218))
  10064. }
  10065. }
  10066. if yyq2[52] {
  10067. z.EncWriteMapElemKey()
  10068. if z.IsJSONHandle() {
  10069. z.WriteStr("\"Chstr\"")
  10070. } else {
  10071. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  10072. }
  10073. z.EncWriteMapElemValue()
  10074. h.encChanstring((chan string)(x.Chstr), e)
  10075. }
  10076. if yyq2[53] {
  10077. z.EncWriteMapElemKey()
  10078. if z.IsJSONHandle() {
  10079. z.WriteStr("\"Mis\"")
  10080. } else {
  10081. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  10082. }
  10083. z.EncWriteMapElemValue()
  10084. if x.Mis == nil {
  10085. r.EncodeNil()
  10086. } else {
  10087. z.F.EncMapIntStringV(x.Mis, e)
  10088. } // end block: if x.Mis map == nil
  10089. }
  10090. if yyq2[54] {
  10091. z.EncWriteMapElemKey()
  10092. if z.IsJSONHandle() {
  10093. z.WriteStr("\"Mbu64\"")
  10094. } else {
  10095. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  10096. }
  10097. z.EncWriteMapElemValue()
  10098. if x.Mbu64 == nil {
  10099. r.EncodeNil()
  10100. } else {
  10101. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  10102. } // end block: if x.Mbu64 map == nil
  10103. }
  10104. if yyq2[55] {
  10105. z.EncWriteMapElemKey()
  10106. if z.IsJSONHandle() {
  10107. z.WriteStr("\"Miwu64s\"")
  10108. } else {
  10109. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  10110. }
  10111. z.EncWriteMapElemValue()
  10112. if x.Miwu64s == nil {
  10113. r.EncodeNil()
  10114. } else {
  10115. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  10116. } // end block: if x.Miwu64s map == nil
  10117. }
  10118. if yyq2[56] {
  10119. z.EncWriteMapElemKey()
  10120. if z.IsJSONHandle() {
  10121. z.WriteStr("\"Mfwss\"")
  10122. } else {
  10123. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  10124. }
  10125. z.EncWriteMapElemValue()
  10126. if x.Mfwss == nil {
  10127. r.EncodeNil()
  10128. } else {
  10129. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  10130. } // end block: if x.Mfwss map == nil
  10131. }
  10132. if yyq2[57] {
  10133. z.EncWriteMapElemKey()
  10134. if z.IsJSONHandle() {
  10135. z.WriteStr("\"Mf32wss\"")
  10136. } else {
  10137. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  10138. }
  10139. z.EncWriteMapElemValue()
  10140. if x.Mf32wss == nil {
  10141. r.EncodeNil()
  10142. } else {
  10143. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  10144. } // end block: if x.Mf32wss map == nil
  10145. }
  10146. if yyq2[58] {
  10147. z.EncWriteMapElemKey()
  10148. if z.IsJSONHandle() {
  10149. z.WriteStr("\"Mui2wss\"")
  10150. } else {
  10151. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  10152. }
  10153. z.EncWriteMapElemValue()
  10154. if x.Mui2wss == nil {
  10155. r.EncodeNil()
  10156. } else {
  10157. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  10158. } // end block: if x.Mui2wss map == nil
  10159. }
  10160. if yyq2[59] {
  10161. z.EncWriteMapElemKey()
  10162. if z.IsJSONHandle() {
  10163. z.WriteStr("\"Msu2wss\"")
  10164. } else {
  10165. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  10166. }
  10167. z.EncWriteMapElemValue()
  10168. if x.Msu2wss == nil {
  10169. r.EncodeNil()
  10170. } else {
  10171. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  10172. } // end block: if x.Msu2wss map == nil
  10173. }
  10174. if yyq2[60] {
  10175. z.EncWriteMapElemKey()
  10176. if z.IsJSONHandle() {
  10177. z.WriteStr("\"Ci64\"")
  10178. } else {
  10179. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  10180. }
  10181. z.EncWriteMapElemValue()
  10182. x.Ci64.CodecEncodeSelf(e)
  10183. }
  10184. if yyq2[61] {
  10185. z.EncWriteMapElemKey()
  10186. if z.IsJSONHandle() {
  10187. z.WriteStr("\"Swrapbytes\"")
  10188. } else {
  10189. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  10190. }
  10191. z.EncWriteMapElemValue()
  10192. if x.Swrapbytes == nil {
  10193. r.EncodeNil()
  10194. } else {
  10195. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  10196. } // end block: if x.Swrapbytes slice == nil
  10197. }
  10198. if yyq2[62] {
  10199. z.EncWriteMapElemKey()
  10200. if z.IsJSONHandle() {
  10201. z.WriteStr("\"Swrapuint8\"")
  10202. } else {
  10203. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  10204. }
  10205. z.EncWriteMapElemValue()
  10206. if x.Swrapuint8 == nil {
  10207. r.EncodeNil()
  10208. } else {
  10209. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  10210. } // end block: if x.Swrapuint8 slice == nil
  10211. }
  10212. if yyq2[63] {
  10213. z.EncWriteMapElemKey()
  10214. if z.IsJSONHandle() {
  10215. z.WriteStr("\"ArrStrUi64T\"")
  10216. } else {
  10217. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  10218. }
  10219. z.EncWriteMapElemValue()
  10220. yy231 := &x.ArrStrUi64T
  10221. h.encArray4stringUint64T((*[4]stringUint64T)(yy231), e)
  10222. }
  10223. if yyq2[64] {
  10224. z.EncWriteMapElemKey()
  10225. if z.IsJSONHandle() {
  10226. z.WriteStr("\"Ui64array\"")
  10227. } else {
  10228. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  10229. }
  10230. z.EncWriteMapElemValue()
  10231. yy233 := &x.Ui64array
  10232. h.encArray4uint64((*[4]uint64)(yy233), e)
  10233. }
  10234. if yyq2[65] {
  10235. z.EncWriteMapElemKey()
  10236. if z.IsJSONHandle() {
  10237. z.WriteStr("\"Ui64slicearray\"")
  10238. } else {
  10239. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  10240. }
  10241. z.EncWriteMapElemValue()
  10242. if x.Ui64slicearray == nil {
  10243. r.EncodeNil()
  10244. } else {
  10245. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  10246. } // end block: if x.Ui64slicearray slice == nil
  10247. }
  10248. if yyq2[66] {
  10249. z.EncWriteMapElemKey()
  10250. if z.IsJSONHandle() {
  10251. z.WriteStr("\"SintfAarray\"")
  10252. } else {
  10253. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  10254. }
  10255. z.EncWriteMapElemValue()
  10256. if x.SintfAarray == nil {
  10257. r.EncodeNil()
  10258. } else {
  10259. z.F.EncSliceIntfV(x.SintfAarray, e)
  10260. } // end block: if x.SintfAarray slice == nil
  10261. }
  10262. if yyq2[67] {
  10263. z.EncWriteMapElemKey()
  10264. if z.IsJSONHandle() {
  10265. z.WriteStr("\"MstrUi64TSelf\"")
  10266. } else {
  10267. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64TSelf`)
  10268. }
  10269. z.EncWriteMapElemValue()
  10270. if x.MstrUi64TSelf == nil {
  10271. r.EncodeNil()
  10272. } else {
  10273. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  10274. } // end block: if x.MstrUi64TSelf map == nil
  10275. }
  10276. if yyq2[68] {
  10277. z.EncWriteMapElemKey()
  10278. if z.IsJSONHandle() {
  10279. z.WriteStr("\"Islice\"")
  10280. } else {
  10281. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  10282. }
  10283. z.EncWriteMapElemValue()
  10284. if yyn71 {
  10285. r.EncodeNil()
  10286. } else {
  10287. if x.AnonInTestStrucIntf.Islice == nil {
  10288. r.EncodeNil()
  10289. } else {
  10290. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  10291. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  10292. }
  10293. }
  10294. if yyq2[69] {
  10295. z.EncWriteMapElemKey()
  10296. if z.IsJSONHandle() {
  10297. z.WriteStr("\"Ms\"")
  10298. } else {
  10299. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  10300. }
  10301. z.EncWriteMapElemValue()
  10302. if yyn72 {
  10303. r.EncodeNil()
  10304. } else {
  10305. if x.AnonInTestStrucIntf.Ms == nil {
  10306. r.EncodeNil()
  10307. } else {
  10308. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  10309. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  10310. }
  10311. }
  10312. if yyq2[70] {
  10313. z.EncWriteMapElemKey()
  10314. if z.IsJSONHandle() {
  10315. z.WriteStr("\"Nintf\"")
  10316. } else {
  10317. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  10318. }
  10319. z.EncWriteMapElemValue()
  10320. if yyn73 {
  10321. r.EncodeNil()
  10322. } else {
  10323. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  10324. }
  10325. }
  10326. if yyq2[71] {
  10327. z.EncWriteMapElemKey()
  10328. if z.IsJSONHandle() {
  10329. z.WriteStr("\"T\"")
  10330. } else {
  10331. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  10332. }
  10333. z.EncWriteMapElemValue()
  10334. if yyn74 {
  10335. r.EncodeNil()
  10336. } else {
  10337. if !z.EncBasicHandle().TimeNotBuiltin {
  10338. r.EncodeTime(x.AnonInTestStrucIntf.T)
  10339. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  10340. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt241)
  10341. } else if z.EncBinary() {
  10342. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  10343. } else if !z.EncBinary() && z.IsJSONHandle() {
  10344. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  10345. } else {
  10346. z.EncFallback(x.AnonInTestStrucIntf.T)
  10347. }
  10348. }
  10349. }
  10350. if yyq2[72] {
  10351. z.EncWriteMapElemKey()
  10352. if z.IsJSONHandle() {
  10353. z.WriteStr("\"Tptr\"")
  10354. } else {
  10355. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  10356. }
  10357. z.EncWriteMapElemValue()
  10358. if yyn75 {
  10359. r.EncodeNil()
  10360. } else {
  10361. yy242 := *x.AnonInTestStrucIntf.Tptr
  10362. if !z.EncBasicHandle().TimeNotBuiltin {
  10363. r.EncodeTime(yy242)
  10364. } else if yyxt243 := z.Extension(z.I2Rtid(yy242)); yyxt243 != nil {
  10365. z.EncExtension(yy242, yyxt243)
  10366. } else if z.EncBinary() {
  10367. z.EncBinaryMarshal(yy242)
  10368. } else if !z.EncBinary() && z.IsJSONHandle() {
  10369. z.EncJSONMarshal(yy242)
  10370. } else {
  10371. z.EncFallback(yy242)
  10372. }
  10373. }
  10374. }
  10375. if yyq2[73] {
  10376. z.EncWriteMapElemKey()
  10377. if z.IsJSONHandle() {
  10378. z.WriteStr("\"Mtsptr\"")
  10379. } else {
  10380. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  10381. }
  10382. z.EncWriteMapElemValue()
  10383. if x.Mtsptr == nil {
  10384. r.EncodeNil()
  10385. } else {
  10386. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  10387. } // end block: if x.Mtsptr map == nil
  10388. }
  10389. if yyq2[74] {
  10390. z.EncWriteMapElemKey()
  10391. if z.IsJSONHandle() {
  10392. z.WriteStr("\"Mts\"")
  10393. } else {
  10394. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  10395. }
  10396. z.EncWriteMapElemValue()
  10397. if x.Mts == nil {
  10398. r.EncodeNil()
  10399. } else {
  10400. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  10401. } // end block: if x.Mts map == nil
  10402. }
  10403. if yyq2[75] {
  10404. z.EncWriteMapElemKey()
  10405. if z.IsJSONHandle() {
  10406. z.WriteStr("\"Its\"")
  10407. } else {
  10408. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  10409. }
  10410. z.EncWriteMapElemValue()
  10411. if x.Its == nil {
  10412. r.EncodeNil()
  10413. } else {
  10414. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  10415. } // end block: if x.Its slice == nil
  10416. }
  10417. if yyq2[76] {
  10418. z.EncWriteMapElemKey()
  10419. if z.IsJSONHandle() {
  10420. z.WriteStr("\"Nteststruc\"")
  10421. } else {
  10422. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  10423. }
  10424. z.EncWriteMapElemValue()
  10425. if yyn79 {
  10426. r.EncodeNil()
  10427. } else {
  10428. x.Nteststruc.CodecEncodeSelf(e)
  10429. }
  10430. }
  10431. z.EncWriteMapEnd()
  10432. }
  10433. }
  10434. }
  10435. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  10436. var h codecSelfer19780
  10437. z, r := GenHelperDecoder(d)
  10438. _, _, _ = h, z, r
  10439. yyct2 := r.ContainerType()
  10440. if yyct2 == codecSelferValueTypeNil19780 {
  10441. *(x) = TestStrucFlex{}
  10442. } else if yyct2 == codecSelferValueTypeMap19780 {
  10443. yyl2 := z.DecReadMapStart()
  10444. if yyl2 == 0 {
  10445. } else {
  10446. x.codecDecodeSelfFromMap(yyl2, d)
  10447. }
  10448. z.DecReadMapEnd()
  10449. } else if yyct2 == codecSelferValueTypeArray19780 {
  10450. yyl2 := z.DecReadArrayStart()
  10451. if yyl2 != 0 {
  10452. x.codecDecodeSelfFromArray(yyl2, d)
  10453. }
  10454. z.DecReadArrayEnd()
  10455. } else {
  10456. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10457. }
  10458. }
  10459. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  10460. var h codecSelfer19780
  10461. z, r := GenHelperDecoder(d)
  10462. _, _, _ = h, z, r
  10463. var yyhl3 bool = l >= 0
  10464. for yyj3 := 0; ; yyj3++ {
  10465. if yyhl3 {
  10466. if yyj3 >= l {
  10467. break
  10468. }
  10469. } else {
  10470. if r.CheckBreak() {
  10471. break
  10472. }
  10473. }
  10474. z.DecReadMapElemKey()
  10475. yys3 := z.StringView(r.DecodeStringAsBytes())
  10476. z.DecReadMapElemValue()
  10477. switch yys3 {
  10478. case "S":
  10479. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10480. case "I64":
  10481. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10482. case "I32":
  10483. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10484. case "I16":
  10485. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10486. case "I8":
  10487. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10488. case "I64n":
  10489. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10490. case "I32n":
  10491. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10492. case "I16n":
  10493. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10494. case "I8n":
  10495. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10496. case "Ui64":
  10497. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10498. case "Ui32":
  10499. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10500. case "Ui16":
  10501. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10502. case "Ui8":
  10503. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10504. case "F64":
  10505. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10506. case "F32":
  10507. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10508. case "B":
  10509. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10510. case "By":
  10511. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10512. case "Sslice":
  10513. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10514. case "I64slice":
  10515. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10516. case "I16slice":
  10517. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10518. case "Ui64slice":
  10519. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10520. case "Ui8slice":
  10521. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10522. case "Bslice":
  10523. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10524. case "Byslice":
  10525. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10526. case "BytesSlice":
  10527. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10528. case "Iptrslice":
  10529. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10530. case "WrapSliceInt64":
  10531. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10532. case "WrapSliceString":
  10533. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  10534. case "Msi64":
  10535. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  10536. case "Msbytes":
  10537. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  10538. case "Simplef":
  10539. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  10540. case "SstrUi64T":
  10541. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  10542. case "MstrUi64T":
  10543. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  10544. case "AS":
  10545. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  10546. case "AI64":
  10547. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  10548. case "AI16":
  10549. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10550. case "AUi64":
  10551. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  10552. case "ASslice":
  10553. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10554. case "AI64slice":
  10555. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10556. case "AUi64slice":
  10557. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10558. case "AF64slice":
  10559. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10560. case "AF32slice":
  10561. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10562. case "AMSU16":
  10563. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10564. case "AI64arr0":
  10565. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10566. case "AI64slice0":
  10567. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  10568. case "AUi64sliceN":
  10569. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10570. case "AMSU16N":
  10571. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10572. case "AMSU16E":
  10573. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10574. case "NotAnon":
  10575. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10576. case "Nmap":
  10577. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10578. case "Nslice":
  10579. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10580. case "Nint64":
  10581. if r.TryNil() {
  10582. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10583. x.TestStrucCommon.Nint64 = nil
  10584. }
  10585. } else {
  10586. if x.TestStrucCommon.Nint64 == nil {
  10587. x.TestStrucCommon.Nint64 = new(int64)
  10588. }
  10589. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10590. }
  10591. case "Chstr":
  10592. h.decChanstring((*chan string)(&x.Chstr), d)
  10593. case "Mis":
  10594. z.F.DecMapIntStringX(&x.Mis, d)
  10595. case "Mbu64":
  10596. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10597. case "Miwu64s":
  10598. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10599. case "Mfwss":
  10600. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10601. case "Mf32wss":
  10602. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10603. case "Mui2wss":
  10604. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10605. case "Msu2wss":
  10606. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10607. case "Ci64":
  10608. x.Ci64.CodecDecodeSelf(d)
  10609. case "Swrapbytes":
  10610. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10611. case "Swrapuint8":
  10612. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10613. case "ArrStrUi64T":
  10614. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10615. case "Ui64array":
  10616. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10617. case "Ui64slicearray":
  10618. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10619. case "SintfAarray":
  10620. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10621. case "MstrUi64TSelf":
  10622. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  10623. case "Islice":
  10624. if r.TryNil() {
  10625. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10626. x.AnonInTestStrucIntf.Islice = nil
  10627. }
  10628. } else {
  10629. if x.AnonInTestStrucIntf == nil {
  10630. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10631. }
  10632. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  10633. }
  10634. case "Ms":
  10635. if r.TryNil() {
  10636. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10637. x.AnonInTestStrucIntf.Ms = nil
  10638. }
  10639. } else {
  10640. if x.AnonInTestStrucIntf == nil {
  10641. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10642. }
  10643. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  10644. }
  10645. case "Nintf":
  10646. if r.TryNil() {
  10647. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10648. x.AnonInTestStrucIntf.Nintf = nil
  10649. }
  10650. } else {
  10651. if x.AnonInTestStrucIntf == nil {
  10652. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10653. }
  10654. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  10655. }
  10656. case "T":
  10657. if r.TryNil() {
  10658. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10659. x.AnonInTestStrucIntf.T = time.Time{}
  10660. }
  10661. } else {
  10662. if x.AnonInTestStrucIntf == nil {
  10663. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10664. }
  10665. if !z.DecBasicHandle().TimeNotBuiltin {
  10666. x.AnonInTestStrucIntf.T = r.DecodeTime()
  10667. } else if yyxt121 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt121 != nil {
  10668. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt121)
  10669. } else if z.DecBinary() {
  10670. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  10671. } else if !z.DecBinary() && z.IsJSONHandle() {
  10672. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  10673. } else {
  10674. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  10675. }
  10676. }
  10677. case "Tptr":
  10678. if r.TryNil() {
  10679. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  10680. x.AnonInTestStrucIntf.Tptr = nil
  10681. }
  10682. } else {
  10683. if x.AnonInTestStrucIntf == nil {
  10684. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10685. }
  10686. if x.AnonInTestStrucIntf.Tptr == nil {
  10687. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  10688. }
  10689. if !z.DecBasicHandle().TimeNotBuiltin {
  10690. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  10691. } else if yyxt123 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt123 != nil {
  10692. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt123)
  10693. } else if z.DecBinary() {
  10694. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10695. } else if !z.DecBinary() && z.IsJSONHandle() {
  10696. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10697. } else {
  10698. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  10699. }
  10700. }
  10701. case "Mtsptr":
  10702. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  10703. case "Mts":
  10704. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  10705. case "Its":
  10706. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  10707. case "Nteststruc":
  10708. if r.TryNil() {
  10709. if x.Nteststruc != nil { // remove the if-true
  10710. x.Nteststruc = nil
  10711. }
  10712. } else {
  10713. if x.Nteststruc == nil {
  10714. x.Nteststruc = new(TestStrucFlex)
  10715. }
  10716. x.Nteststruc.CodecDecodeSelf(d)
  10717. }
  10718. default:
  10719. z.DecStructFieldNotFound(-1, yys3)
  10720. } // end switch yys3
  10721. } // end for yyj3
  10722. }
  10723. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  10724. var h codecSelfer19780
  10725. z, r := GenHelperDecoder(d)
  10726. _, _, _ = h, z, r
  10727. var yyj131 int
  10728. var yyb131 bool
  10729. var yyhl131 bool = l >= 0
  10730. yyj131++
  10731. if yyhl131 {
  10732. yyb131 = yyj131 > l
  10733. } else {
  10734. yyb131 = r.CheckBreak()
  10735. }
  10736. if yyb131 {
  10737. z.DecReadArrayEnd()
  10738. return
  10739. }
  10740. z.DecReadArrayElem()
  10741. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10742. yyj131++
  10743. if yyhl131 {
  10744. yyb131 = yyj131 > l
  10745. } else {
  10746. yyb131 = r.CheckBreak()
  10747. }
  10748. if yyb131 {
  10749. z.DecReadArrayEnd()
  10750. return
  10751. }
  10752. z.DecReadArrayElem()
  10753. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10754. yyj131++
  10755. if yyhl131 {
  10756. yyb131 = yyj131 > l
  10757. } else {
  10758. yyb131 = r.CheckBreak()
  10759. }
  10760. if yyb131 {
  10761. z.DecReadArrayEnd()
  10762. return
  10763. }
  10764. z.DecReadArrayElem()
  10765. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10766. yyj131++
  10767. if yyhl131 {
  10768. yyb131 = yyj131 > l
  10769. } else {
  10770. yyb131 = r.CheckBreak()
  10771. }
  10772. if yyb131 {
  10773. z.DecReadArrayEnd()
  10774. return
  10775. }
  10776. z.DecReadArrayElem()
  10777. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10778. yyj131++
  10779. if yyhl131 {
  10780. yyb131 = yyj131 > l
  10781. } else {
  10782. yyb131 = r.CheckBreak()
  10783. }
  10784. if yyb131 {
  10785. z.DecReadArrayEnd()
  10786. return
  10787. }
  10788. z.DecReadArrayElem()
  10789. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10790. yyj131++
  10791. if yyhl131 {
  10792. yyb131 = yyj131 > l
  10793. } else {
  10794. yyb131 = r.CheckBreak()
  10795. }
  10796. if yyb131 {
  10797. z.DecReadArrayEnd()
  10798. return
  10799. }
  10800. z.DecReadArrayElem()
  10801. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10802. yyj131++
  10803. if yyhl131 {
  10804. yyb131 = yyj131 > l
  10805. } else {
  10806. yyb131 = r.CheckBreak()
  10807. }
  10808. if yyb131 {
  10809. z.DecReadArrayEnd()
  10810. return
  10811. }
  10812. z.DecReadArrayElem()
  10813. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10814. yyj131++
  10815. if yyhl131 {
  10816. yyb131 = yyj131 > l
  10817. } else {
  10818. yyb131 = r.CheckBreak()
  10819. }
  10820. if yyb131 {
  10821. z.DecReadArrayEnd()
  10822. return
  10823. }
  10824. z.DecReadArrayElem()
  10825. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10826. yyj131++
  10827. if yyhl131 {
  10828. yyb131 = yyj131 > l
  10829. } else {
  10830. yyb131 = r.CheckBreak()
  10831. }
  10832. if yyb131 {
  10833. z.DecReadArrayEnd()
  10834. return
  10835. }
  10836. z.DecReadArrayElem()
  10837. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10838. yyj131++
  10839. if yyhl131 {
  10840. yyb131 = yyj131 > l
  10841. } else {
  10842. yyb131 = r.CheckBreak()
  10843. }
  10844. if yyb131 {
  10845. z.DecReadArrayEnd()
  10846. return
  10847. }
  10848. z.DecReadArrayElem()
  10849. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10850. yyj131++
  10851. if yyhl131 {
  10852. yyb131 = yyj131 > l
  10853. } else {
  10854. yyb131 = r.CheckBreak()
  10855. }
  10856. if yyb131 {
  10857. z.DecReadArrayEnd()
  10858. return
  10859. }
  10860. z.DecReadArrayElem()
  10861. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10862. yyj131++
  10863. if yyhl131 {
  10864. yyb131 = yyj131 > l
  10865. } else {
  10866. yyb131 = r.CheckBreak()
  10867. }
  10868. if yyb131 {
  10869. z.DecReadArrayEnd()
  10870. return
  10871. }
  10872. z.DecReadArrayElem()
  10873. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10874. yyj131++
  10875. if yyhl131 {
  10876. yyb131 = yyj131 > l
  10877. } else {
  10878. yyb131 = r.CheckBreak()
  10879. }
  10880. if yyb131 {
  10881. z.DecReadArrayEnd()
  10882. return
  10883. }
  10884. z.DecReadArrayElem()
  10885. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10886. yyj131++
  10887. if yyhl131 {
  10888. yyb131 = yyj131 > l
  10889. } else {
  10890. yyb131 = r.CheckBreak()
  10891. }
  10892. if yyb131 {
  10893. z.DecReadArrayEnd()
  10894. return
  10895. }
  10896. z.DecReadArrayElem()
  10897. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10898. yyj131++
  10899. if yyhl131 {
  10900. yyb131 = yyj131 > l
  10901. } else {
  10902. yyb131 = r.CheckBreak()
  10903. }
  10904. if yyb131 {
  10905. z.DecReadArrayEnd()
  10906. return
  10907. }
  10908. z.DecReadArrayElem()
  10909. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10910. yyj131++
  10911. if yyhl131 {
  10912. yyb131 = yyj131 > l
  10913. } else {
  10914. yyb131 = r.CheckBreak()
  10915. }
  10916. if yyb131 {
  10917. z.DecReadArrayEnd()
  10918. return
  10919. }
  10920. z.DecReadArrayElem()
  10921. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10922. yyj131++
  10923. if yyhl131 {
  10924. yyb131 = yyj131 > l
  10925. } else {
  10926. yyb131 = r.CheckBreak()
  10927. }
  10928. if yyb131 {
  10929. z.DecReadArrayEnd()
  10930. return
  10931. }
  10932. z.DecReadArrayElem()
  10933. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10934. yyj131++
  10935. if yyhl131 {
  10936. yyb131 = yyj131 > l
  10937. } else {
  10938. yyb131 = r.CheckBreak()
  10939. }
  10940. if yyb131 {
  10941. z.DecReadArrayEnd()
  10942. return
  10943. }
  10944. z.DecReadArrayElem()
  10945. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10946. yyj131++
  10947. if yyhl131 {
  10948. yyb131 = yyj131 > l
  10949. } else {
  10950. yyb131 = r.CheckBreak()
  10951. }
  10952. if yyb131 {
  10953. z.DecReadArrayEnd()
  10954. return
  10955. }
  10956. z.DecReadArrayElem()
  10957. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10958. yyj131++
  10959. if yyhl131 {
  10960. yyb131 = yyj131 > l
  10961. } else {
  10962. yyb131 = r.CheckBreak()
  10963. }
  10964. if yyb131 {
  10965. z.DecReadArrayEnd()
  10966. return
  10967. }
  10968. z.DecReadArrayElem()
  10969. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10970. yyj131++
  10971. if yyhl131 {
  10972. yyb131 = yyj131 > l
  10973. } else {
  10974. yyb131 = r.CheckBreak()
  10975. }
  10976. if yyb131 {
  10977. z.DecReadArrayEnd()
  10978. return
  10979. }
  10980. z.DecReadArrayElem()
  10981. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10982. yyj131++
  10983. if yyhl131 {
  10984. yyb131 = yyj131 > l
  10985. } else {
  10986. yyb131 = r.CheckBreak()
  10987. }
  10988. if yyb131 {
  10989. z.DecReadArrayEnd()
  10990. return
  10991. }
  10992. z.DecReadArrayElem()
  10993. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10994. yyj131++
  10995. if yyhl131 {
  10996. yyb131 = yyj131 > l
  10997. } else {
  10998. yyb131 = r.CheckBreak()
  10999. }
  11000. if yyb131 {
  11001. z.DecReadArrayEnd()
  11002. return
  11003. }
  11004. z.DecReadArrayElem()
  11005. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  11006. yyj131++
  11007. if yyhl131 {
  11008. yyb131 = yyj131 > l
  11009. } else {
  11010. yyb131 = r.CheckBreak()
  11011. }
  11012. if yyb131 {
  11013. z.DecReadArrayEnd()
  11014. return
  11015. }
  11016. z.DecReadArrayElem()
  11017. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  11018. yyj131++
  11019. if yyhl131 {
  11020. yyb131 = yyj131 > l
  11021. } else {
  11022. yyb131 = r.CheckBreak()
  11023. }
  11024. if yyb131 {
  11025. z.DecReadArrayEnd()
  11026. return
  11027. }
  11028. z.DecReadArrayElem()
  11029. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  11030. yyj131++
  11031. if yyhl131 {
  11032. yyb131 = yyj131 > l
  11033. } else {
  11034. yyb131 = r.CheckBreak()
  11035. }
  11036. if yyb131 {
  11037. z.DecReadArrayEnd()
  11038. return
  11039. }
  11040. z.DecReadArrayElem()
  11041. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  11042. yyj131++
  11043. if yyhl131 {
  11044. yyb131 = yyj131 > l
  11045. } else {
  11046. yyb131 = r.CheckBreak()
  11047. }
  11048. if yyb131 {
  11049. z.DecReadArrayEnd()
  11050. return
  11051. }
  11052. z.DecReadArrayElem()
  11053. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  11054. yyj131++
  11055. if yyhl131 {
  11056. yyb131 = yyj131 > l
  11057. } else {
  11058. yyb131 = r.CheckBreak()
  11059. }
  11060. if yyb131 {
  11061. z.DecReadArrayEnd()
  11062. return
  11063. }
  11064. z.DecReadArrayElem()
  11065. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  11066. yyj131++
  11067. if yyhl131 {
  11068. yyb131 = yyj131 > l
  11069. } else {
  11070. yyb131 = r.CheckBreak()
  11071. }
  11072. if yyb131 {
  11073. z.DecReadArrayEnd()
  11074. return
  11075. }
  11076. z.DecReadArrayElem()
  11077. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  11078. yyj131++
  11079. if yyhl131 {
  11080. yyb131 = yyj131 > l
  11081. } else {
  11082. yyb131 = r.CheckBreak()
  11083. }
  11084. if yyb131 {
  11085. z.DecReadArrayEnd()
  11086. return
  11087. }
  11088. z.DecReadArrayElem()
  11089. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  11090. yyj131++
  11091. if yyhl131 {
  11092. yyb131 = yyj131 > l
  11093. } else {
  11094. yyb131 = r.CheckBreak()
  11095. }
  11096. if yyb131 {
  11097. z.DecReadArrayEnd()
  11098. return
  11099. }
  11100. z.DecReadArrayElem()
  11101. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  11102. yyj131++
  11103. if yyhl131 {
  11104. yyb131 = yyj131 > l
  11105. } else {
  11106. yyb131 = r.CheckBreak()
  11107. }
  11108. if yyb131 {
  11109. z.DecReadArrayEnd()
  11110. return
  11111. }
  11112. z.DecReadArrayElem()
  11113. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  11114. yyj131++
  11115. if yyhl131 {
  11116. yyb131 = yyj131 > l
  11117. } else {
  11118. yyb131 = r.CheckBreak()
  11119. }
  11120. if yyb131 {
  11121. z.DecReadArrayEnd()
  11122. return
  11123. }
  11124. z.DecReadArrayElem()
  11125. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  11126. yyj131++
  11127. if yyhl131 {
  11128. yyb131 = yyj131 > l
  11129. } else {
  11130. yyb131 = r.CheckBreak()
  11131. }
  11132. if yyb131 {
  11133. z.DecReadArrayEnd()
  11134. return
  11135. }
  11136. z.DecReadArrayElem()
  11137. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  11138. yyj131++
  11139. if yyhl131 {
  11140. yyb131 = yyj131 > l
  11141. } else {
  11142. yyb131 = r.CheckBreak()
  11143. }
  11144. if yyb131 {
  11145. z.DecReadArrayEnd()
  11146. return
  11147. }
  11148. z.DecReadArrayElem()
  11149. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  11150. yyj131++
  11151. if yyhl131 {
  11152. yyb131 = yyj131 > l
  11153. } else {
  11154. yyb131 = r.CheckBreak()
  11155. }
  11156. if yyb131 {
  11157. z.DecReadArrayEnd()
  11158. return
  11159. }
  11160. z.DecReadArrayElem()
  11161. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11162. yyj131++
  11163. if yyhl131 {
  11164. yyb131 = yyj131 > l
  11165. } else {
  11166. yyb131 = r.CheckBreak()
  11167. }
  11168. if yyb131 {
  11169. z.DecReadArrayEnd()
  11170. return
  11171. }
  11172. z.DecReadArrayElem()
  11173. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  11174. yyj131++
  11175. if yyhl131 {
  11176. yyb131 = yyj131 > l
  11177. } else {
  11178. yyb131 = r.CheckBreak()
  11179. }
  11180. if yyb131 {
  11181. z.DecReadArrayEnd()
  11182. return
  11183. }
  11184. z.DecReadArrayElem()
  11185. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  11186. yyj131++
  11187. if yyhl131 {
  11188. yyb131 = yyj131 > l
  11189. } else {
  11190. yyb131 = r.CheckBreak()
  11191. }
  11192. if yyb131 {
  11193. z.DecReadArrayEnd()
  11194. return
  11195. }
  11196. z.DecReadArrayElem()
  11197. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  11198. yyj131++
  11199. if yyhl131 {
  11200. yyb131 = yyj131 > l
  11201. } else {
  11202. yyb131 = r.CheckBreak()
  11203. }
  11204. if yyb131 {
  11205. z.DecReadArrayEnd()
  11206. return
  11207. }
  11208. z.DecReadArrayElem()
  11209. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  11210. yyj131++
  11211. if yyhl131 {
  11212. yyb131 = yyj131 > l
  11213. } else {
  11214. yyb131 = r.CheckBreak()
  11215. }
  11216. if yyb131 {
  11217. z.DecReadArrayEnd()
  11218. return
  11219. }
  11220. z.DecReadArrayElem()
  11221. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  11222. yyj131++
  11223. if yyhl131 {
  11224. yyb131 = yyj131 > l
  11225. } else {
  11226. yyb131 = r.CheckBreak()
  11227. }
  11228. if yyb131 {
  11229. z.DecReadArrayEnd()
  11230. return
  11231. }
  11232. z.DecReadArrayElem()
  11233. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  11234. yyj131++
  11235. if yyhl131 {
  11236. yyb131 = yyj131 > l
  11237. } else {
  11238. yyb131 = r.CheckBreak()
  11239. }
  11240. if yyb131 {
  11241. z.DecReadArrayEnd()
  11242. return
  11243. }
  11244. z.DecReadArrayElem()
  11245. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  11246. yyj131++
  11247. if yyhl131 {
  11248. yyb131 = yyj131 > l
  11249. } else {
  11250. yyb131 = r.CheckBreak()
  11251. }
  11252. if yyb131 {
  11253. z.DecReadArrayEnd()
  11254. return
  11255. }
  11256. z.DecReadArrayElem()
  11257. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  11258. yyj131++
  11259. if yyhl131 {
  11260. yyb131 = yyj131 > l
  11261. } else {
  11262. yyb131 = r.CheckBreak()
  11263. }
  11264. if yyb131 {
  11265. z.DecReadArrayEnd()
  11266. return
  11267. }
  11268. z.DecReadArrayElem()
  11269. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  11270. yyj131++
  11271. if yyhl131 {
  11272. yyb131 = yyj131 > l
  11273. } else {
  11274. yyb131 = r.CheckBreak()
  11275. }
  11276. if yyb131 {
  11277. z.DecReadArrayEnd()
  11278. return
  11279. }
  11280. z.DecReadArrayElem()
  11281. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  11282. yyj131++
  11283. if yyhl131 {
  11284. yyb131 = yyj131 > l
  11285. } else {
  11286. yyb131 = r.CheckBreak()
  11287. }
  11288. if yyb131 {
  11289. z.DecReadArrayEnd()
  11290. return
  11291. }
  11292. z.DecReadArrayElem()
  11293. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  11294. yyj131++
  11295. if yyhl131 {
  11296. yyb131 = yyj131 > l
  11297. } else {
  11298. yyb131 = r.CheckBreak()
  11299. }
  11300. if yyb131 {
  11301. z.DecReadArrayEnd()
  11302. return
  11303. }
  11304. z.DecReadArrayElem()
  11305. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  11306. yyj131++
  11307. if yyhl131 {
  11308. yyb131 = yyj131 > l
  11309. } else {
  11310. yyb131 = r.CheckBreak()
  11311. }
  11312. if yyb131 {
  11313. z.DecReadArrayEnd()
  11314. return
  11315. }
  11316. z.DecReadArrayElem()
  11317. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  11318. yyj131++
  11319. if yyhl131 {
  11320. yyb131 = yyj131 > l
  11321. } else {
  11322. yyb131 = r.CheckBreak()
  11323. }
  11324. if yyb131 {
  11325. z.DecReadArrayEnd()
  11326. return
  11327. }
  11328. z.DecReadArrayElem()
  11329. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  11330. yyj131++
  11331. if yyhl131 {
  11332. yyb131 = yyj131 > l
  11333. } else {
  11334. yyb131 = r.CheckBreak()
  11335. }
  11336. if yyb131 {
  11337. z.DecReadArrayEnd()
  11338. return
  11339. }
  11340. z.DecReadArrayElem()
  11341. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  11342. yyj131++
  11343. if yyhl131 {
  11344. yyb131 = yyj131 > l
  11345. } else {
  11346. yyb131 = r.CheckBreak()
  11347. }
  11348. if yyb131 {
  11349. z.DecReadArrayEnd()
  11350. return
  11351. }
  11352. z.DecReadArrayElem()
  11353. if r.TryNil() {
  11354. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  11355. x.TestStrucCommon.Nint64 = nil
  11356. }
  11357. } else {
  11358. if x.TestStrucCommon.Nint64 == nil {
  11359. x.TestStrucCommon.Nint64 = new(int64)
  11360. }
  11361. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  11362. }
  11363. yyj131++
  11364. if yyhl131 {
  11365. yyb131 = yyj131 > l
  11366. } else {
  11367. yyb131 = r.CheckBreak()
  11368. }
  11369. if yyb131 {
  11370. z.DecReadArrayEnd()
  11371. return
  11372. }
  11373. z.DecReadArrayElem()
  11374. h.decChanstring((*chan string)(&x.Chstr), d)
  11375. yyj131++
  11376. if yyhl131 {
  11377. yyb131 = yyj131 > l
  11378. } else {
  11379. yyb131 = r.CheckBreak()
  11380. }
  11381. if yyb131 {
  11382. z.DecReadArrayEnd()
  11383. return
  11384. }
  11385. z.DecReadArrayElem()
  11386. z.F.DecMapIntStringX(&x.Mis, d)
  11387. yyj131++
  11388. if yyhl131 {
  11389. yyb131 = yyj131 > l
  11390. } else {
  11391. yyb131 = r.CheckBreak()
  11392. }
  11393. if yyb131 {
  11394. z.DecReadArrayEnd()
  11395. return
  11396. }
  11397. z.DecReadArrayElem()
  11398. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  11399. yyj131++
  11400. if yyhl131 {
  11401. yyb131 = yyj131 > l
  11402. } else {
  11403. yyb131 = r.CheckBreak()
  11404. }
  11405. if yyb131 {
  11406. z.DecReadArrayEnd()
  11407. return
  11408. }
  11409. z.DecReadArrayElem()
  11410. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  11411. yyj131++
  11412. if yyhl131 {
  11413. yyb131 = yyj131 > l
  11414. } else {
  11415. yyb131 = r.CheckBreak()
  11416. }
  11417. if yyb131 {
  11418. z.DecReadArrayEnd()
  11419. return
  11420. }
  11421. z.DecReadArrayElem()
  11422. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  11423. yyj131++
  11424. if yyhl131 {
  11425. yyb131 = yyj131 > l
  11426. } else {
  11427. yyb131 = r.CheckBreak()
  11428. }
  11429. if yyb131 {
  11430. z.DecReadArrayEnd()
  11431. return
  11432. }
  11433. z.DecReadArrayElem()
  11434. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  11435. yyj131++
  11436. if yyhl131 {
  11437. yyb131 = yyj131 > l
  11438. } else {
  11439. yyb131 = r.CheckBreak()
  11440. }
  11441. if yyb131 {
  11442. z.DecReadArrayEnd()
  11443. return
  11444. }
  11445. z.DecReadArrayElem()
  11446. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  11447. yyj131++
  11448. if yyhl131 {
  11449. yyb131 = yyj131 > l
  11450. } else {
  11451. yyb131 = r.CheckBreak()
  11452. }
  11453. if yyb131 {
  11454. z.DecReadArrayEnd()
  11455. return
  11456. }
  11457. z.DecReadArrayElem()
  11458. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  11459. yyj131++
  11460. if yyhl131 {
  11461. yyb131 = yyj131 > l
  11462. } else {
  11463. yyb131 = r.CheckBreak()
  11464. }
  11465. if yyb131 {
  11466. z.DecReadArrayEnd()
  11467. return
  11468. }
  11469. z.DecReadArrayElem()
  11470. x.Ci64.CodecDecodeSelf(d)
  11471. yyj131++
  11472. if yyhl131 {
  11473. yyb131 = yyj131 > l
  11474. } else {
  11475. yyb131 = r.CheckBreak()
  11476. }
  11477. if yyb131 {
  11478. z.DecReadArrayEnd()
  11479. return
  11480. }
  11481. z.DecReadArrayElem()
  11482. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  11483. yyj131++
  11484. if yyhl131 {
  11485. yyb131 = yyj131 > l
  11486. } else {
  11487. yyb131 = r.CheckBreak()
  11488. }
  11489. if yyb131 {
  11490. z.DecReadArrayEnd()
  11491. return
  11492. }
  11493. z.DecReadArrayElem()
  11494. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  11495. yyj131++
  11496. if yyhl131 {
  11497. yyb131 = yyj131 > l
  11498. } else {
  11499. yyb131 = r.CheckBreak()
  11500. }
  11501. if yyb131 {
  11502. z.DecReadArrayEnd()
  11503. return
  11504. }
  11505. z.DecReadArrayElem()
  11506. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  11507. yyj131++
  11508. if yyhl131 {
  11509. yyb131 = yyj131 > l
  11510. } else {
  11511. yyb131 = r.CheckBreak()
  11512. }
  11513. if yyb131 {
  11514. z.DecReadArrayEnd()
  11515. return
  11516. }
  11517. z.DecReadArrayElem()
  11518. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  11519. yyj131++
  11520. if yyhl131 {
  11521. yyb131 = yyj131 > l
  11522. } else {
  11523. yyb131 = r.CheckBreak()
  11524. }
  11525. if yyb131 {
  11526. z.DecReadArrayEnd()
  11527. return
  11528. }
  11529. z.DecReadArrayElem()
  11530. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  11531. yyj131++
  11532. if yyhl131 {
  11533. yyb131 = yyj131 > l
  11534. } else {
  11535. yyb131 = r.CheckBreak()
  11536. }
  11537. if yyb131 {
  11538. z.DecReadArrayEnd()
  11539. return
  11540. }
  11541. z.DecReadArrayElem()
  11542. z.F.DecSliceIntfX(&x.SintfAarray, d)
  11543. yyj131++
  11544. if yyhl131 {
  11545. yyb131 = yyj131 > l
  11546. } else {
  11547. yyb131 = r.CheckBreak()
  11548. }
  11549. if yyb131 {
  11550. z.DecReadArrayEnd()
  11551. return
  11552. }
  11553. z.DecReadArrayElem()
  11554. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  11555. yyj131++
  11556. if yyhl131 {
  11557. yyb131 = yyj131 > l
  11558. } else {
  11559. yyb131 = r.CheckBreak()
  11560. }
  11561. if yyb131 {
  11562. z.DecReadArrayEnd()
  11563. return
  11564. }
  11565. z.DecReadArrayElem()
  11566. if r.TryNil() {
  11567. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11568. x.AnonInTestStrucIntf.Islice = nil
  11569. }
  11570. } else {
  11571. if x.AnonInTestStrucIntf == nil {
  11572. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11573. }
  11574. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  11575. }
  11576. yyj131++
  11577. if yyhl131 {
  11578. yyb131 = yyj131 > l
  11579. } else {
  11580. yyb131 = r.CheckBreak()
  11581. }
  11582. if yyb131 {
  11583. z.DecReadArrayEnd()
  11584. return
  11585. }
  11586. z.DecReadArrayElem()
  11587. if r.TryNil() {
  11588. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11589. x.AnonInTestStrucIntf.Ms = nil
  11590. }
  11591. } else {
  11592. if x.AnonInTestStrucIntf == nil {
  11593. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11594. }
  11595. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  11596. }
  11597. yyj131++
  11598. if yyhl131 {
  11599. yyb131 = yyj131 > l
  11600. } else {
  11601. yyb131 = r.CheckBreak()
  11602. }
  11603. if yyb131 {
  11604. z.DecReadArrayEnd()
  11605. return
  11606. }
  11607. z.DecReadArrayElem()
  11608. if r.TryNil() {
  11609. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11610. x.AnonInTestStrucIntf.Nintf = nil
  11611. }
  11612. } else {
  11613. if x.AnonInTestStrucIntf == nil {
  11614. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11615. }
  11616. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  11617. }
  11618. yyj131++
  11619. if yyhl131 {
  11620. yyb131 = yyj131 > l
  11621. } else {
  11622. yyb131 = r.CheckBreak()
  11623. }
  11624. if yyb131 {
  11625. z.DecReadArrayEnd()
  11626. return
  11627. }
  11628. z.DecReadArrayElem()
  11629. if r.TryNil() {
  11630. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11631. x.AnonInTestStrucIntf.T = time.Time{}
  11632. }
  11633. } else {
  11634. if x.AnonInTestStrucIntf == nil {
  11635. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11636. }
  11637. if !z.DecBasicHandle().TimeNotBuiltin {
  11638. x.AnonInTestStrucIntf.T = r.DecodeTime()
  11639. } else if yyxt249 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt249 != nil {
  11640. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt249)
  11641. } else if z.DecBinary() {
  11642. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  11643. } else if !z.DecBinary() && z.IsJSONHandle() {
  11644. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  11645. } else {
  11646. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  11647. }
  11648. }
  11649. yyj131++
  11650. if yyhl131 {
  11651. yyb131 = yyj131 > l
  11652. } else {
  11653. yyb131 = r.CheckBreak()
  11654. }
  11655. if yyb131 {
  11656. z.DecReadArrayEnd()
  11657. return
  11658. }
  11659. z.DecReadArrayElem()
  11660. if r.TryNil() {
  11661. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  11662. x.AnonInTestStrucIntf.Tptr = nil
  11663. }
  11664. } else {
  11665. if x.AnonInTestStrucIntf == nil {
  11666. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11667. }
  11668. if x.AnonInTestStrucIntf.Tptr == nil {
  11669. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  11670. }
  11671. if !z.DecBasicHandle().TimeNotBuiltin {
  11672. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  11673. } else if yyxt251 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt251 != nil {
  11674. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt251)
  11675. } else if z.DecBinary() {
  11676. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11677. } else if !z.DecBinary() && z.IsJSONHandle() {
  11678. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11679. } else {
  11680. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  11681. }
  11682. }
  11683. yyj131++
  11684. if yyhl131 {
  11685. yyb131 = yyj131 > l
  11686. } else {
  11687. yyb131 = r.CheckBreak()
  11688. }
  11689. if yyb131 {
  11690. z.DecReadArrayEnd()
  11691. return
  11692. }
  11693. z.DecReadArrayElem()
  11694. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  11695. yyj131++
  11696. if yyhl131 {
  11697. yyb131 = yyj131 > l
  11698. } else {
  11699. yyb131 = r.CheckBreak()
  11700. }
  11701. if yyb131 {
  11702. z.DecReadArrayEnd()
  11703. return
  11704. }
  11705. z.DecReadArrayElem()
  11706. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  11707. yyj131++
  11708. if yyhl131 {
  11709. yyb131 = yyj131 > l
  11710. } else {
  11711. yyb131 = r.CheckBreak()
  11712. }
  11713. if yyb131 {
  11714. z.DecReadArrayEnd()
  11715. return
  11716. }
  11717. z.DecReadArrayElem()
  11718. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  11719. yyj131++
  11720. if yyhl131 {
  11721. yyb131 = yyj131 > l
  11722. } else {
  11723. yyb131 = r.CheckBreak()
  11724. }
  11725. if yyb131 {
  11726. z.DecReadArrayEnd()
  11727. return
  11728. }
  11729. z.DecReadArrayElem()
  11730. if r.TryNil() {
  11731. if x.Nteststruc != nil { // remove the if-true
  11732. x.Nteststruc = nil
  11733. }
  11734. } else {
  11735. if x.Nteststruc == nil {
  11736. x.Nteststruc = new(TestStrucFlex)
  11737. }
  11738. x.Nteststruc.CodecDecodeSelf(d)
  11739. }
  11740. for {
  11741. yyj131++
  11742. if yyhl131 {
  11743. yyb131 = yyj131 > l
  11744. } else {
  11745. yyb131 = r.CheckBreak()
  11746. }
  11747. if yyb131 {
  11748. break
  11749. }
  11750. z.DecReadArrayElem()
  11751. z.DecStructFieldNotFound(yyj131-1, "")
  11752. }
  11753. }
  11754. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  11755. var h codecSelfer19780
  11756. z, r := GenHelperEncoder(e)
  11757. _, _, _ = h, z, r
  11758. if v == nil {
  11759. r.EncodeNil()
  11760. return
  11761. }
  11762. z.EncWriteArrayStart(len(v))
  11763. for _, yyv1 := range v {
  11764. z.EncWriteArrayElem()
  11765. r.EncodeUint(uint64(yyv1))
  11766. }
  11767. z.EncWriteArrayEnd()
  11768. }
  11769. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  11770. var h codecSelfer19780
  11771. z, r := GenHelperDecoder(d)
  11772. _, _, _ = h, z, r
  11773. yyv1 := *v
  11774. yyh1, yyl1 := z.DecSliceHelperStart()
  11775. var yyc1 bool
  11776. _ = yyc1
  11777. if yyh1.IsNil {
  11778. if yyv1 != nil {
  11779. yyv1 = nil
  11780. yyc1 = true
  11781. }
  11782. } else if yyl1 == 0 {
  11783. if yyv1 == nil {
  11784. yyv1 = []uint64{}
  11785. yyc1 = true
  11786. } else if len(yyv1) != 0 {
  11787. yyv1 = yyv1[:0]
  11788. yyc1 = true
  11789. }
  11790. } else {
  11791. yyhl1 := yyl1 > 0
  11792. var yyrl1 int
  11793. _ = yyrl1
  11794. if yyhl1 {
  11795. if yyl1 > cap(yyv1) {
  11796. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11797. if yyrl1 <= cap(yyv1) {
  11798. yyv1 = yyv1[:yyrl1]
  11799. } else {
  11800. yyv1 = make([]uint64, yyrl1)
  11801. }
  11802. yyc1 = true
  11803. } else if yyl1 != len(yyv1) {
  11804. yyv1 = yyv1[:yyl1]
  11805. yyc1 = true
  11806. }
  11807. }
  11808. var yyj1 int
  11809. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11810. if yyj1 == 0 && yyv1 == nil {
  11811. if yyhl1 {
  11812. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11813. } else {
  11814. yyrl1 = 8
  11815. }
  11816. yyv1 = make([]uint64, yyrl1)
  11817. yyc1 = true
  11818. }
  11819. yyh1.ElemContainerState(yyj1)
  11820. var yydb1 bool
  11821. if yyj1 >= len(yyv1) {
  11822. yyv1 = append(yyv1, 0)
  11823. yyc1 = true
  11824. }
  11825. if yydb1 {
  11826. z.DecSwallow()
  11827. } else {
  11828. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  11829. }
  11830. }
  11831. if yyj1 < len(yyv1) {
  11832. yyv1 = yyv1[:yyj1]
  11833. yyc1 = true
  11834. } else if yyj1 == 0 && yyv1 == nil {
  11835. yyv1 = make([]uint64, 0)
  11836. yyc1 = true
  11837. }
  11838. }
  11839. yyh1.End()
  11840. if yyc1 {
  11841. *v = yyv1
  11842. }
  11843. }
  11844. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  11845. var h codecSelfer19780
  11846. z, r := GenHelperEncoder(e)
  11847. _, _, _ = h, z, r
  11848. if v == nil {
  11849. r.EncodeNil()
  11850. return
  11851. }
  11852. z.EncWriteArrayStart(len(v))
  11853. for _, yyv1 := range v {
  11854. z.EncWriteArrayElem()
  11855. if z.EncBasicHandle().StringToRaw {
  11856. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  11857. } else {
  11858. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  11859. }
  11860. }
  11861. z.EncWriteArrayEnd()
  11862. }
  11863. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  11864. var h codecSelfer19780
  11865. z, r := GenHelperDecoder(d)
  11866. _, _, _ = h, z, r
  11867. yyv1 := *v
  11868. yyh1, yyl1 := z.DecSliceHelperStart()
  11869. var yyc1 bool
  11870. _ = yyc1
  11871. if yyh1.IsNil {
  11872. if yyv1 != nil {
  11873. yyv1 = nil
  11874. yyc1 = true
  11875. }
  11876. } else if yyl1 == 0 {
  11877. if yyv1 == nil {
  11878. yyv1 = []string{}
  11879. yyc1 = true
  11880. } else if len(yyv1) != 0 {
  11881. yyv1 = yyv1[:0]
  11882. yyc1 = true
  11883. }
  11884. } else {
  11885. yyhl1 := yyl1 > 0
  11886. var yyrl1 int
  11887. _ = yyrl1
  11888. if yyhl1 {
  11889. if yyl1 > cap(yyv1) {
  11890. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11891. if yyrl1 <= cap(yyv1) {
  11892. yyv1 = yyv1[:yyrl1]
  11893. } else {
  11894. yyv1 = make([]string, yyrl1)
  11895. }
  11896. yyc1 = true
  11897. } else if yyl1 != len(yyv1) {
  11898. yyv1 = yyv1[:yyl1]
  11899. yyc1 = true
  11900. }
  11901. }
  11902. var yyj1 int
  11903. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11904. if yyj1 == 0 && yyv1 == nil {
  11905. if yyhl1 {
  11906. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11907. } else {
  11908. yyrl1 = 8
  11909. }
  11910. yyv1 = make([]string, yyrl1)
  11911. yyc1 = true
  11912. }
  11913. yyh1.ElemContainerState(yyj1)
  11914. var yydb1 bool
  11915. if yyj1 >= len(yyv1) {
  11916. yyv1 = append(yyv1, "")
  11917. yyc1 = true
  11918. }
  11919. if yydb1 {
  11920. z.DecSwallow()
  11921. } else {
  11922. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  11923. }
  11924. }
  11925. if yyj1 < len(yyv1) {
  11926. yyv1 = yyv1[:yyj1]
  11927. yyc1 = true
  11928. } else if yyj1 == 0 && yyv1 == nil {
  11929. yyv1 = make([]string, 0)
  11930. yyc1 = true
  11931. }
  11932. }
  11933. yyh1.End()
  11934. if yyc1 {
  11935. *v = yyv1
  11936. }
  11937. }
  11938. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  11939. var h codecSelfer19780
  11940. z, r := GenHelperEncoder(e)
  11941. _, _, _ = h, z, r
  11942. if v == nil {
  11943. r.EncodeNil()
  11944. return
  11945. }
  11946. z.EncWriteArrayStart(len(v))
  11947. for _, yyv1 := range v {
  11948. z.EncWriteArrayElem()
  11949. yyv1.CodecEncodeSelf(e)
  11950. }
  11951. z.EncWriteArrayEnd()
  11952. }
  11953. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  11954. var h codecSelfer19780
  11955. z, r := GenHelperDecoder(d)
  11956. _, _, _ = h, z, r
  11957. yyv1 := *v
  11958. yyh1, yyl1 := z.DecSliceHelperStart()
  11959. var yyc1 bool
  11960. _ = yyc1
  11961. if yyh1.IsNil {
  11962. if yyv1 != nil {
  11963. yyv1 = nil
  11964. yyc1 = true
  11965. }
  11966. } else if yyl1 == 0 {
  11967. if yyv1 == nil {
  11968. yyv1 = []wrapUint64{}
  11969. yyc1 = true
  11970. } else if len(yyv1) != 0 {
  11971. yyv1 = yyv1[:0]
  11972. yyc1 = true
  11973. }
  11974. } else {
  11975. yyhl1 := yyl1 > 0
  11976. var yyrl1 int
  11977. _ = yyrl1
  11978. if yyhl1 {
  11979. if yyl1 > cap(yyv1) {
  11980. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11981. if yyrl1 <= cap(yyv1) {
  11982. yyv1 = yyv1[:yyrl1]
  11983. } else {
  11984. yyv1 = make([]wrapUint64, yyrl1)
  11985. }
  11986. yyc1 = true
  11987. } else if yyl1 != len(yyv1) {
  11988. yyv1 = yyv1[:yyl1]
  11989. yyc1 = true
  11990. }
  11991. }
  11992. var yyj1 int
  11993. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11994. if yyj1 == 0 && yyv1 == nil {
  11995. if yyhl1 {
  11996. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11997. } else {
  11998. yyrl1 = 8
  11999. }
  12000. yyv1 = make([]wrapUint64, yyrl1)
  12001. yyc1 = true
  12002. }
  12003. yyh1.ElemContainerState(yyj1)
  12004. var yydb1 bool
  12005. if yyj1 >= len(yyv1) {
  12006. yyv1 = append(yyv1, 0)
  12007. yyc1 = true
  12008. }
  12009. if yydb1 {
  12010. z.DecSwallow()
  12011. } else {
  12012. yyv1[yyj1].CodecDecodeSelf(d)
  12013. }
  12014. }
  12015. if yyj1 < len(yyv1) {
  12016. yyv1 = yyv1[:yyj1]
  12017. yyc1 = true
  12018. } else if yyj1 == 0 && yyv1 == nil {
  12019. yyv1 = make([]wrapUint64, 0)
  12020. yyc1 = true
  12021. }
  12022. }
  12023. yyh1.End()
  12024. if yyc1 {
  12025. *v = yyv1
  12026. }
  12027. }
  12028. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  12029. var h codecSelfer19780
  12030. z, r := GenHelperEncoder(e)
  12031. _, _, _ = h, z, r
  12032. if v == nil {
  12033. r.EncodeNil()
  12034. return
  12035. }
  12036. z.EncWriteArrayStart(len(v))
  12037. for _, yyv1 := range v {
  12038. z.EncWriteArrayElem()
  12039. yyv1.CodecEncodeSelf(e)
  12040. }
  12041. z.EncWriteArrayEnd()
  12042. }
  12043. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  12044. var h codecSelfer19780
  12045. z, r := GenHelperDecoder(d)
  12046. _, _, _ = h, z, r
  12047. yyv1 := *v
  12048. yyh1, yyl1 := z.DecSliceHelperStart()
  12049. var yyc1 bool
  12050. _ = yyc1
  12051. if yyh1.IsNil {
  12052. if yyv1 != nil {
  12053. yyv1 = nil
  12054. yyc1 = true
  12055. }
  12056. } else if yyl1 == 0 {
  12057. if yyv1 == nil {
  12058. yyv1 = []wrapString{}
  12059. yyc1 = true
  12060. } else if len(yyv1) != 0 {
  12061. yyv1 = yyv1[:0]
  12062. yyc1 = true
  12063. }
  12064. } else {
  12065. yyhl1 := yyl1 > 0
  12066. var yyrl1 int
  12067. _ = yyrl1
  12068. if yyhl1 {
  12069. if yyl1 > cap(yyv1) {
  12070. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12071. if yyrl1 <= cap(yyv1) {
  12072. yyv1 = yyv1[:yyrl1]
  12073. } else {
  12074. yyv1 = make([]wrapString, yyrl1)
  12075. }
  12076. yyc1 = true
  12077. } else if yyl1 != len(yyv1) {
  12078. yyv1 = yyv1[:yyl1]
  12079. yyc1 = true
  12080. }
  12081. }
  12082. var yyj1 int
  12083. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12084. if yyj1 == 0 && yyv1 == nil {
  12085. if yyhl1 {
  12086. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12087. } else {
  12088. yyrl1 = 8
  12089. }
  12090. yyv1 = make([]wrapString, yyrl1)
  12091. yyc1 = true
  12092. }
  12093. yyh1.ElemContainerState(yyj1)
  12094. var yydb1 bool
  12095. if yyj1 >= len(yyv1) {
  12096. yyv1 = append(yyv1, "")
  12097. yyc1 = true
  12098. }
  12099. if yydb1 {
  12100. z.DecSwallow()
  12101. } else {
  12102. yyv1[yyj1].CodecDecodeSelf(d)
  12103. }
  12104. }
  12105. if yyj1 < len(yyv1) {
  12106. yyv1 = yyv1[:yyj1]
  12107. yyc1 = true
  12108. } else if yyj1 == 0 && yyv1 == nil {
  12109. yyv1 = make([]wrapString, 0)
  12110. yyc1 = true
  12111. }
  12112. }
  12113. yyh1.End()
  12114. if yyc1 {
  12115. *v = yyv1
  12116. }
  12117. }
  12118. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  12119. var h codecSelfer19780
  12120. z, r := GenHelperEncoder(e)
  12121. _, _, _ = h, z, r
  12122. if v == nil {
  12123. r.EncodeNil()
  12124. return
  12125. }
  12126. z.EncWriteMapStart(len(v))
  12127. for yyk1, yyv1 := range v {
  12128. z.EncWriteMapElemKey()
  12129. if z.EncBasicHandle().StringToRaw {
  12130. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12131. } else {
  12132. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12133. }
  12134. z.EncWriteMapElemValue()
  12135. r.EncodeUint(uint64(yyv1))
  12136. }
  12137. z.EncWriteMapEnd()
  12138. }
  12139. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  12140. var h codecSelfer19780
  12141. z, r := GenHelperDecoder(d)
  12142. _, _, _ = h, z, r
  12143. yyv1 := *v
  12144. yyl1 := z.DecReadMapStart()
  12145. if yyl1 == codecSelferDecContainerLenNil19780 {
  12146. *v = nil
  12147. } else {
  12148. if yyv1 == nil {
  12149. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 18)
  12150. yyv1 = make(map[string]uint16, yyrl1)
  12151. *v = yyv1
  12152. }
  12153. var yymk1 string
  12154. var yymv1 uint16
  12155. var yymg1, yymdn1 bool
  12156. if z.DecBasicHandle().MapValueReset {
  12157. }
  12158. if yyl1 != 0 {
  12159. yyhl1 := yyl1 > 0
  12160. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12161. z.DecReadMapElemKey()
  12162. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12163. if yymg1 {
  12164. yymv1 = yyv1[yymk1]
  12165. }
  12166. z.DecReadMapElemValue()
  12167. yymdn1 = false
  12168. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12169. if yymdn1 {
  12170. if z.DecBasicHandle().DeleteOnNilMapValue {
  12171. delete(yyv1, yymk1)
  12172. } else {
  12173. yyv1[yymk1] = 0
  12174. }
  12175. } else if yyv1 != nil {
  12176. yyv1[yymk1] = yymv1
  12177. }
  12178. }
  12179. } // else len==0: TODO: Should we clear map entries?
  12180. z.DecReadMapEnd()
  12181. }
  12182. }
  12183. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  12184. var h codecSelfer19780
  12185. z, r := GenHelperEncoder(e)
  12186. _, _, _ = h, z, r
  12187. if v == nil {
  12188. r.EncodeNil()
  12189. return
  12190. }
  12191. z.EncWriteArrayStart(len(v))
  12192. for _, yyv1 := range v {
  12193. z.EncWriteArrayElem()
  12194. r.EncodeInt(int64(yyv1))
  12195. }
  12196. z.EncWriteArrayEnd()
  12197. }
  12198. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  12199. var h codecSelfer19780
  12200. z, r := GenHelperDecoder(d)
  12201. _, _, _ = h, z, r
  12202. yyv1 := v
  12203. yyh1, yyl1 := z.DecSliceHelperStart()
  12204. if yyl1 == 0 {
  12205. } else {
  12206. yyhl1 := yyl1 > 0
  12207. var yyrl1 int
  12208. _ = yyrl1
  12209. var yyj1 int
  12210. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12211. yyh1.ElemContainerState(yyj1)
  12212. var yydb1 bool
  12213. if yyj1 >= len(yyv1) {
  12214. z.DecArrayCannotExpand(len(v), yyj1+1)
  12215. yydb1 = true
  12216. }
  12217. if yydb1 {
  12218. z.DecSwallow()
  12219. } else {
  12220. yyv1[yyj1] = (int64)(r.DecodeInt64())
  12221. }
  12222. }
  12223. }
  12224. yyh1.End()
  12225. }
  12226. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  12227. var h codecSelfer19780
  12228. z, r := GenHelperEncoder(e)
  12229. _, _, _ = h, z, r
  12230. if v == nil {
  12231. r.EncodeNil()
  12232. return
  12233. }
  12234. z.EncWriteArrayStart(len(v))
  12235. for _, yyv1 := range v {
  12236. z.EncWriteArrayElem()
  12237. if yyv1 == nil {
  12238. r.EncodeNil()
  12239. } else {
  12240. yy2 := *yyv1
  12241. r.EncodeInt(int64(yy2))
  12242. }
  12243. }
  12244. z.EncWriteArrayEnd()
  12245. }
  12246. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  12247. var h codecSelfer19780
  12248. z, r := GenHelperDecoder(d)
  12249. _, _, _ = h, z, r
  12250. yyv1 := *v
  12251. yyh1, yyl1 := z.DecSliceHelperStart()
  12252. var yyc1 bool
  12253. _ = yyc1
  12254. if yyh1.IsNil {
  12255. if yyv1 != nil {
  12256. yyv1 = nil
  12257. yyc1 = true
  12258. }
  12259. } else if yyl1 == 0 {
  12260. if yyv1 == nil {
  12261. yyv1 = []*int64{}
  12262. yyc1 = true
  12263. } else if len(yyv1) != 0 {
  12264. yyv1 = yyv1[:0]
  12265. yyc1 = true
  12266. }
  12267. } else {
  12268. yyhl1 := yyl1 > 0
  12269. var yyrl1 int
  12270. _ = yyrl1
  12271. if yyhl1 {
  12272. if yyl1 > cap(yyv1) {
  12273. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12274. if yyrl1 <= cap(yyv1) {
  12275. yyv1 = yyv1[:yyrl1]
  12276. } else {
  12277. yyv1 = make([]*int64, yyrl1)
  12278. }
  12279. yyc1 = true
  12280. } else if yyl1 != len(yyv1) {
  12281. yyv1 = yyv1[:yyl1]
  12282. yyc1 = true
  12283. }
  12284. }
  12285. var yyj1 int
  12286. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12287. if yyj1 == 0 && yyv1 == nil {
  12288. if yyhl1 {
  12289. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12290. } else {
  12291. yyrl1 = 8
  12292. }
  12293. yyv1 = make([]*int64, yyrl1)
  12294. yyc1 = true
  12295. }
  12296. yyh1.ElemContainerState(yyj1)
  12297. var yydb1 bool
  12298. if yyj1 >= len(yyv1) {
  12299. yyv1 = append(yyv1, nil)
  12300. yyc1 = true
  12301. }
  12302. if yydb1 {
  12303. z.DecSwallow()
  12304. } else {
  12305. if r.TryNil() {
  12306. yyv1[yyj1] = nil
  12307. } else {
  12308. if yyv1[yyj1] == nil {
  12309. yyv1[yyj1] = new(int64)
  12310. }
  12311. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  12312. }
  12313. }
  12314. }
  12315. if yyj1 < len(yyv1) {
  12316. yyv1 = yyv1[:yyj1]
  12317. yyc1 = true
  12318. } else if yyj1 == 0 && yyv1 == nil {
  12319. yyv1 = make([]*int64, 0)
  12320. yyc1 = true
  12321. }
  12322. }
  12323. yyh1.End()
  12324. if yyc1 {
  12325. *v = yyv1
  12326. }
  12327. }
  12328. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  12329. var h codecSelfer19780
  12330. z, r := GenHelperEncoder(e)
  12331. _, _, _ = h, z, r
  12332. if v == nil {
  12333. r.EncodeNil()
  12334. return
  12335. }
  12336. z.EncWriteArrayStart(len(v))
  12337. for _, yyv1 := range v {
  12338. z.EncWriteArrayElem()
  12339. yy2 := &yyv1
  12340. yy2.CodecEncodeSelf(e)
  12341. }
  12342. z.EncWriteArrayEnd()
  12343. }
  12344. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  12345. var h codecSelfer19780
  12346. z, r := GenHelperDecoder(d)
  12347. _, _, _ = h, z, r
  12348. yyv1 := *v
  12349. yyh1, yyl1 := z.DecSliceHelperStart()
  12350. var yyc1 bool
  12351. _ = yyc1
  12352. if yyh1.IsNil {
  12353. if yyv1 != nil {
  12354. yyv1 = nil
  12355. yyc1 = true
  12356. }
  12357. } else if yyl1 == 0 {
  12358. if yyv1 == nil {
  12359. yyv1 = []stringUint64T{}
  12360. yyc1 = true
  12361. } else if len(yyv1) != 0 {
  12362. yyv1 = yyv1[:0]
  12363. yyc1 = true
  12364. }
  12365. } else {
  12366. yyhl1 := yyl1 > 0
  12367. var yyrl1 int
  12368. _ = yyrl1
  12369. if yyhl1 {
  12370. if yyl1 > cap(yyv1) {
  12371. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12372. if yyrl1 <= cap(yyv1) {
  12373. yyv1 = yyv1[:yyrl1]
  12374. } else {
  12375. yyv1 = make([]stringUint64T, yyrl1)
  12376. }
  12377. yyc1 = true
  12378. } else if yyl1 != len(yyv1) {
  12379. yyv1 = yyv1[:yyl1]
  12380. yyc1 = true
  12381. }
  12382. }
  12383. var yyj1 int
  12384. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12385. if yyj1 == 0 && yyv1 == nil {
  12386. if yyhl1 {
  12387. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12388. } else {
  12389. yyrl1 = 8
  12390. }
  12391. yyv1 = make([]stringUint64T, yyrl1)
  12392. yyc1 = true
  12393. }
  12394. yyh1.ElemContainerState(yyj1)
  12395. var yydb1 bool
  12396. if yyj1 >= len(yyv1) {
  12397. yyv1 = append(yyv1, stringUint64T{})
  12398. yyc1 = true
  12399. }
  12400. if yydb1 {
  12401. z.DecSwallow()
  12402. } else {
  12403. yyv1[yyj1].CodecDecodeSelf(d)
  12404. }
  12405. }
  12406. if yyj1 < len(yyv1) {
  12407. yyv1 = yyv1[:yyj1]
  12408. yyc1 = true
  12409. } else if yyj1 == 0 && yyv1 == nil {
  12410. yyv1 = make([]stringUint64T, 0)
  12411. yyc1 = true
  12412. }
  12413. }
  12414. yyh1.End()
  12415. if yyc1 {
  12416. *v = yyv1
  12417. }
  12418. }
  12419. func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
  12420. var h codecSelfer19780
  12421. z, r := GenHelperEncoder(e)
  12422. _, _, _ = h, z, r
  12423. if v == nil {
  12424. r.EncodeNil()
  12425. return
  12426. }
  12427. z.EncWriteMapStart(len(v))
  12428. for yyk1, yyv1 := range v {
  12429. z.EncWriteMapElemKey()
  12430. if z.EncBasicHandle().StringToRaw {
  12431. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12432. } else {
  12433. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12434. }
  12435. z.EncWriteMapElemValue()
  12436. if yyv1 == nil {
  12437. r.EncodeNil()
  12438. } else {
  12439. yyv1.CodecEncodeSelf(e)
  12440. }
  12441. }
  12442. z.EncWriteMapEnd()
  12443. }
  12444. func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
  12445. var h codecSelfer19780
  12446. z, r := GenHelperDecoder(d)
  12447. _, _, _ = h, z, r
  12448. yyv1 := *v
  12449. yyl1 := z.DecReadMapStart()
  12450. if yyl1 == codecSelferDecContainerLenNil19780 {
  12451. *v = nil
  12452. } else {
  12453. if yyv1 == nil {
  12454. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12455. yyv1 = make(map[string]*stringUint64T, yyrl1)
  12456. *v = yyv1
  12457. }
  12458. var yymk1 string
  12459. var yymv1 *stringUint64T
  12460. var yymg1, yymdn1, yyms1, yymok1 bool
  12461. if z.DecBasicHandle().MapValueReset {
  12462. yymg1 = true
  12463. }
  12464. if yyl1 != 0 {
  12465. yyhl1 := yyl1 > 0
  12466. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12467. z.DecReadMapElemKey()
  12468. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12469. yyms1 = true
  12470. if yymg1 {
  12471. yymv1, yymok1 = yyv1[yymk1]
  12472. if yymok1 {
  12473. yyms1 = false
  12474. }
  12475. } else {
  12476. yymv1 = nil
  12477. }
  12478. z.DecReadMapElemValue()
  12479. yymdn1 = false
  12480. if r.TryNil() {
  12481. yymdn1 = true
  12482. } else {
  12483. if yymv1 == nil {
  12484. yymv1 = new(stringUint64T)
  12485. }
  12486. yymv1.CodecDecodeSelf(d)
  12487. }
  12488. if yymdn1 {
  12489. if z.DecBasicHandle().DeleteOnNilMapValue {
  12490. delete(yyv1, yymk1)
  12491. } else {
  12492. yyv1[yymk1] = nil
  12493. }
  12494. } else if yyms1 && yyv1 != nil {
  12495. yyv1[yymk1] = yymv1
  12496. }
  12497. }
  12498. } // else len==0: TODO: Should we clear map entries?
  12499. z.DecReadMapEnd()
  12500. }
  12501. }
  12502. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  12503. var h codecSelfer19780
  12504. z, r := GenHelperEncoder(e)
  12505. _, _, _ = h, z, r
  12506. if v == nil {
  12507. r.EncodeNil()
  12508. return
  12509. }
  12510. z.EncWriteMapStart(len(v))
  12511. for yyk1, yyv1 := range v {
  12512. z.EncWriteMapElemKey()
  12513. if z.EncBasicHandle().StringToRaw {
  12514. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12515. } else {
  12516. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12517. }
  12518. z.EncWriteMapElemValue()
  12519. if yyv1 == nil {
  12520. r.EncodeNil()
  12521. } else {
  12522. yyv1.CodecEncodeSelf(e)
  12523. }
  12524. }
  12525. z.EncWriteMapEnd()
  12526. }
  12527. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  12528. var h codecSelfer19780
  12529. z, r := GenHelperDecoder(d)
  12530. _, _, _ = h, z, r
  12531. yyv1 := *v
  12532. yyl1 := z.DecReadMapStart()
  12533. if yyl1 == codecSelferDecContainerLenNil19780 {
  12534. *v = nil
  12535. } else {
  12536. if yyv1 == nil {
  12537. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12538. yyv1 = make(map[string]*TestStruc, yyrl1)
  12539. *v = yyv1
  12540. }
  12541. var yymk1 string
  12542. var yymv1 *TestStruc
  12543. var yymg1, yymdn1, yyms1, yymok1 bool
  12544. if z.DecBasicHandle().MapValueReset {
  12545. yymg1 = true
  12546. }
  12547. if yyl1 != 0 {
  12548. yyhl1 := yyl1 > 0
  12549. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12550. z.DecReadMapElemKey()
  12551. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12552. yyms1 = true
  12553. if yymg1 {
  12554. yymv1, yymok1 = yyv1[yymk1]
  12555. if yymok1 {
  12556. yyms1 = false
  12557. }
  12558. } else {
  12559. yymv1 = nil
  12560. }
  12561. z.DecReadMapElemValue()
  12562. yymdn1 = false
  12563. if r.TryNil() {
  12564. yymdn1 = true
  12565. } else {
  12566. if yymv1 == nil {
  12567. yymv1 = new(TestStruc)
  12568. }
  12569. yymv1.CodecDecodeSelf(d)
  12570. }
  12571. if yymdn1 {
  12572. if z.DecBasicHandle().DeleteOnNilMapValue {
  12573. delete(yyv1, yymk1)
  12574. } else {
  12575. yyv1[yymk1] = nil
  12576. }
  12577. } else if yyms1 && yyv1 != nil {
  12578. yyv1[yymk1] = yymv1
  12579. }
  12580. }
  12581. } // else len==0: TODO: Should we clear map entries?
  12582. z.DecReadMapEnd()
  12583. }
  12584. }
  12585. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  12586. var h codecSelfer19780
  12587. z, r := GenHelperEncoder(e)
  12588. _, _, _ = h, z, r
  12589. if v == nil {
  12590. r.EncodeNil()
  12591. return
  12592. }
  12593. z.EncWriteMapStart(len(v))
  12594. for yyk1, yyv1 := range v {
  12595. z.EncWriteMapElemKey()
  12596. if z.EncBasicHandle().StringToRaw {
  12597. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12598. } else {
  12599. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12600. }
  12601. z.EncWriteMapElemValue()
  12602. yy3 := &yyv1
  12603. yy3.CodecEncodeSelf(e)
  12604. }
  12605. z.EncWriteMapEnd()
  12606. }
  12607. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  12608. var h codecSelfer19780
  12609. z, r := GenHelperDecoder(d)
  12610. _, _, _ = h, z, r
  12611. yyv1 := *v
  12612. yyl1 := z.DecReadMapStart()
  12613. if yyl1 == codecSelferDecContainerLenNil19780 {
  12614. *v = nil
  12615. } else {
  12616. if yyv1 == nil {
  12617. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1224)
  12618. yyv1 = make(map[string]TestStruc, yyrl1)
  12619. *v = yyv1
  12620. }
  12621. var yymk1 string
  12622. var yymv1 TestStruc
  12623. var yymg1, yymdn1 bool
  12624. if z.DecBasicHandle().MapValueReset {
  12625. yymg1 = true
  12626. }
  12627. if yyl1 != 0 {
  12628. yyhl1 := yyl1 > 0
  12629. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12630. z.DecReadMapElemKey()
  12631. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12632. if yymg1 {
  12633. yymv1 = yyv1[yymk1]
  12634. } else {
  12635. yymv1 = TestStruc{}
  12636. }
  12637. z.DecReadMapElemValue()
  12638. yymdn1 = false
  12639. yymv1.CodecDecodeSelf(d)
  12640. if yymdn1 {
  12641. if z.DecBasicHandle().DeleteOnNilMapValue {
  12642. delete(yyv1, yymk1)
  12643. } else {
  12644. yyv1[yymk1] = TestStruc{}
  12645. }
  12646. } else if yyv1 != nil {
  12647. yyv1[yymk1] = yymv1
  12648. }
  12649. }
  12650. } // else len==0: TODO: Should we clear map entries?
  12651. z.DecReadMapEnd()
  12652. }
  12653. }
  12654. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  12655. var h codecSelfer19780
  12656. z, r := GenHelperEncoder(e)
  12657. _, _, _ = h, z, r
  12658. if v == nil {
  12659. r.EncodeNil()
  12660. return
  12661. }
  12662. z.EncWriteArrayStart(len(v))
  12663. for _, yyv1 := range v {
  12664. z.EncWriteArrayElem()
  12665. if yyv1 == nil {
  12666. r.EncodeNil()
  12667. } else {
  12668. yyv1.CodecEncodeSelf(e)
  12669. }
  12670. }
  12671. z.EncWriteArrayEnd()
  12672. }
  12673. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  12674. var h codecSelfer19780
  12675. z, r := GenHelperDecoder(d)
  12676. _, _, _ = h, z, r
  12677. yyv1 := *v
  12678. yyh1, yyl1 := z.DecSliceHelperStart()
  12679. var yyc1 bool
  12680. _ = yyc1
  12681. if yyh1.IsNil {
  12682. if yyv1 != nil {
  12683. yyv1 = nil
  12684. yyc1 = true
  12685. }
  12686. } else if yyl1 == 0 {
  12687. if yyv1 == nil {
  12688. yyv1 = []*TestStruc{}
  12689. yyc1 = true
  12690. } else if len(yyv1) != 0 {
  12691. yyv1 = yyv1[:0]
  12692. yyc1 = true
  12693. }
  12694. } else {
  12695. yyhl1 := yyl1 > 0
  12696. var yyrl1 int
  12697. _ = yyrl1
  12698. if yyhl1 {
  12699. if yyl1 > cap(yyv1) {
  12700. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12701. if yyrl1 <= cap(yyv1) {
  12702. yyv1 = yyv1[:yyrl1]
  12703. } else {
  12704. yyv1 = make([]*TestStruc, yyrl1)
  12705. }
  12706. yyc1 = true
  12707. } else if yyl1 != len(yyv1) {
  12708. yyv1 = yyv1[:yyl1]
  12709. yyc1 = true
  12710. }
  12711. }
  12712. var yyj1 int
  12713. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12714. if yyj1 == 0 && yyv1 == nil {
  12715. if yyhl1 {
  12716. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12717. } else {
  12718. yyrl1 = 8
  12719. }
  12720. yyv1 = make([]*TestStruc, yyrl1)
  12721. yyc1 = true
  12722. }
  12723. yyh1.ElemContainerState(yyj1)
  12724. var yydb1 bool
  12725. if yyj1 >= len(yyv1) {
  12726. yyv1 = append(yyv1, nil)
  12727. yyc1 = true
  12728. }
  12729. if yydb1 {
  12730. z.DecSwallow()
  12731. } else {
  12732. if r.TryNil() {
  12733. yyv1[yyj1] = nil
  12734. } else {
  12735. if yyv1[yyj1] == nil {
  12736. yyv1[yyj1] = new(TestStruc)
  12737. }
  12738. yyv1[yyj1].CodecDecodeSelf(d)
  12739. }
  12740. }
  12741. }
  12742. if yyj1 < len(yyv1) {
  12743. yyv1 = yyv1[:yyj1]
  12744. yyc1 = true
  12745. } else if yyj1 == 0 && yyv1 == nil {
  12746. yyv1 = make([]*TestStruc, 0)
  12747. yyc1 = true
  12748. }
  12749. }
  12750. yyh1.End()
  12751. if yyc1 {
  12752. *v = yyv1
  12753. }
  12754. }
  12755. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  12756. var h codecSelfer19780
  12757. z, r := GenHelperEncoder(e)
  12758. _, _, _ = h, z, r
  12759. if v == nil {
  12760. r.EncodeNil()
  12761. return
  12762. }
  12763. z.EncWriteArrayStart(len(v))
  12764. for _, yyv1 := range v {
  12765. z.EncWriteArrayElem()
  12766. if z.EncBasicHandle().StringToRaw {
  12767. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12768. } else {
  12769. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12770. }
  12771. }
  12772. z.EncWriteArrayEnd()
  12773. }
  12774. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  12775. var h codecSelfer19780
  12776. z, r := GenHelperDecoder(d)
  12777. _, _, _ = h, z, r
  12778. yyv1 := v
  12779. yyh1, yyl1 := z.DecSliceHelperStart()
  12780. if yyl1 == 0 {
  12781. } else {
  12782. yyhl1 := yyl1 > 0
  12783. var yyrl1 int
  12784. _ = yyrl1
  12785. var yyj1 int
  12786. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12787. yyh1.ElemContainerState(yyj1)
  12788. var yydb1 bool
  12789. if yyj1 >= len(yyv1) {
  12790. z.DecArrayCannotExpand(len(v), yyj1+1)
  12791. yydb1 = true
  12792. }
  12793. if yydb1 {
  12794. z.DecSwallow()
  12795. } else {
  12796. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  12797. }
  12798. }
  12799. }
  12800. yyh1.End()
  12801. }
  12802. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  12803. var h codecSelfer19780
  12804. z, r := GenHelperEncoder(e)
  12805. _, _, _ = h, z, r
  12806. if v == nil {
  12807. r.EncodeNil()
  12808. return
  12809. }
  12810. r.EncodeStringBytesRaw([]byte(v))
  12811. }
  12812. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  12813. var h codecSelfer19780
  12814. z, r := GenHelperDecoder(d)
  12815. _, _, _ = h, z, r
  12816. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  12817. }
  12818. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  12819. var h codecSelfer19780
  12820. z, r := GenHelperEncoder(e)
  12821. _, _, _ = h, z, r
  12822. if v == nil {
  12823. r.EncodeNil()
  12824. return
  12825. }
  12826. if v == nil {
  12827. r.EncodeNil()
  12828. } else {
  12829. var sch1 []string
  12830. Lsch1:
  12831. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  12832. case timeout1 == 0: // only consume available
  12833. for {
  12834. select {
  12835. case b1 := <-v:
  12836. sch1 = append(sch1, b1)
  12837. default:
  12838. break Lsch1
  12839. }
  12840. }
  12841. case timeout1 > 0: // consume until timeout
  12842. tt1 := time.NewTimer(timeout1)
  12843. for {
  12844. select {
  12845. case b1 := <-v:
  12846. sch1 = append(sch1, b1)
  12847. case <-tt1.C:
  12848. // close(tt.C)
  12849. break Lsch1
  12850. }
  12851. }
  12852. default: // consume until close
  12853. for b1 := range v {
  12854. sch1 = append(sch1, b1)
  12855. }
  12856. }
  12857. z.EncWriteArrayStart(len(sch1))
  12858. for _, yyv1 := range sch1 {
  12859. z.EncWriteArrayElem()
  12860. if z.EncBasicHandle().StringToRaw {
  12861. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12862. } else {
  12863. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12864. }
  12865. }
  12866. z.EncWriteArrayEnd()
  12867. }
  12868. }
  12869. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  12870. var h codecSelfer19780
  12871. z, r := GenHelperDecoder(d)
  12872. _, _, _ = h, z, r
  12873. yyv1 := *v
  12874. yyh1, yyl1 := z.DecSliceHelperStart()
  12875. var yyc1 bool
  12876. _ = yyc1
  12877. if yyh1.IsNil {
  12878. if yyv1 != nil {
  12879. yyv1 = nil
  12880. yyc1 = true
  12881. }
  12882. } else if yyl1 == 0 {
  12883. if yyv1 == nil {
  12884. yyv1 = make(chan string, 0)
  12885. yyc1 = true
  12886. }
  12887. } else {
  12888. yyhl1 := yyl1 > 0
  12889. var yyrl1 int
  12890. _ = yyrl1
  12891. var yyj1 int
  12892. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12893. if yyj1 == 0 && yyv1 == nil {
  12894. if yyhl1 {
  12895. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12896. } else {
  12897. yyrl1 = 64
  12898. }
  12899. yyv1 = make(chan string, yyrl1)
  12900. yyc1 = true
  12901. }
  12902. yyh1.ElemContainerState(yyj1)
  12903. var yyvcx1 string
  12904. yyvcx1 = (string)(string(r.DecodeStringAsBytes()))
  12905. yyv1 <- yyvcx1
  12906. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  12907. }
  12908. }
  12909. yyh1.End()
  12910. if yyc1 {
  12911. *v = yyv1
  12912. }
  12913. }
  12914. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  12915. var h codecSelfer19780
  12916. z, r := GenHelperEncoder(e)
  12917. _, _, _ = h, z, r
  12918. if v == nil {
  12919. r.EncodeNil()
  12920. return
  12921. }
  12922. z.EncWriteMapStart(len(v))
  12923. for yyk1, yyv1 := range v {
  12924. z.EncWriteMapElemKey()
  12925. r.EncodeBool(bool(yyk1))
  12926. z.EncWriteMapElemValue()
  12927. yy3 := &yyv1
  12928. z.EncFallback(yy3)
  12929. }
  12930. z.EncWriteMapEnd()
  12931. }
  12932. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  12933. var h codecSelfer19780
  12934. z, r := GenHelperDecoder(d)
  12935. _, _, _ = h, z, r
  12936. yyv1 := *v
  12937. yyl1 := z.DecReadMapStart()
  12938. if yyl1 == codecSelferDecContainerLenNil19780 {
  12939. *v = nil
  12940. } else {
  12941. if yyv1 == nil {
  12942. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  12943. yyv1 = make(map[bool]struct{}, yyrl1)
  12944. *v = yyv1
  12945. }
  12946. var yymk1 bool
  12947. var yymv1 struct{}
  12948. var yymg1, yymdn1 bool
  12949. if z.DecBasicHandle().MapValueReset {
  12950. yymg1 = true
  12951. }
  12952. if yyl1 != 0 {
  12953. yyhl1 := yyl1 > 0
  12954. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12955. z.DecReadMapElemKey()
  12956. yymk1 = (bool)(r.DecodeBool())
  12957. if yymg1 {
  12958. yymv1 = yyv1[yymk1]
  12959. } else {
  12960. yymv1 = struct{}{}
  12961. }
  12962. z.DecReadMapElemValue()
  12963. yymdn1 = false
  12964. z.DecFallback(&yymv1, false)
  12965. if yymdn1 {
  12966. if z.DecBasicHandle().DeleteOnNilMapValue {
  12967. delete(yyv1, yymk1)
  12968. } else {
  12969. yyv1[yymk1] = struct{}{}
  12970. }
  12971. } else if yyv1 != nil {
  12972. yyv1[yymk1] = yymv1
  12973. }
  12974. }
  12975. } // else len==0: TODO: Should we clear map entries?
  12976. z.DecReadMapEnd()
  12977. }
  12978. }
  12979. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  12980. var h codecSelfer19780
  12981. z, r := GenHelperEncoder(e)
  12982. _, _, _ = h, z, r
  12983. if v == nil {
  12984. r.EncodeNil()
  12985. return
  12986. }
  12987. z.EncWriteMapStart(len(v))
  12988. for yyk1, yyv1 := range v {
  12989. z.EncWriteMapElemKey()
  12990. r.EncodeInt(int64(yyk1))
  12991. z.EncWriteMapElemValue()
  12992. yyv1.CodecEncodeSelf(e)
  12993. }
  12994. z.EncWriteMapEnd()
  12995. }
  12996. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  12997. var h codecSelfer19780
  12998. z, r := GenHelperDecoder(d)
  12999. _, _, _ = h, z, r
  13000. yyv1 := *v
  13001. yyl1 := z.DecReadMapStart()
  13002. if yyl1 == codecSelferDecContainerLenNil19780 {
  13003. *v = nil
  13004. } else {
  13005. if yyv1 == nil {
  13006. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13007. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  13008. *v = yyv1
  13009. }
  13010. var yymk1 int
  13011. var yymv1 wrapUint64Slice
  13012. var yymg1, yymdn1 bool
  13013. if z.DecBasicHandle().MapValueReset {
  13014. yymg1 = true
  13015. }
  13016. if yyl1 != 0 {
  13017. yyhl1 := yyl1 > 0
  13018. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13019. z.DecReadMapElemKey()
  13020. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  13021. if yymg1 {
  13022. yymv1 = yyv1[yymk1]
  13023. } else {
  13024. yymv1 = nil
  13025. }
  13026. z.DecReadMapElemValue()
  13027. yymdn1 = false
  13028. yymv1.CodecDecodeSelf(d)
  13029. if yymdn1 {
  13030. if z.DecBasicHandle().DeleteOnNilMapValue {
  13031. delete(yyv1, yymk1)
  13032. } else {
  13033. yyv1[yymk1] = nil
  13034. }
  13035. } else if yyv1 != nil {
  13036. yyv1[yymk1] = yymv1
  13037. }
  13038. }
  13039. } // else len==0: TODO: Should we clear map entries?
  13040. z.DecReadMapEnd()
  13041. }
  13042. }
  13043. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  13044. var h codecSelfer19780
  13045. z, r := GenHelperEncoder(e)
  13046. _, _, _ = h, z, r
  13047. if v == nil {
  13048. r.EncodeNil()
  13049. return
  13050. }
  13051. z.EncWriteMapStart(len(v))
  13052. for yyk1, yyv1 := range v {
  13053. z.EncWriteMapElemKey()
  13054. r.EncodeFloat64(float64(yyk1))
  13055. z.EncWriteMapElemValue()
  13056. yyv1.CodecEncodeSelf(e)
  13057. }
  13058. z.EncWriteMapEnd()
  13059. }
  13060. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  13061. var h codecSelfer19780
  13062. z, r := GenHelperDecoder(d)
  13063. _, _, _ = h, z, r
  13064. yyv1 := *v
  13065. yyl1 := z.DecReadMapStart()
  13066. if yyl1 == codecSelferDecContainerLenNil19780 {
  13067. *v = nil
  13068. } else {
  13069. if yyv1 == nil {
  13070. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13071. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  13072. *v = yyv1
  13073. }
  13074. var yymk1 float64
  13075. var yymv1 wrapStringSlice
  13076. var yymg1, yymdn1 bool
  13077. if z.DecBasicHandle().MapValueReset {
  13078. yymg1 = true
  13079. }
  13080. if yyl1 != 0 {
  13081. yyhl1 := yyl1 > 0
  13082. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13083. z.DecReadMapElemKey()
  13084. yymk1 = (float64)(r.DecodeFloat64())
  13085. if yymg1 {
  13086. yymv1 = yyv1[yymk1]
  13087. } else {
  13088. yymv1 = nil
  13089. }
  13090. z.DecReadMapElemValue()
  13091. yymdn1 = false
  13092. yymv1.CodecDecodeSelf(d)
  13093. if yymdn1 {
  13094. if z.DecBasicHandle().DeleteOnNilMapValue {
  13095. delete(yyv1, yymk1)
  13096. } else {
  13097. yyv1[yymk1] = nil
  13098. }
  13099. } else if yyv1 != nil {
  13100. yyv1[yymk1] = yymv1
  13101. }
  13102. }
  13103. } // else len==0: TODO: Should we clear map entries?
  13104. z.DecReadMapEnd()
  13105. }
  13106. }
  13107. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  13108. var h codecSelfer19780
  13109. z, r := GenHelperEncoder(e)
  13110. _, _, _ = h, z, r
  13111. if v == nil {
  13112. r.EncodeNil()
  13113. return
  13114. }
  13115. z.EncWriteMapStart(len(v))
  13116. for yyk1, yyv1 := range v {
  13117. z.EncWriteMapElemKey()
  13118. r.EncodeFloat32(float32(yyk1))
  13119. z.EncWriteMapElemValue()
  13120. yyv1.CodecEncodeSelf(e)
  13121. }
  13122. z.EncWriteMapEnd()
  13123. }
  13124. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  13125. var h codecSelfer19780
  13126. z, r := GenHelperDecoder(d)
  13127. _, _, _ = h, z, r
  13128. yyv1 := *v
  13129. yyl1 := z.DecReadMapStart()
  13130. if yyl1 == codecSelferDecContainerLenNil19780 {
  13131. *v = nil
  13132. } else {
  13133. if yyv1 == nil {
  13134. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 28)
  13135. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  13136. *v = yyv1
  13137. }
  13138. var yymk1 float32
  13139. var yymv1 wrapStringSlice
  13140. var yymg1, yymdn1 bool
  13141. if z.DecBasicHandle().MapValueReset {
  13142. yymg1 = true
  13143. }
  13144. if yyl1 != 0 {
  13145. yyhl1 := yyl1 > 0
  13146. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13147. z.DecReadMapElemKey()
  13148. yymk1 = (float32)(z.DecDecodeFloat32())
  13149. if yymg1 {
  13150. yymv1 = yyv1[yymk1]
  13151. } else {
  13152. yymv1 = nil
  13153. }
  13154. z.DecReadMapElemValue()
  13155. yymdn1 = false
  13156. yymv1.CodecDecodeSelf(d)
  13157. if yymdn1 {
  13158. if z.DecBasicHandle().DeleteOnNilMapValue {
  13159. delete(yyv1, yymk1)
  13160. } else {
  13161. yyv1[yymk1] = nil
  13162. }
  13163. } else if yyv1 != nil {
  13164. yyv1[yymk1] = yymv1
  13165. }
  13166. }
  13167. } // else len==0: TODO: Should we clear map entries?
  13168. z.DecReadMapEnd()
  13169. }
  13170. }
  13171. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  13172. var h codecSelfer19780
  13173. z, r := GenHelperEncoder(e)
  13174. _, _, _ = h, z, r
  13175. if v == nil {
  13176. r.EncodeNil()
  13177. return
  13178. }
  13179. z.EncWriteMapStart(len(v))
  13180. for yyk1, yyv1 := range v {
  13181. z.EncWriteMapElemKey()
  13182. r.EncodeUint(uint64(yyk1))
  13183. z.EncWriteMapElemValue()
  13184. yyv1.CodecEncodeSelf(e)
  13185. }
  13186. z.EncWriteMapEnd()
  13187. }
  13188. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  13189. var h codecSelfer19780
  13190. z, r := GenHelperDecoder(d)
  13191. _, _, _ = h, z, r
  13192. yyv1 := *v
  13193. yyl1 := z.DecReadMapStart()
  13194. if yyl1 == codecSelferDecContainerLenNil19780 {
  13195. *v = nil
  13196. } else {
  13197. if yyv1 == nil {
  13198. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13199. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  13200. *v = yyv1
  13201. }
  13202. var yymk1 uint64
  13203. var yymv1 wrapStringSlice
  13204. var yymg1, yymdn1 bool
  13205. if z.DecBasicHandle().MapValueReset {
  13206. yymg1 = true
  13207. }
  13208. if yyl1 != 0 {
  13209. yyhl1 := yyl1 > 0
  13210. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13211. z.DecReadMapElemKey()
  13212. yymk1 = (uint64)(r.DecodeUint64())
  13213. if yymg1 {
  13214. yymv1 = yyv1[yymk1]
  13215. } else {
  13216. yymv1 = nil
  13217. }
  13218. z.DecReadMapElemValue()
  13219. yymdn1 = false
  13220. yymv1.CodecDecodeSelf(d)
  13221. if yymdn1 {
  13222. if z.DecBasicHandle().DeleteOnNilMapValue {
  13223. delete(yyv1, yymk1)
  13224. } else {
  13225. yyv1[yymk1] = nil
  13226. }
  13227. } else if yyv1 != nil {
  13228. yyv1[yymk1] = yymv1
  13229. }
  13230. }
  13231. } // else len==0: TODO: Should we clear map entries?
  13232. z.DecReadMapEnd()
  13233. }
  13234. }
  13235. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  13236. var h codecSelfer19780
  13237. z, r := GenHelperEncoder(e)
  13238. _, _, _ = h, z, r
  13239. if v == nil {
  13240. r.EncodeNil()
  13241. return
  13242. }
  13243. z.EncWriteMapStart(len(v))
  13244. for yyk1, yyv1 := range v {
  13245. z.EncWriteMapElemKey()
  13246. yy2 := &yyk1
  13247. yy2.CodecEncodeSelf(e)
  13248. z.EncWriteMapElemValue()
  13249. yyv1.CodecEncodeSelf(e)
  13250. }
  13251. z.EncWriteMapEnd()
  13252. }
  13253. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  13254. var h codecSelfer19780
  13255. z, r := GenHelperDecoder(d)
  13256. _, _, _ = h, z, r
  13257. yyv1 := *v
  13258. yyl1 := z.DecReadMapStart()
  13259. if yyl1 == codecSelferDecContainerLenNil19780 {
  13260. *v = nil
  13261. } else {
  13262. if yyv1 == nil {
  13263. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
  13264. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  13265. *v = yyv1
  13266. }
  13267. var yymk1 stringUint64T
  13268. var yymv1 wrapStringSlice
  13269. var yymg1, yymdn1 bool
  13270. if z.DecBasicHandle().MapValueReset {
  13271. yymg1 = true
  13272. }
  13273. if yyl1 != 0 {
  13274. yyhl1 := yyl1 > 0
  13275. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13276. z.DecReadMapElemKey()
  13277. yymk1.CodecDecodeSelf(d)
  13278. if yymg1 {
  13279. yymv1 = yyv1[yymk1]
  13280. } else {
  13281. yymv1 = nil
  13282. }
  13283. z.DecReadMapElemValue()
  13284. yymdn1 = false
  13285. yymv1.CodecDecodeSelf(d)
  13286. if yymdn1 {
  13287. if z.DecBasicHandle().DeleteOnNilMapValue {
  13288. delete(yyv1, yymk1)
  13289. } else {
  13290. yyv1[yymk1] = nil
  13291. }
  13292. } else if yyv1 != nil {
  13293. yyv1[yymk1] = yymv1
  13294. }
  13295. }
  13296. } // else len==0: TODO: Should we clear map entries?
  13297. z.DecReadMapEnd()
  13298. }
  13299. }
  13300. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  13301. var h codecSelfer19780
  13302. z, r := GenHelperEncoder(e)
  13303. _, _, _ = h, z, r
  13304. if v == nil {
  13305. r.EncodeNil()
  13306. return
  13307. }
  13308. z.EncWriteArrayStart(len(v))
  13309. for _, yyv1 := range v {
  13310. z.EncWriteArrayElem()
  13311. yyv1.CodecEncodeSelf(e)
  13312. }
  13313. z.EncWriteArrayEnd()
  13314. }
  13315. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  13316. var h codecSelfer19780
  13317. z, r := GenHelperDecoder(d)
  13318. _, _, _ = h, z, r
  13319. yyv1 := *v
  13320. yyh1, yyl1 := z.DecSliceHelperStart()
  13321. var yyc1 bool
  13322. _ = yyc1
  13323. if yyh1.IsNil {
  13324. if yyv1 != nil {
  13325. yyv1 = nil
  13326. yyc1 = true
  13327. }
  13328. } else if yyl1 == 0 {
  13329. if yyv1 == nil {
  13330. yyv1 = []wrapBytes{}
  13331. yyc1 = true
  13332. } else if len(yyv1) != 0 {
  13333. yyv1 = yyv1[:0]
  13334. yyc1 = true
  13335. }
  13336. } else {
  13337. yyhl1 := yyl1 > 0
  13338. var yyrl1 int
  13339. _ = yyrl1
  13340. if yyhl1 {
  13341. if yyl1 > cap(yyv1) {
  13342. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13343. if yyrl1 <= cap(yyv1) {
  13344. yyv1 = yyv1[:yyrl1]
  13345. } else {
  13346. yyv1 = make([]wrapBytes, yyrl1)
  13347. }
  13348. yyc1 = true
  13349. } else if yyl1 != len(yyv1) {
  13350. yyv1 = yyv1[:yyl1]
  13351. yyc1 = true
  13352. }
  13353. }
  13354. var yyj1 int
  13355. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13356. if yyj1 == 0 && yyv1 == nil {
  13357. if yyhl1 {
  13358. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13359. } else {
  13360. yyrl1 = 8
  13361. }
  13362. yyv1 = make([]wrapBytes, yyrl1)
  13363. yyc1 = true
  13364. }
  13365. yyh1.ElemContainerState(yyj1)
  13366. var yydb1 bool
  13367. if yyj1 >= len(yyv1) {
  13368. yyv1 = append(yyv1, nil)
  13369. yyc1 = true
  13370. }
  13371. if yydb1 {
  13372. z.DecSwallow()
  13373. } else {
  13374. yyv1[yyj1].CodecDecodeSelf(d)
  13375. }
  13376. }
  13377. if yyj1 < len(yyv1) {
  13378. yyv1 = yyv1[:yyj1]
  13379. yyc1 = true
  13380. } else if yyj1 == 0 && yyv1 == nil {
  13381. yyv1 = make([]wrapBytes, 0)
  13382. yyc1 = true
  13383. }
  13384. }
  13385. yyh1.End()
  13386. if yyc1 {
  13387. *v = yyv1
  13388. }
  13389. }
  13390. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  13391. var h codecSelfer19780
  13392. z, r := GenHelperEncoder(e)
  13393. _, _, _ = h, z, r
  13394. if v == nil {
  13395. r.EncodeNil()
  13396. return
  13397. }
  13398. z.EncWriteArrayStart(len(v))
  13399. for _, yyv1 := range v {
  13400. z.EncWriteArrayElem()
  13401. yyv1.CodecEncodeSelf(e)
  13402. }
  13403. z.EncWriteArrayEnd()
  13404. }
  13405. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  13406. var h codecSelfer19780
  13407. z, r := GenHelperDecoder(d)
  13408. _, _, _ = h, z, r
  13409. yyv1 := *v
  13410. yyh1, yyl1 := z.DecSliceHelperStart()
  13411. var yyc1 bool
  13412. _ = yyc1
  13413. if yyh1.IsNil {
  13414. if yyv1 != nil {
  13415. yyv1 = nil
  13416. yyc1 = true
  13417. }
  13418. } else if yyl1 == 0 {
  13419. if yyv1 == nil {
  13420. yyv1 = []wrapUint8{}
  13421. yyc1 = true
  13422. } else if len(yyv1) != 0 {
  13423. yyv1 = yyv1[:0]
  13424. yyc1 = true
  13425. }
  13426. } else {
  13427. yyhl1 := yyl1 > 0
  13428. var yyrl1 int
  13429. _ = yyrl1
  13430. if yyhl1 {
  13431. if yyl1 > cap(yyv1) {
  13432. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13433. if yyrl1 <= cap(yyv1) {
  13434. yyv1 = yyv1[:yyrl1]
  13435. } else {
  13436. yyv1 = make([]wrapUint8, yyrl1)
  13437. }
  13438. yyc1 = true
  13439. } else if yyl1 != len(yyv1) {
  13440. yyv1 = yyv1[:yyl1]
  13441. yyc1 = true
  13442. }
  13443. }
  13444. var yyj1 int
  13445. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13446. if yyj1 == 0 && yyv1 == nil {
  13447. if yyhl1 {
  13448. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13449. } else {
  13450. yyrl1 = 8
  13451. }
  13452. yyv1 = make([]wrapUint8, yyrl1)
  13453. yyc1 = true
  13454. }
  13455. yyh1.ElemContainerState(yyj1)
  13456. var yydb1 bool
  13457. if yyj1 >= len(yyv1) {
  13458. yyv1 = append(yyv1, 0)
  13459. yyc1 = true
  13460. }
  13461. if yydb1 {
  13462. z.DecSwallow()
  13463. } else {
  13464. yyv1[yyj1].CodecDecodeSelf(d)
  13465. }
  13466. }
  13467. if yyj1 < len(yyv1) {
  13468. yyv1 = yyv1[:yyj1]
  13469. yyc1 = true
  13470. } else if yyj1 == 0 && yyv1 == nil {
  13471. yyv1 = make([]wrapUint8, 0)
  13472. yyc1 = true
  13473. }
  13474. }
  13475. yyh1.End()
  13476. if yyc1 {
  13477. *v = yyv1
  13478. }
  13479. }
  13480. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  13481. var h codecSelfer19780
  13482. z, r := GenHelperEncoder(e)
  13483. _, _, _ = h, z, r
  13484. if v == nil {
  13485. r.EncodeNil()
  13486. return
  13487. }
  13488. z.EncWriteArrayStart(len(v))
  13489. for _, yyv1 := range v {
  13490. z.EncWriteArrayElem()
  13491. yy2 := &yyv1
  13492. yy2.CodecEncodeSelf(e)
  13493. }
  13494. z.EncWriteArrayEnd()
  13495. }
  13496. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  13497. var h codecSelfer19780
  13498. z, r := GenHelperDecoder(d)
  13499. _, _, _ = h, z, r
  13500. yyv1 := v
  13501. yyh1, yyl1 := z.DecSliceHelperStart()
  13502. if yyl1 == 0 {
  13503. } else {
  13504. yyhl1 := yyl1 > 0
  13505. var yyrl1 int
  13506. _ = yyrl1
  13507. var yyj1 int
  13508. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13509. yyh1.ElemContainerState(yyj1)
  13510. var yydb1 bool
  13511. if yyj1 >= len(yyv1) {
  13512. z.DecArrayCannotExpand(len(v), yyj1+1)
  13513. yydb1 = true
  13514. }
  13515. if yydb1 {
  13516. z.DecSwallow()
  13517. } else {
  13518. yyv1[yyj1].CodecDecodeSelf(d)
  13519. }
  13520. }
  13521. }
  13522. yyh1.End()
  13523. }
  13524. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  13525. var h codecSelfer19780
  13526. z, r := GenHelperEncoder(e)
  13527. _, _, _ = h, z, r
  13528. if v == nil {
  13529. r.EncodeNil()
  13530. return
  13531. }
  13532. z.EncWriteArrayStart(len(v))
  13533. for _, yyv1 := range v {
  13534. z.EncWriteArrayElem()
  13535. r.EncodeUint(uint64(yyv1))
  13536. }
  13537. z.EncWriteArrayEnd()
  13538. }
  13539. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  13540. var h codecSelfer19780
  13541. z, r := GenHelperDecoder(d)
  13542. _, _, _ = h, z, r
  13543. yyv1 := v
  13544. yyh1, yyl1 := z.DecSliceHelperStart()
  13545. if yyl1 == 0 {
  13546. } else {
  13547. yyhl1 := yyl1 > 0
  13548. var yyrl1 int
  13549. _ = yyrl1
  13550. var yyj1 int
  13551. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13552. yyh1.ElemContainerState(yyj1)
  13553. var yydb1 bool
  13554. if yyj1 >= len(yyv1) {
  13555. z.DecArrayCannotExpand(len(v), yyj1+1)
  13556. yydb1 = true
  13557. }
  13558. if yydb1 {
  13559. z.DecSwallow()
  13560. } else {
  13561. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  13562. }
  13563. }
  13564. }
  13565. yyh1.End()
  13566. }
  13567. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  13568. var h codecSelfer19780
  13569. z, r := GenHelperEncoder(e)
  13570. _, _, _ = h, z, r
  13571. if v == nil {
  13572. r.EncodeNil()
  13573. return
  13574. }
  13575. z.EncWriteArrayStart(len(v))
  13576. for _, yyv1 := range v {
  13577. z.EncWriteArrayElem()
  13578. if yyv1 == nil {
  13579. r.EncodeNil()
  13580. } else {
  13581. h.encArray4uint64((*[4]uint64)(yyv1), e)
  13582. }
  13583. }
  13584. z.EncWriteArrayEnd()
  13585. }
  13586. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  13587. var h codecSelfer19780
  13588. z, r := GenHelperDecoder(d)
  13589. _, _, _ = h, z, r
  13590. yyv1 := *v
  13591. yyh1, yyl1 := z.DecSliceHelperStart()
  13592. var yyc1 bool
  13593. _ = yyc1
  13594. if yyh1.IsNil {
  13595. if yyv1 != nil {
  13596. yyv1 = nil
  13597. yyc1 = true
  13598. }
  13599. } else if yyl1 == 0 {
  13600. if yyv1 == nil {
  13601. yyv1 = []*[4]uint64{}
  13602. yyc1 = true
  13603. } else if len(yyv1) != 0 {
  13604. yyv1 = yyv1[:0]
  13605. yyc1 = true
  13606. }
  13607. } else {
  13608. yyhl1 := yyl1 > 0
  13609. var yyrl1 int
  13610. _ = yyrl1
  13611. if yyhl1 {
  13612. if yyl1 > cap(yyv1) {
  13613. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13614. if yyrl1 <= cap(yyv1) {
  13615. yyv1 = yyv1[:yyrl1]
  13616. } else {
  13617. yyv1 = make([]*[4]uint64, yyrl1)
  13618. }
  13619. yyc1 = true
  13620. } else if yyl1 != len(yyv1) {
  13621. yyv1 = yyv1[:yyl1]
  13622. yyc1 = true
  13623. }
  13624. }
  13625. var yyj1 int
  13626. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13627. if yyj1 == 0 && yyv1 == nil {
  13628. if yyhl1 {
  13629. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13630. } else {
  13631. yyrl1 = 8
  13632. }
  13633. yyv1 = make([]*[4]uint64, yyrl1)
  13634. yyc1 = true
  13635. }
  13636. yyh1.ElemContainerState(yyj1)
  13637. var yydb1 bool
  13638. if yyj1 >= len(yyv1) {
  13639. yyv1 = append(yyv1, nil)
  13640. yyc1 = true
  13641. }
  13642. if yydb1 {
  13643. z.DecSwallow()
  13644. } else {
  13645. if r.TryNil() {
  13646. yyv1[yyj1] = nil
  13647. } else {
  13648. if yyv1[yyj1] == nil {
  13649. yyv1[yyj1] = new([4]uint64)
  13650. }
  13651. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  13652. }
  13653. }
  13654. }
  13655. if yyj1 < len(yyv1) {
  13656. yyv1 = yyv1[:yyj1]
  13657. yyc1 = true
  13658. } else if yyj1 == 0 && yyv1 == nil {
  13659. yyv1 = make([]*[4]uint64, 0)
  13660. yyc1 = true
  13661. }
  13662. }
  13663. yyh1.End()
  13664. if yyc1 {
  13665. *v = yyv1
  13666. }
  13667. }
  13668. func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
  13669. var h codecSelfer19780
  13670. z, r := GenHelperEncoder(e)
  13671. _, _, _ = h, z, r
  13672. if v == nil {
  13673. r.EncodeNil()
  13674. return
  13675. }
  13676. z.EncWriteMapStart(len(v))
  13677. for yyk1, yyv1 := range v {
  13678. z.EncWriteMapElemKey()
  13679. yy2 := &yyk1
  13680. yy2.CodecEncodeSelf(e)
  13681. z.EncWriteMapElemValue()
  13682. if yyv1 == nil {
  13683. r.EncodeNil()
  13684. } else {
  13685. yyv1.CodecEncodeSelf(e)
  13686. }
  13687. }
  13688. z.EncWriteMapEnd()
  13689. }
  13690. func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
  13691. var h codecSelfer19780
  13692. z, r := GenHelperDecoder(d)
  13693. _, _, _ = h, z, r
  13694. yyv1 := *v
  13695. yyl1 := z.DecReadMapStart()
  13696. if yyl1 == codecSelferDecContainerLenNil19780 {
  13697. *v = nil
  13698. } else {
  13699. if yyv1 == nil {
  13700. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13701. yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
  13702. *v = yyv1
  13703. }
  13704. var yymk1 stringUint64T
  13705. var yymv1 *stringUint64T
  13706. var yymg1, yymdn1, yyms1, yymok1 bool
  13707. if z.DecBasicHandle().MapValueReset {
  13708. yymg1 = true
  13709. }
  13710. if yyl1 != 0 {
  13711. yyhl1 := yyl1 > 0
  13712. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13713. z.DecReadMapElemKey()
  13714. yymk1.CodecDecodeSelf(d)
  13715. yyms1 = true
  13716. if yymg1 {
  13717. yymv1, yymok1 = yyv1[yymk1]
  13718. if yymok1 {
  13719. yyms1 = false
  13720. }
  13721. } else {
  13722. yymv1 = nil
  13723. }
  13724. z.DecReadMapElemValue()
  13725. yymdn1 = false
  13726. if r.TryNil() {
  13727. yymdn1 = true
  13728. } else {
  13729. if yymv1 == nil {
  13730. yymv1 = new(stringUint64T)
  13731. }
  13732. yymv1.CodecDecodeSelf(d)
  13733. }
  13734. if yymdn1 {
  13735. if z.DecBasicHandle().DeleteOnNilMapValue {
  13736. delete(yyv1, yymk1)
  13737. } else {
  13738. yyv1[yymk1] = nil
  13739. }
  13740. } else if yyms1 && yyv1 != nil {
  13741. yyv1[yymk1] = yymv1
  13742. }
  13743. }
  13744. } // else len==0: TODO: Should we clear map entries?
  13745. z.DecReadMapEnd()
  13746. }
  13747. }
  13748. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  13749. var h codecSelfer19780
  13750. z, r := GenHelperEncoder(e)
  13751. _, _, _ = h, z, r
  13752. if v == nil {
  13753. r.EncodeNil()
  13754. return
  13755. }
  13756. z.EncWriteMapStart(len(v))
  13757. for yyk1, yyv1 := range v {
  13758. z.EncWriteMapElemKey()
  13759. if z.EncBasicHandle().StringToRaw {
  13760. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13761. } else {
  13762. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13763. }
  13764. z.EncWriteMapElemValue()
  13765. if yyv1 == nil {
  13766. r.EncodeNil()
  13767. } else {
  13768. yyv1.CodecEncodeSelf(e)
  13769. }
  13770. }
  13771. z.EncWriteMapEnd()
  13772. }
  13773. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  13774. var h codecSelfer19780
  13775. z, r := GenHelperDecoder(d)
  13776. _, _, _ = h, z, r
  13777. yyv1 := *v
  13778. yyl1 := z.DecReadMapStart()
  13779. if yyl1 == codecSelferDecContainerLenNil19780 {
  13780. *v = nil
  13781. } else {
  13782. if yyv1 == nil {
  13783. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13784. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  13785. *v = yyv1
  13786. }
  13787. var yymk1 string
  13788. var yymv1 *TestStrucFlex
  13789. var yymg1, yymdn1, yyms1, yymok1 bool
  13790. if z.DecBasicHandle().MapValueReset {
  13791. yymg1 = true
  13792. }
  13793. if yyl1 != 0 {
  13794. yyhl1 := yyl1 > 0
  13795. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13796. z.DecReadMapElemKey()
  13797. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13798. yyms1 = true
  13799. if yymg1 {
  13800. yymv1, yymok1 = yyv1[yymk1]
  13801. if yymok1 {
  13802. yyms1 = false
  13803. }
  13804. } else {
  13805. yymv1 = nil
  13806. }
  13807. z.DecReadMapElemValue()
  13808. yymdn1 = false
  13809. if r.TryNil() {
  13810. yymdn1 = true
  13811. } else {
  13812. if yymv1 == nil {
  13813. yymv1 = new(TestStrucFlex)
  13814. }
  13815. yymv1.CodecDecodeSelf(d)
  13816. }
  13817. if yymdn1 {
  13818. if z.DecBasicHandle().DeleteOnNilMapValue {
  13819. delete(yyv1, yymk1)
  13820. } else {
  13821. yyv1[yymk1] = nil
  13822. }
  13823. } else if yyms1 && yyv1 != nil {
  13824. yyv1[yymk1] = yymv1
  13825. }
  13826. }
  13827. } // else len==0: TODO: Should we clear map entries?
  13828. z.DecReadMapEnd()
  13829. }
  13830. }
  13831. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  13832. var h codecSelfer19780
  13833. z, r := GenHelperEncoder(e)
  13834. _, _, _ = h, z, r
  13835. if v == nil {
  13836. r.EncodeNil()
  13837. return
  13838. }
  13839. z.EncWriteMapStart(len(v))
  13840. for yyk1, yyv1 := range v {
  13841. z.EncWriteMapElemKey()
  13842. if z.EncBasicHandle().StringToRaw {
  13843. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13844. } else {
  13845. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13846. }
  13847. z.EncWriteMapElemValue()
  13848. yy3 := &yyv1
  13849. yy3.CodecEncodeSelf(e)
  13850. }
  13851. z.EncWriteMapEnd()
  13852. }
  13853. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  13854. var h codecSelfer19780
  13855. z, r := GenHelperDecoder(d)
  13856. _, _, _ = h, z, r
  13857. yyv1 := *v
  13858. yyl1 := z.DecReadMapStart()
  13859. if yyl1 == codecSelferDecContainerLenNil19780 {
  13860. *v = nil
  13861. } else {
  13862. if yyv1 == nil {
  13863. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1536)
  13864. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  13865. *v = yyv1
  13866. }
  13867. var yymk1 string
  13868. var yymv1 TestStrucFlex
  13869. var yymg1, yymdn1 bool
  13870. if z.DecBasicHandle().MapValueReset {
  13871. yymg1 = true
  13872. }
  13873. if yyl1 != 0 {
  13874. yyhl1 := yyl1 > 0
  13875. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13876. z.DecReadMapElemKey()
  13877. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13878. if yymg1 {
  13879. yymv1 = yyv1[yymk1]
  13880. } else {
  13881. yymv1 = TestStrucFlex{}
  13882. }
  13883. z.DecReadMapElemValue()
  13884. yymdn1 = false
  13885. yymv1.CodecDecodeSelf(d)
  13886. if yymdn1 {
  13887. if z.DecBasicHandle().DeleteOnNilMapValue {
  13888. delete(yyv1, yymk1)
  13889. } else {
  13890. yyv1[yymk1] = TestStrucFlex{}
  13891. }
  13892. } else if yyv1 != nil {
  13893. yyv1[yymk1] = yymv1
  13894. }
  13895. }
  13896. } // else len==0: TODO: Should we clear map entries?
  13897. z.DecReadMapEnd()
  13898. }
  13899. }
  13900. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  13901. var h codecSelfer19780
  13902. z, r := GenHelperEncoder(e)
  13903. _, _, _ = h, z, r
  13904. if v == nil {
  13905. r.EncodeNil()
  13906. return
  13907. }
  13908. z.EncWriteArrayStart(len(v))
  13909. for _, yyv1 := range v {
  13910. z.EncWriteArrayElem()
  13911. if yyv1 == nil {
  13912. r.EncodeNil()
  13913. } else {
  13914. yyv1.CodecEncodeSelf(e)
  13915. }
  13916. }
  13917. z.EncWriteArrayEnd()
  13918. }
  13919. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  13920. var h codecSelfer19780
  13921. z, r := GenHelperDecoder(d)
  13922. _, _, _ = h, z, r
  13923. yyv1 := *v
  13924. yyh1, yyl1 := z.DecSliceHelperStart()
  13925. var yyc1 bool
  13926. _ = yyc1
  13927. if yyh1.IsNil {
  13928. if yyv1 != nil {
  13929. yyv1 = nil
  13930. yyc1 = true
  13931. }
  13932. } else if yyl1 == 0 {
  13933. if yyv1 == nil {
  13934. yyv1 = []*TestStrucFlex{}
  13935. yyc1 = true
  13936. } else if len(yyv1) != 0 {
  13937. yyv1 = yyv1[:0]
  13938. yyc1 = true
  13939. }
  13940. } else {
  13941. yyhl1 := yyl1 > 0
  13942. var yyrl1 int
  13943. _ = yyrl1
  13944. if yyhl1 {
  13945. if yyl1 > cap(yyv1) {
  13946. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13947. if yyrl1 <= cap(yyv1) {
  13948. yyv1 = yyv1[:yyrl1]
  13949. } else {
  13950. yyv1 = make([]*TestStrucFlex, yyrl1)
  13951. }
  13952. yyc1 = true
  13953. } else if yyl1 != len(yyv1) {
  13954. yyv1 = yyv1[:yyl1]
  13955. yyc1 = true
  13956. }
  13957. }
  13958. var yyj1 int
  13959. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13960. if yyj1 == 0 && yyv1 == nil {
  13961. if yyhl1 {
  13962. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13963. } else {
  13964. yyrl1 = 8
  13965. }
  13966. yyv1 = make([]*TestStrucFlex, yyrl1)
  13967. yyc1 = true
  13968. }
  13969. yyh1.ElemContainerState(yyj1)
  13970. var yydb1 bool
  13971. if yyj1 >= len(yyv1) {
  13972. yyv1 = append(yyv1, nil)
  13973. yyc1 = true
  13974. }
  13975. if yydb1 {
  13976. z.DecSwallow()
  13977. } else {
  13978. if r.TryNil() {
  13979. yyv1[yyj1] = nil
  13980. } else {
  13981. if yyv1[yyj1] == nil {
  13982. yyv1[yyj1] = new(TestStrucFlex)
  13983. }
  13984. yyv1[yyj1].CodecDecodeSelf(d)
  13985. }
  13986. }
  13987. }
  13988. if yyj1 < len(yyv1) {
  13989. yyv1 = yyv1[:yyj1]
  13990. yyc1 = true
  13991. } else if yyj1 == 0 && yyv1 == nil {
  13992. yyv1 = make([]*TestStrucFlex, 0)
  13993. yyc1 = true
  13994. }
  13995. }
  13996. yyh1.End()
  13997. if yyc1 {
  13998. *v = yyv1
  13999. }
  14000. }