values_codecgen_generated_test.go 305 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107
  1. // +build codecgen generated
  2. // Code generated by codecgen - DO NOT EDIT.
  3. package codec
  4. import (
  5. "errors"
  6. "runtime"
  7. "strconv"
  8. "time"
  9. )
  10. const (
  11. // ----- content types ----
  12. codecSelferCcUTF819780 = 1
  13. codecSelferCcRAW19780 = 255
  14. // ----- value types used ----
  15. codecSelferValueTypeArray19780 = 10
  16. codecSelferValueTypeMap19780 = 9
  17. codecSelferValueTypeString19780 = 6
  18. codecSelferValueTypeInt19780 = 2
  19. codecSelferValueTypeUint19780 = 3
  20. codecSelferValueTypeFloat19780 = 4
  21. codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
  22. )
  23. var (
  24. errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
  25. )
  26. type codecSelfer19780 struct{}
  27. func codecSelfer19780False() bool { return false }
  28. func init() {
  29. if GenVersion != 12 {
  30. _, file, _, _ := runtime.Caller(0)
  31. ver := strconv.FormatInt(int64(GenVersion), 10)
  32. panic("codecgen version mismatch: current: 12, need " + ver + ". Re-generate file: " + file)
  33. }
  34. if false { // reference the types, but skip this branch at build/run time
  35. var _ byte
  36. var _ time.Time
  37. }
  38. }
  39. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  40. var h codecSelfer19780
  41. z, r := GenHelperEncoder(e)
  42. _, _, _ = h, z, r
  43. if x == nil {
  44. r.EncodeNil()
  45. } else {
  46. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  47. }
  48. }
  49. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  50. var h codecSelfer19780
  51. z, r := GenHelperDecoder(d)
  52. _, _, _ = h, z, r
  53. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  54. }
  55. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  56. var h codecSelfer19780
  57. z, r := GenHelperEncoder(e)
  58. _, _, _ = h, z, r
  59. if x == nil {
  60. r.EncodeNil()
  61. } else {
  62. h.encwrapSliceString((wrapSliceString)(x), e)
  63. }
  64. }
  65. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  66. var h codecSelfer19780
  67. z, r := GenHelperDecoder(d)
  68. _, _, _ = h, z, r
  69. h.decwrapSliceString((*wrapSliceString)(x), d)
  70. }
  71. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  72. var h codecSelfer19780
  73. z, r := GenHelperEncoder(e)
  74. _, _, _ = h, z, r
  75. r.EncodeUint(uint64(x))
  76. }
  77. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  78. var h codecSelfer19780
  79. z, r := GenHelperDecoder(d)
  80. _, _, _ = h, z, r
  81. *x = (wrapUint64)(r.DecodeUint64())
  82. }
  83. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  84. var h codecSelfer19780
  85. z, r := GenHelperEncoder(e)
  86. _, _, _ = h, z, r
  87. if z.EncBasicHandle().StringToRaw {
  88. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  89. } else {
  90. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  91. }
  92. }
  93. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  94. var h codecSelfer19780
  95. z, r := GenHelperDecoder(d)
  96. _, _, _ = h, z, r
  97. *x = (wrapString)(r.DecodeString())
  98. }
  99. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  100. var h codecSelfer19780
  101. z, r := GenHelperEncoder(e)
  102. _, _, _ = h, z, r
  103. if x == nil {
  104. r.EncodeNil()
  105. } else {
  106. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  107. }
  108. }
  109. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  110. var h codecSelfer19780
  111. z, r := GenHelperDecoder(d)
  112. _, _, _ = h, z, r
  113. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  114. }
  115. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  116. var h codecSelfer19780
  117. z, r := GenHelperEncoder(e)
  118. _, _, _ = h, z, r
  119. if x == nil {
  120. r.EncodeNil()
  121. } else {
  122. h.encwrapStringSlice((wrapStringSlice)(x), e)
  123. }
  124. }
  125. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  126. var h codecSelfer19780
  127. z, r := GenHelperDecoder(d)
  128. _, _, _ = h, z, r
  129. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  130. }
  131. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  132. var h codecSelfer19780
  133. z, r := GenHelperEncoder(e)
  134. _, _, _ = h, z, r
  135. if x == nil {
  136. r.EncodeNil()
  137. } else {
  138. yysep2 := !z.EncBinary()
  139. yy2arr2 := z.EncBasicHandle().StructToArray
  140. _, _ = yysep2, yy2arr2
  141. const yyr2 bool = false // struct tag has 'toArray'
  142. if yyr2 || yy2arr2 {
  143. z.EncWriteArrayStart(2)
  144. z.EncWriteArrayElem()
  145. if z.EncBasicHandle().StringToRaw {
  146. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  147. } else {
  148. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  149. }
  150. z.EncWriteArrayElem()
  151. r.EncodeUint(uint64(x.U))
  152. z.EncWriteArrayEnd()
  153. } else {
  154. z.EncWriteMapStart(2)
  155. z.EncWriteMapElemKey()
  156. if z.IsJSONHandle() {
  157. z.WriteStr("\"S\"")
  158. } else {
  159. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  160. }
  161. z.EncWriteMapElemValue()
  162. if z.EncBasicHandle().StringToRaw {
  163. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  164. } else {
  165. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  166. }
  167. z.EncWriteMapElemKey()
  168. if z.IsJSONHandle() {
  169. z.WriteStr("\"U\"")
  170. } else {
  171. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  172. }
  173. z.EncWriteMapElemValue()
  174. r.EncodeUint(uint64(x.U))
  175. z.EncWriteMapEnd()
  176. }
  177. }
  178. }
  179. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  180. var h codecSelfer19780
  181. z, r := GenHelperDecoder(d)
  182. _, _, _ = h, z, r
  183. yyct2 := r.ContainerType()
  184. if yyct2 == codecSelferValueTypeMap19780 {
  185. yyl2 := z.DecReadMapStart()
  186. if yyl2 == 0 {
  187. z.DecReadMapEnd()
  188. } else {
  189. x.codecDecodeSelfFromMap(yyl2, d)
  190. }
  191. } else if yyct2 == codecSelferValueTypeArray19780 {
  192. yyl2 := z.DecReadArrayStart()
  193. if yyl2 == 0 {
  194. z.DecReadArrayEnd()
  195. } else {
  196. x.codecDecodeSelfFromArray(yyl2, d)
  197. }
  198. } else {
  199. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  200. }
  201. }
  202. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  203. var h codecSelfer19780
  204. z, r := GenHelperDecoder(d)
  205. _, _, _ = h, z, r
  206. var yyhl3 bool = l >= 0
  207. for yyj3 := 0; ; yyj3++ {
  208. if yyhl3 {
  209. if yyj3 >= l {
  210. break
  211. }
  212. } else {
  213. if r.CheckBreak() {
  214. break
  215. }
  216. }
  217. z.DecReadMapElemKey()
  218. yys3 := z.StringView(r.DecodeStringAsBytes())
  219. z.DecReadMapElemValue()
  220. switch yys3 {
  221. case "S":
  222. if r.TryDecodeAsNil() {
  223. x.S = ""
  224. } else {
  225. x.S = (string)(r.DecodeString())
  226. }
  227. case "U":
  228. if r.TryDecodeAsNil() {
  229. x.U = 0
  230. } else {
  231. x.U = (uint64)(r.DecodeUint64())
  232. }
  233. default:
  234. z.DecStructFieldNotFound(-1, yys3)
  235. } // end switch yys3
  236. } // end for yyj3
  237. z.DecReadMapEnd()
  238. }
  239. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  240. var h codecSelfer19780
  241. z, r := GenHelperDecoder(d)
  242. _, _, _ = h, z, r
  243. var yyj6 int
  244. var yyb6 bool
  245. var yyhl6 bool = l >= 0
  246. yyj6++
  247. if yyhl6 {
  248. yyb6 = yyj6 > l
  249. } else {
  250. yyb6 = r.CheckBreak()
  251. }
  252. if yyb6 {
  253. z.DecReadArrayEnd()
  254. return
  255. }
  256. z.DecReadArrayElem()
  257. if r.TryDecodeAsNil() {
  258. x.S = ""
  259. } else {
  260. x.S = (string)(r.DecodeString())
  261. }
  262. yyj6++
  263. if yyhl6 {
  264. yyb6 = yyj6 > l
  265. } else {
  266. yyb6 = r.CheckBreak()
  267. }
  268. if yyb6 {
  269. z.DecReadArrayEnd()
  270. return
  271. }
  272. z.DecReadArrayElem()
  273. if r.TryDecodeAsNil() {
  274. x.U = 0
  275. } else {
  276. x.U = (uint64)(r.DecodeUint64())
  277. }
  278. for {
  279. yyj6++
  280. if yyhl6 {
  281. yyb6 = yyj6 > l
  282. } else {
  283. yyb6 = r.CheckBreak()
  284. }
  285. if yyb6 {
  286. break
  287. }
  288. z.DecReadArrayElem()
  289. z.DecStructFieldNotFound(yyj6-1, "")
  290. }
  291. z.DecReadArrayEnd()
  292. }
  293. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  294. var h codecSelfer19780
  295. z, r := GenHelperEncoder(e)
  296. _, _, _ = h, z, r
  297. if x == nil {
  298. r.EncodeNil()
  299. } else {
  300. yysep2 := !z.EncBinary()
  301. yy2arr2 := z.EncBasicHandle().StructToArray
  302. _, _ = yysep2, yy2arr2
  303. const yyr2 bool = false // struct tag has 'toArray'
  304. if yyr2 || yy2arr2 {
  305. z.EncWriteArrayStart(15)
  306. z.EncWriteArrayElem()
  307. if z.EncBasicHandle().StringToRaw {
  308. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  309. } else {
  310. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  311. }
  312. z.EncWriteArrayElem()
  313. r.EncodeInt(int64(x.AI64))
  314. z.EncWriteArrayElem()
  315. r.EncodeInt(int64(x.AI16))
  316. z.EncWriteArrayElem()
  317. r.EncodeUint(uint64(x.AUi64))
  318. z.EncWriteArrayElem()
  319. z.F.EncSliceStringV(x.ASslice, e)
  320. z.EncWriteArrayElem()
  321. z.F.EncSliceInt64V(x.AI64slice, e)
  322. z.EncWriteArrayElem()
  323. z.F.EncSliceUint64V(x.AUi64slice, e)
  324. z.EncWriteArrayElem()
  325. z.F.EncSliceFloat64V(x.AF64slice, e)
  326. z.EncWriteArrayElem()
  327. z.F.EncSliceFloat32V(x.AF32slice, e)
  328. z.EncWriteArrayElem()
  329. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  330. z.EncWriteArrayElem()
  331. yy28 := &x.AI64arr0
  332. h.encArray0int64((*[0]int64)(yy28), e)
  333. z.EncWriteArrayElem()
  334. z.F.EncSliceInt64V(x.A164slice0, e)
  335. z.EncWriteArrayElem()
  336. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  337. z.EncWriteArrayElem()
  338. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  339. z.EncWriteArrayElem()
  340. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  341. z.EncWriteArrayEnd()
  342. } else {
  343. z.EncWriteMapStart(15)
  344. z.EncWriteMapElemKey()
  345. if z.IsJSONHandle() {
  346. z.WriteStr("\"AS\"")
  347. } else {
  348. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  349. }
  350. z.EncWriteMapElemValue()
  351. if z.EncBasicHandle().StringToRaw {
  352. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  353. } else {
  354. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  355. }
  356. z.EncWriteMapElemKey()
  357. if z.IsJSONHandle() {
  358. z.WriteStr("\"AI64\"")
  359. } else {
  360. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  361. }
  362. z.EncWriteMapElemValue()
  363. r.EncodeInt(int64(x.AI64))
  364. z.EncWriteMapElemKey()
  365. if z.IsJSONHandle() {
  366. z.WriteStr("\"AI16\"")
  367. } else {
  368. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  369. }
  370. z.EncWriteMapElemValue()
  371. r.EncodeInt(int64(x.AI16))
  372. z.EncWriteMapElemKey()
  373. if z.IsJSONHandle() {
  374. z.WriteStr("\"AUi64\"")
  375. } else {
  376. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  377. }
  378. z.EncWriteMapElemValue()
  379. r.EncodeUint(uint64(x.AUi64))
  380. z.EncWriteMapElemKey()
  381. if z.IsJSONHandle() {
  382. z.WriteStr("\"ASslice\"")
  383. } else {
  384. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  385. }
  386. z.EncWriteMapElemValue()
  387. z.F.EncSliceStringV(x.ASslice, e)
  388. z.EncWriteMapElemKey()
  389. if z.IsJSONHandle() {
  390. z.WriteStr("\"AI64slice\"")
  391. } else {
  392. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  393. }
  394. z.EncWriteMapElemValue()
  395. z.F.EncSliceInt64V(x.AI64slice, e)
  396. z.EncWriteMapElemKey()
  397. if z.IsJSONHandle() {
  398. z.WriteStr("\"AUi64slice\"")
  399. } else {
  400. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  401. }
  402. z.EncWriteMapElemValue()
  403. z.F.EncSliceUint64V(x.AUi64slice, e)
  404. z.EncWriteMapElemKey()
  405. if z.IsJSONHandle() {
  406. z.WriteStr("\"AF64slice\"")
  407. } else {
  408. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  409. }
  410. z.EncWriteMapElemValue()
  411. z.F.EncSliceFloat64V(x.AF64slice, e)
  412. z.EncWriteMapElemKey()
  413. if z.IsJSONHandle() {
  414. z.WriteStr("\"AF32slice\"")
  415. } else {
  416. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  417. }
  418. z.EncWriteMapElemValue()
  419. z.F.EncSliceFloat32V(x.AF32slice, e)
  420. z.EncWriteMapElemKey()
  421. if z.IsJSONHandle() {
  422. z.WriteStr("\"AMSU16\"")
  423. } else {
  424. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  425. }
  426. z.EncWriteMapElemValue()
  427. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  428. z.EncWriteMapElemKey()
  429. if z.IsJSONHandle() {
  430. z.WriteStr("\"AI64arr0\"")
  431. } else {
  432. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  433. }
  434. z.EncWriteMapElemValue()
  435. yy44 := &x.AI64arr0
  436. h.encArray0int64((*[0]int64)(yy44), e)
  437. z.EncWriteMapElemKey()
  438. if z.IsJSONHandle() {
  439. z.WriteStr("\"A164slice0\"")
  440. } else {
  441. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  442. }
  443. z.EncWriteMapElemValue()
  444. z.F.EncSliceInt64V(x.A164slice0, e)
  445. z.EncWriteMapElemKey()
  446. if z.IsJSONHandle() {
  447. z.WriteStr("\"AUi64sliceN\"")
  448. } else {
  449. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  450. }
  451. z.EncWriteMapElemValue()
  452. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  453. z.EncWriteMapElemKey()
  454. if z.IsJSONHandle() {
  455. z.WriteStr("\"AMSU16N\"")
  456. } else {
  457. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  458. }
  459. z.EncWriteMapElemValue()
  460. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  461. z.EncWriteMapElemKey()
  462. if z.IsJSONHandle() {
  463. z.WriteStr("\"AMSU16E\"")
  464. } else {
  465. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  466. }
  467. z.EncWriteMapElemValue()
  468. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  469. z.EncWriteMapEnd()
  470. }
  471. }
  472. }
  473. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  474. var h codecSelfer19780
  475. z, r := GenHelperDecoder(d)
  476. _, _, _ = h, z, r
  477. yyct2 := r.ContainerType()
  478. if yyct2 == codecSelferValueTypeMap19780 {
  479. yyl2 := z.DecReadMapStart()
  480. if yyl2 == 0 {
  481. z.DecReadMapEnd()
  482. } else {
  483. x.codecDecodeSelfFromMap(yyl2, d)
  484. }
  485. } else if yyct2 == codecSelferValueTypeArray19780 {
  486. yyl2 := z.DecReadArrayStart()
  487. if yyl2 == 0 {
  488. z.DecReadArrayEnd()
  489. } else {
  490. x.codecDecodeSelfFromArray(yyl2, d)
  491. }
  492. } else {
  493. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  494. }
  495. }
  496. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  497. var h codecSelfer19780
  498. z, r := GenHelperDecoder(d)
  499. _, _, _ = h, z, r
  500. var yyhl3 bool = l >= 0
  501. for yyj3 := 0; ; yyj3++ {
  502. if yyhl3 {
  503. if yyj3 >= l {
  504. break
  505. }
  506. } else {
  507. if r.CheckBreak() {
  508. break
  509. }
  510. }
  511. z.DecReadMapElemKey()
  512. yys3 := z.StringView(r.DecodeStringAsBytes())
  513. z.DecReadMapElemValue()
  514. switch yys3 {
  515. case "AS":
  516. if r.TryDecodeAsNil() {
  517. x.AS = ""
  518. } else {
  519. x.AS = (string)(r.DecodeString())
  520. }
  521. case "AI64":
  522. if r.TryDecodeAsNil() {
  523. x.AI64 = 0
  524. } else {
  525. x.AI64 = (int64)(r.DecodeInt64())
  526. }
  527. case "AI16":
  528. if r.TryDecodeAsNil() {
  529. x.AI16 = 0
  530. } else {
  531. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  532. }
  533. case "AUi64":
  534. if r.TryDecodeAsNil() {
  535. x.AUi64 = 0
  536. } else {
  537. x.AUi64 = (uint64)(r.DecodeUint64())
  538. }
  539. case "ASslice":
  540. if r.TryDecodeAsNil() {
  541. x.ASslice = nil
  542. } else {
  543. z.F.DecSliceStringX(&x.ASslice, d)
  544. }
  545. case "AI64slice":
  546. if r.TryDecodeAsNil() {
  547. x.AI64slice = nil
  548. } else {
  549. z.F.DecSliceInt64X(&x.AI64slice, d)
  550. }
  551. case "AUi64slice":
  552. if r.TryDecodeAsNil() {
  553. x.AUi64slice = nil
  554. } else {
  555. z.F.DecSliceUint64X(&x.AUi64slice, d)
  556. }
  557. case "AF64slice":
  558. if r.TryDecodeAsNil() {
  559. x.AF64slice = nil
  560. } else {
  561. z.F.DecSliceFloat64X(&x.AF64slice, d)
  562. }
  563. case "AF32slice":
  564. if r.TryDecodeAsNil() {
  565. x.AF32slice = nil
  566. } else {
  567. z.F.DecSliceFloat32X(&x.AF32slice, d)
  568. }
  569. case "AMSU16":
  570. if r.TryDecodeAsNil() {
  571. x.AMSU16 = nil
  572. } else {
  573. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  574. }
  575. case "AI64arr0":
  576. if r.TryDecodeAsNil() {
  577. x.AI64arr0 = [0]int64{}
  578. } else {
  579. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  580. }
  581. case "A164slice0":
  582. if r.TryDecodeAsNil() {
  583. x.A164slice0 = nil
  584. } else {
  585. z.F.DecSliceInt64X(&x.A164slice0, d)
  586. }
  587. case "AUi64sliceN":
  588. if r.TryDecodeAsNil() {
  589. x.AUi64sliceN = nil
  590. } else {
  591. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  592. }
  593. case "AMSU16N":
  594. if r.TryDecodeAsNil() {
  595. x.AMSU16N = nil
  596. } else {
  597. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  598. }
  599. case "AMSU16E":
  600. if r.TryDecodeAsNil() {
  601. x.AMSU16E = nil
  602. } else {
  603. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  604. }
  605. default:
  606. z.DecStructFieldNotFound(-1, yys3)
  607. } // end switch yys3
  608. } // end for yyj3
  609. z.DecReadMapEnd()
  610. }
  611. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  612. var h codecSelfer19780
  613. z, r := GenHelperDecoder(d)
  614. _, _, _ = h, z, r
  615. var yyj30 int
  616. var yyb30 bool
  617. var yyhl30 bool = l >= 0
  618. yyj30++
  619. if yyhl30 {
  620. yyb30 = yyj30 > l
  621. } else {
  622. yyb30 = r.CheckBreak()
  623. }
  624. if yyb30 {
  625. z.DecReadArrayEnd()
  626. return
  627. }
  628. z.DecReadArrayElem()
  629. if r.TryDecodeAsNil() {
  630. x.AS = ""
  631. } else {
  632. x.AS = (string)(r.DecodeString())
  633. }
  634. yyj30++
  635. if yyhl30 {
  636. yyb30 = yyj30 > l
  637. } else {
  638. yyb30 = r.CheckBreak()
  639. }
  640. if yyb30 {
  641. z.DecReadArrayEnd()
  642. return
  643. }
  644. z.DecReadArrayElem()
  645. if r.TryDecodeAsNil() {
  646. x.AI64 = 0
  647. } else {
  648. x.AI64 = (int64)(r.DecodeInt64())
  649. }
  650. yyj30++
  651. if yyhl30 {
  652. yyb30 = yyj30 > l
  653. } else {
  654. yyb30 = r.CheckBreak()
  655. }
  656. if yyb30 {
  657. z.DecReadArrayEnd()
  658. return
  659. }
  660. z.DecReadArrayElem()
  661. if r.TryDecodeAsNil() {
  662. x.AI16 = 0
  663. } else {
  664. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  665. }
  666. yyj30++
  667. if yyhl30 {
  668. yyb30 = yyj30 > l
  669. } else {
  670. yyb30 = r.CheckBreak()
  671. }
  672. if yyb30 {
  673. z.DecReadArrayEnd()
  674. return
  675. }
  676. z.DecReadArrayElem()
  677. if r.TryDecodeAsNil() {
  678. x.AUi64 = 0
  679. } else {
  680. x.AUi64 = (uint64)(r.DecodeUint64())
  681. }
  682. yyj30++
  683. if yyhl30 {
  684. yyb30 = yyj30 > l
  685. } else {
  686. yyb30 = r.CheckBreak()
  687. }
  688. if yyb30 {
  689. z.DecReadArrayEnd()
  690. return
  691. }
  692. z.DecReadArrayElem()
  693. if r.TryDecodeAsNil() {
  694. x.ASslice = nil
  695. } else {
  696. z.F.DecSliceStringX(&x.ASslice, d)
  697. }
  698. yyj30++
  699. if yyhl30 {
  700. yyb30 = yyj30 > l
  701. } else {
  702. yyb30 = r.CheckBreak()
  703. }
  704. if yyb30 {
  705. z.DecReadArrayEnd()
  706. return
  707. }
  708. z.DecReadArrayElem()
  709. if r.TryDecodeAsNil() {
  710. x.AI64slice = nil
  711. } else {
  712. z.F.DecSliceInt64X(&x.AI64slice, d)
  713. }
  714. yyj30++
  715. if yyhl30 {
  716. yyb30 = yyj30 > l
  717. } else {
  718. yyb30 = r.CheckBreak()
  719. }
  720. if yyb30 {
  721. z.DecReadArrayEnd()
  722. return
  723. }
  724. z.DecReadArrayElem()
  725. if r.TryDecodeAsNil() {
  726. x.AUi64slice = nil
  727. } else {
  728. z.F.DecSliceUint64X(&x.AUi64slice, d)
  729. }
  730. yyj30++
  731. if yyhl30 {
  732. yyb30 = yyj30 > l
  733. } else {
  734. yyb30 = r.CheckBreak()
  735. }
  736. if yyb30 {
  737. z.DecReadArrayEnd()
  738. return
  739. }
  740. z.DecReadArrayElem()
  741. if r.TryDecodeAsNil() {
  742. x.AF64slice = nil
  743. } else {
  744. z.F.DecSliceFloat64X(&x.AF64slice, d)
  745. }
  746. yyj30++
  747. if yyhl30 {
  748. yyb30 = yyj30 > l
  749. } else {
  750. yyb30 = r.CheckBreak()
  751. }
  752. if yyb30 {
  753. z.DecReadArrayEnd()
  754. return
  755. }
  756. z.DecReadArrayElem()
  757. if r.TryDecodeAsNil() {
  758. x.AF32slice = nil
  759. } else {
  760. z.F.DecSliceFloat32X(&x.AF32slice, d)
  761. }
  762. yyj30++
  763. if yyhl30 {
  764. yyb30 = yyj30 > l
  765. } else {
  766. yyb30 = r.CheckBreak()
  767. }
  768. if yyb30 {
  769. z.DecReadArrayEnd()
  770. return
  771. }
  772. z.DecReadArrayElem()
  773. if r.TryDecodeAsNil() {
  774. x.AMSU16 = nil
  775. } else {
  776. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  777. }
  778. yyj30++
  779. if yyhl30 {
  780. yyb30 = yyj30 > l
  781. } else {
  782. yyb30 = r.CheckBreak()
  783. }
  784. if yyb30 {
  785. z.DecReadArrayEnd()
  786. return
  787. }
  788. z.DecReadArrayElem()
  789. if r.TryDecodeAsNil() {
  790. x.AI64arr0 = [0]int64{}
  791. } else {
  792. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  793. }
  794. yyj30++
  795. if yyhl30 {
  796. yyb30 = yyj30 > l
  797. } else {
  798. yyb30 = r.CheckBreak()
  799. }
  800. if yyb30 {
  801. z.DecReadArrayEnd()
  802. return
  803. }
  804. z.DecReadArrayElem()
  805. if r.TryDecodeAsNil() {
  806. x.A164slice0 = nil
  807. } else {
  808. z.F.DecSliceInt64X(&x.A164slice0, d)
  809. }
  810. yyj30++
  811. if yyhl30 {
  812. yyb30 = yyj30 > l
  813. } else {
  814. yyb30 = r.CheckBreak()
  815. }
  816. if yyb30 {
  817. z.DecReadArrayEnd()
  818. return
  819. }
  820. z.DecReadArrayElem()
  821. if r.TryDecodeAsNil() {
  822. x.AUi64sliceN = nil
  823. } else {
  824. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  825. }
  826. yyj30++
  827. if yyhl30 {
  828. yyb30 = yyj30 > l
  829. } else {
  830. yyb30 = r.CheckBreak()
  831. }
  832. if yyb30 {
  833. z.DecReadArrayEnd()
  834. return
  835. }
  836. z.DecReadArrayElem()
  837. if r.TryDecodeAsNil() {
  838. x.AMSU16N = nil
  839. } else {
  840. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  841. }
  842. yyj30++
  843. if yyhl30 {
  844. yyb30 = yyj30 > l
  845. } else {
  846. yyb30 = r.CheckBreak()
  847. }
  848. if yyb30 {
  849. z.DecReadArrayEnd()
  850. return
  851. }
  852. z.DecReadArrayElem()
  853. if r.TryDecodeAsNil() {
  854. x.AMSU16E = nil
  855. } else {
  856. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  857. }
  858. for {
  859. yyj30++
  860. if yyhl30 {
  861. yyb30 = yyj30 > l
  862. } else {
  863. yyb30 = r.CheckBreak()
  864. }
  865. if yyb30 {
  866. break
  867. }
  868. z.DecReadArrayElem()
  869. z.DecStructFieldNotFound(yyj30-1, "")
  870. }
  871. z.DecReadArrayEnd()
  872. }
  873. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  874. var h codecSelfer19780
  875. z, r := GenHelperEncoder(e)
  876. _, _, _ = h, z, r
  877. if x == nil {
  878. r.EncodeNil()
  879. } else {
  880. yysep2 := !z.EncBinary()
  881. yy2arr2 := z.EncBasicHandle().StructToArray
  882. _, _ = yysep2, yy2arr2
  883. const yyr2 bool = false // struct tag has 'toArray'
  884. if yyr2 || yy2arr2 {
  885. z.EncWriteArrayStart(17)
  886. z.EncWriteArrayElem()
  887. if z.EncBasicHandle().StringToRaw {
  888. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  889. } else {
  890. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  891. }
  892. z.EncWriteArrayElem()
  893. r.EncodeInt(int64(x.I64))
  894. z.EncWriteArrayElem()
  895. r.EncodeInt(int64(x.I8))
  896. z.EncWriteArrayElem()
  897. r.EncodeUint(uint64(x.Ui64))
  898. z.EncWriteArrayElem()
  899. r.EncodeUint(uint64(x.Ui8))
  900. z.EncWriteArrayElem()
  901. r.EncodeFloat64(float64(x.F64))
  902. z.EncWriteArrayElem()
  903. r.EncodeFloat32(float32(x.F32))
  904. z.EncWriteArrayElem()
  905. r.EncodeBool(bool(x.B))
  906. z.EncWriteArrayElem()
  907. z.F.EncSliceStringV(x.Sslice, e)
  908. z.EncWriteArrayElem()
  909. z.F.EncSliceInt16V(x.I16slice, e)
  910. z.EncWriteArrayElem()
  911. z.F.EncSliceUint64V(x.Ui64slice, e)
  912. z.EncWriteArrayElem()
  913. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  914. z.EncWriteArrayElem()
  915. z.F.EncSliceBoolV(x.Bslice, e)
  916. z.EncWriteArrayElem()
  917. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  918. z.EncWriteArrayElem()
  919. x.WrapSliceInt64.CodecEncodeSelf(e)
  920. z.EncWriteArrayElem()
  921. x.WrapSliceString.CodecEncodeSelf(e)
  922. z.EncWriteArrayElem()
  923. z.F.EncMapStringInt64V(x.Msi64, e)
  924. z.EncWriteArrayEnd()
  925. } else {
  926. z.EncWriteMapStart(17)
  927. z.EncWriteMapElemKey()
  928. if z.IsJSONHandle() {
  929. z.WriteStr("\"S\"")
  930. } else {
  931. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  932. }
  933. z.EncWriteMapElemValue()
  934. if z.EncBasicHandle().StringToRaw {
  935. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  936. } else {
  937. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  938. }
  939. z.EncWriteMapElemKey()
  940. if z.IsJSONHandle() {
  941. z.WriteStr("\"I64\"")
  942. } else {
  943. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  944. }
  945. z.EncWriteMapElemValue()
  946. r.EncodeInt(int64(x.I64))
  947. z.EncWriteMapElemKey()
  948. if z.IsJSONHandle() {
  949. z.WriteStr("\"I8\"")
  950. } else {
  951. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  952. }
  953. z.EncWriteMapElemValue()
  954. r.EncodeInt(int64(x.I8))
  955. z.EncWriteMapElemKey()
  956. if z.IsJSONHandle() {
  957. z.WriteStr("\"Ui64\"")
  958. } else {
  959. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  960. }
  961. z.EncWriteMapElemValue()
  962. r.EncodeUint(uint64(x.Ui64))
  963. z.EncWriteMapElemKey()
  964. if z.IsJSONHandle() {
  965. z.WriteStr("\"Ui8\"")
  966. } else {
  967. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  968. }
  969. z.EncWriteMapElemValue()
  970. r.EncodeUint(uint64(x.Ui8))
  971. z.EncWriteMapElemKey()
  972. if z.IsJSONHandle() {
  973. z.WriteStr("\"F64\"")
  974. } else {
  975. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  976. }
  977. z.EncWriteMapElemValue()
  978. r.EncodeFloat64(float64(x.F64))
  979. z.EncWriteMapElemKey()
  980. if z.IsJSONHandle() {
  981. z.WriteStr("\"F32\"")
  982. } else {
  983. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  984. }
  985. z.EncWriteMapElemValue()
  986. r.EncodeFloat32(float32(x.F32))
  987. z.EncWriteMapElemKey()
  988. if z.IsJSONHandle() {
  989. z.WriteStr("\"B\"")
  990. } else {
  991. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  992. }
  993. z.EncWriteMapElemValue()
  994. r.EncodeBool(bool(x.B))
  995. z.EncWriteMapElemKey()
  996. if z.IsJSONHandle() {
  997. z.WriteStr("\"Sslice\"")
  998. } else {
  999. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1000. }
  1001. z.EncWriteMapElemValue()
  1002. z.F.EncSliceStringV(x.Sslice, e)
  1003. z.EncWriteMapElemKey()
  1004. if z.IsJSONHandle() {
  1005. z.WriteStr("\"I16slice\"")
  1006. } else {
  1007. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1008. }
  1009. z.EncWriteMapElemValue()
  1010. z.F.EncSliceInt16V(x.I16slice, e)
  1011. z.EncWriteMapElemKey()
  1012. if z.IsJSONHandle() {
  1013. z.WriteStr("\"Ui64slice\"")
  1014. } else {
  1015. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1016. }
  1017. z.EncWriteMapElemValue()
  1018. z.F.EncSliceUint64V(x.Ui64slice, e)
  1019. z.EncWriteMapElemKey()
  1020. if z.IsJSONHandle() {
  1021. z.WriteStr("\"Ui8slice\"")
  1022. } else {
  1023. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1024. }
  1025. z.EncWriteMapElemValue()
  1026. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1027. z.EncWriteMapElemKey()
  1028. if z.IsJSONHandle() {
  1029. z.WriteStr("\"Bslice\"")
  1030. } else {
  1031. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1032. }
  1033. z.EncWriteMapElemValue()
  1034. z.F.EncSliceBoolV(x.Bslice, e)
  1035. z.EncWriteMapElemKey()
  1036. if z.IsJSONHandle() {
  1037. z.WriteStr("\"Iptrslice\"")
  1038. } else {
  1039. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1040. }
  1041. z.EncWriteMapElemValue()
  1042. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1043. z.EncWriteMapElemKey()
  1044. if z.IsJSONHandle() {
  1045. z.WriteStr("\"WrapSliceInt64\"")
  1046. } else {
  1047. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1048. }
  1049. z.EncWriteMapElemValue()
  1050. x.WrapSliceInt64.CodecEncodeSelf(e)
  1051. z.EncWriteMapElemKey()
  1052. if z.IsJSONHandle() {
  1053. z.WriteStr("\"WrapSliceString\"")
  1054. } else {
  1055. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1056. }
  1057. z.EncWriteMapElemValue()
  1058. x.WrapSliceString.CodecEncodeSelf(e)
  1059. z.EncWriteMapElemKey()
  1060. if z.IsJSONHandle() {
  1061. z.WriteStr("\"Msi64\"")
  1062. } else {
  1063. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1064. }
  1065. z.EncWriteMapElemValue()
  1066. z.F.EncMapStringInt64V(x.Msi64, e)
  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 == codecSelferValueTypeMap19780 {
  1077. yyl2 := z.DecReadMapStart()
  1078. if yyl2 == 0 {
  1079. z.DecReadMapEnd()
  1080. } else {
  1081. x.codecDecodeSelfFromMap(yyl2, d)
  1082. }
  1083. } else if yyct2 == codecSelferValueTypeArray19780 {
  1084. yyl2 := z.DecReadArrayStart()
  1085. if yyl2 == 0 {
  1086. z.DecReadArrayEnd()
  1087. } else {
  1088. x.codecDecodeSelfFromArray(yyl2, d)
  1089. }
  1090. } else {
  1091. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  1092. }
  1093. }
  1094. func (x *testSimpleFields) codecDecodeSelfFromMap(l int, d *Decoder) {
  1095. var h codecSelfer19780
  1096. z, r := GenHelperDecoder(d)
  1097. _, _, _ = h, z, r
  1098. var yyhl3 bool = l >= 0
  1099. for yyj3 := 0; ; yyj3++ {
  1100. if yyhl3 {
  1101. if yyj3 >= l {
  1102. break
  1103. }
  1104. } else {
  1105. if r.CheckBreak() {
  1106. break
  1107. }
  1108. }
  1109. z.DecReadMapElemKey()
  1110. yys3 := z.StringView(r.DecodeStringAsBytes())
  1111. z.DecReadMapElemValue()
  1112. switch yys3 {
  1113. case "S":
  1114. if r.TryDecodeAsNil() {
  1115. x.S = ""
  1116. } else {
  1117. x.S = (string)(r.DecodeString())
  1118. }
  1119. case "I64":
  1120. if r.TryDecodeAsNil() {
  1121. x.I64 = 0
  1122. } else {
  1123. x.I64 = (int64)(r.DecodeInt64())
  1124. }
  1125. case "I8":
  1126. if r.TryDecodeAsNil() {
  1127. x.I8 = 0
  1128. } else {
  1129. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1130. }
  1131. case "Ui64":
  1132. if r.TryDecodeAsNil() {
  1133. x.Ui64 = 0
  1134. } else {
  1135. x.Ui64 = (uint64)(r.DecodeUint64())
  1136. }
  1137. case "Ui8":
  1138. if r.TryDecodeAsNil() {
  1139. x.Ui8 = 0
  1140. } else {
  1141. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1142. }
  1143. case "F64":
  1144. if r.TryDecodeAsNil() {
  1145. x.F64 = 0
  1146. } else {
  1147. x.F64 = (float64)(r.DecodeFloat64())
  1148. }
  1149. case "F32":
  1150. if r.TryDecodeAsNil() {
  1151. x.F32 = 0
  1152. } else {
  1153. x.F32 = (float32)(z.DecDecodeFloat32())
  1154. }
  1155. case "B":
  1156. if r.TryDecodeAsNil() {
  1157. x.B = false
  1158. } else {
  1159. x.B = (bool)(r.DecodeBool())
  1160. }
  1161. case "Sslice":
  1162. if r.TryDecodeAsNil() {
  1163. x.Sslice = nil
  1164. } else {
  1165. z.F.DecSliceStringX(&x.Sslice, d)
  1166. }
  1167. case "I16slice":
  1168. if r.TryDecodeAsNil() {
  1169. x.I16slice = nil
  1170. } else {
  1171. z.F.DecSliceInt16X(&x.I16slice, d)
  1172. }
  1173. case "Ui64slice":
  1174. if r.TryDecodeAsNil() {
  1175. x.Ui64slice = nil
  1176. } else {
  1177. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1178. }
  1179. case "Ui8slice":
  1180. if r.TryDecodeAsNil() {
  1181. x.Ui8slice = nil
  1182. } else {
  1183. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1184. }
  1185. case "Bslice":
  1186. if r.TryDecodeAsNil() {
  1187. x.Bslice = nil
  1188. } else {
  1189. z.F.DecSliceBoolX(&x.Bslice, d)
  1190. }
  1191. case "Iptrslice":
  1192. if r.TryDecodeAsNil() {
  1193. x.Iptrslice = nil
  1194. } else {
  1195. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1196. }
  1197. case "WrapSliceInt64":
  1198. if r.TryDecodeAsNil() {
  1199. x.WrapSliceInt64 = nil
  1200. } else {
  1201. x.WrapSliceInt64.CodecDecodeSelf(d)
  1202. }
  1203. case "WrapSliceString":
  1204. if r.TryDecodeAsNil() {
  1205. x.WrapSliceString = nil
  1206. } else {
  1207. x.WrapSliceString.CodecDecodeSelf(d)
  1208. }
  1209. case "Msi64":
  1210. if r.TryDecodeAsNil() {
  1211. x.Msi64 = nil
  1212. } else {
  1213. z.F.DecMapStringInt64X(&x.Msi64, d)
  1214. }
  1215. default:
  1216. z.DecStructFieldNotFound(-1, yys3)
  1217. } // end switch yys3
  1218. } // end for yyj3
  1219. z.DecReadMapEnd()
  1220. }
  1221. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1222. var h codecSelfer19780
  1223. z, r := GenHelperDecoder(d)
  1224. _, _, _ = h, z, r
  1225. var yyj28 int
  1226. var yyb28 bool
  1227. var yyhl28 bool = l >= 0
  1228. yyj28++
  1229. if yyhl28 {
  1230. yyb28 = yyj28 > l
  1231. } else {
  1232. yyb28 = r.CheckBreak()
  1233. }
  1234. if yyb28 {
  1235. z.DecReadArrayEnd()
  1236. return
  1237. }
  1238. z.DecReadArrayElem()
  1239. if r.TryDecodeAsNil() {
  1240. x.S = ""
  1241. } else {
  1242. x.S = (string)(r.DecodeString())
  1243. }
  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. if r.TryDecodeAsNil() {
  1256. x.I64 = 0
  1257. } else {
  1258. x.I64 = (int64)(r.DecodeInt64())
  1259. }
  1260. yyj28++
  1261. if yyhl28 {
  1262. yyb28 = yyj28 > l
  1263. } else {
  1264. yyb28 = r.CheckBreak()
  1265. }
  1266. if yyb28 {
  1267. z.DecReadArrayEnd()
  1268. return
  1269. }
  1270. z.DecReadArrayElem()
  1271. if r.TryDecodeAsNil() {
  1272. x.I8 = 0
  1273. } else {
  1274. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1275. }
  1276. yyj28++
  1277. if yyhl28 {
  1278. yyb28 = yyj28 > l
  1279. } else {
  1280. yyb28 = r.CheckBreak()
  1281. }
  1282. if yyb28 {
  1283. z.DecReadArrayEnd()
  1284. return
  1285. }
  1286. z.DecReadArrayElem()
  1287. if r.TryDecodeAsNil() {
  1288. x.Ui64 = 0
  1289. } else {
  1290. x.Ui64 = (uint64)(r.DecodeUint64())
  1291. }
  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. if r.TryDecodeAsNil() {
  1304. x.Ui8 = 0
  1305. } else {
  1306. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1307. }
  1308. yyj28++
  1309. if yyhl28 {
  1310. yyb28 = yyj28 > l
  1311. } else {
  1312. yyb28 = r.CheckBreak()
  1313. }
  1314. if yyb28 {
  1315. z.DecReadArrayEnd()
  1316. return
  1317. }
  1318. z.DecReadArrayElem()
  1319. if r.TryDecodeAsNil() {
  1320. x.F64 = 0
  1321. } else {
  1322. x.F64 = (float64)(r.DecodeFloat64())
  1323. }
  1324. yyj28++
  1325. if yyhl28 {
  1326. yyb28 = yyj28 > l
  1327. } else {
  1328. yyb28 = r.CheckBreak()
  1329. }
  1330. if yyb28 {
  1331. z.DecReadArrayEnd()
  1332. return
  1333. }
  1334. z.DecReadArrayElem()
  1335. if r.TryDecodeAsNil() {
  1336. x.F32 = 0
  1337. } else {
  1338. x.F32 = (float32)(z.DecDecodeFloat32())
  1339. }
  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. if r.TryDecodeAsNil() {
  1352. x.B = false
  1353. } else {
  1354. x.B = (bool)(r.DecodeBool())
  1355. }
  1356. yyj28++
  1357. if yyhl28 {
  1358. yyb28 = yyj28 > l
  1359. } else {
  1360. yyb28 = r.CheckBreak()
  1361. }
  1362. if yyb28 {
  1363. z.DecReadArrayEnd()
  1364. return
  1365. }
  1366. z.DecReadArrayElem()
  1367. if r.TryDecodeAsNil() {
  1368. x.Sslice = nil
  1369. } else {
  1370. z.F.DecSliceStringX(&x.Sslice, d)
  1371. }
  1372. yyj28++
  1373. if yyhl28 {
  1374. yyb28 = yyj28 > l
  1375. } else {
  1376. yyb28 = r.CheckBreak()
  1377. }
  1378. if yyb28 {
  1379. z.DecReadArrayEnd()
  1380. return
  1381. }
  1382. z.DecReadArrayElem()
  1383. if r.TryDecodeAsNil() {
  1384. x.I16slice = nil
  1385. } else {
  1386. z.F.DecSliceInt16X(&x.I16slice, d)
  1387. }
  1388. yyj28++
  1389. if yyhl28 {
  1390. yyb28 = yyj28 > l
  1391. } else {
  1392. yyb28 = r.CheckBreak()
  1393. }
  1394. if yyb28 {
  1395. z.DecReadArrayEnd()
  1396. return
  1397. }
  1398. z.DecReadArrayElem()
  1399. if r.TryDecodeAsNil() {
  1400. x.Ui64slice = nil
  1401. } else {
  1402. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1403. }
  1404. yyj28++
  1405. if yyhl28 {
  1406. yyb28 = yyj28 > l
  1407. } else {
  1408. yyb28 = r.CheckBreak()
  1409. }
  1410. if yyb28 {
  1411. z.DecReadArrayEnd()
  1412. return
  1413. }
  1414. z.DecReadArrayElem()
  1415. if r.TryDecodeAsNil() {
  1416. x.Ui8slice = nil
  1417. } else {
  1418. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1419. }
  1420. yyj28++
  1421. if yyhl28 {
  1422. yyb28 = yyj28 > l
  1423. } else {
  1424. yyb28 = r.CheckBreak()
  1425. }
  1426. if yyb28 {
  1427. z.DecReadArrayEnd()
  1428. return
  1429. }
  1430. z.DecReadArrayElem()
  1431. if r.TryDecodeAsNil() {
  1432. x.Bslice = nil
  1433. } else {
  1434. z.F.DecSliceBoolX(&x.Bslice, d)
  1435. }
  1436. yyj28++
  1437. if yyhl28 {
  1438. yyb28 = yyj28 > l
  1439. } else {
  1440. yyb28 = r.CheckBreak()
  1441. }
  1442. if yyb28 {
  1443. z.DecReadArrayEnd()
  1444. return
  1445. }
  1446. z.DecReadArrayElem()
  1447. if r.TryDecodeAsNil() {
  1448. x.Iptrslice = nil
  1449. } else {
  1450. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1451. }
  1452. yyj28++
  1453. if yyhl28 {
  1454. yyb28 = yyj28 > l
  1455. } else {
  1456. yyb28 = r.CheckBreak()
  1457. }
  1458. if yyb28 {
  1459. z.DecReadArrayEnd()
  1460. return
  1461. }
  1462. z.DecReadArrayElem()
  1463. if r.TryDecodeAsNil() {
  1464. x.WrapSliceInt64 = nil
  1465. } else {
  1466. x.WrapSliceInt64.CodecDecodeSelf(d)
  1467. }
  1468. yyj28++
  1469. if yyhl28 {
  1470. yyb28 = yyj28 > l
  1471. } else {
  1472. yyb28 = r.CheckBreak()
  1473. }
  1474. if yyb28 {
  1475. z.DecReadArrayEnd()
  1476. return
  1477. }
  1478. z.DecReadArrayElem()
  1479. if r.TryDecodeAsNil() {
  1480. x.WrapSliceString = nil
  1481. } else {
  1482. x.WrapSliceString.CodecDecodeSelf(d)
  1483. }
  1484. yyj28++
  1485. if yyhl28 {
  1486. yyb28 = yyj28 > l
  1487. } else {
  1488. yyb28 = r.CheckBreak()
  1489. }
  1490. if yyb28 {
  1491. z.DecReadArrayEnd()
  1492. return
  1493. }
  1494. z.DecReadArrayElem()
  1495. if r.TryDecodeAsNil() {
  1496. x.Msi64 = nil
  1497. } else {
  1498. z.F.DecMapStringInt64X(&x.Msi64, d)
  1499. }
  1500. for {
  1501. yyj28++
  1502. if yyhl28 {
  1503. yyb28 = yyj28 > l
  1504. } else {
  1505. yyb28 = r.CheckBreak()
  1506. }
  1507. if yyb28 {
  1508. break
  1509. }
  1510. z.DecReadArrayElem()
  1511. z.DecStructFieldNotFound(yyj28-1, "")
  1512. }
  1513. z.DecReadArrayEnd()
  1514. }
  1515. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  1516. var h codecSelfer19780
  1517. z, r := GenHelperEncoder(e)
  1518. _, _, _ = h, z, r
  1519. if x == nil {
  1520. r.EncodeNil()
  1521. } else {
  1522. yysep2 := !z.EncBinary()
  1523. yy2arr2 := z.EncBasicHandle().StructToArray
  1524. _, _ = yysep2, yy2arr2
  1525. const yyr2 bool = false // struct tag has 'toArray'
  1526. var yyn53 bool = x.Nint64 == nil
  1527. if yyr2 || yy2arr2 {
  1528. z.EncWriteArrayStart(51)
  1529. z.EncWriteArrayElem()
  1530. if z.EncBasicHandle().StringToRaw {
  1531. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1532. } else {
  1533. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1534. }
  1535. z.EncWriteArrayElem()
  1536. r.EncodeInt(int64(x.I64))
  1537. z.EncWriteArrayElem()
  1538. r.EncodeInt(int64(x.I32))
  1539. z.EncWriteArrayElem()
  1540. r.EncodeInt(int64(x.I16))
  1541. z.EncWriteArrayElem()
  1542. r.EncodeInt(int64(x.I8))
  1543. z.EncWriteArrayElem()
  1544. r.EncodeInt(int64(x.I64n))
  1545. z.EncWriteArrayElem()
  1546. r.EncodeInt(int64(x.I32n))
  1547. z.EncWriteArrayElem()
  1548. r.EncodeInt(int64(x.I16n))
  1549. z.EncWriteArrayElem()
  1550. r.EncodeInt(int64(x.I8n))
  1551. z.EncWriteArrayElem()
  1552. r.EncodeUint(uint64(x.Ui64))
  1553. z.EncWriteArrayElem()
  1554. r.EncodeUint(uint64(x.Ui32))
  1555. z.EncWriteArrayElem()
  1556. r.EncodeUint(uint64(x.Ui16))
  1557. z.EncWriteArrayElem()
  1558. r.EncodeUint(uint64(x.Ui8))
  1559. z.EncWriteArrayElem()
  1560. r.EncodeFloat64(float64(x.F64))
  1561. z.EncWriteArrayElem()
  1562. r.EncodeFloat32(float32(x.F32))
  1563. z.EncWriteArrayElem()
  1564. r.EncodeBool(bool(x.B))
  1565. z.EncWriteArrayElem()
  1566. r.EncodeUint(uint64(x.By))
  1567. z.EncWriteArrayElem()
  1568. z.F.EncSliceStringV(x.Sslice, e)
  1569. z.EncWriteArrayElem()
  1570. z.F.EncSliceInt64V(x.I64slice, e)
  1571. z.EncWriteArrayElem()
  1572. z.F.EncSliceInt16V(x.I16slice, e)
  1573. z.EncWriteArrayElem()
  1574. z.F.EncSliceUint64V(x.Ui64slice, e)
  1575. z.EncWriteArrayElem()
  1576. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1577. z.EncWriteArrayElem()
  1578. z.F.EncSliceBoolV(x.Bslice, e)
  1579. z.EncWriteArrayElem()
  1580. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1581. z.EncWriteArrayElem()
  1582. z.F.EncSliceBytesV(x.BytesSlice, e)
  1583. z.EncWriteArrayElem()
  1584. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1585. z.EncWriteArrayElem()
  1586. x.WrapSliceInt64.CodecEncodeSelf(e)
  1587. z.EncWriteArrayElem()
  1588. x.WrapSliceString.CodecEncodeSelf(e)
  1589. z.EncWriteArrayElem()
  1590. z.F.EncMapStringInt64V(x.Msi64, e)
  1591. z.EncWriteArrayElem()
  1592. z.F.EncMapStringBytesV(x.Msbytes, e)
  1593. z.EncWriteArrayElem()
  1594. yy84 := &x.Simplef
  1595. yy84.CodecEncodeSelf(e)
  1596. z.EncWriteArrayElem()
  1597. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1598. z.EncWriteArrayElem()
  1599. if z.EncBasicHandle().StringToRaw {
  1600. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1601. } else {
  1602. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1603. }
  1604. z.EncWriteArrayElem()
  1605. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1606. z.EncWriteArrayElem()
  1607. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1608. z.EncWriteArrayElem()
  1609. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1610. z.EncWriteArrayElem()
  1611. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1612. z.EncWriteArrayElem()
  1613. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1614. z.EncWriteArrayElem()
  1615. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1616. z.EncWriteArrayElem()
  1617. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1618. z.EncWriteArrayElem()
  1619. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1620. z.EncWriteArrayElem()
  1621. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1622. z.EncWriteArrayElem()
  1623. yy97 := &x.AnonInTestStruc.AI64arr0
  1624. h.encArray0int64((*[0]int64)(yy97), e)
  1625. z.EncWriteArrayElem()
  1626. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  1627. z.EncWriteArrayElem()
  1628. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  1629. z.EncWriteArrayElem()
  1630. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  1631. z.EncWriteArrayElem()
  1632. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  1633. z.EncWriteArrayElem()
  1634. yy103 := &x.NotAnon
  1635. yy103.CodecEncodeSelf(e)
  1636. z.EncWriteArrayElem()
  1637. z.F.EncMapStringBoolV(x.Nmap, e)
  1638. z.EncWriteArrayElem()
  1639. r.EncodeStringBytesRaw([]byte(x.Nslice))
  1640. if yyn53 {
  1641. z.EncWriteArrayElem()
  1642. r.EncodeNil()
  1643. } else {
  1644. z.EncWriteArrayElem()
  1645. yy107 := *x.Nint64
  1646. r.EncodeInt(int64(yy107))
  1647. }
  1648. z.EncWriteArrayEnd()
  1649. } else {
  1650. z.EncWriteMapStart(51)
  1651. z.EncWriteMapElemKey()
  1652. if z.IsJSONHandle() {
  1653. z.WriteStr("\"S\"")
  1654. } else {
  1655. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1656. }
  1657. z.EncWriteMapElemValue()
  1658. if z.EncBasicHandle().StringToRaw {
  1659. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1660. } else {
  1661. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1662. }
  1663. z.EncWriteMapElemKey()
  1664. if z.IsJSONHandle() {
  1665. z.WriteStr("\"I64\"")
  1666. } else {
  1667. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1668. }
  1669. z.EncWriteMapElemValue()
  1670. r.EncodeInt(int64(x.I64))
  1671. z.EncWriteMapElemKey()
  1672. if z.IsJSONHandle() {
  1673. z.WriteStr("\"I32\"")
  1674. } else {
  1675. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  1676. }
  1677. z.EncWriteMapElemValue()
  1678. r.EncodeInt(int64(x.I32))
  1679. z.EncWriteMapElemKey()
  1680. if z.IsJSONHandle() {
  1681. z.WriteStr("\"I16\"")
  1682. } else {
  1683. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  1684. }
  1685. z.EncWriteMapElemValue()
  1686. r.EncodeInt(int64(x.I16))
  1687. z.EncWriteMapElemKey()
  1688. if z.IsJSONHandle() {
  1689. z.WriteStr("\"I8\"")
  1690. } else {
  1691. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1692. }
  1693. z.EncWriteMapElemValue()
  1694. r.EncodeInt(int64(x.I8))
  1695. z.EncWriteMapElemKey()
  1696. if z.IsJSONHandle() {
  1697. z.WriteStr("\"I64n\"")
  1698. } else {
  1699. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  1700. }
  1701. z.EncWriteMapElemValue()
  1702. r.EncodeInt(int64(x.I64n))
  1703. z.EncWriteMapElemKey()
  1704. if z.IsJSONHandle() {
  1705. z.WriteStr("\"I32n\"")
  1706. } else {
  1707. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  1708. }
  1709. z.EncWriteMapElemValue()
  1710. r.EncodeInt(int64(x.I32n))
  1711. z.EncWriteMapElemKey()
  1712. if z.IsJSONHandle() {
  1713. z.WriteStr("\"I16n\"")
  1714. } else {
  1715. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  1716. }
  1717. z.EncWriteMapElemValue()
  1718. r.EncodeInt(int64(x.I16n))
  1719. z.EncWriteMapElemKey()
  1720. if z.IsJSONHandle() {
  1721. z.WriteStr("\"I8n\"")
  1722. } else {
  1723. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  1724. }
  1725. z.EncWriteMapElemValue()
  1726. r.EncodeInt(int64(x.I8n))
  1727. z.EncWriteMapElemKey()
  1728. if z.IsJSONHandle() {
  1729. z.WriteStr("\"Ui64\"")
  1730. } else {
  1731. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1732. }
  1733. z.EncWriteMapElemValue()
  1734. r.EncodeUint(uint64(x.Ui64))
  1735. z.EncWriteMapElemKey()
  1736. if z.IsJSONHandle() {
  1737. z.WriteStr("\"Ui32\"")
  1738. } else {
  1739. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  1740. }
  1741. z.EncWriteMapElemValue()
  1742. r.EncodeUint(uint64(x.Ui32))
  1743. z.EncWriteMapElemKey()
  1744. if z.IsJSONHandle() {
  1745. z.WriteStr("\"Ui16\"")
  1746. } else {
  1747. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  1748. }
  1749. z.EncWriteMapElemValue()
  1750. r.EncodeUint(uint64(x.Ui16))
  1751. z.EncWriteMapElemKey()
  1752. if z.IsJSONHandle() {
  1753. z.WriteStr("\"Ui8\"")
  1754. } else {
  1755. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1756. }
  1757. z.EncWriteMapElemValue()
  1758. r.EncodeUint(uint64(x.Ui8))
  1759. z.EncWriteMapElemKey()
  1760. if z.IsJSONHandle() {
  1761. z.WriteStr("\"F64\"")
  1762. } else {
  1763. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1764. }
  1765. z.EncWriteMapElemValue()
  1766. r.EncodeFloat64(float64(x.F64))
  1767. z.EncWriteMapElemKey()
  1768. if z.IsJSONHandle() {
  1769. z.WriteStr("\"F32\"")
  1770. } else {
  1771. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1772. }
  1773. z.EncWriteMapElemValue()
  1774. r.EncodeFloat32(float32(x.F32))
  1775. z.EncWriteMapElemKey()
  1776. if z.IsJSONHandle() {
  1777. z.WriteStr("\"B\"")
  1778. } else {
  1779. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1780. }
  1781. z.EncWriteMapElemValue()
  1782. r.EncodeBool(bool(x.B))
  1783. z.EncWriteMapElemKey()
  1784. if z.IsJSONHandle() {
  1785. z.WriteStr("\"By\"")
  1786. } else {
  1787. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  1788. }
  1789. z.EncWriteMapElemValue()
  1790. r.EncodeUint(uint64(x.By))
  1791. z.EncWriteMapElemKey()
  1792. if z.IsJSONHandle() {
  1793. z.WriteStr("\"Sslice\"")
  1794. } else {
  1795. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1796. }
  1797. z.EncWriteMapElemValue()
  1798. z.F.EncSliceStringV(x.Sslice, e)
  1799. z.EncWriteMapElemKey()
  1800. if z.IsJSONHandle() {
  1801. z.WriteStr("\"I64slice\"")
  1802. } else {
  1803. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  1804. }
  1805. z.EncWriteMapElemValue()
  1806. z.F.EncSliceInt64V(x.I64slice, e)
  1807. z.EncWriteMapElemKey()
  1808. if z.IsJSONHandle() {
  1809. z.WriteStr("\"I16slice\"")
  1810. } else {
  1811. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1812. }
  1813. z.EncWriteMapElemValue()
  1814. z.F.EncSliceInt16V(x.I16slice, e)
  1815. z.EncWriteMapElemKey()
  1816. if z.IsJSONHandle() {
  1817. z.WriteStr("\"Ui64slice\"")
  1818. } else {
  1819. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1820. }
  1821. z.EncWriteMapElemValue()
  1822. z.F.EncSliceUint64V(x.Ui64slice, e)
  1823. z.EncWriteMapElemKey()
  1824. if z.IsJSONHandle() {
  1825. z.WriteStr("\"Ui8slice\"")
  1826. } else {
  1827. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1828. }
  1829. z.EncWriteMapElemValue()
  1830. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1831. z.EncWriteMapElemKey()
  1832. if z.IsJSONHandle() {
  1833. z.WriteStr("\"Bslice\"")
  1834. } else {
  1835. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1836. }
  1837. z.EncWriteMapElemValue()
  1838. z.F.EncSliceBoolV(x.Bslice, e)
  1839. z.EncWriteMapElemKey()
  1840. if z.IsJSONHandle() {
  1841. z.WriteStr("\"Byslice\"")
  1842. } else {
  1843. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  1844. }
  1845. z.EncWriteMapElemValue()
  1846. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1847. z.EncWriteMapElemKey()
  1848. if z.IsJSONHandle() {
  1849. z.WriteStr("\"BytesSlice\"")
  1850. } else {
  1851. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  1852. }
  1853. z.EncWriteMapElemValue()
  1854. z.F.EncSliceBytesV(x.BytesSlice, e)
  1855. z.EncWriteMapElemKey()
  1856. if z.IsJSONHandle() {
  1857. z.WriteStr("\"Iptrslice\"")
  1858. } else {
  1859. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1860. }
  1861. z.EncWriteMapElemValue()
  1862. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1863. z.EncWriteMapElemKey()
  1864. if z.IsJSONHandle() {
  1865. z.WriteStr("\"WrapSliceInt64\"")
  1866. } else {
  1867. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1868. }
  1869. z.EncWriteMapElemValue()
  1870. x.WrapSliceInt64.CodecEncodeSelf(e)
  1871. z.EncWriteMapElemKey()
  1872. if z.IsJSONHandle() {
  1873. z.WriteStr("\"WrapSliceString\"")
  1874. } else {
  1875. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1876. }
  1877. z.EncWriteMapElemValue()
  1878. x.WrapSliceString.CodecEncodeSelf(e)
  1879. z.EncWriteMapElemKey()
  1880. if z.IsJSONHandle() {
  1881. z.WriteStr("\"Msi64\"")
  1882. } else {
  1883. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1884. }
  1885. z.EncWriteMapElemValue()
  1886. z.F.EncMapStringInt64V(x.Msi64, e)
  1887. z.EncWriteMapElemKey()
  1888. if z.IsJSONHandle() {
  1889. z.WriteStr("\"Msbytes\"")
  1890. } else {
  1891. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  1892. }
  1893. z.EncWriteMapElemValue()
  1894. z.F.EncMapStringBytesV(x.Msbytes, e)
  1895. z.EncWriteMapElemKey()
  1896. if z.IsJSONHandle() {
  1897. z.WriteStr("\"Simplef\"")
  1898. } else {
  1899. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  1900. }
  1901. z.EncWriteMapElemValue()
  1902. yy139 := &x.Simplef
  1903. yy139.CodecEncodeSelf(e)
  1904. z.EncWriteMapElemKey()
  1905. if z.IsJSONHandle() {
  1906. z.WriteStr("\"SstrUi64T\"")
  1907. } else {
  1908. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  1909. }
  1910. z.EncWriteMapElemValue()
  1911. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1912. z.EncWriteMapElemKey()
  1913. if z.IsJSONHandle() {
  1914. z.WriteStr("\"AS\"")
  1915. } else {
  1916. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  1917. }
  1918. z.EncWriteMapElemValue()
  1919. if z.EncBasicHandle().StringToRaw {
  1920. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1921. } else {
  1922. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1923. }
  1924. z.EncWriteMapElemKey()
  1925. if z.IsJSONHandle() {
  1926. z.WriteStr("\"AI64\"")
  1927. } else {
  1928. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  1929. }
  1930. z.EncWriteMapElemValue()
  1931. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1932. z.EncWriteMapElemKey()
  1933. if z.IsJSONHandle() {
  1934. z.WriteStr("\"AI16\"")
  1935. } else {
  1936. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  1937. }
  1938. z.EncWriteMapElemValue()
  1939. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1940. z.EncWriteMapElemKey()
  1941. if z.IsJSONHandle() {
  1942. z.WriteStr("\"AUi64\"")
  1943. } else {
  1944. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  1945. }
  1946. z.EncWriteMapElemValue()
  1947. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1948. z.EncWriteMapElemKey()
  1949. if z.IsJSONHandle() {
  1950. z.WriteStr("\"ASslice\"")
  1951. } else {
  1952. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  1953. }
  1954. z.EncWriteMapElemValue()
  1955. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1956. z.EncWriteMapElemKey()
  1957. if z.IsJSONHandle() {
  1958. z.WriteStr("\"AI64slice\"")
  1959. } else {
  1960. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  1961. }
  1962. z.EncWriteMapElemValue()
  1963. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1964. z.EncWriteMapElemKey()
  1965. if z.IsJSONHandle() {
  1966. z.WriteStr("\"AUi64slice\"")
  1967. } else {
  1968. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  1969. }
  1970. z.EncWriteMapElemValue()
  1971. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1972. z.EncWriteMapElemKey()
  1973. if z.IsJSONHandle() {
  1974. z.WriteStr("\"AF64slice\"")
  1975. } else {
  1976. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  1977. }
  1978. z.EncWriteMapElemValue()
  1979. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1980. z.EncWriteMapElemKey()
  1981. if z.IsJSONHandle() {
  1982. z.WriteStr("\"AF32slice\"")
  1983. } else {
  1984. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  1985. }
  1986. z.EncWriteMapElemValue()
  1987. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1988. z.EncWriteMapElemKey()
  1989. if z.IsJSONHandle() {
  1990. z.WriteStr("\"AMSU16\"")
  1991. } else {
  1992. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  1993. }
  1994. z.EncWriteMapElemValue()
  1995. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1996. z.EncWriteMapElemKey()
  1997. if z.IsJSONHandle() {
  1998. z.WriteStr("\"AI64arr0\"")
  1999. } else {
  2000. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  2001. }
  2002. z.EncWriteMapElemValue()
  2003. yy152 := &x.AnonInTestStruc.AI64arr0
  2004. h.encArray0int64((*[0]int64)(yy152), e)
  2005. z.EncWriteMapElemKey()
  2006. if z.IsJSONHandle() {
  2007. z.WriteStr("\"A164slice0\"")
  2008. } else {
  2009. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  2010. }
  2011. z.EncWriteMapElemValue()
  2012. z.F.EncSliceInt64V(x.AnonInTestStruc.A164slice0, e)
  2013. z.EncWriteMapElemKey()
  2014. if z.IsJSONHandle() {
  2015. z.WriteStr("\"AUi64sliceN\"")
  2016. } else {
  2017. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  2018. }
  2019. z.EncWriteMapElemValue()
  2020. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  2021. z.EncWriteMapElemKey()
  2022. if z.IsJSONHandle() {
  2023. z.WriteStr("\"AMSU16N\"")
  2024. } else {
  2025. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  2026. }
  2027. z.EncWriteMapElemValue()
  2028. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  2029. z.EncWriteMapElemKey()
  2030. if z.IsJSONHandle() {
  2031. z.WriteStr("\"AMSU16E\"")
  2032. } else {
  2033. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  2034. }
  2035. z.EncWriteMapElemValue()
  2036. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  2037. z.EncWriteMapElemKey()
  2038. if z.IsJSONHandle() {
  2039. z.WriteStr("\"NotAnon\"")
  2040. } else {
  2041. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  2042. }
  2043. z.EncWriteMapElemValue()
  2044. yy158 := &x.NotAnon
  2045. yy158.CodecEncodeSelf(e)
  2046. z.EncWriteMapElemKey()
  2047. if z.IsJSONHandle() {
  2048. z.WriteStr("\"Nmap\"")
  2049. } else {
  2050. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  2051. }
  2052. z.EncWriteMapElemValue()
  2053. z.F.EncMapStringBoolV(x.Nmap, e)
  2054. z.EncWriteMapElemKey()
  2055. if z.IsJSONHandle() {
  2056. z.WriteStr("\"Nslice\"")
  2057. } else {
  2058. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  2059. }
  2060. z.EncWriteMapElemValue()
  2061. r.EncodeStringBytesRaw([]byte(x.Nslice))
  2062. z.EncWriteMapElemKey()
  2063. if z.IsJSONHandle() {
  2064. z.WriteStr("\"Nint64\"")
  2065. } else {
  2066. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  2067. }
  2068. z.EncWriteMapElemValue()
  2069. if yyn53 {
  2070. r.EncodeNil()
  2071. } else {
  2072. yy162 := *x.Nint64
  2073. r.EncodeInt(int64(yy162))
  2074. }
  2075. z.EncWriteMapEnd()
  2076. }
  2077. }
  2078. }
  2079. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  2080. var h codecSelfer19780
  2081. z, r := GenHelperDecoder(d)
  2082. _, _, _ = h, z, r
  2083. yyct2 := r.ContainerType()
  2084. if yyct2 == codecSelferValueTypeMap19780 {
  2085. yyl2 := z.DecReadMapStart()
  2086. if yyl2 == 0 {
  2087. z.DecReadMapEnd()
  2088. } else {
  2089. x.codecDecodeSelfFromMap(yyl2, d)
  2090. }
  2091. } else if yyct2 == codecSelferValueTypeArray19780 {
  2092. yyl2 := z.DecReadArrayStart()
  2093. if yyl2 == 0 {
  2094. z.DecReadArrayEnd()
  2095. } else {
  2096. x.codecDecodeSelfFromArray(yyl2, d)
  2097. }
  2098. } else {
  2099. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2100. }
  2101. }
  2102. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  2103. var h codecSelfer19780
  2104. z, r := GenHelperDecoder(d)
  2105. _, _, _ = h, z, r
  2106. var yyhl3 bool = l >= 0
  2107. for yyj3 := 0; ; yyj3++ {
  2108. if yyhl3 {
  2109. if yyj3 >= l {
  2110. break
  2111. }
  2112. } else {
  2113. if r.CheckBreak() {
  2114. break
  2115. }
  2116. }
  2117. z.DecReadMapElemKey()
  2118. yys3 := z.StringView(r.DecodeStringAsBytes())
  2119. z.DecReadMapElemValue()
  2120. switch yys3 {
  2121. case "S":
  2122. if r.TryDecodeAsNil() {
  2123. x.S = ""
  2124. } else {
  2125. x.S = (string)(r.DecodeString())
  2126. }
  2127. case "I64":
  2128. if r.TryDecodeAsNil() {
  2129. x.I64 = 0
  2130. } else {
  2131. x.I64 = (int64)(r.DecodeInt64())
  2132. }
  2133. case "I32":
  2134. if r.TryDecodeAsNil() {
  2135. x.I32 = 0
  2136. } else {
  2137. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2138. }
  2139. case "I16":
  2140. if r.TryDecodeAsNil() {
  2141. x.I16 = 0
  2142. } else {
  2143. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2144. }
  2145. case "I8":
  2146. if r.TryDecodeAsNil() {
  2147. x.I8 = 0
  2148. } else {
  2149. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2150. }
  2151. case "I64n":
  2152. if r.TryDecodeAsNil() {
  2153. x.I64n = 0
  2154. } else {
  2155. x.I64n = (int64)(r.DecodeInt64())
  2156. }
  2157. case "I32n":
  2158. if r.TryDecodeAsNil() {
  2159. x.I32n = 0
  2160. } else {
  2161. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2162. }
  2163. case "I16n":
  2164. if r.TryDecodeAsNil() {
  2165. x.I16n = 0
  2166. } else {
  2167. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2168. }
  2169. case "I8n":
  2170. if r.TryDecodeAsNil() {
  2171. x.I8n = 0
  2172. } else {
  2173. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2174. }
  2175. case "Ui64":
  2176. if r.TryDecodeAsNil() {
  2177. x.Ui64 = 0
  2178. } else {
  2179. x.Ui64 = (uint64)(r.DecodeUint64())
  2180. }
  2181. case "Ui32":
  2182. if r.TryDecodeAsNil() {
  2183. x.Ui32 = 0
  2184. } else {
  2185. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2186. }
  2187. case "Ui16":
  2188. if r.TryDecodeAsNil() {
  2189. x.Ui16 = 0
  2190. } else {
  2191. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2192. }
  2193. case "Ui8":
  2194. if r.TryDecodeAsNil() {
  2195. x.Ui8 = 0
  2196. } else {
  2197. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2198. }
  2199. case "F64":
  2200. if r.TryDecodeAsNil() {
  2201. x.F64 = 0
  2202. } else {
  2203. x.F64 = (float64)(r.DecodeFloat64())
  2204. }
  2205. case "F32":
  2206. if r.TryDecodeAsNil() {
  2207. x.F32 = 0
  2208. } else {
  2209. x.F32 = (float32)(z.DecDecodeFloat32())
  2210. }
  2211. case "B":
  2212. if r.TryDecodeAsNil() {
  2213. x.B = false
  2214. } else {
  2215. x.B = (bool)(r.DecodeBool())
  2216. }
  2217. case "By":
  2218. if r.TryDecodeAsNil() {
  2219. x.By = 0
  2220. } else {
  2221. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2222. }
  2223. case "Sslice":
  2224. if r.TryDecodeAsNil() {
  2225. x.Sslice = nil
  2226. } else {
  2227. z.F.DecSliceStringX(&x.Sslice, d)
  2228. }
  2229. case "I64slice":
  2230. if r.TryDecodeAsNil() {
  2231. x.I64slice = nil
  2232. } else {
  2233. z.F.DecSliceInt64X(&x.I64slice, d)
  2234. }
  2235. case "I16slice":
  2236. if r.TryDecodeAsNil() {
  2237. x.I16slice = nil
  2238. } else {
  2239. z.F.DecSliceInt16X(&x.I16slice, d)
  2240. }
  2241. case "Ui64slice":
  2242. if r.TryDecodeAsNil() {
  2243. x.Ui64slice = nil
  2244. } else {
  2245. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2246. }
  2247. case "Ui8slice":
  2248. if r.TryDecodeAsNil() {
  2249. x.Ui8slice = nil
  2250. } else {
  2251. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2252. }
  2253. case "Bslice":
  2254. if r.TryDecodeAsNil() {
  2255. x.Bslice = nil
  2256. } else {
  2257. z.F.DecSliceBoolX(&x.Bslice, d)
  2258. }
  2259. case "Byslice":
  2260. if r.TryDecodeAsNil() {
  2261. x.Byslice = nil
  2262. } else {
  2263. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2264. }
  2265. case "BytesSlice":
  2266. if r.TryDecodeAsNil() {
  2267. x.BytesSlice = nil
  2268. } else {
  2269. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2270. }
  2271. case "Iptrslice":
  2272. if r.TryDecodeAsNil() {
  2273. x.Iptrslice = nil
  2274. } else {
  2275. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2276. }
  2277. case "WrapSliceInt64":
  2278. if r.TryDecodeAsNil() {
  2279. x.WrapSliceInt64 = nil
  2280. } else {
  2281. x.WrapSliceInt64.CodecDecodeSelf(d)
  2282. }
  2283. case "WrapSliceString":
  2284. if r.TryDecodeAsNil() {
  2285. x.WrapSliceString = nil
  2286. } else {
  2287. x.WrapSliceString.CodecDecodeSelf(d)
  2288. }
  2289. case "Msi64":
  2290. if r.TryDecodeAsNil() {
  2291. x.Msi64 = nil
  2292. } else {
  2293. z.F.DecMapStringInt64X(&x.Msi64, d)
  2294. }
  2295. case "Msbytes":
  2296. if r.TryDecodeAsNil() {
  2297. x.Msbytes = nil
  2298. } else {
  2299. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2300. }
  2301. case "Simplef":
  2302. if r.TryDecodeAsNil() {
  2303. x.Simplef = testSimpleFields{}
  2304. } else {
  2305. x.Simplef.CodecDecodeSelf(d)
  2306. }
  2307. case "SstrUi64T":
  2308. if r.TryDecodeAsNil() {
  2309. x.SstrUi64T = nil
  2310. } else {
  2311. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2312. }
  2313. case "AS":
  2314. if r.TryDecodeAsNil() {
  2315. x.AnonInTestStruc.AS = ""
  2316. } else {
  2317. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  2318. }
  2319. case "AI64":
  2320. if r.TryDecodeAsNil() {
  2321. x.AnonInTestStruc.AI64 = 0
  2322. } else {
  2323. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2324. }
  2325. case "AI16":
  2326. if r.TryDecodeAsNil() {
  2327. x.AnonInTestStruc.AI16 = 0
  2328. } else {
  2329. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2330. }
  2331. case "AUi64":
  2332. if r.TryDecodeAsNil() {
  2333. x.AnonInTestStruc.AUi64 = 0
  2334. } else {
  2335. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2336. }
  2337. case "ASslice":
  2338. if r.TryDecodeAsNil() {
  2339. x.AnonInTestStruc.ASslice = nil
  2340. } else {
  2341. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2342. }
  2343. case "AI64slice":
  2344. if r.TryDecodeAsNil() {
  2345. x.AnonInTestStruc.AI64slice = nil
  2346. } else {
  2347. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2348. }
  2349. case "AUi64slice":
  2350. if r.TryDecodeAsNil() {
  2351. x.AnonInTestStruc.AUi64slice = nil
  2352. } else {
  2353. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2354. }
  2355. case "AF64slice":
  2356. if r.TryDecodeAsNil() {
  2357. x.AnonInTestStruc.AF64slice = nil
  2358. } else {
  2359. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2360. }
  2361. case "AF32slice":
  2362. if r.TryDecodeAsNil() {
  2363. x.AnonInTestStruc.AF32slice = nil
  2364. } else {
  2365. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2366. }
  2367. case "AMSU16":
  2368. if r.TryDecodeAsNil() {
  2369. x.AnonInTestStruc.AMSU16 = nil
  2370. } else {
  2371. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2372. }
  2373. case "AI64arr0":
  2374. if r.TryDecodeAsNil() {
  2375. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  2376. } else {
  2377. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2378. }
  2379. case "A164slice0":
  2380. if r.TryDecodeAsNil() {
  2381. x.AnonInTestStruc.A164slice0 = nil
  2382. } else {
  2383. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  2384. }
  2385. case "AUi64sliceN":
  2386. if r.TryDecodeAsNil() {
  2387. x.AnonInTestStruc.AUi64sliceN = nil
  2388. } else {
  2389. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2390. }
  2391. case "AMSU16N":
  2392. if r.TryDecodeAsNil() {
  2393. x.AnonInTestStruc.AMSU16N = nil
  2394. } else {
  2395. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2396. }
  2397. case "AMSU16E":
  2398. if r.TryDecodeAsNil() {
  2399. x.AnonInTestStruc.AMSU16E = nil
  2400. } else {
  2401. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2402. }
  2403. case "NotAnon":
  2404. if r.TryDecodeAsNil() {
  2405. x.NotAnon = AnonInTestStruc{}
  2406. } else {
  2407. x.NotAnon.CodecDecodeSelf(d)
  2408. }
  2409. case "Nmap":
  2410. if r.TryDecodeAsNil() {
  2411. x.Nmap = nil
  2412. } else {
  2413. z.F.DecMapStringBoolX(&x.Nmap, d)
  2414. }
  2415. case "Nslice":
  2416. if r.TryDecodeAsNil() {
  2417. x.Nslice = nil
  2418. } else {
  2419. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2420. }
  2421. case "Nint64":
  2422. if r.TryDecodeAsNil() {
  2423. if x.Nint64 != nil { // remove the if-true
  2424. x.Nint64 = nil
  2425. }
  2426. } else {
  2427. if x.Nint64 == nil {
  2428. x.Nint64 = new(int64)
  2429. }
  2430. *x.Nint64 = (int64)(r.DecodeInt64())
  2431. }
  2432. default:
  2433. z.DecStructFieldNotFound(-1, yys3)
  2434. } // end switch yys3
  2435. } // end for yyj3
  2436. z.DecReadMapEnd()
  2437. }
  2438. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  2439. var h codecSelfer19780
  2440. z, r := GenHelperDecoder(d)
  2441. _, _, _ = h, z, r
  2442. var yyj81 int
  2443. var yyb81 bool
  2444. var yyhl81 bool = l >= 0
  2445. yyj81++
  2446. if yyhl81 {
  2447. yyb81 = yyj81 > l
  2448. } else {
  2449. yyb81 = r.CheckBreak()
  2450. }
  2451. if yyb81 {
  2452. z.DecReadArrayEnd()
  2453. return
  2454. }
  2455. z.DecReadArrayElem()
  2456. if r.TryDecodeAsNil() {
  2457. x.S = ""
  2458. } else {
  2459. x.S = (string)(r.DecodeString())
  2460. }
  2461. yyj81++
  2462. if yyhl81 {
  2463. yyb81 = yyj81 > l
  2464. } else {
  2465. yyb81 = r.CheckBreak()
  2466. }
  2467. if yyb81 {
  2468. z.DecReadArrayEnd()
  2469. return
  2470. }
  2471. z.DecReadArrayElem()
  2472. if r.TryDecodeAsNil() {
  2473. x.I64 = 0
  2474. } else {
  2475. x.I64 = (int64)(r.DecodeInt64())
  2476. }
  2477. yyj81++
  2478. if yyhl81 {
  2479. yyb81 = yyj81 > l
  2480. } else {
  2481. yyb81 = r.CheckBreak()
  2482. }
  2483. if yyb81 {
  2484. z.DecReadArrayEnd()
  2485. return
  2486. }
  2487. z.DecReadArrayElem()
  2488. if r.TryDecodeAsNil() {
  2489. x.I32 = 0
  2490. } else {
  2491. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2492. }
  2493. yyj81++
  2494. if yyhl81 {
  2495. yyb81 = yyj81 > l
  2496. } else {
  2497. yyb81 = r.CheckBreak()
  2498. }
  2499. if yyb81 {
  2500. z.DecReadArrayEnd()
  2501. return
  2502. }
  2503. z.DecReadArrayElem()
  2504. if r.TryDecodeAsNil() {
  2505. x.I16 = 0
  2506. } else {
  2507. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2508. }
  2509. yyj81++
  2510. if yyhl81 {
  2511. yyb81 = yyj81 > l
  2512. } else {
  2513. yyb81 = r.CheckBreak()
  2514. }
  2515. if yyb81 {
  2516. z.DecReadArrayEnd()
  2517. return
  2518. }
  2519. z.DecReadArrayElem()
  2520. if r.TryDecodeAsNil() {
  2521. x.I8 = 0
  2522. } else {
  2523. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2524. }
  2525. yyj81++
  2526. if yyhl81 {
  2527. yyb81 = yyj81 > l
  2528. } else {
  2529. yyb81 = r.CheckBreak()
  2530. }
  2531. if yyb81 {
  2532. z.DecReadArrayEnd()
  2533. return
  2534. }
  2535. z.DecReadArrayElem()
  2536. if r.TryDecodeAsNil() {
  2537. x.I64n = 0
  2538. } else {
  2539. x.I64n = (int64)(r.DecodeInt64())
  2540. }
  2541. yyj81++
  2542. if yyhl81 {
  2543. yyb81 = yyj81 > l
  2544. } else {
  2545. yyb81 = r.CheckBreak()
  2546. }
  2547. if yyb81 {
  2548. z.DecReadArrayEnd()
  2549. return
  2550. }
  2551. z.DecReadArrayElem()
  2552. if r.TryDecodeAsNil() {
  2553. x.I32n = 0
  2554. } else {
  2555. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2556. }
  2557. yyj81++
  2558. if yyhl81 {
  2559. yyb81 = yyj81 > l
  2560. } else {
  2561. yyb81 = r.CheckBreak()
  2562. }
  2563. if yyb81 {
  2564. z.DecReadArrayEnd()
  2565. return
  2566. }
  2567. z.DecReadArrayElem()
  2568. if r.TryDecodeAsNil() {
  2569. x.I16n = 0
  2570. } else {
  2571. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2572. }
  2573. yyj81++
  2574. if yyhl81 {
  2575. yyb81 = yyj81 > l
  2576. } else {
  2577. yyb81 = r.CheckBreak()
  2578. }
  2579. if yyb81 {
  2580. z.DecReadArrayEnd()
  2581. return
  2582. }
  2583. z.DecReadArrayElem()
  2584. if r.TryDecodeAsNil() {
  2585. x.I8n = 0
  2586. } else {
  2587. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2588. }
  2589. yyj81++
  2590. if yyhl81 {
  2591. yyb81 = yyj81 > l
  2592. } else {
  2593. yyb81 = r.CheckBreak()
  2594. }
  2595. if yyb81 {
  2596. z.DecReadArrayEnd()
  2597. return
  2598. }
  2599. z.DecReadArrayElem()
  2600. if r.TryDecodeAsNil() {
  2601. x.Ui64 = 0
  2602. } else {
  2603. x.Ui64 = (uint64)(r.DecodeUint64())
  2604. }
  2605. yyj81++
  2606. if yyhl81 {
  2607. yyb81 = yyj81 > l
  2608. } else {
  2609. yyb81 = r.CheckBreak()
  2610. }
  2611. if yyb81 {
  2612. z.DecReadArrayEnd()
  2613. return
  2614. }
  2615. z.DecReadArrayElem()
  2616. if r.TryDecodeAsNil() {
  2617. x.Ui32 = 0
  2618. } else {
  2619. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2620. }
  2621. yyj81++
  2622. if yyhl81 {
  2623. yyb81 = yyj81 > l
  2624. } else {
  2625. yyb81 = r.CheckBreak()
  2626. }
  2627. if yyb81 {
  2628. z.DecReadArrayEnd()
  2629. return
  2630. }
  2631. z.DecReadArrayElem()
  2632. if r.TryDecodeAsNil() {
  2633. x.Ui16 = 0
  2634. } else {
  2635. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2636. }
  2637. yyj81++
  2638. if yyhl81 {
  2639. yyb81 = yyj81 > l
  2640. } else {
  2641. yyb81 = r.CheckBreak()
  2642. }
  2643. if yyb81 {
  2644. z.DecReadArrayEnd()
  2645. return
  2646. }
  2647. z.DecReadArrayElem()
  2648. if r.TryDecodeAsNil() {
  2649. x.Ui8 = 0
  2650. } else {
  2651. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2652. }
  2653. yyj81++
  2654. if yyhl81 {
  2655. yyb81 = yyj81 > l
  2656. } else {
  2657. yyb81 = r.CheckBreak()
  2658. }
  2659. if yyb81 {
  2660. z.DecReadArrayEnd()
  2661. return
  2662. }
  2663. z.DecReadArrayElem()
  2664. if r.TryDecodeAsNil() {
  2665. x.F64 = 0
  2666. } else {
  2667. x.F64 = (float64)(r.DecodeFloat64())
  2668. }
  2669. yyj81++
  2670. if yyhl81 {
  2671. yyb81 = yyj81 > l
  2672. } else {
  2673. yyb81 = r.CheckBreak()
  2674. }
  2675. if yyb81 {
  2676. z.DecReadArrayEnd()
  2677. return
  2678. }
  2679. z.DecReadArrayElem()
  2680. if r.TryDecodeAsNil() {
  2681. x.F32 = 0
  2682. } else {
  2683. x.F32 = (float32)(z.DecDecodeFloat32())
  2684. }
  2685. yyj81++
  2686. if yyhl81 {
  2687. yyb81 = yyj81 > l
  2688. } else {
  2689. yyb81 = r.CheckBreak()
  2690. }
  2691. if yyb81 {
  2692. z.DecReadArrayEnd()
  2693. return
  2694. }
  2695. z.DecReadArrayElem()
  2696. if r.TryDecodeAsNil() {
  2697. x.B = false
  2698. } else {
  2699. x.B = (bool)(r.DecodeBool())
  2700. }
  2701. yyj81++
  2702. if yyhl81 {
  2703. yyb81 = yyj81 > l
  2704. } else {
  2705. yyb81 = r.CheckBreak()
  2706. }
  2707. if yyb81 {
  2708. z.DecReadArrayEnd()
  2709. return
  2710. }
  2711. z.DecReadArrayElem()
  2712. if r.TryDecodeAsNil() {
  2713. x.By = 0
  2714. } else {
  2715. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2716. }
  2717. yyj81++
  2718. if yyhl81 {
  2719. yyb81 = yyj81 > l
  2720. } else {
  2721. yyb81 = r.CheckBreak()
  2722. }
  2723. if yyb81 {
  2724. z.DecReadArrayEnd()
  2725. return
  2726. }
  2727. z.DecReadArrayElem()
  2728. if r.TryDecodeAsNil() {
  2729. x.Sslice = nil
  2730. } else {
  2731. z.F.DecSliceStringX(&x.Sslice, d)
  2732. }
  2733. yyj81++
  2734. if yyhl81 {
  2735. yyb81 = yyj81 > l
  2736. } else {
  2737. yyb81 = r.CheckBreak()
  2738. }
  2739. if yyb81 {
  2740. z.DecReadArrayEnd()
  2741. return
  2742. }
  2743. z.DecReadArrayElem()
  2744. if r.TryDecodeAsNil() {
  2745. x.I64slice = nil
  2746. } else {
  2747. z.F.DecSliceInt64X(&x.I64slice, d)
  2748. }
  2749. yyj81++
  2750. if yyhl81 {
  2751. yyb81 = yyj81 > l
  2752. } else {
  2753. yyb81 = r.CheckBreak()
  2754. }
  2755. if yyb81 {
  2756. z.DecReadArrayEnd()
  2757. return
  2758. }
  2759. z.DecReadArrayElem()
  2760. if r.TryDecodeAsNil() {
  2761. x.I16slice = nil
  2762. } else {
  2763. z.F.DecSliceInt16X(&x.I16slice, d)
  2764. }
  2765. yyj81++
  2766. if yyhl81 {
  2767. yyb81 = yyj81 > l
  2768. } else {
  2769. yyb81 = r.CheckBreak()
  2770. }
  2771. if yyb81 {
  2772. z.DecReadArrayEnd()
  2773. return
  2774. }
  2775. z.DecReadArrayElem()
  2776. if r.TryDecodeAsNil() {
  2777. x.Ui64slice = nil
  2778. } else {
  2779. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2780. }
  2781. yyj81++
  2782. if yyhl81 {
  2783. yyb81 = yyj81 > l
  2784. } else {
  2785. yyb81 = r.CheckBreak()
  2786. }
  2787. if yyb81 {
  2788. z.DecReadArrayEnd()
  2789. return
  2790. }
  2791. z.DecReadArrayElem()
  2792. if r.TryDecodeAsNil() {
  2793. x.Ui8slice = nil
  2794. } else {
  2795. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2796. }
  2797. yyj81++
  2798. if yyhl81 {
  2799. yyb81 = yyj81 > l
  2800. } else {
  2801. yyb81 = r.CheckBreak()
  2802. }
  2803. if yyb81 {
  2804. z.DecReadArrayEnd()
  2805. return
  2806. }
  2807. z.DecReadArrayElem()
  2808. if r.TryDecodeAsNil() {
  2809. x.Bslice = nil
  2810. } else {
  2811. z.F.DecSliceBoolX(&x.Bslice, d)
  2812. }
  2813. yyj81++
  2814. if yyhl81 {
  2815. yyb81 = yyj81 > l
  2816. } else {
  2817. yyb81 = r.CheckBreak()
  2818. }
  2819. if yyb81 {
  2820. z.DecReadArrayEnd()
  2821. return
  2822. }
  2823. z.DecReadArrayElem()
  2824. if r.TryDecodeAsNil() {
  2825. x.Byslice = nil
  2826. } else {
  2827. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2828. }
  2829. yyj81++
  2830. if yyhl81 {
  2831. yyb81 = yyj81 > l
  2832. } else {
  2833. yyb81 = r.CheckBreak()
  2834. }
  2835. if yyb81 {
  2836. z.DecReadArrayEnd()
  2837. return
  2838. }
  2839. z.DecReadArrayElem()
  2840. if r.TryDecodeAsNil() {
  2841. x.BytesSlice = nil
  2842. } else {
  2843. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2844. }
  2845. yyj81++
  2846. if yyhl81 {
  2847. yyb81 = yyj81 > l
  2848. } else {
  2849. yyb81 = r.CheckBreak()
  2850. }
  2851. if yyb81 {
  2852. z.DecReadArrayEnd()
  2853. return
  2854. }
  2855. z.DecReadArrayElem()
  2856. if r.TryDecodeAsNil() {
  2857. x.Iptrslice = nil
  2858. } else {
  2859. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2860. }
  2861. yyj81++
  2862. if yyhl81 {
  2863. yyb81 = yyj81 > l
  2864. } else {
  2865. yyb81 = r.CheckBreak()
  2866. }
  2867. if yyb81 {
  2868. z.DecReadArrayEnd()
  2869. return
  2870. }
  2871. z.DecReadArrayElem()
  2872. if r.TryDecodeAsNil() {
  2873. x.WrapSliceInt64 = nil
  2874. } else {
  2875. x.WrapSliceInt64.CodecDecodeSelf(d)
  2876. }
  2877. yyj81++
  2878. if yyhl81 {
  2879. yyb81 = yyj81 > l
  2880. } else {
  2881. yyb81 = r.CheckBreak()
  2882. }
  2883. if yyb81 {
  2884. z.DecReadArrayEnd()
  2885. return
  2886. }
  2887. z.DecReadArrayElem()
  2888. if r.TryDecodeAsNil() {
  2889. x.WrapSliceString = nil
  2890. } else {
  2891. x.WrapSliceString.CodecDecodeSelf(d)
  2892. }
  2893. yyj81++
  2894. if yyhl81 {
  2895. yyb81 = yyj81 > l
  2896. } else {
  2897. yyb81 = r.CheckBreak()
  2898. }
  2899. if yyb81 {
  2900. z.DecReadArrayEnd()
  2901. return
  2902. }
  2903. z.DecReadArrayElem()
  2904. if r.TryDecodeAsNil() {
  2905. x.Msi64 = nil
  2906. } else {
  2907. z.F.DecMapStringInt64X(&x.Msi64, d)
  2908. }
  2909. yyj81++
  2910. if yyhl81 {
  2911. yyb81 = yyj81 > l
  2912. } else {
  2913. yyb81 = r.CheckBreak()
  2914. }
  2915. if yyb81 {
  2916. z.DecReadArrayEnd()
  2917. return
  2918. }
  2919. z.DecReadArrayElem()
  2920. if r.TryDecodeAsNil() {
  2921. x.Msbytes = nil
  2922. } else {
  2923. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2924. }
  2925. yyj81++
  2926. if yyhl81 {
  2927. yyb81 = yyj81 > l
  2928. } else {
  2929. yyb81 = r.CheckBreak()
  2930. }
  2931. if yyb81 {
  2932. z.DecReadArrayEnd()
  2933. return
  2934. }
  2935. z.DecReadArrayElem()
  2936. if r.TryDecodeAsNil() {
  2937. x.Simplef = testSimpleFields{}
  2938. } else {
  2939. x.Simplef.CodecDecodeSelf(d)
  2940. }
  2941. yyj81++
  2942. if yyhl81 {
  2943. yyb81 = yyj81 > l
  2944. } else {
  2945. yyb81 = r.CheckBreak()
  2946. }
  2947. if yyb81 {
  2948. z.DecReadArrayEnd()
  2949. return
  2950. }
  2951. z.DecReadArrayElem()
  2952. if r.TryDecodeAsNil() {
  2953. x.SstrUi64T = nil
  2954. } else {
  2955. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2956. }
  2957. yyj81++
  2958. if yyhl81 {
  2959. yyb81 = yyj81 > l
  2960. } else {
  2961. yyb81 = r.CheckBreak()
  2962. }
  2963. if yyb81 {
  2964. z.DecReadArrayEnd()
  2965. return
  2966. }
  2967. z.DecReadArrayElem()
  2968. if r.TryDecodeAsNil() {
  2969. x.AnonInTestStruc.AS = ""
  2970. } else {
  2971. x.AnonInTestStruc.AS = (string)(r.DecodeString())
  2972. }
  2973. yyj81++
  2974. if yyhl81 {
  2975. yyb81 = yyj81 > l
  2976. } else {
  2977. yyb81 = r.CheckBreak()
  2978. }
  2979. if yyb81 {
  2980. z.DecReadArrayEnd()
  2981. return
  2982. }
  2983. z.DecReadArrayElem()
  2984. if r.TryDecodeAsNil() {
  2985. x.AnonInTestStruc.AI64 = 0
  2986. } else {
  2987. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2988. }
  2989. yyj81++
  2990. if yyhl81 {
  2991. yyb81 = yyj81 > l
  2992. } else {
  2993. yyb81 = r.CheckBreak()
  2994. }
  2995. if yyb81 {
  2996. z.DecReadArrayEnd()
  2997. return
  2998. }
  2999. z.DecReadArrayElem()
  3000. if r.TryDecodeAsNil() {
  3001. x.AnonInTestStruc.AI16 = 0
  3002. } else {
  3003. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3004. }
  3005. yyj81++
  3006. if yyhl81 {
  3007. yyb81 = yyj81 > l
  3008. } else {
  3009. yyb81 = r.CheckBreak()
  3010. }
  3011. if yyb81 {
  3012. z.DecReadArrayEnd()
  3013. return
  3014. }
  3015. z.DecReadArrayElem()
  3016. if r.TryDecodeAsNil() {
  3017. x.AnonInTestStruc.AUi64 = 0
  3018. } else {
  3019. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3020. }
  3021. yyj81++
  3022. if yyhl81 {
  3023. yyb81 = yyj81 > l
  3024. } else {
  3025. yyb81 = r.CheckBreak()
  3026. }
  3027. if yyb81 {
  3028. z.DecReadArrayEnd()
  3029. return
  3030. }
  3031. z.DecReadArrayElem()
  3032. if r.TryDecodeAsNil() {
  3033. x.AnonInTestStruc.ASslice = nil
  3034. } else {
  3035. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  3036. }
  3037. yyj81++
  3038. if yyhl81 {
  3039. yyb81 = yyj81 > l
  3040. } else {
  3041. yyb81 = r.CheckBreak()
  3042. }
  3043. if yyb81 {
  3044. z.DecReadArrayEnd()
  3045. return
  3046. }
  3047. z.DecReadArrayElem()
  3048. if r.TryDecodeAsNil() {
  3049. x.AnonInTestStruc.AI64slice = nil
  3050. } else {
  3051. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  3052. }
  3053. yyj81++
  3054. if yyhl81 {
  3055. yyb81 = yyj81 > l
  3056. } else {
  3057. yyb81 = r.CheckBreak()
  3058. }
  3059. if yyb81 {
  3060. z.DecReadArrayEnd()
  3061. return
  3062. }
  3063. z.DecReadArrayElem()
  3064. if r.TryDecodeAsNil() {
  3065. x.AnonInTestStruc.AUi64slice = nil
  3066. } else {
  3067. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  3068. }
  3069. yyj81++
  3070. if yyhl81 {
  3071. yyb81 = yyj81 > l
  3072. } else {
  3073. yyb81 = r.CheckBreak()
  3074. }
  3075. if yyb81 {
  3076. z.DecReadArrayEnd()
  3077. return
  3078. }
  3079. z.DecReadArrayElem()
  3080. if r.TryDecodeAsNil() {
  3081. x.AnonInTestStruc.AF64slice = nil
  3082. } else {
  3083. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  3084. }
  3085. yyj81++
  3086. if yyhl81 {
  3087. yyb81 = yyj81 > l
  3088. } else {
  3089. yyb81 = r.CheckBreak()
  3090. }
  3091. if yyb81 {
  3092. z.DecReadArrayEnd()
  3093. return
  3094. }
  3095. z.DecReadArrayElem()
  3096. if r.TryDecodeAsNil() {
  3097. x.AnonInTestStruc.AF32slice = nil
  3098. } else {
  3099. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  3100. }
  3101. yyj81++
  3102. if yyhl81 {
  3103. yyb81 = yyj81 > l
  3104. } else {
  3105. yyb81 = r.CheckBreak()
  3106. }
  3107. if yyb81 {
  3108. z.DecReadArrayEnd()
  3109. return
  3110. }
  3111. z.DecReadArrayElem()
  3112. if r.TryDecodeAsNil() {
  3113. x.AnonInTestStruc.AMSU16 = nil
  3114. } else {
  3115. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  3116. }
  3117. yyj81++
  3118. if yyhl81 {
  3119. yyb81 = yyj81 > l
  3120. } else {
  3121. yyb81 = r.CheckBreak()
  3122. }
  3123. if yyb81 {
  3124. z.DecReadArrayEnd()
  3125. return
  3126. }
  3127. z.DecReadArrayElem()
  3128. if r.TryDecodeAsNil() {
  3129. x.AnonInTestStruc.AI64arr0 = [0]int64{}
  3130. } else {
  3131. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  3132. }
  3133. yyj81++
  3134. if yyhl81 {
  3135. yyb81 = yyj81 > l
  3136. } else {
  3137. yyb81 = r.CheckBreak()
  3138. }
  3139. if yyb81 {
  3140. z.DecReadArrayEnd()
  3141. return
  3142. }
  3143. z.DecReadArrayElem()
  3144. if r.TryDecodeAsNil() {
  3145. x.AnonInTestStruc.A164slice0 = nil
  3146. } else {
  3147. z.F.DecSliceInt64X(&x.AnonInTestStruc.A164slice0, d)
  3148. }
  3149. yyj81++
  3150. if yyhl81 {
  3151. yyb81 = yyj81 > l
  3152. } else {
  3153. yyb81 = r.CheckBreak()
  3154. }
  3155. if yyb81 {
  3156. z.DecReadArrayEnd()
  3157. return
  3158. }
  3159. z.DecReadArrayElem()
  3160. if r.TryDecodeAsNil() {
  3161. x.AnonInTestStruc.AUi64sliceN = nil
  3162. } else {
  3163. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  3164. }
  3165. yyj81++
  3166. if yyhl81 {
  3167. yyb81 = yyj81 > l
  3168. } else {
  3169. yyb81 = r.CheckBreak()
  3170. }
  3171. if yyb81 {
  3172. z.DecReadArrayEnd()
  3173. return
  3174. }
  3175. z.DecReadArrayElem()
  3176. if r.TryDecodeAsNil() {
  3177. x.AnonInTestStruc.AMSU16N = nil
  3178. } else {
  3179. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  3180. }
  3181. yyj81++
  3182. if yyhl81 {
  3183. yyb81 = yyj81 > l
  3184. } else {
  3185. yyb81 = r.CheckBreak()
  3186. }
  3187. if yyb81 {
  3188. z.DecReadArrayEnd()
  3189. return
  3190. }
  3191. z.DecReadArrayElem()
  3192. if r.TryDecodeAsNil() {
  3193. x.AnonInTestStruc.AMSU16E = nil
  3194. } else {
  3195. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  3196. }
  3197. yyj81++
  3198. if yyhl81 {
  3199. yyb81 = yyj81 > l
  3200. } else {
  3201. yyb81 = r.CheckBreak()
  3202. }
  3203. if yyb81 {
  3204. z.DecReadArrayEnd()
  3205. return
  3206. }
  3207. z.DecReadArrayElem()
  3208. if r.TryDecodeAsNil() {
  3209. x.NotAnon = AnonInTestStruc{}
  3210. } else {
  3211. x.NotAnon.CodecDecodeSelf(d)
  3212. }
  3213. yyj81++
  3214. if yyhl81 {
  3215. yyb81 = yyj81 > l
  3216. } else {
  3217. yyb81 = r.CheckBreak()
  3218. }
  3219. if yyb81 {
  3220. z.DecReadArrayEnd()
  3221. return
  3222. }
  3223. z.DecReadArrayElem()
  3224. if r.TryDecodeAsNil() {
  3225. x.Nmap = nil
  3226. } else {
  3227. z.F.DecMapStringBoolX(&x.Nmap, d)
  3228. }
  3229. yyj81++
  3230. if yyhl81 {
  3231. yyb81 = yyj81 > l
  3232. } else {
  3233. yyb81 = r.CheckBreak()
  3234. }
  3235. if yyb81 {
  3236. z.DecReadArrayEnd()
  3237. return
  3238. }
  3239. z.DecReadArrayElem()
  3240. if r.TryDecodeAsNil() {
  3241. x.Nslice = nil
  3242. } else {
  3243. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  3244. }
  3245. yyj81++
  3246. if yyhl81 {
  3247. yyb81 = yyj81 > l
  3248. } else {
  3249. yyb81 = r.CheckBreak()
  3250. }
  3251. if yyb81 {
  3252. z.DecReadArrayEnd()
  3253. return
  3254. }
  3255. z.DecReadArrayElem()
  3256. if r.TryDecodeAsNil() {
  3257. if x.Nint64 != nil { // remove the if-true
  3258. x.Nint64 = nil
  3259. }
  3260. } else {
  3261. if x.Nint64 == nil {
  3262. x.Nint64 = new(int64)
  3263. }
  3264. *x.Nint64 = (int64)(r.DecodeInt64())
  3265. }
  3266. for {
  3267. yyj81++
  3268. if yyhl81 {
  3269. yyb81 = yyj81 > l
  3270. } else {
  3271. yyb81 = r.CheckBreak()
  3272. }
  3273. if yyb81 {
  3274. break
  3275. }
  3276. z.DecReadArrayElem()
  3277. z.DecStructFieldNotFound(yyj81-1, "")
  3278. }
  3279. z.DecReadArrayEnd()
  3280. }
  3281. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  3282. var h codecSelfer19780
  3283. z, r := GenHelperEncoder(e)
  3284. _, _, _ = h, z, r
  3285. if x == nil {
  3286. r.EncodeNil()
  3287. } else {
  3288. yysep2 := !z.EncBinary()
  3289. yy2arr2 := z.EncBasicHandle().StructToArray
  3290. _, _ = yysep2, yy2arr2
  3291. const yyr2 bool = false // struct tag has 'toArray'
  3292. var yyn53 bool = x.TestStrucCommon.Nint64 == nil
  3293. var yyn57 bool = x.Nteststruc == nil
  3294. if yyr2 || yy2arr2 {
  3295. z.EncWriteArrayStart(55)
  3296. z.EncWriteArrayElem()
  3297. if z.EncBasicHandle().StringToRaw {
  3298. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3299. } else {
  3300. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3301. }
  3302. z.EncWriteArrayElem()
  3303. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3304. z.EncWriteArrayElem()
  3305. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3306. z.EncWriteArrayElem()
  3307. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3308. z.EncWriteArrayElem()
  3309. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3310. z.EncWriteArrayElem()
  3311. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3312. z.EncWriteArrayElem()
  3313. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3314. z.EncWriteArrayElem()
  3315. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3316. z.EncWriteArrayElem()
  3317. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3318. z.EncWriteArrayElem()
  3319. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3320. z.EncWriteArrayElem()
  3321. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3322. z.EncWriteArrayElem()
  3323. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3324. z.EncWriteArrayElem()
  3325. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3326. z.EncWriteArrayElem()
  3327. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3328. z.EncWriteArrayElem()
  3329. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3330. z.EncWriteArrayElem()
  3331. r.EncodeBool(bool(x.TestStrucCommon.B))
  3332. z.EncWriteArrayElem()
  3333. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3334. z.EncWriteArrayElem()
  3335. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3336. z.EncWriteArrayElem()
  3337. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3338. z.EncWriteArrayElem()
  3339. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3340. z.EncWriteArrayElem()
  3341. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3342. z.EncWriteArrayElem()
  3343. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3344. z.EncWriteArrayElem()
  3345. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3346. z.EncWriteArrayElem()
  3347. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3348. z.EncWriteArrayElem()
  3349. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3350. z.EncWriteArrayElem()
  3351. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3352. z.EncWriteArrayElem()
  3353. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3354. z.EncWriteArrayElem()
  3355. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3356. z.EncWriteArrayElem()
  3357. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3358. z.EncWriteArrayElem()
  3359. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3360. z.EncWriteArrayElem()
  3361. yy88 := &x.TestStrucCommon.Simplef
  3362. yy88.CodecEncodeSelf(e)
  3363. z.EncWriteArrayElem()
  3364. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3365. z.EncWriteArrayElem()
  3366. if z.EncBasicHandle().StringToRaw {
  3367. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3368. } else {
  3369. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3370. }
  3371. z.EncWriteArrayElem()
  3372. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3373. z.EncWriteArrayElem()
  3374. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3375. z.EncWriteArrayElem()
  3376. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3377. z.EncWriteArrayElem()
  3378. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3379. z.EncWriteArrayElem()
  3380. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3381. z.EncWriteArrayElem()
  3382. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3383. z.EncWriteArrayElem()
  3384. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3385. z.EncWriteArrayElem()
  3386. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3387. z.EncWriteArrayElem()
  3388. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3389. z.EncWriteArrayElem()
  3390. yy101 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3391. h.encArray0int64((*[0]int64)(yy101), e)
  3392. z.EncWriteArrayElem()
  3393. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  3394. z.EncWriteArrayElem()
  3395. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3396. z.EncWriteArrayElem()
  3397. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3398. z.EncWriteArrayElem()
  3399. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3400. z.EncWriteArrayElem()
  3401. yy107 := &x.TestStrucCommon.NotAnon
  3402. yy107.CodecEncodeSelf(e)
  3403. z.EncWriteArrayElem()
  3404. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3405. z.EncWriteArrayElem()
  3406. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3407. if yyn53 {
  3408. z.EncWriteArrayElem()
  3409. r.EncodeNil()
  3410. } else {
  3411. z.EncWriteArrayElem()
  3412. yy111 := *x.TestStrucCommon.Nint64
  3413. r.EncodeInt(int64(yy111))
  3414. }
  3415. z.EncWriteArrayElem()
  3416. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3417. z.EncWriteArrayElem()
  3418. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3419. z.EncWriteArrayElem()
  3420. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3421. if yyn57 {
  3422. z.EncWriteArrayElem()
  3423. r.EncodeNil()
  3424. } else {
  3425. z.EncWriteArrayElem()
  3426. x.Nteststruc.CodecEncodeSelf(e)
  3427. }
  3428. z.EncWriteArrayEnd()
  3429. } else {
  3430. z.EncWriteMapStart(55)
  3431. z.EncWriteMapElemKey()
  3432. if z.IsJSONHandle() {
  3433. z.WriteStr("\"S\"")
  3434. } else {
  3435. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3436. }
  3437. z.EncWriteMapElemValue()
  3438. if z.EncBasicHandle().StringToRaw {
  3439. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3440. } else {
  3441. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3442. }
  3443. z.EncWriteMapElemKey()
  3444. if z.IsJSONHandle() {
  3445. z.WriteStr("\"I64\"")
  3446. } else {
  3447. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3448. }
  3449. z.EncWriteMapElemValue()
  3450. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3451. z.EncWriteMapElemKey()
  3452. if z.IsJSONHandle() {
  3453. z.WriteStr("\"I32\"")
  3454. } else {
  3455. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3456. }
  3457. z.EncWriteMapElemValue()
  3458. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3459. z.EncWriteMapElemKey()
  3460. if z.IsJSONHandle() {
  3461. z.WriteStr("\"I16\"")
  3462. } else {
  3463. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3464. }
  3465. z.EncWriteMapElemValue()
  3466. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3467. z.EncWriteMapElemKey()
  3468. if z.IsJSONHandle() {
  3469. z.WriteStr("\"I8\"")
  3470. } else {
  3471. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3472. }
  3473. z.EncWriteMapElemValue()
  3474. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3475. z.EncWriteMapElemKey()
  3476. if z.IsJSONHandle() {
  3477. z.WriteStr("\"I64n\"")
  3478. } else {
  3479. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3480. }
  3481. z.EncWriteMapElemValue()
  3482. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3483. z.EncWriteMapElemKey()
  3484. if z.IsJSONHandle() {
  3485. z.WriteStr("\"I32n\"")
  3486. } else {
  3487. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3488. }
  3489. z.EncWriteMapElemValue()
  3490. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3491. z.EncWriteMapElemKey()
  3492. if z.IsJSONHandle() {
  3493. z.WriteStr("\"I16n\"")
  3494. } else {
  3495. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3496. }
  3497. z.EncWriteMapElemValue()
  3498. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3499. z.EncWriteMapElemKey()
  3500. if z.IsJSONHandle() {
  3501. z.WriteStr("\"I8n\"")
  3502. } else {
  3503. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3504. }
  3505. z.EncWriteMapElemValue()
  3506. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3507. z.EncWriteMapElemKey()
  3508. if z.IsJSONHandle() {
  3509. z.WriteStr("\"Ui64\"")
  3510. } else {
  3511. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3512. }
  3513. z.EncWriteMapElemValue()
  3514. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3515. z.EncWriteMapElemKey()
  3516. if z.IsJSONHandle() {
  3517. z.WriteStr("\"Ui32\"")
  3518. } else {
  3519. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3520. }
  3521. z.EncWriteMapElemValue()
  3522. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3523. z.EncWriteMapElemKey()
  3524. if z.IsJSONHandle() {
  3525. z.WriteStr("\"Ui16\"")
  3526. } else {
  3527. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3528. }
  3529. z.EncWriteMapElemValue()
  3530. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3531. z.EncWriteMapElemKey()
  3532. if z.IsJSONHandle() {
  3533. z.WriteStr("\"Ui8\"")
  3534. } else {
  3535. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  3536. }
  3537. z.EncWriteMapElemValue()
  3538. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3539. z.EncWriteMapElemKey()
  3540. if z.IsJSONHandle() {
  3541. z.WriteStr("\"F64\"")
  3542. } else {
  3543. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  3544. }
  3545. z.EncWriteMapElemValue()
  3546. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3547. z.EncWriteMapElemKey()
  3548. if z.IsJSONHandle() {
  3549. z.WriteStr("\"F32\"")
  3550. } else {
  3551. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  3552. }
  3553. z.EncWriteMapElemValue()
  3554. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3555. z.EncWriteMapElemKey()
  3556. if z.IsJSONHandle() {
  3557. z.WriteStr("\"B\"")
  3558. } else {
  3559. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  3560. }
  3561. z.EncWriteMapElemValue()
  3562. r.EncodeBool(bool(x.TestStrucCommon.B))
  3563. z.EncWriteMapElemKey()
  3564. if z.IsJSONHandle() {
  3565. z.WriteStr("\"By\"")
  3566. } else {
  3567. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  3568. }
  3569. z.EncWriteMapElemValue()
  3570. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3571. z.EncWriteMapElemKey()
  3572. if z.IsJSONHandle() {
  3573. z.WriteStr("\"Sslice\"")
  3574. } else {
  3575. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  3576. }
  3577. z.EncWriteMapElemValue()
  3578. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3579. z.EncWriteMapElemKey()
  3580. if z.IsJSONHandle() {
  3581. z.WriteStr("\"I64slice\"")
  3582. } else {
  3583. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  3584. }
  3585. z.EncWriteMapElemValue()
  3586. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3587. z.EncWriteMapElemKey()
  3588. if z.IsJSONHandle() {
  3589. z.WriteStr("\"I16slice\"")
  3590. } else {
  3591. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  3592. }
  3593. z.EncWriteMapElemValue()
  3594. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3595. z.EncWriteMapElemKey()
  3596. if z.IsJSONHandle() {
  3597. z.WriteStr("\"Ui64slice\"")
  3598. } else {
  3599. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  3600. }
  3601. z.EncWriteMapElemValue()
  3602. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3603. z.EncWriteMapElemKey()
  3604. if z.IsJSONHandle() {
  3605. z.WriteStr("\"Ui8slice\"")
  3606. } else {
  3607. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  3608. }
  3609. z.EncWriteMapElemValue()
  3610. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3611. z.EncWriteMapElemKey()
  3612. if z.IsJSONHandle() {
  3613. z.WriteStr("\"Bslice\"")
  3614. } else {
  3615. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  3616. }
  3617. z.EncWriteMapElemValue()
  3618. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3619. z.EncWriteMapElemKey()
  3620. if z.IsJSONHandle() {
  3621. z.WriteStr("\"Byslice\"")
  3622. } else {
  3623. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  3624. }
  3625. z.EncWriteMapElemValue()
  3626. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3627. z.EncWriteMapElemKey()
  3628. if z.IsJSONHandle() {
  3629. z.WriteStr("\"BytesSlice\"")
  3630. } else {
  3631. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  3632. }
  3633. z.EncWriteMapElemValue()
  3634. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3635. z.EncWriteMapElemKey()
  3636. if z.IsJSONHandle() {
  3637. z.WriteStr("\"Iptrslice\"")
  3638. } else {
  3639. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  3640. }
  3641. z.EncWriteMapElemValue()
  3642. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3643. z.EncWriteMapElemKey()
  3644. if z.IsJSONHandle() {
  3645. z.WriteStr("\"WrapSliceInt64\"")
  3646. } else {
  3647. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  3648. }
  3649. z.EncWriteMapElemValue()
  3650. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3651. z.EncWriteMapElemKey()
  3652. if z.IsJSONHandle() {
  3653. z.WriteStr("\"WrapSliceString\"")
  3654. } else {
  3655. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  3656. }
  3657. z.EncWriteMapElemValue()
  3658. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3659. z.EncWriteMapElemKey()
  3660. if z.IsJSONHandle() {
  3661. z.WriteStr("\"Msi64\"")
  3662. } else {
  3663. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  3664. }
  3665. z.EncWriteMapElemValue()
  3666. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3667. z.EncWriteMapElemKey()
  3668. if z.IsJSONHandle() {
  3669. z.WriteStr("\"Msbytes\"")
  3670. } else {
  3671. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  3672. }
  3673. z.EncWriteMapElemValue()
  3674. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3675. z.EncWriteMapElemKey()
  3676. if z.IsJSONHandle() {
  3677. z.WriteStr("\"Simplef\"")
  3678. } else {
  3679. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  3680. }
  3681. z.EncWriteMapElemValue()
  3682. yy147 := &x.TestStrucCommon.Simplef
  3683. yy147.CodecEncodeSelf(e)
  3684. z.EncWriteMapElemKey()
  3685. if z.IsJSONHandle() {
  3686. z.WriteStr("\"SstrUi64T\"")
  3687. } else {
  3688. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  3689. }
  3690. z.EncWriteMapElemValue()
  3691. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3692. z.EncWriteMapElemKey()
  3693. if z.IsJSONHandle() {
  3694. z.WriteStr("\"AS\"")
  3695. } else {
  3696. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  3697. }
  3698. z.EncWriteMapElemValue()
  3699. if z.EncBasicHandle().StringToRaw {
  3700. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3701. } else {
  3702. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3703. }
  3704. z.EncWriteMapElemKey()
  3705. if z.IsJSONHandle() {
  3706. z.WriteStr("\"AI64\"")
  3707. } else {
  3708. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  3709. }
  3710. z.EncWriteMapElemValue()
  3711. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3712. z.EncWriteMapElemKey()
  3713. if z.IsJSONHandle() {
  3714. z.WriteStr("\"AI16\"")
  3715. } else {
  3716. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  3717. }
  3718. z.EncWriteMapElemValue()
  3719. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3720. z.EncWriteMapElemKey()
  3721. if z.IsJSONHandle() {
  3722. z.WriteStr("\"AUi64\"")
  3723. } else {
  3724. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  3725. }
  3726. z.EncWriteMapElemValue()
  3727. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3728. z.EncWriteMapElemKey()
  3729. if z.IsJSONHandle() {
  3730. z.WriteStr("\"ASslice\"")
  3731. } else {
  3732. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  3733. }
  3734. z.EncWriteMapElemValue()
  3735. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3736. z.EncWriteMapElemKey()
  3737. if z.IsJSONHandle() {
  3738. z.WriteStr("\"AI64slice\"")
  3739. } else {
  3740. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  3741. }
  3742. z.EncWriteMapElemValue()
  3743. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3744. z.EncWriteMapElemKey()
  3745. if z.IsJSONHandle() {
  3746. z.WriteStr("\"AUi64slice\"")
  3747. } else {
  3748. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3749. }
  3750. z.EncWriteMapElemValue()
  3751. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3752. z.EncWriteMapElemKey()
  3753. if z.IsJSONHandle() {
  3754. z.WriteStr("\"AF64slice\"")
  3755. } else {
  3756. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3757. }
  3758. z.EncWriteMapElemValue()
  3759. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3760. z.EncWriteMapElemKey()
  3761. if z.IsJSONHandle() {
  3762. z.WriteStr("\"AF32slice\"")
  3763. } else {
  3764. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3765. }
  3766. z.EncWriteMapElemValue()
  3767. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3768. z.EncWriteMapElemKey()
  3769. if z.IsJSONHandle() {
  3770. z.WriteStr("\"AMSU16\"")
  3771. } else {
  3772. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3773. }
  3774. z.EncWriteMapElemValue()
  3775. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3776. z.EncWriteMapElemKey()
  3777. if z.IsJSONHandle() {
  3778. z.WriteStr("\"AI64arr0\"")
  3779. } else {
  3780. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3781. }
  3782. z.EncWriteMapElemValue()
  3783. yy160 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3784. h.encArray0int64((*[0]int64)(yy160), e)
  3785. z.EncWriteMapElemKey()
  3786. if z.IsJSONHandle() {
  3787. z.WriteStr("\"A164slice0\"")
  3788. } else {
  3789. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  3790. }
  3791. z.EncWriteMapElemValue()
  3792. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  3793. z.EncWriteMapElemKey()
  3794. if z.IsJSONHandle() {
  3795. z.WriteStr("\"AUi64sliceN\"")
  3796. } else {
  3797. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3798. }
  3799. z.EncWriteMapElemValue()
  3800. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3801. z.EncWriteMapElemKey()
  3802. if z.IsJSONHandle() {
  3803. z.WriteStr("\"AMSU16N\"")
  3804. } else {
  3805. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3806. }
  3807. z.EncWriteMapElemValue()
  3808. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3809. z.EncWriteMapElemKey()
  3810. if z.IsJSONHandle() {
  3811. z.WriteStr("\"AMSU16E\"")
  3812. } else {
  3813. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3814. }
  3815. z.EncWriteMapElemValue()
  3816. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3817. z.EncWriteMapElemKey()
  3818. if z.IsJSONHandle() {
  3819. z.WriteStr("\"NotAnon\"")
  3820. } else {
  3821. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3822. }
  3823. z.EncWriteMapElemValue()
  3824. yy166 := &x.TestStrucCommon.NotAnon
  3825. yy166.CodecEncodeSelf(e)
  3826. z.EncWriteMapElemKey()
  3827. if z.IsJSONHandle() {
  3828. z.WriteStr("\"Nmap\"")
  3829. } else {
  3830. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3831. }
  3832. z.EncWriteMapElemValue()
  3833. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3834. z.EncWriteMapElemKey()
  3835. if z.IsJSONHandle() {
  3836. z.WriteStr("\"Nslice\"")
  3837. } else {
  3838. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3839. }
  3840. z.EncWriteMapElemValue()
  3841. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3842. z.EncWriteMapElemKey()
  3843. if z.IsJSONHandle() {
  3844. z.WriteStr("\"Nint64\"")
  3845. } else {
  3846. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3847. }
  3848. z.EncWriteMapElemValue()
  3849. if yyn53 {
  3850. r.EncodeNil()
  3851. } else {
  3852. yy170 := *x.TestStrucCommon.Nint64
  3853. r.EncodeInt(int64(yy170))
  3854. }
  3855. z.EncWriteMapElemKey()
  3856. if z.IsJSONHandle() {
  3857. z.WriteStr("\"Mtsptr\"")
  3858. } else {
  3859. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  3860. }
  3861. z.EncWriteMapElemValue()
  3862. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3863. z.EncWriteMapElemKey()
  3864. if z.IsJSONHandle() {
  3865. z.WriteStr("\"Mts\"")
  3866. } else {
  3867. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  3868. }
  3869. z.EncWriteMapElemValue()
  3870. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3871. z.EncWriteMapElemKey()
  3872. if z.IsJSONHandle() {
  3873. z.WriteStr("\"Its\"")
  3874. } else {
  3875. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  3876. }
  3877. z.EncWriteMapElemValue()
  3878. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3879. z.EncWriteMapElemKey()
  3880. if z.IsJSONHandle() {
  3881. z.WriteStr("\"Nteststruc\"")
  3882. } else {
  3883. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  3884. }
  3885. z.EncWriteMapElemValue()
  3886. if yyn57 {
  3887. r.EncodeNil()
  3888. } else {
  3889. x.Nteststruc.CodecEncodeSelf(e)
  3890. }
  3891. z.EncWriteMapEnd()
  3892. }
  3893. }
  3894. }
  3895. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  3896. var h codecSelfer19780
  3897. z, r := GenHelperDecoder(d)
  3898. _, _, _ = h, z, r
  3899. yyct2 := r.ContainerType()
  3900. if yyct2 == codecSelferValueTypeMap19780 {
  3901. yyl2 := z.DecReadMapStart()
  3902. if yyl2 == 0 {
  3903. z.DecReadMapEnd()
  3904. } else {
  3905. x.codecDecodeSelfFromMap(yyl2, d)
  3906. }
  3907. } else if yyct2 == codecSelferValueTypeArray19780 {
  3908. yyl2 := z.DecReadArrayStart()
  3909. if yyl2 == 0 {
  3910. z.DecReadArrayEnd()
  3911. } else {
  3912. x.codecDecodeSelfFromArray(yyl2, d)
  3913. }
  3914. } else {
  3915. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3916. }
  3917. }
  3918. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  3919. var h codecSelfer19780
  3920. z, r := GenHelperDecoder(d)
  3921. _, _, _ = h, z, r
  3922. var yyhl3 bool = l >= 0
  3923. for yyj3 := 0; ; yyj3++ {
  3924. if yyhl3 {
  3925. if yyj3 >= l {
  3926. break
  3927. }
  3928. } else {
  3929. if r.CheckBreak() {
  3930. break
  3931. }
  3932. }
  3933. z.DecReadMapElemKey()
  3934. yys3 := z.StringView(r.DecodeStringAsBytes())
  3935. z.DecReadMapElemValue()
  3936. switch yys3 {
  3937. case "S":
  3938. if r.TryDecodeAsNil() {
  3939. x.TestStrucCommon.S = ""
  3940. } else {
  3941. x.TestStrucCommon.S = (string)(r.DecodeString())
  3942. }
  3943. case "I64":
  3944. if r.TryDecodeAsNil() {
  3945. x.TestStrucCommon.I64 = 0
  3946. } else {
  3947. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  3948. }
  3949. case "I32":
  3950. if r.TryDecodeAsNil() {
  3951. x.TestStrucCommon.I32 = 0
  3952. } else {
  3953. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3954. }
  3955. case "I16":
  3956. if r.TryDecodeAsNil() {
  3957. x.TestStrucCommon.I16 = 0
  3958. } else {
  3959. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3960. }
  3961. case "I8":
  3962. if r.TryDecodeAsNil() {
  3963. x.TestStrucCommon.I8 = 0
  3964. } else {
  3965. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3966. }
  3967. case "I64n":
  3968. if r.TryDecodeAsNil() {
  3969. x.TestStrucCommon.I64n = 0
  3970. } else {
  3971. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  3972. }
  3973. case "I32n":
  3974. if r.TryDecodeAsNil() {
  3975. x.TestStrucCommon.I32n = 0
  3976. } else {
  3977. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3978. }
  3979. case "I16n":
  3980. if r.TryDecodeAsNil() {
  3981. x.TestStrucCommon.I16n = 0
  3982. } else {
  3983. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3984. }
  3985. case "I8n":
  3986. if r.TryDecodeAsNil() {
  3987. x.TestStrucCommon.I8n = 0
  3988. } else {
  3989. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3990. }
  3991. case "Ui64":
  3992. if r.TryDecodeAsNil() {
  3993. x.TestStrucCommon.Ui64 = 0
  3994. } else {
  3995. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  3996. }
  3997. case "Ui32":
  3998. if r.TryDecodeAsNil() {
  3999. x.TestStrucCommon.Ui32 = 0
  4000. } else {
  4001. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4002. }
  4003. case "Ui16":
  4004. if r.TryDecodeAsNil() {
  4005. x.TestStrucCommon.Ui16 = 0
  4006. } else {
  4007. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4008. }
  4009. case "Ui8":
  4010. if r.TryDecodeAsNil() {
  4011. x.TestStrucCommon.Ui8 = 0
  4012. } else {
  4013. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4014. }
  4015. case "F64":
  4016. if r.TryDecodeAsNil() {
  4017. x.TestStrucCommon.F64 = 0
  4018. } else {
  4019. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4020. }
  4021. case "F32":
  4022. if r.TryDecodeAsNil() {
  4023. x.TestStrucCommon.F32 = 0
  4024. } else {
  4025. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4026. }
  4027. case "B":
  4028. if r.TryDecodeAsNil() {
  4029. x.TestStrucCommon.B = false
  4030. } else {
  4031. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4032. }
  4033. case "By":
  4034. if r.TryDecodeAsNil() {
  4035. x.TestStrucCommon.By = 0
  4036. } else {
  4037. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4038. }
  4039. case "Sslice":
  4040. if r.TryDecodeAsNil() {
  4041. x.TestStrucCommon.Sslice = nil
  4042. } else {
  4043. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4044. }
  4045. case "I64slice":
  4046. if r.TryDecodeAsNil() {
  4047. x.TestStrucCommon.I64slice = nil
  4048. } else {
  4049. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4050. }
  4051. case "I16slice":
  4052. if r.TryDecodeAsNil() {
  4053. x.TestStrucCommon.I16slice = nil
  4054. } else {
  4055. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4056. }
  4057. case "Ui64slice":
  4058. if r.TryDecodeAsNil() {
  4059. x.TestStrucCommon.Ui64slice = nil
  4060. } else {
  4061. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4062. }
  4063. case "Ui8slice":
  4064. if r.TryDecodeAsNil() {
  4065. x.TestStrucCommon.Ui8slice = nil
  4066. } else {
  4067. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4068. }
  4069. case "Bslice":
  4070. if r.TryDecodeAsNil() {
  4071. x.TestStrucCommon.Bslice = nil
  4072. } else {
  4073. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4074. }
  4075. case "Byslice":
  4076. if r.TryDecodeAsNil() {
  4077. x.TestStrucCommon.Byslice = nil
  4078. } else {
  4079. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4080. }
  4081. case "BytesSlice":
  4082. if r.TryDecodeAsNil() {
  4083. x.TestStrucCommon.BytesSlice = nil
  4084. } else {
  4085. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4086. }
  4087. case "Iptrslice":
  4088. if r.TryDecodeAsNil() {
  4089. x.TestStrucCommon.Iptrslice = nil
  4090. } else {
  4091. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4092. }
  4093. case "WrapSliceInt64":
  4094. if r.TryDecodeAsNil() {
  4095. x.TestStrucCommon.WrapSliceInt64 = nil
  4096. } else {
  4097. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4098. }
  4099. case "WrapSliceString":
  4100. if r.TryDecodeAsNil() {
  4101. x.TestStrucCommon.WrapSliceString = nil
  4102. } else {
  4103. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4104. }
  4105. case "Msi64":
  4106. if r.TryDecodeAsNil() {
  4107. x.TestStrucCommon.Msi64 = nil
  4108. } else {
  4109. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4110. }
  4111. case "Msbytes":
  4112. if r.TryDecodeAsNil() {
  4113. x.TestStrucCommon.Msbytes = nil
  4114. } else {
  4115. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4116. }
  4117. case "Simplef":
  4118. if r.TryDecodeAsNil() {
  4119. x.TestStrucCommon.Simplef = testSimpleFields{}
  4120. } else {
  4121. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4122. }
  4123. case "SstrUi64T":
  4124. if r.TryDecodeAsNil() {
  4125. x.TestStrucCommon.SstrUi64T = nil
  4126. } else {
  4127. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4128. }
  4129. case "AS":
  4130. if r.TryDecodeAsNil() {
  4131. x.TestStrucCommon.AnonInTestStruc.AS = ""
  4132. } else {
  4133. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  4134. }
  4135. case "AI64":
  4136. if r.TryDecodeAsNil() {
  4137. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  4138. } else {
  4139. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4140. }
  4141. case "AI16":
  4142. if r.TryDecodeAsNil() {
  4143. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  4144. } else {
  4145. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4146. }
  4147. case "AUi64":
  4148. if r.TryDecodeAsNil() {
  4149. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  4150. } else {
  4151. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4152. }
  4153. case "ASslice":
  4154. if r.TryDecodeAsNil() {
  4155. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  4156. } else {
  4157. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4158. }
  4159. case "AI64slice":
  4160. if r.TryDecodeAsNil() {
  4161. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  4162. } else {
  4163. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4164. }
  4165. case "AUi64slice":
  4166. if r.TryDecodeAsNil() {
  4167. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  4168. } else {
  4169. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4170. }
  4171. case "AF64slice":
  4172. if r.TryDecodeAsNil() {
  4173. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  4174. } else {
  4175. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4176. }
  4177. case "AF32slice":
  4178. if r.TryDecodeAsNil() {
  4179. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  4180. } else {
  4181. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4182. }
  4183. case "AMSU16":
  4184. if r.TryDecodeAsNil() {
  4185. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  4186. } else {
  4187. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4188. }
  4189. case "AI64arr0":
  4190. if r.TryDecodeAsNil() {
  4191. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  4192. } else {
  4193. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4194. }
  4195. case "A164slice0":
  4196. if r.TryDecodeAsNil() {
  4197. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  4198. } else {
  4199. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  4200. }
  4201. case "AUi64sliceN":
  4202. if r.TryDecodeAsNil() {
  4203. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  4204. } else {
  4205. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  4206. }
  4207. case "AMSU16N":
  4208. if r.TryDecodeAsNil() {
  4209. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  4210. } else {
  4211. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  4212. }
  4213. case "AMSU16E":
  4214. if r.TryDecodeAsNil() {
  4215. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  4216. } else {
  4217. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  4218. }
  4219. case "NotAnon":
  4220. if r.TryDecodeAsNil() {
  4221. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  4222. } else {
  4223. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  4224. }
  4225. case "Nmap":
  4226. if r.TryDecodeAsNil() {
  4227. x.TestStrucCommon.Nmap = nil
  4228. } else {
  4229. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  4230. }
  4231. case "Nslice":
  4232. if r.TryDecodeAsNil() {
  4233. x.TestStrucCommon.Nslice = nil
  4234. } else {
  4235. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  4236. }
  4237. case "Nint64":
  4238. if r.TryDecodeAsNil() {
  4239. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  4240. x.TestStrucCommon.Nint64 = nil
  4241. }
  4242. } else {
  4243. if x.TestStrucCommon.Nint64 == nil {
  4244. x.TestStrucCommon.Nint64 = new(int64)
  4245. }
  4246. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  4247. }
  4248. case "Mtsptr":
  4249. if r.TryDecodeAsNil() {
  4250. x.Mtsptr = nil
  4251. } else {
  4252. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  4253. }
  4254. case "Mts":
  4255. if r.TryDecodeAsNil() {
  4256. x.Mts = nil
  4257. } else {
  4258. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  4259. }
  4260. case "Its":
  4261. if r.TryDecodeAsNil() {
  4262. x.Its = nil
  4263. } else {
  4264. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  4265. }
  4266. case "Nteststruc":
  4267. if r.TryDecodeAsNil() {
  4268. if x.Nteststruc != nil { // remove the if-true
  4269. x.Nteststruc = nil
  4270. }
  4271. } else {
  4272. if x.Nteststruc == nil {
  4273. x.Nteststruc = new(TestStruc)
  4274. }
  4275. x.Nteststruc.CodecDecodeSelf(d)
  4276. }
  4277. default:
  4278. z.DecStructFieldNotFound(-1, yys3)
  4279. } // end switch yys3
  4280. } // end for yyj3
  4281. z.DecReadMapEnd()
  4282. }
  4283. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  4284. var h codecSelfer19780
  4285. z, r := GenHelperDecoder(d)
  4286. _, _, _ = h, z, r
  4287. var yyj88 int
  4288. var yyb88 bool
  4289. var yyhl88 bool = l >= 0
  4290. yyj88++
  4291. if yyhl88 {
  4292. yyb88 = yyj88 > l
  4293. } else {
  4294. yyb88 = r.CheckBreak()
  4295. }
  4296. if yyb88 {
  4297. z.DecReadArrayEnd()
  4298. return
  4299. }
  4300. z.DecReadArrayElem()
  4301. if r.TryDecodeAsNil() {
  4302. x.TestStrucCommon.S = ""
  4303. } else {
  4304. x.TestStrucCommon.S = (string)(r.DecodeString())
  4305. }
  4306. yyj88++
  4307. if yyhl88 {
  4308. yyb88 = yyj88 > l
  4309. } else {
  4310. yyb88 = r.CheckBreak()
  4311. }
  4312. if yyb88 {
  4313. z.DecReadArrayEnd()
  4314. return
  4315. }
  4316. z.DecReadArrayElem()
  4317. if r.TryDecodeAsNil() {
  4318. x.TestStrucCommon.I64 = 0
  4319. } else {
  4320. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4321. }
  4322. yyj88++
  4323. if yyhl88 {
  4324. yyb88 = yyj88 > l
  4325. } else {
  4326. yyb88 = r.CheckBreak()
  4327. }
  4328. if yyb88 {
  4329. z.DecReadArrayEnd()
  4330. return
  4331. }
  4332. z.DecReadArrayElem()
  4333. if r.TryDecodeAsNil() {
  4334. x.TestStrucCommon.I32 = 0
  4335. } else {
  4336. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4337. }
  4338. yyj88++
  4339. if yyhl88 {
  4340. yyb88 = yyj88 > l
  4341. } else {
  4342. yyb88 = r.CheckBreak()
  4343. }
  4344. if yyb88 {
  4345. z.DecReadArrayEnd()
  4346. return
  4347. }
  4348. z.DecReadArrayElem()
  4349. if r.TryDecodeAsNil() {
  4350. x.TestStrucCommon.I16 = 0
  4351. } else {
  4352. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4353. }
  4354. yyj88++
  4355. if yyhl88 {
  4356. yyb88 = yyj88 > l
  4357. } else {
  4358. yyb88 = r.CheckBreak()
  4359. }
  4360. if yyb88 {
  4361. z.DecReadArrayEnd()
  4362. return
  4363. }
  4364. z.DecReadArrayElem()
  4365. if r.TryDecodeAsNil() {
  4366. x.TestStrucCommon.I8 = 0
  4367. } else {
  4368. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4369. }
  4370. yyj88++
  4371. if yyhl88 {
  4372. yyb88 = yyj88 > l
  4373. } else {
  4374. yyb88 = r.CheckBreak()
  4375. }
  4376. if yyb88 {
  4377. z.DecReadArrayEnd()
  4378. return
  4379. }
  4380. z.DecReadArrayElem()
  4381. if r.TryDecodeAsNil() {
  4382. x.TestStrucCommon.I64n = 0
  4383. } else {
  4384. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4385. }
  4386. yyj88++
  4387. if yyhl88 {
  4388. yyb88 = yyj88 > l
  4389. } else {
  4390. yyb88 = r.CheckBreak()
  4391. }
  4392. if yyb88 {
  4393. z.DecReadArrayEnd()
  4394. return
  4395. }
  4396. z.DecReadArrayElem()
  4397. if r.TryDecodeAsNil() {
  4398. x.TestStrucCommon.I32n = 0
  4399. } else {
  4400. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4401. }
  4402. yyj88++
  4403. if yyhl88 {
  4404. yyb88 = yyj88 > l
  4405. } else {
  4406. yyb88 = r.CheckBreak()
  4407. }
  4408. if yyb88 {
  4409. z.DecReadArrayEnd()
  4410. return
  4411. }
  4412. z.DecReadArrayElem()
  4413. if r.TryDecodeAsNil() {
  4414. x.TestStrucCommon.I16n = 0
  4415. } else {
  4416. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4417. }
  4418. yyj88++
  4419. if yyhl88 {
  4420. yyb88 = yyj88 > l
  4421. } else {
  4422. yyb88 = r.CheckBreak()
  4423. }
  4424. if yyb88 {
  4425. z.DecReadArrayEnd()
  4426. return
  4427. }
  4428. z.DecReadArrayElem()
  4429. if r.TryDecodeAsNil() {
  4430. x.TestStrucCommon.I8n = 0
  4431. } else {
  4432. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4433. }
  4434. yyj88++
  4435. if yyhl88 {
  4436. yyb88 = yyj88 > l
  4437. } else {
  4438. yyb88 = r.CheckBreak()
  4439. }
  4440. if yyb88 {
  4441. z.DecReadArrayEnd()
  4442. return
  4443. }
  4444. z.DecReadArrayElem()
  4445. if r.TryDecodeAsNil() {
  4446. x.TestStrucCommon.Ui64 = 0
  4447. } else {
  4448. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4449. }
  4450. yyj88++
  4451. if yyhl88 {
  4452. yyb88 = yyj88 > l
  4453. } else {
  4454. yyb88 = r.CheckBreak()
  4455. }
  4456. if yyb88 {
  4457. z.DecReadArrayEnd()
  4458. return
  4459. }
  4460. z.DecReadArrayElem()
  4461. if r.TryDecodeAsNil() {
  4462. x.TestStrucCommon.Ui32 = 0
  4463. } else {
  4464. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4465. }
  4466. yyj88++
  4467. if yyhl88 {
  4468. yyb88 = yyj88 > l
  4469. } else {
  4470. yyb88 = r.CheckBreak()
  4471. }
  4472. if yyb88 {
  4473. z.DecReadArrayEnd()
  4474. return
  4475. }
  4476. z.DecReadArrayElem()
  4477. if r.TryDecodeAsNil() {
  4478. x.TestStrucCommon.Ui16 = 0
  4479. } else {
  4480. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4481. }
  4482. yyj88++
  4483. if yyhl88 {
  4484. yyb88 = yyj88 > l
  4485. } else {
  4486. yyb88 = r.CheckBreak()
  4487. }
  4488. if yyb88 {
  4489. z.DecReadArrayEnd()
  4490. return
  4491. }
  4492. z.DecReadArrayElem()
  4493. if r.TryDecodeAsNil() {
  4494. x.TestStrucCommon.Ui8 = 0
  4495. } else {
  4496. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4497. }
  4498. yyj88++
  4499. if yyhl88 {
  4500. yyb88 = yyj88 > l
  4501. } else {
  4502. yyb88 = r.CheckBreak()
  4503. }
  4504. if yyb88 {
  4505. z.DecReadArrayEnd()
  4506. return
  4507. }
  4508. z.DecReadArrayElem()
  4509. if r.TryDecodeAsNil() {
  4510. x.TestStrucCommon.F64 = 0
  4511. } else {
  4512. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4513. }
  4514. yyj88++
  4515. if yyhl88 {
  4516. yyb88 = yyj88 > l
  4517. } else {
  4518. yyb88 = r.CheckBreak()
  4519. }
  4520. if yyb88 {
  4521. z.DecReadArrayEnd()
  4522. return
  4523. }
  4524. z.DecReadArrayElem()
  4525. if r.TryDecodeAsNil() {
  4526. x.TestStrucCommon.F32 = 0
  4527. } else {
  4528. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4529. }
  4530. yyj88++
  4531. if yyhl88 {
  4532. yyb88 = yyj88 > l
  4533. } else {
  4534. yyb88 = r.CheckBreak()
  4535. }
  4536. if yyb88 {
  4537. z.DecReadArrayEnd()
  4538. return
  4539. }
  4540. z.DecReadArrayElem()
  4541. if r.TryDecodeAsNil() {
  4542. x.TestStrucCommon.B = false
  4543. } else {
  4544. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4545. }
  4546. yyj88++
  4547. if yyhl88 {
  4548. yyb88 = yyj88 > l
  4549. } else {
  4550. yyb88 = r.CheckBreak()
  4551. }
  4552. if yyb88 {
  4553. z.DecReadArrayEnd()
  4554. return
  4555. }
  4556. z.DecReadArrayElem()
  4557. if r.TryDecodeAsNil() {
  4558. x.TestStrucCommon.By = 0
  4559. } else {
  4560. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4561. }
  4562. yyj88++
  4563. if yyhl88 {
  4564. yyb88 = yyj88 > l
  4565. } else {
  4566. yyb88 = r.CheckBreak()
  4567. }
  4568. if yyb88 {
  4569. z.DecReadArrayEnd()
  4570. return
  4571. }
  4572. z.DecReadArrayElem()
  4573. if r.TryDecodeAsNil() {
  4574. x.TestStrucCommon.Sslice = nil
  4575. } else {
  4576. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4577. }
  4578. yyj88++
  4579. if yyhl88 {
  4580. yyb88 = yyj88 > l
  4581. } else {
  4582. yyb88 = r.CheckBreak()
  4583. }
  4584. if yyb88 {
  4585. z.DecReadArrayEnd()
  4586. return
  4587. }
  4588. z.DecReadArrayElem()
  4589. if r.TryDecodeAsNil() {
  4590. x.TestStrucCommon.I64slice = nil
  4591. } else {
  4592. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4593. }
  4594. yyj88++
  4595. if yyhl88 {
  4596. yyb88 = yyj88 > l
  4597. } else {
  4598. yyb88 = r.CheckBreak()
  4599. }
  4600. if yyb88 {
  4601. z.DecReadArrayEnd()
  4602. return
  4603. }
  4604. z.DecReadArrayElem()
  4605. if r.TryDecodeAsNil() {
  4606. x.TestStrucCommon.I16slice = nil
  4607. } else {
  4608. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4609. }
  4610. yyj88++
  4611. if yyhl88 {
  4612. yyb88 = yyj88 > l
  4613. } else {
  4614. yyb88 = r.CheckBreak()
  4615. }
  4616. if yyb88 {
  4617. z.DecReadArrayEnd()
  4618. return
  4619. }
  4620. z.DecReadArrayElem()
  4621. if r.TryDecodeAsNil() {
  4622. x.TestStrucCommon.Ui64slice = nil
  4623. } else {
  4624. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4625. }
  4626. yyj88++
  4627. if yyhl88 {
  4628. yyb88 = yyj88 > l
  4629. } else {
  4630. yyb88 = r.CheckBreak()
  4631. }
  4632. if yyb88 {
  4633. z.DecReadArrayEnd()
  4634. return
  4635. }
  4636. z.DecReadArrayElem()
  4637. if r.TryDecodeAsNil() {
  4638. x.TestStrucCommon.Ui8slice = nil
  4639. } else {
  4640. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4641. }
  4642. yyj88++
  4643. if yyhl88 {
  4644. yyb88 = yyj88 > l
  4645. } else {
  4646. yyb88 = r.CheckBreak()
  4647. }
  4648. if yyb88 {
  4649. z.DecReadArrayEnd()
  4650. return
  4651. }
  4652. z.DecReadArrayElem()
  4653. if r.TryDecodeAsNil() {
  4654. x.TestStrucCommon.Bslice = nil
  4655. } else {
  4656. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4657. }
  4658. yyj88++
  4659. if yyhl88 {
  4660. yyb88 = yyj88 > l
  4661. } else {
  4662. yyb88 = r.CheckBreak()
  4663. }
  4664. if yyb88 {
  4665. z.DecReadArrayEnd()
  4666. return
  4667. }
  4668. z.DecReadArrayElem()
  4669. if r.TryDecodeAsNil() {
  4670. x.TestStrucCommon.Byslice = nil
  4671. } else {
  4672. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4673. }
  4674. yyj88++
  4675. if yyhl88 {
  4676. yyb88 = yyj88 > l
  4677. } else {
  4678. yyb88 = r.CheckBreak()
  4679. }
  4680. if yyb88 {
  4681. z.DecReadArrayEnd()
  4682. return
  4683. }
  4684. z.DecReadArrayElem()
  4685. if r.TryDecodeAsNil() {
  4686. x.TestStrucCommon.BytesSlice = nil
  4687. } else {
  4688. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4689. }
  4690. yyj88++
  4691. if yyhl88 {
  4692. yyb88 = yyj88 > l
  4693. } else {
  4694. yyb88 = r.CheckBreak()
  4695. }
  4696. if yyb88 {
  4697. z.DecReadArrayEnd()
  4698. return
  4699. }
  4700. z.DecReadArrayElem()
  4701. if r.TryDecodeAsNil() {
  4702. x.TestStrucCommon.Iptrslice = nil
  4703. } else {
  4704. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4705. }
  4706. yyj88++
  4707. if yyhl88 {
  4708. yyb88 = yyj88 > l
  4709. } else {
  4710. yyb88 = r.CheckBreak()
  4711. }
  4712. if yyb88 {
  4713. z.DecReadArrayEnd()
  4714. return
  4715. }
  4716. z.DecReadArrayElem()
  4717. if r.TryDecodeAsNil() {
  4718. x.TestStrucCommon.WrapSliceInt64 = nil
  4719. } else {
  4720. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4721. }
  4722. yyj88++
  4723. if yyhl88 {
  4724. yyb88 = yyj88 > l
  4725. } else {
  4726. yyb88 = r.CheckBreak()
  4727. }
  4728. if yyb88 {
  4729. z.DecReadArrayEnd()
  4730. return
  4731. }
  4732. z.DecReadArrayElem()
  4733. if r.TryDecodeAsNil() {
  4734. x.TestStrucCommon.WrapSliceString = nil
  4735. } else {
  4736. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4737. }
  4738. yyj88++
  4739. if yyhl88 {
  4740. yyb88 = yyj88 > l
  4741. } else {
  4742. yyb88 = r.CheckBreak()
  4743. }
  4744. if yyb88 {
  4745. z.DecReadArrayEnd()
  4746. return
  4747. }
  4748. z.DecReadArrayElem()
  4749. if r.TryDecodeAsNil() {
  4750. x.TestStrucCommon.Msi64 = nil
  4751. } else {
  4752. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4753. }
  4754. yyj88++
  4755. if yyhl88 {
  4756. yyb88 = yyj88 > l
  4757. } else {
  4758. yyb88 = r.CheckBreak()
  4759. }
  4760. if yyb88 {
  4761. z.DecReadArrayEnd()
  4762. return
  4763. }
  4764. z.DecReadArrayElem()
  4765. if r.TryDecodeAsNil() {
  4766. x.TestStrucCommon.Msbytes = nil
  4767. } else {
  4768. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4769. }
  4770. yyj88++
  4771. if yyhl88 {
  4772. yyb88 = yyj88 > l
  4773. } else {
  4774. yyb88 = r.CheckBreak()
  4775. }
  4776. if yyb88 {
  4777. z.DecReadArrayEnd()
  4778. return
  4779. }
  4780. z.DecReadArrayElem()
  4781. if r.TryDecodeAsNil() {
  4782. x.TestStrucCommon.Simplef = testSimpleFields{}
  4783. } else {
  4784. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4785. }
  4786. yyj88++
  4787. if yyhl88 {
  4788. yyb88 = yyj88 > l
  4789. } else {
  4790. yyb88 = r.CheckBreak()
  4791. }
  4792. if yyb88 {
  4793. z.DecReadArrayEnd()
  4794. return
  4795. }
  4796. z.DecReadArrayElem()
  4797. if r.TryDecodeAsNil() {
  4798. x.TestStrucCommon.SstrUi64T = nil
  4799. } else {
  4800. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4801. }
  4802. yyj88++
  4803. if yyhl88 {
  4804. yyb88 = yyj88 > l
  4805. } else {
  4806. yyb88 = r.CheckBreak()
  4807. }
  4808. if yyb88 {
  4809. z.DecReadArrayEnd()
  4810. return
  4811. }
  4812. z.DecReadArrayElem()
  4813. if r.TryDecodeAsNil() {
  4814. x.TestStrucCommon.AnonInTestStruc.AS = ""
  4815. } else {
  4816. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  4817. }
  4818. yyj88++
  4819. if yyhl88 {
  4820. yyb88 = yyj88 > l
  4821. } else {
  4822. yyb88 = r.CheckBreak()
  4823. }
  4824. if yyb88 {
  4825. z.DecReadArrayEnd()
  4826. return
  4827. }
  4828. z.DecReadArrayElem()
  4829. if r.TryDecodeAsNil() {
  4830. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  4831. } else {
  4832. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4833. }
  4834. yyj88++
  4835. if yyhl88 {
  4836. yyb88 = yyj88 > l
  4837. } else {
  4838. yyb88 = r.CheckBreak()
  4839. }
  4840. if yyb88 {
  4841. z.DecReadArrayEnd()
  4842. return
  4843. }
  4844. z.DecReadArrayElem()
  4845. if r.TryDecodeAsNil() {
  4846. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  4847. } else {
  4848. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4849. }
  4850. yyj88++
  4851. if yyhl88 {
  4852. yyb88 = yyj88 > l
  4853. } else {
  4854. yyb88 = r.CheckBreak()
  4855. }
  4856. if yyb88 {
  4857. z.DecReadArrayEnd()
  4858. return
  4859. }
  4860. z.DecReadArrayElem()
  4861. if r.TryDecodeAsNil() {
  4862. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  4863. } else {
  4864. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4865. }
  4866. yyj88++
  4867. if yyhl88 {
  4868. yyb88 = yyj88 > l
  4869. } else {
  4870. yyb88 = r.CheckBreak()
  4871. }
  4872. if yyb88 {
  4873. z.DecReadArrayEnd()
  4874. return
  4875. }
  4876. z.DecReadArrayElem()
  4877. if r.TryDecodeAsNil() {
  4878. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  4879. } else {
  4880. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4881. }
  4882. yyj88++
  4883. if yyhl88 {
  4884. yyb88 = yyj88 > l
  4885. } else {
  4886. yyb88 = r.CheckBreak()
  4887. }
  4888. if yyb88 {
  4889. z.DecReadArrayEnd()
  4890. return
  4891. }
  4892. z.DecReadArrayElem()
  4893. if r.TryDecodeAsNil() {
  4894. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  4895. } else {
  4896. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4897. }
  4898. yyj88++
  4899. if yyhl88 {
  4900. yyb88 = yyj88 > l
  4901. } else {
  4902. yyb88 = r.CheckBreak()
  4903. }
  4904. if yyb88 {
  4905. z.DecReadArrayEnd()
  4906. return
  4907. }
  4908. z.DecReadArrayElem()
  4909. if r.TryDecodeAsNil() {
  4910. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  4911. } else {
  4912. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4913. }
  4914. yyj88++
  4915. if yyhl88 {
  4916. yyb88 = yyj88 > l
  4917. } else {
  4918. yyb88 = r.CheckBreak()
  4919. }
  4920. if yyb88 {
  4921. z.DecReadArrayEnd()
  4922. return
  4923. }
  4924. z.DecReadArrayElem()
  4925. if r.TryDecodeAsNil() {
  4926. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  4927. } else {
  4928. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4929. }
  4930. yyj88++
  4931. if yyhl88 {
  4932. yyb88 = yyj88 > l
  4933. } else {
  4934. yyb88 = r.CheckBreak()
  4935. }
  4936. if yyb88 {
  4937. z.DecReadArrayEnd()
  4938. return
  4939. }
  4940. z.DecReadArrayElem()
  4941. if r.TryDecodeAsNil() {
  4942. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  4943. } else {
  4944. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4945. }
  4946. yyj88++
  4947. if yyhl88 {
  4948. yyb88 = yyj88 > l
  4949. } else {
  4950. yyb88 = r.CheckBreak()
  4951. }
  4952. if yyb88 {
  4953. z.DecReadArrayEnd()
  4954. return
  4955. }
  4956. z.DecReadArrayElem()
  4957. if r.TryDecodeAsNil() {
  4958. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  4959. } else {
  4960. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4961. }
  4962. yyj88++
  4963. if yyhl88 {
  4964. yyb88 = yyj88 > l
  4965. } else {
  4966. yyb88 = r.CheckBreak()
  4967. }
  4968. if yyb88 {
  4969. z.DecReadArrayEnd()
  4970. return
  4971. }
  4972. z.DecReadArrayElem()
  4973. if r.TryDecodeAsNil() {
  4974. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  4975. } else {
  4976. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4977. }
  4978. yyj88++
  4979. if yyhl88 {
  4980. yyb88 = yyj88 > l
  4981. } else {
  4982. yyb88 = r.CheckBreak()
  4983. }
  4984. if yyb88 {
  4985. z.DecReadArrayEnd()
  4986. return
  4987. }
  4988. z.DecReadArrayElem()
  4989. if r.TryDecodeAsNil() {
  4990. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  4991. } else {
  4992. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  4993. }
  4994. yyj88++
  4995. if yyhl88 {
  4996. yyb88 = yyj88 > l
  4997. } else {
  4998. yyb88 = r.CheckBreak()
  4999. }
  5000. if yyb88 {
  5001. z.DecReadArrayEnd()
  5002. return
  5003. }
  5004. z.DecReadArrayElem()
  5005. if r.TryDecodeAsNil() {
  5006. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  5007. } else {
  5008. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  5009. }
  5010. yyj88++
  5011. if yyhl88 {
  5012. yyb88 = yyj88 > l
  5013. } else {
  5014. yyb88 = r.CheckBreak()
  5015. }
  5016. if yyb88 {
  5017. z.DecReadArrayEnd()
  5018. return
  5019. }
  5020. z.DecReadArrayElem()
  5021. if r.TryDecodeAsNil() {
  5022. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  5023. } else {
  5024. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  5025. }
  5026. yyj88++
  5027. if yyhl88 {
  5028. yyb88 = yyj88 > l
  5029. } else {
  5030. yyb88 = r.CheckBreak()
  5031. }
  5032. if yyb88 {
  5033. z.DecReadArrayEnd()
  5034. return
  5035. }
  5036. z.DecReadArrayElem()
  5037. if r.TryDecodeAsNil() {
  5038. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  5039. } else {
  5040. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  5041. }
  5042. yyj88++
  5043. if yyhl88 {
  5044. yyb88 = yyj88 > l
  5045. } else {
  5046. yyb88 = r.CheckBreak()
  5047. }
  5048. if yyb88 {
  5049. z.DecReadArrayEnd()
  5050. return
  5051. }
  5052. z.DecReadArrayElem()
  5053. if r.TryDecodeAsNil() {
  5054. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  5055. } else {
  5056. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  5057. }
  5058. yyj88++
  5059. if yyhl88 {
  5060. yyb88 = yyj88 > l
  5061. } else {
  5062. yyb88 = r.CheckBreak()
  5063. }
  5064. if yyb88 {
  5065. z.DecReadArrayEnd()
  5066. return
  5067. }
  5068. z.DecReadArrayElem()
  5069. if r.TryDecodeAsNil() {
  5070. x.TestStrucCommon.Nmap = nil
  5071. } else {
  5072. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  5073. }
  5074. yyj88++
  5075. if yyhl88 {
  5076. yyb88 = yyj88 > l
  5077. } else {
  5078. yyb88 = r.CheckBreak()
  5079. }
  5080. if yyb88 {
  5081. z.DecReadArrayEnd()
  5082. return
  5083. }
  5084. z.DecReadArrayElem()
  5085. if r.TryDecodeAsNil() {
  5086. x.TestStrucCommon.Nslice = nil
  5087. } else {
  5088. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  5089. }
  5090. yyj88++
  5091. if yyhl88 {
  5092. yyb88 = yyj88 > l
  5093. } else {
  5094. yyb88 = r.CheckBreak()
  5095. }
  5096. if yyb88 {
  5097. z.DecReadArrayEnd()
  5098. return
  5099. }
  5100. z.DecReadArrayElem()
  5101. if r.TryDecodeAsNil() {
  5102. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  5103. x.TestStrucCommon.Nint64 = nil
  5104. }
  5105. } else {
  5106. if x.TestStrucCommon.Nint64 == nil {
  5107. x.TestStrucCommon.Nint64 = new(int64)
  5108. }
  5109. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  5110. }
  5111. yyj88++
  5112. if yyhl88 {
  5113. yyb88 = yyj88 > l
  5114. } else {
  5115. yyb88 = r.CheckBreak()
  5116. }
  5117. if yyb88 {
  5118. z.DecReadArrayEnd()
  5119. return
  5120. }
  5121. z.DecReadArrayElem()
  5122. if r.TryDecodeAsNil() {
  5123. x.Mtsptr = nil
  5124. } else {
  5125. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  5126. }
  5127. yyj88++
  5128. if yyhl88 {
  5129. yyb88 = yyj88 > l
  5130. } else {
  5131. yyb88 = r.CheckBreak()
  5132. }
  5133. if yyb88 {
  5134. z.DecReadArrayEnd()
  5135. return
  5136. }
  5137. z.DecReadArrayElem()
  5138. if r.TryDecodeAsNil() {
  5139. x.Mts = nil
  5140. } else {
  5141. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  5142. }
  5143. yyj88++
  5144. if yyhl88 {
  5145. yyb88 = yyj88 > l
  5146. } else {
  5147. yyb88 = r.CheckBreak()
  5148. }
  5149. if yyb88 {
  5150. z.DecReadArrayEnd()
  5151. return
  5152. }
  5153. z.DecReadArrayElem()
  5154. if r.TryDecodeAsNil() {
  5155. x.Its = nil
  5156. } else {
  5157. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  5158. }
  5159. yyj88++
  5160. if yyhl88 {
  5161. yyb88 = yyj88 > l
  5162. } else {
  5163. yyb88 = r.CheckBreak()
  5164. }
  5165. if yyb88 {
  5166. z.DecReadArrayEnd()
  5167. return
  5168. }
  5169. z.DecReadArrayElem()
  5170. if r.TryDecodeAsNil() {
  5171. if x.Nteststruc != nil { // remove the if-true
  5172. x.Nteststruc = nil
  5173. }
  5174. } else {
  5175. if x.Nteststruc == nil {
  5176. x.Nteststruc = new(TestStruc)
  5177. }
  5178. x.Nteststruc.CodecDecodeSelf(d)
  5179. }
  5180. for {
  5181. yyj88++
  5182. if yyhl88 {
  5183. yyb88 = yyj88 > l
  5184. } else {
  5185. yyb88 = r.CheckBreak()
  5186. }
  5187. if yyb88 {
  5188. break
  5189. }
  5190. z.DecReadArrayElem()
  5191. z.DecStructFieldNotFound(yyj88-1, "")
  5192. }
  5193. z.DecReadArrayEnd()
  5194. }
  5195. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  5196. var h codecSelfer19780
  5197. z, r := GenHelperEncoder(e)
  5198. _, _, _ = h, z, r
  5199. if x == nil {
  5200. r.EncodeNil()
  5201. } else {
  5202. yysep2 := !z.EncBinary()
  5203. yy2arr2 := z.EncBasicHandle().StructToArray
  5204. _, _ = yysep2, yy2arr2
  5205. const yyr2 bool = false // struct tag has 'toArray'
  5206. if yyr2 || yy2arr2 {
  5207. z.EncWriteArrayStart(1)
  5208. z.EncWriteArrayElem()
  5209. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5210. z.EncWriteArrayEnd()
  5211. } else {
  5212. z.EncWriteMapStart(1)
  5213. z.EncWriteMapElemKey()
  5214. if z.IsJSONHandle() {
  5215. z.WriteStr("\"ZZ\"")
  5216. } else {
  5217. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  5218. }
  5219. z.EncWriteMapElemValue()
  5220. r.EncodeStringBytesRaw([]byte(x.ZZ))
  5221. z.EncWriteMapEnd()
  5222. }
  5223. }
  5224. }
  5225. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  5226. var h codecSelfer19780
  5227. z, r := GenHelperDecoder(d)
  5228. _, _, _ = h, z, r
  5229. yyct2 := r.ContainerType()
  5230. if yyct2 == codecSelferValueTypeMap19780 {
  5231. yyl2 := z.DecReadMapStart()
  5232. if yyl2 == 0 {
  5233. z.DecReadMapEnd()
  5234. } else {
  5235. x.codecDecodeSelfFromMap(yyl2, d)
  5236. }
  5237. } else if yyct2 == codecSelferValueTypeArray19780 {
  5238. yyl2 := z.DecReadArrayStart()
  5239. if yyl2 == 0 {
  5240. z.DecReadArrayEnd()
  5241. } else {
  5242. x.codecDecodeSelfFromArray(yyl2, d)
  5243. }
  5244. } else {
  5245. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5246. }
  5247. }
  5248. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  5249. var h codecSelfer19780
  5250. z, r := GenHelperDecoder(d)
  5251. _, _, _ = h, z, r
  5252. var yyhl3 bool = l >= 0
  5253. for yyj3 := 0; ; yyj3++ {
  5254. if yyhl3 {
  5255. if yyj3 >= l {
  5256. break
  5257. }
  5258. } else {
  5259. if r.CheckBreak() {
  5260. break
  5261. }
  5262. }
  5263. z.DecReadMapElemKey()
  5264. yys3 := z.StringView(r.DecodeStringAsBytes())
  5265. z.DecReadMapElemValue()
  5266. switch yys3 {
  5267. case "ZZ":
  5268. if r.TryDecodeAsNil() {
  5269. x.ZZ = nil
  5270. } else {
  5271. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5272. }
  5273. default:
  5274. z.DecStructFieldNotFound(-1, yys3)
  5275. } // end switch yys3
  5276. } // end for yyj3
  5277. z.DecReadMapEnd()
  5278. }
  5279. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  5280. var h codecSelfer19780
  5281. z, r := GenHelperDecoder(d)
  5282. _, _, _ = h, z, r
  5283. var yyj6 int
  5284. var yyb6 bool
  5285. var yyhl6 bool = l >= 0
  5286. yyj6++
  5287. if yyhl6 {
  5288. yyb6 = yyj6 > l
  5289. } else {
  5290. yyb6 = r.CheckBreak()
  5291. }
  5292. if yyb6 {
  5293. z.DecReadArrayEnd()
  5294. return
  5295. }
  5296. z.DecReadArrayElem()
  5297. if r.TryDecodeAsNil() {
  5298. x.ZZ = nil
  5299. } else {
  5300. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  5301. }
  5302. for {
  5303. yyj6++
  5304. if yyhl6 {
  5305. yyb6 = yyj6 > l
  5306. } else {
  5307. yyb6 = r.CheckBreak()
  5308. }
  5309. if yyb6 {
  5310. break
  5311. }
  5312. z.DecReadArrayElem()
  5313. z.DecStructFieldNotFound(yyj6-1, "")
  5314. }
  5315. z.DecReadArrayEnd()
  5316. }
  5317. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  5318. var h codecSelfer19780
  5319. z, r := GenHelperEncoder(e)
  5320. _, _, _ = h, z, r
  5321. if x == nil {
  5322. r.EncodeNil()
  5323. } else {
  5324. yysep2 := !z.EncBinary()
  5325. yy2arr2 := z.EncBasicHandle().StructToArray
  5326. _, _ = yysep2, yy2arr2
  5327. const yyr2 bool = false // struct tag has 'toArray'
  5328. if yyr2 || yy2arr2 {
  5329. z.EncWriteArrayStart(1)
  5330. z.EncWriteArrayElem()
  5331. yy4 := &x.AA
  5332. yy4.CodecEncodeSelf(e)
  5333. z.EncWriteArrayEnd()
  5334. } else {
  5335. z.EncWriteMapStart(1)
  5336. z.EncWriteMapElemKey()
  5337. if z.IsJSONHandle() {
  5338. z.WriteStr("\"AA\"")
  5339. } else {
  5340. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  5341. }
  5342. z.EncWriteMapElemValue()
  5343. yy6 := &x.AA
  5344. yy6.CodecEncodeSelf(e)
  5345. z.EncWriteMapEnd()
  5346. }
  5347. }
  5348. }
  5349. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  5350. var h codecSelfer19780
  5351. z, r := GenHelperDecoder(d)
  5352. _, _, _ = h, z, r
  5353. yyct2 := r.ContainerType()
  5354. if yyct2 == codecSelferValueTypeMap19780 {
  5355. yyl2 := z.DecReadMapStart()
  5356. if yyl2 == 0 {
  5357. z.DecReadMapEnd()
  5358. } else {
  5359. x.codecDecodeSelfFromMap(yyl2, d)
  5360. }
  5361. } else if yyct2 == codecSelferValueTypeArray19780 {
  5362. yyl2 := z.DecReadArrayStart()
  5363. if yyl2 == 0 {
  5364. z.DecReadArrayEnd()
  5365. } else {
  5366. x.codecDecodeSelfFromArray(yyl2, d)
  5367. }
  5368. } else {
  5369. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5370. }
  5371. }
  5372. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  5373. var h codecSelfer19780
  5374. z, r := GenHelperDecoder(d)
  5375. _, _, _ = h, z, r
  5376. var yyhl3 bool = l >= 0
  5377. for yyj3 := 0; ; yyj3++ {
  5378. if yyhl3 {
  5379. if yyj3 >= l {
  5380. break
  5381. }
  5382. } else {
  5383. if r.CheckBreak() {
  5384. break
  5385. }
  5386. }
  5387. z.DecReadMapElemKey()
  5388. yys3 := z.StringView(r.DecodeStringAsBytes())
  5389. z.DecReadMapElemValue()
  5390. switch yys3 {
  5391. case "AA":
  5392. if r.TryDecodeAsNil() {
  5393. x.AA = codecgenA{}
  5394. } else {
  5395. x.AA.CodecDecodeSelf(d)
  5396. }
  5397. default:
  5398. z.DecStructFieldNotFound(-1, yys3)
  5399. } // end switch yys3
  5400. } // end for yyj3
  5401. z.DecReadMapEnd()
  5402. }
  5403. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  5404. var h codecSelfer19780
  5405. z, r := GenHelperDecoder(d)
  5406. _, _, _ = h, z, r
  5407. var yyj5 int
  5408. var yyb5 bool
  5409. var yyhl5 bool = l >= 0
  5410. yyj5++
  5411. if yyhl5 {
  5412. yyb5 = yyj5 > l
  5413. } else {
  5414. yyb5 = r.CheckBreak()
  5415. }
  5416. if yyb5 {
  5417. z.DecReadArrayEnd()
  5418. return
  5419. }
  5420. z.DecReadArrayElem()
  5421. if r.TryDecodeAsNil() {
  5422. x.AA = codecgenA{}
  5423. } else {
  5424. x.AA.CodecDecodeSelf(d)
  5425. }
  5426. for {
  5427. yyj5++
  5428. if yyhl5 {
  5429. yyb5 = yyj5 > l
  5430. } else {
  5431. yyb5 = r.CheckBreak()
  5432. }
  5433. if yyb5 {
  5434. break
  5435. }
  5436. z.DecReadArrayElem()
  5437. z.DecStructFieldNotFound(yyj5-1, "")
  5438. }
  5439. z.DecReadArrayEnd()
  5440. }
  5441. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  5442. var h codecSelfer19780
  5443. z, r := GenHelperEncoder(e)
  5444. _, _, _ = h, z, r
  5445. if x == nil {
  5446. r.EncodeNil()
  5447. } else {
  5448. yysep2 := !z.EncBinary()
  5449. yy2arr2 := z.EncBasicHandle().StructToArray
  5450. _, _ = yysep2, yy2arr2
  5451. const yyr2 bool = false // struct tag has 'toArray'
  5452. var yyq2 = [1]bool{ // should field at this index be written?
  5453. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  5454. }
  5455. _ = yyq2
  5456. if yyr2 || yy2arr2 {
  5457. z.EncWriteArrayStart(1)
  5458. z.EncWriteArrayElem()
  5459. if yyq2[0] {
  5460. yy4 := &x.BB
  5461. yy4.CodecEncodeSelf(e)
  5462. } else {
  5463. r.EncodeNil()
  5464. }
  5465. z.EncWriteArrayEnd()
  5466. } else {
  5467. var yynn2 int
  5468. for _, b := range yyq2 {
  5469. if b {
  5470. yynn2++
  5471. }
  5472. }
  5473. z.EncWriteMapStart(yynn2)
  5474. yynn2 = 0
  5475. if yyq2[0] {
  5476. z.EncWriteMapElemKey()
  5477. if z.IsJSONHandle() {
  5478. z.WriteStr("\"BB\"")
  5479. } else {
  5480. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  5481. }
  5482. z.EncWriteMapElemValue()
  5483. yy6 := &x.BB
  5484. yy6.CodecEncodeSelf(e)
  5485. }
  5486. z.EncWriteMapEnd()
  5487. }
  5488. }
  5489. }
  5490. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  5491. var h codecSelfer19780
  5492. z, r := GenHelperDecoder(d)
  5493. _, _, _ = h, z, r
  5494. yyct2 := r.ContainerType()
  5495. if yyct2 == codecSelferValueTypeMap19780 {
  5496. yyl2 := z.DecReadMapStart()
  5497. if yyl2 == 0 {
  5498. z.DecReadMapEnd()
  5499. } else {
  5500. x.codecDecodeSelfFromMap(yyl2, d)
  5501. }
  5502. } else if yyct2 == codecSelferValueTypeArray19780 {
  5503. yyl2 := z.DecReadArrayStart()
  5504. if yyl2 == 0 {
  5505. z.DecReadArrayEnd()
  5506. } else {
  5507. x.codecDecodeSelfFromArray(yyl2, d)
  5508. }
  5509. } else {
  5510. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5511. }
  5512. }
  5513. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  5514. var h codecSelfer19780
  5515. z, r := GenHelperDecoder(d)
  5516. _, _, _ = h, z, r
  5517. var yyhl3 bool = l >= 0
  5518. for yyj3 := 0; ; yyj3++ {
  5519. if yyhl3 {
  5520. if yyj3 >= l {
  5521. break
  5522. }
  5523. } else {
  5524. if r.CheckBreak() {
  5525. break
  5526. }
  5527. }
  5528. z.DecReadMapElemKey()
  5529. yys3 := z.StringView(r.DecodeStringAsBytes())
  5530. z.DecReadMapElemValue()
  5531. switch yys3 {
  5532. case "BB":
  5533. if r.TryDecodeAsNil() {
  5534. x.BB = codecgenB{}
  5535. } else {
  5536. x.BB.CodecDecodeSelf(d)
  5537. }
  5538. default:
  5539. z.DecStructFieldNotFound(-1, yys3)
  5540. } // end switch yys3
  5541. } // end for yyj3
  5542. z.DecReadMapEnd()
  5543. }
  5544. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  5545. var h codecSelfer19780
  5546. z, r := GenHelperDecoder(d)
  5547. _, _, _ = h, z, r
  5548. var yyj5 int
  5549. var yyb5 bool
  5550. var yyhl5 bool = l >= 0
  5551. yyj5++
  5552. if yyhl5 {
  5553. yyb5 = yyj5 > l
  5554. } else {
  5555. yyb5 = r.CheckBreak()
  5556. }
  5557. if yyb5 {
  5558. z.DecReadArrayEnd()
  5559. return
  5560. }
  5561. z.DecReadArrayElem()
  5562. if r.TryDecodeAsNil() {
  5563. x.BB = codecgenB{}
  5564. } else {
  5565. x.BB.CodecDecodeSelf(d)
  5566. }
  5567. for {
  5568. yyj5++
  5569. if yyhl5 {
  5570. yyb5 = yyj5 > l
  5571. } else {
  5572. yyb5 = r.CheckBreak()
  5573. }
  5574. if yyb5 {
  5575. break
  5576. }
  5577. z.DecReadArrayElem()
  5578. z.DecStructFieldNotFound(yyj5-1, "")
  5579. }
  5580. z.DecReadArrayEnd()
  5581. }
  5582. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  5583. var h codecSelfer19780
  5584. z, r := GenHelperEncoder(e)
  5585. _, _, _ = h, z, r
  5586. if x == nil {
  5587. r.EncodeNil()
  5588. } else {
  5589. yysep2 := !z.EncBinary()
  5590. yy2arr2 := z.EncBasicHandle().StructToArray
  5591. _, _ = yysep2, yy2arr2
  5592. const yyr2 bool = false // struct tag has 'toArray'
  5593. if yyr2 || yy2arr2 {
  5594. z.EncWriteArrayStart(1)
  5595. z.EncWriteArrayElem()
  5596. r.EncodeInt(int64(x.TestCodecgenG))
  5597. z.EncWriteArrayEnd()
  5598. } else {
  5599. z.EncWriteMapStart(1)
  5600. z.EncWriteMapElemKey()
  5601. if z.IsJSONHandle() {
  5602. z.WriteStr("\"TestCodecgenG\"")
  5603. } else {
  5604. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5605. }
  5606. z.EncWriteMapElemValue()
  5607. r.EncodeInt(int64(x.TestCodecgenG))
  5608. z.EncWriteMapEnd()
  5609. }
  5610. }
  5611. }
  5612. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  5613. var h codecSelfer19780
  5614. z, r := GenHelperDecoder(d)
  5615. _, _, _ = h, z, r
  5616. yyct2 := r.ContainerType()
  5617. if yyct2 == codecSelferValueTypeMap19780 {
  5618. yyl2 := z.DecReadMapStart()
  5619. if yyl2 == 0 {
  5620. z.DecReadMapEnd()
  5621. } else {
  5622. x.codecDecodeSelfFromMap(yyl2, d)
  5623. }
  5624. } else if yyct2 == codecSelferValueTypeArray19780 {
  5625. yyl2 := z.DecReadArrayStart()
  5626. if yyl2 == 0 {
  5627. z.DecReadArrayEnd()
  5628. } else {
  5629. x.codecDecodeSelfFromArray(yyl2, d)
  5630. }
  5631. } else {
  5632. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5633. }
  5634. }
  5635. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  5636. var h codecSelfer19780
  5637. z, r := GenHelperDecoder(d)
  5638. _, _, _ = h, z, r
  5639. var yyhl3 bool = l >= 0
  5640. for yyj3 := 0; ; yyj3++ {
  5641. if yyhl3 {
  5642. if yyj3 >= l {
  5643. break
  5644. }
  5645. } else {
  5646. if r.CheckBreak() {
  5647. break
  5648. }
  5649. }
  5650. z.DecReadMapElemKey()
  5651. yys3 := z.StringView(r.DecodeStringAsBytes())
  5652. z.DecReadMapElemValue()
  5653. switch yys3 {
  5654. case "TestCodecgenG":
  5655. if r.TryDecodeAsNil() {
  5656. x.TestCodecgenG = 0
  5657. } else {
  5658. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5659. }
  5660. default:
  5661. z.DecStructFieldNotFound(-1, yys3)
  5662. } // end switch yys3
  5663. } // end for yyj3
  5664. z.DecReadMapEnd()
  5665. }
  5666. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  5667. var h codecSelfer19780
  5668. z, r := GenHelperDecoder(d)
  5669. _, _, _ = h, z, r
  5670. var yyj5 int
  5671. var yyb5 bool
  5672. var yyhl5 bool = l >= 0
  5673. yyj5++
  5674. if yyhl5 {
  5675. yyb5 = yyj5 > l
  5676. } else {
  5677. yyb5 = r.CheckBreak()
  5678. }
  5679. if yyb5 {
  5680. z.DecReadArrayEnd()
  5681. return
  5682. }
  5683. z.DecReadArrayElem()
  5684. if r.TryDecodeAsNil() {
  5685. x.TestCodecgenG = 0
  5686. } else {
  5687. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5688. }
  5689. for {
  5690. yyj5++
  5691. if yyhl5 {
  5692. yyb5 = yyj5 > l
  5693. } else {
  5694. yyb5 = r.CheckBreak()
  5695. }
  5696. if yyb5 {
  5697. break
  5698. }
  5699. z.DecReadArrayElem()
  5700. z.DecStructFieldNotFound(yyj5-1, "")
  5701. }
  5702. z.DecReadArrayEnd()
  5703. }
  5704. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  5705. var h codecSelfer19780
  5706. z, r := GenHelperEncoder(e)
  5707. _, _, _ = h, z, r
  5708. if x == nil {
  5709. r.EncodeNil()
  5710. } else {
  5711. yysep2 := !z.EncBinary()
  5712. yy2arr2 := z.EncBasicHandle().StructToArray
  5713. _, _ = yysep2, yy2arr2
  5714. const yyr2 bool = false // struct tag has 'toArray'
  5715. if yyr2 || yy2arr2 {
  5716. z.EncWriteArrayStart(1)
  5717. z.EncWriteArrayElem()
  5718. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5719. z.EncWriteArrayEnd()
  5720. } else {
  5721. z.EncWriteMapStart(1)
  5722. z.EncWriteMapElemKey()
  5723. if z.IsJSONHandle() {
  5724. z.WriteStr("\"TestCodecgenG\"")
  5725. } else {
  5726. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5727. }
  5728. z.EncWriteMapElemValue()
  5729. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5730. z.EncWriteMapEnd()
  5731. }
  5732. }
  5733. }
  5734. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  5735. var h codecSelfer19780
  5736. z, r := GenHelperDecoder(d)
  5737. _, _, _ = h, z, r
  5738. yyct2 := r.ContainerType()
  5739. if yyct2 == codecSelferValueTypeMap19780 {
  5740. yyl2 := z.DecReadMapStart()
  5741. if yyl2 == 0 {
  5742. z.DecReadMapEnd()
  5743. } else {
  5744. x.codecDecodeSelfFromMap(yyl2, d)
  5745. }
  5746. } else if yyct2 == codecSelferValueTypeArray19780 {
  5747. yyl2 := z.DecReadArrayStart()
  5748. if yyl2 == 0 {
  5749. z.DecReadArrayEnd()
  5750. } else {
  5751. x.codecDecodeSelfFromArray(yyl2, d)
  5752. }
  5753. } else {
  5754. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5755. }
  5756. }
  5757. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  5758. var h codecSelfer19780
  5759. z, r := GenHelperDecoder(d)
  5760. _, _, _ = h, z, r
  5761. var yyhl3 bool = l >= 0
  5762. for yyj3 := 0; ; yyj3++ {
  5763. if yyhl3 {
  5764. if yyj3 >= l {
  5765. break
  5766. }
  5767. } else {
  5768. if r.CheckBreak() {
  5769. break
  5770. }
  5771. }
  5772. z.DecReadMapElemKey()
  5773. yys3 := z.StringView(r.DecodeStringAsBytes())
  5774. z.DecReadMapElemValue()
  5775. switch yys3 {
  5776. case "TestCodecgenG":
  5777. if r.TryDecodeAsNil() {
  5778. x.TestCodecgenG.TestCodecgenG = 0
  5779. } else {
  5780. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5781. }
  5782. default:
  5783. z.DecStructFieldNotFound(-1, yys3)
  5784. } // end switch yys3
  5785. } // end for yyj3
  5786. z.DecReadMapEnd()
  5787. }
  5788. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  5789. var h codecSelfer19780
  5790. z, r := GenHelperDecoder(d)
  5791. _, _, _ = h, z, r
  5792. var yyj5 int
  5793. var yyb5 bool
  5794. var yyhl5 bool = l >= 0
  5795. yyj5++
  5796. if yyhl5 {
  5797. yyb5 = yyj5 > l
  5798. } else {
  5799. yyb5 = r.CheckBreak()
  5800. }
  5801. if yyb5 {
  5802. z.DecReadArrayEnd()
  5803. return
  5804. }
  5805. z.DecReadArrayElem()
  5806. if r.TryDecodeAsNil() {
  5807. x.TestCodecgenG.TestCodecgenG = 0
  5808. } else {
  5809. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5810. }
  5811. for {
  5812. yyj5++
  5813. if yyhl5 {
  5814. yyb5 = yyj5 > l
  5815. } else {
  5816. yyb5 = r.CheckBreak()
  5817. }
  5818. if yyb5 {
  5819. break
  5820. }
  5821. z.DecReadArrayElem()
  5822. z.DecStructFieldNotFound(yyj5-1, "")
  5823. }
  5824. z.DecReadArrayEnd()
  5825. }
  5826. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  5827. var h codecSelfer19780
  5828. z, r := GenHelperEncoder(e)
  5829. _, _, _ = h, z, r
  5830. if x == nil {
  5831. r.EncodeNil()
  5832. } else {
  5833. yysep2 := !z.EncBinary()
  5834. yy2arr2 := z.EncBasicHandle().StructToArray
  5835. _, _ = yysep2, yy2arr2
  5836. const yyr2 bool = false // struct tag has 'toArray'
  5837. if yyr2 || yy2arr2 {
  5838. z.EncWriteArrayStart(1)
  5839. z.EncWriteArrayElem()
  5840. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5841. z.EncWriteArrayEnd()
  5842. } else {
  5843. z.EncWriteMapStart(1)
  5844. z.EncWriteMapElemKey()
  5845. if z.IsJSONHandle() {
  5846. z.WriteStr("\"TestCodecgenG\"")
  5847. } else {
  5848. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5849. }
  5850. z.EncWriteMapElemValue()
  5851. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5852. z.EncWriteMapEnd()
  5853. }
  5854. }
  5855. }
  5856. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  5857. var h codecSelfer19780
  5858. z, r := GenHelperDecoder(d)
  5859. _, _, _ = h, z, r
  5860. yyct2 := r.ContainerType()
  5861. if yyct2 == codecSelferValueTypeMap19780 {
  5862. yyl2 := z.DecReadMapStart()
  5863. if yyl2 == 0 {
  5864. z.DecReadMapEnd()
  5865. } else {
  5866. x.codecDecodeSelfFromMap(yyl2, d)
  5867. }
  5868. } else if yyct2 == codecSelferValueTypeArray19780 {
  5869. yyl2 := z.DecReadArrayStart()
  5870. if yyl2 == 0 {
  5871. z.DecReadArrayEnd()
  5872. } else {
  5873. x.codecDecodeSelfFromArray(yyl2, d)
  5874. }
  5875. } else {
  5876. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5877. }
  5878. }
  5879. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  5880. var h codecSelfer19780
  5881. z, r := GenHelperDecoder(d)
  5882. _, _, _ = h, z, r
  5883. var yyhl3 bool = l >= 0
  5884. for yyj3 := 0; ; yyj3++ {
  5885. if yyhl3 {
  5886. if yyj3 >= l {
  5887. break
  5888. }
  5889. } else {
  5890. if r.CheckBreak() {
  5891. break
  5892. }
  5893. }
  5894. z.DecReadMapElemKey()
  5895. yys3 := z.StringView(r.DecodeStringAsBytes())
  5896. z.DecReadMapElemValue()
  5897. switch yys3 {
  5898. case "TestCodecgenG":
  5899. if r.TryDecodeAsNil() {
  5900. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  5901. } else {
  5902. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5903. }
  5904. default:
  5905. z.DecStructFieldNotFound(-1, yys3)
  5906. } // end switch yys3
  5907. } // end for yyj3
  5908. z.DecReadMapEnd()
  5909. }
  5910. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  5911. var h codecSelfer19780
  5912. z, r := GenHelperDecoder(d)
  5913. _, _, _ = h, z, r
  5914. var yyj5 int
  5915. var yyb5 bool
  5916. var yyhl5 bool = l >= 0
  5917. yyj5++
  5918. if yyhl5 {
  5919. yyb5 = yyj5 > l
  5920. } else {
  5921. yyb5 = r.CheckBreak()
  5922. }
  5923. if yyb5 {
  5924. z.DecReadArrayEnd()
  5925. return
  5926. }
  5927. z.DecReadArrayElem()
  5928. if r.TryDecodeAsNil() {
  5929. x.codecgenH.TestCodecgenG.TestCodecgenG = 0
  5930. } else {
  5931. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5932. }
  5933. for {
  5934. yyj5++
  5935. if yyhl5 {
  5936. yyb5 = yyj5 > l
  5937. } else {
  5938. yyb5 = r.CheckBreak()
  5939. }
  5940. if yyb5 {
  5941. break
  5942. }
  5943. z.DecReadArrayElem()
  5944. z.DecStructFieldNotFound(yyj5-1, "")
  5945. }
  5946. z.DecReadArrayEnd()
  5947. }
  5948. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  5949. var h codecSelfer19780
  5950. z, r := GenHelperEncoder(e)
  5951. _, _, _ = h, z, r
  5952. if x == nil {
  5953. r.EncodeNil()
  5954. } else {
  5955. yysep2 := !z.EncBinary()
  5956. yy2arr2 := z.EncBasicHandle().StructToArray
  5957. _, _ = yysep2, yy2arr2
  5958. const yyr2 bool = false // struct tag has 'toArray'
  5959. if yyr2 || yy2arr2 {
  5960. z.EncWriteArrayStart(2)
  5961. z.EncWriteArrayElem()
  5962. r.EncodeInt(int64(x.X))
  5963. z.EncWriteArrayElem()
  5964. if z.EncBasicHandle().StringToRaw {
  5965. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5966. } else {
  5967. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5968. }
  5969. z.EncWriteArrayEnd()
  5970. } else {
  5971. z.EncWriteMapStart(2)
  5972. z.EncWriteMapElemKey()
  5973. if z.IsJSONHandle() {
  5974. z.WriteStr("\"X\"")
  5975. } else {
  5976. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5977. }
  5978. z.EncWriteMapElemValue()
  5979. r.EncodeInt(int64(x.X))
  5980. z.EncWriteMapElemKey()
  5981. if z.IsJSONHandle() {
  5982. z.WriteStr("\"Y\"")
  5983. } else {
  5984. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5985. }
  5986. z.EncWriteMapElemValue()
  5987. if z.EncBasicHandle().StringToRaw {
  5988. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5989. } else {
  5990. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5991. }
  5992. z.EncWriteMapEnd()
  5993. }
  5994. }
  5995. }
  5996. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  5997. var h codecSelfer19780
  5998. z, r := GenHelperDecoder(d)
  5999. _, _, _ = h, z, r
  6000. yyct2 := r.ContainerType()
  6001. if yyct2 == codecSelferValueTypeMap19780 {
  6002. yyl2 := z.DecReadMapStart()
  6003. if yyl2 == 0 {
  6004. z.DecReadMapEnd()
  6005. } else {
  6006. x.codecDecodeSelfFromMap(yyl2, d)
  6007. }
  6008. } else if yyct2 == codecSelferValueTypeArray19780 {
  6009. yyl2 := z.DecReadArrayStart()
  6010. if yyl2 == 0 {
  6011. z.DecReadArrayEnd()
  6012. } else {
  6013. x.codecDecodeSelfFromArray(yyl2, d)
  6014. }
  6015. } else {
  6016. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6017. }
  6018. }
  6019. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  6020. var h codecSelfer19780
  6021. z, r := GenHelperDecoder(d)
  6022. _, _, _ = h, z, r
  6023. var yyhl3 bool = l >= 0
  6024. for yyj3 := 0; ; yyj3++ {
  6025. if yyhl3 {
  6026. if yyj3 >= l {
  6027. break
  6028. }
  6029. } else {
  6030. if r.CheckBreak() {
  6031. break
  6032. }
  6033. }
  6034. z.DecReadMapElemKey()
  6035. yys3 := z.StringView(r.DecodeStringAsBytes())
  6036. z.DecReadMapElemValue()
  6037. switch yys3 {
  6038. case "X":
  6039. if r.TryDecodeAsNil() {
  6040. x.X = 0
  6041. } else {
  6042. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6043. }
  6044. case "Y":
  6045. if r.TryDecodeAsNil() {
  6046. x.Y = ""
  6047. } else {
  6048. x.Y = (string)(r.DecodeString())
  6049. }
  6050. default:
  6051. z.DecStructFieldNotFound(-1, yys3)
  6052. } // end switch yys3
  6053. } // end for yyj3
  6054. z.DecReadMapEnd()
  6055. }
  6056. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  6057. var h codecSelfer19780
  6058. z, r := GenHelperDecoder(d)
  6059. _, _, _ = h, z, r
  6060. var yyj6 int
  6061. var yyb6 bool
  6062. var yyhl6 bool = l >= 0
  6063. yyj6++
  6064. if yyhl6 {
  6065. yyb6 = yyj6 > l
  6066. } else {
  6067. yyb6 = r.CheckBreak()
  6068. }
  6069. if yyb6 {
  6070. z.DecReadArrayEnd()
  6071. return
  6072. }
  6073. z.DecReadArrayElem()
  6074. if r.TryDecodeAsNil() {
  6075. x.X = 0
  6076. } else {
  6077. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6078. }
  6079. yyj6++
  6080. if yyhl6 {
  6081. yyb6 = yyj6 > l
  6082. } else {
  6083. yyb6 = r.CheckBreak()
  6084. }
  6085. if yyb6 {
  6086. z.DecReadArrayEnd()
  6087. return
  6088. }
  6089. z.DecReadArrayElem()
  6090. if r.TryDecodeAsNil() {
  6091. x.Y = ""
  6092. } else {
  6093. x.Y = (string)(r.DecodeString())
  6094. }
  6095. for {
  6096. yyj6++
  6097. if yyhl6 {
  6098. yyb6 = yyj6 > l
  6099. } else {
  6100. yyb6 = r.CheckBreak()
  6101. }
  6102. if yyb6 {
  6103. break
  6104. }
  6105. z.DecReadArrayElem()
  6106. z.DecStructFieldNotFound(yyj6-1, "")
  6107. }
  6108. z.DecReadArrayEnd()
  6109. }
  6110. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  6111. var h codecSelfer19780
  6112. z, r := GenHelperEncoder(e)
  6113. _, _, _ = h, z, r
  6114. if x == nil {
  6115. r.EncodeNil()
  6116. } else {
  6117. yysep2 := !z.EncBinary()
  6118. yy2arr2 := z.EncBasicHandle().StructToArray
  6119. _, _ = yysep2, yy2arr2
  6120. const yyr2 bool = false // struct tag has 'toArray'
  6121. if yyr2 || yy2arr2 {
  6122. z.EncWriteArrayStart(2)
  6123. z.EncWriteArrayElem()
  6124. r.EncodeInt(int64(x.X))
  6125. z.EncWriteArrayElem()
  6126. r.EncodeUint(uint64(x.Y))
  6127. z.EncWriteArrayEnd()
  6128. } else {
  6129. z.EncWriteMapStart(2)
  6130. z.EncWriteMapElemKey()
  6131. if z.IsJSONHandle() {
  6132. z.WriteStr("\"X\"")
  6133. } else {
  6134. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6135. }
  6136. z.EncWriteMapElemValue()
  6137. r.EncodeInt(int64(x.X))
  6138. z.EncWriteMapElemKey()
  6139. if z.IsJSONHandle() {
  6140. z.WriteStr("\"Y\"")
  6141. } else {
  6142. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6143. }
  6144. z.EncWriteMapElemValue()
  6145. r.EncodeUint(uint64(x.Y))
  6146. z.EncWriteMapEnd()
  6147. }
  6148. }
  6149. }
  6150. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  6151. var h codecSelfer19780
  6152. z, r := GenHelperDecoder(d)
  6153. _, _, _ = h, z, r
  6154. yyct2 := r.ContainerType()
  6155. if yyct2 == codecSelferValueTypeMap19780 {
  6156. yyl2 := z.DecReadMapStart()
  6157. if yyl2 == 0 {
  6158. z.DecReadMapEnd()
  6159. } else {
  6160. x.codecDecodeSelfFromMap(yyl2, d)
  6161. }
  6162. } else if yyct2 == codecSelferValueTypeArray19780 {
  6163. yyl2 := z.DecReadArrayStart()
  6164. if yyl2 == 0 {
  6165. z.DecReadArrayEnd()
  6166. } else {
  6167. x.codecDecodeSelfFromArray(yyl2, d)
  6168. }
  6169. } else {
  6170. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6171. }
  6172. }
  6173. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  6174. var h codecSelfer19780
  6175. z, r := GenHelperDecoder(d)
  6176. _, _, _ = h, z, r
  6177. var yyhl3 bool = l >= 0
  6178. for yyj3 := 0; ; yyj3++ {
  6179. if yyhl3 {
  6180. if yyj3 >= l {
  6181. break
  6182. }
  6183. } else {
  6184. if r.CheckBreak() {
  6185. break
  6186. }
  6187. }
  6188. z.DecReadMapElemKey()
  6189. yys3 := z.StringView(r.DecodeStringAsBytes())
  6190. z.DecReadMapElemValue()
  6191. switch yys3 {
  6192. case "X":
  6193. if r.TryDecodeAsNil() {
  6194. x.X = 0
  6195. } else {
  6196. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6197. }
  6198. case "Y":
  6199. if r.TryDecodeAsNil() {
  6200. x.Y = 0
  6201. } else {
  6202. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6203. }
  6204. default:
  6205. z.DecStructFieldNotFound(-1, yys3)
  6206. } // end switch yys3
  6207. } // end for yyj3
  6208. z.DecReadMapEnd()
  6209. }
  6210. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  6211. var h codecSelfer19780
  6212. z, r := GenHelperDecoder(d)
  6213. _, _, _ = h, z, r
  6214. var yyj6 int
  6215. var yyb6 bool
  6216. var yyhl6 bool = l >= 0
  6217. yyj6++
  6218. if yyhl6 {
  6219. yyb6 = yyj6 > l
  6220. } else {
  6221. yyb6 = r.CheckBreak()
  6222. }
  6223. if yyb6 {
  6224. z.DecReadArrayEnd()
  6225. return
  6226. }
  6227. z.DecReadArrayElem()
  6228. if r.TryDecodeAsNil() {
  6229. x.X = 0
  6230. } else {
  6231. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6232. }
  6233. yyj6++
  6234. if yyhl6 {
  6235. yyb6 = yyj6 > l
  6236. } else {
  6237. yyb6 = r.CheckBreak()
  6238. }
  6239. if yyb6 {
  6240. z.DecReadArrayEnd()
  6241. return
  6242. }
  6243. z.DecReadArrayElem()
  6244. if r.TryDecodeAsNil() {
  6245. x.Y = 0
  6246. } else {
  6247. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  6248. }
  6249. for {
  6250. yyj6++
  6251. if yyhl6 {
  6252. yyb6 = yyj6 > l
  6253. } else {
  6254. yyb6 = r.CheckBreak()
  6255. }
  6256. if yyb6 {
  6257. break
  6258. }
  6259. z.DecReadArrayElem()
  6260. z.DecStructFieldNotFound(yyj6-1, "")
  6261. }
  6262. z.DecReadArrayEnd()
  6263. }
  6264. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  6265. var h codecSelfer19780
  6266. z, r := GenHelperEncoder(e)
  6267. _, _, _ = h, z, r
  6268. if x == nil {
  6269. r.EncodeNil()
  6270. } else {
  6271. yysep2 := !z.EncBinary()
  6272. yy2arr2 := z.EncBasicHandle().StructToArray
  6273. _, _ = yysep2, yy2arr2
  6274. const yyr2 bool = false // struct tag has 'toArray'
  6275. if yyr2 || yy2arr2 {
  6276. z.EncWriteArrayStart(2)
  6277. z.EncWriteArrayElem()
  6278. r.EncodeInt(int64(x.codecgenK.X))
  6279. z.EncWriteArrayElem()
  6280. if z.EncBasicHandle().StringToRaw {
  6281. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6282. } else {
  6283. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6284. }
  6285. z.EncWriteArrayEnd()
  6286. } else {
  6287. z.EncWriteMapStart(2)
  6288. z.EncWriteMapElemKey()
  6289. if z.IsJSONHandle() {
  6290. z.WriteStr("\"X\"")
  6291. } else {
  6292. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  6293. }
  6294. z.EncWriteMapElemValue()
  6295. r.EncodeInt(int64(x.codecgenK.X))
  6296. z.EncWriteMapElemKey()
  6297. if z.IsJSONHandle() {
  6298. z.WriteStr("\"Y\"")
  6299. } else {
  6300. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  6301. }
  6302. z.EncWriteMapElemValue()
  6303. if z.EncBasicHandle().StringToRaw {
  6304. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  6305. } else {
  6306. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  6307. }
  6308. z.EncWriteMapEnd()
  6309. }
  6310. }
  6311. }
  6312. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  6313. var h codecSelfer19780
  6314. z, r := GenHelperDecoder(d)
  6315. _, _, _ = h, z, r
  6316. yyct2 := r.ContainerType()
  6317. if yyct2 == codecSelferValueTypeMap19780 {
  6318. yyl2 := z.DecReadMapStart()
  6319. if yyl2 == 0 {
  6320. z.DecReadMapEnd()
  6321. } else {
  6322. x.codecDecodeSelfFromMap(yyl2, d)
  6323. }
  6324. } else if yyct2 == codecSelferValueTypeArray19780 {
  6325. yyl2 := z.DecReadArrayStart()
  6326. if yyl2 == 0 {
  6327. z.DecReadArrayEnd()
  6328. } else {
  6329. x.codecDecodeSelfFromArray(yyl2, d)
  6330. }
  6331. } else {
  6332. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6333. }
  6334. }
  6335. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  6336. var h codecSelfer19780
  6337. z, r := GenHelperDecoder(d)
  6338. _, _, _ = h, z, r
  6339. var yyhl3 bool = l >= 0
  6340. for yyj3 := 0; ; yyj3++ {
  6341. if yyhl3 {
  6342. if yyj3 >= l {
  6343. break
  6344. }
  6345. } else {
  6346. if r.CheckBreak() {
  6347. break
  6348. }
  6349. }
  6350. z.DecReadMapElemKey()
  6351. yys3 := z.StringView(r.DecodeStringAsBytes())
  6352. z.DecReadMapElemValue()
  6353. switch yys3 {
  6354. case "X":
  6355. if r.TryDecodeAsNil() {
  6356. x.codecgenK.X = 0
  6357. } else {
  6358. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6359. }
  6360. case "Y":
  6361. if r.TryDecodeAsNil() {
  6362. x.codecgenK.Y = ""
  6363. } else {
  6364. x.codecgenK.Y = (string)(r.DecodeString())
  6365. }
  6366. default:
  6367. z.DecStructFieldNotFound(-1, yys3)
  6368. } // end switch yys3
  6369. } // end for yyj3
  6370. z.DecReadMapEnd()
  6371. }
  6372. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  6373. var h codecSelfer19780
  6374. z, r := GenHelperDecoder(d)
  6375. _, _, _ = h, z, r
  6376. var yyj6 int
  6377. var yyb6 bool
  6378. var yyhl6 bool = l >= 0
  6379. yyj6++
  6380. if yyhl6 {
  6381. yyb6 = yyj6 > l
  6382. } else {
  6383. yyb6 = r.CheckBreak()
  6384. }
  6385. if yyb6 {
  6386. z.DecReadArrayEnd()
  6387. return
  6388. }
  6389. z.DecReadArrayElem()
  6390. if r.TryDecodeAsNil() {
  6391. x.codecgenK.X = 0
  6392. } else {
  6393. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6394. }
  6395. yyj6++
  6396. if yyhl6 {
  6397. yyb6 = yyj6 > l
  6398. } else {
  6399. yyb6 = r.CheckBreak()
  6400. }
  6401. if yyb6 {
  6402. z.DecReadArrayEnd()
  6403. return
  6404. }
  6405. z.DecReadArrayElem()
  6406. if r.TryDecodeAsNil() {
  6407. x.codecgenK.Y = ""
  6408. } else {
  6409. x.codecgenK.Y = (string)(r.DecodeString())
  6410. }
  6411. for {
  6412. yyj6++
  6413. if yyhl6 {
  6414. yyb6 = yyj6 > l
  6415. } else {
  6416. yyb6 = r.CheckBreak()
  6417. }
  6418. if yyb6 {
  6419. break
  6420. }
  6421. z.DecReadArrayElem()
  6422. z.DecStructFieldNotFound(yyj6-1, "")
  6423. }
  6424. z.DecReadArrayEnd()
  6425. }
  6426. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  6427. var h codecSelfer19780
  6428. z, r := GenHelperEncoder(e)
  6429. _, _, _ = h, z, r
  6430. r.EncodeBool(bool(x))
  6431. }
  6432. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  6433. var h codecSelfer19780
  6434. z, r := GenHelperDecoder(d)
  6435. _, _, _ = h, z, r
  6436. *x = (Bbool)(r.DecodeBool())
  6437. }
  6438. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  6439. var h codecSelfer19780
  6440. z, r := GenHelperEncoder(e)
  6441. _, _, _ = h, z, r
  6442. if x == nil {
  6443. r.EncodeNil()
  6444. } else {
  6445. h.encAarray((*Aarray)(x), e)
  6446. }
  6447. }
  6448. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  6449. var h codecSelfer19780
  6450. z, r := GenHelperDecoder(d)
  6451. _, _, _ = h, z, r
  6452. h.decAarray((*Aarray)(x), d)
  6453. }
  6454. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  6455. var h codecSelfer19780
  6456. z, r := GenHelperEncoder(e)
  6457. _, _, _ = h, z, r
  6458. if z.EncBasicHandle().StringToRaw {
  6459. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  6460. } else {
  6461. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  6462. }
  6463. }
  6464. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  6465. var h codecSelfer19780
  6466. z, r := GenHelperDecoder(d)
  6467. _, _, _ = h, z, r
  6468. *x = (Sstring)(r.DecodeString())
  6469. }
  6470. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  6471. var h codecSelfer19780
  6472. z, r := GenHelperEncoder(e)
  6473. _, _, _ = h, z, r
  6474. if x == nil {
  6475. r.EncodeNil()
  6476. } else {
  6477. yysep2 := !z.EncBinary()
  6478. yy2arr2 := z.EncBasicHandle().StructToArray
  6479. _, _ = yysep2, yy2arr2
  6480. const yyr2 bool = false // struct tag has 'toArray'
  6481. if yyr2 || yy2arr2 {
  6482. z.EncWriteArrayStart(1)
  6483. z.EncWriteArrayElem()
  6484. r.EncodeInt(int64(x.A))
  6485. z.EncWriteArrayEnd()
  6486. } else {
  6487. z.EncWriteMapStart(1)
  6488. z.EncWriteMapElemKey()
  6489. if z.IsJSONHandle() {
  6490. z.WriteStr("\"A\"")
  6491. } else {
  6492. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6493. }
  6494. z.EncWriteMapElemValue()
  6495. r.EncodeInt(int64(x.A))
  6496. z.EncWriteMapEnd()
  6497. }
  6498. }
  6499. }
  6500. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  6501. var h codecSelfer19780
  6502. z, r := GenHelperDecoder(d)
  6503. _, _, _ = h, z, r
  6504. yyct2 := r.ContainerType()
  6505. if yyct2 == codecSelferValueTypeMap19780 {
  6506. yyl2 := z.DecReadMapStart()
  6507. if yyl2 == 0 {
  6508. z.DecReadMapEnd()
  6509. } else {
  6510. x.codecDecodeSelfFromMap(yyl2, d)
  6511. }
  6512. } else if yyct2 == codecSelferValueTypeArray19780 {
  6513. yyl2 := z.DecReadArrayStart()
  6514. if yyl2 == 0 {
  6515. z.DecReadArrayEnd()
  6516. } else {
  6517. x.codecDecodeSelfFromArray(yyl2, d)
  6518. }
  6519. } else {
  6520. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6521. }
  6522. }
  6523. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  6524. var h codecSelfer19780
  6525. z, r := GenHelperDecoder(d)
  6526. _, _, _ = h, z, r
  6527. var yyhl3 bool = l >= 0
  6528. for yyj3 := 0; ; yyj3++ {
  6529. if yyhl3 {
  6530. if yyj3 >= l {
  6531. break
  6532. }
  6533. } else {
  6534. if r.CheckBreak() {
  6535. break
  6536. }
  6537. }
  6538. z.DecReadMapElemKey()
  6539. yys3 := z.StringView(r.DecodeStringAsBytes())
  6540. z.DecReadMapElemValue()
  6541. switch yys3 {
  6542. case "A":
  6543. if r.TryDecodeAsNil() {
  6544. x.A = 0
  6545. } else {
  6546. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6547. }
  6548. default:
  6549. z.DecStructFieldNotFound(-1, yys3)
  6550. } // end switch yys3
  6551. } // end for yyj3
  6552. z.DecReadMapEnd()
  6553. }
  6554. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  6555. var h codecSelfer19780
  6556. z, r := GenHelperDecoder(d)
  6557. _, _, _ = h, z, r
  6558. var yyj5 int
  6559. var yyb5 bool
  6560. var yyhl5 bool = l >= 0
  6561. yyj5++
  6562. if yyhl5 {
  6563. yyb5 = yyj5 > l
  6564. } else {
  6565. yyb5 = r.CheckBreak()
  6566. }
  6567. if yyb5 {
  6568. z.DecReadArrayEnd()
  6569. return
  6570. }
  6571. z.DecReadArrayElem()
  6572. if r.TryDecodeAsNil() {
  6573. x.A = 0
  6574. } else {
  6575. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6576. }
  6577. for {
  6578. yyj5++
  6579. if yyhl5 {
  6580. yyb5 = yyj5 > l
  6581. } else {
  6582. yyb5 = r.CheckBreak()
  6583. }
  6584. if yyb5 {
  6585. break
  6586. }
  6587. z.DecReadArrayElem()
  6588. z.DecStructFieldNotFound(yyj5-1, "")
  6589. }
  6590. z.DecReadArrayEnd()
  6591. }
  6592. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  6593. var h codecSelfer19780
  6594. z, r := GenHelperEncoder(e)
  6595. _, _, _ = h, z, r
  6596. if x == nil {
  6597. r.EncodeNil()
  6598. } else {
  6599. yysep2 := !z.EncBinary()
  6600. yy2arr2 := z.EncBasicHandle().StructToArray
  6601. _, _ = yysep2, yy2arr2
  6602. const yyr2 bool = false // struct tag has 'toArray'
  6603. var yyn5 bool = x.Ssmallptr == nil
  6604. var yyn6 bool = x.Ssmall == nil
  6605. var yyn7 bool = x.Sptr == nil
  6606. if yyr2 || yy2arr2 {
  6607. z.EncWriteArrayStart(5)
  6608. z.EncWriteArrayElem()
  6609. r.EncodeInt(int64(x.A))
  6610. z.EncWriteArrayElem()
  6611. r.EncodeBool(bool(x.B))
  6612. if yyn5 {
  6613. z.EncWriteArrayElem()
  6614. r.EncodeNil()
  6615. } else {
  6616. z.EncWriteArrayElem()
  6617. x.Ssmallptr.CodecEncodeSelf(e)
  6618. }
  6619. if yyn6 {
  6620. z.EncWriteArrayElem()
  6621. r.EncodeNil()
  6622. } else {
  6623. z.EncWriteArrayElem()
  6624. x.Ssmall.CodecEncodeSelf(e)
  6625. }
  6626. if yyn7 {
  6627. z.EncWriteArrayElem()
  6628. r.EncodeNil()
  6629. } else {
  6630. z.EncWriteArrayElem()
  6631. x.Sptr.CodecEncodeSelf(e)
  6632. }
  6633. z.EncWriteArrayEnd()
  6634. } else {
  6635. z.EncWriteMapStart(5)
  6636. z.EncWriteMapElemKey()
  6637. if z.IsJSONHandle() {
  6638. z.WriteStr("\"A\"")
  6639. } else {
  6640. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6641. }
  6642. z.EncWriteMapElemValue()
  6643. r.EncodeInt(int64(x.A))
  6644. z.EncWriteMapElemKey()
  6645. if z.IsJSONHandle() {
  6646. z.WriteStr("\"B\"")
  6647. } else {
  6648. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6649. }
  6650. z.EncWriteMapElemValue()
  6651. r.EncodeBool(bool(x.B))
  6652. z.EncWriteMapElemKey()
  6653. if z.IsJSONHandle() {
  6654. z.WriteStr("\"Ssmallptr\"")
  6655. } else {
  6656. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6657. }
  6658. z.EncWriteMapElemValue()
  6659. if yyn5 {
  6660. r.EncodeNil()
  6661. } else {
  6662. x.Ssmallptr.CodecEncodeSelf(e)
  6663. }
  6664. z.EncWriteMapElemKey()
  6665. if z.IsJSONHandle() {
  6666. z.WriteStr("\"Ssmall\"")
  6667. } else {
  6668. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6669. }
  6670. z.EncWriteMapElemValue()
  6671. if yyn6 {
  6672. r.EncodeNil()
  6673. } else {
  6674. x.Ssmall.CodecEncodeSelf(e)
  6675. }
  6676. z.EncWriteMapElemKey()
  6677. if z.IsJSONHandle() {
  6678. z.WriteStr("\"Sptr\"")
  6679. } else {
  6680. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6681. }
  6682. z.EncWriteMapElemValue()
  6683. if yyn7 {
  6684. r.EncodeNil()
  6685. } else {
  6686. x.Sptr.CodecEncodeSelf(e)
  6687. }
  6688. z.EncWriteMapEnd()
  6689. }
  6690. }
  6691. }
  6692. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  6693. var h codecSelfer19780
  6694. z, r := GenHelperDecoder(d)
  6695. _, _, _ = h, z, r
  6696. yyct2 := r.ContainerType()
  6697. if yyct2 == codecSelferValueTypeMap19780 {
  6698. yyl2 := z.DecReadMapStart()
  6699. if yyl2 == 0 {
  6700. z.DecReadMapEnd()
  6701. } else {
  6702. x.codecDecodeSelfFromMap(yyl2, d)
  6703. }
  6704. } else if yyct2 == codecSelferValueTypeArray19780 {
  6705. yyl2 := z.DecReadArrayStart()
  6706. if yyl2 == 0 {
  6707. z.DecReadArrayEnd()
  6708. } else {
  6709. x.codecDecodeSelfFromArray(yyl2, d)
  6710. }
  6711. } else {
  6712. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6713. }
  6714. }
  6715. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  6716. var h codecSelfer19780
  6717. z, r := GenHelperDecoder(d)
  6718. _, _, _ = h, z, r
  6719. var yyhl3 bool = l >= 0
  6720. for yyj3 := 0; ; yyj3++ {
  6721. if yyhl3 {
  6722. if yyj3 >= l {
  6723. break
  6724. }
  6725. } else {
  6726. if r.CheckBreak() {
  6727. break
  6728. }
  6729. }
  6730. z.DecReadMapElemKey()
  6731. yys3 := z.StringView(r.DecodeStringAsBytes())
  6732. z.DecReadMapElemValue()
  6733. switch yys3 {
  6734. case "A":
  6735. if r.TryDecodeAsNil() {
  6736. x.A = 0
  6737. } else {
  6738. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6739. }
  6740. case "B":
  6741. if r.TryDecodeAsNil() {
  6742. x.B = false
  6743. } else {
  6744. x.B = (bool)(r.DecodeBool())
  6745. }
  6746. case "Ssmallptr":
  6747. if r.TryDecodeAsNil() {
  6748. if x.Ssmallptr != nil { // remove the if-true
  6749. x.Ssmallptr = nil
  6750. }
  6751. } else {
  6752. if x.Ssmallptr == nil {
  6753. x.Ssmallptr = new(Sstructsmall)
  6754. }
  6755. x.Ssmallptr.CodecDecodeSelf(d)
  6756. }
  6757. case "Ssmall":
  6758. if r.TryDecodeAsNil() {
  6759. if x.Ssmall != nil { // remove the if-true
  6760. x.Ssmall = nil
  6761. }
  6762. } else {
  6763. if x.Ssmall == nil {
  6764. x.Ssmall = new(Sstructsmall)
  6765. }
  6766. x.Ssmall.CodecDecodeSelf(d)
  6767. }
  6768. case "Sptr":
  6769. if r.TryDecodeAsNil() {
  6770. if x.Sptr != nil { // remove the if-true
  6771. x.Sptr = nil
  6772. }
  6773. } else {
  6774. if x.Sptr == nil {
  6775. x.Sptr = new(Sstructbig)
  6776. }
  6777. x.Sptr.CodecDecodeSelf(d)
  6778. }
  6779. default:
  6780. z.DecStructFieldNotFound(-1, yys3)
  6781. } // end switch yys3
  6782. } // end for yyj3
  6783. z.DecReadMapEnd()
  6784. }
  6785. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  6786. var h codecSelfer19780
  6787. z, r := GenHelperDecoder(d)
  6788. _, _, _ = h, z, r
  6789. var yyj9 int
  6790. var yyb9 bool
  6791. var yyhl9 bool = l >= 0
  6792. yyj9++
  6793. if yyhl9 {
  6794. yyb9 = yyj9 > l
  6795. } else {
  6796. yyb9 = r.CheckBreak()
  6797. }
  6798. if yyb9 {
  6799. z.DecReadArrayEnd()
  6800. return
  6801. }
  6802. z.DecReadArrayElem()
  6803. if r.TryDecodeAsNil() {
  6804. x.A = 0
  6805. } else {
  6806. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6807. }
  6808. yyj9++
  6809. if yyhl9 {
  6810. yyb9 = yyj9 > l
  6811. } else {
  6812. yyb9 = r.CheckBreak()
  6813. }
  6814. if yyb9 {
  6815. z.DecReadArrayEnd()
  6816. return
  6817. }
  6818. z.DecReadArrayElem()
  6819. if r.TryDecodeAsNil() {
  6820. x.B = false
  6821. } else {
  6822. x.B = (bool)(r.DecodeBool())
  6823. }
  6824. yyj9++
  6825. if yyhl9 {
  6826. yyb9 = yyj9 > l
  6827. } else {
  6828. yyb9 = r.CheckBreak()
  6829. }
  6830. if yyb9 {
  6831. z.DecReadArrayEnd()
  6832. return
  6833. }
  6834. z.DecReadArrayElem()
  6835. if r.TryDecodeAsNil() {
  6836. if x.Ssmallptr != nil { // remove the if-true
  6837. x.Ssmallptr = nil
  6838. }
  6839. } else {
  6840. if x.Ssmallptr == nil {
  6841. x.Ssmallptr = new(Sstructsmall)
  6842. }
  6843. x.Ssmallptr.CodecDecodeSelf(d)
  6844. }
  6845. yyj9++
  6846. if yyhl9 {
  6847. yyb9 = yyj9 > l
  6848. } else {
  6849. yyb9 = r.CheckBreak()
  6850. }
  6851. if yyb9 {
  6852. z.DecReadArrayEnd()
  6853. return
  6854. }
  6855. z.DecReadArrayElem()
  6856. if r.TryDecodeAsNil() {
  6857. if x.Ssmall != nil { // remove the if-true
  6858. x.Ssmall = nil
  6859. }
  6860. } else {
  6861. if x.Ssmall == nil {
  6862. x.Ssmall = new(Sstructsmall)
  6863. }
  6864. x.Ssmall.CodecDecodeSelf(d)
  6865. }
  6866. yyj9++
  6867. if yyhl9 {
  6868. yyb9 = yyj9 > l
  6869. } else {
  6870. yyb9 = r.CheckBreak()
  6871. }
  6872. if yyb9 {
  6873. z.DecReadArrayEnd()
  6874. return
  6875. }
  6876. z.DecReadArrayElem()
  6877. if r.TryDecodeAsNil() {
  6878. if x.Sptr != nil { // remove the if-true
  6879. x.Sptr = nil
  6880. }
  6881. } else {
  6882. if x.Sptr == nil {
  6883. x.Sptr = new(Sstructbig)
  6884. }
  6885. x.Sptr.CodecDecodeSelf(d)
  6886. }
  6887. for {
  6888. yyj9++
  6889. if yyhl9 {
  6890. yyb9 = yyj9 > l
  6891. } else {
  6892. yyb9 = r.CheckBreak()
  6893. }
  6894. if yyb9 {
  6895. break
  6896. }
  6897. z.DecReadArrayElem()
  6898. z.DecStructFieldNotFound(yyj9-1, "")
  6899. }
  6900. z.DecReadArrayEnd()
  6901. }
  6902. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  6903. var h codecSelfer19780
  6904. z, r := GenHelperEncoder(e)
  6905. _, _, _ = h, z, r
  6906. if x == nil {
  6907. r.EncodeNil()
  6908. } else {
  6909. yysep2 := !z.EncBinary()
  6910. yy2arr2 := z.EncBasicHandle().StructToArray
  6911. _, _ = yysep2, yy2arr2
  6912. const yyr2 bool = true // struct tag has 'toArray'
  6913. var yyn5 bool = x.Ssmallptr == nil
  6914. var yyn6 bool = x.Ssmall == nil
  6915. var yyn7 bool = x.Sptr == nil
  6916. if yyr2 || yy2arr2 {
  6917. z.EncWriteArrayStart(5)
  6918. z.EncWriteArrayElem()
  6919. r.EncodeInt(int64(x.A))
  6920. z.EncWriteArrayElem()
  6921. r.EncodeBool(bool(x.B))
  6922. if yyn5 {
  6923. z.EncWriteArrayElem()
  6924. r.EncodeNil()
  6925. } else {
  6926. z.EncWriteArrayElem()
  6927. x.Ssmallptr.CodecEncodeSelf(e)
  6928. }
  6929. if yyn6 {
  6930. z.EncWriteArrayElem()
  6931. r.EncodeNil()
  6932. } else {
  6933. z.EncWriteArrayElem()
  6934. x.Ssmall.CodecEncodeSelf(e)
  6935. }
  6936. if yyn7 {
  6937. z.EncWriteArrayElem()
  6938. r.EncodeNil()
  6939. } else {
  6940. z.EncWriteArrayElem()
  6941. x.Sptr.CodecEncodeSelf(e)
  6942. }
  6943. z.EncWriteArrayEnd()
  6944. } else {
  6945. z.EncWriteMapStart(5)
  6946. z.EncWriteMapElemKey()
  6947. if z.IsJSONHandle() {
  6948. z.WriteStr("\"A\"")
  6949. } else {
  6950. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6951. }
  6952. z.EncWriteMapElemValue()
  6953. r.EncodeInt(int64(x.A))
  6954. z.EncWriteMapElemKey()
  6955. if z.IsJSONHandle() {
  6956. z.WriteStr("\"B\"")
  6957. } else {
  6958. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6959. }
  6960. z.EncWriteMapElemValue()
  6961. r.EncodeBool(bool(x.B))
  6962. z.EncWriteMapElemKey()
  6963. if z.IsJSONHandle() {
  6964. z.WriteStr("\"Ssmallptr\"")
  6965. } else {
  6966. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6967. }
  6968. z.EncWriteMapElemValue()
  6969. if yyn5 {
  6970. r.EncodeNil()
  6971. } else {
  6972. x.Ssmallptr.CodecEncodeSelf(e)
  6973. }
  6974. z.EncWriteMapElemKey()
  6975. if z.IsJSONHandle() {
  6976. z.WriteStr("\"Ssmall\"")
  6977. } else {
  6978. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6979. }
  6980. z.EncWriteMapElemValue()
  6981. if yyn6 {
  6982. r.EncodeNil()
  6983. } else {
  6984. x.Ssmall.CodecEncodeSelf(e)
  6985. }
  6986. z.EncWriteMapElemKey()
  6987. if z.IsJSONHandle() {
  6988. z.WriteStr("\"Sptr\"")
  6989. } else {
  6990. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6991. }
  6992. z.EncWriteMapElemValue()
  6993. if yyn7 {
  6994. r.EncodeNil()
  6995. } else {
  6996. x.Sptr.CodecEncodeSelf(e)
  6997. }
  6998. z.EncWriteMapEnd()
  6999. }
  7000. }
  7001. }
  7002. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  7003. var h codecSelfer19780
  7004. z, r := GenHelperDecoder(d)
  7005. _, _, _ = h, z, r
  7006. yyct2 := r.ContainerType()
  7007. if yyct2 == codecSelferValueTypeMap19780 {
  7008. yyl2 := z.DecReadMapStart()
  7009. if yyl2 == 0 {
  7010. z.DecReadMapEnd()
  7011. } else {
  7012. x.codecDecodeSelfFromMap(yyl2, d)
  7013. }
  7014. } else if yyct2 == codecSelferValueTypeArray19780 {
  7015. yyl2 := z.DecReadArrayStart()
  7016. if yyl2 == 0 {
  7017. z.DecReadArrayEnd()
  7018. } else {
  7019. x.codecDecodeSelfFromArray(yyl2, d)
  7020. }
  7021. } else {
  7022. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7023. }
  7024. }
  7025. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  7026. var h codecSelfer19780
  7027. z, r := GenHelperDecoder(d)
  7028. _, _, _ = h, z, r
  7029. var yyhl3 bool = l >= 0
  7030. for yyj3 := 0; ; yyj3++ {
  7031. if yyhl3 {
  7032. if yyj3 >= l {
  7033. break
  7034. }
  7035. } else {
  7036. if r.CheckBreak() {
  7037. break
  7038. }
  7039. }
  7040. z.DecReadMapElemKey()
  7041. yys3 := z.StringView(r.DecodeStringAsBytes())
  7042. z.DecReadMapElemValue()
  7043. switch yys3 {
  7044. case "A":
  7045. if r.TryDecodeAsNil() {
  7046. x.A = 0
  7047. } else {
  7048. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7049. }
  7050. case "B":
  7051. if r.TryDecodeAsNil() {
  7052. x.B = false
  7053. } else {
  7054. x.B = (bool)(r.DecodeBool())
  7055. }
  7056. case "Ssmallptr":
  7057. if r.TryDecodeAsNil() {
  7058. if x.Ssmallptr != nil { // remove the if-true
  7059. x.Ssmallptr = nil
  7060. }
  7061. } else {
  7062. if x.Ssmallptr == nil {
  7063. x.Ssmallptr = new(Sstructsmall)
  7064. }
  7065. x.Ssmallptr.CodecDecodeSelf(d)
  7066. }
  7067. case "Ssmall":
  7068. if r.TryDecodeAsNil() {
  7069. if x.Ssmall != nil { // remove the if-true
  7070. x.Ssmall = nil
  7071. }
  7072. } else {
  7073. if x.Ssmall == nil {
  7074. x.Ssmall = new(Sstructsmall)
  7075. }
  7076. x.Ssmall.CodecDecodeSelf(d)
  7077. }
  7078. case "Sptr":
  7079. if r.TryDecodeAsNil() {
  7080. if x.Sptr != nil { // remove the if-true
  7081. x.Sptr = nil
  7082. }
  7083. } else {
  7084. if x.Sptr == nil {
  7085. x.Sptr = new(Sstructbig)
  7086. }
  7087. x.Sptr.CodecDecodeSelf(d)
  7088. }
  7089. default:
  7090. z.DecStructFieldNotFound(-1, yys3)
  7091. } // end switch yys3
  7092. } // end for yyj3
  7093. z.DecReadMapEnd()
  7094. }
  7095. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  7096. var h codecSelfer19780
  7097. z, r := GenHelperDecoder(d)
  7098. _, _, _ = h, z, r
  7099. var yyj9 int
  7100. var yyb9 bool
  7101. var yyhl9 bool = l >= 0
  7102. yyj9++
  7103. if yyhl9 {
  7104. yyb9 = yyj9 > l
  7105. } else {
  7106. yyb9 = r.CheckBreak()
  7107. }
  7108. if yyb9 {
  7109. z.DecReadArrayEnd()
  7110. return
  7111. }
  7112. z.DecReadArrayElem()
  7113. if r.TryDecodeAsNil() {
  7114. x.A = 0
  7115. } else {
  7116. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7117. }
  7118. yyj9++
  7119. if yyhl9 {
  7120. yyb9 = yyj9 > l
  7121. } else {
  7122. yyb9 = r.CheckBreak()
  7123. }
  7124. if yyb9 {
  7125. z.DecReadArrayEnd()
  7126. return
  7127. }
  7128. z.DecReadArrayElem()
  7129. if r.TryDecodeAsNil() {
  7130. x.B = false
  7131. } else {
  7132. x.B = (bool)(r.DecodeBool())
  7133. }
  7134. yyj9++
  7135. if yyhl9 {
  7136. yyb9 = yyj9 > l
  7137. } else {
  7138. yyb9 = r.CheckBreak()
  7139. }
  7140. if yyb9 {
  7141. z.DecReadArrayEnd()
  7142. return
  7143. }
  7144. z.DecReadArrayElem()
  7145. if r.TryDecodeAsNil() {
  7146. if x.Ssmallptr != nil { // remove the if-true
  7147. x.Ssmallptr = nil
  7148. }
  7149. } else {
  7150. if x.Ssmallptr == nil {
  7151. x.Ssmallptr = new(Sstructsmall)
  7152. }
  7153. x.Ssmallptr.CodecDecodeSelf(d)
  7154. }
  7155. yyj9++
  7156. if yyhl9 {
  7157. yyb9 = yyj9 > l
  7158. } else {
  7159. yyb9 = r.CheckBreak()
  7160. }
  7161. if yyb9 {
  7162. z.DecReadArrayEnd()
  7163. return
  7164. }
  7165. z.DecReadArrayElem()
  7166. if r.TryDecodeAsNil() {
  7167. if x.Ssmall != nil { // remove the if-true
  7168. x.Ssmall = nil
  7169. }
  7170. } else {
  7171. if x.Ssmall == nil {
  7172. x.Ssmall = new(Sstructsmall)
  7173. }
  7174. x.Ssmall.CodecDecodeSelf(d)
  7175. }
  7176. yyj9++
  7177. if yyhl9 {
  7178. yyb9 = yyj9 > l
  7179. } else {
  7180. yyb9 = r.CheckBreak()
  7181. }
  7182. if yyb9 {
  7183. z.DecReadArrayEnd()
  7184. return
  7185. }
  7186. z.DecReadArrayElem()
  7187. if r.TryDecodeAsNil() {
  7188. if x.Sptr != nil { // remove the if-true
  7189. x.Sptr = nil
  7190. }
  7191. } else {
  7192. if x.Sptr == nil {
  7193. x.Sptr = new(Sstructbig)
  7194. }
  7195. x.Sptr.CodecDecodeSelf(d)
  7196. }
  7197. for {
  7198. yyj9++
  7199. if yyhl9 {
  7200. yyb9 = yyj9 > l
  7201. } else {
  7202. yyb9 = r.CheckBreak()
  7203. }
  7204. if yyb9 {
  7205. break
  7206. }
  7207. z.DecReadArrayElem()
  7208. z.DecStructFieldNotFound(yyj9-1, "")
  7209. }
  7210. z.DecReadArrayEnd()
  7211. }
  7212. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  7213. var h codecSelfer19780
  7214. z, r := GenHelperEncoder(e)
  7215. _, _, _ = h, z, r
  7216. if x == nil {
  7217. r.EncodeNil()
  7218. } else {
  7219. yysep2 := !z.EncBinary()
  7220. yy2arr2 := z.EncBasicHandle().StructToArray
  7221. _, _ = yysep2, yy2arr2
  7222. const yyr2 bool = false // struct tag has 'toArray'
  7223. if yyr2 || yy2arr2 {
  7224. z.EncWriteArrayStart(2)
  7225. z.EncWriteArrayElem()
  7226. r.EncodeInt(int64(x.I))
  7227. z.EncWriteArrayElem()
  7228. if z.EncBasicHandle().StringToRaw {
  7229. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7230. } else {
  7231. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7232. }
  7233. z.EncWriteArrayEnd()
  7234. } else {
  7235. z.EncWriteMapStart(2)
  7236. z.EncWriteMapElemKey()
  7237. if z.IsJSONHandle() {
  7238. z.WriteStr("\"I\"")
  7239. } else {
  7240. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7241. }
  7242. z.EncWriteMapElemValue()
  7243. r.EncodeInt(int64(x.I))
  7244. z.EncWriteMapElemKey()
  7245. if z.IsJSONHandle() {
  7246. z.WriteStr("\"S\"")
  7247. } else {
  7248. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7249. }
  7250. z.EncWriteMapElemValue()
  7251. if z.EncBasicHandle().StringToRaw {
  7252. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7253. } else {
  7254. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7255. }
  7256. z.EncWriteMapEnd()
  7257. }
  7258. }
  7259. }
  7260. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  7261. var h codecSelfer19780
  7262. z, r := GenHelperDecoder(d)
  7263. _, _, _ = h, z, r
  7264. yyct2 := r.ContainerType()
  7265. if yyct2 == codecSelferValueTypeMap19780 {
  7266. yyl2 := z.DecReadMapStart()
  7267. if yyl2 == 0 {
  7268. z.DecReadMapEnd()
  7269. } else {
  7270. x.codecDecodeSelfFromMap(yyl2, d)
  7271. }
  7272. } else if yyct2 == codecSelferValueTypeArray19780 {
  7273. yyl2 := z.DecReadArrayStart()
  7274. if yyl2 == 0 {
  7275. z.DecReadArrayEnd()
  7276. } else {
  7277. x.codecDecodeSelfFromArray(yyl2, d)
  7278. }
  7279. } else {
  7280. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7281. }
  7282. }
  7283. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  7284. var h codecSelfer19780
  7285. z, r := GenHelperDecoder(d)
  7286. _, _, _ = h, z, r
  7287. var yyhl3 bool = l >= 0
  7288. for yyj3 := 0; ; yyj3++ {
  7289. if yyhl3 {
  7290. if yyj3 >= l {
  7291. break
  7292. }
  7293. } else {
  7294. if r.CheckBreak() {
  7295. break
  7296. }
  7297. }
  7298. z.DecReadMapElemKey()
  7299. yys3 := z.StringView(r.DecodeStringAsBytes())
  7300. z.DecReadMapElemValue()
  7301. switch yys3 {
  7302. case "I":
  7303. if r.TryDecodeAsNil() {
  7304. x.I = 0
  7305. } else {
  7306. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7307. }
  7308. case "S":
  7309. if r.TryDecodeAsNil() {
  7310. x.S = ""
  7311. } else {
  7312. x.S = (string)(r.DecodeString())
  7313. }
  7314. default:
  7315. z.DecStructFieldNotFound(-1, yys3)
  7316. } // end switch yys3
  7317. } // end for yyj3
  7318. z.DecReadMapEnd()
  7319. }
  7320. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  7321. var h codecSelfer19780
  7322. z, r := GenHelperDecoder(d)
  7323. _, _, _ = h, z, r
  7324. var yyj6 int
  7325. var yyb6 bool
  7326. var yyhl6 bool = l >= 0
  7327. yyj6++
  7328. if yyhl6 {
  7329. yyb6 = yyj6 > l
  7330. } else {
  7331. yyb6 = r.CheckBreak()
  7332. }
  7333. if yyb6 {
  7334. z.DecReadArrayEnd()
  7335. return
  7336. }
  7337. z.DecReadArrayElem()
  7338. if r.TryDecodeAsNil() {
  7339. x.I = 0
  7340. } else {
  7341. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7342. }
  7343. yyj6++
  7344. if yyhl6 {
  7345. yyb6 = yyj6 > l
  7346. } else {
  7347. yyb6 = r.CheckBreak()
  7348. }
  7349. if yyb6 {
  7350. z.DecReadArrayEnd()
  7351. return
  7352. }
  7353. z.DecReadArrayElem()
  7354. if r.TryDecodeAsNil() {
  7355. x.S = ""
  7356. } else {
  7357. x.S = (string)(r.DecodeString())
  7358. }
  7359. for {
  7360. yyj6++
  7361. if yyhl6 {
  7362. yyb6 = yyj6 > l
  7363. } else {
  7364. yyb6 = r.CheckBreak()
  7365. }
  7366. if yyb6 {
  7367. break
  7368. }
  7369. z.DecReadArrayElem()
  7370. z.DecStructFieldNotFound(yyj6-1, "")
  7371. }
  7372. z.DecReadArrayEnd()
  7373. }
  7374. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  7375. var h codecSelfer19780
  7376. z, r := GenHelperEncoder(e)
  7377. _, _, _ = h, z, r
  7378. r.EncodeInt(int64(x))
  7379. }
  7380. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  7381. var h codecSelfer19780
  7382. z, r := GenHelperDecoder(d)
  7383. _, _, _ = h, z, r
  7384. *x = (wrapInt64)(r.DecodeInt64())
  7385. }
  7386. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  7387. var h codecSelfer19780
  7388. z, r := GenHelperEncoder(e)
  7389. _, _, _ = h, z, r
  7390. r.EncodeUint(uint64(x))
  7391. }
  7392. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  7393. var h codecSelfer19780
  7394. z, r := GenHelperDecoder(d)
  7395. _, _, _ = h, z, r
  7396. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  7397. }
  7398. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  7399. var h codecSelfer19780
  7400. z, r := GenHelperEncoder(e)
  7401. _, _, _ = h, z, r
  7402. if x == nil {
  7403. r.EncodeNil()
  7404. } else {
  7405. h.encwrapBytes((wrapBytes)(x), e)
  7406. }
  7407. }
  7408. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  7409. var h codecSelfer19780
  7410. z, r := GenHelperDecoder(d)
  7411. _, _, _ = h, z, r
  7412. h.decwrapBytes((*wrapBytes)(x), d)
  7413. }
  7414. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  7415. var h codecSelfer19780
  7416. z, r := GenHelperEncoder(e)
  7417. _, _, _ = h, z, r
  7418. if x == nil {
  7419. r.EncodeNil()
  7420. } else {
  7421. yysep2 := !z.EncBinary()
  7422. yy2arr2 := z.EncBasicHandle().StructToArray
  7423. _, _ = yysep2, yy2arr2
  7424. const yyr2 bool = false // struct tag has 'toArray'
  7425. var yyn7 bool = x.Tptr == nil
  7426. if yyr2 || yy2arr2 {
  7427. z.EncWriteArrayStart(5)
  7428. z.EncWriteArrayElem()
  7429. z.F.EncSliceIntfV(x.Islice, e)
  7430. z.EncWriteArrayElem()
  7431. z.F.EncMapStringIntfV(x.Ms, e)
  7432. z.EncWriteArrayElem()
  7433. z.EncFallback(x.Nintf)
  7434. z.EncWriteArrayElem()
  7435. if !z.EncBasicHandle().TimeNotBuiltin {
  7436. r.EncodeTime(x.T)
  7437. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7438. z.EncExtension(x.T, yyxt11)
  7439. } else if z.EncBinary() {
  7440. z.EncBinaryMarshal(x.T)
  7441. } else if !z.EncBinary() && z.IsJSONHandle() {
  7442. z.EncJSONMarshal(x.T)
  7443. } else {
  7444. z.EncFallback(x.T)
  7445. }
  7446. if yyn7 {
  7447. z.EncWriteArrayElem()
  7448. r.EncodeNil()
  7449. } else {
  7450. z.EncWriteArrayElem()
  7451. yy12 := *x.Tptr
  7452. if !z.EncBasicHandle().TimeNotBuiltin {
  7453. r.EncodeTime(yy12)
  7454. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  7455. z.EncExtension(yy12, yyxt13)
  7456. } else if z.EncBinary() {
  7457. z.EncBinaryMarshal(yy12)
  7458. } else if !z.EncBinary() && z.IsJSONHandle() {
  7459. z.EncJSONMarshal(yy12)
  7460. } else {
  7461. z.EncFallback(yy12)
  7462. }
  7463. }
  7464. z.EncWriteArrayEnd()
  7465. } else {
  7466. z.EncWriteMapStart(5)
  7467. z.EncWriteMapElemKey()
  7468. if z.IsJSONHandle() {
  7469. z.WriteStr("\"Islice\"")
  7470. } else {
  7471. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  7472. }
  7473. z.EncWriteMapElemValue()
  7474. z.F.EncSliceIntfV(x.Islice, e)
  7475. z.EncWriteMapElemKey()
  7476. if z.IsJSONHandle() {
  7477. z.WriteStr("\"Ms\"")
  7478. } else {
  7479. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  7480. }
  7481. z.EncWriteMapElemValue()
  7482. z.F.EncMapStringIntfV(x.Ms, e)
  7483. z.EncWriteMapElemKey()
  7484. if z.IsJSONHandle() {
  7485. z.WriteStr("\"Nintf\"")
  7486. } else {
  7487. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  7488. }
  7489. z.EncWriteMapElemValue()
  7490. z.EncFallback(x.Nintf)
  7491. z.EncWriteMapElemKey()
  7492. if z.IsJSONHandle() {
  7493. z.WriteStr("\"T\"")
  7494. } else {
  7495. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  7496. }
  7497. z.EncWriteMapElemValue()
  7498. if !z.EncBasicHandle().TimeNotBuiltin {
  7499. r.EncodeTime(x.T)
  7500. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  7501. z.EncExtension(x.T, yyxt17)
  7502. } else if z.EncBinary() {
  7503. z.EncBinaryMarshal(x.T)
  7504. } else if !z.EncBinary() && z.IsJSONHandle() {
  7505. z.EncJSONMarshal(x.T)
  7506. } else {
  7507. z.EncFallback(x.T)
  7508. }
  7509. z.EncWriteMapElemKey()
  7510. if z.IsJSONHandle() {
  7511. z.WriteStr("\"Tptr\"")
  7512. } else {
  7513. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  7514. }
  7515. z.EncWriteMapElemValue()
  7516. if yyn7 {
  7517. r.EncodeNil()
  7518. } else {
  7519. yy18 := *x.Tptr
  7520. if !z.EncBasicHandle().TimeNotBuiltin {
  7521. r.EncodeTime(yy18)
  7522. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  7523. z.EncExtension(yy18, yyxt19)
  7524. } else if z.EncBinary() {
  7525. z.EncBinaryMarshal(yy18)
  7526. } else if !z.EncBinary() && z.IsJSONHandle() {
  7527. z.EncJSONMarshal(yy18)
  7528. } else {
  7529. z.EncFallback(yy18)
  7530. }
  7531. }
  7532. z.EncWriteMapEnd()
  7533. }
  7534. }
  7535. }
  7536. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  7537. var h codecSelfer19780
  7538. z, r := GenHelperDecoder(d)
  7539. _, _, _ = h, z, r
  7540. yyct2 := r.ContainerType()
  7541. if yyct2 == codecSelferValueTypeMap19780 {
  7542. yyl2 := z.DecReadMapStart()
  7543. if yyl2 == 0 {
  7544. z.DecReadMapEnd()
  7545. } else {
  7546. x.codecDecodeSelfFromMap(yyl2, d)
  7547. }
  7548. } else if yyct2 == codecSelferValueTypeArray19780 {
  7549. yyl2 := z.DecReadArrayStart()
  7550. if yyl2 == 0 {
  7551. z.DecReadArrayEnd()
  7552. } else {
  7553. x.codecDecodeSelfFromArray(yyl2, d)
  7554. }
  7555. } else {
  7556. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7557. }
  7558. }
  7559. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  7560. var h codecSelfer19780
  7561. z, r := GenHelperDecoder(d)
  7562. _, _, _ = h, z, r
  7563. var yyhl3 bool = l >= 0
  7564. for yyj3 := 0; ; yyj3++ {
  7565. if yyhl3 {
  7566. if yyj3 >= l {
  7567. break
  7568. }
  7569. } else {
  7570. if r.CheckBreak() {
  7571. break
  7572. }
  7573. }
  7574. z.DecReadMapElemKey()
  7575. yys3 := z.StringView(r.DecodeStringAsBytes())
  7576. z.DecReadMapElemValue()
  7577. switch yys3 {
  7578. case "Islice":
  7579. if r.TryDecodeAsNil() {
  7580. x.Islice = nil
  7581. } else {
  7582. z.F.DecSliceIntfX(&x.Islice, d)
  7583. }
  7584. case "Ms":
  7585. if r.TryDecodeAsNil() {
  7586. x.Ms = nil
  7587. } else {
  7588. z.F.DecMapStringIntfX(&x.Ms, d)
  7589. }
  7590. case "Nintf":
  7591. if r.TryDecodeAsNil() {
  7592. x.Nintf = nil
  7593. } else {
  7594. z.DecFallback(&x.Nintf, true)
  7595. }
  7596. case "T":
  7597. if r.TryDecodeAsNil() {
  7598. x.T = time.Time{}
  7599. } else {
  7600. if !z.DecBasicHandle().TimeNotBuiltin {
  7601. x.T = r.DecodeTime()
  7602. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7603. z.DecExtension(x.T, yyxt11)
  7604. } else if z.DecBinary() {
  7605. z.DecBinaryUnmarshal(&x.T)
  7606. } else if !z.DecBinary() && z.IsJSONHandle() {
  7607. z.DecJSONUnmarshal(&x.T)
  7608. } else {
  7609. z.DecFallback(&x.T, false)
  7610. }
  7611. }
  7612. case "Tptr":
  7613. if r.TryDecodeAsNil() {
  7614. if x.Tptr != nil { // remove the if-true
  7615. x.Tptr = nil
  7616. }
  7617. } else {
  7618. if x.Tptr == nil {
  7619. x.Tptr = new(time.Time)
  7620. }
  7621. if !z.DecBasicHandle().TimeNotBuiltin {
  7622. *x.Tptr = r.DecodeTime()
  7623. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  7624. z.DecExtension(x.Tptr, yyxt13)
  7625. } else if z.DecBinary() {
  7626. z.DecBinaryUnmarshal(x.Tptr)
  7627. } else if !z.DecBinary() && z.IsJSONHandle() {
  7628. z.DecJSONUnmarshal(x.Tptr)
  7629. } else {
  7630. z.DecFallback(x.Tptr, false)
  7631. }
  7632. }
  7633. default:
  7634. z.DecStructFieldNotFound(-1, yys3)
  7635. } // end switch yys3
  7636. } // end for yyj3
  7637. z.DecReadMapEnd()
  7638. }
  7639. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  7640. var h codecSelfer19780
  7641. z, r := GenHelperDecoder(d)
  7642. _, _, _ = h, z, r
  7643. var yyj14 int
  7644. var yyb14 bool
  7645. var yyhl14 bool = l >= 0
  7646. yyj14++
  7647. if yyhl14 {
  7648. yyb14 = yyj14 > l
  7649. } else {
  7650. yyb14 = r.CheckBreak()
  7651. }
  7652. if yyb14 {
  7653. z.DecReadArrayEnd()
  7654. return
  7655. }
  7656. z.DecReadArrayElem()
  7657. if r.TryDecodeAsNil() {
  7658. x.Islice = nil
  7659. } else {
  7660. z.F.DecSliceIntfX(&x.Islice, d)
  7661. }
  7662. yyj14++
  7663. if yyhl14 {
  7664. yyb14 = yyj14 > l
  7665. } else {
  7666. yyb14 = r.CheckBreak()
  7667. }
  7668. if yyb14 {
  7669. z.DecReadArrayEnd()
  7670. return
  7671. }
  7672. z.DecReadArrayElem()
  7673. if r.TryDecodeAsNil() {
  7674. x.Ms = nil
  7675. } else {
  7676. z.F.DecMapStringIntfX(&x.Ms, d)
  7677. }
  7678. yyj14++
  7679. if yyhl14 {
  7680. yyb14 = yyj14 > l
  7681. } else {
  7682. yyb14 = r.CheckBreak()
  7683. }
  7684. if yyb14 {
  7685. z.DecReadArrayEnd()
  7686. return
  7687. }
  7688. z.DecReadArrayElem()
  7689. if r.TryDecodeAsNil() {
  7690. x.Nintf = nil
  7691. } else {
  7692. z.DecFallback(&x.Nintf, true)
  7693. }
  7694. yyj14++
  7695. if yyhl14 {
  7696. yyb14 = yyj14 > l
  7697. } else {
  7698. yyb14 = r.CheckBreak()
  7699. }
  7700. if yyb14 {
  7701. z.DecReadArrayEnd()
  7702. return
  7703. }
  7704. z.DecReadArrayElem()
  7705. if r.TryDecodeAsNil() {
  7706. x.T = time.Time{}
  7707. } else {
  7708. if !z.DecBasicHandle().TimeNotBuiltin {
  7709. x.T = r.DecodeTime()
  7710. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  7711. z.DecExtension(x.T, yyxt22)
  7712. } else if z.DecBinary() {
  7713. z.DecBinaryUnmarshal(&x.T)
  7714. } else if !z.DecBinary() && z.IsJSONHandle() {
  7715. z.DecJSONUnmarshal(&x.T)
  7716. } else {
  7717. z.DecFallback(&x.T, false)
  7718. }
  7719. }
  7720. yyj14++
  7721. if yyhl14 {
  7722. yyb14 = yyj14 > l
  7723. } else {
  7724. yyb14 = r.CheckBreak()
  7725. }
  7726. if yyb14 {
  7727. z.DecReadArrayEnd()
  7728. return
  7729. }
  7730. z.DecReadArrayElem()
  7731. if r.TryDecodeAsNil() {
  7732. if x.Tptr != nil { // remove the if-true
  7733. x.Tptr = nil
  7734. }
  7735. } else {
  7736. if x.Tptr == nil {
  7737. x.Tptr = new(time.Time)
  7738. }
  7739. if !z.DecBasicHandle().TimeNotBuiltin {
  7740. *x.Tptr = r.DecodeTime()
  7741. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  7742. z.DecExtension(x.Tptr, yyxt24)
  7743. } else if z.DecBinary() {
  7744. z.DecBinaryUnmarshal(x.Tptr)
  7745. } else if !z.DecBinary() && z.IsJSONHandle() {
  7746. z.DecJSONUnmarshal(x.Tptr)
  7747. } else {
  7748. z.DecFallback(x.Tptr, false)
  7749. }
  7750. }
  7751. for {
  7752. yyj14++
  7753. if yyhl14 {
  7754. yyb14 = yyj14 > l
  7755. } else {
  7756. yyb14 = r.CheckBreak()
  7757. }
  7758. if yyb14 {
  7759. break
  7760. }
  7761. z.DecReadArrayElem()
  7762. z.DecStructFieldNotFound(yyj14-1, "")
  7763. }
  7764. z.DecReadArrayEnd()
  7765. }
  7766. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  7767. var h codecSelfer19780
  7768. z, r := GenHelperEncoder(e)
  7769. _, _, _ = h, z, r
  7770. if x == nil {
  7771. r.EncodeNil()
  7772. } else {
  7773. yysep2 := !z.EncBinary()
  7774. yy2arr2 := z.EncBasicHandle().StructToArray
  7775. _, _ = yysep2, yy2arr2
  7776. const yyr2 bool = false // struct tag has 'toArray'
  7777. if yyr2 || yy2arr2 {
  7778. z.EncWriteArrayStart(2)
  7779. z.EncWriteArrayElem()
  7780. if z.EncBasicHandle().StringToRaw {
  7781. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7782. } else {
  7783. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7784. }
  7785. z.EncWriteArrayElem()
  7786. r.EncodeBool(bool(x.B))
  7787. z.EncWriteArrayEnd()
  7788. } else {
  7789. z.EncWriteMapStart(2)
  7790. z.EncWriteMapElemKey()
  7791. if z.IsJSONHandle() {
  7792. z.WriteStr("\"S\"")
  7793. } else {
  7794. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7795. }
  7796. z.EncWriteMapElemValue()
  7797. if z.EncBasicHandle().StringToRaw {
  7798. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7799. } else {
  7800. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7801. }
  7802. z.EncWriteMapElemKey()
  7803. if z.IsJSONHandle() {
  7804. z.WriteStr("\"B\"")
  7805. } else {
  7806. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7807. }
  7808. z.EncWriteMapElemValue()
  7809. r.EncodeBool(bool(x.B))
  7810. z.EncWriteMapEnd()
  7811. }
  7812. }
  7813. }
  7814. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  7815. var h codecSelfer19780
  7816. z, r := GenHelperDecoder(d)
  7817. _, _, _ = h, z, r
  7818. yyct2 := r.ContainerType()
  7819. if yyct2 == codecSelferValueTypeMap19780 {
  7820. yyl2 := z.DecReadMapStart()
  7821. if yyl2 == 0 {
  7822. z.DecReadMapEnd()
  7823. } else {
  7824. x.codecDecodeSelfFromMap(yyl2, d)
  7825. }
  7826. } else if yyct2 == codecSelferValueTypeArray19780 {
  7827. yyl2 := z.DecReadArrayStart()
  7828. if yyl2 == 0 {
  7829. z.DecReadArrayEnd()
  7830. } else {
  7831. x.codecDecodeSelfFromArray(yyl2, d)
  7832. }
  7833. } else {
  7834. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7835. }
  7836. }
  7837. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  7838. var h codecSelfer19780
  7839. z, r := GenHelperDecoder(d)
  7840. _, _, _ = h, z, r
  7841. var yyhl3 bool = l >= 0
  7842. for yyj3 := 0; ; yyj3++ {
  7843. if yyhl3 {
  7844. if yyj3 >= l {
  7845. break
  7846. }
  7847. } else {
  7848. if r.CheckBreak() {
  7849. break
  7850. }
  7851. }
  7852. z.DecReadMapElemKey()
  7853. yys3 := z.StringView(r.DecodeStringAsBytes())
  7854. z.DecReadMapElemValue()
  7855. switch yys3 {
  7856. case "S":
  7857. if r.TryDecodeAsNil() {
  7858. x.S = ""
  7859. } else {
  7860. x.S = (string)(r.DecodeString())
  7861. }
  7862. case "B":
  7863. if r.TryDecodeAsNil() {
  7864. x.B = false
  7865. } else {
  7866. x.B = (bool)(r.DecodeBool())
  7867. }
  7868. default:
  7869. z.DecStructFieldNotFound(-1, yys3)
  7870. } // end switch yys3
  7871. } // end for yyj3
  7872. z.DecReadMapEnd()
  7873. }
  7874. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  7875. var h codecSelfer19780
  7876. z, r := GenHelperDecoder(d)
  7877. _, _, _ = h, z, r
  7878. var yyj6 int
  7879. var yyb6 bool
  7880. var yyhl6 bool = l >= 0
  7881. yyj6++
  7882. if yyhl6 {
  7883. yyb6 = yyj6 > l
  7884. } else {
  7885. yyb6 = r.CheckBreak()
  7886. }
  7887. if yyb6 {
  7888. z.DecReadArrayEnd()
  7889. return
  7890. }
  7891. z.DecReadArrayElem()
  7892. if r.TryDecodeAsNil() {
  7893. x.S = ""
  7894. } else {
  7895. x.S = (string)(r.DecodeString())
  7896. }
  7897. yyj6++
  7898. if yyhl6 {
  7899. yyb6 = yyj6 > l
  7900. } else {
  7901. yyb6 = r.CheckBreak()
  7902. }
  7903. if yyb6 {
  7904. z.DecReadArrayEnd()
  7905. return
  7906. }
  7907. z.DecReadArrayElem()
  7908. if r.TryDecodeAsNil() {
  7909. x.B = false
  7910. } else {
  7911. x.B = (bool)(r.DecodeBool())
  7912. }
  7913. for {
  7914. yyj6++
  7915. if yyhl6 {
  7916. yyb6 = yyj6 > l
  7917. } else {
  7918. yyb6 = r.CheckBreak()
  7919. }
  7920. if yyb6 {
  7921. break
  7922. }
  7923. z.DecReadArrayElem()
  7924. z.DecStructFieldNotFound(yyj6-1, "")
  7925. }
  7926. z.DecReadArrayEnd()
  7927. }
  7928. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  7929. var h codecSelfer19780
  7930. z, r := GenHelperEncoder(e)
  7931. _, _, _ = h, z, r
  7932. if x == nil {
  7933. r.EncodeNil()
  7934. } else {
  7935. yysep2 := !z.EncBinary()
  7936. yy2arr2 := z.EncBasicHandle().StructToArray
  7937. _, _ = yysep2, yy2arr2
  7938. const yyr2 bool = false // struct tag has 'toArray'
  7939. if yyr2 || yy2arr2 {
  7940. z.EncWriteArrayStart(4)
  7941. z.EncWriteArrayElem()
  7942. if z.EncBasicHandle().StringToRaw {
  7943. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7944. } else {
  7945. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7946. }
  7947. z.EncWriteArrayElem()
  7948. r.EncodeBool(bool(x.B))
  7949. z.EncWriteArrayElem()
  7950. r.EncodeFloat64(float64(x.F))
  7951. z.EncWriteArrayElem()
  7952. r.EncodeInt(int64(x.I))
  7953. z.EncWriteArrayEnd()
  7954. } else {
  7955. z.EncWriteMapStart(4)
  7956. z.EncWriteMapElemKey()
  7957. if z.IsJSONHandle() {
  7958. z.WriteStr("\"S\"")
  7959. } else {
  7960. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7961. }
  7962. z.EncWriteMapElemValue()
  7963. if z.EncBasicHandle().StringToRaw {
  7964. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7965. } else {
  7966. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7967. }
  7968. z.EncWriteMapElemKey()
  7969. if z.IsJSONHandle() {
  7970. z.WriteStr("\"B\"")
  7971. } else {
  7972. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7973. }
  7974. z.EncWriteMapElemValue()
  7975. r.EncodeBool(bool(x.B))
  7976. z.EncWriteMapElemKey()
  7977. if z.IsJSONHandle() {
  7978. z.WriteStr("\"F\"")
  7979. } else {
  7980. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  7981. }
  7982. z.EncWriteMapElemValue()
  7983. r.EncodeFloat64(float64(x.F))
  7984. z.EncWriteMapElemKey()
  7985. if z.IsJSONHandle() {
  7986. z.WriteStr("\"I\"")
  7987. } else {
  7988. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7989. }
  7990. z.EncWriteMapElemValue()
  7991. r.EncodeInt(int64(x.I))
  7992. z.EncWriteMapEnd()
  7993. }
  7994. }
  7995. }
  7996. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  7997. var h codecSelfer19780
  7998. z, r := GenHelperDecoder(d)
  7999. _, _, _ = h, z, r
  8000. yyct2 := r.ContainerType()
  8001. if yyct2 == codecSelferValueTypeMap19780 {
  8002. yyl2 := z.DecReadMapStart()
  8003. if yyl2 == 0 {
  8004. z.DecReadMapEnd()
  8005. } else {
  8006. x.codecDecodeSelfFromMap(yyl2, d)
  8007. }
  8008. } else if yyct2 == codecSelferValueTypeArray19780 {
  8009. yyl2 := z.DecReadArrayStart()
  8010. if yyl2 == 0 {
  8011. z.DecReadArrayEnd()
  8012. } else {
  8013. x.codecDecodeSelfFromArray(yyl2, d)
  8014. }
  8015. } else {
  8016. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8017. }
  8018. }
  8019. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8020. var h codecSelfer19780
  8021. z, r := GenHelperDecoder(d)
  8022. _, _, _ = h, z, r
  8023. var yyhl3 bool = l >= 0
  8024. for yyj3 := 0; ; yyj3++ {
  8025. if yyhl3 {
  8026. if yyj3 >= l {
  8027. break
  8028. }
  8029. } else {
  8030. if r.CheckBreak() {
  8031. break
  8032. }
  8033. }
  8034. z.DecReadMapElemKey()
  8035. yys3 := z.StringView(r.DecodeStringAsBytes())
  8036. z.DecReadMapElemValue()
  8037. switch yys3 {
  8038. case "S":
  8039. if r.TryDecodeAsNil() {
  8040. x.S = ""
  8041. } else {
  8042. x.S = (string)(r.DecodeString())
  8043. }
  8044. case "B":
  8045. if r.TryDecodeAsNil() {
  8046. x.B = false
  8047. } else {
  8048. x.B = (bool)(r.DecodeBool())
  8049. }
  8050. case "F":
  8051. if r.TryDecodeAsNil() {
  8052. x.F = 0
  8053. } else {
  8054. x.F = (float64)(r.DecodeFloat64())
  8055. }
  8056. case "I":
  8057. if r.TryDecodeAsNil() {
  8058. x.I = 0
  8059. } else {
  8060. x.I = (int64)(r.DecodeInt64())
  8061. }
  8062. default:
  8063. z.DecStructFieldNotFound(-1, yys3)
  8064. } // end switch yys3
  8065. } // end for yyj3
  8066. z.DecReadMapEnd()
  8067. }
  8068. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8069. var h codecSelfer19780
  8070. z, r := GenHelperDecoder(d)
  8071. _, _, _ = h, z, r
  8072. var yyj8 int
  8073. var yyb8 bool
  8074. var yyhl8 bool = l >= 0
  8075. yyj8++
  8076. if yyhl8 {
  8077. yyb8 = yyj8 > l
  8078. } else {
  8079. yyb8 = r.CheckBreak()
  8080. }
  8081. if yyb8 {
  8082. z.DecReadArrayEnd()
  8083. return
  8084. }
  8085. z.DecReadArrayElem()
  8086. if r.TryDecodeAsNil() {
  8087. x.S = ""
  8088. } else {
  8089. x.S = (string)(r.DecodeString())
  8090. }
  8091. yyj8++
  8092. if yyhl8 {
  8093. yyb8 = yyj8 > l
  8094. } else {
  8095. yyb8 = r.CheckBreak()
  8096. }
  8097. if yyb8 {
  8098. z.DecReadArrayEnd()
  8099. return
  8100. }
  8101. z.DecReadArrayElem()
  8102. if r.TryDecodeAsNil() {
  8103. x.B = false
  8104. } else {
  8105. x.B = (bool)(r.DecodeBool())
  8106. }
  8107. yyj8++
  8108. if yyhl8 {
  8109. yyb8 = yyj8 > l
  8110. } else {
  8111. yyb8 = r.CheckBreak()
  8112. }
  8113. if yyb8 {
  8114. z.DecReadArrayEnd()
  8115. return
  8116. }
  8117. z.DecReadArrayElem()
  8118. if r.TryDecodeAsNil() {
  8119. x.F = 0
  8120. } else {
  8121. x.F = (float64)(r.DecodeFloat64())
  8122. }
  8123. yyj8++
  8124. if yyhl8 {
  8125. yyb8 = yyj8 > l
  8126. } else {
  8127. yyb8 = r.CheckBreak()
  8128. }
  8129. if yyb8 {
  8130. z.DecReadArrayEnd()
  8131. return
  8132. }
  8133. z.DecReadArrayElem()
  8134. if r.TryDecodeAsNil() {
  8135. x.I = 0
  8136. } else {
  8137. x.I = (int64)(r.DecodeInt64())
  8138. }
  8139. for {
  8140. yyj8++
  8141. if yyhl8 {
  8142. yyb8 = yyj8 > l
  8143. } else {
  8144. yyb8 = r.CheckBreak()
  8145. }
  8146. if yyb8 {
  8147. break
  8148. }
  8149. z.DecReadArrayElem()
  8150. z.DecStructFieldNotFound(yyj8-1, "")
  8151. }
  8152. z.DecReadArrayEnd()
  8153. }
  8154. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  8155. var h codecSelfer19780
  8156. z, r := GenHelperEncoder(e)
  8157. _, _, _ = h, z, r
  8158. if x == nil {
  8159. r.EncodeNil()
  8160. } else {
  8161. yysep2 := !z.EncBinary()
  8162. yy2arr2 := z.EncBasicHandle().StructToArray
  8163. _, _ = yysep2, yy2arr2
  8164. const yyr2 bool = false // struct tag has 'toArray'
  8165. if yyr2 || yy2arr2 {
  8166. z.EncWriteArrayStart(3)
  8167. z.EncWriteArrayElem()
  8168. if z.EncBasicHandle().StringToRaw {
  8169. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8170. } else {
  8171. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8172. }
  8173. z.EncWriteArrayElem()
  8174. r.EncodeInt(int64(x.I))
  8175. z.EncWriteArrayElem()
  8176. r.EncodeBool(bool(x.B))
  8177. z.EncWriteArrayEnd()
  8178. } else {
  8179. z.EncWriteMapStart(3)
  8180. z.EncWriteMapElemKey()
  8181. if z.IsJSONHandle() {
  8182. z.WriteStr("\"S\"")
  8183. } else {
  8184. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8185. }
  8186. z.EncWriteMapElemValue()
  8187. if z.EncBasicHandle().StringToRaw {
  8188. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8189. } else {
  8190. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8191. }
  8192. z.EncWriteMapElemKey()
  8193. if z.IsJSONHandle() {
  8194. z.WriteStr("\"I\"")
  8195. } else {
  8196. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8197. }
  8198. z.EncWriteMapElemValue()
  8199. r.EncodeInt(int64(x.I))
  8200. z.EncWriteMapElemKey()
  8201. if z.IsJSONHandle() {
  8202. z.WriteStr("\"B\"")
  8203. } else {
  8204. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8205. }
  8206. z.EncWriteMapElemValue()
  8207. r.EncodeBool(bool(x.B))
  8208. z.EncWriteMapEnd()
  8209. }
  8210. }
  8211. }
  8212. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  8213. var h codecSelfer19780
  8214. z, r := GenHelperDecoder(d)
  8215. _, _, _ = h, z, r
  8216. yyct2 := r.ContainerType()
  8217. if yyct2 == codecSelferValueTypeMap19780 {
  8218. yyl2 := z.DecReadMapStart()
  8219. if yyl2 == 0 {
  8220. z.DecReadMapEnd()
  8221. } else {
  8222. x.codecDecodeSelfFromMap(yyl2, d)
  8223. }
  8224. } else if yyct2 == codecSelferValueTypeArray19780 {
  8225. yyl2 := z.DecReadArrayStart()
  8226. if yyl2 == 0 {
  8227. z.DecReadArrayEnd()
  8228. } else {
  8229. x.codecDecodeSelfFromArray(yyl2, d)
  8230. }
  8231. } else {
  8232. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8233. }
  8234. }
  8235. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  8236. var h codecSelfer19780
  8237. z, r := GenHelperDecoder(d)
  8238. _, _, _ = h, z, r
  8239. var yyhl3 bool = l >= 0
  8240. for yyj3 := 0; ; yyj3++ {
  8241. if yyhl3 {
  8242. if yyj3 >= l {
  8243. break
  8244. }
  8245. } else {
  8246. if r.CheckBreak() {
  8247. break
  8248. }
  8249. }
  8250. z.DecReadMapElemKey()
  8251. yys3 := z.StringView(r.DecodeStringAsBytes())
  8252. z.DecReadMapElemValue()
  8253. switch yys3 {
  8254. case "S":
  8255. if r.TryDecodeAsNil() {
  8256. x.S = ""
  8257. } else {
  8258. x.S = (string)(r.DecodeString())
  8259. }
  8260. case "I":
  8261. if r.TryDecodeAsNil() {
  8262. x.I = 0
  8263. } else {
  8264. x.I = (int64)(r.DecodeInt64())
  8265. }
  8266. case "B":
  8267. if r.TryDecodeAsNil() {
  8268. x.B = false
  8269. } else {
  8270. x.B = (bool)(r.DecodeBool())
  8271. }
  8272. default:
  8273. z.DecStructFieldNotFound(-1, yys3)
  8274. } // end switch yys3
  8275. } // end for yyj3
  8276. z.DecReadMapEnd()
  8277. }
  8278. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  8279. var h codecSelfer19780
  8280. z, r := GenHelperDecoder(d)
  8281. _, _, _ = h, z, r
  8282. var yyj7 int
  8283. var yyb7 bool
  8284. var yyhl7 bool = l >= 0
  8285. yyj7++
  8286. if yyhl7 {
  8287. yyb7 = yyj7 > l
  8288. } else {
  8289. yyb7 = r.CheckBreak()
  8290. }
  8291. if yyb7 {
  8292. z.DecReadArrayEnd()
  8293. return
  8294. }
  8295. z.DecReadArrayElem()
  8296. if r.TryDecodeAsNil() {
  8297. x.S = ""
  8298. } else {
  8299. x.S = (string)(r.DecodeString())
  8300. }
  8301. yyj7++
  8302. if yyhl7 {
  8303. yyb7 = yyj7 > l
  8304. } else {
  8305. yyb7 = r.CheckBreak()
  8306. }
  8307. if yyb7 {
  8308. z.DecReadArrayEnd()
  8309. return
  8310. }
  8311. z.DecReadArrayElem()
  8312. if r.TryDecodeAsNil() {
  8313. x.I = 0
  8314. } else {
  8315. x.I = (int64)(r.DecodeInt64())
  8316. }
  8317. yyj7++
  8318. if yyhl7 {
  8319. yyb7 = yyj7 > l
  8320. } else {
  8321. yyb7 = r.CheckBreak()
  8322. }
  8323. if yyb7 {
  8324. z.DecReadArrayEnd()
  8325. return
  8326. }
  8327. z.DecReadArrayElem()
  8328. if r.TryDecodeAsNil() {
  8329. x.B = false
  8330. } else {
  8331. x.B = (bool)(r.DecodeBool())
  8332. }
  8333. for {
  8334. yyj7++
  8335. if yyhl7 {
  8336. yyb7 = yyj7 > l
  8337. } else {
  8338. yyb7 = r.CheckBreak()
  8339. }
  8340. if yyb7 {
  8341. break
  8342. }
  8343. z.DecReadArrayElem()
  8344. z.DecStructFieldNotFound(yyj7-1, "")
  8345. }
  8346. z.DecReadArrayEnd()
  8347. }
  8348. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  8349. var h codecSelfer19780
  8350. z, r := GenHelperEncoder(e)
  8351. _, _, _ = h, z, r
  8352. if x == nil {
  8353. r.EncodeNil()
  8354. } else {
  8355. yysep2 := !z.EncBinary()
  8356. yy2arr2 := z.EncBasicHandle().StructToArray
  8357. _, _ = yysep2, yy2arr2
  8358. const yyr2 bool = false // struct tag has 'toArray'
  8359. if yyr2 || yy2arr2 {
  8360. z.EncWriteArrayStart(3)
  8361. z.EncWriteArrayElem()
  8362. if z.EncBasicHandle().StringToRaw {
  8363. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8364. } else {
  8365. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8366. }
  8367. z.EncWriteArrayElem()
  8368. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8369. z.EncWriteArrayElem()
  8370. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8371. z.EncWriteArrayEnd()
  8372. } else {
  8373. z.EncWriteMapStart(3)
  8374. z.EncWriteMapElemKey()
  8375. if z.IsJSONHandle() {
  8376. z.WriteStr("\"S\"")
  8377. } else {
  8378. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8379. }
  8380. z.EncWriteMapElemValue()
  8381. if z.EncBasicHandle().StringToRaw {
  8382. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8383. } else {
  8384. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8385. }
  8386. z.EncWriteMapElemKey()
  8387. if z.IsJSONHandle() {
  8388. z.WriteStr("\"I\"")
  8389. } else {
  8390. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8391. }
  8392. z.EncWriteMapElemValue()
  8393. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8394. z.EncWriteMapElemKey()
  8395. if z.IsJSONHandle() {
  8396. z.WriteStr("\"B\"")
  8397. } else {
  8398. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8399. }
  8400. z.EncWriteMapElemValue()
  8401. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8402. z.EncWriteMapEnd()
  8403. }
  8404. }
  8405. }
  8406. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  8407. var h codecSelfer19780
  8408. z, r := GenHelperDecoder(d)
  8409. _, _, _ = h, z, r
  8410. yyct2 := r.ContainerType()
  8411. if yyct2 == codecSelferValueTypeMap19780 {
  8412. yyl2 := z.DecReadMapStart()
  8413. if yyl2 == 0 {
  8414. z.DecReadMapEnd()
  8415. } else {
  8416. x.codecDecodeSelfFromMap(yyl2, d)
  8417. }
  8418. } else if yyct2 == codecSelferValueTypeArray19780 {
  8419. yyl2 := z.DecReadArrayStart()
  8420. if yyl2 == 0 {
  8421. z.DecReadArrayEnd()
  8422. } else {
  8423. x.codecDecodeSelfFromArray(yyl2, d)
  8424. }
  8425. } else {
  8426. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8427. }
  8428. }
  8429. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  8430. var h codecSelfer19780
  8431. z, r := GenHelperDecoder(d)
  8432. _, _, _ = h, z, r
  8433. var yyhl3 bool = l >= 0
  8434. for yyj3 := 0; ; yyj3++ {
  8435. if yyhl3 {
  8436. if yyj3 >= l {
  8437. break
  8438. }
  8439. } else {
  8440. if r.CheckBreak() {
  8441. break
  8442. }
  8443. }
  8444. z.DecReadMapElemKey()
  8445. yys3 := z.StringView(r.DecodeStringAsBytes())
  8446. z.DecReadMapElemValue()
  8447. switch yys3 {
  8448. case "S":
  8449. if r.TryDecodeAsNil() {
  8450. x.testSelfExtHelper.S = ""
  8451. } else {
  8452. x.testSelfExtHelper.S = (string)(r.DecodeString())
  8453. }
  8454. case "I":
  8455. if r.TryDecodeAsNil() {
  8456. x.testSelfExtHelper.I = 0
  8457. } else {
  8458. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8459. }
  8460. case "B":
  8461. if r.TryDecodeAsNil() {
  8462. x.testSelfExtHelper.B = false
  8463. } else {
  8464. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8465. }
  8466. default:
  8467. z.DecStructFieldNotFound(-1, yys3)
  8468. } // end switch yys3
  8469. } // end for yyj3
  8470. z.DecReadMapEnd()
  8471. }
  8472. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  8473. var h codecSelfer19780
  8474. z, r := GenHelperDecoder(d)
  8475. _, _, _ = h, z, r
  8476. var yyj7 int
  8477. var yyb7 bool
  8478. var yyhl7 bool = l >= 0
  8479. yyj7++
  8480. if yyhl7 {
  8481. yyb7 = yyj7 > l
  8482. } else {
  8483. yyb7 = r.CheckBreak()
  8484. }
  8485. if yyb7 {
  8486. z.DecReadArrayEnd()
  8487. return
  8488. }
  8489. z.DecReadArrayElem()
  8490. if r.TryDecodeAsNil() {
  8491. x.testSelfExtHelper.S = ""
  8492. } else {
  8493. x.testSelfExtHelper.S = (string)(r.DecodeString())
  8494. }
  8495. yyj7++
  8496. if yyhl7 {
  8497. yyb7 = yyj7 > l
  8498. } else {
  8499. yyb7 = r.CheckBreak()
  8500. }
  8501. if yyb7 {
  8502. z.DecReadArrayEnd()
  8503. return
  8504. }
  8505. z.DecReadArrayElem()
  8506. if r.TryDecodeAsNil() {
  8507. x.testSelfExtHelper.I = 0
  8508. } else {
  8509. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8510. }
  8511. yyj7++
  8512. if yyhl7 {
  8513. yyb7 = yyj7 > l
  8514. } else {
  8515. yyb7 = r.CheckBreak()
  8516. }
  8517. if yyb7 {
  8518. z.DecReadArrayEnd()
  8519. return
  8520. }
  8521. z.DecReadArrayElem()
  8522. if r.TryDecodeAsNil() {
  8523. x.testSelfExtHelper.B = false
  8524. } else {
  8525. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8526. }
  8527. for {
  8528. yyj7++
  8529. if yyhl7 {
  8530. yyb7 = yyj7 > l
  8531. } else {
  8532. yyb7 = r.CheckBreak()
  8533. }
  8534. if yyb7 {
  8535. break
  8536. }
  8537. z.DecReadArrayElem()
  8538. z.DecStructFieldNotFound(yyj7-1, "")
  8539. }
  8540. z.DecReadArrayEnd()
  8541. }
  8542. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  8543. var h codecSelfer19780
  8544. z, r := GenHelperEncoder(e)
  8545. _, _, _ = h, z, r
  8546. if x == nil {
  8547. r.EncodeNil()
  8548. } else {
  8549. yysep2 := !z.EncBinary()
  8550. yy2arr2 := z.EncBasicHandle().StructToArray
  8551. _, _ = yysep2, yy2arr2
  8552. const yyr2 bool = false // struct tag has 'toArray'
  8553. var yyq2 = [75]bool{ // should field at this index be written?
  8554. x.S != "", // S
  8555. x.I64 != 0, // I64
  8556. x.I32 != 0, // I32
  8557. x.I16 != 0, // I16
  8558. x.I8 != 0, // I8
  8559. x.I64n != 0, // I64n
  8560. x.I32n != 0, // I32n
  8561. x.I16n != 0, // I16n
  8562. x.I8n != 0, // I8n
  8563. x.Ui64 != 0, // Ui64
  8564. x.Ui32 != 0, // Ui32
  8565. x.Ui16 != 0, // Ui16
  8566. x.Ui8 != 0, // Ui8
  8567. x.F64 != 0, // F64
  8568. x.F32 != 0, // F32
  8569. x.B, // B
  8570. x.By != 0, // By
  8571. len(x.Sslice) != 0, // Sslice
  8572. len(x.I64slice) != 0, // I64slice
  8573. len(x.I16slice) != 0, // I16slice
  8574. len(x.Ui64slice) != 0, // Ui64slice
  8575. len(x.Ui8slice) != 0, // Ui8slice
  8576. len(x.Bslice) != 0, // Bslice
  8577. len(x.Byslice) != 0, // Byslice
  8578. len(x.BytesSlice) != 0, // BytesSlice
  8579. len(x.Iptrslice) != 0, // Iptrslice
  8580. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  8581. len(x.WrapSliceString) != 0, // WrapSliceString
  8582. len(x.Msi64) != 0, // Msi64
  8583. len(x.Msbytes) != 0, // Msbytes
  8584. 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
  8585. len(x.SstrUi64T) != 0, // SstrUi64T
  8586. x.AS != "", // AS
  8587. x.AI64 != 0, // AI64
  8588. x.AI16 != 0, // AI16
  8589. x.AUi64 != 0, // AUi64
  8590. len(x.ASslice) != 0, // ASslice
  8591. len(x.AI64slice) != 0, // AI64slice
  8592. len(x.AUi64slice) != 0, // AUi64slice
  8593. len(x.AF64slice) != 0, // AF64slice
  8594. len(x.AF32slice) != 0, // AF32slice
  8595. len(x.AMSU16) != 0, // AMSU16
  8596. len(x.AI64arr0) != 0, // AI64arr0
  8597. len(x.A164slice0) != 0, // A164slice0
  8598. len(x.AUi64sliceN) != 0, // AUi64sliceN
  8599. len(x.AMSU16N) != 0, // AMSU16N
  8600. len(x.AMSU16E) != 0, // AMSU16E
  8601. false || x.NotAnon.AS != "" || x.NotAnon.AI64 != 0 || x.NotAnon.AI16 != 0 || x.NotAnon.AUi64 != 0 || len(x.NotAnon.ASslice) != 0 || len(x.NotAnon.AI64slice) != 0 || len(x.NotAnon.AUi64slice) != 0 || len(x.NotAnon.AF64slice) != 0 || len(x.NotAnon.AF32slice) != 0 || len(x.NotAnon.AMSU16) != 0 || len(x.NotAnon.AI64arr0) != 0 || len(x.NotAnon.A164slice0) != 0 || len(x.NotAnon.AUi64sliceN) != 0 || len(x.NotAnon.AMSU16N) != 0 || len(x.NotAnon.AMSU16E) != 0, // NotAnon
  8602. len(x.Nmap) != 0, // Nmap
  8603. len(x.Nslice) != 0, // Nslice
  8604. x.Nint64 != nil, // Nint64
  8605. len(x.Chstr) != 0, // Chstr
  8606. len(x.Mis) != 0, // Mis
  8607. len(x.Mbu64) != 0, // Mbu64
  8608. len(x.Miwu64s) != 0, // Miwu64s
  8609. len(x.Mfwss) != 0, // Mfwss
  8610. len(x.Mf32wss) != 0, // Mf32wss
  8611. len(x.Mui2wss) != 0, // Mui2wss
  8612. len(x.Msu2wss) != 0, // Msu2wss
  8613. x.Ci64 != 0, // Ci64
  8614. len(x.Swrapbytes) != 0, // Swrapbytes
  8615. len(x.Swrapuint8) != 0, // Swrapuint8
  8616. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  8617. len(x.Ui64array) != 0, // Ui64array
  8618. len(x.Ui64slicearray) != 0, // Ui64slicearray
  8619. len(x.SintfAarray) != 0, // SintfAarray
  8620. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  8621. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  8622. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  8623. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  8624. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  8625. len(x.Mtsptr) != 0, // Mtsptr
  8626. len(x.Mts) != 0, // Mts
  8627. len(x.Its) != 0, // Its
  8628. x.Nteststruc != nil, // Nteststruc
  8629. }
  8630. _ = yyq2
  8631. var yyn53 bool = x.TestStrucCommon.Nint64 == nil
  8632. var yyn69 bool = x.AnonInTestStrucIntf == nil
  8633. var yyn70 bool = x.AnonInTestStrucIntf == nil
  8634. var yyn71 bool = x.AnonInTestStrucIntf == nil
  8635. var yyn72 bool = x.AnonInTestStrucIntf == nil
  8636. var yyn73 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  8637. var yyn77 bool = x.Nteststruc == nil
  8638. if yyr2 || yy2arr2 {
  8639. z.EncWriteArrayStart(75)
  8640. z.EncWriteArrayElem()
  8641. if yyq2[0] {
  8642. if z.EncBasicHandle().StringToRaw {
  8643. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  8644. } else {
  8645. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  8646. }
  8647. } else {
  8648. if z.EncBasicHandle().StringToRaw {
  8649. r.EncodeStringBytesRaw([]byte{})
  8650. } else {
  8651. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8652. }
  8653. }
  8654. z.EncWriteArrayElem()
  8655. if yyq2[1] {
  8656. r.EncodeInt(int64(x.TestStrucCommon.I64))
  8657. } else {
  8658. r.EncodeInt(0)
  8659. }
  8660. z.EncWriteArrayElem()
  8661. if yyq2[2] {
  8662. r.EncodeInt(int64(x.TestStrucCommon.I32))
  8663. } else {
  8664. r.EncodeInt(0)
  8665. }
  8666. z.EncWriteArrayElem()
  8667. if yyq2[3] {
  8668. r.EncodeInt(int64(x.TestStrucCommon.I16))
  8669. } else {
  8670. r.EncodeInt(0)
  8671. }
  8672. z.EncWriteArrayElem()
  8673. if yyq2[4] {
  8674. r.EncodeInt(int64(x.TestStrucCommon.I8))
  8675. } else {
  8676. r.EncodeInt(0)
  8677. }
  8678. z.EncWriteArrayElem()
  8679. if yyq2[5] {
  8680. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  8681. } else {
  8682. r.EncodeInt(0)
  8683. }
  8684. z.EncWriteArrayElem()
  8685. if yyq2[6] {
  8686. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  8687. } else {
  8688. r.EncodeInt(0)
  8689. }
  8690. z.EncWriteArrayElem()
  8691. if yyq2[7] {
  8692. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  8693. } else {
  8694. r.EncodeInt(0)
  8695. }
  8696. z.EncWriteArrayElem()
  8697. if yyq2[8] {
  8698. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  8699. } else {
  8700. r.EncodeInt(0)
  8701. }
  8702. z.EncWriteArrayElem()
  8703. if yyq2[9] {
  8704. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  8705. } else {
  8706. r.EncodeUint(0)
  8707. }
  8708. z.EncWriteArrayElem()
  8709. if yyq2[10] {
  8710. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  8711. } else {
  8712. r.EncodeUint(0)
  8713. }
  8714. z.EncWriteArrayElem()
  8715. if yyq2[11] {
  8716. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  8717. } else {
  8718. r.EncodeUint(0)
  8719. }
  8720. z.EncWriteArrayElem()
  8721. if yyq2[12] {
  8722. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  8723. } else {
  8724. r.EncodeUint(0)
  8725. }
  8726. z.EncWriteArrayElem()
  8727. if yyq2[13] {
  8728. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  8729. } else {
  8730. r.EncodeFloat64(0)
  8731. }
  8732. z.EncWriteArrayElem()
  8733. if yyq2[14] {
  8734. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  8735. } else {
  8736. r.EncodeFloat32(0)
  8737. }
  8738. z.EncWriteArrayElem()
  8739. if yyq2[15] {
  8740. r.EncodeBool(bool(x.TestStrucCommon.B))
  8741. } else {
  8742. r.EncodeBool(false)
  8743. }
  8744. z.EncWriteArrayElem()
  8745. if yyq2[16] {
  8746. r.EncodeUint(uint64(x.TestStrucCommon.By))
  8747. } else {
  8748. r.EncodeUint(0)
  8749. }
  8750. z.EncWriteArrayElem()
  8751. if yyq2[17] {
  8752. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  8753. } else {
  8754. r.EncodeNil()
  8755. }
  8756. z.EncWriteArrayElem()
  8757. if yyq2[18] {
  8758. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  8759. } else {
  8760. r.EncodeNil()
  8761. }
  8762. z.EncWriteArrayElem()
  8763. if yyq2[19] {
  8764. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  8765. } else {
  8766. r.EncodeNil()
  8767. }
  8768. z.EncWriteArrayElem()
  8769. if yyq2[20] {
  8770. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  8771. } else {
  8772. r.EncodeNil()
  8773. }
  8774. z.EncWriteArrayElem()
  8775. if yyq2[21] {
  8776. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  8777. } else {
  8778. r.EncodeNil()
  8779. }
  8780. z.EncWriteArrayElem()
  8781. if yyq2[22] {
  8782. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  8783. } else {
  8784. r.EncodeNil()
  8785. }
  8786. z.EncWriteArrayElem()
  8787. if yyq2[23] {
  8788. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  8789. } else {
  8790. r.EncodeNil()
  8791. }
  8792. z.EncWriteArrayElem()
  8793. if yyq2[24] {
  8794. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  8795. } else {
  8796. r.EncodeNil()
  8797. }
  8798. z.EncWriteArrayElem()
  8799. if yyq2[25] {
  8800. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  8801. } else {
  8802. r.EncodeNil()
  8803. }
  8804. z.EncWriteArrayElem()
  8805. if yyq2[26] {
  8806. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  8807. } else {
  8808. r.EncodeNil()
  8809. }
  8810. z.EncWriteArrayElem()
  8811. if yyq2[27] {
  8812. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  8813. } else {
  8814. r.EncodeNil()
  8815. }
  8816. z.EncWriteArrayElem()
  8817. if yyq2[28] {
  8818. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  8819. } else {
  8820. r.EncodeNil()
  8821. }
  8822. z.EncWriteArrayElem()
  8823. if yyq2[29] {
  8824. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  8825. } else {
  8826. r.EncodeNil()
  8827. }
  8828. z.EncWriteArrayElem()
  8829. if yyq2[30] {
  8830. yy108 := &x.TestStrucCommon.Simplef
  8831. yy108.CodecEncodeSelf(e)
  8832. } else {
  8833. r.EncodeNil()
  8834. }
  8835. z.EncWriteArrayElem()
  8836. if yyq2[31] {
  8837. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  8838. } else {
  8839. r.EncodeNil()
  8840. }
  8841. z.EncWriteArrayElem()
  8842. if yyq2[32] {
  8843. if z.EncBasicHandle().StringToRaw {
  8844. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  8845. } else {
  8846. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  8847. }
  8848. } else {
  8849. if z.EncBasicHandle().StringToRaw {
  8850. r.EncodeStringBytesRaw([]byte{})
  8851. } else {
  8852. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8853. }
  8854. }
  8855. z.EncWriteArrayElem()
  8856. if yyq2[33] {
  8857. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  8858. } else {
  8859. r.EncodeInt(0)
  8860. }
  8861. z.EncWriteArrayElem()
  8862. if yyq2[34] {
  8863. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  8864. } else {
  8865. r.EncodeInt(0)
  8866. }
  8867. z.EncWriteArrayElem()
  8868. if yyq2[35] {
  8869. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  8870. } else {
  8871. r.EncodeUint(0)
  8872. }
  8873. z.EncWriteArrayElem()
  8874. if yyq2[36] {
  8875. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  8876. } else {
  8877. r.EncodeNil()
  8878. }
  8879. z.EncWriteArrayElem()
  8880. if yyq2[37] {
  8881. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  8882. } else {
  8883. r.EncodeNil()
  8884. }
  8885. z.EncWriteArrayElem()
  8886. if yyq2[38] {
  8887. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  8888. } else {
  8889. r.EncodeNil()
  8890. }
  8891. z.EncWriteArrayElem()
  8892. if yyq2[39] {
  8893. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  8894. } else {
  8895. r.EncodeNil()
  8896. }
  8897. z.EncWriteArrayElem()
  8898. if yyq2[40] {
  8899. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  8900. } else {
  8901. r.EncodeNil()
  8902. }
  8903. z.EncWriteArrayElem()
  8904. if yyq2[41] {
  8905. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  8906. } else {
  8907. r.EncodeNil()
  8908. }
  8909. z.EncWriteArrayElem()
  8910. if yyq2[42] {
  8911. yy121 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  8912. h.encArray0int64((*[0]int64)(yy121), e)
  8913. } else {
  8914. r.EncodeNil()
  8915. }
  8916. z.EncWriteArrayElem()
  8917. if yyq2[43] {
  8918. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  8919. } else {
  8920. r.EncodeNil()
  8921. }
  8922. z.EncWriteArrayElem()
  8923. if yyq2[44] {
  8924. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  8925. } else {
  8926. r.EncodeNil()
  8927. }
  8928. z.EncWriteArrayElem()
  8929. if yyq2[45] {
  8930. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  8931. } else {
  8932. r.EncodeNil()
  8933. }
  8934. z.EncWriteArrayElem()
  8935. if yyq2[46] {
  8936. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  8937. } else {
  8938. r.EncodeNil()
  8939. }
  8940. z.EncWriteArrayElem()
  8941. if yyq2[47] {
  8942. yy127 := &x.TestStrucCommon.NotAnon
  8943. yy127.CodecEncodeSelf(e)
  8944. } else {
  8945. r.EncodeNil()
  8946. }
  8947. z.EncWriteArrayElem()
  8948. if yyq2[48] {
  8949. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  8950. } else {
  8951. r.EncodeNil()
  8952. }
  8953. z.EncWriteArrayElem()
  8954. if yyq2[49] {
  8955. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  8956. } else {
  8957. r.EncodeNil()
  8958. }
  8959. if yyn53 {
  8960. z.EncWriteArrayElem()
  8961. r.EncodeNil()
  8962. } else {
  8963. z.EncWriteArrayElem()
  8964. if yyq2[50] {
  8965. yy131 := *x.TestStrucCommon.Nint64
  8966. r.EncodeInt(int64(yy131))
  8967. } else {
  8968. r.EncodeNil()
  8969. }
  8970. }
  8971. z.EncWriteArrayElem()
  8972. if yyq2[51] {
  8973. h.encChanstring((chan string)(x.Chstr), e)
  8974. } else {
  8975. r.EncodeNil()
  8976. }
  8977. z.EncWriteArrayElem()
  8978. if yyq2[52] {
  8979. z.F.EncMapIntStringV(x.Mis, e)
  8980. } else {
  8981. r.EncodeNil()
  8982. }
  8983. z.EncWriteArrayElem()
  8984. if yyq2[53] {
  8985. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  8986. } else {
  8987. r.EncodeNil()
  8988. }
  8989. z.EncWriteArrayElem()
  8990. if yyq2[54] {
  8991. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  8992. } else {
  8993. r.EncodeNil()
  8994. }
  8995. z.EncWriteArrayElem()
  8996. if yyq2[55] {
  8997. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  8998. } else {
  8999. r.EncodeNil()
  9000. }
  9001. z.EncWriteArrayElem()
  9002. if yyq2[56] {
  9003. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9004. } else {
  9005. r.EncodeNil()
  9006. }
  9007. z.EncWriteArrayElem()
  9008. if yyq2[57] {
  9009. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9010. } else {
  9011. r.EncodeNil()
  9012. }
  9013. z.EncWriteArrayElem()
  9014. if yyq2[58] {
  9015. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9016. } else {
  9017. r.EncodeNil()
  9018. }
  9019. z.EncWriteArrayElem()
  9020. if yyq2[59] {
  9021. x.Ci64.CodecEncodeSelf(e)
  9022. } else {
  9023. r.EncodeInt(0)
  9024. }
  9025. z.EncWriteArrayElem()
  9026. if yyq2[60] {
  9027. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9028. } else {
  9029. r.EncodeNil()
  9030. }
  9031. z.EncWriteArrayElem()
  9032. if yyq2[61] {
  9033. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9034. } else {
  9035. r.EncodeNil()
  9036. }
  9037. z.EncWriteArrayElem()
  9038. if yyq2[62] {
  9039. yy144 := &x.ArrStrUi64T
  9040. h.encArray4stringUint64T((*[4]stringUint64T)(yy144), e)
  9041. } else {
  9042. r.EncodeNil()
  9043. }
  9044. z.EncWriteArrayElem()
  9045. if yyq2[63] {
  9046. yy146 := &x.Ui64array
  9047. h.encArray4uint64((*[4]uint64)(yy146), e)
  9048. } else {
  9049. r.EncodeNil()
  9050. }
  9051. z.EncWriteArrayElem()
  9052. if yyq2[64] {
  9053. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9054. } else {
  9055. r.EncodeNil()
  9056. }
  9057. z.EncWriteArrayElem()
  9058. if yyq2[65] {
  9059. z.F.EncSliceIntfV(x.SintfAarray, e)
  9060. } else {
  9061. r.EncodeNil()
  9062. }
  9063. if yyn69 {
  9064. z.EncWriteArrayElem()
  9065. r.EncodeNil()
  9066. } else {
  9067. z.EncWriteArrayElem()
  9068. if yyq2[66] {
  9069. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9070. } else {
  9071. r.EncodeNil()
  9072. }
  9073. }
  9074. if yyn70 {
  9075. z.EncWriteArrayElem()
  9076. r.EncodeNil()
  9077. } else {
  9078. z.EncWriteArrayElem()
  9079. if yyq2[67] {
  9080. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9081. } else {
  9082. r.EncodeNil()
  9083. }
  9084. }
  9085. if yyn71 {
  9086. z.EncWriteArrayElem()
  9087. r.EncodeNil()
  9088. } else {
  9089. z.EncWriteArrayElem()
  9090. if yyq2[68] {
  9091. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9092. } else {
  9093. r.EncodeNil()
  9094. }
  9095. }
  9096. if yyn72 {
  9097. z.EncWriteArrayElem()
  9098. r.EncodeNil()
  9099. } else {
  9100. z.EncWriteArrayElem()
  9101. if yyq2[69] {
  9102. if !z.EncBasicHandle().TimeNotBuiltin {
  9103. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9104. } else if yyxt153 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt153 != nil {
  9105. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt153)
  9106. } else if z.EncBinary() {
  9107. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9108. } else if !z.EncBinary() && z.IsJSONHandle() {
  9109. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9110. } else {
  9111. z.EncFallback(x.AnonInTestStrucIntf.T)
  9112. }
  9113. } else {
  9114. r.EncodeNil()
  9115. }
  9116. }
  9117. if yyn73 {
  9118. z.EncWriteArrayElem()
  9119. r.EncodeNil()
  9120. } else {
  9121. z.EncWriteArrayElem()
  9122. if yyq2[70] {
  9123. yy154 := *x.AnonInTestStrucIntf.Tptr
  9124. if !z.EncBasicHandle().TimeNotBuiltin {
  9125. r.EncodeTime(yy154)
  9126. } else if yyxt155 := z.Extension(z.I2Rtid(yy154)); yyxt155 != nil {
  9127. z.EncExtension(yy154, yyxt155)
  9128. } else if z.EncBinary() {
  9129. z.EncBinaryMarshal(yy154)
  9130. } else if !z.EncBinary() && z.IsJSONHandle() {
  9131. z.EncJSONMarshal(yy154)
  9132. } else {
  9133. z.EncFallback(yy154)
  9134. }
  9135. } else {
  9136. r.EncodeNil()
  9137. }
  9138. }
  9139. z.EncWriteArrayElem()
  9140. if yyq2[71] {
  9141. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9142. } else {
  9143. r.EncodeNil()
  9144. }
  9145. z.EncWriteArrayElem()
  9146. if yyq2[72] {
  9147. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9148. } else {
  9149. r.EncodeNil()
  9150. }
  9151. z.EncWriteArrayElem()
  9152. if yyq2[73] {
  9153. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9154. } else {
  9155. r.EncodeNil()
  9156. }
  9157. if yyn77 {
  9158. z.EncWriteArrayElem()
  9159. r.EncodeNil()
  9160. } else {
  9161. z.EncWriteArrayElem()
  9162. if yyq2[74] {
  9163. x.Nteststruc.CodecEncodeSelf(e)
  9164. } else {
  9165. r.EncodeNil()
  9166. }
  9167. }
  9168. z.EncWriteArrayEnd()
  9169. } else {
  9170. var yynn2 int
  9171. for _, b := range yyq2 {
  9172. if b {
  9173. yynn2++
  9174. }
  9175. }
  9176. z.EncWriteMapStart(yynn2)
  9177. yynn2 = 0
  9178. if yyq2[0] {
  9179. z.EncWriteMapElemKey()
  9180. if z.IsJSONHandle() {
  9181. z.WriteStr("\"S\"")
  9182. } else {
  9183. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9184. }
  9185. z.EncWriteMapElemValue()
  9186. if z.EncBasicHandle().StringToRaw {
  9187. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9188. } else {
  9189. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9190. }
  9191. }
  9192. if yyq2[1] {
  9193. z.EncWriteMapElemKey()
  9194. if z.IsJSONHandle() {
  9195. z.WriteStr("\"I64\"")
  9196. } else {
  9197. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9198. }
  9199. z.EncWriteMapElemValue()
  9200. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9201. }
  9202. if yyq2[2] {
  9203. z.EncWriteMapElemKey()
  9204. if z.IsJSONHandle() {
  9205. z.WriteStr("\"I32\"")
  9206. } else {
  9207. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9208. }
  9209. z.EncWriteMapElemValue()
  9210. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9211. }
  9212. if yyq2[3] {
  9213. z.EncWriteMapElemKey()
  9214. if z.IsJSONHandle() {
  9215. z.WriteStr("\"I16\"")
  9216. } else {
  9217. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9218. }
  9219. z.EncWriteMapElemValue()
  9220. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9221. }
  9222. if yyq2[4] {
  9223. z.EncWriteMapElemKey()
  9224. if z.IsJSONHandle() {
  9225. z.WriteStr("\"I8\"")
  9226. } else {
  9227. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9228. }
  9229. z.EncWriteMapElemValue()
  9230. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9231. }
  9232. if yyq2[5] {
  9233. z.EncWriteMapElemKey()
  9234. if z.IsJSONHandle() {
  9235. z.WriteStr("\"I64n\"")
  9236. } else {
  9237. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9238. }
  9239. z.EncWriteMapElemValue()
  9240. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9241. }
  9242. if yyq2[6] {
  9243. z.EncWriteMapElemKey()
  9244. if z.IsJSONHandle() {
  9245. z.WriteStr("\"I32n\"")
  9246. } else {
  9247. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9248. }
  9249. z.EncWriteMapElemValue()
  9250. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9251. }
  9252. if yyq2[7] {
  9253. z.EncWriteMapElemKey()
  9254. if z.IsJSONHandle() {
  9255. z.WriteStr("\"I16n\"")
  9256. } else {
  9257. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9258. }
  9259. z.EncWriteMapElemValue()
  9260. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9261. }
  9262. if yyq2[8] {
  9263. z.EncWriteMapElemKey()
  9264. if z.IsJSONHandle() {
  9265. z.WriteStr("\"I8n\"")
  9266. } else {
  9267. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9268. }
  9269. z.EncWriteMapElemValue()
  9270. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9271. }
  9272. if yyq2[9] {
  9273. z.EncWriteMapElemKey()
  9274. if z.IsJSONHandle() {
  9275. z.WriteStr("\"Ui64\"")
  9276. } else {
  9277. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9278. }
  9279. z.EncWriteMapElemValue()
  9280. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9281. }
  9282. if yyq2[10] {
  9283. z.EncWriteMapElemKey()
  9284. if z.IsJSONHandle() {
  9285. z.WriteStr("\"Ui32\"")
  9286. } else {
  9287. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9288. }
  9289. z.EncWriteMapElemValue()
  9290. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9291. }
  9292. if yyq2[11] {
  9293. z.EncWriteMapElemKey()
  9294. if z.IsJSONHandle() {
  9295. z.WriteStr("\"Ui16\"")
  9296. } else {
  9297. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9298. }
  9299. z.EncWriteMapElemValue()
  9300. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9301. }
  9302. if yyq2[12] {
  9303. z.EncWriteMapElemKey()
  9304. if z.IsJSONHandle() {
  9305. z.WriteStr("\"Ui8\"")
  9306. } else {
  9307. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9308. }
  9309. z.EncWriteMapElemValue()
  9310. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9311. }
  9312. if yyq2[13] {
  9313. z.EncWriteMapElemKey()
  9314. if z.IsJSONHandle() {
  9315. z.WriteStr("\"F64\"")
  9316. } else {
  9317. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  9318. }
  9319. z.EncWriteMapElemValue()
  9320. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9321. }
  9322. if yyq2[14] {
  9323. z.EncWriteMapElemKey()
  9324. if z.IsJSONHandle() {
  9325. z.WriteStr("\"F32\"")
  9326. } else {
  9327. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  9328. }
  9329. z.EncWriteMapElemValue()
  9330. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9331. }
  9332. if yyq2[15] {
  9333. z.EncWriteMapElemKey()
  9334. if z.IsJSONHandle() {
  9335. z.WriteStr("\"B\"")
  9336. } else {
  9337. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9338. }
  9339. z.EncWriteMapElemValue()
  9340. r.EncodeBool(bool(x.TestStrucCommon.B))
  9341. }
  9342. if yyq2[16] {
  9343. z.EncWriteMapElemKey()
  9344. if z.IsJSONHandle() {
  9345. z.WriteStr("\"By\"")
  9346. } else {
  9347. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  9348. }
  9349. z.EncWriteMapElemValue()
  9350. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9351. }
  9352. if yyq2[17] {
  9353. z.EncWriteMapElemKey()
  9354. if z.IsJSONHandle() {
  9355. z.WriteStr("\"Sslice\"")
  9356. } else {
  9357. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  9358. }
  9359. z.EncWriteMapElemValue()
  9360. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9361. }
  9362. if yyq2[18] {
  9363. z.EncWriteMapElemKey()
  9364. if z.IsJSONHandle() {
  9365. z.WriteStr("\"I64slice\"")
  9366. } else {
  9367. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  9368. }
  9369. z.EncWriteMapElemValue()
  9370. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9371. }
  9372. if yyq2[19] {
  9373. z.EncWriteMapElemKey()
  9374. if z.IsJSONHandle() {
  9375. z.WriteStr("\"I16slice\"")
  9376. } else {
  9377. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  9378. }
  9379. z.EncWriteMapElemValue()
  9380. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9381. }
  9382. if yyq2[20] {
  9383. z.EncWriteMapElemKey()
  9384. if z.IsJSONHandle() {
  9385. z.WriteStr("\"Ui64slice\"")
  9386. } else {
  9387. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  9388. }
  9389. z.EncWriteMapElemValue()
  9390. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9391. }
  9392. if yyq2[21] {
  9393. z.EncWriteMapElemKey()
  9394. if z.IsJSONHandle() {
  9395. z.WriteStr("\"Ui8slice\"")
  9396. } else {
  9397. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  9398. }
  9399. z.EncWriteMapElemValue()
  9400. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9401. }
  9402. if yyq2[22] {
  9403. z.EncWriteMapElemKey()
  9404. if z.IsJSONHandle() {
  9405. z.WriteStr("\"Bslice\"")
  9406. } else {
  9407. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  9408. }
  9409. z.EncWriteMapElemValue()
  9410. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9411. }
  9412. if yyq2[23] {
  9413. z.EncWriteMapElemKey()
  9414. if z.IsJSONHandle() {
  9415. z.WriteStr("\"Byslice\"")
  9416. } else {
  9417. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  9418. }
  9419. z.EncWriteMapElemValue()
  9420. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9421. }
  9422. if yyq2[24] {
  9423. z.EncWriteMapElemKey()
  9424. if z.IsJSONHandle() {
  9425. z.WriteStr("\"BytesSlice\"")
  9426. } else {
  9427. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  9428. }
  9429. z.EncWriteMapElemValue()
  9430. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9431. }
  9432. if yyq2[25] {
  9433. z.EncWriteMapElemKey()
  9434. if z.IsJSONHandle() {
  9435. z.WriteStr("\"Iptrslice\"")
  9436. } else {
  9437. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  9438. }
  9439. z.EncWriteMapElemValue()
  9440. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9441. }
  9442. if yyq2[26] {
  9443. z.EncWriteMapElemKey()
  9444. if z.IsJSONHandle() {
  9445. z.WriteStr("\"WrapSliceInt64\"")
  9446. } else {
  9447. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  9448. }
  9449. z.EncWriteMapElemValue()
  9450. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9451. }
  9452. if yyq2[27] {
  9453. z.EncWriteMapElemKey()
  9454. if z.IsJSONHandle() {
  9455. z.WriteStr("\"WrapSliceString\"")
  9456. } else {
  9457. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  9458. }
  9459. z.EncWriteMapElemValue()
  9460. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9461. }
  9462. if yyq2[28] {
  9463. z.EncWriteMapElemKey()
  9464. if z.IsJSONHandle() {
  9465. z.WriteStr("\"Msi64\"")
  9466. } else {
  9467. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  9468. }
  9469. z.EncWriteMapElemValue()
  9470. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9471. }
  9472. if yyq2[29] {
  9473. z.EncWriteMapElemKey()
  9474. if z.IsJSONHandle() {
  9475. z.WriteStr("\"Msbytes\"")
  9476. } else {
  9477. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  9478. }
  9479. z.EncWriteMapElemValue()
  9480. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9481. }
  9482. if yyq2[30] {
  9483. z.EncWriteMapElemKey()
  9484. if z.IsJSONHandle() {
  9485. z.WriteStr("\"Simplef\"")
  9486. } else {
  9487. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  9488. }
  9489. z.EncWriteMapElemValue()
  9490. yy190 := &x.TestStrucCommon.Simplef
  9491. yy190.CodecEncodeSelf(e)
  9492. }
  9493. if yyq2[31] {
  9494. z.EncWriteMapElemKey()
  9495. if z.IsJSONHandle() {
  9496. z.WriteStr("\"SstrUi64T\"")
  9497. } else {
  9498. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  9499. }
  9500. z.EncWriteMapElemValue()
  9501. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9502. }
  9503. if yyq2[32] {
  9504. z.EncWriteMapElemKey()
  9505. if z.IsJSONHandle() {
  9506. z.WriteStr("\"AS\"")
  9507. } else {
  9508. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  9509. }
  9510. z.EncWriteMapElemValue()
  9511. if z.EncBasicHandle().StringToRaw {
  9512. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9513. } else {
  9514. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9515. }
  9516. }
  9517. if yyq2[33] {
  9518. z.EncWriteMapElemKey()
  9519. if z.IsJSONHandle() {
  9520. z.WriteStr("\"AI64\"")
  9521. } else {
  9522. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  9523. }
  9524. z.EncWriteMapElemValue()
  9525. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9526. }
  9527. if yyq2[34] {
  9528. z.EncWriteMapElemKey()
  9529. if z.IsJSONHandle() {
  9530. z.WriteStr("\"AI16\"")
  9531. } else {
  9532. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  9533. }
  9534. z.EncWriteMapElemValue()
  9535. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9536. }
  9537. if yyq2[35] {
  9538. z.EncWriteMapElemKey()
  9539. if z.IsJSONHandle() {
  9540. z.WriteStr("\"AUi64\"")
  9541. } else {
  9542. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  9543. }
  9544. z.EncWriteMapElemValue()
  9545. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9546. }
  9547. if yyq2[36] {
  9548. z.EncWriteMapElemKey()
  9549. if z.IsJSONHandle() {
  9550. z.WriteStr("\"ASslice\"")
  9551. } else {
  9552. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  9553. }
  9554. z.EncWriteMapElemValue()
  9555. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9556. }
  9557. if yyq2[37] {
  9558. z.EncWriteMapElemKey()
  9559. if z.IsJSONHandle() {
  9560. z.WriteStr("\"AI64slice\"")
  9561. } else {
  9562. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  9563. }
  9564. z.EncWriteMapElemValue()
  9565. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9566. }
  9567. if yyq2[38] {
  9568. z.EncWriteMapElemKey()
  9569. if z.IsJSONHandle() {
  9570. z.WriteStr("\"AUi64slice\"")
  9571. } else {
  9572. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  9573. }
  9574. z.EncWriteMapElemValue()
  9575. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9576. }
  9577. if yyq2[39] {
  9578. z.EncWriteMapElemKey()
  9579. if z.IsJSONHandle() {
  9580. z.WriteStr("\"AF64slice\"")
  9581. } else {
  9582. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  9583. }
  9584. z.EncWriteMapElemValue()
  9585. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9586. }
  9587. if yyq2[40] {
  9588. z.EncWriteMapElemKey()
  9589. if z.IsJSONHandle() {
  9590. z.WriteStr("\"AF32slice\"")
  9591. } else {
  9592. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  9593. }
  9594. z.EncWriteMapElemValue()
  9595. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9596. }
  9597. if yyq2[41] {
  9598. z.EncWriteMapElemKey()
  9599. if z.IsJSONHandle() {
  9600. z.WriteStr("\"AMSU16\"")
  9601. } else {
  9602. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  9603. }
  9604. z.EncWriteMapElemValue()
  9605. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9606. }
  9607. if yyq2[42] {
  9608. z.EncWriteMapElemKey()
  9609. if z.IsJSONHandle() {
  9610. z.WriteStr("\"AI64arr0\"")
  9611. } else {
  9612. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  9613. }
  9614. z.EncWriteMapElemValue()
  9615. yy203 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9616. h.encArray0int64((*[0]int64)(yy203), e)
  9617. }
  9618. if yyq2[43] {
  9619. z.EncWriteMapElemKey()
  9620. if z.IsJSONHandle() {
  9621. z.WriteStr("\"A164slice0\"")
  9622. } else {
  9623. r.EncodeStringEnc(codecSelferCcUTF819780, `A164slice0`)
  9624. }
  9625. z.EncWriteMapElemValue()
  9626. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.A164slice0, e)
  9627. }
  9628. if yyq2[44] {
  9629. z.EncWriteMapElemKey()
  9630. if z.IsJSONHandle() {
  9631. z.WriteStr("\"AUi64sliceN\"")
  9632. } else {
  9633. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  9634. }
  9635. z.EncWriteMapElemValue()
  9636. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9637. }
  9638. if yyq2[45] {
  9639. z.EncWriteMapElemKey()
  9640. if z.IsJSONHandle() {
  9641. z.WriteStr("\"AMSU16N\"")
  9642. } else {
  9643. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  9644. }
  9645. z.EncWriteMapElemValue()
  9646. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9647. }
  9648. if yyq2[46] {
  9649. z.EncWriteMapElemKey()
  9650. if z.IsJSONHandle() {
  9651. z.WriteStr("\"AMSU16E\"")
  9652. } else {
  9653. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  9654. }
  9655. z.EncWriteMapElemValue()
  9656. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9657. }
  9658. if yyq2[47] {
  9659. z.EncWriteMapElemKey()
  9660. if z.IsJSONHandle() {
  9661. z.WriteStr("\"NotAnon\"")
  9662. } else {
  9663. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  9664. }
  9665. z.EncWriteMapElemValue()
  9666. yy209 := &x.TestStrucCommon.NotAnon
  9667. yy209.CodecEncodeSelf(e)
  9668. }
  9669. if yyq2[48] {
  9670. z.EncWriteMapElemKey()
  9671. if z.IsJSONHandle() {
  9672. z.WriteStr("\"Nmap\"")
  9673. } else {
  9674. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  9675. }
  9676. z.EncWriteMapElemValue()
  9677. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9678. }
  9679. if yyq2[49] {
  9680. z.EncWriteMapElemKey()
  9681. if z.IsJSONHandle() {
  9682. z.WriteStr("\"Nslice\"")
  9683. } else {
  9684. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  9685. }
  9686. z.EncWriteMapElemValue()
  9687. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9688. }
  9689. if yyq2[50] {
  9690. z.EncWriteMapElemKey()
  9691. if z.IsJSONHandle() {
  9692. z.WriteStr("\"Nint64\"")
  9693. } else {
  9694. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  9695. }
  9696. z.EncWriteMapElemValue()
  9697. if yyn53 {
  9698. r.EncodeNil()
  9699. } else {
  9700. yy213 := *x.TestStrucCommon.Nint64
  9701. r.EncodeInt(int64(yy213))
  9702. }
  9703. }
  9704. if yyq2[51] {
  9705. z.EncWriteMapElemKey()
  9706. if z.IsJSONHandle() {
  9707. z.WriteStr("\"Chstr\"")
  9708. } else {
  9709. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  9710. }
  9711. z.EncWriteMapElemValue()
  9712. h.encChanstring((chan string)(x.Chstr), e)
  9713. }
  9714. if yyq2[52] {
  9715. z.EncWriteMapElemKey()
  9716. if z.IsJSONHandle() {
  9717. z.WriteStr("\"Mis\"")
  9718. } else {
  9719. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  9720. }
  9721. z.EncWriteMapElemValue()
  9722. z.F.EncMapIntStringV(x.Mis, e)
  9723. }
  9724. if yyq2[53] {
  9725. z.EncWriteMapElemKey()
  9726. if z.IsJSONHandle() {
  9727. z.WriteStr("\"Mbu64\"")
  9728. } else {
  9729. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  9730. }
  9731. z.EncWriteMapElemValue()
  9732. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9733. }
  9734. if yyq2[54] {
  9735. z.EncWriteMapElemKey()
  9736. if z.IsJSONHandle() {
  9737. z.WriteStr("\"Miwu64s\"")
  9738. } else {
  9739. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  9740. }
  9741. z.EncWriteMapElemValue()
  9742. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  9743. }
  9744. if yyq2[55] {
  9745. z.EncWriteMapElemKey()
  9746. if z.IsJSONHandle() {
  9747. z.WriteStr("\"Mfwss\"")
  9748. } else {
  9749. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  9750. }
  9751. z.EncWriteMapElemValue()
  9752. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  9753. }
  9754. if yyq2[56] {
  9755. z.EncWriteMapElemKey()
  9756. if z.IsJSONHandle() {
  9757. z.WriteStr("\"Mf32wss\"")
  9758. } else {
  9759. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  9760. }
  9761. z.EncWriteMapElemValue()
  9762. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9763. }
  9764. if yyq2[57] {
  9765. z.EncWriteMapElemKey()
  9766. if z.IsJSONHandle() {
  9767. z.WriteStr("\"Mui2wss\"")
  9768. } else {
  9769. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  9770. }
  9771. z.EncWriteMapElemValue()
  9772. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9773. }
  9774. if yyq2[58] {
  9775. z.EncWriteMapElemKey()
  9776. if z.IsJSONHandle() {
  9777. z.WriteStr("\"Msu2wss\"")
  9778. } else {
  9779. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  9780. }
  9781. z.EncWriteMapElemValue()
  9782. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9783. }
  9784. if yyq2[59] {
  9785. z.EncWriteMapElemKey()
  9786. if z.IsJSONHandle() {
  9787. z.WriteStr("\"Ci64\"")
  9788. } else {
  9789. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  9790. }
  9791. z.EncWriteMapElemValue()
  9792. x.Ci64.CodecEncodeSelf(e)
  9793. }
  9794. if yyq2[60] {
  9795. z.EncWriteMapElemKey()
  9796. if z.IsJSONHandle() {
  9797. z.WriteStr("\"Swrapbytes\"")
  9798. } else {
  9799. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  9800. }
  9801. z.EncWriteMapElemValue()
  9802. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9803. }
  9804. if yyq2[61] {
  9805. z.EncWriteMapElemKey()
  9806. if z.IsJSONHandle() {
  9807. z.WriteStr("\"Swrapuint8\"")
  9808. } else {
  9809. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  9810. }
  9811. z.EncWriteMapElemValue()
  9812. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9813. }
  9814. if yyq2[62] {
  9815. z.EncWriteMapElemKey()
  9816. if z.IsJSONHandle() {
  9817. z.WriteStr("\"ArrStrUi64T\"")
  9818. } else {
  9819. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  9820. }
  9821. z.EncWriteMapElemValue()
  9822. yy226 := &x.ArrStrUi64T
  9823. h.encArray4stringUint64T((*[4]stringUint64T)(yy226), e)
  9824. }
  9825. if yyq2[63] {
  9826. z.EncWriteMapElemKey()
  9827. if z.IsJSONHandle() {
  9828. z.WriteStr("\"Ui64array\"")
  9829. } else {
  9830. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  9831. }
  9832. z.EncWriteMapElemValue()
  9833. yy228 := &x.Ui64array
  9834. h.encArray4uint64((*[4]uint64)(yy228), e)
  9835. }
  9836. if yyq2[64] {
  9837. z.EncWriteMapElemKey()
  9838. if z.IsJSONHandle() {
  9839. z.WriteStr("\"Ui64slicearray\"")
  9840. } else {
  9841. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  9842. }
  9843. z.EncWriteMapElemValue()
  9844. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9845. }
  9846. if yyq2[65] {
  9847. z.EncWriteMapElemKey()
  9848. if z.IsJSONHandle() {
  9849. z.WriteStr("\"SintfAarray\"")
  9850. } else {
  9851. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  9852. }
  9853. z.EncWriteMapElemValue()
  9854. z.F.EncSliceIntfV(x.SintfAarray, e)
  9855. }
  9856. if yyq2[66] {
  9857. z.EncWriteMapElemKey()
  9858. if z.IsJSONHandle() {
  9859. z.WriteStr("\"Islice\"")
  9860. } else {
  9861. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  9862. }
  9863. z.EncWriteMapElemValue()
  9864. if yyn69 {
  9865. r.EncodeNil()
  9866. } else {
  9867. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9868. }
  9869. }
  9870. if yyq2[67] {
  9871. z.EncWriteMapElemKey()
  9872. if z.IsJSONHandle() {
  9873. z.WriteStr("\"Ms\"")
  9874. } else {
  9875. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  9876. }
  9877. z.EncWriteMapElemValue()
  9878. if yyn70 {
  9879. r.EncodeNil()
  9880. } else {
  9881. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9882. }
  9883. }
  9884. if yyq2[68] {
  9885. z.EncWriteMapElemKey()
  9886. if z.IsJSONHandle() {
  9887. z.WriteStr("\"Nintf\"")
  9888. } else {
  9889. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  9890. }
  9891. z.EncWriteMapElemValue()
  9892. if yyn71 {
  9893. r.EncodeNil()
  9894. } else {
  9895. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9896. }
  9897. }
  9898. if yyq2[69] {
  9899. z.EncWriteMapElemKey()
  9900. if z.IsJSONHandle() {
  9901. z.WriteStr("\"T\"")
  9902. } else {
  9903. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  9904. }
  9905. z.EncWriteMapElemValue()
  9906. if yyn72 {
  9907. r.EncodeNil()
  9908. } else {
  9909. if !z.EncBasicHandle().TimeNotBuiltin {
  9910. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9911. } else if yyxt235 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt235 != nil {
  9912. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt235)
  9913. } else if z.EncBinary() {
  9914. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9915. } else if !z.EncBinary() && z.IsJSONHandle() {
  9916. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9917. } else {
  9918. z.EncFallback(x.AnonInTestStrucIntf.T)
  9919. }
  9920. }
  9921. }
  9922. if yyq2[70] {
  9923. z.EncWriteMapElemKey()
  9924. if z.IsJSONHandle() {
  9925. z.WriteStr("\"Tptr\"")
  9926. } else {
  9927. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  9928. }
  9929. z.EncWriteMapElemValue()
  9930. if yyn73 {
  9931. r.EncodeNil()
  9932. } else {
  9933. yy236 := *x.AnonInTestStrucIntf.Tptr
  9934. if !z.EncBasicHandle().TimeNotBuiltin {
  9935. r.EncodeTime(yy236)
  9936. } else if yyxt237 := z.Extension(z.I2Rtid(yy236)); yyxt237 != nil {
  9937. z.EncExtension(yy236, yyxt237)
  9938. } else if z.EncBinary() {
  9939. z.EncBinaryMarshal(yy236)
  9940. } else if !z.EncBinary() && z.IsJSONHandle() {
  9941. z.EncJSONMarshal(yy236)
  9942. } else {
  9943. z.EncFallback(yy236)
  9944. }
  9945. }
  9946. }
  9947. if yyq2[71] {
  9948. z.EncWriteMapElemKey()
  9949. if z.IsJSONHandle() {
  9950. z.WriteStr("\"Mtsptr\"")
  9951. } else {
  9952. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  9953. }
  9954. z.EncWriteMapElemValue()
  9955. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9956. }
  9957. if yyq2[72] {
  9958. z.EncWriteMapElemKey()
  9959. if z.IsJSONHandle() {
  9960. z.WriteStr("\"Mts\"")
  9961. } else {
  9962. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  9963. }
  9964. z.EncWriteMapElemValue()
  9965. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9966. }
  9967. if yyq2[73] {
  9968. z.EncWriteMapElemKey()
  9969. if z.IsJSONHandle() {
  9970. z.WriteStr("\"Its\"")
  9971. } else {
  9972. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  9973. }
  9974. z.EncWriteMapElemValue()
  9975. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9976. }
  9977. if yyq2[74] {
  9978. z.EncWriteMapElemKey()
  9979. if z.IsJSONHandle() {
  9980. z.WriteStr("\"Nteststruc\"")
  9981. } else {
  9982. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  9983. }
  9984. z.EncWriteMapElemValue()
  9985. if yyn77 {
  9986. r.EncodeNil()
  9987. } else {
  9988. x.Nteststruc.CodecEncodeSelf(e)
  9989. }
  9990. }
  9991. z.EncWriteMapEnd()
  9992. }
  9993. }
  9994. }
  9995. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  9996. var h codecSelfer19780
  9997. z, r := GenHelperDecoder(d)
  9998. _, _, _ = h, z, r
  9999. yyct2 := r.ContainerType()
  10000. if yyct2 == codecSelferValueTypeMap19780 {
  10001. yyl2 := z.DecReadMapStart()
  10002. if yyl2 == 0 {
  10003. z.DecReadMapEnd()
  10004. } else {
  10005. x.codecDecodeSelfFromMap(yyl2, d)
  10006. }
  10007. } else if yyct2 == codecSelferValueTypeArray19780 {
  10008. yyl2 := z.DecReadArrayStart()
  10009. if yyl2 == 0 {
  10010. z.DecReadArrayEnd()
  10011. } else {
  10012. x.codecDecodeSelfFromArray(yyl2, d)
  10013. }
  10014. } else {
  10015. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10016. }
  10017. }
  10018. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  10019. var h codecSelfer19780
  10020. z, r := GenHelperDecoder(d)
  10021. _, _, _ = h, z, r
  10022. var yyhl3 bool = l >= 0
  10023. for yyj3 := 0; ; yyj3++ {
  10024. if yyhl3 {
  10025. if yyj3 >= l {
  10026. break
  10027. }
  10028. } else {
  10029. if r.CheckBreak() {
  10030. break
  10031. }
  10032. }
  10033. z.DecReadMapElemKey()
  10034. yys3 := z.StringView(r.DecodeStringAsBytes())
  10035. z.DecReadMapElemValue()
  10036. switch yys3 {
  10037. case "S":
  10038. if r.TryDecodeAsNil() {
  10039. x.TestStrucCommon.S = ""
  10040. } else {
  10041. x.TestStrucCommon.S = (string)(r.DecodeString())
  10042. }
  10043. case "I64":
  10044. if r.TryDecodeAsNil() {
  10045. x.TestStrucCommon.I64 = 0
  10046. } else {
  10047. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10048. }
  10049. case "I32":
  10050. if r.TryDecodeAsNil() {
  10051. x.TestStrucCommon.I32 = 0
  10052. } else {
  10053. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10054. }
  10055. case "I16":
  10056. if r.TryDecodeAsNil() {
  10057. x.TestStrucCommon.I16 = 0
  10058. } else {
  10059. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10060. }
  10061. case "I8":
  10062. if r.TryDecodeAsNil() {
  10063. x.TestStrucCommon.I8 = 0
  10064. } else {
  10065. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10066. }
  10067. case "I64n":
  10068. if r.TryDecodeAsNil() {
  10069. x.TestStrucCommon.I64n = 0
  10070. } else {
  10071. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10072. }
  10073. case "I32n":
  10074. if r.TryDecodeAsNil() {
  10075. x.TestStrucCommon.I32n = 0
  10076. } else {
  10077. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10078. }
  10079. case "I16n":
  10080. if r.TryDecodeAsNil() {
  10081. x.TestStrucCommon.I16n = 0
  10082. } else {
  10083. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10084. }
  10085. case "I8n":
  10086. if r.TryDecodeAsNil() {
  10087. x.TestStrucCommon.I8n = 0
  10088. } else {
  10089. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10090. }
  10091. case "Ui64":
  10092. if r.TryDecodeAsNil() {
  10093. x.TestStrucCommon.Ui64 = 0
  10094. } else {
  10095. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10096. }
  10097. case "Ui32":
  10098. if r.TryDecodeAsNil() {
  10099. x.TestStrucCommon.Ui32 = 0
  10100. } else {
  10101. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10102. }
  10103. case "Ui16":
  10104. if r.TryDecodeAsNil() {
  10105. x.TestStrucCommon.Ui16 = 0
  10106. } else {
  10107. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10108. }
  10109. case "Ui8":
  10110. if r.TryDecodeAsNil() {
  10111. x.TestStrucCommon.Ui8 = 0
  10112. } else {
  10113. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10114. }
  10115. case "F64":
  10116. if r.TryDecodeAsNil() {
  10117. x.TestStrucCommon.F64 = 0
  10118. } else {
  10119. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10120. }
  10121. case "F32":
  10122. if r.TryDecodeAsNil() {
  10123. x.TestStrucCommon.F32 = 0
  10124. } else {
  10125. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10126. }
  10127. case "B":
  10128. if r.TryDecodeAsNil() {
  10129. x.TestStrucCommon.B = false
  10130. } else {
  10131. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10132. }
  10133. case "By":
  10134. if r.TryDecodeAsNil() {
  10135. x.TestStrucCommon.By = 0
  10136. } else {
  10137. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10138. }
  10139. case "Sslice":
  10140. if r.TryDecodeAsNil() {
  10141. x.TestStrucCommon.Sslice = nil
  10142. } else {
  10143. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10144. }
  10145. case "I64slice":
  10146. if r.TryDecodeAsNil() {
  10147. x.TestStrucCommon.I64slice = nil
  10148. } else {
  10149. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10150. }
  10151. case "I16slice":
  10152. if r.TryDecodeAsNil() {
  10153. x.TestStrucCommon.I16slice = nil
  10154. } else {
  10155. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10156. }
  10157. case "Ui64slice":
  10158. if r.TryDecodeAsNil() {
  10159. x.TestStrucCommon.Ui64slice = nil
  10160. } else {
  10161. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10162. }
  10163. case "Ui8slice":
  10164. if r.TryDecodeAsNil() {
  10165. x.TestStrucCommon.Ui8slice = nil
  10166. } else {
  10167. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10168. }
  10169. case "Bslice":
  10170. if r.TryDecodeAsNil() {
  10171. x.TestStrucCommon.Bslice = nil
  10172. } else {
  10173. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10174. }
  10175. case "Byslice":
  10176. if r.TryDecodeAsNil() {
  10177. x.TestStrucCommon.Byslice = nil
  10178. } else {
  10179. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10180. }
  10181. case "BytesSlice":
  10182. if r.TryDecodeAsNil() {
  10183. x.TestStrucCommon.BytesSlice = nil
  10184. } else {
  10185. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10186. }
  10187. case "Iptrslice":
  10188. if r.TryDecodeAsNil() {
  10189. x.TestStrucCommon.Iptrslice = nil
  10190. } else {
  10191. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10192. }
  10193. case "WrapSliceInt64":
  10194. if r.TryDecodeAsNil() {
  10195. x.TestStrucCommon.WrapSliceInt64 = nil
  10196. } else {
  10197. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10198. }
  10199. case "WrapSliceString":
  10200. if r.TryDecodeAsNil() {
  10201. x.TestStrucCommon.WrapSliceString = nil
  10202. } else {
  10203. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  10204. }
  10205. case "Msi64":
  10206. if r.TryDecodeAsNil() {
  10207. x.TestStrucCommon.Msi64 = nil
  10208. } else {
  10209. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  10210. }
  10211. case "Msbytes":
  10212. if r.TryDecodeAsNil() {
  10213. x.TestStrucCommon.Msbytes = nil
  10214. } else {
  10215. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  10216. }
  10217. case "Simplef":
  10218. if r.TryDecodeAsNil() {
  10219. x.TestStrucCommon.Simplef = testSimpleFields{}
  10220. } else {
  10221. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  10222. }
  10223. case "SstrUi64T":
  10224. if r.TryDecodeAsNil() {
  10225. x.TestStrucCommon.SstrUi64T = nil
  10226. } else {
  10227. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  10228. }
  10229. case "AS":
  10230. if r.TryDecodeAsNil() {
  10231. x.TestStrucCommon.AnonInTestStruc.AS = ""
  10232. } else {
  10233. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  10234. }
  10235. case "AI64":
  10236. if r.TryDecodeAsNil() {
  10237. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  10238. } else {
  10239. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  10240. }
  10241. case "AI16":
  10242. if r.TryDecodeAsNil() {
  10243. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  10244. } else {
  10245. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10246. }
  10247. case "AUi64":
  10248. if r.TryDecodeAsNil() {
  10249. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  10250. } else {
  10251. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  10252. }
  10253. case "ASslice":
  10254. if r.TryDecodeAsNil() {
  10255. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  10256. } else {
  10257. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10258. }
  10259. case "AI64slice":
  10260. if r.TryDecodeAsNil() {
  10261. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  10262. } else {
  10263. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10264. }
  10265. case "AUi64slice":
  10266. if r.TryDecodeAsNil() {
  10267. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  10268. } else {
  10269. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10270. }
  10271. case "AF64slice":
  10272. if r.TryDecodeAsNil() {
  10273. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  10274. } else {
  10275. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10276. }
  10277. case "AF32slice":
  10278. if r.TryDecodeAsNil() {
  10279. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  10280. } else {
  10281. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10282. }
  10283. case "AMSU16":
  10284. if r.TryDecodeAsNil() {
  10285. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  10286. } else {
  10287. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10288. }
  10289. case "AI64arr0":
  10290. if r.TryDecodeAsNil() {
  10291. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  10292. } else {
  10293. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10294. }
  10295. case "A164slice0":
  10296. if r.TryDecodeAsNil() {
  10297. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  10298. } else {
  10299. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  10300. }
  10301. case "AUi64sliceN":
  10302. if r.TryDecodeAsNil() {
  10303. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  10304. } else {
  10305. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10306. }
  10307. case "AMSU16N":
  10308. if r.TryDecodeAsNil() {
  10309. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  10310. } else {
  10311. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10312. }
  10313. case "AMSU16E":
  10314. if r.TryDecodeAsNil() {
  10315. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  10316. } else {
  10317. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10318. }
  10319. case "NotAnon":
  10320. if r.TryDecodeAsNil() {
  10321. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  10322. } else {
  10323. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10324. }
  10325. case "Nmap":
  10326. if r.TryDecodeAsNil() {
  10327. x.TestStrucCommon.Nmap = nil
  10328. } else {
  10329. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10330. }
  10331. case "Nslice":
  10332. if r.TryDecodeAsNil() {
  10333. x.TestStrucCommon.Nslice = nil
  10334. } else {
  10335. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10336. }
  10337. case "Nint64":
  10338. if r.TryDecodeAsNil() {
  10339. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10340. x.TestStrucCommon.Nint64 = nil
  10341. }
  10342. } else {
  10343. if x.TestStrucCommon.Nint64 == nil {
  10344. x.TestStrucCommon.Nint64 = new(int64)
  10345. }
  10346. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10347. }
  10348. case "Chstr":
  10349. if r.TryDecodeAsNil() {
  10350. x.Chstr = nil
  10351. } else {
  10352. h.decChanstring((*chan string)(&x.Chstr), d)
  10353. }
  10354. case "Mis":
  10355. if r.TryDecodeAsNil() {
  10356. x.Mis = nil
  10357. } else {
  10358. z.F.DecMapIntStringX(&x.Mis, d)
  10359. }
  10360. case "Mbu64":
  10361. if r.TryDecodeAsNil() {
  10362. x.Mbu64 = nil
  10363. } else {
  10364. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10365. }
  10366. case "Miwu64s":
  10367. if r.TryDecodeAsNil() {
  10368. x.Miwu64s = nil
  10369. } else {
  10370. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10371. }
  10372. case "Mfwss":
  10373. if r.TryDecodeAsNil() {
  10374. x.Mfwss = nil
  10375. } else {
  10376. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10377. }
  10378. case "Mf32wss":
  10379. if r.TryDecodeAsNil() {
  10380. x.Mf32wss = nil
  10381. } else {
  10382. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10383. }
  10384. case "Mui2wss":
  10385. if r.TryDecodeAsNil() {
  10386. x.Mui2wss = nil
  10387. } else {
  10388. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10389. }
  10390. case "Msu2wss":
  10391. if r.TryDecodeAsNil() {
  10392. x.Msu2wss = nil
  10393. } else {
  10394. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10395. }
  10396. case "Ci64":
  10397. if r.TryDecodeAsNil() {
  10398. x.Ci64 = 0
  10399. } else {
  10400. x.Ci64.CodecDecodeSelf(d)
  10401. }
  10402. case "Swrapbytes":
  10403. if r.TryDecodeAsNil() {
  10404. x.Swrapbytes = nil
  10405. } else {
  10406. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10407. }
  10408. case "Swrapuint8":
  10409. if r.TryDecodeAsNil() {
  10410. x.Swrapuint8 = nil
  10411. } else {
  10412. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10413. }
  10414. case "ArrStrUi64T":
  10415. if r.TryDecodeAsNil() {
  10416. x.ArrStrUi64T = [4]stringUint64T{}
  10417. } else {
  10418. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10419. }
  10420. case "Ui64array":
  10421. if r.TryDecodeAsNil() {
  10422. x.Ui64array = [4]uint64{}
  10423. } else {
  10424. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10425. }
  10426. case "Ui64slicearray":
  10427. if r.TryDecodeAsNil() {
  10428. x.Ui64slicearray = nil
  10429. } else {
  10430. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10431. }
  10432. case "SintfAarray":
  10433. if r.TryDecodeAsNil() {
  10434. x.SintfAarray = nil
  10435. } else {
  10436. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10437. }
  10438. case "Islice":
  10439. if r.TryDecodeAsNil() {
  10440. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10441. x.AnonInTestStrucIntf.Islice = nil
  10442. }
  10443. } else {
  10444. if x.AnonInTestStrucIntf == nil {
  10445. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10446. }
  10447. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  10448. }
  10449. case "Ms":
  10450. if r.TryDecodeAsNil() {
  10451. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10452. x.AnonInTestStrucIntf.Ms = nil
  10453. }
  10454. } else {
  10455. if x.AnonInTestStrucIntf == nil {
  10456. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10457. }
  10458. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  10459. }
  10460. case "Nintf":
  10461. if r.TryDecodeAsNil() {
  10462. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10463. x.AnonInTestStrucIntf.Nintf = nil
  10464. }
  10465. } else {
  10466. if x.AnonInTestStrucIntf == nil {
  10467. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10468. }
  10469. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  10470. }
  10471. case "T":
  10472. if r.TryDecodeAsNil() {
  10473. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10474. x.AnonInTestStrucIntf.T = time.Time{}
  10475. }
  10476. } else {
  10477. if x.AnonInTestStrucIntf == nil {
  10478. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10479. }
  10480. if !z.DecBasicHandle().TimeNotBuiltin {
  10481. x.AnonInTestStrucIntf.T = r.DecodeTime()
  10482. } else if yyxt117 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt117 != nil {
  10483. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt117)
  10484. } else if z.DecBinary() {
  10485. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  10486. } else if !z.DecBinary() && z.IsJSONHandle() {
  10487. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  10488. } else {
  10489. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  10490. }
  10491. }
  10492. case "Tptr":
  10493. if r.TryDecodeAsNil() {
  10494. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  10495. x.AnonInTestStrucIntf.Tptr = nil
  10496. }
  10497. } else {
  10498. if x.AnonInTestStrucIntf == nil {
  10499. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10500. }
  10501. if x.AnonInTestStrucIntf.Tptr == nil {
  10502. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  10503. }
  10504. if !z.DecBasicHandle().TimeNotBuiltin {
  10505. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  10506. } else if yyxt119 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt119 != nil {
  10507. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt119)
  10508. } else if z.DecBinary() {
  10509. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10510. } else if !z.DecBinary() && z.IsJSONHandle() {
  10511. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10512. } else {
  10513. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  10514. }
  10515. }
  10516. case "Mtsptr":
  10517. if r.TryDecodeAsNil() {
  10518. x.Mtsptr = nil
  10519. } else {
  10520. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  10521. }
  10522. case "Mts":
  10523. if r.TryDecodeAsNil() {
  10524. x.Mts = nil
  10525. } else {
  10526. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  10527. }
  10528. case "Its":
  10529. if r.TryDecodeAsNil() {
  10530. x.Its = nil
  10531. } else {
  10532. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  10533. }
  10534. case "Nteststruc":
  10535. if r.TryDecodeAsNil() {
  10536. if x.Nteststruc != nil { // remove the if-true
  10537. x.Nteststruc = nil
  10538. }
  10539. } else {
  10540. if x.Nteststruc == nil {
  10541. x.Nteststruc = new(TestStrucFlex)
  10542. }
  10543. x.Nteststruc.CodecDecodeSelf(d)
  10544. }
  10545. default:
  10546. z.DecStructFieldNotFound(-1, yys3)
  10547. } // end switch yys3
  10548. } // end for yyj3
  10549. z.DecReadMapEnd()
  10550. }
  10551. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  10552. var h codecSelfer19780
  10553. z, r := GenHelperDecoder(d)
  10554. _, _, _ = h, z, r
  10555. var yyj127 int
  10556. var yyb127 bool
  10557. var yyhl127 bool = l >= 0
  10558. yyj127++
  10559. if yyhl127 {
  10560. yyb127 = yyj127 > l
  10561. } else {
  10562. yyb127 = r.CheckBreak()
  10563. }
  10564. if yyb127 {
  10565. z.DecReadArrayEnd()
  10566. return
  10567. }
  10568. z.DecReadArrayElem()
  10569. if r.TryDecodeAsNil() {
  10570. x.TestStrucCommon.S = ""
  10571. } else {
  10572. x.TestStrucCommon.S = (string)(r.DecodeString())
  10573. }
  10574. yyj127++
  10575. if yyhl127 {
  10576. yyb127 = yyj127 > l
  10577. } else {
  10578. yyb127 = r.CheckBreak()
  10579. }
  10580. if yyb127 {
  10581. z.DecReadArrayEnd()
  10582. return
  10583. }
  10584. z.DecReadArrayElem()
  10585. if r.TryDecodeAsNil() {
  10586. x.TestStrucCommon.I64 = 0
  10587. } else {
  10588. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10589. }
  10590. yyj127++
  10591. if yyhl127 {
  10592. yyb127 = yyj127 > l
  10593. } else {
  10594. yyb127 = r.CheckBreak()
  10595. }
  10596. if yyb127 {
  10597. z.DecReadArrayEnd()
  10598. return
  10599. }
  10600. z.DecReadArrayElem()
  10601. if r.TryDecodeAsNil() {
  10602. x.TestStrucCommon.I32 = 0
  10603. } else {
  10604. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10605. }
  10606. yyj127++
  10607. if yyhl127 {
  10608. yyb127 = yyj127 > l
  10609. } else {
  10610. yyb127 = r.CheckBreak()
  10611. }
  10612. if yyb127 {
  10613. z.DecReadArrayEnd()
  10614. return
  10615. }
  10616. z.DecReadArrayElem()
  10617. if r.TryDecodeAsNil() {
  10618. x.TestStrucCommon.I16 = 0
  10619. } else {
  10620. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10621. }
  10622. yyj127++
  10623. if yyhl127 {
  10624. yyb127 = yyj127 > l
  10625. } else {
  10626. yyb127 = r.CheckBreak()
  10627. }
  10628. if yyb127 {
  10629. z.DecReadArrayEnd()
  10630. return
  10631. }
  10632. z.DecReadArrayElem()
  10633. if r.TryDecodeAsNil() {
  10634. x.TestStrucCommon.I8 = 0
  10635. } else {
  10636. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10637. }
  10638. yyj127++
  10639. if yyhl127 {
  10640. yyb127 = yyj127 > l
  10641. } else {
  10642. yyb127 = r.CheckBreak()
  10643. }
  10644. if yyb127 {
  10645. z.DecReadArrayEnd()
  10646. return
  10647. }
  10648. z.DecReadArrayElem()
  10649. if r.TryDecodeAsNil() {
  10650. x.TestStrucCommon.I64n = 0
  10651. } else {
  10652. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10653. }
  10654. yyj127++
  10655. if yyhl127 {
  10656. yyb127 = yyj127 > l
  10657. } else {
  10658. yyb127 = r.CheckBreak()
  10659. }
  10660. if yyb127 {
  10661. z.DecReadArrayEnd()
  10662. return
  10663. }
  10664. z.DecReadArrayElem()
  10665. if r.TryDecodeAsNil() {
  10666. x.TestStrucCommon.I32n = 0
  10667. } else {
  10668. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10669. }
  10670. yyj127++
  10671. if yyhl127 {
  10672. yyb127 = yyj127 > l
  10673. } else {
  10674. yyb127 = r.CheckBreak()
  10675. }
  10676. if yyb127 {
  10677. z.DecReadArrayEnd()
  10678. return
  10679. }
  10680. z.DecReadArrayElem()
  10681. if r.TryDecodeAsNil() {
  10682. x.TestStrucCommon.I16n = 0
  10683. } else {
  10684. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10685. }
  10686. yyj127++
  10687. if yyhl127 {
  10688. yyb127 = yyj127 > l
  10689. } else {
  10690. yyb127 = r.CheckBreak()
  10691. }
  10692. if yyb127 {
  10693. z.DecReadArrayEnd()
  10694. return
  10695. }
  10696. z.DecReadArrayElem()
  10697. if r.TryDecodeAsNil() {
  10698. x.TestStrucCommon.I8n = 0
  10699. } else {
  10700. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10701. }
  10702. yyj127++
  10703. if yyhl127 {
  10704. yyb127 = yyj127 > l
  10705. } else {
  10706. yyb127 = r.CheckBreak()
  10707. }
  10708. if yyb127 {
  10709. z.DecReadArrayEnd()
  10710. return
  10711. }
  10712. z.DecReadArrayElem()
  10713. if r.TryDecodeAsNil() {
  10714. x.TestStrucCommon.Ui64 = 0
  10715. } else {
  10716. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10717. }
  10718. yyj127++
  10719. if yyhl127 {
  10720. yyb127 = yyj127 > l
  10721. } else {
  10722. yyb127 = r.CheckBreak()
  10723. }
  10724. if yyb127 {
  10725. z.DecReadArrayEnd()
  10726. return
  10727. }
  10728. z.DecReadArrayElem()
  10729. if r.TryDecodeAsNil() {
  10730. x.TestStrucCommon.Ui32 = 0
  10731. } else {
  10732. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10733. }
  10734. yyj127++
  10735. if yyhl127 {
  10736. yyb127 = yyj127 > l
  10737. } else {
  10738. yyb127 = r.CheckBreak()
  10739. }
  10740. if yyb127 {
  10741. z.DecReadArrayEnd()
  10742. return
  10743. }
  10744. z.DecReadArrayElem()
  10745. if r.TryDecodeAsNil() {
  10746. x.TestStrucCommon.Ui16 = 0
  10747. } else {
  10748. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10749. }
  10750. yyj127++
  10751. if yyhl127 {
  10752. yyb127 = yyj127 > l
  10753. } else {
  10754. yyb127 = r.CheckBreak()
  10755. }
  10756. if yyb127 {
  10757. z.DecReadArrayEnd()
  10758. return
  10759. }
  10760. z.DecReadArrayElem()
  10761. if r.TryDecodeAsNil() {
  10762. x.TestStrucCommon.Ui8 = 0
  10763. } else {
  10764. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10765. }
  10766. yyj127++
  10767. if yyhl127 {
  10768. yyb127 = yyj127 > l
  10769. } else {
  10770. yyb127 = r.CheckBreak()
  10771. }
  10772. if yyb127 {
  10773. z.DecReadArrayEnd()
  10774. return
  10775. }
  10776. z.DecReadArrayElem()
  10777. if r.TryDecodeAsNil() {
  10778. x.TestStrucCommon.F64 = 0
  10779. } else {
  10780. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10781. }
  10782. yyj127++
  10783. if yyhl127 {
  10784. yyb127 = yyj127 > l
  10785. } else {
  10786. yyb127 = r.CheckBreak()
  10787. }
  10788. if yyb127 {
  10789. z.DecReadArrayEnd()
  10790. return
  10791. }
  10792. z.DecReadArrayElem()
  10793. if r.TryDecodeAsNil() {
  10794. x.TestStrucCommon.F32 = 0
  10795. } else {
  10796. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10797. }
  10798. yyj127++
  10799. if yyhl127 {
  10800. yyb127 = yyj127 > l
  10801. } else {
  10802. yyb127 = r.CheckBreak()
  10803. }
  10804. if yyb127 {
  10805. z.DecReadArrayEnd()
  10806. return
  10807. }
  10808. z.DecReadArrayElem()
  10809. if r.TryDecodeAsNil() {
  10810. x.TestStrucCommon.B = false
  10811. } else {
  10812. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10813. }
  10814. yyj127++
  10815. if yyhl127 {
  10816. yyb127 = yyj127 > l
  10817. } else {
  10818. yyb127 = r.CheckBreak()
  10819. }
  10820. if yyb127 {
  10821. z.DecReadArrayEnd()
  10822. return
  10823. }
  10824. z.DecReadArrayElem()
  10825. if r.TryDecodeAsNil() {
  10826. x.TestStrucCommon.By = 0
  10827. } else {
  10828. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10829. }
  10830. yyj127++
  10831. if yyhl127 {
  10832. yyb127 = yyj127 > l
  10833. } else {
  10834. yyb127 = r.CheckBreak()
  10835. }
  10836. if yyb127 {
  10837. z.DecReadArrayEnd()
  10838. return
  10839. }
  10840. z.DecReadArrayElem()
  10841. if r.TryDecodeAsNil() {
  10842. x.TestStrucCommon.Sslice = nil
  10843. } else {
  10844. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10845. }
  10846. yyj127++
  10847. if yyhl127 {
  10848. yyb127 = yyj127 > l
  10849. } else {
  10850. yyb127 = r.CheckBreak()
  10851. }
  10852. if yyb127 {
  10853. z.DecReadArrayEnd()
  10854. return
  10855. }
  10856. z.DecReadArrayElem()
  10857. if r.TryDecodeAsNil() {
  10858. x.TestStrucCommon.I64slice = nil
  10859. } else {
  10860. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10861. }
  10862. yyj127++
  10863. if yyhl127 {
  10864. yyb127 = yyj127 > l
  10865. } else {
  10866. yyb127 = r.CheckBreak()
  10867. }
  10868. if yyb127 {
  10869. z.DecReadArrayEnd()
  10870. return
  10871. }
  10872. z.DecReadArrayElem()
  10873. if r.TryDecodeAsNil() {
  10874. x.TestStrucCommon.I16slice = nil
  10875. } else {
  10876. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10877. }
  10878. yyj127++
  10879. if yyhl127 {
  10880. yyb127 = yyj127 > l
  10881. } else {
  10882. yyb127 = r.CheckBreak()
  10883. }
  10884. if yyb127 {
  10885. z.DecReadArrayEnd()
  10886. return
  10887. }
  10888. z.DecReadArrayElem()
  10889. if r.TryDecodeAsNil() {
  10890. x.TestStrucCommon.Ui64slice = nil
  10891. } else {
  10892. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10893. }
  10894. yyj127++
  10895. if yyhl127 {
  10896. yyb127 = yyj127 > l
  10897. } else {
  10898. yyb127 = r.CheckBreak()
  10899. }
  10900. if yyb127 {
  10901. z.DecReadArrayEnd()
  10902. return
  10903. }
  10904. z.DecReadArrayElem()
  10905. if r.TryDecodeAsNil() {
  10906. x.TestStrucCommon.Ui8slice = nil
  10907. } else {
  10908. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10909. }
  10910. yyj127++
  10911. if yyhl127 {
  10912. yyb127 = yyj127 > l
  10913. } else {
  10914. yyb127 = r.CheckBreak()
  10915. }
  10916. if yyb127 {
  10917. z.DecReadArrayEnd()
  10918. return
  10919. }
  10920. z.DecReadArrayElem()
  10921. if r.TryDecodeAsNil() {
  10922. x.TestStrucCommon.Bslice = nil
  10923. } else {
  10924. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10925. }
  10926. yyj127++
  10927. if yyhl127 {
  10928. yyb127 = yyj127 > l
  10929. } else {
  10930. yyb127 = r.CheckBreak()
  10931. }
  10932. if yyb127 {
  10933. z.DecReadArrayEnd()
  10934. return
  10935. }
  10936. z.DecReadArrayElem()
  10937. if r.TryDecodeAsNil() {
  10938. x.TestStrucCommon.Byslice = nil
  10939. } else {
  10940. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10941. }
  10942. yyj127++
  10943. if yyhl127 {
  10944. yyb127 = yyj127 > l
  10945. } else {
  10946. yyb127 = r.CheckBreak()
  10947. }
  10948. if yyb127 {
  10949. z.DecReadArrayEnd()
  10950. return
  10951. }
  10952. z.DecReadArrayElem()
  10953. if r.TryDecodeAsNil() {
  10954. x.TestStrucCommon.BytesSlice = nil
  10955. } else {
  10956. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10957. }
  10958. yyj127++
  10959. if yyhl127 {
  10960. yyb127 = yyj127 > l
  10961. } else {
  10962. yyb127 = r.CheckBreak()
  10963. }
  10964. if yyb127 {
  10965. z.DecReadArrayEnd()
  10966. return
  10967. }
  10968. z.DecReadArrayElem()
  10969. if r.TryDecodeAsNil() {
  10970. x.TestStrucCommon.Iptrslice = nil
  10971. } else {
  10972. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10973. }
  10974. yyj127++
  10975. if yyhl127 {
  10976. yyb127 = yyj127 > l
  10977. } else {
  10978. yyb127 = r.CheckBreak()
  10979. }
  10980. if yyb127 {
  10981. z.DecReadArrayEnd()
  10982. return
  10983. }
  10984. z.DecReadArrayElem()
  10985. if r.TryDecodeAsNil() {
  10986. x.TestStrucCommon.WrapSliceInt64 = nil
  10987. } else {
  10988. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10989. }
  10990. yyj127++
  10991. if yyhl127 {
  10992. yyb127 = yyj127 > l
  10993. } else {
  10994. yyb127 = r.CheckBreak()
  10995. }
  10996. if yyb127 {
  10997. z.DecReadArrayEnd()
  10998. return
  10999. }
  11000. z.DecReadArrayElem()
  11001. if r.TryDecodeAsNil() {
  11002. x.TestStrucCommon.WrapSliceString = nil
  11003. } else {
  11004. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  11005. }
  11006. yyj127++
  11007. if yyhl127 {
  11008. yyb127 = yyj127 > l
  11009. } else {
  11010. yyb127 = r.CheckBreak()
  11011. }
  11012. if yyb127 {
  11013. z.DecReadArrayEnd()
  11014. return
  11015. }
  11016. z.DecReadArrayElem()
  11017. if r.TryDecodeAsNil() {
  11018. x.TestStrucCommon.Msi64 = nil
  11019. } else {
  11020. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  11021. }
  11022. yyj127++
  11023. if yyhl127 {
  11024. yyb127 = yyj127 > l
  11025. } else {
  11026. yyb127 = r.CheckBreak()
  11027. }
  11028. if yyb127 {
  11029. z.DecReadArrayEnd()
  11030. return
  11031. }
  11032. z.DecReadArrayElem()
  11033. if r.TryDecodeAsNil() {
  11034. x.TestStrucCommon.Msbytes = nil
  11035. } else {
  11036. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  11037. }
  11038. yyj127++
  11039. if yyhl127 {
  11040. yyb127 = yyj127 > l
  11041. } else {
  11042. yyb127 = r.CheckBreak()
  11043. }
  11044. if yyb127 {
  11045. z.DecReadArrayEnd()
  11046. return
  11047. }
  11048. z.DecReadArrayElem()
  11049. if r.TryDecodeAsNil() {
  11050. x.TestStrucCommon.Simplef = testSimpleFields{}
  11051. } else {
  11052. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  11053. }
  11054. yyj127++
  11055. if yyhl127 {
  11056. yyb127 = yyj127 > l
  11057. } else {
  11058. yyb127 = r.CheckBreak()
  11059. }
  11060. if yyb127 {
  11061. z.DecReadArrayEnd()
  11062. return
  11063. }
  11064. z.DecReadArrayElem()
  11065. if r.TryDecodeAsNil() {
  11066. x.TestStrucCommon.SstrUi64T = nil
  11067. } else {
  11068. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  11069. }
  11070. yyj127++
  11071. if yyhl127 {
  11072. yyb127 = yyj127 > l
  11073. } else {
  11074. yyb127 = r.CheckBreak()
  11075. }
  11076. if yyb127 {
  11077. z.DecReadArrayEnd()
  11078. return
  11079. }
  11080. z.DecReadArrayElem()
  11081. if r.TryDecodeAsNil() {
  11082. x.TestStrucCommon.AnonInTestStruc.AS = ""
  11083. } else {
  11084. x.TestStrucCommon.AnonInTestStruc.AS = (string)(r.DecodeString())
  11085. }
  11086. yyj127++
  11087. if yyhl127 {
  11088. yyb127 = yyj127 > l
  11089. } else {
  11090. yyb127 = r.CheckBreak()
  11091. }
  11092. if yyb127 {
  11093. z.DecReadArrayEnd()
  11094. return
  11095. }
  11096. z.DecReadArrayElem()
  11097. if r.TryDecodeAsNil() {
  11098. x.TestStrucCommon.AnonInTestStruc.AI64 = 0
  11099. } else {
  11100. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  11101. }
  11102. yyj127++
  11103. if yyhl127 {
  11104. yyb127 = yyj127 > l
  11105. } else {
  11106. yyb127 = r.CheckBreak()
  11107. }
  11108. if yyb127 {
  11109. z.DecReadArrayEnd()
  11110. return
  11111. }
  11112. z.DecReadArrayElem()
  11113. if r.TryDecodeAsNil() {
  11114. x.TestStrucCommon.AnonInTestStruc.AI16 = 0
  11115. } else {
  11116. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11117. }
  11118. yyj127++
  11119. if yyhl127 {
  11120. yyb127 = yyj127 > l
  11121. } else {
  11122. yyb127 = r.CheckBreak()
  11123. }
  11124. if yyb127 {
  11125. z.DecReadArrayEnd()
  11126. return
  11127. }
  11128. z.DecReadArrayElem()
  11129. if r.TryDecodeAsNil() {
  11130. x.TestStrucCommon.AnonInTestStruc.AUi64 = 0
  11131. } else {
  11132. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  11133. }
  11134. yyj127++
  11135. if yyhl127 {
  11136. yyb127 = yyj127 > l
  11137. } else {
  11138. yyb127 = r.CheckBreak()
  11139. }
  11140. if yyb127 {
  11141. z.DecReadArrayEnd()
  11142. return
  11143. }
  11144. z.DecReadArrayElem()
  11145. if r.TryDecodeAsNil() {
  11146. x.TestStrucCommon.AnonInTestStruc.ASslice = nil
  11147. } else {
  11148. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  11149. }
  11150. yyj127++
  11151. if yyhl127 {
  11152. yyb127 = yyj127 > l
  11153. } else {
  11154. yyb127 = r.CheckBreak()
  11155. }
  11156. if yyb127 {
  11157. z.DecReadArrayEnd()
  11158. return
  11159. }
  11160. z.DecReadArrayElem()
  11161. if r.TryDecodeAsNil() {
  11162. x.TestStrucCommon.AnonInTestStruc.AI64slice = nil
  11163. } else {
  11164. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  11165. }
  11166. yyj127++
  11167. if yyhl127 {
  11168. yyb127 = yyj127 > l
  11169. } else {
  11170. yyb127 = r.CheckBreak()
  11171. }
  11172. if yyb127 {
  11173. z.DecReadArrayEnd()
  11174. return
  11175. }
  11176. z.DecReadArrayElem()
  11177. if r.TryDecodeAsNil() {
  11178. x.TestStrucCommon.AnonInTestStruc.AUi64slice = nil
  11179. } else {
  11180. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  11181. }
  11182. yyj127++
  11183. if yyhl127 {
  11184. yyb127 = yyj127 > l
  11185. } else {
  11186. yyb127 = r.CheckBreak()
  11187. }
  11188. if yyb127 {
  11189. z.DecReadArrayEnd()
  11190. return
  11191. }
  11192. z.DecReadArrayElem()
  11193. if r.TryDecodeAsNil() {
  11194. x.TestStrucCommon.AnonInTestStruc.AF64slice = nil
  11195. } else {
  11196. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  11197. }
  11198. yyj127++
  11199. if yyhl127 {
  11200. yyb127 = yyj127 > l
  11201. } else {
  11202. yyb127 = r.CheckBreak()
  11203. }
  11204. if yyb127 {
  11205. z.DecReadArrayEnd()
  11206. return
  11207. }
  11208. z.DecReadArrayElem()
  11209. if r.TryDecodeAsNil() {
  11210. x.TestStrucCommon.AnonInTestStruc.AF32slice = nil
  11211. } else {
  11212. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  11213. }
  11214. yyj127++
  11215. if yyhl127 {
  11216. yyb127 = yyj127 > l
  11217. } else {
  11218. yyb127 = r.CheckBreak()
  11219. }
  11220. if yyb127 {
  11221. z.DecReadArrayEnd()
  11222. return
  11223. }
  11224. z.DecReadArrayElem()
  11225. if r.TryDecodeAsNil() {
  11226. x.TestStrucCommon.AnonInTestStruc.AMSU16 = nil
  11227. } else {
  11228. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  11229. }
  11230. yyj127++
  11231. if yyhl127 {
  11232. yyb127 = yyj127 > l
  11233. } else {
  11234. yyb127 = r.CheckBreak()
  11235. }
  11236. if yyb127 {
  11237. z.DecReadArrayEnd()
  11238. return
  11239. }
  11240. z.DecReadArrayElem()
  11241. if r.TryDecodeAsNil() {
  11242. x.TestStrucCommon.AnonInTestStruc.AI64arr0 = [0]int64{}
  11243. } else {
  11244. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  11245. }
  11246. yyj127++
  11247. if yyhl127 {
  11248. yyb127 = yyj127 > l
  11249. } else {
  11250. yyb127 = r.CheckBreak()
  11251. }
  11252. if yyb127 {
  11253. z.DecReadArrayEnd()
  11254. return
  11255. }
  11256. z.DecReadArrayElem()
  11257. if r.TryDecodeAsNil() {
  11258. x.TestStrucCommon.AnonInTestStruc.A164slice0 = nil
  11259. } else {
  11260. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.A164slice0, d)
  11261. }
  11262. yyj127++
  11263. if yyhl127 {
  11264. yyb127 = yyj127 > l
  11265. } else {
  11266. yyb127 = r.CheckBreak()
  11267. }
  11268. if yyb127 {
  11269. z.DecReadArrayEnd()
  11270. return
  11271. }
  11272. z.DecReadArrayElem()
  11273. if r.TryDecodeAsNil() {
  11274. x.TestStrucCommon.AnonInTestStruc.AUi64sliceN = nil
  11275. } else {
  11276. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  11277. }
  11278. yyj127++
  11279. if yyhl127 {
  11280. yyb127 = yyj127 > l
  11281. } else {
  11282. yyb127 = r.CheckBreak()
  11283. }
  11284. if yyb127 {
  11285. z.DecReadArrayEnd()
  11286. return
  11287. }
  11288. z.DecReadArrayElem()
  11289. if r.TryDecodeAsNil() {
  11290. x.TestStrucCommon.AnonInTestStruc.AMSU16N = nil
  11291. } else {
  11292. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  11293. }
  11294. yyj127++
  11295. if yyhl127 {
  11296. yyb127 = yyj127 > l
  11297. } else {
  11298. yyb127 = r.CheckBreak()
  11299. }
  11300. if yyb127 {
  11301. z.DecReadArrayEnd()
  11302. return
  11303. }
  11304. z.DecReadArrayElem()
  11305. if r.TryDecodeAsNil() {
  11306. x.TestStrucCommon.AnonInTestStruc.AMSU16E = nil
  11307. } else {
  11308. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  11309. }
  11310. yyj127++
  11311. if yyhl127 {
  11312. yyb127 = yyj127 > l
  11313. } else {
  11314. yyb127 = r.CheckBreak()
  11315. }
  11316. if yyb127 {
  11317. z.DecReadArrayEnd()
  11318. return
  11319. }
  11320. z.DecReadArrayElem()
  11321. if r.TryDecodeAsNil() {
  11322. x.TestStrucCommon.NotAnon = AnonInTestStruc{}
  11323. } else {
  11324. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  11325. }
  11326. yyj127++
  11327. if yyhl127 {
  11328. yyb127 = yyj127 > l
  11329. } else {
  11330. yyb127 = r.CheckBreak()
  11331. }
  11332. if yyb127 {
  11333. z.DecReadArrayEnd()
  11334. return
  11335. }
  11336. z.DecReadArrayElem()
  11337. if r.TryDecodeAsNil() {
  11338. x.TestStrucCommon.Nmap = nil
  11339. } else {
  11340. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  11341. }
  11342. yyj127++
  11343. if yyhl127 {
  11344. yyb127 = yyj127 > l
  11345. } else {
  11346. yyb127 = r.CheckBreak()
  11347. }
  11348. if yyb127 {
  11349. z.DecReadArrayEnd()
  11350. return
  11351. }
  11352. z.DecReadArrayElem()
  11353. if r.TryDecodeAsNil() {
  11354. x.TestStrucCommon.Nslice = nil
  11355. } else {
  11356. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  11357. }
  11358. yyj127++
  11359. if yyhl127 {
  11360. yyb127 = yyj127 > l
  11361. } else {
  11362. yyb127 = r.CheckBreak()
  11363. }
  11364. if yyb127 {
  11365. z.DecReadArrayEnd()
  11366. return
  11367. }
  11368. z.DecReadArrayElem()
  11369. if r.TryDecodeAsNil() {
  11370. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  11371. x.TestStrucCommon.Nint64 = nil
  11372. }
  11373. } else {
  11374. if x.TestStrucCommon.Nint64 == nil {
  11375. x.TestStrucCommon.Nint64 = new(int64)
  11376. }
  11377. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  11378. }
  11379. yyj127++
  11380. if yyhl127 {
  11381. yyb127 = yyj127 > l
  11382. } else {
  11383. yyb127 = r.CheckBreak()
  11384. }
  11385. if yyb127 {
  11386. z.DecReadArrayEnd()
  11387. return
  11388. }
  11389. z.DecReadArrayElem()
  11390. if r.TryDecodeAsNil() {
  11391. x.Chstr = nil
  11392. } else {
  11393. h.decChanstring((*chan string)(&x.Chstr), d)
  11394. }
  11395. yyj127++
  11396. if yyhl127 {
  11397. yyb127 = yyj127 > l
  11398. } else {
  11399. yyb127 = r.CheckBreak()
  11400. }
  11401. if yyb127 {
  11402. z.DecReadArrayEnd()
  11403. return
  11404. }
  11405. z.DecReadArrayElem()
  11406. if r.TryDecodeAsNil() {
  11407. x.Mis = nil
  11408. } else {
  11409. z.F.DecMapIntStringX(&x.Mis, d)
  11410. }
  11411. yyj127++
  11412. if yyhl127 {
  11413. yyb127 = yyj127 > l
  11414. } else {
  11415. yyb127 = r.CheckBreak()
  11416. }
  11417. if yyb127 {
  11418. z.DecReadArrayEnd()
  11419. return
  11420. }
  11421. z.DecReadArrayElem()
  11422. if r.TryDecodeAsNil() {
  11423. x.Mbu64 = nil
  11424. } else {
  11425. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  11426. }
  11427. yyj127++
  11428. if yyhl127 {
  11429. yyb127 = yyj127 > l
  11430. } else {
  11431. yyb127 = r.CheckBreak()
  11432. }
  11433. if yyb127 {
  11434. z.DecReadArrayEnd()
  11435. return
  11436. }
  11437. z.DecReadArrayElem()
  11438. if r.TryDecodeAsNil() {
  11439. x.Miwu64s = nil
  11440. } else {
  11441. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  11442. }
  11443. yyj127++
  11444. if yyhl127 {
  11445. yyb127 = yyj127 > l
  11446. } else {
  11447. yyb127 = r.CheckBreak()
  11448. }
  11449. if yyb127 {
  11450. z.DecReadArrayEnd()
  11451. return
  11452. }
  11453. z.DecReadArrayElem()
  11454. if r.TryDecodeAsNil() {
  11455. x.Mfwss = nil
  11456. } else {
  11457. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  11458. }
  11459. yyj127++
  11460. if yyhl127 {
  11461. yyb127 = yyj127 > l
  11462. } else {
  11463. yyb127 = r.CheckBreak()
  11464. }
  11465. if yyb127 {
  11466. z.DecReadArrayEnd()
  11467. return
  11468. }
  11469. z.DecReadArrayElem()
  11470. if r.TryDecodeAsNil() {
  11471. x.Mf32wss = nil
  11472. } else {
  11473. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  11474. }
  11475. yyj127++
  11476. if yyhl127 {
  11477. yyb127 = yyj127 > l
  11478. } else {
  11479. yyb127 = r.CheckBreak()
  11480. }
  11481. if yyb127 {
  11482. z.DecReadArrayEnd()
  11483. return
  11484. }
  11485. z.DecReadArrayElem()
  11486. if r.TryDecodeAsNil() {
  11487. x.Mui2wss = nil
  11488. } else {
  11489. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  11490. }
  11491. yyj127++
  11492. if yyhl127 {
  11493. yyb127 = yyj127 > l
  11494. } else {
  11495. yyb127 = r.CheckBreak()
  11496. }
  11497. if yyb127 {
  11498. z.DecReadArrayEnd()
  11499. return
  11500. }
  11501. z.DecReadArrayElem()
  11502. if r.TryDecodeAsNil() {
  11503. x.Msu2wss = nil
  11504. } else {
  11505. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  11506. }
  11507. yyj127++
  11508. if yyhl127 {
  11509. yyb127 = yyj127 > l
  11510. } else {
  11511. yyb127 = r.CheckBreak()
  11512. }
  11513. if yyb127 {
  11514. z.DecReadArrayEnd()
  11515. return
  11516. }
  11517. z.DecReadArrayElem()
  11518. if r.TryDecodeAsNil() {
  11519. x.Ci64 = 0
  11520. } else {
  11521. x.Ci64.CodecDecodeSelf(d)
  11522. }
  11523. yyj127++
  11524. if yyhl127 {
  11525. yyb127 = yyj127 > l
  11526. } else {
  11527. yyb127 = r.CheckBreak()
  11528. }
  11529. if yyb127 {
  11530. z.DecReadArrayEnd()
  11531. return
  11532. }
  11533. z.DecReadArrayElem()
  11534. if r.TryDecodeAsNil() {
  11535. x.Swrapbytes = nil
  11536. } else {
  11537. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  11538. }
  11539. yyj127++
  11540. if yyhl127 {
  11541. yyb127 = yyj127 > l
  11542. } else {
  11543. yyb127 = r.CheckBreak()
  11544. }
  11545. if yyb127 {
  11546. z.DecReadArrayEnd()
  11547. return
  11548. }
  11549. z.DecReadArrayElem()
  11550. if r.TryDecodeAsNil() {
  11551. x.Swrapuint8 = nil
  11552. } else {
  11553. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  11554. }
  11555. yyj127++
  11556. if yyhl127 {
  11557. yyb127 = yyj127 > l
  11558. } else {
  11559. yyb127 = r.CheckBreak()
  11560. }
  11561. if yyb127 {
  11562. z.DecReadArrayEnd()
  11563. return
  11564. }
  11565. z.DecReadArrayElem()
  11566. if r.TryDecodeAsNil() {
  11567. x.ArrStrUi64T = [4]stringUint64T{}
  11568. } else {
  11569. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  11570. }
  11571. yyj127++
  11572. if yyhl127 {
  11573. yyb127 = yyj127 > l
  11574. } else {
  11575. yyb127 = r.CheckBreak()
  11576. }
  11577. if yyb127 {
  11578. z.DecReadArrayEnd()
  11579. return
  11580. }
  11581. z.DecReadArrayElem()
  11582. if r.TryDecodeAsNil() {
  11583. x.Ui64array = [4]uint64{}
  11584. } else {
  11585. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  11586. }
  11587. yyj127++
  11588. if yyhl127 {
  11589. yyb127 = yyj127 > l
  11590. } else {
  11591. yyb127 = r.CheckBreak()
  11592. }
  11593. if yyb127 {
  11594. z.DecReadArrayEnd()
  11595. return
  11596. }
  11597. z.DecReadArrayElem()
  11598. if r.TryDecodeAsNil() {
  11599. x.Ui64slicearray = nil
  11600. } else {
  11601. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  11602. }
  11603. yyj127++
  11604. if yyhl127 {
  11605. yyb127 = yyj127 > l
  11606. } else {
  11607. yyb127 = r.CheckBreak()
  11608. }
  11609. if yyb127 {
  11610. z.DecReadArrayEnd()
  11611. return
  11612. }
  11613. z.DecReadArrayElem()
  11614. if r.TryDecodeAsNil() {
  11615. x.SintfAarray = nil
  11616. } else {
  11617. z.F.DecSliceIntfX(&x.SintfAarray, d)
  11618. }
  11619. yyj127++
  11620. if yyhl127 {
  11621. yyb127 = yyj127 > l
  11622. } else {
  11623. yyb127 = r.CheckBreak()
  11624. }
  11625. if yyb127 {
  11626. z.DecReadArrayEnd()
  11627. return
  11628. }
  11629. z.DecReadArrayElem()
  11630. if r.TryDecodeAsNil() {
  11631. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11632. x.AnonInTestStrucIntf.Islice = nil
  11633. }
  11634. } else {
  11635. if x.AnonInTestStrucIntf == nil {
  11636. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11637. }
  11638. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  11639. }
  11640. yyj127++
  11641. if yyhl127 {
  11642. yyb127 = yyj127 > l
  11643. } else {
  11644. yyb127 = r.CheckBreak()
  11645. }
  11646. if yyb127 {
  11647. z.DecReadArrayEnd()
  11648. return
  11649. }
  11650. z.DecReadArrayElem()
  11651. if r.TryDecodeAsNil() {
  11652. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11653. x.AnonInTestStrucIntf.Ms = nil
  11654. }
  11655. } else {
  11656. if x.AnonInTestStrucIntf == nil {
  11657. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11658. }
  11659. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  11660. }
  11661. yyj127++
  11662. if yyhl127 {
  11663. yyb127 = yyj127 > l
  11664. } else {
  11665. yyb127 = r.CheckBreak()
  11666. }
  11667. if yyb127 {
  11668. z.DecReadArrayEnd()
  11669. return
  11670. }
  11671. z.DecReadArrayElem()
  11672. if r.TryDecodeAsNil() {
  11673. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11674. x.AnonInTestStrucIntf.Nintf = nil
  11675. }
  11676. } else {
  11677. if x.AnonInTestStrucIntf == nil {
  11678. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11679. }
  11680. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  11681. }
  11682. yyj127++
  11683. if yyhl127 {
  11684. yyb127 = yyj127 > l
  11685. } else {
  11686. yyb127 = r.CheckBreak()
  11687. }
  11688. if yyb127 {
  11689. z.DecReadArrayEnd()
  11690. return
  11691. }
  11692. z.DecReadArrayElem()
  11693. if r.TryDecodeAsNil() {
  11694. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11695. x.AnonInTestStrucIntf.T = time.Time{}
  11696. }
  11697. } else {
  11698. if x.AnonInTestStrucIntf == nil {
  11699. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11700. }
  11701. if !z.DecBasicHandle().TimeNotBuiltin {
  11702. x.AnonInTestStrucIntf.T = r.DecodeTime()
  11703. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  11704. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt241)
  11705. } else if z.DecBinary() {
  11706. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  11707. } else if !z.DecBinary() && z.IsJSONHandle() {
  11708. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  11709. } else {
  11710. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  11711. }
  11712. }
  11713. yyj127++
  11714. if yyhl127 {
  11715. yyb127 = yyj127 > l
  11716. } else {
  11717. yyb127 = r.CheckBreak()
  11718. }
  11719. if yyb127 {
  11720. z.DecReadArrayEnd()
  11721. return
  11722. }
  11723. z.DecReadArrayElem()
  11724. if r.TryDecodeAsNil() {
  11725. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  11726. x.AnonInTestStrucIntf.Tptr = nil
  11727. }
  11728. } else {
  11729. if x.AnonInTestStrucIntf == nil {
  11730. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11731. }
  11732. if x.AnonInTestStrucIntf.Tptr == nil {
  11733. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  11734. }
  11735. if !z.DecBasicHandle().TimeNotBuiltin {
  11736. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  11737. } else if yyxt243 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt243 != nil {
  11738. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt243)
  11739. } else if z.DecBinary() {
  11740. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11741. } else if !z.DecBinary() && z.IsJSONHandle() {
  11742. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11743. } else {
  11744. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  11745. }
  11746. }
  11747. yyj127++
  11748. if yyhl127 {
  11749. yyb127 = yyj127 > l
  11750. } else {
  11751. yyb127 = r.CheckBreak()
  11752. }
  11753. if yyb127 {
  11754. z.DecReadArrayEnd()
  11755. return
  11756. }
  11757. z.DecReadArrayElem()
  11758. if r.TryDecodeAsNil() {
  11759. x.Mtsptr = nil
  11760. } else {
  11761. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  11762. }
  11763. yyj127++
  11764. if yyhl127 {
  11765. yyb127 = yyj127 > l
  11766. } else {
  11767. yyb127 = r.CheckBreak()
  11768. }
  11769. if yyb127 {
  11770. z.DecReadArrayEnd()
  11771. return
  11772. }
  11773. z.DecReadArrayElem()
  11774. if r.TryDecodeAsNil() {
  11775. x.Mts = nil
  11776. } else {
  11777. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  11778. }
  11779. yyj127++
  11780. if yyhl127 {
  11781. yyb127 = yyj127 > l
  11782. } else {
  11783. yyb127 = r.CheckBreak()
  11784. }
  11785. if yyb127 {
  11786. z.DecReadArrayEnd()
  11787. return
  11788. }
  11789. z.DecReadArrayElem()
  11790. if r.TryDecodeAsNil() {
  11791. x.Its = nil
  11792. } else {
  11793. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  11794. }
  11795. yyj127++
  11796. if yyhl127 {
  11797. yyb127 = yyj127 > l
  11798. } else {
  11799. yyb127 = r.CheckBreak()
  11800. }
  11801. if yyb127 {
  11802. z.DecReadArrayEnd()
  11803. return
  11804. }
  11805. z.DecReadArrayElem()
  11806. if r.TryDecodeAsNil() {
  11807. if x.Nteststruc != nil { // remove the if-true
  11808. x.Nteststruc = nil
  11809. }
  11810. } else {
  11811. if x.Nteststruc == nil {
  11812. x.Nteststruc = new(TestStrucFlex)
  11813. }
  11814. x.Nteststruc.CodecDecodeSelf(d)
  11815. }
  11816. for {
  11817. yyj127++
  11818. if yyhl127 {
  11819. yyb127 = yyj127 > l
  11820. } else {
  11821. yyb127 = r.CheckBreak()
  11822. }
  11823. if yyb127 {
  11824. break
  11825. }
  11826. z.DecReadArrayElem()
  11827. z.DecStructFieldNotFound(yyj127-1, "")
  11828. }
  11829. z.DecReadArrayEnd()
  11830. }
  11831. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  11832. var h codecSelfer19780
  11833. z, r := GenHelperEncoder(e)
  11834. _, _, _ = h, z, r
  11835. z.EncWriteArrayStart(len(v))
  11836. for _, yyv1 := range v {
  11837. z.EncWriteArrayElem()
  11838. r.EncodeUint(uint64(yyv1))
  11839. }
  11840. z.EncWriteArrayEnd()
  11841. }
  11842. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  11843. var h codecSelfer19780
  11844. z, r := GenHelperDecoder(d)
  11845. _, _, _ = h, z, r
  11846. yyv1 := *v
  11847. yyh1, yyl1 := z.DecSliceHelperStart()
  11848. var yyc1 bool
  11849. _ = yyc1
  11850. if yyl1 == 0 {
  11851. if yyv1 == nil {
  11852. yyv1 = []uint64{}
  11853. yyc1 = true
  11854. } else if len(yyv1) != 0 {
  11855. yyv1 = yyv1[:0]
  11856. yyc1 = true
  11857. }
  11858. } else {
  11859. yyhl1 := yyl1 > 0
  11860. var yyrl1 int
  11861. _ = yyrl1
  11862. if yyhl1 {
  11863. if yyl1 > cap(yyv1) {
  11864. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11865. if yyrl1 <= cap(yyv1) {
  11866. yyv1 = yyv1[:yyrl1]
  11867. } else {
  11868. yyv1 = make([]uint64, yyrl1)
  11869. }
  11870. yyc1 = true
  11871. } else if yyl1 != len(yyv1) {
  11872. yyv1 = yyv1[:yyl1]
  11873. yyc1 = true
  11874. }
  11875. }
  11876. var yyj1 int
  11877. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11878. if yyj1 == 0 && yyv1 == nil {
  11879. if yyhl1 {
  11880. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11881. } else {
  11882. yyrl1 = 8
  11883. }
  11884. yyv1 = make([]uint64, yyrl1)
  11885. yyc1 = true
  11886. }
  11887. yyh1.ElemContainerState(yyj1)
  11888. var yydb1 bool
  11889. if yyj1 >= len(yyv1) {
  11890. yyv1 = append(yyv1, 0)
  11891. yyc1 = true
  11892. }
  11893. if yydb1 {
  11894. z.DecSwallow()
  11895. } else {
  11896. if r.TryDecodeAsNil() {
  11897. yyv1[yyj1] = 0
  11898. } else {
  11899. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  11900. }
  11901. }
  11902. }
  11903. if yyj1 < len(yyv1) {
  11904. yyv1 = yyv1[:yyj1]
  11905. yyc1 = true
  11906. } else if yyj1 == 0 && yyv1 == nil {
  11907. yyv1 = make([]uint64, 0)
  11908. yyc1 = true
  11909. }
  11910. }
  11911. yyh1.End()
  11912. if yyc1 {
  11913. *v = yyv1
  11914. }
  11915. }
  11916. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  11917. var h codecSelfer19780
  11918. z, r := GenHelperEncoder(e)
  11919. _, _, _ = h, z, r
  11920. z.EncWriteArrayStart(len(v))
  11921. for _, yyv1 := range v {
  11922. z.EncWriteArrayElem()
  11923. if z.EncBasicHandle().StringToRaw {
  11924. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  11925. } else {
  11926. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  11927. }
  11928. }
  11929. z.EncWriteArrayEnd()
  11930. }
  11931. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  11932. var h codecSelfer19780
  11933. z, r := GenHelperDecoder(d)
  11934. _, _, _ = h, z, r
  11935. yyv1 := *v
  11936. yyh1, yyl1 := z.DecSliceHelperStart()
  11937. var yyc1 bool
  11938. _ = yyc1
  11939. if yyl1 == 0 {
  11940. if yyv1 == nil {
  11941. yyv1 = []string{}
  11942. yyc1 = true
  11943. } else if len(yyv1) != 0 {
  11944. yyv1 = yyv1[:0]
  11945. yyc1 = true
  11946. }
  11947. } else {
  11948. yyhl1 := yyl1 > 0
  11949. var yyrl1 int
  11950. _ = yyrl1
  11951. if yyhl1 {
  11952. if yyl1 > cap(yyv1) {
  11953. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11954. if yyrl1 <= cap(yyv1) {
  11955. yyv1 = yyv1[:yyrl1]
  11956. } else {
  11957. yyv1 = make([]string, yyrl1)
  11958. }
  11959. yyc1 = true
  11960. } else if yyl1 != len(yyv1) {
  11961. yyv1 = yyv1[:yyl1]
  11962. yyc1 = true
  11963. }
  11964. }
  11965. var yyj1 int
  11966. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11967. if yyj1 == 0 && yyv1 == nil {
  11968. if yyhl1 {
  11969. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11970. } else {
  11971. yyrl1 = 8
  11972. }
  11973. yyv1 = make([]string, yyrl1)
  11974. yyc1 = true
  11975. }
  11976. yyh1.ElemContainerState(yyj1)
  11977. var yydb1 bool
  11978. if yyj1 >= len(yyv1) {
  11979. yyv1 = append(yyv1, "")
  11980. yyc1 = true
  11981. }
  11982. if yydb1 {
  11983. z.DecSwallow()
  11984. } else {
  11985. if r.TryDecodeAsNil() {
  11986. yyv1[yyj1] = ""
  11987. } else {
  11988. yyv1[yyj1] = (string)(r.DecodeString())
  11989. }
  11990. }
  11991. }
  11992. if yyj1 < len(yyv1) {
  11993. yyv1 = yyv1[:yyj1]
  11994. yyc1 = true
  11995. } else if yyj1 == 0 && yyv1 == nil {
  11996. yyv1 = make([]string, 0)
  11997. yyc1 = true
  11998. }
  11999. }
  12000. yyh1.End()
  12001. if yyc1 {
  12002. *v = yyv1
  12003. }
  12004. }
  12005. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  12006. var h codecSelfer19780
  12007. z, r := GenHelperEncoder(e)
  12008. _, _, _ = h, z, r
  12009. z.EncWriteArrayStart(len(v))
  12010. for _, yyv1 := range v {
  12011. z.EncWriteArrayElem()
  12012. yyv1.CodecEncodeSelf(e)
  12013. }
  12014. z.EncWriteArrayEnd()
  12015. }
  12016. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  12017. var h codecSelfer19780
  12018. z, r := GenHelperDecoder(d)
  12019. _, _, _ = h, z, r
  12020. yyv1 := *v
  12021. yyh1, yyl1 := z.DecSliceHelperStart()
  12022. var yyc1 bool
  12023. _ = yyc1
  12024. if yyl1 == 0 {
  12025. if yyv1 == nil {
  12026. yyv1 = []wrapUint64{}
  12027. yyc1 = true
  12028. } else if len(yyv1) != 0 {
  12029. yyv1 = yyv1[:0]
  12030. yyc1 = true
  12031. }
  12032. } else {
  12033. yyhl1 := yyl1 > 0
  12034. var yyrl1 int
  12035. _ = yyrl1
  12036. if yyhl1 {
  12037. if yyl1 > cap(yyv1) {
  12038. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12039. if yyrl1 <= cap(yyv1) {
  12040. yyv1 = yyv1[:yyrl1]
  12041. } else {
  12042. yyv1 = make([]wrapUint64, yyrl1)
  12043. }
  12044. yyc1 = true
  12045. } else if yyl1 != len(yyv1) {
  12046. yyv1 = yyv1[:yyl1]
  12047. yyc1 = true
  12048. }
  12049. }
  12050. var yyj1 int
  12051. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12052. if yyj1 == 0 && yyv1 == nil {
  12053. if yyhl1 {
  12054. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12055. } else {
  12056. yyrl1 = 8
  12057. }
  12058. yyv1 = make([]wrapUint64, yyrl1)
  12059. yyc1 = true
  12060. }
  12061. yyh1.ElemContainerState(yyj1)
  12062. var yydb1 bool
  12063. if yyj1 >= len(yyv1) {
  12064. yyv1 = append(yyv1, 0)
  12065. yyc1 = true
  12066. }
  12067. if yydb1 {
  12068. z.DecSwallow()
  12069. } else {
  12070. if r.TryDecodeAsNil() {
  12071. yyv1[yyj1] = 0
  12072. } else {
  12073. yyv1[yyj1].CodecDecodeSelf(d)
  12074. }
  12075. }
  12076. }
  12077. if yyj1 < len(yyv1) {
  12078. yyv1 = yyv1[:yyj1]
  12079. yyc1 = true
  12080. } else if yyj1 == 0 && yyv1 == nil {
  12081. yyv1 = make([]wrapUint64, 0)
  12082. yyc1 = true
  12083. }
  12084. }
  12085. yyh1.End()
  12086. if yyc1 {
  12087. *v = yyv1
  12088. }
  12089. }
  12090. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  12091. var h codecSelfer19780
  12092. z, r := GenHelperEncoder(e)
  12093. _, _, _ = h, z, r
  12094. z.EncWriteArrayStart(len(v))
  12095. for _, yyv1 := range v {
  12096. z.EncWriteArrayElem()
  12097. yyv1.CodecEncodeSelf(e)
  12098. }
  12099. z.EncWriteArrayEnd()
  12100. }
  12101. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  12102. var h codecSelfer19780
  12103. z, r := GenHelperDecoder(d)
  12104. _, _, _ = h, z, r
  12105. yyv1 := *v
  12106. yyh1, yyl1 := z.DecSliceHelperStart()
  12107. var yyc1 bool
  12108. _ = yyc1
  12109. if yyl1 == 0 {
  12110. if yyv1 == nil {
  12111. yyv1 = []wrapString{}
  12112. yyc1 = true
  12113. } else if len(yyv1) != 0 {
  12114. yyv1 = yyv1[:0]
  12115. yyc1 = true
  12116. }
  12117. } else {
  12118. yyhl1 := yyl1 > 0
  12119. var yyrl1 int
  12120. _ = yyrl1
  12121. if yyhl1 {
  12122. if yyl1 > cap(yyv1) {
  12123. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12124. if yyrl1 <= cap(yyv1) {
  12125. yyv1 = yyv1[:yyrl1]
  12126. } else {
  12127. yyv1 = make([]wrapString, yyrl1)
  12128. }
  12129. yyc1 = true
  12130. } else if yyl1 != len(yyv1) {
  12131. yyv1 = yyv1[:yyl1]
  12132. yyc1 = true
  12133. }
  12134. }
  12135. var yyj1 int
  12136. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12137. if yyj1 == 0 && yyv1 == nil {
  12138. if yyhl1 {
  12139. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12140. } else {
  12141. yyrl1 = 8
  12142. }
  12143. yyv1 = make([]wrapString, yyrl1)
  12144. yyc1 = true
  12145. }
  12146. yyh1.ElemContainerState(yyj1)
  12147. var yydb1 bool
  12148. if yyj1 >= len(yyv1) {
  12149. yyv1 = append(yyv1, "")
  12150. yyc1 = true
  12151. }
  12152. if yydb1 {
  12153. z.DecSwallow()
  12154. } else {
  12155. if r.TryDecodeAsNil() {
  12156. yyv1[yyj1] = ""
  12157. } else {
  12158. yyv1[yyj1].CodecDecodeSelf(d)
  12159. }
  12160. }
  12161. }
  12162. if yyj1 < len(yyv1) {
  12163. yyv1 = yyv1[:yyj1]
  12164. yyc1 = true
  12165. } else if yyj1 == 0 && yyv1 == nil {
  12166. yyv1 = make([]wrapString, 0)
  12167. yyc1 = true
  12168. }
  12169. }
  12170. yyh1.End()
  12171. if yyc1 {
  12172. *v = yyv1
  12173. }
  12174. }
  12175. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  12176. var h codecSelfer19780
  12177. z, r := GenHelperEncoder(e)
  12178. _, _, _ = h, z, r
  12179. z.EncWriteMapStart(len(v))
  12180. for yyk1, yyv1 := range v {
  12181. z.EncWriteMapElemKey()
  12182. if z.EncBasicHandle().StringToRaw {
  12183. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12184. } else {
  12185. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12186. }
  12187. z.EncWriteMapElemValue()
  12188. r.EncodeUint(uint64(yyv1))
  12189. }
  12190. z.EncWriteMapEnd()
  12191. }
  12192. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  12193. var h codecSelfer19780
  12194. z, r := GenHelperDecoder(d)
  12195. _, _, _ = h, z, r
  12196. yyv1 := *v
  12197. yyl1 := z.DecReadMapStart()
  12198. yybh1 := z.DecBasicHandle()
  12199. if yyv1 == nil {
  12200. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 18)
  12201. yyv1 = make(map[string]uint16, yyrl1)
  12202. *v = yyv1
  12203. }
  12204. var yymk1 string
  12205. var yymv1 uint16
  12206. var yymg1, yymdn1 bool
  12207. if yybh1.MapValueReset {
  12208. }
  12209. if yyl1 != 0 {
  12210. yyhl1 := yyl1 > 0
  12211. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12212. z.DecReadMapElemKey()
  12213. if r.TryDecodeAsNil() {
  12214. yymk1 = ""
  12215. } else {
  12216. yymk1 = (string)(r.DecodeString())
  12217. }
  12218. if yymg1 {
  12219. yymv1 = yyv1[yymk1]
  12220. }
  12221. z.DecReadMapElemValue()
  12222. yymdn1 = false
  12223. if r.TryDecodeAsNil() {
  12224. yymdn1 = true
  12225. } else {
  12226. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12227. }
  12228. if yymdn1 {
  12229. if yybh1.DeleteOnNilMapValue {
  12230. delete(yyv1, yymk1)
  12231. } else {
  12232. yyv1[yymk1] = 0
  12233. }
  12234. } else if yyv1 != nil {
  12235. yyv1[yymk1] = yymv1
  12236. }
  12237. }
  12238. } // else len==0: TODO: Should we clear map entries?
  12239. z.DecReadMapEnd()
  12240. }
  12241. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  12242. var h codecSelfer19780
  12243. z, r := GenHelperEncoder(e)
  12244. _, _, _ = h, z, r
  12245. z.EncWriteArrayStart(len(v))
  12246. for _, yyv1 := range v {
  12247. z.EncWriteArrayElem()
  12248. r.EncodeInt(int64(yyv1))
  12249. }
  12250. z.EncWriteArrayEnd()
  12251. }
  12252. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  12253. var h codecSelfer19780
  12254. z, r := GenHelperDecoder(d)
  12255. _, _, _ = h, z, r
  12256. yyv1 := v
  12257. yyh1, yyl1 := z.DecSliceHelperStart()
  12258. if yyl1 == 0 {
  12259. } else {
  12260. yyhl1 := yyl1 > 0
  12261. var yyrl1 int
  12262. _ = yyrl1
  12263. var yyj1 int
  12264. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12265. yyh1.ElemContainerState(yyj1)
  12266. var yydb1 bool
  12267. if yyj1 >= len(yyv1) {
  12268. z.DecArrayCannotExpand(len(v), yyj1+1)
  12269. yydb1 = true
  12270. }
  12271. if yydb1 {
  12272. z.DecSwallow()
  12273. } else {
  12274. if r.TryDecodeAsNil() {
  12275. yyv1[yyj1] = 0
  12276. } else {
  12277. yyv1[yyj1] = (int64)(r.DecodeInt64())
  12278. }
  12279. }
  12280. }
  12281. }
  12282. yyh1.End()
  12283. }
  12284. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  12285. var h codecSelfer19780
  12286. z, r := GenHelperEncoder(e)
  12287. _, _, _ = h, z, r
  12288. z.EncWriteArrayStart(len(v))
  12289. for _, yyv1 := range v {
  12290. z.EncWriteArrayElem()
  12291. if yyv1 == nil {
  12292. r.EncodeNil()
  12293. } else {
  12294. yy2 := *yyv1
  12295. r.EncodeInt(int64(yy2))
  12296. }
  12297. }
  12298. z.EncWriteArrayEnd()
  12299. }
  12300. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  12301. var h codecSelfer19780
  12302. z, r := GenHelperDecoder(d)
  12303. _, _, _ = h, z, r
  12304. yyv1 := *v
  12305. yyh1, yyl1 := z.DecSliceHelperStart()
  12306. var yyc1 bool
  12307. _ = yyc1
  12308. if yyl1 == 0 {
  12309. if yyv1 == nil {
  12310. yyv1 = []*int64{}
  12311. yyc1 = true
  12312. } else if len(yyv1) != 0 {
  12313. yyv1 = yyv1[:0]
  12314. yyc1 = true
  12315. }
  12316. } else {
  12317. yyhl1 := yyl1 > 0
  12318. var yyrl1 int
  12319. _ = yyrl1
  12320. if yyhl1 {
  12321. if yyl1 > cap(yyv1) {
  12322. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12323. if yyrl1 <= cap(yyv1) {
  12324. yyv1 = yyv1[:yyrl1]
  12325. } else {
  12326. yyv1 = make([]*int64, yyrl1)
  12327. }
  12328. yyc1 = true
  12329. } else if yyl1 != len(yyv1) {
  12330. yyv1 = yyv1[:yyl1]
  12331. yyc1 = true
  12332. }
  12333. }
  12334. var yyj1 int
  12335. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12336. if yyj1 == 0 && yyv1 == nil {
  12337. if yyhl1 {
  12338. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12339. } else {
  12340. yyrl1 = 8
  12341. }
  12342. yyv1 = make([]*int64, yyrl1)
  12343. yyc1 = true
  12344. }
  12345. yyh1.ElemContainerState(yyj1)
  12346. var yydb1 bool
  12347. if yyj1 >= len(yyv1) {
  12348. yyv1 = append(yyv1, nil)
  12349. yyc1 = true
  12350. }
  12351. if yydb1 {
  12352. z.DecSwallow()
  12353. } else {
  12354. if r.TryDecodeAsNil() {
  12355. yyv1[yyj1] = nil
  12356. } else {
  12357. if yyv1[yyj1] == nil {
  12358. yyv1[yyj1] = new(int64)
  12359. }
  12360. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  12361. }
  12362. }
  12363. }
  12364. if yyj1 < len(yyv1) {
  12365. yyv1 = yyv1[:yyj1]
  12366. yyc1 = true
  12367. } else if yyj1 == 0 && yyv1 == nil {
  12368. yyv1 = make([]*int64, 0)
  12369. yyc1 = true
  12370. }
  12371. }
  12372. yyh1.End()
  12373. if yyc1 {
  12374. *v = yyv1
  12375. }
  12376. }
  12377. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  12378. var h codecSelfer19780
  12379. z, r := GenHelperEncoder(e)
  12380. _, _, _ = h, z, r
  12381. z.EncWriteArrayStart(len(v))
  12382. for _, yyv1 := range v {
  12383. z.EncWriteArrayElem()
  12384. yy2 := &yyv1
  12385. yy2.CodecEncodeSelf(e)
  12386. }
  12387. z.EncWriteArrayEnd()
  12388. }
  12389. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  12390. var h codecSelfer19780
  12391. z, r := GenHelperDecoder(d)
  12392. _, _, _ = h, z, r
  12393. yyv1 := *v
  12394. yyh1, yyl1 := z.DecSliceHelperStart()
  12395. var yyc1 bool
  12396. _ = yyc1
  12397. if yyl1 == 0 {
  12398. if yyv1 == nil {
  12399. yyv1 = []stringUint64T{}
  12400. yyc1 = true
  12401. } else if len(yyv1) != 0 {
  12402. yyv1 = yyv1[:0]
  12403. yyc1 = true
  12404. }
  12405. } else {
  12406. yyhl1 := yyl1 > 0
  12407. var yyrl1 int
  12408. _ = yyrl1
  12409. if yyhl1 {
  12410. if yyl1 > cap(yyv1) {
  12411. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12412. if yyrl1 <= cap(yyv1) {
  12413. yyv1 = yyv1[:yyrl1]
  12414. } else {
  12415. yyv1 = make([]stringUint64T, yyrl1)
  12416. }
  12417. yyc1 = true
  12418. } else if yyl1 != len(yyv1) {
  12419. yyv1 = yyv1[:yyl1]
  12420. yyc1 = true
  12421. }
  12422. }
  12423. var yyj1 int
  12424. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12425. if yyj1 == 0 && yyv1 == nil {
  12426. if yyhl1 {
  12427. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12428. } else {
  12429. yyrl1 = 8
  12430. }
  12431. yyv1 = make([]stringUint64T, yyrl1)
  12432. yyc1 = true
  12433. }
  12434. yyh1.ElemContainerState(yyj1)
  12435. var yydb1 bool
  12436. if yyj1 >= len(yyv1) {
  12437. yyv1 = append(yyv1, stringUint64T{})
  12438. yyc1 = true
  12439. }
  12440. if yydb1 {
  12441. z.DecSwallow()
  12442. } else {
  12443. if r.TryDecodeAsNil() {
  12444. yyv1[yyj1] = stringUint64T{}
  12445. } else {
  12446. yyv1[yyj1].CodecDecodeSelf(d)
  12447. }
  12448. }
  12449. }
  12450. if yyj1 < len(yyv1) {
  12451. yyv1 = yyv1[:yyj1]
  12452. yyc1 = true
  12453. } else if yyj1 == 0 && yyv1 == nil {
  12454. yyv1 = make([]stringUint64T, 0)
  12455. yyc1 = true
  12456. }
  12457. }
  12458. yyh1.End()
  12459. if yyc1 {
  12460. *v = yyv1
  12461. }
  12462. }
  12463. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  12464. var h codecSelfer19780
  12465. z, r := GenHelperEncoder(e)
  12466. _, _, _ = h, z, r
  12467. z.EncWriteMapStart(len(v))
  12468. for yyk1, yyv1 := range v {
  12469. z.EncWriteMapElemKey()
  12470. if z.EncBasicHandle().StringToRaw {
  12471. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12472. } else {
  12473. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12474. }
  12475. z.EncWriteMapElemValue()
  12476. if yyv1 == nil {
  12477. r.EncodeNil()
  12478. } else {
  12479. yyv1.CodecEncodeSelf(e)
  12480. }
  12481. }
  12482. z.EncWriteMapEnd()
  12483. }
  12484. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  12485. var h codecSelfer19780
  12486. z, r := GenHelperDecoder(d)
  12487. _, _, _ = h, z, r
  12488. yyv1 := *v
  12489. yyl1 := z.DecReadMapStart()
  12490. yybh1 := z.DecBasicHandle()
  12491. if yyv1 == nil {
  12492. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  12493. yyv1 = make(map[string]*TestStruc, yyrl1)
  12494. *v = yyv1
  12495. }
  12496. var yymk1 string
  12497. var yymv1 *TestStruc
  12498. var yymg1, yymdn1, yyms1, yymok1 bool
  12499. if yybh1.MapValueReset {
  12500. yymg1 = true
  12501. }
  12502. if yyl1 != 0 {
  12503. yyhl1 := yyl1 > 0
  12504. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12505. z.DecReadMapElemKey()
  12506. if r.TryDecodeAsNil() {
  12507. yymk1 = ""
  12508. } else {
  12509. yymk1 = (string)(r.DecodeString())
  12510. }
  12511. yyms1 = true
  12512. if yymg1 {
  12513. yymv1, yymok1 = yyv1[yymk1]
  12514. if yymok1 {
  12515. yyms1 = false
  12516. }
  12517. } else {
  12518. yymv1 = nil
  12519. }
  12520. z.DecReadMapElemValue()
  12521. yymdn1 = false
  12522. if r.TryDecodeAsNil() {
  12523. yymdn1 = true
  12524. } else {
  12525. if yymv1 == nil {
  12526. yymv1 = new(TestStruc)
  12527. }
  12528. yymv1.CodecDecodeSelf(d)
  12529. }
  12530. if yymdn1 {
  12531. if yybh1.DeleteOnNilMapValue {
  12532. delete(yyv1, yymk1)
  12533. } else {
  12534. yyv1[yymk1] = nil
  12535. }
  12536. } else if yyms1 && yyv1 != nil {
  12537. yyv1[yymk1] = yymv1
  12538. }
  12539. }
  12540. } // else len==0: TODO: Should we clear map entries?
  12541. z.DecReadMapEnd()
  12542. }
  12543. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  12544. var h codecSelfer19780
  12545. z, r := GenHelperEncoder(e)
  12546. _, _, _ = h, z, r
  12547. z.EncWriteMapStart(len(v))
  12548. for yyk1, yyv1 := range v {
  12549. z.EncWriteMapElemKey()
  12550. if z.EncBasicHandle().StringToRaw {
  12551. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12552. } else {
  12553. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12554. }
  12555. z.EncWriteMapElemValue()
  12556. yy3 := &yyv1
  12557. yy3.CodecEncodeSelf(e)
  12558. }
  12559. z.EncWriteMapEnd()
  12560. }
  12561. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  12562. var h codecSelfer19780
  12563. z, r := GenHelperDecoder(d)
  12564. _, _, _ = h, z, r
  12565. yyv1 := *v
  12566. yyl1 := z.DecReadMapStart()
  12567. yybh1 := z.DecBasicHandle()
  12568. if yyv1 == nil {
  12569. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1216)
  12570. yyv1 = make(map[string]TestStruc, yyrl1)
  12571. *v = yyv1
  12572. }
  12573. var yymk1 string
  12574. var yymv1 TestStruc
  12575. var yymg1, yymdn1 bool
  12576. if yybh1.MapValueReset {
  12577. yymg1 = true
  12578. }
  12579. if yyl1 != 0 {
  12580. yyhl1 := yyl1 > 0
  12581. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12582. z.DecReadMapElemKey()
  12583. if r.TryDecodeAsNil() {
  12584. yymk1 = ""
  12585. } else {
  12586. yymk1 = (string)(r.DecodeString())
  12587. }
  12588. if yymg1 {
  12589. yymv1 = yyv1[yymk1]
  12590. } else {
  12591. yymv1 = TestStruc{}
  12592. }
  12593. z.DecReadMapElemValue()
  12594. yymdn1 = false
  12595. if r.TryDecodeAsNil() {
  12596. yymdn1 = true
  12597. } else {
  12598. yymv1.CodecDecodeSelf(d)
  12599. }
  12600. if yymdn1 {
  12601. if yybh1.DeleteOnNilMapValue {
  12602. delete(yyv1, yymk1)
  12603. } else {
  12604. yyv1[yymk1] = TestStruc{}
  12605. }
  12606. } else if yyv1 != nil {
  12607. yyv1[yymk1] = yymv1
  12608. }
  12609. }
  12610. } // else len==0: TODO: Should we clear map entries?
  12611. z.DecReadMapEnd()
  12612. }
  12613. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  12614. var h codecSelfer19780
  12615. z, r := GenHelperEncoder(e)
  12616. _, _, _ = h, z, r
  12617. z.EncWriteArrayStart(len(v))
  12618. for _, yyv1 := range v {
  12619. z.EncWriteArrayElem()
  12620. if yyv1 == nil {
  12621. r.EncodeNil()
  12622. } else {
  12623. yyv1.CodecEncodeSelf(e)
  12624. }
  12625. }
  12626. z.EncWriteArrayEnd()
  12627. }
  12628. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  12629. var h codecSelfer19780
  12630. z, r := GenHelperDecoder(d)
  12631. _, _, _ = h, z, r
  12632. yyv1 := *v
  12633. yyh1, yyl1 := z.DecSliceHelperStart()
  12634. var yyc1 bool
  12635. _ = yyc1
  12636. if yyl1 == 0 {
  12637. if yyv1 == nil {
  12638. yyv1 = []*TestStruc{}
  12639. yyc1 = true
  12640. } else if len(yyv1) != 0 {
  12641. yyv1 = yyv1[:0]
  12642. yyc1 = true
  12643. }
  12644. } else {
  12645. yyhl1 := yyl1 > 0
  12646. var yyrl1 int
  12647. _ = yyrl1
  12648. if yyhl1 {
  12649. if yyl1 > cap(yyv1) {
  12650. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12651. if yyrl1 <= cap(yyv1) {
  12652. yyv1 = yyv1[:yyrl1]
  12653. } else {
  12654. yyv1 = make([]*TestStruc, yyrl1)
  12655. }
  12656. yyc1 = true
  12657. } else if yyl1 != len(yyv1) {
  12658. yyv1 = yyv1[:yyl1]
  12659. yyc1 = true
  12660. }
  12661. }
  12662. var yyj1 int
  12663. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12664. if yyj1 == 0 && yyv1 == nil {
  12665. if yyhl1 {
  12666. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12667. } else {
  12668. yyrl1 = 8
  12669. }
  12670. yyv1 = make([]*TestStruc, yyrl1)
  12671. yyc1 = true
  12672. }
  12673. yyh1.ElemContainerState(yyj1)
  12674. var yydb1 bool
  12675. if yyj1 >= len(yyv1) {
  12676. yyv1 = append(yyv1, nil)
  12677. yyc1 = true
  12678. }
  12679. if yydb1 {
  12680. z.DecSwallow()
  12681. } else {
  12682. if r.TryDecodeAsNil() {
  12683. yyv1[yyj1] = nil
  12684. } else {
  12685. if yyv1[yyj1] == nil {
  12686. yyv1[yyj1] = new(TestStruc)
  12687. }
  12688. yyv1[yyj1].CodecDecodeSelf(d)
  12689. }
  12690. }
  12691. }
  12692. if yyj1 < len(yyv1) {
  12693. yyv1 = yyv1[:yyj1]
  12694. yyc1 = true
  12695. } else if yyj1 == 0 && yyv1 == nil {
  12696. yyv1 = make([]*TestStruc, 0)
  12697. yyc1 = true
  12698. }
  12699. }
  12700. yyh1.End()
  12701. if yyc1 {
  12702. *v = yyv1
  12703. }
  12704. }
  12705. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  12706. var h codecSelfer19780
  12707. z, r := GenHelperEncoder(e)
  12708. _, _, _ = h, z, r
  12709. z.EncWriteArrayStart(len(v))
  12710. for _, yyv1 := range v {
  12711. z.EncWriteArrayElem()
  12712. if z.EncBasicHandle().StringToRaw {
  12713. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12714. } else {
  12715. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12716. }
  12717. }
  12718. z.EncWriteArrayEnd()
  12719. }
  12720. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  12721. var h codecSelfer19780
  12722. z, r := GenHelperDecoder(d)
  12723. _, _, _ = h, z, r
  12724. yyv1 := v
  12725. yyh1, yyl1 := z.DecSliceHelperStart()
  12726. if yyl1 == 0 {
  12727. } else {
  12728. yyhl1 := yyl1 > 0
  12729. var yyrl1 int
  12730. _ = yyrl1
  12731. var yyj1 int
  12732. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12733. yyh1.ElemContainerState(yyj1)
  12734. var yydb1 bool
  12735. if yyj1 >= len(yyv1) {
  12736. z.DecArrayCannotExpand(len(v), yyj1+1)
  12737. yydb1 = true
  12738. }
  12739. if yydb1 {
  12740. z.DecSwallow()
  12741. } else {
  12742. if r.TryDecodeAsNil() {
  12743. yyv1[yyj1] = ""
  12744. } else {
  12745. yyv1[yyj1] = (string)(r.DecodeString())
  12746. }
  12747. }
  12748. }
  12749. }
  12750. yyh1.End()
  12751. }
  12752. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  12753. var h codecSelfer19780
  12754. z, r := GenHelperEncoder(e)
  12755. _, _, _ = h, z, r
  12756. r.EncodeStringBytesRaw([]byte(v))
  12757. }
  12758. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  12759. var h codecSelfer19780
  12760. z, r := GenHelperDecoder(d)
  12761. _, _, _ = h, z, r
  12762. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  12763. }
  12764. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  12765. var h codecSelfer19780
  12766. z, r := GenHelperEncoder(e)
  12767. _, _, _ = h, z, r
  12768. if v == nil {
  12769. r.EncodeNil()
  12770. } else {
  12771. var sch1 []string
  12772. Lsch1:
  12773. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  12774. case timeout1 == 0: // only consume available
  12775. for {
  12776. select {
  12777. case b1 := <-v:
  12778. sch1 = append(sch1, b1)
  12779. default:
  12780. break Lsch1
  12781. }
  12782. }
  12783. case timeout1 > 0: // consume until timeout
  12784. tt1 := time.NewTimer(timeout1)
  12785. for {
  12786. select {
  12787. case b1 := <-v:
  12788. sch1 = append(sch1, b1)
  12789. case <-tt1.C:
  12790. // close(tt.C)
  12791. break Lsch1
  12792. }
  12793. }
  12794. default: // consume until close
  12795. for b1 := range v {
  12796. sch1 = append(sch1, b1)
  12797. }
  12798. }
  12799. z.EncWriteArrayStart(len(sch1))
  12800. for _, yyv1 := range sch1 {
  12801. z.EncWriteArrayElem()
  12802. if z.EncBasicHandle().StringToRaw {
  12803. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12804. } else {
  12805. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12806. }
  12807. }
  12808. z.EncWriteArrayEnd()
  12809. }
  12810. }
  12811. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  12812. var h codecSelfer19780
  12813. z, r := GenHelperDecoder(d)
  12814. _, _, _ = h, z, r
  12815. yyv1 := *v
  12816. yyh1, yyl1 := z.DecSliceHelperStart()
  12817. var yyc1 bool
  12818. _ = yyc1
  12819. if yyl1 == 0 {
  12820. if yyv1 == nil {
  12821. yyv1 = make(chan string, 0)
  12822. yyc1 = true
  12823. }
  12824. } else {
  12825. yyhl1 := yyl1 > 0
  12826. var yyrl1 int
  12827. _ = yyrl1
  12828. var yyj1 int
  12829. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12830. if yyj1 == 0 && yyv1 == nil {
  12831. if yyhl1 {
  12832. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12833. } else {
  12834. yyrl1 = 64
  12835. }
  12836. yyv1 = make(chan string, yyrl1)
  12837. yyc1 = true
  12838. }
  12839. yyh1.ElemContainerState(yyj1)
  12840. var yyvcx1 string
  12841. if r.TryDecodeAsNil() {
  12842. yyvcx1 = ""
  12843. } else {
  12844. yyvcx1 = (string)(r.DecodeString())
  12845. }
  12846. yyv1 <- yyvcx1
  12847. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  12848. }
  12849. }
  12850. yyh1.End()
  12851. if yyc1 {
  12852. *v = yyv1
  12853. }
  12854. }
  12855. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  12856. var h codecSelfer19780
  12857. z, r := GenHelperEncoder(e)
  12858. _, _, _ = h, z, r
  12859. z.EncWriteMapStart(len(v))
  12860. for yyk1, yyv1 := range v {
  12861. z.EncWriteMapElemKey()
  12862. r.EncodeBool(bool(yyk1))
  12863. z.EncWriteMapElemValue()
  12864. yy3 := &yyv1
  12865. z.EncFallback(yy3)
  12866. }
  12867. z.EncWriteMapEnd()
  12868. }
  12869. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  12870. var h codecSelfer19780
  12871. z, r := GenHelperDecoder(d)
  12872. _, _, _ = h, z, r
  12873. yyv1 := *v
  12874. yyl1 := z.DecReadMapStart()
  12875. yybh1 := z.DecBasicHandle()
  12876. if yyv1 == nil {
  12877. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1)
  12878. yyv1 = make(map[bool]struct{}, yyrl1)
  12879. *v = yyv1
  12880. }
  12881. var yymk1 bool
  12882. var yymv1 struct{}
  12883. var yymg1, yymdn1 bool
  12884. if yybh1.MapValueReset {
  12885. yymg1 = true
  12886. }
  12887. if yyl1 != 0 {
  12888. yyhl1 := yyl1 > 0
  12889. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12890. z.DecReadMapElemKey()
  12891. if r.TryDecodeAsNil() {
  12892. yymk1 = false
  12893. } else {
  12894. yymk1 = (bool)(r.DecodeBool())
  12895. }
  12896. if yymg1 {
  12897. yymv1 = yyv1[yymk1]
  12898. } else {
  12899. yymv1 = struct{}{}
  12900. }
  12901. z.DecReadMapElemValue()
  12902. yymdn1 = false
  12903. if r.TryDecodeAsNil() {
  12904. yymdn1 = true
  12905. } else {
  12906. z.DecFallback(&yymv1, false)
  12907. }
  12908. if yymdn1 {
  12909. if yybh1.DeleteOnNilMapValue {
  12910. delete(yyv1, yymk1)
  12911. } else {
  12912. yyv1[yymk1] = struct{}{}
  12913. }
  12914. } else if yyv1 != nil {
  12915. yyv1[yymk1] = yymv1
  12916. }
  12917. }
  12918. } // else len==0: TODO: Should we clear map entries?
  12919. z.DecReadMapEnd()
  12920. }
  12921. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  12922. var h codecSelfer19780
  12923. z, r := GenHelperEncoder(e)
  12924. _, _, _ = h, z, r
  12925. z.EncWriteMapStart(len(v))
  12926. for yyk1, yyv1 := range v {
  12927. z.EncWriteMapElemKey()
  12928. r.EncodeInt(int64(yyk1))
  12929. z.EncWriteMapElemValue()
  12930. if yyv1 == nil {
  12931. r.EncodeNil()
  12932. } else {
  12933. yyv1.CodecEncodeSelf(e)
  12934. }
  12935. }
  12936. z.EncWriteMapEnd()
  12937. }
  12938. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  12939. var h codecSelfer19780
  12940. z, r := GenHelperDecoder(d)
  12941. _, _, _ = h, z, r
  12942. yyv1 := *v
  12943. yyl1 := z.DecReadMapStart()
  12944. yybh1 := z.DecBasicHandle()
  12945. if yyv1 == nil {
  12946. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  12947. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  12948. *v = yyv1
  12949. }
  12950. var yymk1 int
  12951. var yymv1 wrapUint64Slice
  12952. var yymg1, yymdn1 bool
  12953. if yybh1.MapValueReset {
  12954. yymg1 = true
  12955. }
  12956. if yyl1 != 0 {
  12957. yyhl1 := yyl1 > 0
  12958. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12959. z.DecReadMapElemKey()
  12960. if r.TryDecodeAsNil() {
  12961. yymk1 = 0
  12962. } else {
  12963. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  12964. }
  12965. if yymg1 {
  12966. yymv1 = yyv1[yymk1]
  12967. } else {
  12968. yymv1 = nil
  12969. }
  12970. z.DecReadMapElemValue()
  12971. yymdn1 = false
  12972. if r.TryDecodeAsNil() {
  12973. yymdn1 = true
  12974. } else {
  12975. yymv1.CodecDecodeSelf(d)
  12976. }
  12977. if yymdn1 {
  12978. if yybh1.DeleteOnNilMapValue {
  12979. delete(yyv1, yymk1)
  12980. } else {
  12981. yyv1[yymk1] = nil
  12982. }
  12983. } else if yyv1 != nil {
  12984. yyv1[yymk1] = yymv1
  12985. }
  12986. }
  12987. } // else len==0: TODO: Should we clear map entries?
  12988. z.DecReadMapEnd()
  12989. }
  12990. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  12991. var h codecSelfer19780
  12992. z, r := GenHelperEncoder(e)
  12993. _, _, _ = h, z, r
  12994. z.EncWriteMapStart(len(v))
  12995. for yyk1, yyv1 := range v {
  12996. z.EncWriteMapElemKey()
  12997. r.EncodeFloat64(float64(yyk1))
  12998. z.EncWriteMapElemValue()
  12999. if yyv1 == nil {
  13000. r.EncodeNil()
  13001. } else {
  13002. yyv1.CodecEncodeSelf(e)
  13003. }
  13004. }
  13005. z.EncWriteMapEnd()
  13006. }
  13007. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  13008. var h codecSelfer19780
  13009. z, r := GenHelperDecoder(d)
  13010. _, _, _ = h, z, r
  13011. yyv1 := *v
  13012. yyl1 := z.DecReadMapStart()
  13013. yybh1 := z.DecBasicHandle()
  13014. if yyv1 == nil {
  13015. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  13016. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  13017. *v = yyv1
  13018. }
  13019. var yymk1 float64
  13020. var yymv1 wrapStringSlice
  13021. var yymg1, yymdn1 bool
  13022. if yybh1.MapValueReset {
  13023. yymg1 = true
  13024. }
  13025. if yyl1 != 0 {
  13026. yyhl1 := yyl1 > 0
  13027. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13028. z.DecReadMapElemKey()
  13029. if r.TryDecodeAsNil() {
  13030. yymk1 = 0
  13031. } else {
  13032. yymk1 = (float64)(r.DecodeFloat64())
  13033. }
  13034. if yymg1 {
  13035. yymv1 = yyv1[yymk1]
  13036. } else {
  13037. yymv1 = nil
  13038. }
  13039. z.DecReadMapElemValue()
  13040. yymdn1 = false
  13041. if r.TryDecodeAsNil() {
  13042. yymdn1 = true
  13043. } else {
  13044. yymv1.CodecDecodeSelf(d)
  13045. }
  13046. if yymdn1 {
  13047. if yybh1.DeleteOnNilMapValue {
  13048. delete(yyv1, yymk1)
  13049. } else {
  13050. yyv1[yymk1] = nil
  13051. }
  13052. } else if yyv1 != nil {
  13053. yyv1[yymk1] = yymv1
  13054. }
  13055. }
  13056. } // else len==0: TODO: Should we clear map entries?
  13057. z.DecReadMapEnd()
  13058. }
  13059. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  13060. var h codecSelfer19780
  13061. z, r := GenHelperEncoder(e)
  13062. _, _, _ = h, z, r
  13063. z.EncWriteMapStart(len(v))
  13064. for yyk1, yyv1 := range v {
  13065. z.EncWriteMapElemKey()
  13066. r.EncodeFloat32(float32(yyk1))
  13067. z.EncWriteMapElemValue()
  13068. if yyv1 == nil {
  13069. r.EncodeNil()
  13070. } else {
  13071. yyv1.CodecEncodeSelf(e)
  13072. }
  13073. }
  13074. z.EncWriteMapEnd()
  13075. }
  13076. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  13077. var h codecSelfer19780
  13078. z, r := GenHelperDecoder(d)
  13079. _, _, _ = h, z, r
  13080. yyv1 := *v
  13081. yyl1 := z.DecReadMapStart()
  13082. yybh1 := z.DecBasicHandle()
  13083. if yyv1 == nil {
  13084. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 28)
  13085. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  13086. *v = yyv1
  13087. }
  13088. var yymk1 float32
  13089. var yymv1 wrapStringSlice
  13090. var yymg1, yymdn1 bool
  13091. if yybh1.MapValueReset {
  13092. yymg1 = true
  13093. }
  13094. if yyl1 != 0 {
  13095. yyhl1 := yyl1 > 0
  13096. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13097. z.DecReadMapElemKey()
  13098. if r.TryDecodeAsNil() {
  13099. yymk1 = 0
  13100. } else {
  13101. yymk1 = (float32)(z.DecDecodeFloat32())
  13102. }
  13103. if yymg1 {
  13104. yymv1 = yyv1[yymk1]
  13105. } else {
  13106. yymv1 = nil
  13107. }
  13108. z.DecReadMapElemValue()
  13109. yymdn1 = false
  13110. if r.TryDecodeAsNil() {
  13111. yymdn1 = true
  13112. } else {
  13113. yymv1.CodecDecodeSelf(d)
  13114. }
  13115. if yymdn1 {
  13116. if yybh1.DeleteOnNilMapValue {
  13117. delete(yyv1, yymk1)
  13118. } else {
  13119. yyv1[yymk1] = nil
  13120. }
  13121. } else if yyv1 != nil {
  13122. yyv1[yymk1] = yymv1
  13123. }
  13124. }
  13125. } // else len==0: TODO: Should we clear map entries?
  13126. z.DecReadMapEnd()
  13127. }
  13128. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  13129. var h codecSelfer19780
  13130. z, r := GenHelperEncoder(e)
  13131. _, _, _ = h, z, r
  13132. z.EncWriteMapStart(len(v))
  13133. for yyk1, yyv1 := range v {
  13134. z.EncWriteMapElemKey()
  13135. r.EncodeUint(uint64(yyk1))
  13136. z.EncWriteMapElemValue()
  13137. if yyv1 == nil {
  13138. r.EncodeNil()
  13139. } else {
  13140. yyv1.CodecEncodeSelf(e)
  13141. }
  13142. }
  13143. z.EncWriteMapEnd()
  13144. }
  13145. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  13146. var h codecSelfer19780
  13147. z, r := GenHelperDecoder(d)
  13148. _, _, _ = h, z, r
  13149. yyv1 := *v
  13150. yyl1 := z.DecReadMapStart()
  13151. yybh1 := z.DecBasicHandle()
  13152. if yyv1 == nil {
  13153. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32)
  13154. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  13155. *v = yyv1
  13156. }
  13157. var yymk1 uint64
  13158. var yymv1 wrapStringSlice
  13159. var yymg1, yymdn1 bool
  13160. if yybh1.MapValueReset {
  13161. yymg1 = true
  13162. }
  13163. if yyl1 != 0 {
  13164. yyhl1 := yyl1 > 0
  13165. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13166. z.DecReadMapElemKey()
  13167. if r.TryDecodeAsNil() {
  13168. yymk1 = 0
  13169. } else {
  13170. yymk1 = (uint64)(r.DecodeUint64())
  13171. }
  13172. if yymg1 {
  13173. yymv1 = yyv1[yymk1]
  13174. } else {
  13175. yymv1 = nil
  13176. }
  13177. z.DecReadMapElemValue()
  13178. yymdn1 = false
  13179. if r.TryDecodeAsNil() {
  13180. yymdn1 = true
  13181. } else {
  13182. yymv1.CodecDecodeSelf(d)
  13183. }
  13184. if yymdn1 {
  13185. if yybh1.DeleteOnNilMapValue {
  13186. delete(yyv1, yymk1)
  13187. } else {
  13188. yyv1[yymk1] = nil
  13189. }
  13190. } else if yyv1 != nil {
  13191. yyv1[yymk1] = yymv1
  13192. }
  13193. }
  13194. } // else len==0: TODO: Should we clear map entries?
  13195. z.DecReadMapEnd()
  13196. }
  13197. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  13198. var h codecSelfer19780
  13199. z, r := GenHelperEncoder(e)
  13200. _, _, _ = h, z, r
  13201. z.EncWriteMapStart(len(v))
  13202. for yyk1, yyv1 := range v {
  13203. z.EncWriteMapElemKey()
  13204. yy2 := &yyk1
  13205. yy2.CodecEncodeSelf(e)
  13206. z.EncWriteMapElemValue()
  13207. if yyv1 == nil {
  13208. r.EncodeNil()
  13209. } else {
  13210. yyv1.CodecEncodeSelf(e)
  13211. }
  13212. }
  13213. z.EncWriteMapEnd()
  13214. }
  13215. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  13216. var h codecSelfer19780
  13217. z, r := GenHelperDecoder(d)
  13218. _, _, _ = h, z, r
  13219. yyv1 := *v
  13220. yyl1 := z.DecReadMapStart()
  13221. yybh1 := z.DecBasicHandle()
  13222. if yyv1 == nil {
  13223. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48)
  13224. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  13225. *v = yyv1
  13226. }
  13227. var yymk1 stringUint64T
  13228. var yymv1 wrapStringSlice
  13229. var yymg1, yymdn1 bool
  13230. if yybh1.MapValueReset {
  13231. yymg1 = true
  13232. }
  13233. if yyl1 != 0 {
  13234. yyhl1 := yyl1 > 0
  13235. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13236. z.DecReadMapElemKey()
  13237. if r.TryDecodeAsNil() {
  13238. yymk1 = stringUint64T{}
  13239. } else {
  13240. yymk1.CodecDecodeSelf(d)
  13241. }
  13242. if yymg1 {
  13243. yymv1 = yyv1[yymk1]
  13244. } else {
  13245. yymv1 = nil
  13246. }
  13247. z.DecReadMapElemValue()
  13248. yymdn1 = false
  13249. if r.TryDecodeAsNil() {
  13250. yymdn1 = true
  13251. } else {
  13252. yymv1.CodecDecodeSelf(d)
  13253. }
  13254. if yymdn1 {
  13255. if yybh1.DeleteOnNilMapValue {
  13256. delete(yyv1, yymk1)
  13257. } else {
  13258. yyv1[yymk1] = nil
  13259. }
  13260. } else if yyv1 != nil {
  13261. yyv1[yymk1] = yymv1
  13262. }
  13263. }
  13264. } // else len==0: TODO: Should we clear map entries?
  13265. z.DecReadMapEnd()
  13266. }
  13267. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  13268. var h codecSelfer19780
  13269. z, r := GenHelperEncoder(e)
  13270. _, _, _ = h, z, r
  13271. z.EncWriteArrayStart(len(v))
  13272. for _, yyv1 := range v {
  13273. z.EncWriteArrayElem()
  13274. if yyv1 == nil {
  13275. r.EncodeNil()
  13276. } else {
  13277. yyv1.CodecEncodeSelf(e)
  13278. }
  13279. }
  13280. z.EncWriteArrayEnd()
  13281. }
  13282. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  13283. var h codecSelfer19780
  13284. z, r := GenHelperDecoder(d)
  13285. _, _, _ = h, z, r
  13286. yyv1 := *v
  13287. yyh1, yyl1 := z.DecSliceHelperStart()
  13288. var yyc1 bool
  13289. _ = yyc1
  13290. if yyl1 == 0 {
  13291. if yyv1 == nil {
  13292. yyv1 = []wrapBytes{}
  13293. yyc1 = true
  13294. } else if len(yyv1) != 0 {
  13295. yyv1 = yyv1[:0]
  13296. yyc1 = true
  13297. }
  13298. } else {
  13299. yyhl1 := yyl1 > 0
  13300. var yyrl1 int
  13301. _ = yyrl1
  13302. if yyhl1 {
  13303. if yyl1 > cap(yyv1) {
  13304. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13305. if yyrl1 <= cap(yyv1) {
  13306. yyv1 = yyv1[:yyrl1]
  13307. } else {
  13308. yyv1 = make([]wrapBytes, yyrl1)
  13309. }
  13310. yyc1 = true
  13311. } else if yyl1 != len(yyv1) {
  13312. yyv1 = yyv1[:yyl1]
  13313. yyc1 = true
  13314. }
  13315. }
  13316. var yyj1 int
  13317. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13318. if yyj1 == 0 && yyv1 == nil {
  13319. if yyhl1 {
  13320. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13321. } else {
  13322. yyrl1 = 8
  13323. }
  13324. yyv1 = make([]wrapBytes, yyrl1)
  13325. yyc1 = true
  13326. }
  13327. yyh1.ElemContainerState(yyj1)
  13328. var yydb1 bool
  13329. if yyj1 >= len(yyv1) {
  13330. yyv1 = append(yyv1, nil)
  13331. yyc1 = true
  13332. }
  13333. if yydb1 {
  13334. z.DecSwallow()
  13335. } else {
  13336. if r.TryDecodeAsNil() {
  13337. yyv1[yyj1] = nil
  13338. } else {
  13339. yyv1[yyj1].CodecDecodeSelf(d)
  13340. }
  13341. }
  13342. }
  13343. if yyj1 < len(yyv1) {
  13344. yyv1 = yyv1[:yyj1]
  13345. yyc1 = true
  13346. } else if yyj1 == 0 && yyv1 == nil {
  13347. yyv1 = make([]wrapBytes, 0)
  13348. yyc1 = true
  13349. }
  13350. }
  13351. yyh1.End()
  13352. if yyc1 {
  13353. *v = yyv1
  13354. }
  13355. }
  13356. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  13357. var h codecSelfer19780
  13358. z, r := GenHelperEncoder(e)
  13359. _, _, _ = h, z, r
  13360. z.EncWriteArrayStart(len(v))
  13361. for _, yyv1 := range v {
  13362. z.EncWriteArrayElem()
  13363. yyv1.CodecEncodeSelf(e)
  13364. }
  13365. z.EncWriteArrayEnd()
  13366. }
  13367. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  13368. var h codecSelfer19780
  13369. z, r := GenHelperDecoder(d)
  13370. _, _, _ = h, z, r
  13371. yyv1 := *v
  13372. yyh1, yyl1 := z.DecSliceHelperStart()
  13373. var yyc1 bool
  13374. _ = yyc1
  13375. if yyl1 == 0 {
  13376. if yyv1 == nil {
  13377. yyv1 = []wrapUint8{}
  13378. yyc1 = true
  13379. } else if len(yyv1) != 0 {
  13380. yyv1 = yyv1[:0]
  13381. yyc1 = true
  13382. }
  13383. } else {
  13384. yyhl1 := yyl1 > 0
  13385. var yyrl1 int
  13386. _ = yyrl1
  13387. if yyhl1 {
  13388. if yyl1 > cap(yyv1) {
  13389. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13390. if yyrl1 <= cap(yyv1) {
  13391. yyv1 = yyv1[:yyrl1]
  13392. } else {
  13393. yyv1 = make([]wrapUint8, yyrl1)
  13394. }
  13395. yyc1 = true
  13396. } else if yyl1 != len(yyv1) {
  13397. yyv1 = yyv1[:yyl1]
  13398. yyc1 = true
  13399. }
  13400. }
  13401. var yyj1 int
  13402. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13403. if yyj1 == 0 && yyv1 == nil {
  13404. if yyhl1 {
  13405. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13406. } else {
  13407. yyrl1 = 8
  13408. }
  13409. yyv1 = make([]wrapUint8, yyrl1)
  13410. yyc1 = true
  13411. }
  13412. yyh1.ElemContainerState(yyj1)
  13413. var yydb1 bool
  13414. if yyj1 >= len(yyv1) {
  13415. yyv1 = append(yyv1, 0)
  13416. yyc1 = true
  13417. }
  13418. if yydb1 {
  13419. z.DecSwallow()
  13420. } else {
  13421. if r.TryDecodeAsNil() {
  13422. yyv1[yyj1] = 0
  13423. } else {
  13424. yyv1[yyj1].CodecDecodeSelf(d)
  13425. }
  13426. }
  13427. }
  13428. if yyj1 < len(yyv1) {
  13429. yyv1 = yyv1[:yyj1]
  13430. yyc1 = true
  13431. } else if yyj1 == 0 && yyv1 == nil {
  13432. yyv1 = make([]wrapUint8, 0)
  13433. yyc1 = true
  13434. }
  13435. }
  13436. yyh1.End()
  13437. if yyc1 {
  13438. *v = yyv1
  13439. }
  13440. }
  13441. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  13442. var h codecSelfer19780
  13443. z, r := GenHelperEncoder(e)
  13444. _, _, _ = h, z, r
  13445. z.EncWriteArrayStart(len(v))
  13446. for _, yyv1 := range v {
  13447. z.EncWriteArrayElem()
  13448. yy2 := &yyv1
  13449. yy2.CodecEncodeSelf(e)
  13450. }
  13451. z.EncWriteArrayEnd()
  13452. }
  13453. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  13454. var h codecSelfer19780
  13455. z, r := GenHelperDecoder(d)
  13456. _, _, _ = h, z, r
  13457. yyv1 := v
  13458. yyh1, yyl1 := z.DecSliceHelperStart()
  13459. if yyl1 == 0 {
  13460. } else {
  13461. yyhl1 := yyl1 > 0
  13462. var yyrl1 int
  13463. _ = yyrl1
  13464. var yyj1 int
  13465. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13466. yyh1.ElemContainerState(yyj1)
  13467. var yydb1 bool
  13468. if yyj1 >= len(yyv1) {
  13469. z.DecArrayCannotExpand(len(v), yyj1+1)
  13470. yydb1 = true
  13471. }
  13472. if yydb1 {
  13473. z.DecSwallow()
  13474. } else {
  13475. if r.TryDecodeAsNil() {
  13476. yyv1[yyj1] = stringUint64T{}
  13477. } else {
  13478. yyv1[yyj1].CodecDecodeSelf(d)
  13479. }
  13480. }
  13481. }
  13482. }
  13483. yyh1.End()
  13484. }
  13485. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  13486. var h codecSelfer19780
  13487. z, r := GenHelperEncoder(e)
  13488. _, _, _ = h, z, r
  13489. z.EncWriteArrayStart(len(v))
  13490. for _, yyv1 := range v {
  13491. z.EncWriteArrayElem()
  13492. r.EncodeUint(uint64(yyv1))
  13493. }
  13494. z.EncWriteArrayEnd()
  13495. }
  13496. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, 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. if r.TryDecodeAsNil() {
  13519. yyv1[yyj1] = 0
  13520. } else {
  13521. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  13522. }
  13523. }
  13524. }
  13525. }
  13526. yyh1.End()
  13527. }
  13528. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  13529. var h codecSelfer19780
  13530. z, r := GenHelperEncoder(e)
  13531. _, _, _ = h, z, r
  13532. z.EncWriteArrayStart(len(v))
  13533. for _, yyv1 := range v {
  13534. z.EncWriteArrayElem()
  13535. if yyv1 == nil {
  13536. r.EncodeNil()
  13537. } else {
  13538. h.encArray4uint64((*[4]uint64)(yyv1), e)
  13539. }
  13540. }
  13541. z.EncWriteArrayEnd()
  13542. }
  13543. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  13544. var h codecSelfer19780
  13545. z, r := GenHelperDecoder(d)
  13546. _, _, _ = h, z, r
  13547. yyv1 := *v
  13548. yyh1, yyl1 := z.DecSliceHelperStart()
  13549. var yyc1 bool
  13550. _ = yyc1
  13551. if yyl1 == 0 {
  13552. if yyv1 == nil {
  13553. yyv1 = []*[4]uint64{}
  13554. yyc1 = true
  13555. } else if len(yyv1) != 0 {
  13556. yyv1 = yyv1[:0]
  13557. yyc1 = true
  13558. }
  13559. } else {
  13560. yyhl1 := yyl1 > 0
  13561. var yyrl1 int
  13562. _ = yyrl1
  13563. if yyhl1 {
  13564. if yyl1 > cap(yyv1) {
  13565. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13566. if yyrl1 <= cap(yyv1) {
  13567. yyv1 = yyv1[:yyrl1]
  13568. } else {
  13569. yyv1 = make([]*[4]uint64, yyrl1)
  13570. }
  13571. yyc1 = true
  13572. } else if yyl1 != len(yyv1) {
  13573. yyv1 = yyv1[:yyl1]
  13574. yyc1 = true
  13575. }
  13576. }
  13577. var yyj1 int
  13578. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13579. if yyj1 == 0 && yyv1 == nil {
  13580. if yyhl1 {
  13581. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13582. } else {
  13583. yyrl1 = 8
  13584. }
  13585. yyv1 = make([]*[4]uint64, yyrl1)
  13586. yyc1 = true
  13587. }
  13588. yyh1.ElemContainerState(yyj1)
  13589. var yydb1 bool
  13590. if yyj1 >= len(yyv1) {
  13591. yyv1 = append(yyv1, nil)
  13592. yyc1 = true
  13593. }
  13594. if yydb1 {
  13595. z.DecSwallow()
  13596. } else {
  13597. if r.TryDecodeAsNil() {
  13598. yyv1[yyj1] = nil
  13599. } else {
  13600. if yyv1[yyj1] == nil {
  13601. yyv1[yyj1] = new([4]uint64)
  13602. }
  13603. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  13604. }
  13605. }
  13606. }
  13607. if yyj1 < len(yyv1) {
  13608. yyv1 = yyv1[:yyj1]
  13609. yyc1 = true
  13610. } else if yyj1 == 0 && yyv1 == nil {
  13611. yyv1 = make([]*[4]uint64, 0)
  13612. yyc1 = true
  13613. }
  13614. }
  13615. yyh1.End()
  13616. if yyc1 {
  13617. *v = yyv1
  13618. }
  13619. }
  13620. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  13621. var h codecSelfer19780
  13622. z, r := GenHelperEncoder(e)
  13623. _, _, _ = h, z, r
  13624. z.EncWriteMapStart(len(v))
  13625. for yyk1, yyv1 := range v {
  13626. z.EncWriteMapElemKey()
  13627. if z.EncBasicHandle().StringToRaw {
  13628. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13629. } else {
  13630. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13631. }
  13632. z.EncWriteMapElemValue()
  13633. if yyv1 == nil {
  13634. r.EncodeNil()
  13635. } else {
  13636. yyv1.CodecEncodeSelf(e)
  13637. }
  13638. }
  13639. z.EncWriteMapEnd()
  13640. }
  13641. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  13642. var h codecSelfer19780
  13643. z, r := GenHelperDecoder(d)
  13644. _, _, _ = h, z, r
  13645. yyv1 := *v
  13646. yyl1 := z.DecReadMapStart()
  13647. yybh1 := z.DecBasicHandle()
  13648. if yyv1 == nil {
  13649. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24)
  13650. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  13651. *v = yyv1
  13652. }
  13653. var yymk1 string
  13654. var yymv1 *TestStrucFlex
  13655. var yymg1, yymdn1, yyms1, yymok1 bool
  13656. if yybh1.MapValueReset {
  13657. yymg1 = true
  13658. }
  13659. if yyl1 != 0 {
  13660. yyhl1 := yyl1 > 0
  13661. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13662. z.DecReadMapElemKey()
  13663. if r.TryDecodeAsNil() {
  13664. yymk1 = ""
  13665. } else {
  13666. yymk1 = (string)(r.DecodeString())
  13667. }
  13668. yyms1 = true
  13669. if yymg1 {
  13670. yymv1, yymok1 = yyv1[yymk1]
  13671. if yymok1 {
  13672. yyms1 = false
  13673. }
  13674. } else {
  13675. yymv1 = nil
  13676. }
  13677. z.DecReadMapElemValue()
  13678. yymdn1 = false
  13679. if r.TryDecodeAsNil() {
  13680. yymdn1 = true
  13681. } else {
  13682. if yymv1 == nil {
  13683. yymv1 = new(TestStrucFlex)
  13684. }
  13685. yymv1.CodecDecodeSelf(d)
  13686. }
  13687. if yymdn1 {
  13688. if yybh1.DeleteOnNilMapValue {
  13689. delete(yyv1, yymk1)
  13690. } else {
  13691. yyv1[yymk1] = nil
  13692. }
  13693. } else if yyms1 && yyv1 != nil {
  13694. yyv1[yymk1] = yymv1
  13695. }
  13696. }
  13697. } // else len==0: TODO: Should we clear map entries?
  13698. z.DecReadMapEnd()
  13699. }
  13700. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  13701. var h codecSelfer19780
  13702. z, r := GenHelperEncoder(e)
  13703. _, _, _ = h, z, r
  13704. z.EncWriteMapStart(len(v))
  13705. for yyk1, yyv1 := range v {
  13706. z.EncWriteMapElemKey()
  13707. if z.EncBasicHandle().StringToRaw {
  13708. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13709. } else {
  13710. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13711. }
  13712. z.EncWriteMapElemValue()
  13713. yy3 := &yyv1
  13714. yy3.CodecEncodeSelf(e)
  13715. }
  13716. z.EncWriteMapEnd()
  13717. }
  13718. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  13719. var h codecSelfer19780
  13720. z, r := GenHelperDecoder(d)
  13721. _, _, _ = h, z, r
  13722. yyv1 := *v
  13723. yyl1 := z.DecReadMapStart()
  13724. yybh1 := z.DecBasicHandle()
  13725. if yyv1 == nil {
  13726. yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 1520)
  13727. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  13728. *v = yyv1
  13729. }
  13730. var yymk1 string
  13731. var yymv1 TestStrucFlex
  13732. var yymg1, yymdn1 bool
  13733. if yybh1.MapValueReset {
  13734. yymg1 = true
  13735. }
  13736. if yyl1 != 0 {
  13737. yyhl1 := yyl1 > 0
  13738. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13739. z.DecReadMapElemKey()
  13740. if r.TryDecodeAsNil() {
  13741. yymk1 = ""
  13742. } else {
  13743. yymk1 = (string)(r.DecodeString())
  13744. }
  13745. if yymg1 {
  13746. yymv1 = yyv1[yymk1]
  13747. } else {
  13748. yymv1 = TestStrucFlex{}
  13749. }
  13750. z.DecReadMapElemValue()
  13751. yymdn1 = false
  13752. if r.TryDecodeAsNil() {
  13753. yymdn1 = true
  13754. } else {
  13755. yymv1.CodecDecodeSelf(d)
  13756. }
  13757. if yymdn1 {
  13758. if yybh1.DeleteOnNilMapValue {
  13759. delete(yyv1, yymk1)
  13760. } else {
  13761. yyv1[yymk1] = TestStrucFlex{}
  13762. }
  13763. } else if yyv1 != nil {
  13764. yyv1[yymk1] = yymv1
  13765. }
  13766. }
  13767. } // else len==0: TODO: Should we clear map entries?
  13768. z.DecReadMapEnd()
  13769. }
  13770. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  13771. var h codecSelfer19780
  13772. z, r := GenHelperEncoder(e)
  13773. _, _, _ = h, z, r
  13774. z.EncWriteArrayStart(len(v))
  13775. for _, yyv1 := range v {
  13776. z.EncWriteArrayElem()
  13777. if yyv1 == nil {
  13778. r.EncodeNil()
  13779. } else {
  13780. yyv1.CodecEncodeSelf(e)
  13781. }
  13782. }
  13783. z.EncWriteArrayEnd()
  13784. }
  13785. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  13786. var h codecSelfer19780
  13787. z, r := GenHelperDecoder(d)
  13788. _, _, _ = h, z, r
  13789. yyv1 := *v
  13790. yyh1, yyl1 := z.DecSliceHelperStart()
  13791. var yyc1 bool
  13792. _ = yyc1
  13793. if yyl1 == 0 {
  13794. if yyv1 == nil {
  13795. yyv1 = []*TestStrucFlex{}
  13796. yyc1 = true
  13797. } else if len(yyv1) != 0 {
  13798. yyv1 = yyv1[:0]
  13799. yyc1 = true
  13800. }
  13801. } else {
  13802. yyhl1 := yyl1 > 0
  13803. var yyrl1 int
  13804. _ = yyrl1
  13805. if yyhl1 {
  13806. if yyl1 > cap(yyv1) {
  13807. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13808. if yyrl1 <= cap(yyv1) {
  13809. yyv1 = yyv1[:yyrl1]
  13810. } else {
  13811. yyv1 = make([]*TestStrucFlex, yyrl1)
  13812. }
  13813. yyc1 = true
  13814. } else if yyl1 != len(yyv1) {
  13815. yyv1 = yyv1[:yyl1]
  13816. yyc1 = true
  13817. }
  13818. }
  13819. var yyj1 int
  13820. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13821. if yyj1 == 0 && yyv1 == nil {
  13822. if yyhl1 {
  13823. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13824. } else {
  13825. yyrl1 = 8
  13826. }
  13827. yyv1 = make([]*TestStrucFlex, yyrl1)
  13828. yyc1 = true
  13829. }
  13830. yyh1.ElemContainerState(yyj1)
  13831. var yydb1 bool
  13832. if yyj1 >= len(yyv1) {
  13833. yyv1 = append(yyv1, nil)
  13834. yyc1 = true
  13835. }
  13836. if yydb1 {
  13837. z.DecSwallow()
  13838. } else {
  13839. if r.TryDecodeAsNil() {
  13840. yyv1[yyj1] = nil
  13841. } else {
  13842. if yyv1[yyj1] == nil {
  13843. yyv1[yyj1] = new(TestStrucFlex)
  13844. }
  13845. yyv1[yyj1].CodecDecodeSelf(d)
  13846. }
  13847. }
  13848. }
  13849. if yyj1 < len(yyv1) {
  13850. yyv1 = yyv1[:yyj1]
  13851. yyc1 = true
  13852. } else if yyj1 == 0 && yyv1 == nil {
  13853. yyv1 = make([]*TestStrucFlex, 0)
  13854. yyc1 = true
  13855. }
  13856. }
  13857. yyh1.End()
  13858. if yyc1 {
  13859. *v = yyv1
  13860. }
  13861. }