values_codecgen_generated_test.go 328 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245
  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. codecSelferValueTypeNil19780 = 1
  22. codecSelferBitsize19780 = uint8(32 << (^uint(0) >> 63))
  23. codecSelferDecContainerLenNil19780 = -2147483648
  24. )
  25. var (
  26. errCodecSelferOnlyMapOrArrayEncodeToStruct19780 = errors.New(`only encoded map or array can be decoded into a struct`)
  27. )
  28. type codecSelfer19780 struct{}
  29. func codecSelfer19780False() bool { return false }
  30. func init() {
  31. if GenVersion != 14 {
  32. _, file, _, _ := runtime.Caller(0)
  33. ver := strconv.FormatInt(int64(GenVersion), 10)
  34. panic("codecgen version mismatch: current: 14, need " + ver + ". Re-generate file: " + file)
  35. }
  36. if false { // reference the types, but skip this branch at build/run time
  37. var _ time.Time
  38. }
  39. }
  40. func (x wrapSliceUint64) CodecEncodeSelf(e *Encoder) {
  41. var h codecSelfer19780
  42. z, r := GenHelperEncoder(e)
  43. _, _, _ = h, z, r
  44. if x == nil {
  45. r.EncodeNil()
  46. } else {
  47. h.encwrapSliceUint64((wrapSliceUint64)(x), e)
  48. } // end block: if x slice == nil
  49. }
  50. func (x *wrapSliceUint64) CodecDecodeSelf(d *Decoder) {
  51. var h codecSelfer19780
  52. z, r := GenHelperDecoder(d)
  53. _, _, _ = h, z, r
  54. h.decwrapSliceUint64((*wrapSliceUint64)(x), d)
  55. }
  56. func (x wrapSliceString) CodecEncodeSelf(e *Encoder) {
  57. var h codecSelfer19780
  58. z, r := GenHelperEncoder(e)
  59. _, _, _ = h, z, r
  60. if x == nil {
  61. r.EncodeNil()
  62. } else {
  63. h.encwrapSliceString((wrapSliceString)(x), e)
  64. } // end block: if x slice == nil
  65. }
  66. func (x *wrapSliceString) CodecDecodeSelf(d *Decoder) {
  67. var h codecSelfer19780
  68. z, r := GenHelperDecoder(d)
  69. _, _, _ = h, z, r
  70. h.decwrapSliceString((*wrapSliceString)(x), d)
  71. }
  72. func (x wrapUint64) CodecEncodeSelf(e *Encoder) {
  73. var h codecSelfer19780
  74. z, r := GenHelperEncoder(e)
  75. _, _, _ = h, z, r
  76. r.EncodeUint(uint64(x))
  77. }
  78. func (x *wrapUint64) CodecDecodeSelf(d *Decoder) {
  79. var h codecSelfer19780
  80. z, r := GenHelperDecoder(d)
  81. _, _, _ = h, z, r
  82. *x = (wrapUint64)(r.DecodeUint64())
  83. }
  84. func (x wrapString) CodecEncodeSelf(e *Encoder) {
  85. var h codecSelfer19780
  86. z, r := GenHelperEncoder(e)
  87. _, _, _ = h, z, r
  88. if z.EncBasicHandle().StringToRaw {
  89. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  90. } else {
  91. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  92. }
  93. }
  94. func (x *wrapString) CodecDecodeSelf(d *Decoder) {
  95. var h codecSelfer19780
  96. z, r := GenHelperDecoder(d)
  97. _, _, _ = h, z, r
  98. *x = (wrapString)(string(r.DecodeStringAsBytes()))
  99. }
  100. func (x wrapUint64Slice) CodecEncodeSelf(e *Encoder) {
  101. var h codecSelfer19780
  102. z, r := GenHelperEncoder(e)
  103. _, _, _ = h, z, r
  104. if x == nil {
  105. r.EncodeNil()
  106. } else {
  107. h.encwrapUint64Slice((wrapUint64Slice)(x), e)
  108. } // end block: if x slice == nil
  109. }
  110. func (x *wrapUint64Slice) CodecDecodeSelf(d *Decoder) {
  111. var h codecSelfer19780
  112. z, r := GenHelperDecoder(d)
  113. _, _, _ = h, z, r
  114. h.decwrapUint64Slice((*wrapUint64Slice)(x), d)
  115. }
  116. func (x wrapStringSlice) CodecEncodeSelf(e *Encoder) {
  117. var h codecSelfer19780
  118. z, r := GenHelperEncoder(e)
  119. _, _, _ = h, z, r
  120. if x == nil {
  121. r.EncodeNil()
  122. } else {
  123. h.encwrapStringSlice((wrapStringSlice)(x), e)
  124. } // end block: if x slice == nil
  125. }
  126. func (x *wrapStringSlice) CodecDecodeSelf(d *Decoder) {
  127. var h codecSelfer19780
  128. z, r := GenHelperDecoder(d)
  129. _, _, _ = h, z, r
  130. h.decwrapStringSlice((*wrapStringSlice)(x), d)
  131. }
  132. func (x *stringUint64T) CodecEncodeSelf(e *Encoder) {
  133. var h codecSelfer19780
  134. z, r := GenHelperEncoder(e)
  135. _, _, _ = h, z, r
  136. if x == nil {
  137. r.EncodeNil()
  138. } else {
  139. yysep2 := !z.EncBinary()
  140. yy2arr2 := z.EncBasicHandle().StructToArray
  141. _, _ = yysep2, yy2arr2
  142. const yyr2 bool = false // struct tag has 'toArray'
  143. if yyr2 || yy2arr2 {
  144. z.EncWriteArrayStart(2)
  145. z.EncWriteArrayElem()
  146. if z.EncBasicHandle().StringToRaw {
  147. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  148. } else {
  149. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  150. }
  151. z.EncWriteArrayElem()
  152. r.EncodeUint(uint64(x.U))
  153. z.EncWriteArrayEnd()
  154. } else {
  155. z.EncWriteMapStart(2)
  156. z.EncWriteMapElemKey()
  157. if z.IsJSONHandle() {
  158. z.WriteStr("\"S\"")
  159. } else {
  160. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  161. }
  162. z.EncWriteMapElemValue()
  163. if z.EncBasicHandle().StringToRaw {
  164. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  165. } else {
  166. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  167. }
  168. z.EncWriteMapElemKey()
  169. if z.IsJSONHandle() {
  170. z.WriteStr("\"U\"")
  171. } else {
  172. r.EncodeStringEnc(codecSelferCcUTF819780, `U`)
  173. }
  174. z.EncWriteMapElemValue()
  175. r.EncodeUint(uint64(x.U))
  176. z.EncWriteMapEnd()
  177. }
  178. }
  179. }
  180. func (x *stringUint64T) CodecDecodeSelf(d *Decoder) {
  181. var h codecSelfer19780
  182. z, r := GenHelperDecoder(d)
  183. _, _, _ = h, z, r
  184. yyct2 := r.ContainerType()
  185. if yyct2 == codecSelferValueTypeNil19780 {
  186. *(x) = stringUint64T{}
  187. } else if yyct2 == codecSelferValueTypeMap19780 {
  188. yyl2 := z.DecReadMapStart()
  189. if yyl2 == 0 {
  190. } else {
  191. x.codecDecodeSelfFromMap(yyl2, d)
  192. }
  193. z.DecReadMapEnd()
  194. } else if yyct2 == codecSelferValueTypeArray19780 {
  195. yyl2 := z.DecReadArrayStart()
  196. if yyl2 != 0 {
  197. x.codecDecodeSelfFromArray(yyl2, d)
  198. }
  199. z.DecReadArrayEnd()
  200. } else {
  201. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  202. }
  203. }
  204. func (x *stringUint64T) codecDecodeSelfFromMap(l int, d *Decoder) {
  205. var h codecSelfer19780
  206. z, r := GenHelperDecoder(d)
  207. _, _, _ = h, z, r
  208. var yyhl3 bool = l >= 0
  209. for yyj3 := 0; ; yyj3++ {
  210. if yyhl3 {
  211. if yyj3 >= l {
  212. break
  213. }
  214. } else {
  215. if r.CheckBreak() {
  216. break
  217. }
  218. }
  219. z.DecReadMapElemKey()
  220. yys3 := z.StringView(r.DecodeStringAsBytes())
  221. z.DecReadMapElemValue()
  222. switch yys3 {
  223. case "S":
  224. x.S = (string)(string(r.DecodeStringAsBytes()))
  225. case "U":
  226. x.U = (uint64)(r.DecodeUint64())
  227. default:
  228. z.DecStructFieldNotFound(-1, yys3)
  229. } // end switch yys3
  230. } // end for yyj3
  231. }
  232. func (x *stringUint64T) codecDecodeSelfFromArray(l int, d *Decoder) {
  233. var h codecSelfer19780
  234. z, r := GenHelperDecoder(d)
  235. _, _, _ = h, z, r
  236. var yyj6 int
  237. var yyb6 bool
  238. var yyhl6 bool = l >= 0
  239. yyj6++
  240. if yyhl6 {
  241. yyb6 = yyj6 > l
  242. } else {
  243. yyb6 = r.CheckBreak()
  244. }
  245. if yyb6 {
  246. z.DecReadArrayEnd()
  247. return
  248. }
  249. z.DecReadArrayElem()
  250. x.S = (string)(string(r.DecodeStringAsBytes()))
  251. yyj6++
  252. if yyhl6 {
  253. yyb6 = yyj6 > l
  254. } else {
  255. yyb6 = r.CheckBreak()
  256. }
  257. if yyb6 {
  258. z.DecReadArrayEnd()
  259. return
  260. }
  261. z.DecReadArrayElem()
  262. x.U = (uint64)(r.DecodeUint64())
  263. for {
  264. yyj6++
  265. if yyhl6 {
  266. yyb6 = yyj6 > l
  267. } else {
  268. yyb6 = r.CheckBreak()
  269. }
  270. if yyb6 {
  271. break
  272. }
  273. z.DecReadArrayElem()
  274. z.DecStructFieldNotFound(yyj6-1, "")
  275. }
  276. }
  277. func (x *AnonInTestStruc) CodecEncodeSelf(e *Encoder) {
  278. var h codecSelfer19780
  279. z, r := GenHelperEncoder(e)
  280. _, _, _ = h, z, r
  281. if x == nil {
  282. r.EncodeNil()
  283. } else {
  284. yysep2 := !z.EncBinary()
  285. yy2arr2 := z.EncBasicHandle().StructToArray
  286. _, _ = yysep2, yy2arr2
  287. const yyr2 bool = false // struct tag has 'toArray'
  288. if yyr2 || yy2arr2 {
  289. z.EncWriteArrayStart(15)
  290. z.EncWriteArrayElem()
  291. if z.EncBasicHandle().StringToRaw {
  292. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  293. } else {
  294. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  295. }
  296. z.EncWriteArrayElem()
  297. r.EncodeInt(int64(x.AI64))
  298. z.EncWriteArrayElem()
  299. r.EncodeInt(int64(x.AI16))
  300. z.EncWriteArrayElem()
  301. r.EncodeUint(uint64(x.AUi64))
  302. z.EncWriteArrayElem()
  303. if x.ASslice == nil {
  304. r.EncodeNil()
  305. } else {
  306. z.F.EncSliceStringV(x.ASslice, e)
  307. } // end block: if x.ASslice slice == nil
  308. z.EncWriteArrayElem()
  309. if x.AI64slice == nil {
  310. r.EncodeNil()
  311. } else {
  312. z.F.EncSliceInt64V(x.AI64slice, e)
  313. } // end block: if x.AI64slice slice == nil
  314. z.EncWriteArrayElem()
  315. if x.AUi64slice == nil {
  316. r.EncodeNil()
  317. } else {
  318. z.F.EncSliceUint64V(x.AUi64slice, e)
  319. } // end block: if x.AUi64slice slice == nil
  320. z.EncWriteArrayElem()
  321. if x.AF64slice == nil {
  322. r.EncodeNil()
  323. } else {
  324. z.F.EncSliceFloat64V(x.AF64slice, e)
  325. } // end block: if x.AF64slice slice == nil
  326. z.EncWriteArrayElem()
  327. if x.AF32slice == nil {
  328. r.EncodeNil()
  329. } else {
  330. z.F.EncSliceFloat32V(x.AF32slice, e)
  331. } // end block: if x.AF32slice slice == nil
  332. z.EncWriteArrayElem()
  333. if x.AMSU16 == nil {
  334. r.EncodeNil()
  335. } else {
  336. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  337. } // end block: if x.AMSU16 map == nil
  338. z.EncWriteArrayElem()
  339. yy28 := &x.AI64arr0
  340. h.encArray0int64((*[0]int64)(yy28), e)
  341. z.EncWriteArrayElem()
  342. if x.AI64slice0 == nil {
  343. r.EncodeNil()
  344. } else {
  345. z.F.EncSliceInt64V(x.AI64slice0, e)
  346. } // end block: if x.AI64slice0 slice == nil
  347. z.EncWriteArrayElem()
  348. if x.AUi64sliceN == nil {
  349. r.EncodeNil()
  350. } else {
  351. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  352. } // end block: if x.AUi64sliceN slice == nil
  353. z.EncWriteArrayElem()
  354. if x.AMSU16N == nil {
  355. r.EncodeNil()
  356. } else {
  357. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  358. } // end block: if x.AMSU16N map == nil
  359. z.EncWriteArrayElem()
  360. if x.AMSU16E == nil {
  361. r.EncodeNil()
  362. } else {
  363. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  364. } // end block: if x.AMSU16E map == nil
  365. z.EncWriteArrayEnd()
  366. } else {
  367. z.EncWriteMapStart(15)
  368. z.EncWriteMapElemKey()
  369. if z.IsJSONHandle() {
  370. z.WriteStr("\"AS\"")
  371. } else {
  372. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  373. }
  374. z.EncWriteMapElemValue()
  375. if z.EncBasicHandle().StringToRaw {
  376. r.EncodeStringBytesRaw(z.BytesView(string(x.AS)))
  377. } else {
  378. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AS))
  379. }
  380. z.EncWriteMapElemKey()
  381. if z.IsJSONHandle() {
  382. z.WriteStr("\"AI64\"")
  383. } else {
  384. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  385. }
  386. z.EncWriteMapElemValue()
  387. r.EncodeInt(int64(x.AI64))
  388. z.EncWriteMapElemKey()
  389. if z.IsJSONHandle() {
  390. z.WriteStr("\"AI16\"")
  391. } else {
  392. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  393. }
  394. z.EncWriteMapElemValue()
  395. r.EncodeInt(int64(x.AI16))
  396. z.EncWriteMapElemKey()
  397. if z.IsJSONHandle() {
  398. z.WriteStr("\"AUi64\"")
  399. } else {
  400. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  401. }
  402. z.EncWriteMapElemValue()
  403. r.EncodeUint(uint64(x.AUi64))
  404. z.EncWriteMapElemKey()
  405. if z.IsJSONHandle() {
  406. z.WriteStr("\"ASslice\"")
  407. } else {
  408. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  409. }
  410. z.EncWriteMapElemValue()
  411. if x.ASslice == nil {
  412. r.EncodeNil()
  413. } else {
  414. z.F.EncSliceStringV(x.ASslice, e)
  415. } // end block: if x.ASslice slice == nil
  416. z.EncWriteMapElemKey()
  417. if z.IsJSONHandle() {
  418. z.WriteStr("\"AI64slice\"")
  419. } else {
  420. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  421. }
  422. z.EncWriteMapElemValue()
  423. if x.AI64slice == nil {
  424. r.EncodeNil()
  425. } else {
  426. z.F.EncSliceInt64V(x.AI64slice, e)
  427. } // end block: if x.AI64slice slice == nil
  428. z.EncWriteMapElemKey()
  429. if z.IsJSONHandle() {
  430. z.WriteStr("\"AUi64slice\"")
  431. } else {
  432. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  433. }
  434. z.EncWriteMapElemValue()
  435. if x.AUi64slice == nil {
  436. r.EncodeNil()
  437. } else {
  438. z.F.EncSliceUint64V(x.AUi64slice, e)
  439. } // end block: if x.AUi64slice slice == nil
  440. z.EncWriteMapElemKey()
  441. if z.IsJSONHandle() {
  442. z.WriteStr("\"AF64slice\"")
  443. } else {
  444. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  445. }
  446. z.EncWriteMapElemValue()
  447. if x.AF64slice == nil {
  448. r.EncodeNil()
  449. } else {
  450. z.F.EncSliceFloat64V(x.AF64slice, e)
  451. } // end block: if x.AF64slice slice == nil
  452. z.EncWriteMapElemKey()
  453. if z.IsJSONHandle() {
  454. z.WriteStr("\"AF32slice\"")
  455. } else {
  456. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  457. }
  458. z.EncWriteMapElemValue()
  459. if x.AF32slice == nil {
  460. r.EncodeNil()
  461. } else {
  462. z.F.EncSliceFloat32V(x.AF32slice, e)
  463. } // end block: if x.AF32slice slice == nil
  464. z.EncWriteMapElemKey()
  465. if z.IsJSONHandle() {
  466. z.WriteStr("\"AMSU16\"")
  467. } else {
  468. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  469. }
  470. z.EncWriteMapElemValue()
  471. if x.AMSU16 == nil {
  472. r.EncodeNil()
  473. } else {
  474. h.encMapstringuint16((map[string]uint16)(x.AMSU16), e)
  475. } // end block: if x.AMSU16 map == nil
  476. z.EncWriteMapElemKey()
  477. if z.IsJSONHandle() {
  478. z.WriteStr("\"AI64arr0\"")
  479. } else {
  480. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  481. }
  482. z.EncWriteMapElemValue()
  483. yy44 := &x.AI64arr0
  484. h.encArray0int64((*[0]int64)(yy44), e)
  485. z.EncWriteMapElemKey()
  486. if z.IsJSONHandle() {
  487. z.WriteStr("\"AI64slice0\"")
  488. } else {
  489. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  490. }
  491. z.EncWriteMapElemValue()
  492. if x.AI64slice0 == nil {
  493. r.EncodeNil()
  494. } else {
  495. z.F.EncSliceInt64V(x.AI64slice0, e)
  496. } // end block: if x.AI64slice0 slice == nil
  497. z.EncWriteMapElemKey()
  498. if z.IsJSONHandle() {
  499. z.WriteStr("\"AUi64sliceN\"")
  500. } else {
  501. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  502. }
  503. z.EncWriteMapElemValue()
  504. if x.AUi64sliceN == nil {
  505. r.EncodeNil()
  506. } else {
  507. z.F.EncSliceUint64V(x.AUi64sliceN, e)
  508. } // end block: if x.AUi64sliceN slice == nil
  509. z.EncWriteMapElemKey()
  510. if z.IsJSONHandle() {
  511. z.WriteStr("\"AMSU16N\"")
  512. } else {
  513. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  514. }
  515. z.EncWriteMapElemValue()
  516. if x.AMSU16N == nil {
  517. r.EncodeNil()
  518. } else {
  519. h.encMapstringuint16((map[string]uint16)(x.AMSU16N), e)
  520. } // end block: if x.AMSU16N map == nil
  521. z.EncWriteMapElemKey()
  522. if z.IsJSONHandle() {
  523. z.WriteStr("\"AMSU16E\"")
  524. } else {
  525. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  526. }
  527. z.EncWriteMapElemValue()
  528. if x.AMSU16E == nil {
  529. r.EncodeNil()
  530. } else {
  531. h.encMapstringuint16((map[string]uint16)(x.AMSU16E), e)
  532. } // end block: if x.AMSU16E map == nil
  533. z.EncWriteMapEnd()
  534. }
  535. }
  536. }
  537. func (x *AnonInTestStruc) CodecDecodeSelf(d *Decoder) {
  538. var h codecSelfer19780
  539. z, r := GenHelperDecoder(d)
  540. _, _, _ = h, z, r
  541. yyct2 := r.ContainerType()
  542. if yyct2 == codecSelferValueTypeNil19780 {
  543. *(x) = AnonInTestStruc{}
  544. } else if yyct2 == codecSelferValueTypeMap19780 {
  545. yyl2 := z.DecReadMapStart()
  546. if yyl2 == 0 {
  547. } else {
  548. x.codecDecodeSelfFromMap(yyl2, d)
  549. }
  550. z.DecReadMapEnd()
  551. } else if yyct2 == codecSelferValueTypeArray19780 {
  552. yyl2 := z.DecReadArrayStart()
  553. if yyl2 != 0 {
  554. x.codecDecodeSelfFromArray(yyl2, d)
  555. }
  556. z.DecReadArrayEnd()
  557. } else {
  558. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  559. }
  560. }
  561. func (x *AnonInTestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  562. var h codecSelfer19780
  563. z, r := GenHelperDecoder(d)
  564. _, _, _ = h, z, r
  565. var yyhl3 bool = l >= 0
  566. for yyj3 := 0; ; yyj3++ {
  567. if yyhl3 {
  568. if yyj3 >= l {
  569. break
  570. }
  571. } else {
  572. if r.CheckBreak() {
  573. break
  574. }
  575. }
  576. z.DecReadMapElemKey()
  577. yys3 := z.StringView(r.DecodeStringAsBytes())
  578. z.DecReadMapElemValue()
  579. switch yys3 {
  580. case "AS":
  581. x.AS = (string)(string(r.DecodeStringAsBytes()))
  582. case "AI64":
  583. x.AI64 = (int64)(r.DecodeInt64())
  584. case "AI16":
  585. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  586. case "AUi64":
  587. x.AUi64 = (uint64)(r.DecodeUint64())
  588. case "ASslice":
  589. z.F.DecSliceStringX(&x.ASslice, d)
  590. case "AI64slice":
  591. z.F.DecSliceInt64X(&x.AI64slice, d)
  592. case "AUi64slice":
  593. z.F.DecSliceUint64X(&x.AUi64slice, d)
  594. case "AF64slice":
  595. z.F.DecSliceFloat64X(&x.AF64slice, d)
  596. case "AF32slice":
  597. z.F.DecSliceFloat32X(&x.AF32slice, d)
  598. case "AMSU16":
  599. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  600. case "AI64arr0":
  601. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  602. case "AI64slice0":
  603. z.F.DecSliceInt64X(&x.AI64slice0, d)
  604. case "AUi64sliceN":
  605. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  606. case "AMSU16N":
  607. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  608. case "AMSU16E":
  609. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  610. default:
  611. z.DecStructFieldNotFound(-1, yys3)
  612. } // end switch yys3
  613. } // end for yyj3
  614. }
  615. func (x *AnonInTestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  616. var h codecSelfer19780
  617. z, r := GenHelperDecoder(d)
  618. _, _, _ = h, z, r
  619. var yyj30 int
  620. var yyb30 bool
  621. var yyhl30 bool = l >= 0
  622. yyj30++
  623. if yyhl30 {
  624. yyb30 = yyj30 > l
  625. } else {
  626. yyb30 = r.CheckBreak()
  627. }
  628. if yyb30 {
  629. z.DecReadArrayEnd()
  630. return
  631. }
  632. z.DecReadArrayElem()
  633. x.AS = (string)(string(r.DecodeStringAsBytes()))
  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. x.AI64 = (int64)(r.DecodeInt64())
  646. yyj30++
  647. if yyhl30 {
  648. yyb30 = yyj30 > l
  649. } else {
  650. yyb30 = r.CheckBreak()
  651. }
  652. if yyb30 {
  653. z.DecReadArrayEnd()
  654. return
  655. }
  656. z.DecReadArrayElem()
  657. x.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  658. yyj30++
  659. if yyhl30 {
  660. yyb30 = yyj30 > l
  661. } else {
  662. yyb30 = r.CheckBreak()
  663. }
  664. if yyb30 {
  665. z.DecReadArrayEnd()
  666. return
  667. }
  668. z.DecReadArrayElem()
  669. x.AUi64 = (uint64)(r.DecodeUint64())
  670. yyj30++
  671. if yyhl30 {
  672. yyb30 = yyj30 > l
  673. } else {
  674. yyb30 = r.CheckBreak()
  675. }
  676. if yyb30 {
  677. z.DecReadArrayEnd()
  678. return
  679. }
  680. z.DecReadArrayElem()
  681. z.F.DecSliceStringX(&x.ASslice, d)
  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. z.F.DecSliceInt64X(&x.AI64slice, d)
  694. yyj30++
  695. if yyhl30 {
  696. yyb30 = yyj30 > l
  697. } else {
  698. yyb30 = r.CheckBreak()
  699. }
  700. if yyb30 {
  701. z.DecReadArrayEnd()
  702. return
  703. }
  704. z.DecReadArrayElem()
  705. z.F.DecSliceUint64X(&x.AUi64slice, d)
  706. yyj30++
  707. if yyhl30 {
  708. yyb30 = yyj30 > l
  709. } else {
  710. yyb30 = r.CheckBreak()
  711. }
  712. if yyb30 {
  713. z.DecReadArrayEnd()
  714. return
  715. }
  716. z.DecReadArrayElem()
  717. z.F.DecSliceFloat64X(&x.AF64slice, d)
  718. yyj30++
  719. if yyhl30 {
  720. yyb30 = yyj30 > l
  721. } else {
  722. yyb30 = r.CheckBreak()
  723. }
  724. if yyb30 {
  725. z.DecReadArrayEnd()
  726. return
  727. }
  728. z.DecReadArrayElem()
  729. z.F.DecSliceFloat32X(&x.AF32slice, d)
  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. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16), d)
  742. yyj30++
  743. if yyhl30 {
  744. yyb30 = yyj30 > l
  745. } else {
  746. yyb30 = r.CheckBreak()
  747. }
  748. if yyb30 {
  749. z.DecReadArrayEnd()
  750. return
  751. }
  752. z.DecReadArrayElem()
  753. h.decArray0int64((*[0]int64)(&x.AI64arr0), d)
  754. yyj30++
  755. if yyhl30 {
  756. yyb30 = yyj30 > l
  757. } else {
  758. yyb30 = r.CheckBreak()
  759. }
  760. if yyb30 {
  761. z.DecReadArrayEnd()
  762. return
  763. }
  764. z.DecReadArrayElem()
  765. z.F.DecSliceInt64X(&x.AI64slice0, d)
  766. yyj30++
  767. if yyhl30 {
  768. yyb30 = yyj30 > l
  769. } else {
  770. yyb30 = r.CheckBreak()
  771. }
  772. if yyb30 {
  773. z.DecReadArrayEnd()
  774. return
  775. }
  776. z.DecReadArrayElem()
  777. z.F.DecSliceUint64X(&x.AUi64sliceN, d)
  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. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16N), d)
  790. yyj30++
  791. if yyhl30 {
  792. yyb30 = yyj30 > l
  793. } else {
  794. yyb30 = r.CheckBreak()
  795. }
  796. if yyb30 {
  797. z.DecReadArrayEnd()
  798. return
  799. }
  800. z.DecReadArrayElem()
  801. h.decMapstringuint16((*map[string]uint16)(&x.AMSU16E), d)
  802. for {
  803. yyj30++
  804. if yyhl30 {
  805. yyb30 = yyj30 > l
  806. } else {
  807. yyb30 = r.CheckBreak()
  808. }
  809. if yyb30 {
  810. break
  811. }
  812. z.DecReadArrayElem()
  813. z.DecStructFieldNotFound(yyj30-1, "")
  814. }
  815. }
  816. func (x *testSimpleFields) CodecEncodeSelf(e *Encoder) {
  817. var h codecSelfer19780
  818. z, r := GenHelperEncoder(e)
  819. _, _, _ = h, z, r
  820. if x == nil {
  821. r.EncodeNil()
  822. } else {
  823. yysep2 := !z.EncBinary()
  824. yy2arr2 := z.EncBasicHandle().StructToArray
  825. _, _ = yysep2, yy2arr2
  826. const yyr2 bool = false // struct tag has 'toArray'
  827. if yyr2 || yy2arr2 {
  828. z.EncWriteArrayStart(17)
  829. z.EncWriteArrayElem()
  830. if z.EncBasicHandle().StringToRaw {
  831. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  832. } else {
  833. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  834. }
  835. z.EncWriteArrayElem()
  836. r.EncodeInt(int64(x.I64))
  837. z.EncWriteArrayElem()
  838. r.EncodeInt(int64(x.I8))
  839. z.EncWriteArrayElem()
  840. r.EncodeUint(uint64(x.Ui64))
  841. z.EncWriteArrayElem()
  842. r.EncodeUint(uint64(x.Ui8))
  843. z.EncWriteArrayElem()
  844. r.EncodeFloat64(float64(x.F64))
  845. z.EncWriteArrayElem()
  846. r.EncodeFloat32(float32(x.F32))
  847. z.EncWriteArrayElem()
  848. r.EncodeBool(bool(x.B))
  849. z.EncWriteArrayElem()
  850. if x.Sslice == nil {
  851. r.EncodeNil()
  852. } else {
  853. z.F.EncSliceStringV(x.Sslice, e)
  854. } // end block: if x.Sslice slice == nil
  855. z.EncWriteArrayElem()
  856. if x.I16slice == nil {
  857. r.EncodeNil()
  858. } else {
  859. z.F.EncSliceInt16V(x.I16slice, e)
  860. } // end block: if x.I16slice slice == nil
  861. z.EncWriteArrayElem()
  862. if x.Ui64slice == nil {
  863. r.EncodeNil()
  864. } else {
  865. z.F.EncSliceUint64V(x.Ui64slice, e)
  866. } // end block: if x.Ui64slice slice == nil
  867. z.EncWriteArrayElem()
  868. if x.Ui8slice == nil {
  869. r.EncodeNil()
  870. } else {
  871. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  872. } // end block: if x.Ui8slice slice == nil
  873. z.EncWriteArrayElem()
  874. if x.Bslice == nil {
  875. r.EncodeNil()
  876. } else {
  877. z.F.EncSliceBoolV(x.Bslice, e)
  878. } // end block: if x.Bslice slice == nil
  879. z.EncWriteArrayElem()
  880. if x.Iptrslice == nil {
  881. r.EncodeNil()
  882. } else {
  883. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  884. } // end block: if x.Iptrslice slice == nil
  885. z.EncWriteArrayElem()
  886. x.WrapSliceInt64.CodecEncodeSelf(e)
  887. z.EncWriteArrayElem()
  888. x.WrapSliceString.CodecEncodeSelf(e)
  889. z.EncWriteArrayElem()
  890. if x.Msi64 == nil {
  891. r.EncodeNil()
  892. } else {
  893. z.F.EncMapStringInt64V(x.Msi64, e)
  894. } // end block: if x.Msi64 map == nil
  895. z.EncWriteArrayEnd()
  896. } else {
  897. z.EncWriteMapStart(17)
  898. z.EncWriteMapElemKey()
  899. if z.IsJSONHandle() {
  900. z.WriteStr("\"S\"")
  901. } else {
  902. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  903. }
  904. z.EncWriteMapElemValue()
  905. if z.EncBasicHandle().StringToRaw {
  906. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  907. } else {
  908. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  909. }
  910. z.EncWriteMapElemKey()
  911. if z.IsJSONHandle() {
  912. z.WriteStr("\"I64\"")
  913. } else {
  914. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  915. }
  916. z.EncWriteMapElemValue()
  917. r.EncodeInt(int64(x.I64))
  918. z.EncWriteMapElemKey()
  919. if z.IsJSONHandle() {
  920. z.WriteStr("\"I8\"")
  921. } else {
  922. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  923. }
  924. z.EncWriteMapElemValue()
  925. r.EncodeInt(int64(x.I8))
  926. z.EncWriteMapElemKey()
  927. if z.IsJSONHandle() {
  928. z.WriteStr("\"Ui64\"")
  929. } else {
  930. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  931. }
  932. z.EncWriteMapElemValue()
  933. r.EncodeUint(uint64(x.Ui64))
  934. z.EncWriteMapElemKey()
  935. if z.IsJSONHandle() {
  936. z.WriteStr("\"Ui8\"")
  937. } else {
  938. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  939. }
  940. z.EncWriteMapElemValue()
  941. r.EncodeUint(uint64(x.Ui8))
  942. z.EncWriteMapElemKey()
  943. if z.IsJSONHandle() {
  944. z.WriteStr("\"F64\"")
  945. } else {
  946. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  947. }
  948. z.EncWriteMapElemValue()
  949. r.EncodeFloat64(float64(x.F64))
  950. z.EncWriteMapElemKey()
  951. if z.IsJSONHandle() {
  952. z.WriteStr("\"F32\"")
  953. } else {
  954. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  955. }
  956. z.EncWriteMapElemValue()
  957. r.EncodeFloat32(float32(x.F32))
  958. z.EncWriteMapElemKey()
  959. if z.IsJSONHandle() {
  960. z.WriteStr("\"B\"")
  961. } else {
  962. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  963. }
  964. z.EncWriteMapElemValue()
  965. r.EncodeBool(bool(x.B))
  966. z.EncWriteMapElemKey()
  967. if z.IsJSONHandle() {
  968. z.WriteStr("\"Sslice\"")
  969. } else {
  970. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  971. }
  972. z.EncWriteMapElemValue()
  973. if x.Sslice == nil {
  974. r.EncodeNil()
  975. } else {
  976. z.F.EncSliceStringV(x.Sslice, e)
  977. } // end block: if x.Sslice slice == nil
  978. z.EncWriteMapElemKey()
  979. if z.IsJSONHandle() {
  980. z.WriteStr("\"I16slice\"")
  981. } else {
  982. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  983. }
  984. z.EncWriteMapElemValue()
  985. if x.I16slice == nil {
  986. r.EncodeNil()
  987. } else {
  988. z.F.EncSliceInt16V(x.I16slice, e)
  989. } // end block: if x.I16slice slice == nil
  990. z.EncWriteMapElemKey()
  991. if z.IsJSONHandle() {
  992. z.WriteStr("\"Ui64slice\"")
  993. } else {
  994. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  995. }
  996. z.EncWriteMapElemValue()
  997. if x.Ui64slice == nil {
  998. r.EncodeNil()
  999. } else {
  1000. z.F.EncSliceUint64V(x.Ui64slice, e)
  1001. } // end block: if x.Ui64slice slice == nil
  1002. z.EncWriteMapElemKey()
  1003. if z.IsJSONHandle() {
  1004. z.WriteStr("\"Ui8slice\"")
  1005. } else {
  1006. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1007. }
  1008. z.EncWriteMapElemValue()
  1009. if x.Ui8slice == nil {
  1010. r.EncodeNil()
  1011. } else {
  1012. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1013. } // end block: if x.Ui8slice slice == nil
  1014. z.EncWriteMapElemKey()
  1015. if z.IsJSONHandle() {
  1016. z.WriteStr("\"Bslice\"")
  1017. } else {
  1018. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1019. }
  1020. z.EncWriteMapElemValue()
  1021. if x.Bslice == nil {
  1022. r.EncodeNil()
  1023. } else {
  1024. z.F.EncSliceBoolV(x.Bslice, e)
  1025. } // end block: if x.Bslice slice == nil
  1026. z.EncWriteMapElemKey()
  1027. if z.IsJSONHandle() {
  1028. z.WriteStr("\"Iptrslice\"")
  1029. } else {
  1030. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1031. }
  1032. z.EncWriteMapElemValue()
  1033. if x.Iptrslice == nil {
  1034. r.EncodeNil()
  1035. } else {
  1036. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1037. } // end block: if x.Iptrslice slice == nil
  1038. z.EncWriteMapElemKey()
  1039. if z.IsJSONHandle() {
  1040. z.WriteStr("\"WrapSliceInt64\"")
  1041. } else {
  1042. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  1043. }
  1044. z.EncWriteMapElemValue()
  1045. x.WrapSliceInt64.CodecEncodeSelf(e)
  1046. z.EncWriteMapElemKey()
  1047. if z.IsJSONHandle() {
  1048. z.WriteStr("\"WrapSliceString\"")
  1049. } else {
  1050. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  1051. }
  1052. z.EncWriteMapElemValue()
  1053. x.WrapSliceString.CodecEncodeSelf(e)
  1054. z.EncWriteMapElemKey()
  1055. if z.IsJSONHandle() {
  1056. z.WriteStr("\"Msi64\"")
  1057. } else {
  1058. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  1059. }
  1060. z.EncWriteMapElemValue()
  1061. if x.Msi64 == nil {
  1062. r.EncodeNil()
  1063. } else {
  1064. z.F.EncMapStringInt64V(x.Msi64, e)
  1065. } // end block: if x.Msi64 map == nil
  1066. z.EncWriteMapEnd()
  1067. }
  1068. }
  1069. }
  1070. func (x *testSimpleFields) CodecDecodeSelf(d *Decoder) {
  1071. var h codecSelfer19780
  1072. z, r := GenHelperDecoder(d)
  1073. _, _, _ = h, z, r
  1074. yyct2 := r.ContainerType()
  1075. if yyct2 == codecSelferValueTypeNil19780 {
  1076. *(x) = testSimpleFields{}
  1077. } else if yyct2 == codecSelferValueTypeMap19780 {
  1078. yyl2 := z.DecReadMapStart()
  1079. if yyl2 == 0 {
  1080. } else {
  1081. x.codecDecodeSelfFromMap(yyl2, d)
  1082. }
  1083. z.DecReadMapEnd()
  1084. } else if yyct2 == codecSelferValueTypeArray19780 {
  1085. yyl2 := z.DecReadArrayStart()
  1086. if yyl2 != 0 {
  1087. x.codecDecodeSelfFromArray(yyl2, d)
  1088. }
  1089. z.DecReadArrayEnd()
  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. x.S = (string)(string(r.DecodeStringAsBytes()))
  1115. case "I64":
  1116. x.I64 = (int64)(r.DecodeInt64())
  1117. case "I8":
  1118. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1119. case "Ui64":
  1120. x.Ui64 = (uint64)(r.DecodeUint64())
  1121. case "Ui8":
  1122. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1123. case "F64":
  1124. x.F64 = (float64)(r.DecodeFloat64())
  1125. case "F32":
  1126. x.F32 = (float32)(z.DecDecodeFloat32())
  1127. case "B":
  1128. x.B = (bool)(r.DecodeBool())
  1129. case "Sslice":
  1130. z.F.DecSliceStringX(&x.Sslice, d)
  1131. case "I16slice":
  1132. z.F.DecSliceInt16X(&x.I16slice, d)
  1133. case "Ui64slice":
  1134. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1135. case "Ui8slice":
  1136. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1137. case "Bslice":
  1138. z.F.DecSliceBoolX(&x.Bslice, d)
  1139. case "Iptrslice":
  1140. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1141. case "WrapSliceInt64":
  1142. x.WrapSliceInt64.CodecDecodeSelf(d)
  1143. case "WrapSliceString":
  1144. x.WrapSliceString.CodecDecodeSelf(d)
  1145. case "Msi64":
  1146. z.F.DecMapStringInt64X(&x.Msi64, d)
  1147. default:
  1148. z.DecStructFieldNotFound(-1, yys3)
  1149. } // end switch yys3
  1150. } // end for yyj3
  1151. }
  1152. func (x *testSimpleFields) codecDecodeSelfFromArray(l int, d *Decoder) {
  1153. var h codecSelfer19780
  1154. z, r := GenHelperDecoder(d)
  1155. _, _, _ = h, z, r
  1156. var yyj28 int
  1157. var yyb28 bool
  1158. var yyhl28 bool = l >= 0
  1159. yyj28++
  1160. if yyhl28 {
  1161. yyb28 = yyj28 > l
  1162. } else {
  1163. yyb28 = r.CheckBreak()
  1164. }
  1165. if yyb28 {
  1166. z.DecReadArrayEnd()
  1167. return
  1168. }
  1169. z.DecReadArrayElem()
  1170. x.S = (string)(string(r.DecodeStringAsBytes()))
  1171. yyj28++
  1172. if yyhl28 {
  1173. yyb28 = yyj28 > l
  1174. } else {
  1175. yyb28 = r.CheckBreak()
  1176. }
  1177. if yyb28 {
  1178. z.DecReadArrayEnd()
  1179. return
  1180. }
  1181. z.DecReadArrayElem()
  1182. x.I64 = (int64)(r.DecodeInt64())
  1183. yyj28++
  1184. if yyhl28 {
  1185. yyb28 = yyj28 > l
  1186. } else {
  1187. yyb28 = r.CheckBreak()
  1188. }
  1189. if yyb28 {
  1190. z.DecReadArrayEnd()
  1191. return
  1192. }
  1193. z.DecReadArrayElem()
  1194. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  1195. yyj28++
  1196. if yyhl28 {
  1197. yyb28 = yyj28 > l
  1198. } else {
  1199. yyb28 = r.CheckBreak()
  1200. }
  1201. if yyb28 {
  1202. z.DecReadArrayEnd()
  1203. return
  1204. }
  1205. z.DecReadArrayElem()
  1206. x.Ui64 = (uint64)(r.DecodeUint64())
  1207. yyj28++
  1208. if yyhl28 {
  1209. yyb28 = yyj28 > l
  1210. } else {
  1211. yyb28 = r.CheckBreak()
  1212. }
  1213. if yyb28 {
  1214. z.DecReadArrayEnd()
  1215. return
  1216. }
  1217. z.DecReadArrayElem()
  1218. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  1219. yyj28++
  1220. if yyhl28 {
  1221. yyb28 = yyj28 > l
  1222. } else {
  1223. yyb28 = r.CheckBreak()
  1224. }
  1225. if yyb28 {
  1226. z.DecReadArrayEnd()
  1227. return
  1228. }
  1229. z.DecReadArrayElem()
  1230. x.F64 = (float64)(r.DecodeFloat64())
  1231. yyj28++
  1232. if yyhl28 {
  1233. yyb28 = yyj28 > l
  1234. } else {
  1235. yyb28 = r.CheckBreak()
  1236. }
  1237. if yyb28 {
  1238. z.DecReadArrayEnd()
  1239. return
  1240. }
  1241. z.DecReadArrayElem()
  1242. x.F32 = (float32)(z.DecDecodeFloat32())
  1243. yyj28++
  1244. if yyhl28 {
  1245. yyb28 = yyj28 > l
  1246. } else {
  1247. yyb28 = r.CheckBreak()
  1248. }
  1249. if yyb28 {
  1250. z.DecReadArrayEnd()
  1251. return
  1252. }
  1253. z.DecReadArrayElem()
  1254. x.B = (bool)(r.DecodeBool())
  1255. yyj28++
  1256. if yyhl28 {
  1257. yyb28 = yyj28 > l
  1258. } else {
  1259. yyb28 = r.CheckBreak()
  1260. }
  1261. if yyb28 {
  1262. z.DecReadArrayEnd()
  1263. return
  1264. }
  1265. z.DecReadArrayElem()
  1266. z.F.DecSliceStringX(&x.Sslice, d)
  1267. yyj28++
  1268. if yyhl28 {
  1269. yyb28 = yyj28 > l
  1270. } else {
  1271. yyb28 = r.CheckBreak()
  1272. }
  1273. if yyb28 {
  1274. z.DecReadArrayEnd()
  1275. return
  1276. }
  1277. z.DecReadArrayElem()
  1278. z.F.DecSliceInt16X(&x.I16slice, d)
  1279. yyj28++
  1280. if yyhl28 {
  1281. yyb28 = yyj28 > l
  1282. } else {
  1283. yyb28 = r.CheckBreak()
  1284. }
  1285. if yyb28 {
  1286. z.DecReadArrayEnd()
  1287. return
  1288. }
  1289. z.DecReadArrayElem()
  1290. z.F.DecSliceUint64X(&x.Ui64slice, d)
  1291. yyj28++
  1292. if yyhl28 {
  1293. yyb28 = yyj28 > l
  1294. } else {
  1295. yyb28 = r.CheckBreak()
  1296. }
  1297. if yyb28 {
  1298. z.DecReadArrayEnd()
  1299. return
  1300. }
  1301. z.DecReadArrayElem()
  1302. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  1303. yyj28++
  1304. if yyhl28 {
  1305. yyb28 = yyj28 > l
  1306. } else {
  1307. yyb28 = r.CheckBreak()
  1308. }
  1309. if yyb28 {
  1310. z.DecReadArrayEnd()
  1311. return
  1312. }
  1313. z.DecReadArrayElem()
  1314. z.F.DecSliceBoolX(&x.Bslice, d)
  1315. yyj28++
  1316. if yyhl28 {
  1317. yyb28 = yyj28 > l
  1318. } else {
  1319. yyb28 = r.CheckBreak()
  1320. }
  1321. if yyb28 {
  1322. z.DecReadArrayEnd()
  1323. return
  1324. }
  1325. z.DecReadArrayElem()
  1326. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  1327. yyj28++
  1328. if yyhl28 {
  1329. yyb28 = yyj28 > l
  1330. } else {
  1331. yyb28 = r.CheckBreak()
  1332. }
  1333. if yyb28 {
  1334. z.DecReadArrayEnd()
  1335. return
  1336. }
  1337. z.DecReadArrayElem()
  1338. x.WrapSliceInt64.CodecDecodeSelf(d)
  1339. yyj28++
  1340. if yyhl28 {
  1341. yyb28 = yyj28 > l
  1342. } else {
  1343. yyb28 = r.CheckBreak()
  1344. }
  1345. if yyb28 {
  1346. z.DecReadArrayEnd()
  1347. return
  1348. }
  1349. z.DecReadArrayElem()
  1350. x.WrapSliceString.CodecDecodeSelf(d)
  1351. yyj28++
  1352. if yyhl28 {
  1353. yyb28 = yyj28 > l
  1354. } else {
  1355. yyb28 = r.CheckBreak()
  1356. }
  1357. if yyb28 {
  1358. z.DecReadArrayEnd()
  1359. return
  1360. }
  1361. z.DecReadArrayElem()
  1362. z.F.DecMapStringInt64X(&x.Msi64, d)
  1363. for {
  1364. yyj28++
  1365. if yyhl28 {
  1366. yyb28 = yyj28 > l
  1367. } else {
  1368. yyb28 = r.CheckBreak()
  1369. }
  1370. if yyb28 {
  1371. break
  1372. }
  1373. z.DecReadArrayElem()
  1374. z.DecStructFieldNotFound(yyj28-1, "")
  1375. }
  1376. }
  1377. func (x *TestStrucCommon) CodecEncodeSelf(e *Encoder) {
  1378. var h codecSelfer19780
  1379. z, r := GenHelperEncoder(e)
  1380. _, _, _ = h, z, r
  1381. if x == nil {
  1382. r.EncodeNil()
  1383. } else {
  1384. yysep2 := !z.EncBinary()
  1385. yy2arr2 := z.EncBasicHandle().StructToArray
  1386. _, _ = yysep2, yy2arr2
  1387. const yyr2 bool = false // struct tag has 'toArray'
  1388. var yyn54 bool = x.Nint64 == nil
  1389. if yyr2 || yy2arr2 {
  1390. z.EncWriteArrayStart(52)
  1391. z.EncWriteArrayElem()
  1392. if z.EncBasicHandle().StringToRaw {
  1393. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1394. } else {
  1395. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1396. }
  1397. z.EncWriteArrayElem()
  1398. r.EncodeInt(int64(x.I64))
  1399. z.EncWriteArrayElem()
  1400. r.EncodeInt(int64(x.I32))
  1401. z.EncWriteArrayElem()
  1402. r.EncodeInt(int64(x.I16))
  1403. z.EncWriteArrayElem()
  1404. r.EncodeInt(int64(x.I8))
  1405. z.EncWriteArrayElem()
  1406. r.EncodeInt(int64(x.I64n))
  1407. z.EncWriteArrayElem()
  1408. r.EncodeInt(int64(x.I32n))
  1409. z.EncWriteArrayElem()
  1410. r.EncodeInt(int64(x.I16n))
  1411. z.EncWriteArrayElem()
  1412. r.EncodeInt(int64(x.I8n))
  1413. z.EncWriteArrayElem()
  1414. r.EncodeUint(uint64(x.Ui64))
  1415. z.EncWriteArrayElem()
  1416. r.EncodeUint(uint64(x.Ui32))
  1417. z.EncWriteArrayElem()
  1418. r.EncodeUint(uint64(x.Ui16))
  1419. z.EncWriteArrayElem()
  1420. r.EncodeUint(uint64(x.Ui8))
  1421. z.EncWriteArrayElem()
  1422. r.EncodeFloat64(float64(x.F64))
  1423. z.EncWriteArrayElem()
  1424. r.EncodeFloat32(float32(x.F32))
  1425. z.EncWriteArrayElem()
  1426. r.EncodeBool(bool(x.B))
  1427. z.EncWriteArrayElem()
  1428. r.EncodeUint(uint64(x.By))
  1429. z.EncWriteArrayElem()
  1430. if x.Sslice == nil {
  1431. r.EncodeNil()
  1432. } else {
  1433. z.F.EncSliceStringV(x.Sslice, e)
  1434. } // end block: if x.Sslice slice == nil
  1435. z.EncWriteArrayElem()
  1436. if x.I64slice == nil {
  1437. r.EncodeNil()
  1438. } else {
  1439. z.F.EncSliceInt64V(x.I64slice, e)
  1440. } // end block: if x.I64slice slice == nil
  1441. z.EncWriteArrayElem()
  1442. if x.I16slice == nil {
  1443. r.EncodeNil()
  1444. } else {
  1445. z.F.EncSliceInt16V(x.I16slice, e)
  1446. } // end block: if x.I16slice slice == nil
  1447. z.EncWriteArrayElem()
  1448. if x.Ui64slice == nil {
  1449. r.EncodeNil()
  1450. } else {
  1451. z.F.EncSliceUint64V(x.Ui64slice, e)
  1452. } // end block: if x.Ui64slice slice == nil
  1453. z.EncWriteArrayElem()
  1454. if x.Ui8slice == nil {
  1455. r.EncodeNil()
  1456. } else {
  1457. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1458. } // end block: if x.Ui8slice slice == nil
  1459. z.EncWriteArrayElem()
  1460. if x.Bslice == nil {
  1461. r.EncodeNil()
  1462. } else {
  1463. z.F.EncSliceBoolV(x.Bslice, e)
  1464. } // end block: if x.Bslice slice == nil
  1465. z.EncWriteArrayElem()
  1466. if x.Byslice == nil {
  1467. r.EncodeNil()
  1468. } else {
  1469. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1470. } // end block: if x.Byslice slice == nil
  1471. z.EncWriteArrayElem()
  1472. if x.BytesSlice == nil {
  1473. r.EncodeNil()
  1474. } else {
  1475. z.F.EncSliceBytesV(x.BytesSlice, e)
  1476. } // end block: if x.BytesSlice slice == nil
  1477. z.EncWriteArrayElem()
  1478. if x.Iptrslice == nil {
  1479. r.EncodeNil()
  1480. } else {
  1481. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1482. } // end block: if x.Iptrslice slice == nil
  1483. z.EncWriteArrayElem()
  1484. x.WrapSliceInt64.CodecEncodeSelf(e)
  1485. z.EncWriteArrayElem()
  1486. x.WrapSliceString.CodecEncodeSelf(e)
  1487. z.EncWriteArrayElem()
  1488. if x.Msi64 == nil {
  1489. r.EncodeNil()
  1490. } else {
  1491. z.F.EncMapStringInt64V(x.Msi64, e)
  1492. } // end block: if x.Msi64 map == nil
  1493. z.EncWriteArrayElem()
  1494. if x.Msbytes == nil {
  1495. r.EncodeNil()
  1496. } else {
  1497. z.F.EncMapStringBytesV(x.Msbytes, e)
  1498. } // end block: if x.Msbytes map == nil
  1499. z.EncWriteArrayElem()
  1500. yy85 := &x.Simplef
  1501. yy85.CodecEncodeSelf(e)
  1502. z.EncWriteArrayElem()
  1503. if x.SstrUi64T == nil {
  1504. r.EncodeNil()
  1505. } else {
  1506. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1507. } // end block: if x.SstrUi64T slice == nil
  1508. z.EncWriteArrayElem()
  1509. if x.MstrUi64T == nil {
  1510. r.EncodeNil()
  1511. } else {
  1512. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1513. } // end block: if x.MstrUi64T map == nil
  1514. z.EncWriteArrayElem()
  1515. if z.EncBasicHandle().StringToRaw {
  1516. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1517. } else {
  1518. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1519. }
  1520. z.EncWriteArrayElem()
  1521. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1522. z.EncWriteArrayElem()
  1523. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1524. z.EncWriteArrayElem()
  1525. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1526. z.EncWriteArrayElem()
  1527. if x.AnonInTestStruc.ASslice == nil {
  1528. r.EncodeNil()
  1529. } else {
  1530. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1531. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  1532. z.EncWriteArrayElem()
  1533. if x.AnonInTestStruc.AI64slice == nil {
  1534. r.EncodeNil()
  1535. } else {
  1536. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1537. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  1538. z.EncWriteArrayElem()
  1539. if x.AnonInTestStruc.AUi64slice == nil {
  1540. r.EncodeNil()
  1541. } else {
  1542. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  1543. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  1544. z.EncWriteArrayElem()
  1545. if x.AnonInTestStruc.AF64slice == nil {
  1546. r.EncodeNil()
  1547. } else {
  1548. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  1549. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  1550. z.EncWriteArrayElem()
  1551. if x.AnonInTestStruc.AF32slice == nil {
  1552. r.EncodeNil()
  1553. } else {
  1554. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  1555. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  1556. z.EncWriteArrayElem()
  1557. if x.AnonInTestStruc.AMSU16 == nil {
  1558. r.EncodeNil()
  1559. } else {
  1560. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  1561. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  1562. z.EncWriteArrayElem()
  1563. yy99 := &x.AnonInTestStruc.AI64arr0
  1564. h.encArray0int64((*[0]int64)(yy99), e)
  1565. z.EncWriteArrayElem()
  1566. if x.AnonInTestStruc.AI64slice0 == nil {
  1567. r.EncodeNil()
  1568. } else {
  1569. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  1570. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  1571. z.EncWriteArrayElem()
  1572. if x.AnonInTestStruc.AUi64sliceN == nil {
  1573. r.EncodeNil()
  1574. } else {
  1575. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  1576. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  1577. z.EncWriteArrayElem()
  1578. if x.AnonInTestStruc.AMSU16N == nil {
  1579. r.EncodeNil()
  1580. } else {
  1581. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  1582. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  1583. z.EncWriteArrayElem()
  1584. if x.AnonInTestStruc.AMSU16E == nil {
  1585. r.EncodeNil()
  1586. } else {
  1587. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  1588. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  1589. z.EncWriteArrayElem()
  1590. yy105 := &x.NotAnon
  1591. yy105.CodecEncodeSelf(e)
  1592. z.EncWriteArrayElem()
  1593. if x.Nmap == nil {
  1594. r.EncodeNil()
  1595. } else {
  1596. z.F.EncMapStringBoolV(x.Nmap, e)
  1597. } // end block: if x.Nmap map == nil
  1598. z.EncWriteArrayElem()
  1599. if x.Nslice == nil {
  1600. r.EncodeNil()
  1601. } else {
  1602. r.EncodeStringBytesRaw([]byte(x.Nslice))
  1603. } // end block: if x.Nslice slice == nil
  1604. if yyn54 {
  1605. z.EncWriteArrayElem()
  1606. r.EncodeNil()
  1607. } else {
  1608. z.EncWriteArrayElem()
  1609. yy109 := *x.Nint64
  1610. r.EncodeInt(int64(yy109))
  1611. }
  1612. z.EncWriteArrayEnd()
  1613. } else {
  1614. z.EncWriteMapStart(52)
  1615. z.EncWriteMapElemKey()
  1616. if z.IsJSONHandle() {
  1617. z.WriteStr("\"S\"")
  1618. } else {
  1619. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  1620. }
  1621. z.EncWriteMapElemValue()
  1622. if z.EncBasicHandle().StringToRaw {
  1623. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  1624. } else {
  1625. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  1626. }
  1627. z.EncWriteMapElemKey()
  1628. if z.IsJSONHandle() {
  1629. z.WriteStr("\"I64\"")
  1630. } else {
  1631. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  1632. }
  1633. z.EncWriteMapElemValue()
  1634. r.EncodeInt(int64(x.I64))
  1635. z.EncWriteMapElemKey()
  1636. if z.IsJSONHandle() {
  1637. z.WriteStr("\"I32\"")
  1638. } else {
  1639. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  1640. }
  1641. z.EncWriteMapElemValue()
  1642. r.EncodeInt(int64(x.I32))
  1643. z.EncWriteMapElemKey()
  1644. if z.IsJSONHandle() {
  1645. z.WriteStr("\"I16\"")
  1646. } else {
  1647. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  1648. }
  1649. z.EncWriteMapElemValue()
  1650. r.EncodeInt(int64(x.I16))
  1651. z.EncWriteMapElemKey()
  1652. if z.IsJSONHandle() {
  1653. z.WriteStr("\"I8\"")
  1654. } else {
  1655. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  1656. }
  1657. z.EncWriteMapElemValue()
  1658. r.EncodeInt(int64(x.I8))
  1659. z.EncWriteMapElemKey()
  1660. if z.IsJSONHandle() {
  1661. z.WriteStr("\"I64n\"")
  1662. } else {
  1663. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  1664. }
  1665. z.EncWriteMapElemValue()
  1666. r.EncodeInt(int64(x.I64n))
  1667. z.EncWriteMapElemKey()
  1668. if z.IsJSONHandle() {
  1669. z.WriteStr("\"I32n\"")
  1670. } else {
  1671. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  1672. }
  1673. z.EncWriteMapElemValue()
  1674. r.EncodeInt(int64(x.I32n))
  1675. z.EncWriteMapElemKey()
  1676. if z.IsJSONHandle() {
  1677. z.WriteStr("\"I16n\"")
  1678. } else {
  1679. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  1680. }
  1681. z.EncWriteMapElemValue()
  1682. r.EncodeInt(int64(x.I16n))
  1683. z.EncWriteMapElemKey()
  1684. if z.IsJSONHandle() {
  1685. z.WriteStr("\"I8n\"")
  1686. } else {
  1687. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  1688. }
  1689. z.EncWriteMapElemValue()
  1690. r.EncodeInt(int64(x.I8n))
  1691. z.EncWriteMapElemKey()
  1692. if z.IsJSONHandle() {
  1693. z.WriteStr("\"Ui64\"")
  1694. } else {
  1695. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  1696. }
  1697. z.EncWriteMapElemValue()
  1698. r.EncodeUint(uint64(x.Ui64))
  1699. z.EncWriteMapElemKey()
  1700. if z.IsJSONHandle() {
  1701. z.WriteStr("\"Ui32\"")
  1702. } else {
  1703. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  1704. }
  1705. z.EncWriteMapElemValue()
  1706. r.EncodeUint(uint64(x.Ui32))
  1707. z.EncWriteMapElemKey()
  1708. if z.IsJSONHandle() {
  1709. z.WriteStr("\"Ui16\"")
  1710. } else {
  1711. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  1712. }
  1713. z.EncWriteMapElemValue()
  1714. r.EncodeUint(uint64(x.Ui16))
  1715. z.EncWriteMapElemKey()
  1716. if z.IsJSONHandle() {
  1717. z.WriteStr("\"Ui8\"")
  1718. } else {
  1719. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  1720. }
  1721. z.EncWriteMapElemValue()
  1722. r.EncodeUint(uint64(x.Ui8))
  1723. z.EncWriteMapElemKey()
  1724. if z.IsJSONHandle() {
  1725. z.WriteStr("\"F64\"")
  1726. } else {
  1727. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  1728. }
  1729. z.EncWriteMapElemValue()
  1730. r.EncodeFloat64(float64(x.F64))
  1731. z.EncWriteMapElemKey()
  1732. if z.IsJSONHandle() {
  1733. z.WriteStr("\"F32\"")
  1734. } else {
  1735. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  1736. }
  1737. z.EncWriteMapElemValue()
  1738. r.EncodeFloat32(float32(x.F32))
  1739. z.EncWriteMapElemKey()
  1740. if z.IsJSONHandle() {
  1741. z.WriteStr("\"B\"")
  1742. } else {
  1743. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  1744. }
  1745. z.EncWriteMapElemValue()
  1746. r.EncodeBool(bool(x.B))
  1747. z.EncWriteMapElemKey()
  1748. if z.IsJSONHandle() {
  1749. z.WriteStr("\"By\"")
  1750. } else {
  1751. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  1752. }
  1753. z.EncWriteMapElemValue()
  1754. r.EncodeUint(uint64(x.By))
  1755. z.EncWriteMapElemKey()
  1756. if z.IsJSONHandle() {
  1757. z.WriteStr("\"Sslice\"")
  1758. } else {
  1759. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  1760. }
  1761. z.EncWriteMapElemValue()
  1762. if x.Sslice == nil {
  1763. r.EncodeNil()
  1764. } else {
  1765. z.F.EncSliceStringV(x.Sslice, e)
  1766. } // end block: if x.Sslice slice == nil
  1767. z.EncWriteMapElemKey()
  1768. if z.IsJSONHandle() {
  1769. z.WriteStr("\"I64slice\"")
  1770. } else {
  1771. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  1772. }
  1773. z.EncWriteMapElemValue()
  1774. if x.I64slice == nil {
  1775. r.EncodeNil()
  1776. } else {
  1777. z.F.EncSliceInt64V(x.I64slice, e)
  1778. } // end block: if x.I64slice slice == nil
  1779. z.EncWriteMapElemKey()
  1780. if z.IsJSONHandle() {
  1781. z.WriteStr("\"I16slice\"")
  1782. } else {
  1783. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  1784. }
  1785. z.EncWriteMapElemValue()
  1786. if x.I16slice == nil {
  1787. r.EncodeNil()
  1788. } else {
  1789. z.F.EncSliceInt16V(x.I16slice, e)
  1790. } // end block: if x.I16slice slice == nil
  1791. z.EncWriteMapElemKey()
  1792. if z.IsJSONHandle() {
  1793. z.WriteStr("\"Ui64slice\"")
  1794. } else {
  1795. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  1796. }
  1797. z.EncWriteMapElemValue()
  1798. if x.Ui64slice == nil {
  1799. r.EncodeNil()
  1800. } else {
  1801. z.F.EncSliceUint64V(x.Ui64slice, e)
  1802. } // end block: if x.Ui64slice slice == nil
  1803. z.EncWriteMapElemKey()
  1804. if z.IsJSONHandle() {
  1805. z.WriteStr("\"Ui8slice\"")
  1806. } else {
  1807. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  1808. }
  1809. z.EncWriteMapElemValue()
  1810. if x.Ui8slice == nil {
  1811. r.EncodeNil()
  1812. } else {
  1813. r.EncodeStringBytesRaw([]byte(x.Ui8slice))
  1814. } // end block: if x.Ui8slice slice == nil
  1815. z.EncWriteMapElemKey()
  1816. if z.IsJSONHandle() {
  1817. z.WriteStr("\"Bslice\"")
  1818. } else {
  1819. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  1820. }
  1821. z.EncWriteMapElemValue()
  1822. if x.Bslice == nil {
  1823. r.EncodeNil()
  1824. } else {
  1825. z.F.EncSliceBoolV(x.Bslice, e)
  1826. } // end block: if x.Bslice slice == nil
  1827. z.EncWriteMapElemKey()
  1828. if z.IsJSONHandle() {
  1829. z.WriteStr("\"Byslice\"")
  1830. } else {
  1831. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  1832. }
  1833. z.EncWriteMapElemValue()
  1834. if x.Byslice == nil {
  1835. r.EncodeNil()
  1836. } else {
  1837. r.EncodeStringBytesRaw([]byte(x.Byslice))
  1838. } // end block: if x.Byslice slice == nil
  1839. z.EncWriteMapElemKey()
  1840. if z.IsJSONHandle() {
  1841. z.WriteStr("\"BytesSlice\"")
  1842. } else {
  1843. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  1844. }
  1845. z.EncWriteMapElemValue()
  1846. if x.BytesSlice == nil {
  1847. r.EncodeNil()
  1848. } else {
  1849. z.F.EncSliceBytesV(x.BytesSlice, e)
  1850. } // end block: if x.BytesSlice slice == nil
  1851. z.EncWriteMapElemKey()
  1852. if z.IsJSONHandle() {
  1853. z.WriteStr("\"Iptrslice\"")
  1854. } else {
  1855. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  1856. }
  1857. z.EncWriteMapElemValue()
  1858. if x.Iptrslice == nil {
  1859. r.EncodeNil()
  1860. } else {
  1861. h.encSlicePtrtoint64(([]*int64)(x.Iptrslice), e)
  1862. } // end block: if x.Iptrslice slice == nil
  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. if x.Msi64 == nil {
  1887. r.EncodeNil()
  1888. } else {
  1889. z.F.EncMapStringInt64V(x.Msi64, e)
  1890. } // end block: if x.Msi64 map == nil
  1891. z.EncWriteMapElemKey()
  1892. if z.IsJSONHandle() {
  1893. z.WriteStr("\"Msbytes\"")
  1894. } else {
  1895. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  1896. }
  1897. z.EncWriteMapElemValue()
  1898. if x.Msbytes == nil {
  1899. r.EncodeNil()
  1900. } else {
  1901. z.F.EncMapStringBytesV(x.Msbytes, e)
  1902. } // end block: if x.Msbytes map == nil
  1903. z.EncWriteMapElemKey()
  1904. if z.IsJSONHandle() {
  1905. z.WriteStr("\"Simplef\"")
  1906. } else {
  1907. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  1908. }
  1909. z.EncWriteMapElemValue()
  1910. yy141 := &x.Simplef
  1911. yy141.CodecEncodeSelf(e)
  1912. z.EncWriteMapElemKey()
  1913. if z.IsJSONHandle() {
  1914. z.WriteStr("\"SstrUi64T\"")
  1915. } else {
  1916. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  1917. }
  1918. z.EncWriteMapElemValue()
  1919. if x.SstrUi64T == nil {
  1920. r.EncodeNil()
  1921. } else {
  1922. h.encSlicestringUint64T(([]stringUint64T)(x.SstrUi64T), e)
  1923. } // end block: if x.SstrUi64T slice == nil
  1924. z.EncWriteMapElemKey()
  1925. if z.IsJSONHandle() {
  1926. z.WriteStr("\"MstrUi64T\"")
  1927. } else {
  1928. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  1929. }
  1930. z.EncWriteMapElemValue()
  1931. if x.MstrUi64T == nil {
  1932. r.EncodeNil()
  1933. } else {
  1934. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.MstrUi64T), e)
  1935. } // end block: if x.MstrUi64T map == nil
  1936. z.EncWriteMapElemKey()
  1937. if z.IsJSONHandle() {
  1938. z.WriteStr("\"AS\"")
  1939. } else {
  1940. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  1941. }
  1942. z.EncWriteMapElemValue()
  1943. if z.EncBasicHandle().StringToRaw {
  1944. r.EncodeStringBytesRaw(z.BytesView(string(x.AnonInTestStruc.AS)))
  1945. } else {
  1946. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.AnonInTestStruc.AS))
  1947. }
  1948. z.EncWriteMapElemKey()
  1949. if z.IsJSONHandle() {
  1950. z.WriteStr("\"AI64\"")
  1951. } else {
  1952. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  1953. }
  1954. z.EncWriteMapElemValue()
  1955. r.EncodeInt(int64(x.AnonInTestStruc.AI64))
  1956. z.EncWriteMapElemKey()
  1957. if z.IsJSONHandle() {
  1958. z.WriteStr("\"AI16\"")
  1959. } else {
  1960. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  1961. }
  1962. z.EncWriteMapElemValue()
  1963. r.EncodeInt(int64(x.AnonInTestStruc.AI16))
  1964. z.EncWriteMapElemKey()
  1965. if z.IsJSONHandle() {
  1966. z.WriteStr("\"AUi64\"")
  1967. } else {
  1968. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  1969. }
  1970. z.EncWriteMapElemValue()
  1971. r.EncodeUint(uint64(x.AnonInTestStruc.AUi64))
  1972. z.EncWriteMapElemKey()
  1973. if z.IsJSONHandle() {
  1974. z.WriteStr("\"ASslice\"")
  1975. } else {
  1976. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  1977. }
  1978. z.EncWriteMapElemValue()
  1979. if x.AnonInTestStruc.ASslice == nil {
  1980. r.EncodeNil()
  1981. } else {
  1982. z.F.EncSliceStringV(x.AnonInTestStruc.ASslice, e)
  1983. } // end block: if x.AnonInTestStruc.ASslice slice == nil
  1984. z.EncWriteMapElemKey()
  1985. if z.IsJSONHandle() {
  1986. z.WriteStr("\"AI64slice\"")
  1987. } else {
  1988. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  1989. }
  1990. z.EncWriteMapElemValue()
  1991. if x.AnonInTestStruc.AI64slice == nil {
  1992. r.EncodeNil()
  1993. } else {
  1994. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice, e)
  1995. } // end block: if x.AnonInTestStruc.AI64slice slice == nil
  1996. z.EncWriteMapElemKey()
  1997. if z.IsJSONHandle() {
  1998. z.WriteStr("\"AUi64slice\"")
  1999. } else {
  2000. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  2001. }
  2002. z.EncWriteMapElemValue()
  2003. if x.AnonInTestStruc.AUi64slice == nil {
  2004. r.EncodeNil()
  2005. } else {
  2006. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64slice, e)
  2007. } // end block: if x.AnonInTestStruc.AUi64slice slice == nil
  2008. z.EncWriteMapElemKey()
  2009. if z.IsJSONHandle() {
  2010. z.WriteStr("\"AF64slice\"")
  2011. } else {
  2012. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  2013. }
  2014. z.EncWriteMapElemValue()
  2015. if x.AnonInTestStruc.AF64slice == nil {
  2016. r.EncodeNil()
  2017. } else {
  2018. z.F.EncSliceFloat64V(x.AnonInTestStruc.AF64slice, e)
  2019. } // end block: if x.AnonInTestStruc.AF64slice slice == nil
  2020. z.EncWriteMapElemKey()
  2021. if z.IsJSONHandle() {
  2022. z.WriteStr("\"AF32slice\"")
  2023. } else {
  2024. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  2025. }
  2026. z.EncWriteMapElemValue()
  2027. if x.AnonInTestStruc.AF32slice == nil {
  2028. r.EncodeNil()
  2029. } else {
  2030. z.F.EncSliceFloat32V(x.AnonInTestStruc.AF32slice, e)
  2031. } // end block: if x.AnonInTestStruc.AF32slice slice == nil
  2032. z.EncWriteMapElemKey()
  2033. if z.IsJSONHandle() {
  2034. z.WriteStr("\"AMSU16\"")
  2035. } else {
  2036. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  2037. }
  2038. z.EncWriteMapElemValue()
  2039. if x.AnonInTestStruc.AMSU16 == nil {
  2040. r.EncodeNil()
  2041. } else {
  2042. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16), e)
  2043. } // end block: if x.AnonInTestStruc.AMSU16 map == nil
  2044. z.EncWriteMapElemKey()
  2045. if z.IsJSONHandle() {
  2046. z.WriteStr("\"AI64arr0\"")
  2047. } else {
  2048. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  2049. }
  2050. z.EncWriteMapElemValue()
  2051. yy155 := &x.AnonInTestStruc.AI64arr0
  2052. h.encArray0int64((*[0]int64)(yy155), e)
  2053. z.EncWriteMapElemKey()
  2054. if z.IsJSONHandle() {
  2055. z.WriteStr("\"AI64slice0\"")
  2056. } else {
  2057. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  2058. }
  2059. z.EncWriteMapElemValue()
  2060. if x.AnonInTestStruc.AI64slice0 == nil {
  2061. r.EncodeNil()
  2062. } else {
  2063. z.F.EncSliceInt64V(x.AnonInTestStruc.AI64slice0, e)
  2064. } // end block: if x.AnonInTestStruc.AI64slice0 slice == nil
  2065. z.EncWriteMapElemKey()
  2066. if z.IsJSONHandle() {
  2067. z.WriteStr("\"AUi64sliceN\"")
  2068. } else {
  2069. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  2070. }
  2071. z.EncWriteMapElemValue()
  2072. if x.AnonInTestStruc.AUi64sliceN == nil {
  2073. r.EncodeNil()
  2074. } else {
  2075. z.F.EncSliceUint64V(x.AnonInTestStruc.AUi64sliceN, e)
  2076. } // end block: if x.AnonInTestStruc.AUi64sliceN slice == nil
  2077. z.EncWriteMapElemKey()
  2078. if z.IsJSONHandle() {
  2079. z.WriteStr("\"AMSU16N\"")
  2080. } else {
  2081. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  2082. }
  2083. z.EncWriteMapElemValue()
  2084. if x.AnonInTestStruc.AMSU16N == nil {
  2085. r.EncodeNil()
  2086. } else {
  2087. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16N), e)
  2088. } // end block: if x.AnonInTestStruc.AMSU16N map == nil
  2089. z.EncWriteMapElemKey()
  2090. if z.IsJSONHandle() {
  2091. z.WriteStr("\"AMSU16E\"")
  2092. } else {
  2093. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  2094. }
  2095. z.EncWriteMapElemValue()
  2096. if x.AnonInTestStruc.AMSU16E == nil {
  2097. r.EncodeNil()
  2098. } else {
  2099. h.encMapstringuint16((map[string]uint16)(x.AnonInTestStruc.AMSU16E), e)
  2100. } // end block: if x.AnonInTestStruc.AMSU16E map == nil
  2101. z.EncWriteMapElemKey()
  2102. if z.IsJSONHandle() {
  2103. z.WriteStr("\"NotAnon\"")
  2104. } else {
  2105. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  2106. }
  2107. z.EncWriteMapElemValue()
  2108. yy161 := &x.NotAnon
  2109. yy161.CodecEncodeSelf(e)
  2110. z.EncWriteMapElemKey()
  2111. if z.IsJSONHandle() {
  2112. z.WriteStr("\"Nmap\"")
  2113. } else {
  2114. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  2115. }
  2116. z.EncWriteMapElemValue()
  2117. if x.Nmap == nil {
  2118. r.EncodeNil()
  2119. } else {
  2120. z.F.EncMapStringBoolV(x.Nmap, e)
  2121. } // end block: if x.Nmap map == nil
  2122. z.EncWriteMapElemKey()
  2123. if z.IsJSONHandle() {
  2124. z.WriteStr("\"Nslice\"")
  2125. } else {
  2126. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  2127. }
  2128. z.EncWriteMapElemValue()
  2129. if x.Nslice == nil {
  2130. r.EncodeNil()
  2131. } else {
  2132. r.EncodeStringBytesRaw([]byte(x.Nslice))
  2133. } // end block: if x.Nslice slice == nil
  2134. z.EncWriteMapElemKey()
  2135. if z.IsJSONHandle() {
  2136. z.WriteStr("\"Nint64\"")
  2137. } else {
  2138. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  2139. }
  2140. z.EncWriteMapElemValue()
  2141. if yyn54 {
  2142. r.EncodeNil()
  2143. } else {
  2144. yy165 := *x.Nint64
  2145. r.EncodeInt(int64(yy165))
  2146. }
  2147. z.EncWriteMapEnd()
  2148. }
  2149. }
  2150. }
  2151. func (x *TestStrucCommon) CodecDecodeSelf(d *Decoder) {
  2152. var h codecSelfer19780
  2153. z, r := GenHelperDecoder(d)
  2154. _, _, _ = h, z, r
  2155. yyct2 := r.ContainerType()
  2156. if yyct2 == codecSelferValueTypeNil19780 {
  2157. *(x) = TestStrucCommon{}
  2158. } else if yyct2 == codecSelferValueTypeMap19780 {
  2159. yyl2 := z.DecReadMapStart()
  2160. if yyl2 == 0 {
  2161. } else {
  2162. x.codecDecodeSelfFromMap(yyl2, d)
  2163. }
  2164. z.DecReadMapEnd()
  2165. } else if yyct2 == codecSelferValueTypeArray19780 {
  2166. yyl2 := z.DecReadArrayStart()
  2167. if yyl2 != 0 {
  2168. x.codecDecodeSelfFromArray(yyl2, d)
  2169. }
  2170. z.DecReadArrayEnd()
  2171. } else {
  2172. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  2173. }
  2174. }
  2175. func (x *TestStrucCommon) codecDecodeSelfFromMap(l int, d *Decoder) {
  2176. var h codecSelfer19780
  2177. z, r := GenHelperDecoder(d)
  2178. _, _, _ = h, z, r
  2179. var yyhl3 bool = l >= 0
  2180. for yyj3 := 0; ; yyj3++ {
  2181. if yyhl3 {
  2182. if yyj3 >= l {
  2183. break
  2184. }
  2185. } else {
  2186. if r.CheckBreak() {
  2187. break
  2188. }
  2189. }
  2190. z.DecReadMapElemKey()
  2191. yys3 := z.StringView(r.DecodeStringAsBytes())
  2192. z.DecReadMapElemValue()
  2193. switch yys3 {
  2194. case "S":
  2195. x.S = (string)(string(r.DecodeStringAsBytes()))
  2196. case "I64":
  2197. x.I64 = (int64)(r.DecodeInt64())
  2198. case "I32":
  2199. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2200. case "I16":
  2201. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2202. case "I8":
  2203. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2204. case "I64n":
  2205. x.I64n = (int64)(r.DecodeInt64())
  2206. case "I32n":
  2207. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2208. case "I16n":
  2209. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2210. case "I8n":
  2211. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2212. case "Ui64":
  2213. x.Ui64 = (uint64)(r.DecodeUint64())
  2214. case "Ui32":
  2215. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2216. case "Ui16":
  2217. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2218. case "Ui8":
  2219. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2220. case "F64":
  2221. x.F64 = (float64)(r.DecodeFloat64())
  2222. case "F32":
  2223. x.F32 = (float32)(z.DecDecodeFloat32())
  2224. case "B":
  2225. x.B = (bool)(r.DecodeBool())
  2226. case "By":
  2227. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2228. case "Sslice":
  2229. z.F.DecSliceStringX(&x.Sslice, d)
  2230. case "I64slice":
  2231. z.F.DecSliceInt64X(&x.I64slice, d)
  2232. case "I16slice":
  2233. z.F.DecSliceInt16X(&x.I16slice, d)
  2234. case "Ui64slice":
  2235. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2236. case "Ui8slice":
  2237. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2238. case "Bslice":
  2239. z.F.DecSliceBoolX(&x.Bslice, d)
  2240. case "Byslice":
  2241. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2242. case "BytesSlice":
  2243. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2244. case "Iptrslice":
  2245. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2246. case "WrapSliceInt64":
  2247. x.WrapSliceInt64.CodecDecodeSelf(d)
  2248. case "WrapSliceString":
  2249. x.WrapSliceString.CodecDecodeSelf(d)
  2250. case "Msi64":
  2251. z.F.DecMapStringInt64X(&x.Msi64, d)
  2252. case "Msbytes":
  2253. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2254. case "Simplef":
  2255. x.Simplef.CodecDecodeSelf(d)
  2256. case "SstrUi64T":
  2257. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2258. case "MstrUi64T":
  2259. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2260. case "AS":
  2261. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2262. case "AI64":
  2263. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2264. case "AI16":
  2265. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2266. case "AUi64":
  2267. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2268. case "ASslice":
  2269. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2270. case "AI64slice":
  2271. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2272. case "AUi64slice":
  2273. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2274. case "AF64slice":
  2275. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2276. case "AF32slice":
  2277. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2278. case "AMSU16":
  2279. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2280. case "AI64arr0":
  2281. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2282. case "AI64slice0":
  2283. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2284. case "AUi64sliceN":
  2285. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2286. case "AMSU16N":
  2287. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2288. case "AMSU16E":
  2289. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2290. case "NotAnon":
  2291. x.NotAnon.CodecDecodeSelf(d)
  2292. case "Nmap":
  2293. z.F.DecMapStringBoolX(&x.Nmap, d)
  2294. case "Nslice":
  2295. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2296. case "Nint64":
  2297. if r.TryNil() {
  2298. if x.Nint64 != nil { // remove the if-true
  2299. x.Nint64 = nil
  2300. }
  2301. } else {
  2302. if x.Nint64 == nil {
  2303. x.Nint64 = new(int64)
  2304. }
  2305. *x.Nint64 = (int64)(r.DecodeInt64())
  2306. }
  2307. default:
  2308. z.DecStructFieldNotFound(-1, yys3)
  2309. } // end switch yys3
  2310. } // end for yyj3
  2311. }
  2312. func (x *TestStrucCommon) codecDecodeSelfFromArray(l int, d *Decoder) {
  2313. var h codecSelfer19780
  2314. z, r := GenHelperDecoder(d)
  2315. _, _, _ = h, z, r
  2316. var yyj83 int
  2317. var yyb83 bool
  2318. var yyhl83 bool = l >= 0
  2319. yyj83++
  2320. if yyhl83 {
  2321. yyb83 = yyj83 > l
  2322. } else {
  2323. yyb83 = r.CheckBreak()
  2324. }
  2325. if yyb83 {
  2326. z.DecReadArrayEnd()
  2327. return
  2328. }
  2329. z.DecReadArrayElem()
  2330. x.S = (string)(string(r.DecodeStringAsBytes()))
  2331. yyj83++
  2332. if yyhl83 {
  2333. yyb83 = yyj83 > l
  2334. } else {
  2335. yyb83 = r.CheckBreak()
  2336. }
  2337. if yyb83 {
  2338. z.DecReadArrayEnd()
  2339. return
  2340. }
  2341. z.DecReadArrayElem()
  2342. x.I64 = (int64)(r.DecodeInt64())
  2343. yyj83++
  2344. if yyhl83 {
  2345. yyb83 = yyj83 > l
  2346. } else {
  2347. yyb83 = r.CheckBreak()
  2348. }
  2349. if yyb83 {
  2350. z.DecReadArrayEnd()
  2351. return
  2352. }
  2353. z.DecReadArrayElem()
  2354. x.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2355. yyj83++
  2356. if yyhl83 {
  2357. yyb83 = yyj83 > l
  2358. } else {
  2359. yyb83 = r.CheckBreak()
  2360. }
  2361. if yyb83 {
  2362. z.DecReadArrayEnd()
  2363. return
  2364. }
  2365. z.DecReadArrayElem()
  2366. x.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2367. yyj83++
  2368. if yyhl83 {
  2369. yyb83 = yyj83 > l
  2370. } else {
  2371. yyb83 = r.CheckBreak()
  2372. }
  2373. if yyb83 {
  2374. z.DecReadArrayEnd()
  2375. return
  2376. }
  2377. z.DecReadArrayElem()
  2378. x.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2379. yyj83++
  2380. if yyhl83 {
  2381. yyb83 = yyj83 > l
  2382. } else {
  2383. yyb83 = r.CheckBreak()
  2384. }
  2385. if yyb83 {
  2386. z.DecReadArrayEnd()
  2387. return
  2388. }
  2389. z.DecReadArrayElem()
  2390. x.I64n = (int64)(r.DecodeInt64())
  2391. yyj83++
  2392. if yyhl83 {
  2393. yyb83 = yyj83 > l
  2394. } else {
  2395. yyb83 = r.CheckBreak()
  2396. }
  2397. if yyb83 {
  2398. z.DecReadArrayEnd()
  2399. return
  2400. }
  2401. z.DecReadArrayElem()
  2402. x.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  2403. yyj83++
  2404. if yyhl83 {
  2405. yyb83 = yyj83 > l
  2406. } else {
  2407. yyb83 = r.CheckBreak()
  2408. }
  2409. if yyb83 {
  2410. z.DecReadArrayEnd()
  2411. return
  2412. }
  2413. z.DecReadArrayElem()
  2414. x.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2415. yyj83++
  2416. if yyhl83 {
  2417. yyb83 = yyj83 > l
  2418. } else {
  2419. yyb83 = r.CheckBreak()
  2420. }
  2421. if yyb83 {
  2422. z.DecReadArrayEnd()
  2423. return
  2424. }
  2425. z.DecReadArrayElem()
  2426. x.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  2427. yyj83++
  2428. if yyhl83 {
  2429. yyb83 = yyj83 > l
  2430. } else {
  2431. yyb83 = r.CheckBreak()
  2432. }
  2433. if yyb83 {
  2434. z.DecReadArrayEnd()
  2435. return
  2436. }
  2437. z.DecReadArrayElem()
  2438. x.Ui64 = (uint64)(r.DecodeUint64())
  2439. yyj83++
  2440. if yyhl83 {
  2441. yyb83 = yyj83 > l
  2442. } else {
  2443. yyb83 = r.CheckBreak()
  2444. }
  2445. if yyb83 {
  2446. z.DecReadArrayEnd()
  2447. return
  2448. }
  2449. z.DecReadArrayElem()
  2450. x.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  2451. yyj83++
  2452. if yyhl83 {
  2453. yyb83 = yyj83 > l
  2454. } else {
  2455. yyb83 = r.CheckBreak()
  2456. }
  2457. if yyb83 {
  2458. z.DecReadArrayEnd()
  2459. return
  2460. }
  2461. z.DecReadArrayElem()
  2462. x.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  2463. yyj83++
  2464. if yyhl83 {
  2465. yyb83 = yyj83 > l
  2466. } else {
  2467. yyb83 = r.CheckBreak()
  2468. }
  2469. if yyb83 {
  2470. z.DecReadArrayEnd()
  2471. return
  2472. }
  2473. z.DecReadArrayElem()
  2474. x.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2475. yyj83++
  2476. if yyhl83 {
  2477. yyb83 = yyj83 > l
  2478. } else {
  2479. yyb83 = r.CheckBreak()
  2480. }
  2481. if yyb83 {
  2482. z.DecReadArrayEnd()
  2483. return
  2484. }
  2485. z.DecReadArrayElem()
  2486. x.F64 = (float64)(r.DecodeFloat64())
  2487. yyj83++
  2488. if yyhl83 {
  2489. yyb83 = yyj83 > l
  2490. } else {
  2491. yyb83 = r.CheckBreak()
  2492. }
  2493. if yyb83 {
  2494. z.DecReadArrayEnd()
  2495. return
  2496. }
  2497. z.DecReadArrayElem()
  2498. x.F32 = (float32)(z.DecDecodeFloat32())
  2499. yyj83++
  2500. if yyhl83 {
  2501. yyb83 = yyj83 > l
  2502. } else {
  2503. yyb83 = r.CheckBreak()
  2504. }
  2505. if yyb83 {
  2506. z.DecReadArrayEnd()
  2507. return
  2508. }
  2509. z.DecReadArrayElem()
  2510. x.B = (bool)(r.DecodeBool())
  2511. yyj83++
  2512. if yyhl83 {
  2513. yyb83 = yyj83 > l
  2514. } else {
  2515. yyb83 = r.CheckBreak()
  2516. }
  2517. if yyb83 {
  2518. z.DecReadArrayEnd()
  2519. return
  2520. }
  2521. z.DecReadArrayElem()
  2522. x.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  2523. yyj83++
  2524. if yyhl83 {
  2525. yyb83 = yyj83 > l
  2526. } else {
  2527. yyb83 = r.CheckBreak()
  2528. }
  2529. if yyb83 {
  2530. z.DecReadArrayEnd()
  2531. return
  2532. }
  2533. z.DecReadArrayElem()
  2534. z.F.DecSliceStringX(&x.Sslice, d)
  2535. yyj83++
  2536. if yyhl83 {
  2537. yyb83 = yyj83 > l
  2538. } else {
  2539. yyb83 = r.CheckBreak()
  2540. }
  2541. if yyb83 {
  2542. z.DecReadArrayEnd()
  2543. return
  2544. }
  2545. z.DecReadArrayElem()
  2546. z.F.DecSliceInt64X(&x.I64slice, d)
  2547. yyj83++
  2548. if yyhl83 {
  2549. yyb83 = yyj83 > l
  2550. } else {
  2551. yyb83 = r.CheckBreak()
  2552. }
  2553. if yyb83 {
  2554. z.DecReadArrayEnd()
  2555. return
  2556. }
  2557. z.DecReadArrayElem()
  2558. z.F.DecSliceInt16X(&x.I16slice, d)
  2559. yyj83++
  2560. if yyhl83 {
  2561. yyb83 = yyj83 > l
  2562. } else {
  2563. yyb83 = r.CheckBreak()
  2564. }
  2565. if yyb83 {
  2566. z.DecReadArrayEnd()
  2567. return
  2568. }
  2569. z.DecReadArrayElem()
  2570. z.F.DecSliceUint64X(&x.Ui64slice, d)
  2571. yyj83++
  2572. if yyhl83 {
  2573. yyb83 = yyj83 > l
  2574. } else {
  2575. yyb83 = r.CheckBreak()
  2576. }
  2577. if yyb83 {
  2578. z.DecReadArrayEnd()
  2579. return
  2580. }
  2581. z.DecReadArrayElem()
  2582. x.Ui8slice = r.DecodeBytes(([]byte)(x.Ui8slice), false)
  2583. yyj83++
  2584. if yyhl83 {
  2585. yyb83 = yyj83 > l
  2586. } else {
  2587. yyb83 = r.CheckBreak()
  2588. }
  2589. if yyb83 {
  2590. z.DecReadArrayEnd()
  2591. return
  2592. }
  2593. z.DecReadArrayElem()
  2594. z.F.DecSliceBoolX(&x.Bslice, d)
  2595. yyj83++
  2596. if yyhl83 {
  2597. yyb83 = yyj83 > l
  2598. } else {
  2599. yyb83 = r.CheckBreak()
  2600. }
  2601. if yyb83 {
  2602. z.DecReadArrayEnd()
  2603. return
  2604. }
  2605. z.DecReadArrayElem()
  2606. x.Byslice = r.DecodeBytes(([]byte)(x.Byslice), false)
  2607. yyj83++
  2608. if yyhl83 {
  2609. yyb83 = yyj83 > l
  2610. } else {
  2611. yyb83 = r.CheckBreak()
  2612. }
  2613. if yyb83 {
  2614. z.DecReadArrayEnd()
  2615. return
  2616. }
  2617. z.DecReadArrayElem()
  2618. z.F.DecSliceBytesX(&x.BytesSlice, d)
  2619. yyj83++
  2620. if yyhl83 {
  2621. yyb83 = yyj83 > l
  2622. } else {
  2623. yyb83 = r.CheckBreak()
  2624. }
  2625. if yyb83 {
  2626. z.DecReadArrayEnd()
  2627. return
  2628. }
  2629. z.DecReadArrayElem()
  2630. h.decSlicePtrtoint64((*[]*int64)(&x.Iptrslice), d)
  2631. yyj83++
  2632. if yyhl83 {
  2633. yyb83 = yyj83 > l
  2634. } else {
  2635. yyb83 = r.CheckBreak()
  2636. }
  2637. if yyb83 {
  2638. z.DecReadArrayEnd()
  2639. return
  2640. }
  2641. z.DecReadArrayElem()
  2642. x.WrapSliceInt64.CodecDecodeSelf(d)
  2643. yyj83++
  2644. if yyhl83 {
  2645. yyb83 = yyj83 > l
  2646. } else {
  2647. yyb83 = r.CheckBreak()
  2648. }
  2649. if yyb83 {
  2650. z.DecReadArrayEnd()
  2651. return
  2652. }
  2653. z.DecReadArrayElem()
  2654. x.WrapSliceString.CodecDecodeSelf(d)
  2655. yyj83++
  2656. if yyhl83 {
  2657. yyb83 = yyj83 > l
  2658. } else {
  2659. yyb83 = r.CheckBreak()
  2660. }
  2661. if yyb83 {
  2662. z.DecReadArrayEnd()
  2663. return
  2664. }
  2665. z.DecReadArrayElem()
  2666. z.F.DecMapStringInt64X(&x.Msi64, d)
  2667. yyj83++
  2668. if yyhl83 {
  2669. yyb83 = yyj83 > l
  2670. } else {
  2671. yyb83 = r.CheckBreak()
  2672. }
  2673. if yyb83 {
  2674. z.DecReadArrayEnd()
  2675. return
  2676. }
  2677. z.DecReadArrayElem()
  2678. z.F.DecMapStringBytesX(&x.Msbytes, d)
  2679. yyj83++
  2680. if yyhl83 {
  2681. yyb83 = yyj83 > l
  2682. } else {
  2683. yyb83 = r.CheckBreak()
  2684. }
  2685. if yyb83 {
  2686. z.DecReadArrayEnd()
  2687. return
  2688. }
  2689. z.DecReadArrayElem()
  2690. x.Simplef.CodecDecodeSelf(d)
  2691. yyj83++
  2692. if yyhl83 {
  2693. yyb83 = yyj83 > l
  2694. } else {
  2695. yyb83 = r.CheckBreak()
  2696. }
  2697. if yyb83 {
  2698. z.DecReadArrayEnd()
  2699. return
  2700. }
  2701. z.DecReadArrayElem()
  2702. h.decSlicestringUint64T((*[]stringUint64T)(&x.SstrUi64T), d)
  2703. yyj83++
  2704. if yyhl83 {
  2705. yyb83 = yyj83 > l
  2706. } else {
  2707. yyb83 = r.CheckBreak()
  2708. }
  2709. if yyb83 {
  2710. z.DecReadArrayEnd()
  2711. return
  2712. }
  2713. z.DecReadArrayElem()
  2714. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.MstrUi64T), d)
  2715. yyj83++
  2716. if yyhl83 {
  2717. yyb83 = yyj83 > l
  2718. } else {
  2719. yyb83 = r.CheckBreak()
  2720. }
  2721. if yyb83 {
  2722. z.DecReadArrayEnd()
  2723. return
  2724. }
  2725. z.DecReadArrayElem()
  2726. x.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  2727. yyj83++
  2728. if yyhl83 {
  2729. yyb83 = yyj83 > l
  2730. } else {
  2731. yyb83 = r.CheckBreak()
  2732. }
  2733. if yyb83 {
  2734. z.DecReadArrayEnd()
  2735. return
  2736. }
  2737. z.DecReadArrayElem()
  2738. x.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  2739. yyj83++
  2740. if yyhl83 {
  2741. yyb83 = yyj83 > l
  2742. } else {
  2743. yyb83 = r.CheckBreak()
  2744. }
  2745. if yyb83 {
  2746. z.DecReadArrayEnd()
  2747. return
  2748. }
  2749. z.DecReadArrayElem()
  2750. x.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  2751. yyj83++
  2752. if yyhl83 {
  2753. yyb83 = yyj83 > l
  2754. } else {
  2755. yyb83 = r.CheckBreak()
  2756. }
  2757. if yyb83 {
  2758. z.DecReadArrayEnd()
  2759. return
  2760. }
  2761. z.DecReadArrayElem()
  2762. x.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  2763. yyj83++
  2764. if yyhl83 {
  2765. yyb83 = yyj83 > l
  2766. } else {
  2767. yyb83 = r.CheckBreak()
  2768. }
  2769. if yyb83 {
  2770. z.DecReadArrayEnd()
  2771. return
  2772. }
  2773. z.DecReadArrayElem()
  2774. z.F.DecSliceStringX(&x.AnonInTestStruc.ASslice, d)
  2775. yyj83++
  2776. if yyhl83 {
  2777. yyb83 = yyj83 > l
  2778. } else {
  2779. yyb83 = r.CheckBreak()
  2780. }
  2781. if yyb83 {
  2782. z.DecReadArrayEnd()
  2783. return
  2784. }
  2785. z.DecReadArrayElem()
  2786. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice, d)
  2787. yyj83++
  2788. if yyhl83 {
  2789. yyb83 = yyj83 > l
  2790. } else {
  2791. yyb83 = r.CheckBreak()
  2792. }
  2793. if yyb83 {
  2794. z.DecReadArrayEnd()
  2795. return
  2796. }
  2797. z.DecReadArrayElem()
  2798. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64slice, d)
  2799. yyj83++
  2800. if yyhl83 {
  2801. yyb83 = yyj83 > l
  2802. } else {
  2803. yyb83 = r.CheckBreak()
  2804. }
  2805. if yyb83 {
  2806. z.DecReadArrayEnd()
  2807. return
  2808. }
  2809. z.DecReadArrayElem()
  2810. z.F.DecSliceFloat64X(&x.AnonInTestStruc.AF64slice, d)
  2811. yyj83++
  2812. if yyhl83 {
  2813. yyb83 = yyj83 > l
  2814. } else {
  2815. yyb83 = r.CheckBreak()
  2816. }
  2817. if yyb83 {
  2818. z.DecReadArrayEnd()
  2819. return
  2820. }
  2821. z.DecReadArrayElem()
  2822. z.F.DecSliceFloat32X(&x.AnonInTestStruc.AF32slice, d)
  2823. yyj83++
  2824. if yyhl83 {
  2825. yyb83 = yyj83 > l
  2826. } else {
  2827. yyb83 = r.CheckBreak()
  2828. }
  2829. if yyb83 {
  2830. z.DecReadArrayEnd()
  2831. return
  2832. }
  2833. z.DecReadArrayElem()
  2834. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16), d)
  2835. yyj83++
  2836. if yyhl83 {
  2837. yyb83 = yyj83 > l
  2838. } else {
  2839. yyb83 = r.CheckBreak()
  2840. }
  2841. if yyb83 {
  2842. z.DecReadArrayEnd()
  2843. return
  2844. }
  2845. z.DecReadArrayElem()
  2846. h.decArray0int64((*[0]int64)(&x.AnonInTestStruc.AI64arr0), d)
  2847. yyj83++
  2848. if yyhl83 {
  2849. yyb83 = yyj83 > l
  2850. } else {
  2851. yyb83 = r.CheckBreak()
  2852. }
  2853. if yyb83 {
  2854. z.DecReadArrayEnd()
  2855. return
  2856. }
  2857. z.DecReadArrayElem()
  2858. z.F.DecSliceInt64X(&x.AnonInTestStruc.AI64slice0, d)
  2859. yyj83++
  2860. if yyhl83 {
  2861. yyb83 = yyj83 > l
  2862. } else {
  2863. yyb83 = r.CheckBreak()
  2864. }
  2865. if yyb83 {
  2866. z.DecReadArrayEnd()
  2867. return
  2868. }
  2869. z.DecReadArrayElem()
  2870. z.F.DecSliceUint64X(&x.AnonInTestStruc.AUi64sliceN, d)
  2871. yyj83++
  2872. if yyhl83 {
  2873. yyb83 = yyj83 > l
  2874. } else {
  2875. yyb83 = r.CheckBreak()
  2876. }
  2877. if yyb83 {
  2878. z.DecReadArrayEnd()
  2879. return
  2880. }
  2881. z.DecReadArrayElem()
  2882. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16N), d)
  2883. yyj83++
  2884. if yyhl83 {
  2885. yyb83 = yyj83 > l
  2886. } else {
  2887. yyb83 = r.CheckBreak()
  2888. }
  2889. if yyb83 {
  2890. z.DecReadArrayEnd()
  2891. return
  2892. }
  2893. z.DecReadArrayElem()
  2894. h.decMapstringuint16((*map[string]uint16)(&x.AnonInTestStruc.AMSU16E), d)
  2895. yyj83++
  2896. if yyhl83 {
  2897. yyb83 = yyj83 > l
  2898. } else {
  2899. yyb83 = r.CheckBreak()
  2900. }
  2901. if yyb83 {
  2902. z.DecReadArrayEnd()
  2903. return
  2904. }
  2905. z.DecReadArrayElem()
  2906. x.NotAnon.CodecDecodeSelf(d)
  2907. yyj83++
  2908. if yyhl83 {
  2909. yyb83 = yyj83 > l
  2910. } else {
  2911. yyb83 = r.CheckBreak()
  2912. }
  2913. if yyb83 {
  2914. z.DecReadArrayEnd()
  2915. return
  2916. }
  2917. z.DecReadArrayElem()
  2918. z.F.DecMapStringBoolX(&x.Nmap, d)
  2919. yyj83++
  2920. if yyhl83 {
  2921. yyb83 = yyj83 > l
  2922. } else {
  2923. yyb83 = r.CheckBreak()
  2924. }
  2925. if yyb83 {
  2926. z.DecReadArrayEnd()
  2927. return
  2928. }
  2929. z.DecReadArrayElem()
  2930. x.Nslice = r.DecodeBytes(([]byte)(x.Nslice), false)
  2931. yyj83++
  2932. if yyhl83 {
  2933. yyb83 = yyj83 > l
  2934. } else {
  2935. yyb83 = r.CheckBreak()
  2936. }
  2937. if yyb83 {
  2938. z.DecReadArrayEnd()
  2939. return
  2940. }
  2941. z.DecReadArrayElem()
  2942. if r.TryNil() {
  2943. if x.Nint64 != nil { // remove the if-true
  2944. x.Nint64 = nil
  2945. }
  2946. } else {
  2947. if x.Nint64 == nil {
  2948. x.Nint64 = new(int64)
  2949. }
  2950. *x.Nint64 = (int64)(r.DecodeInt64())
  2951. }
  2952. for {
  2953. yyj83++
  2954. if yyhl83 {
  2955. yyb83 = yyj83 > l
  2956. } else {
  2957. yyb83 = r.CheckBreak()
  2958. }
  2959. if yyb83 {
  2960. break
  2961. }
  2962. z.DecReadArrayElem()
  2963. z.DecStructFieldNotFound(yyj83-1, "")
  2964. }
  2965. }
  2966. func (x *TestStruc) CodecEncodeSelf(e *Encoder) {
  2967. var h codecSelfer19780
  2968. z, r := GenHelperEncoder(e)
  2969. _, _, _ = h, z, r
  2970. if x == nil {
  2971. r.EncodeNil()
  2972. } else {
  2973. yysep2 := !z.EncBinary()
  2974. yy2arr2 := z.EncBasicHandle().StructToArray
  2975. _, _ = yysep2, yy2arr2
  2976. const yyr2 bool = false // struct tag has 'toArray'
  2977. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  2978. var yyn58 bool = x.Nteststruc == nil
  2979. if yyr2 || yy2arr2 {
  2980. z.EncWriteArrayStart(56)
  2981. z.EncWriteArrayElem()
  2982. if z.EncBasicHandle().StringToRaw {
  2983. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  2984. } else {
  2985. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  2986. }
  2987. z.EncWriteArrayElem()
  2988. r.EncodeInt(int64(x.TestStrucCommon.I64))
  2989. z.EncWriteArrayElem()
  2990. r.EncodeInt(int64(x.TestStrucCommon.I32))
  2991. z.EncWriteArrayElem()
  2992. r.EncodeInt(int64(x.TestStrucCommon.I16))
  2993. z.EncWriteArrayElem()
  2994. r.EncodeInt(int64(x.TestStrucCommon.I8))
  2995. z.EncWriteArrayElem()
  2996. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  2997. z.EncWriteArrayElem()
  2998. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  2999. z.EncWriteArrayElem()
  3000. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3001. z.EncWriteArrayElem()
  3002. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3003. z.EncWriteArrayElem()
  3004. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3005. z.EncWriteArrayElem()
  3006. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3007. z.EncWriteArrayElem()
  3008. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3009. z.EncWriteArrayElem()
  3010. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3011. z.EncWriteArrayElem()
  3012. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3013. z.EncWriteArrayElem()
  3014. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3015. z.EncWriteArrayElem()
  3016. r.EncodeBool(bool(x.TestStrucCommon.B))
  3017. z.EncWriteArrayElem()
  3018. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3019. z.EncWriteArrayElem()
  3020. if x.TestStrucCommon.Sslice == nil {
  3021. r.EncodeNil()
  3022. } else {
  3023. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3024. } // end block: if x.TestStrucCommon.Sslice slice == nil
  3025. z.EncWriteArrayElem()
  3026. if x.TestStrucCommon.I64slice == nil {
  3027. r.EncodeNil()
  3028. } else {
  3029. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3030. } // end block: if x.TestStrucCommon.I64slice slice == nil
  3031. z.EncWriteArrayElem()
  3032. if x.TestStrucCommon.I16slice == nil {
  3033. r.EncodeNil()
  3034. } else {
  3035. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3036. } // end block: if x.TestStrucCommon.I16slice slice == nil
  3037. z.EncWriteArrayElem()
  3038. if x.TestStrucCommon.Ui64slice == nil {
  3039. r.EncodeNil()
  3040. } else {
  3041. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3042. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  3043. z.EncWriteArrayElem()
  3044. if x.TestStrucCommon.Ui8slice == nil {
  3045. r.EncodeNil()
  3046. } else {
  3047. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3048. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  3049. z.EncWriteArrayElem()
  3050. if x.TestStrucCommon.Bslice == nil {
  3051. r.EncodeNil()
  3052. } else {
  3053. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3054. } // end block: if x.TestStrucCommon.Bslice slice == nil
  3055. z.EncWriteArrayElem()
  3056. if x.TestStrucCommon.Byslice == nil {
  3057. r.EncodeNil()
  3058. } else {
  3059. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3060. } // end block: if x.TestStrucCommon.Byslice slice == nil
  3061. z.EncWriteArrayElem()
  3062. if x.TestStrucCommon.BytesSlice == nil {
  3063. r.EncodeNil()
  3064. } else {
  3065. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3066. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  3067. z.EncWriteArrayElem()
  3068. if x.TestStrucCommon.Iptrslice == nil {
  3069. r.EncodeNil()
  3070. } else {
  3071. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3072. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  3073. z.EncWriteArrayElem()
  3074. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3075. z.EncWriteArrayElem()
  3076. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3077. z.EncWriteArrayElem()
  3078. if x.TestStrucCommon.Msi64 == nil {
  3079. r.EncodeNil()
  3080. } else {
  3081. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3082. } // end block: if x.TestStrucCommon.Msi64 map == nil
  3083. z.EncWriteArrayElem()
  3084. if x.TestStrucCommon.Msbytes == nil {
  3085. r.EncodeNil()
  3086. } else {
  3087. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3088. } // end block: if x.TestStrucCommon.Msbytes map == nil
  3089. z.EncWriteArrayElem()
  3090. yy89 := &x.TestStrucCommon.Simplef
  3091. yy89.CodecEncodeSelf(e)
  3092. z.EncWriteArrayElem()
  3093. if x.TestStrucCommon.SstrUi64T == nil {
  3094. r.EncodeNil()
  3095. } else {
  3096. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3097. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  3098. z.EncWriteArrayElem()
  3099. if x.TestStrucCommon.MstrUi64T == nil {
  3100. r.EncodeNil()
  3101. } else {
  3102. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3103. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  3104. z.EncWriteArrayElem()
  3105. if z.EncBasicHandle().StringToRaw {
  3106. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3107. } else {
  3108. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3109. }
  3110. z.EncWriteArrayElem()
  3111. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3112. z.EncWriteArrayElem()
  3113. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3114. z.EncWriteArrayElem()
  3115. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3116. z.EncWriteArrayElem()
  3117. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  3118. r.EncodeNil()
  3119. } else {
  3120. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3121. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  3122. z.EncWriteArrayElem()
  3123. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  3124. r.EncodeNil()
  3125. } else {
  3126. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3127. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  3128. z.EncWriteArrayElem()
  3129. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  3130. r.EncodeNil()
  3131. } else {
  3132. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3133. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  3134. z.EncWriteArrayElem()
  3135. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  3136. r.EncodeNil()
  3137. } else {
  3138. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3139. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  3140. z.EncWriteArrayElem()
  3141. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  3142. r.EncodeNil()
  3143. } else {
  3144. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3145. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  3146. z.EncWriteArrayElem()
  3147. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  3148. r.EncodeNil()
  3149. } else {
  3150. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3151. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  3152. z.EncWriteArrayElem()
  3153. yy103 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3154. h.encArray0int64((*[0]int64)(yy103), e)
  3155. z.EncWriteArrayElem()
  3156. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  3157. r.EncodeNil()
  3158. } else {
  3159. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3160. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  3161. z.EncWriteArrayElem()
  3162. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  3163. r.EncodeNil()
  3164. } else {
  3165. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3166. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  3167. z.EncWriteArrayElem()
  3168. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  3169. r.EncodeNil()
  3170. } else {
  3171. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3172. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  3173. z.EncWriteArrayElem()
  3174. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  3175. r.EncodeNil()
  3176. } else {
  3177. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3178. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  3179. z.EncWriteArrayElem()
  3180. yy109 := &x.TestStrucCommon.NotAnon
  3181. yy109.CodecEncodeSelf(e)
  3182. z.EncWriteArrayElem()
  3183. if x.TestStrucCommon.Nmap == nil {
  3184. r.EncodeNil()
  3185. } else {
  3186. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3187. } // end block: if x.TestStrucCommon.Nmap map == nil
  3188. z.EncWriteArrayElem()
  3189. if x.TestStrucCommon.Nslice == nil {
  3190. r.EncodeNil()
  3191. } else {
  3192. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3193. } // end block: if x.TestStrucCommon.Nslice slice == nil
  3194. if yyn54 {
  3195. z.EncWriteArrayElem()
  3196. r.EncodeNil()
  3197. } else {
  3198. z.EncWriteArrayElem()
  3199. yy113 := *x.TestStrucCommon.Nint64
  3200. r.EncodeInt(int64(yy113))
  3201. }
  3202. z.EncWriteArrayElem()
  3203. if x.Mtsptr == nil {
  3204. r.EncodeNil()
  3205. } else {
  3206. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3207. } // end block: if x.Mtsptr map == nil
  3208. z.EncWriteArrayElem()
  3209. if x.Mts == nil {
  3210. r.EncodeNil()
  3211. } else {
  3212. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3213. } // end block: if x.Mts map == nil
  3214. z.EncWriteArrayElem()
  3215. if x.Its == nil {
  3216. r.EncodeNil()
  3217. } else {
  3218. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3219. } // end block: if x.Its slice == nil
  3220. if yyn58 {
  3221. z.EncWriteArrayElem()
  3222. r.EncodeNil()
  3223. } else {
  3224. z.EncWriteArrayElem()
  3225. x.Nteststruc.CodecEncodeSelf(e)
  3226. }
  3227. z.EncWriteArrayEnd()
  3228. } else {
  3229. z.EncWriteMapStart(56)
  3230. z.EncWriteMapElemKey()
  3231. if z.IsJSONHandle() {
  3232. z.WriteStr("\"S\"")
  3233. } else {
  3234. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  3235. }
  3236. z.EncWriteMapElemValue()
  3237. if z.EncBasicHandle().StringToRaw {
  3238. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  3239. } else {
  3240. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  3241. }
  3242. z.EncWriteMapElemKey()
  3243. if z.IsJSONHandle() {
  3244. z.WriteStr("\"I64\"")
  3245. } else {
  3246. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  3247. }
  3248. z.EncWriteMapElemValue()
  3249. r.EncodeInt(int64(x.TestStrucCommon.I64))
  3250. z.EncWriteMapElemKey()
  3251. if z.IsJSONHandle() {
  3252. z.WriteStr("\"I32\"")
  3253. } else {
  3254. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  3255. }
  3256. z.EncWriteMapElemValue()
  3257. r.EncodeInt(int64(x.TestStrucCommon.I32))
  3258. z.EncWriteMapElemKey()
  3259. if z.IsJSONHandle() {
  3260. z.WriteStr("\"I16\"")
  3261. } else {
  3262. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  3263. }
  3264. z.EncWriteMapElemValue()
  3265. r.EncodeInt(int64(x.TestStrucCommon.I16))
  3266. z.EncWriteMapElemKey()
  3267. if z.IsJSONHandle() {
  3268. z.WriteStr("\"I8\"")
  3269. } else {
  3270. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  3271. }
  3272. z.EncWriteMapElemValue()
  3273. r.EncodeInt(int64(x.TestStrucCommon.I8))
  3274. z.EncWriteMapElemKey()
  3275. if z.IsJSONHandle() {
  3276. z.WriteStr("\"I64n\"")
  3277. } else {
  3278. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  3279. }
  3280. z.EncWriteMapElemValue()
  3281. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  3282. z.EncWriteMapElemKey()
  3283. if z.IsJSONHandle() {
  3284. z.WriteStr("\"I32n\"")
  3285. } else {
  3286. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  3287. }
  3288. z.EncWriteMapElemValue()
  3289. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  3290. z.EncWriteMapElemKey()
  3291. if z.IsJSONHandle() {
  3292. z.WriteStr("\"I16n\"")
  3293. } else {
  3294. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  3295. }
  3296. z.EncWriteMapElemValue()
  3297. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  3298. z.EncWriteMapElemKey()
  3299. if z.IsJSONHandle() {
  3300. z.WriteStr("\"I8n\"")
  3301. } else {
  3302. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  3303. }
  3304. z.EncWriteMapElemValue()
  3305. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  3306. z.EncWriteMapElemKey()
  3307. if z.IsJSONHandle() {
  3308. z.WriteStr("\"Ui64\"")
  3309. } else {
  3310. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  3311. }
  3312. z.EncWriteMapElemValue()
  3313. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  3314. z.EncWriteMapElemKey()
  3315. if z.IsJSONHandle() {
  3316. z.WriteStr("\"Ui32\"")
  3317. } else {
  3318. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  3319. }
  3320. z.EncWriteMapElemValue()
  3321. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  3322. z.EncWriteMapElemKey()
  3323. if z.IsJSONHandle() {
  3324. z.WriteStr("\"Ui16\"")
  3325. } else {
  3326. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  3327. }
  3328. z.EncWriteMapElemValue()
  3329. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  3330. z.EncWriteMapElemKey()
  3331. if z.IsJSONHandle() {
  3332. z.WriteStr("\"Ui8\"")
  3333. } else {
  3334. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  3335. }
  3336. z.EncWriteMapElemValue()
  3337. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  3338. z.EncWriteMapElemKey()
  3339. if z.IsJSONHandle() {
  3340. z.WriteStr("\"F64\"")
  3341. } else {
  3342. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  3343. }
  3344. z.EncWriteMapElemValue()
  3345. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  3346. z.EncWriteMapElemKey()
  3347. if z.IsJSONHandle() {
  3348. z.WriteStr("\"F32\"")
  3349. } else {
  3350. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  3351. }
  3352. z.EncWriteMapElemValue()
  3353. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  3354. z.EncWriteMapElemKey()
  3355. if z.IsJSONHandle() {
  3356. z.WriteStr("\"B\"")
  3357. } else {
  3358. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  3359. }
  3360. z.EncWriteMapElemValue()
  3361. r.EncodeBool(bool(x.TestStrucCommon.B))
  3362. z.EncWriteMapElemKey()
  3363. if z.IsJSONHandle() {
  3364. z.WriteStr("\"By\"")
  3365. } else {
  3366. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  3367. }
  3368. z.EncWriteMapElemValue()
  3369. r.EncodeUint(uint64(x.TestStrucCommon.By))
  3370. z.EncWriteMapElemKey()
  3371. if z.IsJSONHandle() {
  3372. z.WriteStr("\"Sslice\"")
  3373. } else {
  3374. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  3375. }
  3376. z.EncWriteMapElemValue()
  3377. if x.TestStrucCommon.Sslice == nil {
  3378. r.EncodeNil()
  3379. } else {
  3380. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  3381. } // end block: if x.TestStrucCommon.Sslice slice == nil
  3382. z.EncWriteMapElemKey()
  3383. if z.IsJSONHandle() {
  3384. z.WriteStr("\"I64slice\"")
  3385. } else {
  3386. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  3387. }
  3388. z.EncWriteMapElemValue()
  3389. if x.TestStrucCommon.I64slice == nil {
  3390. r.EncodeNil()
  3391. } else {
  3392. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  3393. } // end block: if x.TestStrucCommon.I64slice slice == nil
  3394. z.EncWriteMapElemKey()
  3395. if z.IsJSONHandle() {
  3396. z.WriteStr("\"I16slice\"")
  3397. } else {
  3398. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  3399. }
  3400. z.EncWriteMapElemValue()
  3401. if x.TestStrucCommon.I16slice == nil {
  3402. r.EncodeNil()
  3403. } else {
  3404. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  3405. } // end block: if x.TestStrucCommon.I16slice slice == nil
  3406. z.EncWriteMapElemKey()
  3407. if z.IsJSONHandle() {
  3408. z.WriteStr("\"Ui64slice\"")
  3409. } else {
  3410. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  3411. }
  3412. z.EncWriteMapElemValue()
  3413. if x.TestStrucCommon.Ui64slice == nil {
  3414. r.EncodeNil()
  3415. } else {
  3416. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  3417. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  3418. z.EncWriteMapElemKey()
  3419. if z.IsJSONHandle() {
  3420. z.WriteStr("\"Ui8slice\"")
  3421. } else {
  3422. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  3423. }
  3424. z.EncWriteMapElemValue()
  3425. if x.TestStrucCommon.Ui8slice == nil {
  3426. r.EncodeNil()
  3427. } else {
  3428. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  3429. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  3430. z.EncWriteMapElemKey()
  3431. if z.IsJSONHandle() {
  3432. z.WriteStr("\"Bslice\"")
  3433. } else {
  3434. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  3435. }
  3436. z.EncWriteMapElemValue()
  3437. if x.TestStrucCommon.Bslice == nil {
  3438. r.EncodeNil()
  3439. } else {
  3440. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  3441. } // end block: if x.TestStrucCommon.Bslice slice == nil
  3442. z.EncWriteMapElemKey()
  3443. if z.IsJSONHandle() {
  3444. z.WriteStr("\"Byslice\"")
  3445. } else {
  3446. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  3447. }
  3448. z.EncWriteMapElemValue()
  3449. if x.TestStrucCommon.Byslice == nil {
  3450. r.EncodeNil()
  3451. } else {
  3452. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  3453. } // end block: if x.TestStrucCommon.Byslice slice == nil
  3454. z.EncWriteMapElemKey()
  3455. if z.IsJSONHandle() {
  3456. z.WriteStr("\"BytesSlice\"")
  3457. } else {
  3458. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  3459. }
  3460. z.EncWriteMapElemValue()
  3461. if x.TestStrucCommon.BytesSlice == nil {
  3462. r.EncodeNil()
  3463. } else {
  3464. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  3465. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  3466. z.EncWriteMapElemKey()
  3467. if z.IsJSONHandle() {
  3468. z.WriteStr("\"Iptrslice\"")
  3469. } else {
  3470. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  3471. }
  3472. z.EncWriteMapElemValue()
  3473. if x.TestStrucCommon.Iptrslice == nil {
  3474. r.EncodeNil()
  3475. } else {
  3476. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  3477. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  3478. z.EncWriteMapElemKey()
  3479. if z.IsJSONHandle() {
  3480. z.WriteStr("\"WrapSliceInt64\"")
  3481. } else {
  3482. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  3483. }
  3484. z.EncWriteMapElemValue()
  3485. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  3486. z.EncWriteMapElemKey()
  3487. if z.IsJSONHandle() {
  3488. z.WriteStr("\"WrapSliceString\"")
  3489. } else {
  3490. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  3491. }
  3492. z.EncWriteMapElemValue()
  3493. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  3494. z.EncWriteMapElemKey()
  3495. if z.IsJSONHandle() {
  3496. z.WriteStr("\"Msi64\"")
  3497. } else {
  3498. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  3499. }
  3500. z.EncWriteMapElemValue()
  3501. if x.TestStrucCommon.Msi64 == nil {
  3502. r.EncodeNil()
  3503. } else {
  3504. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  3505. } // end block: if x.TestStrucCommon.Msi64 map == nil
  3506. z.EncWriteMapElemKey()
  3507. if z.IsJSONHandle() {
  3508. z.WriteStr("\"Msbytes\"")
  3509. } else {
  3510. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  3511. }
  3512. z.EncWriteMapElemValue()
  3513. if x.TestStrucCommon.Msbytes == nil {
  3514. r.EncodeNil()
  3515. } else {
  3516. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  3517. } // end block: if x.TestStrucCommon.Msbytes map == nil
  3518. z.EncWriteMapElemKey()
  3519. if z.IsJSONHandle() {
  3520. z.WriteStr("\"Simplef\"")
  3521. } else {
  3522. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  3523. }
  3524. z.EncWriteMapElemValue()
  3525. yy149 := &x.TestStrucCommon.Simplef
  3526. yy149.CodecEncodeSelf(e)
  3527. z.EncWriteMapElemKey()
  3528. if z.IsJSONHandle() {
  3529. z.WriteStr("\"SstrUi64T\"")
  3530. } else {
  3531. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  3532. }
  3533. z.EncWriteMapElemValue()
  3534. if x.TestStrucCommon.SstrUi64T == nil {
  3535. r.EncodeNil()
  3536. } else {
  3537. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  3538. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  3539. z.EncWriteMapElemKey()
  3540. if z.IsJSONHandle() {
  3541. z.WriteStr("\"MstrUi64T\"")
  3542. } else {
  3543. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  3544. }
  3545. z.EncWriteMapElemValue()
  3546. if x.TestStrucCommon.MstrUi64T == nil {
  3547. r.EncodeNil()
  3548. } else {
  3549. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  3550. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  3551. z.EncWriteMapElemKey()
  3552. if z.IsJSONHandle() {
  3553. z.WriteStr("\"AS\"")
  3554. } else {
  3555. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  3556. }
  3557. z.EncWriteMapElemValue()
  3558. if z.EncBasicHandle().StringToRaw {
  3559. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  3560. } else {
  3561. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  3562. }
  3563. z.EncWriteMapElemKey()
  3564. if z.IsJSONHandle() {
  3565. z.WriteStr("\"AI64\"")
  3566. } else {
  3567. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  3568. }
  3569. z.EncWriteMapElemValue()
  3570. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  3571. z.EncWriteMapElemKey()
  3572. if z.IsJSONHandle() {
  3573. z.WriteStr("\"AI16\"")
  3574. } else {
  3575. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  3576. }
  3577. z.EncWriteMapElemValue()
  3578. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  3579. z.EncWriteMapElemKey()
  3580. if z.IsJSONHandle() {
  3581. z.WriteStr("\"AUi64\"")
  3582. } else {
  3583. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  3584. }
  3585. z.EncWriteMapElemValue()
  3586. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  3587. z.EncWriteMapElemKey()
  3588. if z.IsJSONHandle() {
  3589. z.WriteStr("\"ASslice\"")
  3590. } else {
  3591. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  3592. }
  3593. z.EncWriteMapElemValue()
  3594. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  3595. r.EncodeNil()
  3596. } else {
  3597. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  3598. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  3599. z.EncWriteMapElemKey()
  3600. if z.IsJSONHandle() {
  3601. z.WriteStr("\"AI64slice\"")
  3602. } else {
  3603. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  3604. }
  3605. z.EncWriteMapElemValue()
  3606. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  3607. r.EncodeNil()
  3608. } else {
  3609. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  3610. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  3611. z.EncWriteMapElemKey()
  3612. if z.IsJSONHandle() {
  3613. z.WriteStr("\"AUi64slice\"")
  3614. } else {
  3615. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  3616. }
  3617. z.EncWriteMapElemValue()
  3618. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  3619. r.EncodeNil()
  3620. } else {
  3621. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  3622. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  3623. z.EncWriteMapElemKey()
  3624. if z.IsJSONHandle() {
  3625. z.WriteStr("\"AF64slice\"")
  3626. } else {
  3627. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  3628. }
  3629. z.EncWriteMapElemValue()
  3630. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  3631. r.EncodeNil()
  3632. } else {
  3633. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  3634. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  3635. z.EncWriteMapElemKey()
  3636. if z.IsJSONHandle() {
  3637. z.WriteStr("\"AF32slice\"")
  3638. } else {
  3639. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  3640. }
  3641. z.EncWriteMapElemValue()
  3642. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  3643. r.EncodeNil()
  3644. } else {
  3645. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  3646. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  3647. z.EncWriteMapElemKey()
  3648. if z.IsJSONHandle() {
  3649. z.WriteStr("\"AMSU16\"")
  3650. } else {
  3651. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  3652. }
  3653. z.EncWriteMapElemValue()
  3654. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  3655. r.EncodeNil()
  3656. } else {
  3657. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  3658. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  3659. z.EncWriteMapElemKey()
  3660. if z.IsJSONHandle() {
  3661. z.WriteStr("\"AI64arr0\"")
  3662. } else {
  3663. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  3664. }
  3665. z.EncWriteMapElemValue()
  3666. yy163 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  3667. h.encArray0int64((*[0]int64)(yy163), e)
  3668. z.EncWriteMapElemKey()
  3669. if z.IsJSONHandle() {
  3670. z.WriteStr("\"AI64slice0\"")
  3671. } else {
  3672. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  3673. }
  3674. z.EncWriteMapElemValue()
  3675. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  3676. r.EncodeNil()
  3677. } else {
  3678. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  3679. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  3680. z.EncWriteMapElemKey()
  3681. if z.IsJSONHandle() {
  3682. z.WriteStr("\"AUi64sliceN\"")
  3683. } else {
  3684. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  3685. }
  3686. z.EncWriteMapElemValue()
  3687. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  3688. r.EncodeNil()
  3689. } else {
  3690. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  3691. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  3692. z.EncWriteMapElemKey()
  3693. if z.IsJSONHandle() {
  3694. z.WriteStr("\"AMSU16N\"")
  3695. } else {
  3696. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  3697. }
  3698. z.EncWriteMapElemValue()
  3699. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  3700. r.EncodeNil()
  3701. } else {
  3702. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  3703. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  3704. z.EncWriteMapElemKey()
  3705. if z.IsJSONHandle() {
  3706. z.WriteStr("\"AMSU16E\"")
  3707. } else {
  3708. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  3709. }
  3710. z.EncWriteMapElemValue()
  3711. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  3712. r.EncodeNil()
  3713. } else {
  3714. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  3715. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  3716. z.EncWriteMapElemKey()
  3717. if z.IsJSONHandle() {
  3718. z.WriteStr("\"NotAnon\"")
  3719. } else {
  3720. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  3721. }
  3722. z.EncWriteMapElemValue()
  3723. yy169 := &x.TestStrucCommon.NotAnon
  3724. yy169.CodecEncodeSelf(e)
  3725. z.EncWriteMapElemKey()
  3726. if z.IsJSONHandle() {
  3727. z.WriteStr("\"Nmap\"")
  3728. } else {
  3729. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  3730. }
  3731. z.EncWriteMapElemValue()
  3732. if x.TestStrucCommon.Nmap == nil {
  3733. r.EncodeNil()
  3734. } else {
  3735. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  3736. } // end block: if x.TestStrucCommon.Nmap map == nil
  3737. z.EncWriteMapElemKey()
  3738. if z.IsJSONHandle() {
  3739. z.WriteStr("\"Nslice\"")
  3740. } else {
  3741. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  3742. }
  3743. z.EncWriteMapElemValue()
  3744. if x.TestStrucCommon.Nslice == nil {
  3745. r.EncodeNil()
  3746. } else {
  3747. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  3748. } // end block: if x.TestStrucCommon.Nslice slice == nil
  3749. z.EncWriteMapElemKey()
  3750. if z.IsJSONHandle() {
  3751. z.WriteStr("\"Nint64\"")
  3752. } else {
  3753. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  3754. }
  3755. z.EncWriteMapElemValue()
  3756. if yyn54 {
  3757. r.EncodeNil()
  3758. } else {
  3759. yy173 := *x.TestStrucCommon.Nint64
  3760. r.EncodeInt(int64(yy173))
  3761. }
  3762. z.EncWriteMapElemKey()
  3763. if z.IsJSONHandle() {
  3764. z.WriteStr("\"Mtsptr\"")
  3765. } else {
  3766. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  3767. }
  3768. z.EncWriteMapElemValue()
  3769. if x.Mtsptr == nil {
  3770. r.EncodeNil()
  3771. } else {
  3772. h.encMapstringPtrtoTestStruc((map[string]*TestStruc)(x.Mtsptr), e)
  3773. } // end block: if x.Mtsptr map == nil
  3774. z.EncWriteMapElemKey()
  3775. if z.IsJSONHandle() {
  3776. z.WriteStr("\"Mts\"")
  3777. } else {
  3778. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  3779. }
  3780. z.EncWriteMapElemValue()
  3781. if x.Mts == nil {
  3782. r.EncodeNil()
  3783. } else {
  3784. h.encMapstringTestStruc((map[string]TestStruc)(x.Mts), e)
  3785. } // end block: if x.Mts map == nil
  3786. z.EncWriteMapElemKey()
  3787. if z.IsJSONHandle() {
  3788. z.WriteStr("\"Its\"")
  3789. } else {
  3790. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  3791. }
  3792. z.EncWriteMapElemValue()
  3793. if x.Its == nil {
  3794. r.EncodeNil()
  3795. } else {
  3796. h.encSlicePtrtoTestStruc(([]*TestStruc)(x.Its), e)
  3797. } // end block: if x.Its slice == nil
  3798. z.EncWriteMapElemKey()
  3799. if z.IsJSONHandle() {
  3800. z.WriteStr("\"Nteststruc\"")
  3801. } else {
  3802. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  3803. }
  3804. z.EncWriteMapElemValue()
  3805. if yyn58 {
  3806. r.EncodeNil()
  3807. } else {
  3808. x.Nteststruc.CodecEncodeSelf(e)
  3809. }
  3810. z.EncWriteMapEnd()
  3811. }
  3812. }
  3813. }
  3814. func (x *TestStruc) CodecDecodeSelf(d *Decoder) {
  3815. var h codecSelfer19780
  3816. z, r := GenHelperDecoder(d)
  3817. _, _, _ = h, z, r
  3818. yyct2 := r.ContainerType()
  3819. if yyct2 == codecSelferValueTypeNil19780 {
  3820. *(x) = TestStruc{}
  3821. } else if yyct2 == codecSelferValueTypeMap19780 {
  3822. yyl2 := z.DecReadMapStart()
  3823. if yyl2 == 0 {
  3824. } else {
  3825. x.codecDecodeSelfFromMap(yyl2, d)
  3826. }
  3827. z.DecReadMapEnd()
  3828. } else if yyct2 == codecSelferValueTypeArray19780 {
  3829. yyl2 := z.DecReadArrayStart()
  3830. if yyl2 != 0 {
  3831. x.codecDecodeSelfFromArray(yyl2, d)
  3832. }
  3833. z.DecReadArrayEnd()
  3834. } else {
  3835. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  3836. }
  3837. }
  3838. func (x *TestStruc) codecDecodeSelfFromMap(l int, d *Decoder) {
  3839. var h codecSelfer19780
  3840. z, r := GenHelperDecoder(d)
  3841. _, _, _ = h, z, r
  3842. var yyhl3 bool = l >= 0
  3843. for yyj3 := 0; ; yyj3++ {
  3844. if yyhl3 {
  3845. if yyj3 >= l {
  3846. break
  3847. }
  3848. } else {
  3849. if r.CheckBreak() {
  3850. break
  3851. }
  3852. }
  3853. z.DecReadMapElemKey()
  3854. yys3 := z.StringView(r.DecodeStringAsBytes())
  3855. z.DecReadMapElemValue()
  3856. switch yys3 {
  3857. case "S":
  3858. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  3859. case "I64":
  3860. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  3861. case "I32":
  3862. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3863. case "I16":
  3864. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3865. case "I8":
  3866. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3867. case "I64n":
  3868. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  3869. case "I32n":
  3870. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  3871. case "I16n":
  3872. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3873. case "I8n":
  3874. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  3875. case "Ui64":
  3876. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  3877. case "Ui32":
  3878. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  3879. case "Ui16":
  3880. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  3881. case "Ui8":
  3882. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3883. case "F64":
  3884. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  3885. case "F32":
  3886. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  3887. case "B":
  3888. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  3889. case "By":
  3890. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  3891. case "Sslice":
  3892. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  3893. case "I64slice":
  3894. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  3895. case "I16slice":
  3896. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  3897. case "Ui64slice":
  3898. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  3899. case "Ui8slice":
  3900. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  3901. case "Bslice":
  3902. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  3903. case "Byslice":
  3904. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  3905. case "BytesSlice":
  3906. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  3907. case "Iptrslice":
  3908. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  3909. case "WrapSliceInt64":
  3910. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  3911. case "WrapSliceString":
  3912. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  3913. case "Msi64":
  3914. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  3915. case "Msbytes":
  3916. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  3917. case "Simplef":
  3918. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  3919. case "SstrUi64T":
  3920. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  3921. case "MstrUi64T":
  3922. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  3923. case "AS":
  3924. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  3925. case "AI64":
  3926. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  3927. case "AI16":
  3928. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  3929. case "AUi64":
  3930. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  3931. case "ASslice":
  3932. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  3933. case "AI64slice":
  3934. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  3935. case "AUi64slice":
  3936. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  3937. case "AF64slice":
  3938. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  3939. case "AF32slice":
  3940. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  3941. case "AMSU16":
  3942. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  3943. case "AI64arr0":
  3944. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  3945. case "AI64slice0":
  3946. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  3947. case "AUi64sliceN":
  3948. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  3949. case "AMSU16N":
  3950. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  3951. case "AMSU16E":
  3952. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  3953. case "NotAnon":
  3954. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  3955. case "Nmap":
  3956. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  3957. case "Nslice":
  3958. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  3959. case "Nint64":
  3960. if r.TryNil() {
  3961. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  3962. x.TestStrucCommon.Nint64 = nil
  3963. }
  3964. } else {
  3965. if x.TestStrucCommon.Nint64 == nil {
  3966. x.TestStrucCommon.Nint64 = new(int64)
  3967. }
  3968. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  3969. }
  3970. case "Mtsptr":
  3971. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  3972. case "Mts":
  3973. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  3974. case "Its":
  3975. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  3976. case "Nteststruc":
  3977. if r.TryNil() {
  3978. if x.Nteststruc != nil { // remove the if-true
  3979. x.Nteststruc = nil
  3980. }
  3981. } else {
  3982. if x.Nteststruc == nil {
  3983. x.Nteststruc = new(TestStruc)
  3984. }
  3985. x.Nteststruc.CodecDecodeSelf(d)
  3986. }
  3987. default:
  3988. z.DecStructFieldNotFound(-1, yys3)
  3989. } // end switch yys3
  3990. } // end for yyj3
  3991. }
  3992. func (x *TestStruc) codecDecodeSelfFromArray(l int, d *Decoder) {
  3993. var h codecSelfer19780
  3994. z, r := GenHelperDecoder(d)
  3995. _, _, _ = h, z, r
  3996. var yyj90 int
  3997. var yyb90 bool
  3998. var yyhl90 bool = l >= 0
  3999. yyj90++
  4000. if yyhl90 {
  4001. yyb90 = yyj90 > l
  4002. } else {
  4003. yyb90 = r.CheckBreak()
  4004. }
  4005. if yyb90 {
  4006. z.DecReadArrayEnd()
  4007. return
  4008. }
  4009. z.DecReadArrayElem()
  4010. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  4011. yyj90++
  4012. if yyhl90 {
  4013. yyb90 = yyj90 > l
  4014. } else {
  4015. yyb90 = r.CheckBreak()
  4016. }
  4017. if yyb90 {
  4018. z.DecReadArrayEnd()
  4019. return
  4020. }
  4021. z.DecReadArrayElem()
  4022. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  4023. yyj90++
  4024. if yyhl90 {
  4025. yyb90 = yyj90 > l
  4026. } else {
  4027. yyb90 = r.CheckBreak()
  4028. }
  4029. if yyb90 {
  4030. z.DecReadArrayEnd()
  4031. return
  4032. }
  4033. z.DecReadArrayElem()
  4034. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4035. yyj90++
  4036. if yyhl90 {
  4037. yyb90 = yyj90 > l
  4038. } else {
  4039. yyb90 = r.CheckBreak()
  4040. }
  4041. if yyb90 {
  4042. z.DecReadArrayEnd()
  4043. return
  4044. }
  4045. z.DecReadArrayElem()
  4046. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4047. yyj90++
  4048. if yyhl90 {
  4049. yyb90 = yyj90 > l
  4050. } else {
  4051. yyb90 = r.CheckBreak()
  4052. }
  4053. if yyb90 {
  4054. z.DecReadArrayEnd()
  4055. return
  4056. }
  4057. z.DecReadArrayElem()
  4058. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4059. yyj90++
  4060. if yyhl90 {
  4061. yyb90 = yyj90 > l
  4062. } else {
  4063. yyb90 = r.CheckBreak()
  4064. }
  4065. if yyb90 {
  4066. z.DecReadArrayEnd()
  4067. return
  4068. }
  4069. z.DecReadArrayElem()
  4070. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  4071. yyj90++
  4072. if yyhl90 {
  4073. yyb90 = yyj90 > l
  4074. } else {
  4075. yyb90 = r.CheckBreak()
  4076. }
  4077. if yyb90 {
  4078. z.DecReadArrayEnd()
  4079. return
  4080. }
  4081. z.DecReadArrayElem()
  4082. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  4083. yyj90++
  4084. if yyhl90 {
  4085. yyb90 = yyj90 > l
  4086. } else {
  4087. yyb90 = r.CheckBreak()
  4088. }
  4089. if yyb90 {
  4090. z.DecReadArrayEnd()
  4091. return
  4092. }
  4093. z.DecReadArrayElem()
  4094. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4095. yyj90++
  4096. if yyhl90 {
  4097. yyb90 = yyj90 > l
  4098. } else {
  4099. yyb90 = r.CheckBreak()
  4100. }
  4101. if yyb90 {
  4102. z.DecReadArrayEnd()
  4103. return
  4104. }
  4105. z.DecReadArrayElem()
  4106. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  4107. yyj90++
  4108. if yyhl90 {
  4109. yyb90 = yyj90 > l
  4110. } else {
  4111. yyb90 = r.CheckBreak()
  4112. }
  4113. if yyb90 {
  4114. z.DecReadArrayEnd()
  4115. return
  4116. }
  4117. z.DecReadArrayElem()
  4118. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  4119. yyj90++
  4120. if yyhl90 {
  4121. yyb90 = yyj90 > l
  4122. } else {
  4123. yyb90 = r.CheckBreak()
  4124. }
  4125. if yyb90 {
  4126. z.DecReadArrayEnd()
  4127. return
  4128. }
  4129. z.DecReadArrayElem()
  4130. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  4131. yyj90++
  4132. if yyhl90 {
  4133. yyb90 = yyj90 > l
  4134. } else {
  4135. yyb90 = r.CheckBreak()
  4136. }
  4137. if yyb90 {
  4138. z.DecReadArrayEnd()
  4139. return
  4140. }
  4141. z.DecReadArrayElem()
  4142. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  4143. yyj90++
  4144. if yyhl90 {
  4145. yyb90 = yyj90 > l
  4146. } else {
  4147. yyb90 = r.CheckBreak()
  4148. }
  4149. if yyb90 {
  4150. z.DecReadArrayEnd()
  4151. return
  4152. }
  4153. z.DecReadArrayElem()
  4154. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4155. yyj90++
  4156. if yyhl90 {
  4157. yyb90 = yyj90 > l
  4158. } else {
  4159. yyb90 = r.CheckBreak()
  4160. }
  4161. if yyb90 {
  4162. z.DecReadArrayEnd()
  4163. return
  4164. }
  4165. z.DecReadArrayElem()
  4166. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  4167. yyj90++
  4168. if yyhl90 {
  4169. yyb90 = yyj90 > l
  4170. } else {
  4171. yyb90 = r.CheckBreak()
  4172. }
  4173. if yyb90 {
  4174. z.DecReadArrayEnd()
  4175. return
  4176. }
  4177. z.DecReadArrayElem()
  4178. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  4179. yyj90++
  4180. if yyhl90 {
  4181. yyb90 = yyj90 > l
  4182. } else {
  4183. yyb90 = r.CheckBreak()
  4184. }
  4185. if yyb90 {
  4186. z.DecReadArrayEnd()
  4187. return
  4188. }
  4189. z.DecReadArrayElem()
  4190. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  4191. yyj90++
  4192. if yyhl90 {
  4193. yyb90 = yyj90 > l
  4194. } else {
  4195. yyb90 = r.CheckBreak()
  4196. }
  4197. if yyb90 {
  4198. z.DecReadArrayEnd()
  4199. return
  4200. }
  4201. z.DecReadArrayElem()
  4202. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  4203. yyj90++
  4204. if yyhl90 {
  4205. yyb90 = yyj90 > l
  4206. } else {
  4207. yyb90 = r.CheckBreak()
  4208. }
  4209. if yyb90 {
  4210. z.DecReadArrayEnd()
  4211. return
  4212. }
  4213. z.DecReadArrayElem()
  4214. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  4215. yyj90++
  4216. if yyhl90 {
  4217. yyb90 = yyj90 > l
  4218. } else {
  4219. yyb90 = r.CheckBreak()
  4220. }
  4221. if yyb90 {
  4222. z.DecReadArrayEnd()
  4223. return
  4224. }
  4225. z.DecReadArrayElem()
  4226. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  4227. yyj90++
  4228. if yyhl90 {
  4229. yyb90 = yyj90 > l
  4230. } else {
  4231. yyb90 = r.CheckBreak()
  4232. }
  4233. if yyb90 {
  4234. z.DecReadArrayEnd()
  4235. return
  4236. }
  4237. z.DecReadArrayElem()
  4238. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  4239. yyj90++
  4240. if yyhl90 {
  4241. yyb90 = yyj90 > l
  4242. } else {
  4243. yyb90 = r.CheckBreak()
  4244. }
  4245. if yyb90 {
  4246. z.DecReadArrayEnd()
  4247. return
  4248. }
  4249. z.DecReadArrayElem()
  4250. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  4251. yyj90++
  4252. if yyhl90 {
  4253. yyb90 = yyj90 > l
  4254. } else {
  4255. yyb90 = r.CheckBreak()
  4256. }
  4257. if yyb90 {
  4258. z.DecReadArrayEnd()
  4259. return
  4260. }
  4261. z.DecReadArrayElem()
  4262. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  4263. yyj90++
  4264. if yyhl90 {
  4265. yyb90 = yyj90 > l
  4266. } else {
  4267. yyb90 = r.CheckBreak()
  4268. }
  4269. if yyb90 {
  4270. z.DecReadArrayEnd()
  4271. return
  4272. }
  4273. z.DecReadArrayElem()
  4274. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  4275. yyj90++
  4276. if yyhl90 {
  4277. yyb90 = yyj90 > l
  4278. } else {
  4279. yyb90 = r.CheckBreak()
  4280. }
  4281. if yyb90 {
  4282. z.DecReadArrayEnd()
  4283. return
  4284. }
  4285. z.DecReadArrayElem()
  4286. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  4287. yyj90++
  4288. if yyhl90 {
  4289. yyb90 = yyj90 > l
  4290. } else {
  4291. yyb90 = r.CheckBreak()
  4292. }
  4293. if yyb90 {
  4294. z.DecReadArrayEnd()
  4295. return
  4296. }
  4297. z.DecReadArrayElem()
  4298. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  4299. yyj90++
  4300. if yyhl90 {
  4301. yyb90 = yyj90 > l
  4302. } else {
  4303. yyb90 = r.CheckBreak()
  4304. }
  4305. if yyb90 {
  4306. z.DecReadArrayEnd()
  4307. return
  4308. }
  4309. z.DecReadArrayElem()
  4310. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  4311. yyj90++
  4312. if yyhl90 {
  4313. yyb90 = yyj90 > l
  4314. } else {
  4315. yyb90 = r.CheckBreak()
  4316. }
  4317. if yyb90 {
  4318. z.DecReadArrayEnd()
  4319. return
  4320. }
  4321. z.DecReadArrayElem()
  4322. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  4323. yyj90++
  4324. if yyhl90 {
  4325. yyb90 = yyj90 > l
  4326. } else {
  4327. yyb90 = r.CheckBreak()
  4328. }
  4329. if yyb90 {
  4330. z.DecReadArrayEnd()
  4331. return
  4332. }
  4333. z.DecReadArrayElem()
  4334. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  4335. yyj90++
  4336. if yyhl90 {
  4337. yyb90 = yyj90 > l
  4338. } else {
  4339. yyb90 = r.CheckBreak()
  4340. }
  4341. if yyb90 {
  4342. z.DecReadArrayEnd()
  4343. return
  4344. }
  4345. z.DecReadArrayElem()
  4346. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  4347. yyj90++
  4348. if yyhl90 {
  4349. yyb90 = yyj90 > l
  4350. } else {
  4351. yyb90 = r.CheckBreak()
  4352. }
  4353. if yyb90 {
  4354. z.DecReadArrayEnd()
  4355. return
  4356. }
  4357. z.DecReadArrayElem()
  4358. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  4359. yyj90++
  4360. if yyhl90 {
  4361. yyb90 = yyj90 > l
  4362. } else {
  4363. yyb90 = r.CheckBreak()
  4364. }
  4365. if yyb90 {
  4366. z.DecReadArrayEnd()
  4367. return
  4368. }
  4369. z.DecReadArrayElem()
  4370. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  4371. yyj90++
  4372. if yyhl90 {
  4373. yyb90 = yyj90 > l
  4374. } else {
  4375. yyb90 = r.CheckBreak()
  4376. }
  4377. if yyb90 {
  4378. z.DecReadArrayEnd()
  4379. return
  4380. }
  4381. z.DecReadArrayElem()
  4382. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  4383. yyj90++
  4384. if yyhl90 {
  4385. yyb90 = yyj90 > l
  4386. } else {
  4387. yyb90 = r.CheckBreak()
  4388. }
  4389. if yyb90 {
  4390. z.DecReadArrayEnd()
  4391. return
  4392. }
  4393. z.DecReadArrayElem()
  4394. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  4395. yyj90++
  4396. if yyhl90 {
  4397. yyb90 = yyj90 > l
  4398. } else {
  4399. yyb90 = r.CheckBreak()
  4400. }
  4401. if yyb90 {
  4402. z.DecReadArrayEnd()
  4403. return
  4404. }
  4405. z.DecReadArrayElem()
  4406. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  4407. yyj90++
  4408. if yyhl90 {
  4409. yyb90 = yyj90 > l
  4410. } else {
  4411. yyb90 = r.CheckBreak()
  4412. }
  4413. if yyb90 {
  4414. z.DecReadArrayEnd()
  4415. return
  4416. }
  4417. z.DecReadArrayElem()
  4418. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  4419. yyj90++
  4420. if yyhl90 {
  4421. yyb90 = yyj90 > l
  4422. } else {
  4423. yyb90 = r.CheckBreak()
  4424. }
  4425. if yyb90 {
  4426. z.DecReadArrayEnd()
  4427. return
  4428. }
  4429. z.DecReadArrayElem()
  4430. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  4431. yyj90++
  4432. if yyhl90 {
  4433. yyb90 = yyj90 > l
  4434. } else {
  4435. yyb90 = r.CheckBreak()
  4436. }
  4437. if yyb90 {
  4438. z.DecReadArrayEnd()
  4439. return
  4440. }
  4441. z.DecReadArrayElem()
  4442. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  4443. yyj90++
  4444. if yyhl90 {
  4445. yyb90 = yyj90 > l
  4446. } else {
  4447. yyb90 = r.CheckBreak()
  4448. }
  4449. if yyb90 {
  4450. z.DecReadArrayEnd()
  4451. return
  4452. }
  4453. z.DecReadArrayElem()
  4454. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  4455. yyj90++
  4456. if yyhl90 {
  4457. yyb90 = yyj90 > l
  4458. } else {
  4459. yyb90 = r.CheckBreak()
  4460. }
  4461. if yyb90 {
  4462. z.DecReadArrayEnd()
  4463. return
  4464. }
  4465. z.DecReadArrayElem()
  4466. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  4467. yyj90++
  4468. if yyhl90 {
  4469. yyb90 = yyj90 > l
  4470. } else {
  4471. yyb90 = r.CheckBreak()
  4472. }
  4473. if yyb90 {
  4474. z.DecReadArrayEnd()
  4475. return
  4476. }
  4477. z.DecReadArrayElem()
  4478. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  4479. yyj90++
  4480. if yyhl90 {
  4481. yyb90 = yyj90 > l
  4482. } else {
  4483. yyb90 = r.CheckBreak()
  4484. }
  4485. if yyb90 {
  4486. z.DecReadArrayEnd()
  4487. return
  4488. }
  4489. z.DecReadArrayElem()
  4490. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  4491. yyj90++
  4492. if yyhl90 {
  4493. yyb90 = yyj90 > l
  4494. } else {
  4495. yyb90 = r.CheckBreak()
  4496. }
  4497. if yyb90 {
  4498. z.DecReadArrayEnd()
  4499. return
  4500. }
  4501. z.DecReadArrayElem()
  4502. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  4503. yyj90++
  4504. if yyhl90 {
  4505. yyb90 = yyj90 > l
  4506. } else {
  4507. yyb90 = r.CheckBreak()
  4508. }
  4509. if yyb90 {
  4510. z.DecReadArrayEnd()
  4511. return
  4512. }
  4513. z.DecReadArrayElem()
  4514. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  4515. yyj90++
  4516. if yyhl90 {
  4517. yyb90 = yyj90 > l
  4518. } else {
  4519. yyb90 = r.CheckBreak()
  4520. }
  4521. if yyb90 {
  4522. z.DecReadArrayEnd()
  4523. return
  4524. }
  4525. z.DecReadArrayElem()
  4526. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  4527. yyj90++
  4528. if yyhl90 {
  4529. yyb90 = yyj90 > l
  4530. } else {
  4531. yyb90 = r.CheckBreak()
  4532. }
  4533. if yyb90 {
  4534. z.DecReadArrayEnd()
  4535. return
  4536. }
  4537. z.DecReadArrayElem()
  4538. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  4539. yyj90++
  4540. if yyhl90 {
  4541. yyb90 = yyj90 > l
  4542. } else {
  4543. yyb90 = r.CheckBreak()
  4544. }
  4545. if yyb90 {
  4546. z.DecReadArrayEnd()
  4547. return
  4548. }
  4549. z.DecReadArrayElem()
  4550. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  4551. yyj90++
  4552. if yyhl90 {
  4553. yyb90 = yyj90 > l
  4554. } else {
  4555. yyb90 = r.CheckBreak()
  4556. }
  4557. if yyb90 {
  4558. z.DecReadArrayEnd()
  4559. return
  4560. }
  4561. z.DecReadArrayElem()
  4562. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  4563. yyj90++
  4564. if yyhl90 {
  4565. yyb90 = yyj90 > l
  4566. } else {
  4567. yyb90 = r.CheckBreak()
  4568. }
  4569. if yyb90 {
  4570. z.DecReadArrayEnd()
  4571. return
  4572. }
  4573. z.DecReadArrayElem()
  4574. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  4575. yyj90++
  4576. if yyhl90 {
  4577. yyb90 = yyj90 > l
  4578. } else {
  4579. yyb90 = r.CheckBreak()
  4580. }
  4581. if yyb90 {
  4582. z.DecReadArrayEnd()
  4583. return
  4584. }
  4585. z.DecReadArrayElem()
  4586. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  4587. yyj90++
  4588. if yyhl90 {
  4589. yyb90 = yyj90 > l
  4590. } else {
  4591. yyb90 = r.CheckBreak()
  4592. }
  4593. if yyb90 {
  4594. z.DecReadArrayEnd()
  4595. return
  4596. }
  4597. z.DecReadArrayElem()
  4598. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  4599. yyj90++
  4600. if yyhl90 {
  4601. yyb90 = yyj90 > l
  4602. } else {
  4603. yyb90 = r.CheckBreak()
  4604. }
  4605. if yyb90 {
  4606. z.DecReadArrayEnd()
  4607. return
  4608. }
  4609. z.DecReadArrayElem()
  4610. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  4611. yyj90++
  4612. if yyhl90 {
  4613. yyb90 = yyj90 > l
  4614. } else {
  4615. yyb90 = r.CheckBreak()
  4616. }
  4617. if yyb90 {
  4618. z.DecReadArrayEnd()
  4619. return
  4620. }
  4621. z.DecReadArrayElem()
  4622. if r.TryNil() {
  4623. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  4624. x.TestStrucCommon.Nint64 = nil
  4625. }
  4626. } else {
  4627. if x.TestStrucCommon.Nint64 == nil {
  4628. x.TestStrucCommon.Nint64 = new(int64)
  4629. }
  4630. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  4631. }
  4632. yyj90++
  4633. if yyhl90 {
  4634. yyb90 = yyj90 > l
  4635. } else {
  4636. yyb90 = r.CheckBreak()
  4637. }
  4638. if yyb90 {
  4639. z.DecReadArrayEnd()
  4640. return
  4641. }
  4642. z.DecReadArrayElem()
  4643. h.decMapstringPtrtoTestStruc((*map[string]*TestStruc)(&x.Mtsptr), d)
  4644. yyj90++
  4645. if yyhl90 {
  4646. yyb90 = yyj90 > l
  4647. } else {
  4648. yyb90 = r.CheckBreak()
  4649. }
  4650. if yyb90 {
  4651. z.DecReadArrayEnd()
  4652. return
  4653. }
  4654. z.DecReadArrayElem()
  4655. h.decMapstringTestStruc((*map[string]TestStruc)(&x.Mts), d)
  4656. yyj90++
  4657. if yyhl90 {
  4658. yyb90 = yyj90 > l
  4659. } else {
  4660. yyb90 = r.CheckBreak()
  4661. }
  4662. if yyb90 {
  4663. z.DecReadArrayEnd()
  4664. return
  4665. }
  4666. z.DecReadArrayElem()
  4667. h.decSlicePtrtoTestStruc((*[]*TestStruc)(&x.Its), d)
  4668. yyj90++
  4669. if yyhl90 {
  4670. yyb90 = yyj90 > l
  4671. } else {
  4672. yyb90 = r.CheckBreak()
  4673. }
  4674. if yyb90 {
  4675. z.DecReadArrayEnd()
  4676. return
  4677. }
  4678. z.DecReadArrayElem()
  4679. if r.TryNil() {
  4680. if x.Nteststruc != nil { // remove the if-true
  4681. x.Nteststruc = nil
  4682. }
  4683. } else {
  4684. if x.Nteststruc == nil {
  4685. x.Nteststruc = new(TestStruc)
  4686. }
  4687. x.Nteststruc.CodecDecodeSelf(d)
  4688. }
  4689. for {
  4690. yyj90++
  4691. if yyhl90 {
  4692. yyb90 = yyj90 > l
  4693. } else {
  4694. yyb90 = r.CheckBreak()
  4695. }
  4696. if yyb90 {
  4697. break
  4698. }
  4699. z.DecReadArrayElem()
  4700. z.DecStructFieldNotFound(yyj90-1, "")
  4701. }
  4702. }
  4703. func (x *codecgenA) CodecEncodeSelf(e *Encoder) {
  4704. var h codecSelfer19780
  4705. z, r := GenHelperEncoder(e)
  4706. _, _, _ = h, z, r
  4707. if x == nil {
  4708. r.EncodeNil()
  4709. } else {
  4710. yysep2 := !z.EncBinary()
  4711. yy2arr2 := z.EncBasicHandle().StructToArray
  4712. _, _ = yysep2, yy2arr2
  4713. const yyr2 bool = false // struct tag has 'toArray'
  4714. if yyr2 || yy2arr2 {
  4715. z.EncWriteArrayStart(1)
  4716. z.EncWriteArrayElem()
  4717. if x.ZZ == nil {
  4718. r.EncodeNil()
  4719. } else {
  4720. r.EncodeStringBytesRaw([]byte(x.ZZ))
  4721. } // end block: if x.ZZ slice == nil
  4722. z.EncWriteArrayEnd()
  4723. } else {
  4724. z.EncWriteMapStart(1)
  4725. z.EncWriteMapElemKey()
  4726. if z.IsJSONHandle() {
  4727. z.WriteStr("\"ZZ\"")
  4728. } else {
  4729. r.EncodeStringEnc(codecSelferCcUTF819780, `ZZ`)
  4730. }
  4731. z.EncWriteMapElemValue()
  4732. if x.ZZ == nil {
  4733. r.EncodeNil()
  4734. } else {
  4735. r.EncodeStringBytesRaw([]byte(x.ZZ))
  4736. } // end block: if x.ZZ slice == nil
  4737. z.EncWriteMapEnd()
  4738. }
  4739. }
  4740. }
  4741. func (x *codecgenA) CodecDecodeSelf(d *Decoder) {
  4742. var h codecSelfer19780
  4743. z, r := GenHelperDecoder(d)
  4744. _, _, _ = h, z, r
  4745. yyct2 := r.ContainerType()
  4746. if yyct2 == codecSelferValueTypeNil19780 {
  4747. *(x) = codecgenA{}
  4748. } else if yyct2 == codecSelferValueTypeMap19780 {
  4749. yyl2 := z.DecReadMapStart()
  4750. if yyl2 == 0 {
  4751. } else {
  4752. x.codecDecodeSelfFromMap(yyl2, d)
  4753. }
  4754. z.DecReadMapEnd()
  4755. } else if yyct2 == codecSelferValueTypeArray19780 {
  4756. yyl2 := z.DecReadArrayStart()
  4757. if yyl2 != 0 {
  4758. x.codecDecodeSelfFromArray(yyl2, d)
  4759. }
  4760. z.DecReadArrayEnd()
  4761. } else {
  4762. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4763. }
  4764. }
  4765. func (x *codecgenA) codecDecodeSelfFromMap(l int, d *Decoder) {
  4766. var h codecSelfer19780
  4767. z, r := GenHelperDecoder(d)
  4768. _, _, _ = h, z, r
  4769. var yyhl3 bool = l >= 0
  4770. for yyj3 := 0; ; yyj3++ {
  4771. if yyhl3 {
  4772. if yyj3 >= l {
  4773. break
  4774. }
  4775. } else {
  4776. if r.CheckBreak() {
  4777. break
  4778. }
  4779. }
  4780. z.DecReadMapElemKey()
  4781. yys3 := z.StringView(r.DecodeStringAsBytes())
  4782. z.DecReadMapElemValue()
  4783. switch yys3 {
  4784. case "ZZ":
  4785. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  4786. default:
  4787. z.DecStructFieldNotFound(-1, yys3)
  4788. } // end switch yys3
  4789. } // end for yyj3
  4790. }
  4791. func (x *codecgenA) codecDecodeSelfFromArray(l int, d *Decoder) {
  4792. var h codecSelfer19780
  4793. z, r := GenHelperDecoder(d)
  4794. _, _, _ = h, z, r
  4795. var yyj6 int
  4796. var yyb6 bool
  4797. var yyhl6 bool = l >= 0
  4798. yyj6++
  4799. if yyhl6 {
  4800. yyb6 = yyj6 > l
  4801. } else {
  4802. yyb6 = r.CheckBreak()
  4803. }
  4804. if yyb6 {
  4805. z.DecReadArrayEnd()
  4806. return
  4807. }
  4808. z.DecReadArrayElem()
  4809. x.ZZ = r.DecodeBytes(([]byte)(x.ZZ), false)
  4810. for {
  4811. yyj6++
  4812. if yyhl6 {
  4813. yyb6 = yyj6 > l
  4814. } else {
  4815. yyb6 = r.CheckBreak()
  4816. }
  4817. if yyb6 {
  4818. break
  4819. }
  4820. z.DecReadArrayElem()
  4821. z.DecStructFieldNotFound(yyj6-1, "")
  4822. }
  4823. }
  4824. func (x *codecgenB) CodecEncodeSelf(e *Encoder) {
  4825. var h codecSelfer19780
  4826. z, r := GenHelperEncoder(e)
  4827. _, _, _ = h, z, r
  4828. if x == nil {
  4829. r.EncodeNil()
  4830. } else {
  4831. yysep2 := !z.EncBinary()
  4832. yy2arr2 := z.EncBasicHandle().StructToArray
  4833. _, _ = yysep2, yy2arr2
  4834. const yyr2 bool = false // struct tag has 'toArray'
  4835. if yyr2 || yy2arr2 {
  4836. z.EncWriteArrayStart(1)
  4837. z.EncWriteArrayElem()
  4838. yy4 := &x.AA
  4839. yy4.CodecEncodeSelf(e)
  4840. z.EncWriteArrayEnd()
  4841. } else {
  4842. z.EncWriteMapStart(1)
  4843. z.EncWriteMapElemKey()
  4844. if z.IsJSONHandle() {
  4845. z.WriteStr("\"AA\"")
  4846. } else {
  4847. r.EncodeStringEnc(codecSelferCcUTF819780, `AA`)
  4848. }
  4849. z.EncWriteMapElemValue()
  4850. yy6 := &x.AA
  4851. yy6.CodecEncodeSelf(e)
  4852. z.EncWriteMapEnd()
  4853. }
  4854. }
  4855. }
  4856. func (x *codecgenB) CodecDecodeSelf(d *Decoder) {
  4857. var h codecSelfer19780
  4858. z, r := GenHelperDecoder(d)
  4859. _, _, _ = h, z, r
  4860. yyct2 := r.ContainerType()
  4861. if yyct2 == codecSelferValueTypeNil19780 {
  4862. *(x) = codecgenB{}
  4863. } else if yyct2 == codecSelferValueTypeMap19780 {
  4864. yyl2 := z.DecReadMapStart()
  4865. if yyl2 == 0 {
  4866. } else {
  4867. x.codecDecodeSelfFromMap(yyl2, d)
  4868. }
  4869. z.DecReadMapEnd()
  4870. } else if yyct2 == codecSelferValueTypeArray19780 {
  4871. yyl2 := z.DecReadArrayStart()
  4872. if yyl2 != 0 {
  4873. x.codecDecodeSelfFromArray(yyl2, d)
  4874. }
  4875. z.DecReadArrayEnd()
  4876. } else {
  4877. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  4878. }
  4879. }
  4880. func (x *codecgenB) codecDecodeSelfFromMap(l int, d *Decoder) {
  4881. var h codecSelfer19780
  4882. z, r := GenHelperDecoder(d)
  4883. _, _, _ = h, z, r
  4884. var yyhl3 bool = l >= 0
  4885. for yyj3 := 0; ; yyj3++ {
  4886. if yyhl3 {
  4887. if yyj3 >= l {
  4888. break
  4889. }
  4890. } else {
  4891. if r.CheckBreak() {
  4892. break
  4893. }
  4894. }
  4895. z.DecReadMapElemKey()
  4896. yys3 := z.StringView(r.DecodeStringAsBytes())
  4897. z.DecReadMapElemValue()
  4898. switch yys3 {
  4899. case "AA":
  4900. x.AA.CodecDecodeSelf(d)
  4901. default:
  4902. z.DecStructFieldNotFound(-1, yys3)
  4903. } // end switch yys3
  4904. } // end for yyj3
  4905. }
  4906. func (x *codecgenB) codecDecodeSelfFromArray(l int, d *Decoder) {
  4907. var h codecSelfer19780
  4908. z, r := GenHelperDecoder(d)
  4909. _, _, _ = h, z, r
  4910. var yyj5 int
  4911. var yyb5 bool
  4912. var yyhl5 bool = l >= 0
  4913. yyj5++
  4914. if yyhl5 {
  4915. yyb5 = yyj5 > l
  4916. } else {
  4917. yyb5 = r.CheckBreak()
  4918. }
  4919. if yyb5 {
  4920. z.DecReadArrayEnd()
  4921. return
  4922. }
  4923. z.DecReadArrayElem()
  4924. x.AA.CodecDecodeSelf(d)
  4925. for {
  4926. yyj5++
  4927. if yyhl5 {
  4928. yyb5 = yyj5 > l
  4929. } else {
  4930. yyb5 = r.CheckBreak()
  4931. }
  4932. if yyb5 {
  4933. break
  4934. }
  4935. z.DecReadArrayElem()
  4936. z.DecStructFieldNotFound(yyj5-1, "")
  4937. }
  4938. }
  4939. func (x *codecgenC) CodecEncodeSelf(e *Encoder) {
  4940. var h codecSelfer19780
  4941. z, r := GenHelperEncoder(e)
  4942. _, _, _ = h, z, r
  4943. if x == nil {
  4944. r.EncodeNil()
  4945. } else {
  4946. yysep2 := !z.EncBinary()
  4947. yy2arr2 := z.EncBasicHandle().StructToArray
  4948. _, _ = yysep2, yy2arr2
  4949. const yyr2 bool = false // struct tag has 'toArray'
  4950. var yyq2 = [1]bool{ // should field at this index be written?
  4951. false || codecSelfer19780False() || len(x.BB.AA.ZZ) != 0, // BB
  4952. }
  4953. _ = yyq2
  4954. if yyr2 || yy2arr2 {
  4955. z.EncWriteArrayStart(1)
  4956. z.EncWriteArrayElem()
  4957. if yyq2[0] {
  4958. yy4 := &x.BB
  4959. yy4.CodecEncodeSelf(e)
  4960. } else {
  4961. r.EncodeNil()
  4962. }
  4963. z.EncWriteArrayEnd()
  4964. } else {
  4965. var yynn2 int
  4966. for _, b := range yyq2 {
  4967. if b {
  4968. yynn2++
  4969. }
  4970. }
  4971. z.EncWriteMapStart(yynn2)
  4972. yynn2 = 0
  4973. if yyq2[0] {
  4974. z.EncWriteMapElemKey()
  4975. if z.IsJSONHandle() {
  4976. z.WriteStr("\"BB\"")
  4977. } else {
  4978. r.EncodeStringEnc(codecSelferCcUTF819780, `BB`)
  4979. }
  4980. z.EncWriteMapElemValue()
  4981. yy6 := &x.BB
  4982. yy6.CodecEncodeSelf(e)
  4983. }
  4984. z.EncWriteMapEnd()
  4985. }
  4986. }
  4987. }
  4988. func (x *codecgenC) CodecDecodeSelf(d *Decoder) {
  4989. var h codecSelfer19780
  4990. z, r := GenHelperDecoder(d)
  4991. _, _, _ = h, z, r
  4992. yyct2 := r.ContainerType()
  4993. if yyct2 == codecSelferValueTypeNil19780 {
  4994. *(x) = codecgenC{}
  4995. } else if yyct2 == codecSelferValueTypeMap19780 {
  4996. yyl2 := z.DecReadMapStart()
  4997. if yyl2 == 0 {
  4998. } else {
  4999. x.codecDecodeSelfFromMap(yyl2, d)
  5000. }
  5001. z.DecReadMapEnd()
  5002. } else if yyct2 == codecSelferValueTypeArray19780 {
  5003. yyl2 := z.DecReadArrayStart()
  5004. if yyl2 != 0 {
  5005. x.codecDecodeSelfFromArray(yyl2, d)
  5006. }
  5007. z.DecReadArrayEnd()
  5008. } else {
  5009. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5010. }
  5011. }
  5012. func (x *codecgenC) codecDecodeSelfFromMap(l int, d *Decoder) {
  5013. var h codecSelfer19780
  5014. z, r := GenHelperDecoder(d)
  5015. _, _, _ = h, z, r
  5016. var yyhl3 bool = l >= 0
  5017. for yyj3 := 0; ; yyj3++ {
  5018. if yyhl3 {
  5019. if yyj3 >= l {
  5020. break
  5021. }
  5022. } else {
  5023. if r.CheckBreak() {
  5024. break
  5025. }
  5026. }
  5027. z.DecReadMapElemKey()
  5028. yys3 := z.StringView(r.DecodeStringAsBytes())
  5029. z.DecReadMapElemValue()
  5030. switch yys3 {
  5031. case "BB":
  5032. x.BB.CodecDecodeSelf(d)
  5033. default:
  5034. z.DecStructFieldNotFound(-1, yys3)
  5035. } // end switch yys3
  5036. } // end for yyj3
  5037. }
  5038. func (x *codecgenC) codecDecodeSelfFromArray(l int, d *Decoder) {
  5039. var h codecSelfer19780
  5040. z, r := GenHelperDecoder(d)
  5041. _, _, _ = h, z, r
  5042. var yyj5 int
  5043. var yyb5 bool
  5044. var yyhl5 bool = l >= 0
  5045. yyj5++
  5046. if yyhl5 {
  5047. yyb5 = yyj5 > l
  5048. } else {
  5049. yyb5 = r.CheckBreak()
  5050. }
  5051. if yyb5 {
  5052. z.DecReadArrayEnd()
  5053. return
  5054. }
  5055. z.DecReadArrayElem()
  5056. x.BB.CodecDecodeSelf(d)
  5057. for {
  5058. yyj5++
  5059. if yyhl5 {
  5060. yyb5 = yyj5 > l
  5061. } else {
  5062. yyb5 = r.CheckBreak()
  5063. }
  5064. if yyb5 {
  5065. break
  5066. }
  5067. z.DecReadArrayElem()
  5068. z.DecStructFieldNotFound(yyj5-1, "")
  5069. }
  5070. }
  5071. func (x *TestCodecgenG) CodecEncodeSelf(e *Encoder) {
  5072. var h codecSelfer19780
  5073. z, r := GenHelperEncoder(e)
  5074. _, _, _ = h, z, r
  5075. if x == nil {
  5076. r.EncodeNil()
  5077. } else {
  5078. yysep2 := !z.EncBinary()
  5079. yy2arr2 := z.EncBasicHandle().StructToArray
  5080. _, _ = yysep2, yy2arr2
  5081. const yyr2 bool = false // struct tag has 'toArray'
  5082. if yyr2 || yy2arr2 {
  5083. z.EncWriteArrayStart(1)
  5084. z.EncWriteArrayElem()
  5085. r.EncodeInt(int64(x.TestCodecgenG))
  5086. z.EncWriteArrayEnd()
  5087. } else {
  5088. z.EncWriteMapStart(1)
  5089. z.EncWriteMapElemKey()
  5090. if z.IsJSONHandle() {
  5091. z.WriteStr("\"TestCodecgenG\"")
  5092. } else {
  5093. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5094. }
  5095. z.EncWriteMapElemValue()
  5096. r.EncodeInt(int64(x.TestCodecgenG))
  5097. z.EncWriteMapEnd()
  5098. }
  5099. }
  5100. }
  5101. func (x *TestCodecgenG) CodecDecodeSelf(d *Decoder) {
  5102. var h codecSelfer19780
  5103. z, r := GenHelperDecoder(d)
  5104. _, _, _ = h, z, r
  5105. yyct2 := r.ContainerType()
  5106. if yyct2 == codecSelferValueTypeNil19780 {
  5107. *(x) = TestCodecgenG{}
  5108. } else if yyct2 == codecSelferValueTypeMap19780 {
  5109. yyl2 := z.DecReadMapStart()
  5110. if yyl2 == 0 {
  5111. } else {
  5112. x.codecDecodeSelfFromMap(yyl2, d)
  5113. }
  5114. z.DecReadMapEnd()
  5115. } else if yyct2 == codecSelferValueTypeArray19780 {
  5116. yyl2 := z.DecReadArrayStart()
  5117. if yyl2 != 0 {
  5118. x.codecDecodeSelfFromArray(yyl2, d)
  5119. }
  5120. z.DecReadArrayEnd()
  5121. } else {
  5122. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5123. }
  5124. }
  5125. func (x *TestCodecgenG) codecDecodeSelfFromMap(l int, d *Decoder) {
  5126. var h codecSelfer19780
  5127. z, r := GenHelperDecoder(d)
  5128. _, _, _ = h, z, r
  5129. var yyhl3 bool = l >= 0
  5130. for yyj3 := 0; ; yyj3++ {
  5131. if yyhl3 {
  5132. if yyj3 >= l {
  5133. break
  5134. }
  5135. } else {
  5136. if r.CheckBreak() {
  5137. break
  5138. }
  5139. }
  5140. z.DecReadMapElemKey()
  5141. yys3 := z.StringView(r.DecodeStringAsBytes())
  5142. z.DecReadMapElemValue()
  5143. switch yys3 {
  5144. case "TestCodecgenG":
  5145. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5146. default:
  5147. z.DecStructFieldNotFound(-1, yys3)
  5148. } // end switch yys3
  5149. } // end for yyj3
  5150. }
  5151. func (x *TestCodecgenG) codecDecodeSelfFromArray(l int, d *Decoder) {
  5152. var h codecSelfer19780
  5153. z, r := GenHelperDecoder(d)
  5154. _, _, _ = h, z, r
  5155. var yyj5 int
  5156. var yyb5 bool
  5157. var yyhl5 bool = l >= 0
  5158. yyj5++
  5159. if yyhl5 {
  5160. yyb5 = yyj5 > l
  5161. } else {
  5162. yyb5 = r.CheckBreak()
  5163. }
  5164. if yyb5 {
  5165. z.DecReadArrayEnd()
  5166. return
  5167. }
  5168. z.DecReadArrayElem()
  5169. x.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5170. for {
  5171. yyj5++
  5172. if yyhl5 {
  5173. yyb5 = yyj5 > l
  5174. } else {
  5175. yyb5 = r.CheckBreak()
  5176. }
  5177. if yyb5 {
  5178. break
  5179. }
  5180. z.DecReadArrayElem()
  5181. z.DecStructFieldNotFound(yyj5-1, "")
  5182. }
  5183. }
  5184. func (x *codecgenH) CodecEncodeSelf(e *Encoder) {
  5185. var h codecSelfer19780
  5186. z, r := GenHelperEncoder(e)
  5187. _, _, _ = h, z, r
  5188. if x == nil {
  5189. r.EncodeNil()
  5190. } else {
  5191. yysep2 := !z.EncBinary()
  5192. yy2arr2 := z.EncBasicHandle().StructToArray
  5193. _, _ = yysep2, yy2arr2
  5194. const yyr2 bool = false // struct tag has 'toArray'
  5195. if yyr2 || yy2arr2 {
  5196. z.EncWriteArrayStart(1)
  5197. z.EncWriteArrayElem()
  5198. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5199. z.EncWriteArrayEnd()
  5200. } else {
  5201. z.EncWriteMapStart(1)
  5202. z.EncWriteMapElemKey()
  5203. if z.IsJSONHandle() {
  5204. z.WriteStr("\"TestCodecgenG\"")
  5205. } else {
  5206. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5207. }
  5208. z.EncWriteMapElemValue()
  5209. r.EncodeInt(int64(x.TestCodecgenG.TestCodecgenG))
  5210. z.EncWriteMapEnd()
  5211. }
  5212. }
  5213. }
  5214. func (x *codecgenH) CodecDecodeSelf(d *Decoder) {
  5215. var h codecSelfer19780
  5216. z, r := GenHelperDecoder(d)
  5217. _, _, _ = h, z, r
  5218. yyct2 := r.ContainerType()
  5219. if yyct2 == codecSelferValueTypeNil19780 {
  5220. *(x) = codecgenH{}
  5221. } else if yyct2 == codecSelferValueTypeMap19780 {
  5222. yyl2 := z.DecReadMapStart()
  5223. if yyl2 == 0 {
  5224. } else {
  5225. x.codecDecodeSelfFromMap(yyl2, d)
  5226. }
  5227. z.DecReadMapEnd()
  5228. } else if yyct2 == codecSelferValueTypeArray19780 {
  5229. yyl2 := z.DecReadArrayStart()
  5230. if yyl2 != 0 {
  5231. x.codecDecodeSelfFromArray(yyl2, d)
  5232. }
  5233. z.DecReadArrayEnd()
  5234. } else {
  5235. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5236. }
  5237. }
  5238. func (x *codecgenH) codecDecodeSelfFromMap(l int, d *Decoder) {
  5239. var h codecSelfer19780
  5240. z, r := GenHelperDecoder(d)
  5241. _, _, _ = h, z, r
  5242. var yyhl3 bool = l >= 0
  5243. for yyj3 := 0; ; yyj3++ {
  5244. if yyhl3 {
  5245. if yyj3 >= l {
  5246. break
  5247. }
  5248. } else {
  5249. if r.CheckBreak() {
  5250. break
  5251. }
  5252. }
  5253. z.DecReadMapElemKey()
  5254. yys3 := z.StringView(r.DecodeStringAsBytes())
  5255. z.DecReadMapElemValue()
  5256. switch yys3 {
  5257. case "TestCodecgenG":
  5258. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5259. default:
  5260. z.DecStructFieldNotFound(-1, yys3)
  5261. } // end switch yys3
  5262. } // end for yyj3
  5263. }
  5264. func (x *codecgenH) codecDecodeSelfFromArray(l int, d *Decoder) {
  5265. var h codecSelfer19780
  5266. z, r := GenHelperDecoder(d)
  5267. _, _, _ = h, z, r
  5268. var yyj5 int
  5269. var yyb5 bool
  5270. var yyhl5 bool = l >= 0
  5271. yyj5++
  5272. if yyhl5 {
  5273. yyb5 = yyj5 > l
  5274. } else {
  5275. yyb5 = r.CheckBreak()
  5276. }
  5277. if yyb5 {
  5278. z.DecReadArrayEnd()
  5279. return
  5280. }
  5281. z.DecReadArrayElem()
  5282. x.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5283. for {
  5284. yyj5++
  5285. if yyhl5 {
  5286. yyb5 = yyj5 > l
  5287. } else {
  5288. yyb5 = r.CheckBreak()
  5289. }
  5290. if yyb5 {
  5291. break
  5292. }
  5293. z.DecReadArrayElem()
  5294. z.DecStructFieldNotFound(yyj5-1, "")
  5295. }
  5296. }
  5297. func (x *codecgenI) CodecEncodeSelf(e *Encoder) {
  5298. var h codecSelfer19780
  5299. z, r := GenHelperEncoder(e)
  5300. _, _, _ = h, z, r
  5301. if x == nil {
  5302. r.EncodeNil()
  5303. } else {
  5304. yysep2 := !z.EncBinary()
  5305. yy2arr2 := z.EncBasicHandle().StructToArray
  5306. _, _ = yysep2, yy2arr2
  5307. const yyr2 bool = false // struct tag has 'toArray'
  5308. if yyr2 || yy2arr2 {
  5309. z.EncWriteArrayStart(1)
  5310. z.EncWriteArrayElem()
  5311. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5312. z.EncWriteArrayEnd()
  5313. } else {
  5314. z.EncWriteMapStart(1)
  5315. z.EncWriteMapElemKey()
  5316. if z.IsJSONHandle() {
  5317. z.WriteStr("\"TestCodecgenG\"")
  5318. } else {
  5319. r.EncodeStringEnc(codecSelferCcUTF819780, `TestCodecgenG`)
  5320. }
  5321. z.EncWriteMapElemValue()
  5322. r.EncodeInt(int64(x.codecgenH.TestCodecgenG.TestCodecgenG))
  5323. z.EncWriteMapEnd()
  5324. }
  5325. }
  5326. }
  5327. func (x *codecgenI) CodecDecodeSelf(d *Decoder) {
  5328. var h codecSelfer19780
  5329. z, r := GenHelperDecoder(d)
  5330. _, _, _ = h, z, r
  5331. yyct2 := r.ContainerType()
  5332. if yyct2 == codecSelferValueTypeNil19780 {
  5333. *(x) = codecgenI{}
  5334. } else if yyct2 == codecSelferValueTypeMap19780 {
  5335. yyl2 := z.DecReadMapStart()
  5336. if yyl2 == 0 {
  5337. } else {
  5338. x.codecDecodeSelfFromMap(yyl2, d)
  5339. }
  5340. z.DecReadMapEnd()
  5341. } else if yyct2 == codecSelferValueTypeArray19780 {
  5342. yyl2 := z.DecReadArrayStart()
  5343. if yyl2 != 0 {
  5344. x.codecDecodeSelfFromArray(yyl2, d)
  5345. }
  5346. z.DecReadArrayEnd()
  5347. } else {
  5348. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5349. }
  5350. }
  5351. func (x *codecgenI) codecDecodeSelfFromMap(l int, d *Decoder) {
  5352. var h codecSelfer19780
  5353. z, r := GenHelperDecoder(d)
  5354. _, _, _ = h, z, r
  5355. var yyhl3 bool = l >= 0
  5356. for yyj3 := 0; ; yyj3++ {
  5357. if yyhl3 {
  5358. if yyj3 >= l {
  5359. break
  5360. }
  5361. } else {
  5362. if r.CheckBreak() {
  5363. break
  5364. }
  5365. }
  5366. z.DecReadMapElemKey()
  5367. yys3 := z.StringView(r.DecodeStringAsBytes())
  5368. z.DecReadMapElemValue()
  5369. switch yys3 {
  5370. case "TestCodecgenG":
  5371. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5372. default:
  5373. z.DecStructFieldNotFound(-1, yys3)
  5374. } // end switch yys3
  5375. } // end for yyj3
  5376. }
  5377. func (x *codecgenI) codecDecodeSelfFromArray(l int, d *Decoder) {
  5378. var h codecSelfer19780
  5379. z, r := GenHelperDecoder(d)
  5380. _, _, _ = h, z, r
  5381. var yyj5 int
  5382. var yyb5 bool
  5383. var yyhl5 bool = l >= 0
  5384. yyj5++
  5385. if yyhl5 {
  5386. yyb5 = yyj5 > l
  5387. } else {
  5388. yyb5 = r.CheckBreak()
  5389. }
  5390. if yyb5 {
  5391. z.DecReadArrayEnd()
  5392. return
  5393. }
  5394. z.DecReadArrayElem()
  5395. x.codecgenH.TestCodecgenG.TestCodecgenG = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5396. for {
  5397. yyj5++
  5398. if yyhl5 {
  5399. yyb5 = yyj5 > l
  5400. } else {
  5401. yyb5 = r.CheckBreak()
  5402. }
  5403. if yyb5 {
  5404. break
  5405. }
  5406. z.DecReadArrayElem()
  5407. z.DecStructFieldNotFound(yyj5-1, "")
  5408. }
  5409. }
  5410. func (x *codecgenK) CodecEncodeSelf(e *Encoder) {
  5411. var h codecSelfer19780
  5412. z, r := GenHelperEncoder(e)
  5413. _, _, _ = h, z, r
  5414. if x == nil {
  5415. r.EncodeNil()
  5416. } else {
  5417. yysep2 := !z.EncBinary()
  5418. yy2arr2 := z.EncBasicHandle().StructToArray
  5419. _, _ = yysep2, yy2arr2
  5420. const yyr2 bool = false // struct tag has 'toArray'
  5421. if yyr2 || yy2arr2 {
  5422. z.EncWriteArrayStart(2)
  5423. z.EncWriteArrayElem()
  5424. r.EncodeInt(int64(x.X))
  5425. z.EncWriteArrayElem()
  5426. if z.EncBasicHandle().StringToRaw {
  5427. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5428. } else {
  5429. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5430. }
  5431. z.EncWriteArrayEnd()
  5432. } else {
  5433. z.EncWriteMapStart(2)
  5434. z.EncWriteMapElemKey()
  5435. if z.IsJSONHandle() {
  5436. z.WriteStr("\"X\"")
  5437. } else {
  5438. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5439. }
  5440. z.EncWriteMapElemValue()
  5441. r.EncodeInt(int64(x.X))
  5442. z.EncWriteMapElemKey()
  5443. if z.IsJSONHandle() {
  5444. z.WriteStr("\"Y\"")
  5445. } else {
  5446. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5447. }
  5448. z.EncWriteMapElemValue()
  5449. if z.EncBasicHandle().StringToRaw {
  5450. r.EncodeStringBytesRaw(z.BytesView(string(x.Y)))
  5451. } else {
  5452. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.Y))
  5453. }
  5454. z.EncWriteMapEnd()
  5455. }
  5456. }
  5457. }
  5458. func (x *codecgenK) CodecDecodeSelf(d *Decoder) {
  5459. var h codecSelfer19780
  5460. z, r := GenHelperDecoder(d)
  5461. _, _, _ = h, z, r
  5462. yyct2 := r.ContainerType()
  5463. if yyct2 == codecSelferValueTypeNil19780 {
  5464. *(x) = codecgenK{}
  5465. } else if yyct2 == codecSelferValueTypeMap19780 {
  5466. yyl2 := z.DecReadMapStart()
  5467. if yyl2 == 0 {
  5468. } else {
  5469. x.codecDecodeSelfFromMap(yyl2, d)
  5470. }
  5471. z.DecReadMapEnd()
  5472. } else if yyct2 == codecSelferValueTypeArray19780 {
  5473. yyl2 := z.DecReadArrayStart()
  5474. if yyl2 != 0 {
  5475. x.codecDecodeSelfFromArray(yyl2, d)
  5476. }
  5477. z.DecReadArrayEnd()
  5478. } else {
  5479. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5480. }
  5481. }
  5482. func (x *codecgenK) codecDecodeSelfFromMap(l int, d *Decoder) {
  5483. var h codecSelfer19780
  5484. z, r := GenHelperDecoder(d)
  5485. _, _, _ = h, z, r
  5486. var yyhl3 bool = l >= 0
  5487. for yyj3 := 0; ; yyj3++ {
  5488. if yyhl3 {
  5489. if yyj3 >= l {
  5490. break
  5491. }
  5492. } else {
  5493. if r.CheckBreak() {
  5494. break
  5495. }
  5496. }
  5497. z.DecReadMapElemKey()
  5498. yys3 := z.StringView(r.DecodeStringAsBytes())
  5499. z.DecReadMapElemValue()
  5500. switch yys3 {
  5501. case "X":
  5502. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5503. case "Y":
  5504. x.Y = (string)(string(r.DecodeStringAsBytes()))
  5505. default:
  5506. z.DecStructFieldNotFound(-1, yys3)
  5507. } // end switch yys3
  5508. } // end for yyj3
  5509. }
  5510. func (x *codecgenK) codecDecodeSelfFromArray(l int, d *Decoder) {
  5511. var h codecSelfer19780
  5512. z, r := GenHelperDecoder(d)
  5513. _, _, _ = h, z, r
  5514. var yyj6 int
  5515. var yyb6 bool
  5516. var yyhl6 bool = l >= 0
  5517. yyj6++
  5518. if yyhl6 {
  5519. yyb6 = yyj6 > l
  5520. } else {
  5521. yyb6 = r.CheckBreak()
  5522. }
  5523. if yyb6 {
  5524. z.DecReadArrayEnd()
  5525. return
  5526. }
  5527. z.DecReadArrayElem()
  5528. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5529. yyj6++
  5530. if yyhl6 {
  5531. yyb6 = yyj6 > l
  5532. } else {
  5533. yyb6 = r.CheckBreak()
  5534. }
  5535. if yyb6 {
  5536. z.DecReadArrayEnd()
  5537. return
  5538. }
  5539. z.DecReadArrayElem()
  5540. x.Y = (string)(string(r.DecodeStringAsBytes()))
  5541. for {
  5542. yyj6++
  5543. if yyhl6 {
  5544. yyb6 = yyj6 > l
  5545. } else {
  5546. yyb6 = r.CheckBreak()
  5547. }
  5548. if yyb6 {
  5549. break
  5550. }
  5551. z.DecReadArrayElem()
  5552. z.DecStructFieldNotFound(yyj6-1, "")
  5553. }
  5554. }
  5555. func (x *codecgenL) CodecEncodeSelf(e *Encoder) {
  5556. var h codecSelfer19780
  5557. z, r := GenHelperEncoder(e)
  5558. _, _, _ = h, z, r
  5559. if x == nil {
  5560. r.EncodeNil()
  5561. } else {
  5562. yysep2 := !z.EncBinary()
  5563. yy2arr2 := z.EncBasicHandle().StructToArray
  5564. _, _ = yysep2, yy2arr2
  5565. const yyr2 bool = false // struct tag has 'toArray'
  5566. if yyr2 || yy2arr2 {
  5567. z.EncWriteArrayStart(2)
  5568. z.EncWriteArrayElem()
  5569. r.EncodeInt(int64(x.X))
  5570. z.EncWriteArrayElem()
  5571. r.EncodeUint(uint64(x.Y))
  5572. z.EncWriteArrayEnd()
  5573. } else {
  5574. z.EncWriteMapStart(2)
  5575. z.EncWriteMapElemKey()
  5576. if z.IsJSONHandle() {
  5577. z.WriteStr("\"X\"")
  5578. } else {
  5579. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5580. }
  5581. z.EncWriteMapElemValue()
  5582. r.EncodeInt(int64(x.X))
  5583. z.EncWriteMapElemKey()
  5584. if z.IsJSONHandle() {
  5585. z.WriteStr("\"Y\"")
  5586. } else {
  5587. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5588. }
  5589. z.EncWriteMapElemValue()
  5590. r.EncodeUint(uint64(x.Y))
  5591. z.EncWriteMapEnd()
  5592. }
  5593. }
  5594. }
  5595. func (x *codecgenL) CodecDecodeSelf(d *Decoder) {
  5596. var h codecSelfer19780
  5597. z, r := GenHelperDecoder(d)
  5598. _, _, _ = h, z, r
  5599. yyct2 := r.ContainerType()
  5600. if yyct2 == codecSelferValueTypeNil19780 {
  5601. *(x) = codecgenL{}
  5602. } else if yyct2 == codecSelferValueTypeMap19780 {
  5603. yyl2 := z.DecReadMapStart()
  5604. if yyl2 == 0 {
  5605. } else {
  5606. x.codecDecodeSelfFromMap(yyl2, d)
  5607. }
  5608. z.DecReadMapEnd()
  5609. } else if yyct2 == codecSelferValueTypeArray19780 {
  5610. yyl2 := z.DecReadArrayStart()
  5611. if yyl2 != 0 {
  5612. x.codecDecodeSelfFromArray(yyl2, d)
  5613. }
  5614. z.DecReadArrayEnd()
  5615. } else {
  5616. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5617. }
  5618. }
  5619. func (x *codecgenL) codecDecodeSelfFromMap(l int, d *Decoder) {
  5620. var h codecSelfer19780
  5621. z, r := GenHelperDecoder(d)
  5622. _, _, _ = h, z, r
  5623. var yyhl3 bool = l >= 0
  5624. for yyj3 := 0; ; yyj3++ {
  5625. if yyhl3 {
  5626. if yyj3 >= l {
  5627. break
  5628. }
  5629. } else {
  5630. if r.CheckBreak() {
  5631. break
  5632. }
  5633. }
  5634. z.DecReadMapElemKey()
  5635. yys3 := z.StringView(r.DecodeStringAsBytes())
  5636. z.DecReadMapElemValue()
  5637. switch yys3 {
  5638. case "X":
  5639. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5640. case "Y":
  5641. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  5642. default:
  5643. z.DecStructFieldNotFound(-1, yys3)
  5644. } // end switch yys3
  5645. } // end for yyj3
  5646. }
  5647. func (x *codecgenL) codecDecodeSelfFromArray(l int, d *Decoder) {
  5648. var h codecSelfer19780
  5649. z, r := GenHelperDecoder(d)
  5650. _, _, _ = h, z, r
  5651. var yyj6 int
  5652. var yyb6 bool
  5653. var yyhl6 bool = l >= 0
  5654. yyj6++
  5655. if yyhl6 {
  5656. yyb6 = yyj6 > l
  5657. } else {
  5658. yyb6 = r.CheckBreak()
  5659. }
  5660. if yyb6 {
  5661. z.DecReadArrayEnd()
  5662. return
  5663. }
  5664. z.DecReadArrayElem()
  5665. x.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5666. yyj6++
  5667. if yyhl6 {
  5668. yyb6 = yyj6 > l
  5669. } else {
  5670. yyb6 = r.CheckBreak()
  5671. }
  5672. if yyb6 {
  5673. z.DecReadArrayEnd()
  5674. return
  5675. }
  5676. z.DecReadArrayElem()
  5677. x.Y = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  5678. for {
  5679. yyj6++
  5680. if yyhl6 {
  5681. yyb6 = yyj6 > l
  5682. } else {
  5683. yyb6 = r.CheckBreak()
  5684. }
  5685. if yyb6 {
  5686. break
  5687. }
  5688. z.DecReadArrayElem()
  5689. z.DecStructFieldNotFound(yyj6-1, "")
  5690. }
  5691. }
  5692. func (x *codecgenM) CodecEncodeSelf(e *Encoder) {
  5693. var h codecSelfer19780
  5694. z, r := GenHelperEncoder(e)
  5695. _, _, _ = h, z, r
  5696. if x == nil {
  5697. r.EncodeNil()
  5698. } else {
  5699. yysep2 := !z.EncBinary()
  5700. yy2arr2 := z.EncBasicHandle().StructToArray
  5701. _, _ = yysep2, yy2arr2
  5702. const yyr2 bool = false // struct tag has 'toArray'
  5703. if yyr2 || yy2arr2 {
  5704. z.EncWriteArrayStart(2)
  5705. z.EncWriteArrayElem()
  5706. r.EncodeInt(int64(x.codecgenK.X))
  5707. z.EncWriteArrayElem()
  5708. if z.EncBasicHandle().StringToRaw {
  5709. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  5710. } else {
  5711. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  5712. }
  5713. z.EncWriteArrayEnd()
  5714. } else {
  5715. z.EncWriteMapStart(2)
  5716. z.EncWriteMapElemKey()
  5717. if z.IsJSONHandle() {
  5718. z.WriteStr("\"X\"")
  5719. } else {
  5720. r.EncodeStringEnc(codecSelferCcUTF819780, `X`)
  5721. }
  5722. z.EncWriteMapElemValue()
  5723. r.EncodeInt(int64(x.codecgenK.X))
  5724. z.EncWriteMapElemKey()
  5725. if z.IsJSONHandle() {
  5726. z.WriteStr("\"Y\"")
  5727. } else {
  5728. r.EncodeStringEnc(codecSelferCcUTF819780, `Y`)
  5729. }
  5730. z.EncWriteMapElemValue()
  5731. if z.EncBasicHandle().StringToRaw {
  5732. r.EncodeStringBytesRaw(z.BytesView(string(x.codecgenK.Y)))
  5733. } else {
  5734. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.codecgenK.Y))
  5735. }
  5736. z.EncWriteMapEnd()
  5737. }
  5738. }
  5739. }
  5740. func (x *codecgenM) CodecDecodeSelf(d *Decoder) {
  5741. var h codecSelfer19780
  5742. z, r := GenHelperDecoder(d)
  5743. _, _, _ = h, z, r
  5744. yyct2 := r.ContainerType()
  5745. if yyct2 == codecSelferValueTypeNil19780 {
  5746. *(x) = codecgenM{}
  5747. } else if yyct2 == codecSelferValueTypeMap19780 {
  5748. yyl2 := z.DecReadMapStart()
  5749. if yyl2 == 0 {
  5750. } else {
  5751. x.codecDecodeSelfFromMap(yyl2, d)
  5752. }
  5753. z.DecReadMapEnd()
  5754. } else if yyct2 == codecSelferValueTypeArray19780 {
  5755. yyl2 := z.DecReadArrayStart()
  5756. if yyl2 != 0 {
  5757. x.codecDecodeSelfFromArray(yyl2, d)
  5758. }
  5759. z.DecReadArrayEnd()
  5760. } else {
  5761. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5762. }
  5763. }
  5764. func (x *codecgenM) codecDecodeSelfFromMap(l int, d *Decoder) {
  5765. var h codecSelfer19780
  5766. z, r := GenHelperDecoder(d)
  5767. _, _, _ = h, z, r
  5768. var yyhl3 bool = l >= 0
  5769. for yyj3 := 0; ; yyj3++ {
  5770. if yyhl3 {
  5771. if yyj3 >= l {
  5772. break
  5773. }
  5774. } else {
  5775. if r.CheckBreak() {
  5776. break
  5777. }
  5778. }
  5779. z.DecReadMapElemKey()
  5780. yys3 := z.StringView(r.DecodeStringAsBytes())
  5781. z.DecReadMapElemValue()
  5782. switch yys3 {
  5783. case "X":
  5784. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5785. case "Y":
  5786. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  5787. default:
  5788. z.DecStructFieldNotFound(-1, yys3)
  5789. } // end switch yys3
  5790. } // end for yyj3
  5791. }
  5792. func (x *codecgenM) codecDecodeSelfFromArray(l int, d *Decoder) {
  5793. var h codecSelfer19780
  5794. z, r := GenHelperDecoder(d)
  5795. _, _, _ = h, z, r
  5796. var yyj6 int
  5797. var yyb6 bool
  5798. var yyhl6 bool = l >= 0
  5799. yyj6++
  5800. if yyhl6 {
  5801. yyb6 = yyj6 > l
  5802. } else {
  5803. yyb6 = r.CheckBreak()
  5804. }
  5805. if yyb6 {
  5806. z.DecReadArrayEnd()
  5807. return
  5808. }
  5809. z.DecReadArrayElem()
  5810. x.codecgenK.X = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5811. yyj6++
  5812. if yyhl6 {
  5813. yyb6 = yyj6 > l
  5814. } else {
  5815. yyb6 = r.CheckBreak()
  5816. }
  5817. if yyb6 {
  5818. z.DecReadArrayEnd()
  5819. return
  5820. }
  5821. z.DecReadArrayElem()
  5822. x.codecgenK.Y = (string)(string(r.DecodeStringAsBytes()))
  5823. for {
  5824. yyj6++
  5825. if yyhl6 {
  5826. yyb6 = yyj6 > l
  5827. } else {
  5828. yyb6 = r.CheckBreak()
  5829. }
  5830. if yyb6 {
  5831. break
  5832. }
  5833. z.DecReadArrayElem()
  5834. z.DecStructFieldNotFound(yyj6-1, "")
  5835. }
  5836. }
  5837. func (x *testStrucKeyTypeT0) CodecEncodeSelf(e *Encoder) {
  5838. var h codecSelfer19780
  5839. z, r := GenHelperEncoder(e)
  5840. _, _, _ = h, z, r
  5841. if x == nil {
  5842. r.EncodeNil()
  5843. } else {
  5844. yysep2 := !z.EncBinary()
  5845. yy2arr2 := z.EncBasicHandle().StructToArray
  5846. _, _ = yysep2, yy2arr2
  5847. const yyr2 bool = false // struct tag has 'toArray'
  5848. if yyr2 || yy2arr2 {
  5849. z.EncWriteArrayStart(1)
  5850. z.EncWriteArrayElem()
  5851. r.EncodeInt(int64(x.F))
  5852. z.EncWriteArrayEnd()
  5853. } else {
  5854. z.EncWriteMapStart(1)
  5855. z.EncWriteMapElemKey()
  5856. if z.IsJSONHandle() {
  5857. z.WriteStr("\"F\"")
  5858. } else {
  5859. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  5860. }
  5861. z.EncWriteMapElemValue()
  5862. r.EncodeInt(int64(x.F))
  5863. z.EncWriteMapEnd()
  5864. }
  5865. }
  5866. }
  5867. func (x *testStrucKeyTypeT0) CodecDecodeSelf(d *Decoder) {
  5868. var h codecSelfer19780
  5869. z, r := GenHelperDecoder(d)
  5870. _, _, _ = h, z, r
  5871. yyct2 := r.ContainerType()
  5872. if yyct2 == codecSelferValueTypeNil19780 {
  5873. *(x) = testStrucKeyTypeT0{}
  5874. } else if yyct2 == codecSelferValueTypeMap19780 {
  5875. yyl2 := z.DecReadMapStart()
  5876. if yyl2 == 0 {
  5877. } else {
  5878. x.codecDecodeSelfFromMap(yyl2, d)
  5879. }
  5880. z.DecReadMapEnd()
  5881. } else if yyct2 == codecSelferValueTypeArray19780 {
  5882. yyl2 := z.DecReadArrayStart()
  5883. if yyl2 != 0 {
  5884. x.codecDecodeSelfFromArray(yyl2, d)
  5885. }
  5886. z.DecReadArrayEnd()
  5887. } else {
  5888. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5889. }
  5890. }
  5891. func (x *testStrucKeyTypeT0) codecDecodeSelfFromMap(l int, d *Decoder) {
  5892. var h codecSelfer19780
  5893. z, r := GenHelperDecoder(d)
  5894. _, _, _ = h, z, r
  5895. var yyhl3 bool = l >= 0
  5896. for yyj3 := 0; ; yyj3++ {
  5897. if yyhl3 {
  5898. if yyj3 >= l {
  5899. break
  5900. }
  5901. } else {
  5902. if r.CheckBreak() {
  5903. break
  5904. }
  5905. }
  5906. z.DecReadMapElemKey()
  5907. yys3 := z.StringView(r.DecodeStringAsBytes())
  5908. z.DecReadMapElemValue()
  5909. switch yys3 {
  5910. case "F":
  5911. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5912. default:
  5913. z.DecStructFieldNotFound(-1, yys3)
  5914. } // end switch yys3
  5915. } // end for yyj3
  5916. }
  5917. func (x *testStrucKeyTypeT0) codecDecodeSelfFromArray(l int, d *Decoder) {
  5918. var h codecSelfer19780
  5919. z, r := GenHelperDecoder(d)
  5920. _, _, _ = h, z, r
  5921. var yyj5 int
  5922. var yyb5 bool
  5923. var yyhl5 bool = l >= 0
  5924. yyj5++
  5925. if yyhl5 {
  5926. yyb5 = yyj5 > l
  5927. } else {
  5928. yyb5 = r.CheckBreak()
  5929. }
  5930. if yyb5 {
  5931. z.DecReadArrayEnd()
  5932. return
  5933. }
  5934. z.DecReadArrayElem()
  5935. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5936. for {
  5937. yyj5++
  5938. if yyhl5 {
  5939. yyb5 = yyj5 > l
  5940. } else {
  5941. yyb5 = r.CheckBreak()
  5942. }
  5943. if yyb5 {
  5944. break
  5945. }
  5946. z.DecReadArrayElem()
  5947. z.DecStructFieldNotFound(yyj5-1, "")
  5948. }
  5949. }
  5950. func (x *testStrucKeyTypeT1) CodecEncodeSelf(e *Encoder) {
  5951. var h codecSelfer19780
  5952. z, r := GenHelperEncoder(e)
  5953. _, _, _ = h, z, r
  5954. if x == nil {
  5955. r.EncodeNil()
  5956. } else {
  5957. yysep2 := !z.EncBinary()
  5958. yy2arr2 := z.EncBasicHandle().StructToArray
  5959. _, _ = yysep2, yy2arr2
  5960. const yyr2 bool = false // struct tag has 'toArray'
  5961. if yyr2 || yy2arr2 {
  5962. z.EncWriteArrayStart(1)
  5963. z.EncWriteArrayElem()
  5964. r.EncodeInt(int64(x.F))
  5965. z.EncWriteArrayEnd()
  5966. } else {
  5967. z.EncWriteMapStart(1)
  5968. z.EncWriteMapElemKey()
  5969. if z.IsJSONHandle() {
  5970. z.WriteStr("\"FFFF\"")
  5971. } else {
  5972. r.EncodeStringEnc(codecSelferCcUTF819780, `FFFF`)
  5973. }
  5974. z.EncWriteMapElemValue()
  5975. r.EncodeInt(int64(x.F))
  5976. z.EncWriteMapEnd()
  5977. }
  5978. }
  5979. }
  5980. func (x *testStrucKeyTypeT1) CodecDecodeSelf(d *Decoder) {
  5981. var h codecSelfer19780
  5982. z, r := GenHelperDecoder(d)
  5983. _, _, _ = h, z, r
  5984. yyct2 := r.ContainerType()
  5985. if yyct2 == codecSelferValueTypeNil19780 {
  5986. *(x) = testStrucKeyTypeT1{}
  5987. } else if yyct2 == codecSelferValueTypeMap19780 {
  5988. yyl2 := z.DecReadMapStart()
  5989. if yyl2 == 0 {
  5990. } else {
  5991. x.codecDecodeSelfFromMap(yyl2, d)
  5992. }
  5993. z.DecReadMapEnd()
  5994. } else if yyct2 == codecSelferValueTypeArray19780 {
  5995. yyl2 := z.DecReadArrayStart()
  5996. if yyl2 != 0 {
  5997. x.codecDecodeSelfFromArray(yyl2, d)
  5998. }
  5999. z.DecReadArrayEnd()
  6000. } else {
  6001. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6002. }
  6003. }
  6004. func (x *testStrucKeyTypeT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  6005. var h codecSelfer19780
  6006. z, r := GenHelperDecoder(d)
  6007. _, _, _ = h, z, r
  6008. var yyhl3 bool = l >= 0
  6009. for yyj3 := 0; ; yyj3++ {
  6010. if yyhl3 {
  6011. if yyj3 >= l {
  6012. break
  6013. }
  6014. } else {
  6015. if r.CheckBreak() {
  6016. break
  6017. }
  6018. }
  6019. z.DecReadMapElemKey()
  6020. yys3 := z.StringView(r.DecodeStringAsBytes())
  6021. z.DecReadMapElemValue()
  6022. switch yys3 {
  6023. case "FFFF":
  6024. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6025. default:
  6026. z.DecStructFieldNotFound(-1, yys3)
  6027. } // end switch yys3
  6028. } // end for yyj3
  6029. }
  6030. func (x *testStrucKeyTypeT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  6031. var h codecSelfer19780
  6032. z, r := GenHelperDecoder(d)
  6033. _, _, _ = h, z, r
  6034. var yyj5 int
  6035. var yyb5 bool
  6036. var yyhl5 bool = l >= 0
  6037. yyj5++
  6038. if yyhl5 {
  6039. yyb5 = yyj5 > l
  6040. } else {
  6041. yyb5 = r.CheckBreak()
  6042. }
  6043. if yyb5 {
  6044. z.DecReadArrayEnd()
  6045. return
  6046. }
  6047. z.DecReadArrayElem()
  6048. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6049. for {
  6050. yyj5++
  6051. if yyhl5 {
  6052. yyb5 = yyj5 > l
  6053. } else {
  6054. yyb5 = r.CheckBreak()
  6055. }
  6056. if yyb5 {
  6057. break
  6058. }
  6059. z.DecReadArrayElem()
  6060. z.DecStructFieldNotFound(yyj5-1, "")
  6061. }
  6062. }
  6063. func (x *testStrucKeyTypeT2) CodecEncodeSelf(e *Encoder) {
  6064. var h codecSelfer19780
  6065. z, r := GenHelperEncoder(e)
  6066. _, _, _ = h, z, r
  6067. if x == nil {
  6068. r.EncodeNil()
  6069. } else {
  6070. yysep2 := !z.EncBinary()
  6071. yy2arr2 := z.EncBasicHandle().StructToArray
  6072. _, _ = yysep2, yy2arr2
  6073. const yyr2 bool = false // struct tag has 'toArray'
  6074. if yyr2 || yy2arr2 {
  6075. z.EncWriteArrayStart(1)
  6076. z.EncWriteArrayElem()
  6077. r.EncodeInt(int64(x.F))
  6078. z.EncWriteArrayEnd()
  6079. } else {
  6080. z.EncWriteMapStart(1)
  6081. z.EncWriteMapElemKey()
  6082. r.EncodeInt(z.M.Int(strconv.ParseInt(`-1`, 10, 64)))
  6083. z.EncWriteMapElemValue()
  6084. r.EncodeInt(int64(x.F))
  6085. z.EncWriteMapEnd()
  6086. }
  6087. }
  6088. }
  6089. func (x *testStrucKeyTypeT2) CodecDecodeSelf(d *Decoder) {
  6090. var h codecSelfer19780
  6091. z, r := GenHelperDecoder(d)
  6092. _, _, _ = h, z, r
  6093. yyct2 := r.ContainerType()
  6094. if yyct2 == codecSelferValueTypeNil19780 {
  6095. *(x) = testStrucKeyTypeT2{}
  6096. } else if yyct2 == codecSelferValueTypeMap19780 {
  6097. yyl2 := z.DecReadMapStart()
  6098. if yyl2 == 0 {
  6099. } else {
  6100. x.codecDecodeSelfFromMap(yyl2, d)
  6101. }
  6102. z.DecReadMapEnd()
  6103. } else if yyct2 == codecSelferValueTypeArray19780 {
  6104. yyl2 := z.DecReadArrayStart()
  6105. if yyl2 != 0 {
  6106. x.codecDecodeSelfFromArray(yyl2, d)
  6107. }
  6108. z.DecReadArrayEnd()
  6109. } else {
  6110. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6111. }
  6112. }
  6113. func (x *testStrucKeyTypeT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  6114. var h codecSelfer19780
  6115. z, r := GenHelperDecoder(d)
  6116. _, _, _ = h, z, r
  6117. var yyhl3 bool = l >= 0
  6118. for yyj3 := 0; ; yyj3++ {
  6119. if yyhl3 {
  6120. if yyj3 >= l {
  6121. break
  6122. }
  6123. } else {
  6124. if r.CheckBreak() {
  6125. break
  6126. }
  6127. }
  6128. z.DecReadMapElemKey()
  6129. yys3 := z.StringView(strconv.AppendInt(z.DecScratchArrayBuffer()[:0], r.DecodeInt64(), 10))
  6130. z.DecReadMapElemValue()
  6131. switch yys3 {
  6132. case "-1":
  6133. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6134. default:
  6135. z.DecStructFieldNotFound(-1, yys3)
  6136. } // end switch yys3
  6137. } // end for yyj3
  6138. }
  6139. func (x *testStrucKeyTypeT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  6140. var h codecSelfer19780
  6141. z, r := GenHelperDecoder(d)
  6142. _, _, _ = h, z, r
  6143. var yyj5 int
  6144. var yyb5 bool
  6145. var yyhl5 bool = l >= 0
  6146. yyj5++
  6147. if yyhl5 {
  6148. yyb5 = yyj5 > l
  6149. } else {
  6150. yyb5 = r.CheckBreak()
  6151. }
  6152. if yyb5 {
  6153. z.DecReadArrayEnd()
  6154. return
  6155. }
  6156. z.DecReadArrayElem()
  6157. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6158. for {
  6159. yyj5++
  6160. if yyhl5 {
  6161. yyb5 = yyj5 > l
  6162. } else {
  6163. yyb5 = r.CheckBreak()
  6164. }
  6165. if yyb5 {
  6166. break
  6167. }
  6168. z.DecReadArrayElem()
  6169. z.DecStructFieldNotFound(yyj5-1, "")
  6170. }
  6171. }
  6172. func (x *testStrucKeyTypeT3) CodecEncodeSelf(e *Encoder) {
  6173. var h codecSelfer19780
  6174. z, r := GenHelperEncoder(e)
  6175. _, _, _ = h, z, r
  6176. if x == nil {
  6177. r.EncodeNil()
  6178. } else {
  6179. yysep2 := !z.EncBinary()
  6180. yy2arr2 := z.EncBasicHandle().StructToArray
  6181. _, _ = yysep2, yy2arr2
  6182. const yyr2 bool = false // struct tag has 'toArray'
  6183. if yyr2 || yy2arr2 {
  6184. z.EncWriteArrayStart(1)
  6185. z.EncWriteArrayElem()
  6186. r.EncodeInt(int64(x.F))
  6187. z.EncWriteArrayEnd()
  6188. } else {
  6189. z.EncWriteMapStart(1)
  6190. z.EncWriteMapElemKey()
  6191. r.EncodeUint(z.M.Uint(strconv.ParseUint(`1`, 10, 64)))
  6192. z.EncWriteMapElemValue()
  6193. r.EncodeInt(int64(x.F))
  6194. z.EncWriteMapEnd()
  6195. }
  6196. }
  6197. }
  6198. func (x *testStrucKeyTypeT3) CodecDecodeSelf(d *Decoder) {
  6199. var h codecSelfer19780
  6200. z, r := GenHelperDecoder(d)
  6201. _, _, _ = h, z, r
  6202. yyct2 := r.ContainerType()
  6203. if yyct2 == codecSelferValueTypeNil19780 {
  6204. *(x) = testStrucKeyTypeT3{}
  6205. } else if yyct2 == codecSelferValueTypeMap19780 {
  6206. yyl2 := z.DecReadMapStart()
  6207. if yyl2 == 0 {
  6208. } else {
  6209. x.codecDecodeSelfFromMap(yyl2, d)
  6210. }
  6211. z.DecReadMapEnd()
  6212. } else if yyct2 == codecSelferValueTypeArray19780 {
  6213. yyl2 := z.DecReadArrayStart()
  6214. if yyl2 != 0 {
  6215. x.codecDecodeSelfFromArray(yyl2, d)
  6216. }
  6217. z.DecReadArrayEnd()
  6218. } else {
  6219. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6220. }
  6221. }
  6222. func (x *testStrucKeyTypeT3) codecDecodeSelfFromMap(l int, d *Decoder) {
  6223. var h codecSelfer19780
  6224. z, r := GenHelperDecoder(d)
  6225. _, _, _ = h, z, r
  6226. var yyhl3 bool = l >= 0
  6227. for yyj3 := 0; ; yyj3++ {
  6228. if yyhl3 {
  6229. if yyj3 >= l {
  6230. break
  6231. }
  6232. } else {
  6233. if r.CheckBreak() {
  6234. break
  6235. }
  6236. }
  6237. z.DecReadMapElemKey()
  6238. yys3 := z.StringView(strconv.AppendUint(z.DecScratchArrayBuffer()[:0], r.DecodeUint64(), 10))
  6239. z.DecReadMapElemValue()
  6240. switch yys3 {
  6241. case "1":
  6242. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6243. default:
  6244. z.DecStructFieldNotFound(-1, yys3)
  6245. } // end switch yys3
  6246. } // end for yyj3
  6247. }
  6248. func (x *testStrucKeyTypeT3) codecDecodeSelfFromArray(l int, d *Decoder) {
  6249. var h codecSelfer19780
  6250. z, r := GenHelperDecoder(d)
  6251. _, _, _ = h, z, r
  6252. var yyj5 int
  6253. var yyb5 bool
  6254. var yyhl5 bool = l >= 0
  6255. yyj5++
  6256. if yyhl5 {
  6257. yyb5 = yyj5 > l
  6258. } else {
  6259. yyb5 = r.CheckBreak()
  6260. }
  6261. if yyb5 {
  6262. z.DecReadArrayEnd()
  6263. return
  6264. }
  6265. z.DecReadArrayElem()
  6266. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6267. for {
  6268. yyj5++
  6269. if yyhl5 {
  6270. yyb5 = yyj5 > l
  6271. } else {
  6272. yyb5 = r.CheckBreak()
  6273. }
  6274. if yyb5 {
  6275. break
  6276. }
  6277. z.DecReadArrayElem()
  6278. z.DecStructFieldNotFound(yyj5-1, "")
  6279. }
  6280. }
  6281. func (x *testStrucKeyTypeT4) CodecEncodeSelf(e *Encoder) {
  6282. var h codecSelfer19780
  6283. z, r := GenHelperEncoder(e)
  6284. _, _, _ = h, z, r
  6285. if x == nil {
  6286. r.EncodeNil()
  6287. } else {
  6288. yysep2 := !z.EncBinary()
  6289. yy2arr2 := z.EncBasicHandle().StructToArray
  6290. _, _ = yysep2, yy2arr2
  6291. const yyr2 bool = false // struct tag has 'toArray'
  6292. if yyr2 || yy2arr2 {
  6293. z.EncWriteArrayStart(1)
  6294. z.EncWriteArrayElem()
  6295. r.EncodeInt(int64(x.F))
  6296. z.EncWriteArrayEnd()
  6297. } else {
  6298. z.EncWriteMapStart(1)
  6299. z.EncWriteMapElemKey()
  6300. r.EncodeFloat64(z.M.Float(strconv.ParseFloat(`2.5`, 64)))
  6301. z.EncWriteMapElemValue()
  6302. r.EncodeInt(int64(x.F))
  6303. z.EncWriteMapEnd()
  6304. }
  6305. }
  6306. }
  6307. func (x *testStrucKeyTypeT4) CodecDecodeSelf(d *Decoder) {
  6308. var h codecSelfer19780
  6309. z, r := GenHelperDecoder(d)
  6310. _, _, _ = h, z, r
  6311. yyct2 := r.ContainerType()
  6312. if yyct2 == codecSelferValueTypeNil19780 {
  6313. *(x) = testStrucKeyTypeT4{}
  6314. } else if yyct2 == codecSelferValueTypeMap19780 {
  6315. yyl2 := z.DecReadMapStart()
  6316. if yyl2 == 0 {
  6317. } else {
  6318. x.codecDecodeSelfFromMap(yyl2, d)
  6319. }
  6320. z.DecReadMapEnd()
  6321. } else if yyct2 == codecSelferValueTypeArray19780 {
  6322. yyl2 := z.DecReadArrayStart()
  6323. if yyl2 != 0 {
  6324. x.codecDecodeSelfFromArray(yyl2, d)
  6325. }
  6326. z.DecReadArrayEnd()
  6327. } else {
  6328. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6329. }
  6330. }
  6331. func (x *testStrucKeyTypeT4) codecDecodeSelfFromMap(l int, d *Decoder) {
  6332. var h codecSelfer19780
  6333. z, r := GenHelperDecoder(d)
  6334. _, _, _ = h, z, r
  6335. var yyhl3 bool = l >= 0
  6336. for yyj3 := 0; ; yyj3++ {
  6337. if yyhl3 {
  6338. if yyj3 >= l {
  6339. break
  6340. }
  6341. } else {
  6342. if r.CheckBreak() {
  6343. break
  6344. }
  6345. }
  6346. z.DecReadMapElemKey()
  6347. yys3 := z.StringView(strconv.AppendFloat(z.DecScratchArrayBuffer()[:0], r.DecodeFloat64(), 'f', -1, 64))
  6348. z.DecReadMapElemValue()
  6349. switch yys3 {
  6350. case "2.5":
  6351. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6352. default:
  6353. z.DecStructFieldNotFound(-1, yys3)
  6354. } // end switch yys3
  6355. } // end for yyj3
  6356. }
  6357. func (x *testStrucKeyTypeT4) codecDecodeSelfFromArray(l int, d *Decoder) {
  6358. var h codecSelfer19780
  6359. z, r := GenHelperDecoder(d)
  6360. _, _, _ = h, z, r
  6361. var yyj5 int
  6362. var yyb5 bool
  6363. var yyhl5 bool = l >= 0
  6364. yyj5++
  6365. if yyhl5 {
  6366. yyb5 = yyj5 > l
  6367. } else {
  6368. yyb5 = r.CheckBreak()
  6369. }
  6370. if yyb5 {
  6371. z.DecReadArrayEnd()
  6372. return
  6373. }
  6374. z.DecReadArrayElem()
  6375. x.F = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6376. for {
  6377. yyj5++
  6378. if yyhl5 {
  6379. yyb5 = yyj5 > l
  6380. } else {
  6381. yyb5 = r.CheckBreak()
  6382. }
  6383. if yyb5 {
  6384. break
  6385. }
  6386. z.DecReadArrayElem()
  6387. z.DecStructFieldNotFound(yyj5-1, "")
  6388. }
  6389. }
  6390. func (x Bbool) CodecEncodeSelf(e *Encoder) {
  6391. var h codecSelfer19780
  6392. z, r := GenHelperEncoder(e)
  6393. _, _, _ = h, z, r
  6394. r.EncodeBool(bool(x))
  6395. }
  6396. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  6397. var h codecSelfer19780
  6398. z, r := GenHelperDecoder(d)
  6399. _, _, _ = h, z, r
  6400. *x = (Bbool)(r.DecodeBool())
  6401. }
  6402. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  6403. var h codecSelfer19780
  6404. z, r := GenHelperEncoder(e)
  6405. _, _, _ = h, z, r
  6406. if x == nil {
  6407. r.EncodeNil()
  6408. } else {
  6409. h.encAarray((*Aarray)(x), e)
  6410. }
  6411. }
  6412. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  6413. var h codecSelfer19780
  6414. z, r := GenHelperDecoder(d)
  6415. _, _, _ = h, z, r
  6416. h.decAarray((*Aarray)(x), d)
  6417. }
  6418. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  6419. var h codecSelfer19780
  6420. z, r := GenHelperEncoder(e)
  6421. _, _, _ = h, z, r
  6422. if z.EncBasicHandle().StringToRaw {
  6423. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  6424. } else {
  6425. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  6426. }
  6427. }
  6428. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  6429. var h codecSelfer19780
  6430. z, r := GenHelperDecoder(d)
  6431. _, _, _ = h, z, r
  6432. *x = (Sstring)(string(r.DecodeStringAsBytes()))
  6433. }
  6434. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  6435. var h codecSelfer19780
  6436. z, r := GenHelperEncoder(e)
  6437. _, _, _ = h, z, r
  6438. if x == nil {
  6439. r.EncodeNil()
  6440. } else {
  6441. yysep2 := !z.EncBinary()
  6442. yy2arr2 := z.EncBasicHandle().StructToArray
  6443. _, _ = yysep2, yy2arr2
  6444. const yyr2 bool = false // struct tag has 'toArray'
  6445. if yyr2 || yy2arr2 {
  6446. z.EncWriteArrayStart(1)
  6447. z.EncWriteArrayElem()
  6448. r.EncodeInt(int64(x.A))
  6449. z.EncWriteArrayEnd()
  6450. } else {
  6451. z.EncWriteMapStart(1)
  6452. z.EncWriteMapElemKey()
  6453. if z.IsJSONHandle() {
  6454. z.WriteStr("\"A\"")
  6455. } else {
  6456. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6457. }
  6458. z.EncWriteMapElemValue()
  6459. r.EncodeInt(int64(x.A))
  6460. z.EncWriteMapEnd()
  6461. }
  6462. }
  6463. }
  6464. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  6465. var h codecSelfer19780
  6466. z, r := GenHelperDecoder(d)
  6467. _, _, _ = h, z, r
  6468. yyct2 := r.ContainerType()
  6469. if yyct2 == codecSelferValueTypeNil19780 {
  6470. *(x) = Sstructsmall{}
  6471. } else if yyct2 == codecSelferValueTypeMap19780 {
  6472. yyl2 := z.DecReadMapStart()
  6473. if yyl2 == 0 {
  6474. } else {
  6475. x.codecDecodeSelfFromMap(yyl2, d)
  6476. }
  6477. z.DecReadMapEnd()
  6478. } else if yyct2 == codecSelferValueTypeArray19780 {
  6479. yyl2 := z.DecReadArrayStart()
  6480. if yyl2 != 0 {
  6481. x.codecDecodeSelfFromArray(yyl2, d)
  6482. }
  6483. z.DecReadArrayEnd()
  6484. } else {
  6485. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6486. }
  6487. }
  6488. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  6489. var h codecSelfer19780
  6490. z, r := GenHelperDecoder(d)
  6491. _, _, _ = h, z, r
  6492. var yyhl3 bool = l >= 0
  6493. for yyj3 := 0; ; yyj3++ {
  6494. if yyhl3 {
  6495. if yyj3 >= l {
  6496. break
  6497. }
  6498. } else {
  6499. if r.CheckBreak() {
  6500. break
  6501. }
  6502. }
  6503. z.DecReadMapElemKey()
  6504. yys3 := z.StringView(r.DecodeStringAsBytes())
  6505. z.DecReadMapElemValue()
  6506. switch yys3 {
  6507. case "A":
  6508. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6509. default:
  6510. z.DecStructFieldNotFound(-1, yys3)
  6511. } // end switch yys3
  6512. } // end for yyj3
  6513. }
  6514. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  6515. var h codecSelfer19780
  6516. z, r := GenHelperDecoder(d)
  6517. _, _, _ = h, z, r
  6518. var yyj5 int
  6519. var yyb5 bool
  6520. var yyhl5 bool = l >= 0
  6521. yyj5++
  6522. if yyhl5 {
  6523. yyb5 = yyj5 > l
  6524. } else {
  6525. yyb5 = r.CheckBreak()
  6526. }
  6527. if yyb5 {
  6528. z.DecReadArrayEnd()
  6529. return
  6530. }
  6531. z.DecReadArrayElem()
  6532. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6533. for {
  6534. yyj5++
  6535. if yyhl5 {
  6536. yyb5 = yyj5 > l
  6537. } else {
  6538. yyb5 = r.CheckBreak()
  6539. }
  6540. if yyb5 {
  6541. break
  6542. }
  6543. z.DecReadArrayElem()
  6544. z.DecStructFieldNotFound(yyj5-1, "")
  6545. }
  6546. }
  6547. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  6548. var h codecSelfer19780
  6549. z, r := GenHelperEncoder(e)
  6550. _, _, _ = h, z, r
  6551. if x == nil {
  6552. r.EncodeNil()
  6553. } else {
  6554. yysep2 := !z.EncBinary()
  6555. yy2arr2 := z.EncBasicHandle().StructToArray
  6556. _, _ = yysep2, yy2arr2
  6557. const yyr2 bool = false // struct tag has 'toArray'
  6558. var yyn5 bool = x.Ssmallptr == nil
  6559. var yyn6 bool = x.Ssmall == nil
  6560. var yyn7 bool = x.Sptr == nil
  6561. if yyr2 || yy2arr2 {
  6562. z.EncWriteArrayStart(5)
  6563. z.EncWriteArrayElem()
  6564. r.EncodeInt(int64(x.A))
  6565. z.EncWriteArrayElem()
  6566. r.EncodeBool(bool(x.B))
  6567. if yyn5 {
  6568. z.EncWriteArrayElem()
  6569. r.EncodeNil()
  6570. } else {
  6571. z.EncWriteArrayElem()
  6572. x.Ssmallptr.CodecEncodeSelf(e)
  6573. }
  6574. if yyn6 {
  6575. z.EncWriteArrayElem()
  6576. r.EncodeNil()
  6577. } else {
  6578. z.EncWriteArrayElem()
  6579. x.Ssmall.CodecEncodeSelf(e)
  6580. }
  6581. if yyn7 {
  6582. z.EncWriteArrayElem()
  6583. r.EncodeNil()
  6584. } else {
  6585. z.EncWriteArrayElem()
  6586. x.Sptr.CodecEncodeSelf(e)
  6587. }
  6588. z.EncWriteArrayEnd()
  6589. } else {
  6590. z.EncWriteMapStart(5)
  6591. z.EncWriteMapElemKey()
  6592. if z.IsJSONHandle() {
  6593. z.WriteStr("\"A\"")
  6594. } else {
  6595. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6596. }
  6597. z.EncWriteMapElemValue()
  6598. r.EncodeInt(int64(x.A))
  6599. z.EncWriteMapElemKey()
  6600. if z.IsJSONHandle() {
  6601. z.WriteStr("\"B\"")
  6602. } else {
  6603. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6604. }
  6605. z.EncWriteMapElemValue()
  6606. r.EncodeBool(bool(x.B))
  6607. z.EncWriteMapElemKey()
  6608. if z.IsJSONHandle() {
  6609. z.WriteStr("\"Ssmallptr\"")
  6610. } else {
  6611. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6612. }
  6613. z.EncWriteMapElemValue()
  6614. if yyn5 {
  6615. r.EncodeNil()
  6616. } else {
  6617. x.Ssmallptr.CodecEncodeSelf(e)
  6618. }
  6619. z.EncWriteMapElemKey()
  6620. if z.IsJSONHandle() {
  6621. z.WriteStr("\"Ssmall\"")
  6622. } else {
  6623. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6624. }
  6625. z.EncWriteMapElemValue()
  6626. if yyn6 {
  6627. r.EncodeNil()
  6628. } else {
  6629. x.Ssmall.CodecEncodeSelf(e)
  6630. }
  6631. z.EncWriteMapElemKey()
  6632. if z.IsJSONHandle() {
  6633. z.WriteStr("\"Sptr\"")
  6634. } else {
  6635. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6636. }
  6637. z.EncWriteMapElemValue()
  6638. if yyn7 {
  6639. r.EncodeNil()
  6640. } else {
  6641. x.Sptr.CodecEncodeSelf(e)
  6642. }
  6643. z.EncWriteMapEnd()
  6644. }
  6645. }
  6646. }
  6647. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  6648. var h codecSelfer19780
  6649. z, r := GenHelperDecoder(d)
  6650. _, _, _ = h, z, r
  6651. yyct2 := r.ContainerType()
  6652. if yyct2 == codecSelferValueTypeNil19780 {
  6653. *(x) = Sstructbig{}
  6654. } else if yyct2 == codecSelferValueTypeMap19780 {
  6655. yyl2 := z.DecReadMapStart()
  6656. if yyl2 == 0 {
  6657. } else {
  6658. x.codecDecodeSelfFromMap(yyl2, d)
  6659. }
  6660. z.DecReadMapEnd()
  6661. } else if yyct2 == codecSelferValueTypeArray19780 {
  6662. yyl2 := z.DecReadArrayStart()
  6663. if yyl2 != 0 {
  6664. x.codecDecodeSelfFromArray(yyl2, d)
  6665. }
  6666. z.DecReadArrayEnd()
  6667. } else {
  6668. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6669. }
  6670. }
  6671. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  6672. var h codecSelfer19780
  6673. z, r := GenHelperDecoder(d)
  6674. _, _, _ = h, z, r
  6675. var yyhl3 bool = l >= 0
  6676. for yyj3 := 0; ; yyj3++ {
  6677. if yyhl3 {
  6678. if yyj3 >= l {
  6679. break
  6680. }
  6681. } else {
  6682. if r.CheckBreak() {
  6683. break
  6684. }
  6685. }
  6686. z.DecReadMapElemKey()
  6687. yys3 := z.StringView(r.DecodeStringAsBytes())
  6688. z.DecReadMapElemValue()
  6689. switch yys3 {
  6690. case "A":
  6691. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6692. case "B":
  6693. x.B = (bool)(r.DecodeBool())
  6694. case "Ssmallptr":
  6695. if r.TryNil() {
  6696. if x.Ssmallptr != nil { // remove the if-true
  6697. x.Ssmallptr = nil
  6698. }
  6699. } else {
  6700. if x.Ssmallptr == nil {
  6701. x.Ssmallptr = new(Sstructsmall)
  6702. }
  6703. x.Ssmallptr.CodecDecodeSelf(d)
  6704. }
  6705. case "Ssmall":
  6706. if r.TryNil() {
  6707. if x.Ssmall != nil { // remove the if-true
  6708. x.Ssmall = nil
  6709. }
  6710. } else {
  6711. if x.Ssmall == nil {
  6712. x.Ssmall = new(Sstructsmall)
  6713. }
  6714. x.Ssmall.CodecDecodeSelf(d)
  6715. }
  6716. case "Sptr":
  6717. if r.TryNil() {
  6718. if x.Sptr != nil { // remove the if-true
  6719. x.Sptr = nil
  6720. }
  6721. } else {
  6722. if x.Sptr == nil {
  6723. x.Sptr = new(Sstructbig)
  6724. }
  6725. x.Sptr.CodecDecodeSelf(d)
  6726. }
  6727. default:
  6728. z.DecStructFieldNotFound(-1, yys3)
  6729. } // end switch yys3
  6730. } // end for yyj3
  6731. }
  6732. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  6733. var h codecSelfer19780
  6734. z, r := GenHelperDecoder(d)
  6735. _, _, _ = h, z, r
  6736. var yyj9 int
  6737. var yyb9 bool
  6738. var yyhl9 bool = l >= 0
  6739. yyj9++
  6740. if yyhl9 {
  6741. yyb9 = yyj9 > l
  6742. } else {
  6743. yyb9 = r.CheckBreak()
  6744. }
  6745. if yyb9 {
  6746. z.DecReadArrayEnd()
  6747. return
  6748. }
  6749. z.DecReadArrayElem()
  6750. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6751. yyj9++
  6752. if yyhl9 {
  6753. yyb9 = yyj9 > l
  6754. } else {
  6755. yyb9 = r.CheckBreak()
  6756. }
  6757. if yyb9 {
  6758. z.DecReadArrayEnd()
  6759. return
  6760. }
  6761. z.DecReadArrayElem()
  6762. x.B = (bool)(r.DecodeBool())
  6763. yyj9++
  6764. if yyhl9 {
  6765. yyb9 = yyj9 > l
  6766. } else {
  6767. yyb9 = r.CheckBreak()
  6768. }
  6769. if yyb9 {
  6770. z.DecReadArrayEnd()
  6771. return
  6772. }
  6773. z.DecReadArrayElem()
  6774. if r.TryNil() {
  6775. if x.Ssmallptr != nil { // remove the if-true
  6776. x.Ssmallptr = nil
  6777. }
  6778. } else {
  6779. if x.Ssmallptr == nil {
  6780. x.Ssmallptr = new(Sstructsmall)
  6781. }
  6782. x.Ssmallptr.CodecDecodeSelf(d)
  6783. }
  6784. yyj9++
  6785. if yyhl9 {
  6786. yyb9 = yyj9 > l
  6787. } else {
  6788. yyb9 = r.CheckBreak()
  6789. }
  6790. if yyb9 {
  6791. z.DecReadArrayEnd()
  6792. return
  6793. }
  6794. z.DecReadArrayElem()
  6795. if r.TryNil() {
  6796. if x.Ssmall != nil { // remove the if-true
  6797. x.Ssmall = nil
  6798. }
  6799. } else {
  6800. if x.Ssmall == nil {
  6801. x.Ssmall = new(Sstructsmall)
  6802. }
  6803. x.Ssmall.CodecDecodeSelf(d)
  6804. }
  6805. yyj9++
  6806. if yyhl9 {
  6807. yyb9 = yyj9 > l
  6808. } else {
  6809. yyb9 = r.CheckBreak()
  6810. }
  6811. if yyb9 {
  6812. z.DecReadArrayEnd()
  6813. return
  6814. }
  6815. z.DecReadArrayElem()
  6816. if r.TryNil() {
  6817. if x.Sptr != nil { // remove the if-true
  6818. x.Sptr = nil
  6819. }
  6820. } else {
  6821. if x.Sptr == nil {
  6822. x.Sptr = new(Sstructbig)
  6823. }
  6824. x.Sptr.CodecDecodeSelf(d)
  6825. }
  6826. for {
  6827. yyj9++
  6828. if yyhl9 {
  6829. yyb9 = yyj9 > l
  6830. } else {
  6831. yyb9 = r.CheckBreak()
  6832. }
  6833. if yyb9 {
  6834. break
  6835. }
  6836. z.DecReadArrayElem()
  6837. z.DecStructFieldNotFound(yyj9-1, "")
  6838. }
  6839. }
  6840. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  6841. var h codecSelfer19780
  6842. z, r := GenHelperEncoder(e)
  6843. _, _, _ = h, z, r
  6844. if x == nil {
  6845. r.EncodeNil()
  6846. } else {
  6847. yysep2 := !z.EncBinary()
  6848. yy2arr2 := z.EncBasicHandle().StructToArray
  6849. _, _ = yysep2, yy2arr2
  6850. const yyr2 bool = true // struct tag has 'toArray'
  6851. var yyn5 bool = x.Ssmallptr == nil
  6852. var yyn6 bool = x.Ssmall == nil
  6853. var yyn7 bool = x.Sptr == nil
  6854. if yyr2 || yy2arr2 {
  6855. z.EncWriteArrayStart(5)
  6856. z.EncWriteArrayElem()
  6857. r.EncodeInt(int64(x.A))
  6858. z.EncWriteArrayElem()
  6859. r.EncodeBool(bool(x.B))
  6860. if yyn5 {
  6861. z.EncWriteArrayElem()
  6862. r.EncodeNil()
  6863. } else {
  6864. z.EncWriteArrayElem()
  6865. x.Ssmallptr.CodecEncodeSelf(e)
  6866. }
  6867. if yyn6 {
  6868. z.EncWriteArrayElem()
  6869. r.EncodeNil()
  6870. } else {
  6871. z.EncWriteArrayElem()
  6872. x.Ssmall.CodecEncodeSelf(e)
  6873. }
  6874. if yyn7 {
  6875. z.EncWriteArrayElem()
  6876. r.EncodeNil()
  6877. } else {
  6878. z.EncWriteArrayElem()
  6879. x.Sptr.CodecEncodeSelf(e)
  6880. }
  6881. z.EncWriteArrayEnd()
  6882. } else {
  6883. z.EncWriteMapStart(5)
  6884. z.EncWriteMapElemKey()
  6885. if z.IsJSONHandle() {
  6886. z.WriteStr("\"A\"")
  6887. } else {
  6888. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6889. }
  6890. z.EncWriteMapElemValue()
  6891. r.EncodeInt(int64(x.A))
  6892. z.EncWriteMapElemKey()
  6893. if z.IsJSONHandle() {
  6894. z.WriteStr("\"B\"")
  6895. } else {
  6896. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6897. }
  6898. z.EncWriteMapElemValue()
  6899. r.EncodeBool(bool(x.B))
  6900. z.EncWriteMapElemKey()
  6901. if z.IsJSONHandle() {
  6902. z.WriteStr("\"Ssmallptr\"")
  6903. } else {
  6904. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6905. }
  6906. z.EncWriteMapElemValue()
  6907. if yyn5 {
  6908. r.EncodeNil()
  6909. } else {
  6910. x.Ssmallptr.CodecEncodeSelf(e)
  6911. }
  6912. z.EncWriteMapElemKey()
  6913. if z.IsJSONHandle() {
  6914. z.WriteStr("\"Ssmall\"")
  6915. } else {
  6916. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6917. }
  6918. z.EncWriteMapElemValue()
  6919. if yyn6 {
  6920. r.EncodeNil()
  6921. } else {
  6922. x.Ssmall.CodecEncodeSelf(e)
  6923. }
  6924. z.EncWriteMapElemKey()
  6925. if z.IsJSONHandle() {
  6926. z.WriteStr("\"Sptr\"")
  6927. } else {
  6928. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6929. }
  6930. z.EncWriteMapElemValue()
  6931. if yyn7 {
  6932. r.EncodeNil()
  6933. } else {
  6934. x.Sptr.CodecEncodeSelf(e)
  6935. }
  6936. z.EncWriteMapEnd()
  6937. }
  6938. }
  6939. }
  6940. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  6941. var h codecSelfer19780
  6942. z, r := GenHelperDecoder(d)
  6943. _, _, _ = h, z, r
  6944. yyct2 := r.ContainerType()
  6945. if yyct2 == codecSelferValueTypeNil19780 {
  6946. *(x) = SstructbigMapBySlice{}
  6947. } else if yyct2 == codecSelferValueTypeMap19780 {
  6948. yyl2 := z.DecReadMapStart()
  6949. if yyl2 == 0 {
  6950. } else {
  6951. x.codecDecodeSelfFromMap(yyl2, d)
  6952. }
  6953. z.DecReadMapEnd()
  6954. } else if yyct2 == codecSelferValueTypeArray19780 {
  6955. yyl2 := z.DecReadArrayStart()
  6956. if yyl2 != 0 {
  6957. x.codecDecodeSelfFromArray(yyl2, d)
  6958. }
  6959. z.DecReadArrayEnd()
  6960. } else {
  6961. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6962. }
  6963. }
  6964. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  6965. var h codecSelfer19780
  6966. z, r := GenHelperDecoder(d)
  6967. _, _, _ = h, z, r
  6968. var yyhl3 bool = l >= 0
  6969. for yyj3 := 0; ; yyj3++ {
  6970. if yyhl3 {
  6971. if yyj3 >= l {
  6972. break
  6973. }
  6974. } else {
  6975. if r.CheckBreak() {
  6976. break
  6977. }
  6978. }
  6979. z.DecReadMapElemKey()
  6980. yys3 := z.StringView(r.DecodeStringAsBytes())
  6981. z.DecReadMapElemValue()
  6982. switch yys3 {
  6983. case "A":
  6984. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6985. case "B":
  6986. x.B = (bool)(r.DecodeBool())
  6987. case "Ssmallptr":
  6988. if r.TryNil() {
  6989. if x.Ssmallptr != nil { // remove the if-true
  6990. x.Ssmallptr = nil
  6991. }
  6992. } else {
  6993. if x.Ssmallptr == nil {
  6994. x.Ssmallptr = new(Sstructsmall)
  6995. }
  6996. x.Ssmallptr.CodecDecodeSelf(d)
  6997. }
  6998. case "Ssmall":
  6999. if r.TryNil() {
  7000. if x.Ssmall != nil { // remove the if-true
  7001. x.Ssmall = nil
  7002. }
  7003. } else {
  7004. if x.Ssmall == nil {
  7005. x.Ssmall = new(Sstructsmall)
  7006. }
  7007. x.Ssmall.CodecDecodeSelf(d)
  7008. }
  7009. case "Sptr":
  7010. if r.TryNil() {
  7011. if x.Sptr != nil { // remove the if-true
  7012. x.Sptr = nil
  7013. }
  7014. } else {
  7015. if x.Sptr == nil {
  7016. x.Sptr = new(Sstructbig)
  7017. }
  7018. x.Sptr.CodecDecodeSelf(d)
  7019. }
  7020. default:
  7021. z.DecStructFieldNotFound(-1, yys3)
  7022. } // end switch yys3
  7023. } // end for yyj3
  7024. }
  7025. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  7026. var h codecSelfer19780
  7027. z, r := GenHelperDecoder(d)
  7028. _, _, _ = h, z, r
  7029. var yyj9 int
  7030. var yyb9 bool
  7031. var yyhl9 bool = l >= 0
  7032. yyj9++
  7033. if yyhl9 {
  7034. yyb9 = yyj9 > l
  7035. } else {
  7036. yyb9 = r.CheckBreak()
  7037. }
  7038. if yyb9 {
  7039. z.DecReadArrayEnd()
  7040. return
  7041. }
  7042. z.DecReadArrayElem()
  7043. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7044. yyj9++
  7045. if yyhl9 {
  7046. yyb9 = yyj9 > l
  7047. } else {
  7048. yyb9 = r.CheckBreak()
  7049. }
  7050. if yyb9 {
  7051. z.DecReadArrayEnd()
  7052. return
  7053. }
  7054. z.DecReadArrayElem()
  7055. x.B = (bool)(r.DecodeBool())
  7056. yyj9++
  7057. if yyhl9 {
  7058. yyb9 = yyj9 > l
  7059. } else {
  7060. yyb9 = r.CheckBreak()
  7061. }
  7062. if yyb9 {
  7063. z.DecReadArrayEnd()
  7064. return
  7065. }
  7066. z.DecReadArrayElem()
  7067. if r.TryNil() {
  7068. if x.Ssmallptr != nil { // remove the if-true
  7069. x.Ssmallptr = nil
  7070. }
  7071. } else {
  7072. if x.Ssmallptr == nil {
  7073. x.Ssmallptr = new(Sstructsmall)
  7074. }
  7075. x.Ssmallptr.CodecDecodeSelf(d)
  7076. }
  7077. yyj9++
  7078. if yyhl9 {
  7079. yyb9 = yyj9 > l
  7080. } else {
  7081. yyb9 = r.CheckBreak()
  7082. }
  7083. if yyb9 {
  7084. z.DecReadArrayEnd()
  7085. return
  7086. }
  7087. z.DecReadArrayElem()
  7088. if r.TryNil() {
  7089. if x.Ssmall != nil { // remove the if-true
  7090. x.Ssmall = nil
  7091. }
  7092. } else {
  7093. if x.Ssmall == nil {
  7094. x.Ssmall = new(Sstructsmall)
  7095. }
  7096. x.Ssmall.CodecDecodeSelf(d)
  7097. }
  7098. yyj9++
  7099. if yyhl9 {
  7100. yyb9 = yyj9 > l
  7101. } else {
  7102. yyb9 = r.CheckBreak()
  7103. }
  7104. if yyb9 {
  7105. z.DecReadArrayEnd()
  7106. return
  7107. }
  7108. z.DecReadArrayElem()
  7109. if r.TryNil() {
  7110. if x.Sptr != nil { // remove the if-true
  7111. x.Sptr = nil
  7112. }
  7113. } else {
  7114. if x.Sptr == nil {
  7115. x.Sptr = new(Sstructbig)
  7116. }
  7117. x.Sptr.CodecDecodeSelf(d)
  7118. }
  7119. for {
  7120. yyj9++
  7121. if yyhl9 {
  7122. yyb9 = yyj9 > l
  7123. } else {
  7124. yyb9 = r.CheckBreak()
  7125. }
  7126. if yyb9 {
  7127. break
  7128. }
  7129. z.DecReadArrayElem()
  7130. z.DecStructFieldNotFound(yyj9-1, "")
  7131. }
  7132. }
  7133. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  7134. var h codecSelfer19780
  7135. z, r := GenHelperEncoder(e)
  7136. _, _, _ = h, z, r
  7137. if x == nil {
  7138. r.EncodeNil()
  7139. } else {
  7140. yysep2 := !z.EncBinary()
  7141. yy2arr2 := z.EncBasicHandle().StructToArray
  7142. _, _ = yysep2, yy2arr2
  7143. const yyr2 bool = false // struct tag has 'toArray'
  7144. if yyr2 || yy2arr2 {
  7145. z.EncWriteArrayStart(2)
  7146. z.EncWriteArrayElem()
  7147. r.EncodeInt(int64(x.I))
  7148. z.EncWriteArrayElem()
  7149. if z.EncBasicHandle().StringToRaw {
  7150. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7151. } else {
  7152. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7153. }
  7154. z.EncWriteArrayEnd()
  7155. } else {
  7156. z.EncWriteMapStart(2)
  7157. z.EncWriteMapElemKey()
  7158. if z.IsJSONHandle() {
  7159. z.WriteStr("\"I\"")
  7160. } else {
  7161. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7162. }
  7163. z.EncWriteMapElemValue()
  7164. r.EncodeInt(int64(x.I))
  7165. z.EncWriteMapElemKey()
  7166. if z.IsJSONHandle() {
  7167. z.WriteStr("\"S\"")
  7168. } else {
  7169. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7170. }
  7171. z.EncWriteMapElemValue()
  7172. if z.EncBasicHandle().StringToRaw {
  7173. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7174. } else {
  7175. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7176. }
  7177. z.EncWriteMapEnd()
  7178. }
  7179. }
  7180. }
  7181. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  7182. var h codecSelfer19780
  7183. z, r := GenHelperDecoder(d)
  7184. _, _, _ = h, z, r
  7185. yyct2 := r.ContainerType()
  7186. if yyct2 == codecSelferValueTypeNil19780 {
  7187. *(x) = tLowerFirstLetter{}
  7188. } else if yyct2 == codecSelferValueTypeMap19780 {
  7189. yyl2 := z.DecReadMapStart()
  7190. if yyl2 == 0 {
  7191. } else {
  7192. x.codecDecodeSelfFromMap(yyl2, d)
  7193. }
  7194. z.DecReadMapEnd()
  7195. } else if yyct2 == codecSelferValueTypeArray19780 {
  7196. yyl2 := z.DecReadArrayStart()
  7197. if yyl2 != 0 {
  7198. x.codecDecodeSelfFromArray(yyl2, d)
  7199. }
  7200. z.DecReadArrayEnd()
  7201. } else {
  7202. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7203. }
  7204. }
  7205. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  7206. var h codecSelfer19780
  7207. z, r := GenHelperDecoder(d)
  7208. _, _, _ = h, z, r
  7209. var yyhl3 bool = l >= 0
  7210. for yyj3 := 0; ; yyj3++ {
  7211. if yyhl3 {
  7212. if yyj3 >= l {
  7213. break
  7214. }
  7215. } else {
  7216. if r.CheckBreak() {
  7217. break
  7218. }
  7219. }
  7220. z.DecReadMapElemKey()
  7221. yys3 := z.StringView(r.DecodeStringAsBytes())
  7222. z.DecReadMapElemValue()
  7223. switch yys3 {
  7224. case "I":
  7225. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7226. case "S":
  7227. x.S = (string)(string(r.DecodeStringAsBytes()))
  7228. default:
  7229. z.DecStructFieldNotFound(-1, yys3)
  7230. } // end switch yys3
  7231. } // end for yyj3
  7232. }
  7233. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  7234. var h codecSelfer19780
  7235. z, r := GenHelperDecoder(d)
  7236. _, _, _ = h, z, r
  7237. var yyj6 int
  7238. var yyb6 bool
  7239. var yyhl6 bool = l >= 0
  7240. yyj6++
  7241. if yyhl6 {
  7242. yyb6 = yyj6 > l
  7243. } else {
  7244. yyb6 = r.CheckBreak()
  7245. }
  7246. if yyb6 {
  7247. z.DecReadArrayEnd()
  7248. return
  7249. }
  7250. z.DecReadArrayElem()
  7251. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  7252. yyj6++
  7253. if yyhl6 {
  7254. yyb6 = yyj6 > l
  7255. } else {
  7256. yyb6 = r.CheckBreak()
  7257. }
  7258. if yyb6 {
  7259. z.DecReadArrayEnd()
  7260. return
  7261. }
  7262. z.DecReadArrayElem()
  7263. x.S = (string)(string(r.DecodeStringAsBytes()))
  7264. for {
  7265. yyj6++
  7266. if yyhl6 {
  7267. yyb6 = yyj6 > l
  7268. } else {
  7269. yyb6 = r.CheckBreak()
  7270. }
  7271. if yyb6 {
  7272. break
  7273. }
  7274. z.DecReadArrayElem()
  7275. z.DecStructFieldNotFound(yyj6-1, "")
  7276. }
  7277. }
  7278. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  7279. var h codecSelfer19780
  7280. z, r := GenHelperEncoder(e)
  7281. _, _, _ = h, z, r
  7282. r.EncodeInt(int64(x))
  7283. }
  7284. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  7285. var h codecSelfer19780
  7286. z, r := GenHelperDecoder(d)
  7287. _, _, _ = h, z, r
  7288. *x = (wrapInt64)(r.DecodeInt64())
  7289. }
  7290. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  7291. var h codecSelfer19780
  7292. z, r := GenHelperEncoder(e)
  7293. _, _, _ = h, z, r
  7294. r.EncodeUint(uint64(x))
  7295. }
  7296. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  7297. var h codecSelfer19780
  7298. z, r := GenHelperDecoder(d)
  7299. _, _, _ = h, z, r
  7300. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  7301. }
  7302. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  7303. var h codecSelfer19780
  7304. z, r := GenHelperEncoder(e)
  7305. _, _, _ = h, z, r
  7306. if x == nil {
  7307. r.EncodeNil()
  7308. } else {
  7309. h.encwrapBytes((wrapBytes)(x), e)
  7310. } // end block: if x slice == nil
  7311. }
  7312. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  7313. var h codecSelfer19780
  7314. z, r := GenHelperDecoder(d)
  7315. _, _, _ = h, z, r
  7316. h.decwrapBytes((*wrapBytes)(x), d)
  7317. }
  7318. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  7319. var h codecSelfer19780
  7320. z, r := GenHelperEncoder(e)
  7321. _, _, _ = h, z, r
  7322. if x == nil {
  7323. r.EncodeNil()
  7324. } else {
  7325. yysep2 := !z.EncBinary()
  7326. yy2arr2 := z.EncBasicHandle().StructToArray
  7327. _, _ = yysep2, yy2arr2
  7328. const yyr2 bool = false // struct tag has 'toArray'
  7329. var yyn7 bool = x.Tptr == nil
  7330. if yyr2 || yy2arr2 {
  7331. z.EncWriteArrayStart(5)
  7332. z.EncWriteArrayElem()
  7333. if x.Islice == nil {
  7334. r.EncodeNil()
  7335. } else {
  7336. z.F.EncSliceIntfV(x.Islice, e)
  7337. } // end block: if x.Islice slice == nil
  7338. z.EncWriteArrayElem()
  7339. if x.Ms == nil {
  7340. r.EncodeNil()
  7341. } else {
  7342. z.F.EncMapStringIntfV(x.Ms, e)
  7343. } // end block: if x.Ms map == nil
  7344. z.EncWriteArrayElem()
  7345. z.EncFallback(x.Nintf)
  7346. z.EncWriteArrayElem()
  7347. if !z.EncBasicHandle().TimeNotBuiltin {
  7348. r.EncodeTime(x.T)
  7349. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7350. z.EncExtension(x.T, yyxt11)
  7351. } else if z.EncBinary() {
  7352. z.EncBinaryMarshal(x.T)
  7353. } else if !z.EncBinary() && z.IsJSONHandle() {
  7354. z.EncJSONMarshal(x.T)
  7355. } else {
  7356. z.EncFallback(x.T)
  7357. }
  7358. if yyn7 {
  7359. z.EncWriteArrayElem()
  7360. r.EncodeNil()
  7361. } else {
  7362. z.EncWriteArrayElem()
  7363. yy12 := *x.Tptr
  7364. if !z.EncBasicHandle().TimeNotBuiltin {
  7365. r.EncodeTime(yy12)
  7366. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  7367. z.EncExtension(yy12, yyxt13)
  7368. } else if z.EncBinary() {
  7369. z.EncBinaryMarshal(yy12)
  7370. } else if !z.EncBinary() && z.IsJSONHandle() {
  7371. z.EncJSONMarshal(yy12)
  7372. } else {
  7373. z.EncFallback(yy12)
  7374. }
  7375. }
  7376. z.EncWriteArrayEnd()
  7377. } else {
  7378. z.EncWriteMapStart(5)
  7379. z.EncWriteMapElemKey()
  7380. if z.IsJSONHandle() {
  7381. z.WriteStr("\"Islice\"")
  7382. } else {
  7383. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  7384. }
  7385. z.EncWriteMapElemValue()
  7386. if x.Islice == nil {
  7387. r.EncodeNil()
  7388. } else {
  7389. z.F.EncSliceIntfV(x.Islice, e)
  7390. } // end block: if x.Islice slice == nil
  7391. z.EncWriteMapElemKey()
  7392. if z.IsJSONHandle() {
  7393. z.WriteStr("\"Ms\"")
  7394. } else {
  7395. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  7396. }
  7397. z.EncWriteMapElemValue()
  7398. if x.Ms == nil {
  7399. r.EncodeNil()
  7400. } else {
  7401. z.F.EncMapStringIntfV(x.Ms, e)
  7402. } // end block: if x.Ms map == nil
  7403. z.EncWriteMapElemKey()
  7404. if z.IsJSONHandle() {
  7405. z.WriteStr("\"Nintf\"")
  7406. } else {
  7407. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  7408. }
  7409. z.EncWriteMapElemValue()
  7410. z.EncFallback(x.Nintf)
  7411. z.EncWriteMapElemKey()
  7412. if z.IsJSONHandle() {
  7413. z.WriteStr("\"T\"")
  7414. } else {
  7415. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  7416. }
  7417. z.EncWriteMapElemValue()
  7418. if !z.EncBasicHandle().TimeNotBuiltin {
  7419. r.EncodeTime(x.T)
  7420. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  7421. z.EncExtension(x.T, yyxt17)
  7422. } else if z.EncBinary() {
  7423. z.EncBinaryMarshal(x.T)
  7424. } else if !z.EncBinary() && z.IsJSONHandle() {
  7425. z.EncJSONMarshal(x.T)
  7426. } else {
  7427. z.EncFallback(x.T)
  7428. }
  7429. z.EncWriteMapElemKey()
  7430. if z.IsJSONHandle() {
  7431. z.WriteStr("\"Tptr\"")
  7432. } else {
  7433. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  7434. }
  7435. z.EncWriteMapElemValue()
  7436. if yyn7 {
  7437. r.EncodeNil()
  7438. } else {
  7439. yy18 := *x.Tptr
  7440. if !z.EncBasicHandle().TimeNotBuiltin {
  7441. r.EncodeTime(yy18)
  7442. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  7443. z.EncExtension(yy18, yyxt19)
  7444. } else if z.EncBinary() {
  7445. z.EncBinaryMarshal(yy18)
  7446. } else if !z.EncBinary() && z.IsJSONHandle() {
  7447. z.EncJSONMarshal(yy18)
  7448. } else {
  7449. z.EncFallback(yy18)
  7450. }
  7451. }
  7452. z.EncWriteMapEnd()
  7453. }
  7454. }
  7455. }
  7456. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  7457. var h codecSelfer19780
  7458. z, r := GenHelperDecoder(d)
  7459. _, _, _ = h, z, r
  7460. yyct2 := r.ContainerType()
  7461. if yyct2 == codecSelferValueTypeNil19780 {
  7462. *(x) = AnonInTestStrucIntf{}
  7463. } else if yyct2 == codecSelferValueTypeMap19780 {
  7464. yyl2 := z.DecReadMapStart()
  7465. if yyl2 == 0 {
  7466. } else {
  7467. x.codecDecodeSelfFromMap(yyl2, d)
  7468. }
  7469. z.DecReadMapEnd()
  7470. } else if yyct2 == codecSelferValueTypeArray19780 {
  7471. yyl2 := z.DecReadArrayStart()
  7472. if yyl2 != 0 {
  7473. x.codecDecodeSelfFromArray(yyl2, d)
  7474. }
  7475. z.DecReadArrayEnd()
  7476. } else {
  7477. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7478. }
  7479. }
  7480. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  7481. var h codecSelfer19780
  7482. z, r := GenHelperDecoder(d)
  7483. _, _, _ = h, z, r
  7484. var yyhl3 bool = l >= 0
  7485. for yyj3 := 0; ; yyj3++ {
  7486. if yyhl3 {
  7487. if yyj3 >= l {
  7488. break
  7489. }
  7490. } else {
  7491. if r.CheckBreak() {
  7492. break
  7493. }
  7494. }
  7495. z.DecReadMapElemKey()
  7496. yys3 := z.StringView(r.DecodeStringAsBytes())
  7497. z.DecReadMapElemValue()
  7498. switch yys3 {
  7499. case "Islice":
  7500. z.F.DecSliceIntfX(&x.Islice, d)
  7501. case "Ms":
  7502. z.F.DecMapStringIntfX(&x.Ms, d)
  7503. case "Nintf":
  7504. z.DecFallback(&x.Nintf, true)
  7505. case "T":
  7506. if !z.DecBasicHandle().TimeNotBuiltin {
  7507. x.T = r.DecodeTime()
  7508. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  7509. z.DecExtension(x.T, yyxt11)
  7510. } else if z.DecBinary() {
  7511. z.DecBinaryUnmarshal(&x.T)
  7512. } else if !z.DecBinary() && z.IsJSONHandle() {
  7513. z.DecJSONUnmarshal(&x.T)
  7514. } else {
  7515. z.DecFallback(&x.T, false)
  7516. }
  7517. case "Tptr":
  7518. if r.TryNil() {
  7519. if x.Tptr != nil { // remove the if-true
  7520. x.Tptr = nil
  7521. }
  7522. } else {
  7523. if x.Tptr == nil {
  7524. x.Tptr = new(time.Time)
  7525. }
  7526. if !z.DecBasicHandle().TimeNotBuiltin {
  7527. *x.Tptr = r.DecodeTime()
  7528. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  7529. z.DecExtension(x.Tptr, yyxt13)
  7530. } else if z.DecBinary() {
  7531. z.DecBinaryUnmarshal(x.Tptr)
  7532. } else if !z.DecBinary() && z.IsJSONHandle() {
  7533. z.DecJSONUnmarshal(x.Tptr)
  7534. } else {
  7535. z.DecFallback(x.Tptr, false)
  7536. }
  7537. }
  7538. default:
  7539. z.DecStructFieldNotFound(-1, yys3)
  7540. } // end switch yys3
  7541. } // end for yyj3
  7542. }
  7543. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  7544. var h codecSelfer19780
  7545. z, r := GenHelperDecoder(d)
  7546. _, _, _ = h, z, r
  7547. var yyj14 int
  7548. var yyb14 bool
  7549. var yyhl14 bool = l >= 0
  7550. yyj14++
  7551. if yyhl14 {
  7552. yyb14 = yyj14 > l
  7553. } else {
  7554. yyb14 = r.CheckBreak()
  7555. }
  7556. if yyb14 {
  7557. z.DecReadArrayEnd()
  7558. return
  7559. }
  7560. z.DecReadArrayElem()
  7561. z.F.DecSliceIntfX(&x.Islice, d)
  7562. yyj14++
  7563. if yyhl14 {
  7564. yyb14 = yyj14 > l
  7565. } else {
  7566. yyb14 = r.CheckBreak()
  7567. }
  7568. if yyb14 {
  7569. z.DecReadArrayEnd()
  7570. return
  7571. }
  7572. z.DecReadArrayElem()
  7573. z.F.DecMapStringIntfX(&x.Ms, d)
  7574. yyj14++
  7575. if yyhl14 {
  7576. yyb14 = yyj14 > l
  7577. } else {
  7578. yyb14 = r.CheckBreak()
  7579. }
  7580. if yyb14 {
  7581. z.DecReadArrayEnd()
  7582. return
  7583. }
  7584. z.DecReadArrayElem()
  7585. z.DecFallback(&x.Nintf, true)
  7586. yyj14++
  7587. if yyhl14 {
  7588. yyb14 = yyj14 > l
  7589. } else {
  7590. yyb14 = r.CheckBreak()
  7591. }
  7592. if yyb14 {
  7593. z.DecReadArrayEnd()
  7594. return
  7595. }
  7596. z.DecReadArrayElem()
  7597. if !z.DecBasicHandle().TimeNotBuiltin {
  7598. x.T = r.DecodeTime()
  7599. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  7600. z.DecExtension(x.T, yyxt22)
  7601. } else if z.DecBinary() {
  7602. z.DecBinaryUnmarshal(&x.T)
  7603. } else if !z.DecBinary() && z.IsJSONHandle() {
  7604. z.DecJSONUnmarshal(&x.T)
  7605. } else {
  7606. z.DecFallback(&x.T, false)
  7607. }
  7608. yyj14++
  7609. if yyhl14 {
  7610. yyb14 = yyj14 > l
  7611. } else {
  7612. yyb14 = r.CheckBreak()
  7613. }
  7614. if yyb14 {
  7615. z.DecReadArrayEnd()
  7616. return
  7617. }
  7618. z.DecReadArrayElem()
  7619. if r.TryNil() {
  7620. if x.Tptr != nil { // remove the if-true
  7621. x.Tptr = nil
  7622. }
  7623. } else {
  7624. if x.Tptr == nil {
  7625. x.Tptr = new(time.Time)
  7626. }
  7627. if !z.DecBasicHandle().TimeNotBuiltin {
  7628. *x.Tptr = r.DecodeTime()
  7629. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  7630. z.DecExtension(x.Tptr, yyxt24)
  7631. } else if z.DecBinary() {
  7632. z.DecBinaryUnmarshal(x.Tptr)
  7633. } else if !z.DecBinary() && z.IsJSONHandle() {
  7634. z.DecJSONUnmarshal(x.Tptr)
  7635. } else {
  7636. z.DecFallback(x.Tptr, false)
  7637. }
  7638. }
  7639. for {
  7640. yyj14++
  7641. if yyhl14 {
  7642. yyb14 = yyj14 > l
  7643. } else {
  7644. yyb14 = r.CheckBreak()
  7645. }
  7646. if yyb14 {
  7647. break
  7648. }
  7649. z.DecReadArrayElem()
  7650. z.DecStructFieldNotFound(yyj14-1, "")
  7651. }
  7652. }
  7653. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  7654. var h codecSelfer19780
  7655. z, r := GenHelperEncoder(e)
  7656. _, _, _ = h, z, r
  7657. if x == nil {
  7658. r.EncodeNil()
  7659. } else {
  7660. yysep2 := !z.EncBinary()
  7661. yy2arr2 := z.EncBasicHandle().StructToArray
  7662. _, _ = yysep2, yy2arr2
  7663. const yyr2 bool = false // struct tag has 'toArray'
  7664. if yyr2 || yy2arr2 {
  7665. z.EncWriteArrayStart(2)
  7666. z.EncWriteArrayElem()
  7667. if z.EncBasicHandle().StringToRaw {
  7668. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7669. } else {
  7670. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7671. }
  7672. z.EncWriteArrayElem()
  7673. r.EncodeBool(bool(x.B))
  7674. z.EncWriteArrayEnd()
  7675. } else {
  7676. z.EncWriteMapStart(2)
  7677. z.EncWriteMapElemKey()
  7678. if z.IsJSONHandle() {
  7679. z.WriteStr("\"S\"")
  7680. } else {
  7681. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7682. }
  7683. z.EncWriteMapElemValue()
  7684. if z.EncBasicHandle().StringToRaw {
  7685. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7686. } else {
  7687. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7688. }
  7689. z.EncWriteMapElemKey()
  7690. if z.IsJSONHandle() {
  7691. z.WriteStr("\"B\"")
  7692. } else {
  7693. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7694. }
  7695. z.EncWriteMapElemValue()
  7696. r.EncodeBool(bool(x.B))
  7697. z.EncWriteMapEnd()
  7698. }
  7699. }
  7700. }
  7701. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  7702. var h codecSelfer19780
  7703. z, r := GenHelperDecoder(d)
  7704. _, _, _ = h, z, r
  7705. yyct2 := r.ContainerType()
  7706. if yyct2 == codecSelferValueTypeNil19780 {
  7707. *(x) = missingFielderT1{}
  7708. } else if yyct2 == codecSelferValueTypeMap19780 {
  7709. yyl2 := z.DecReadMapStart()
  7710. if yyl2 == 0 {
  7711. } else {
  7712. x.codecDecodeSelfFromMap(yyl2, d)
  7713. }
  7714. z.DecReadMapEnd()
  7715. } else if yyct2 == codecSelferValueTypeArray19780 {
  7716. yyl2 := z.DecReadArrayStart()
  7717. if yyl2 != 0 {
  7718. x.codecDecodeSelfFromArray(yyl2, d)
  7719. }
  7720. z.DecReadArrayEnd()
  7721. } else {
  7722. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7723. }
  7724. }
  7725. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  7726. var h codecSelfer19780
  7727. z, r := GenHelperDecoder(d)
  7728. _, _, _ = h, z, r
  7729. var yyhl3 bool = l >= 0
  7730. for yyj3 := 0; ; yyj3++ {
  7731. if yyhl3 {
  7732. if yyj3 >= l {
  7733. break
  7734. }
  7735. } else {
  7736. if r.CheckBreak() {
  7737. break
  7738. }
  7739. }
  7740. z.DecReadMapElemKey()
  7741. yys3 := z.StringView(r.DecodeStringAsBytes())
  7742. z.DecReadMapElemValue()
  7743. switch yys3 {
  7744. case "S":
  7745. x.S = (string)(string(r.DecodeStringAsBytes()))
  7746. case "B":
  7747. x.B = (bool)(r.DecodeBool())
  7748. default:
  7749. z.DecStructFieldNotFound(-1, yys3)
  7750. } // end switch yys3
  7751. } // end for yyj3
  7752. }
  7753. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  7754. var h codecSelfer19780
  7755. z, r := GenHelperDecoder(d)
  7756. _, _, _ = h, z, r
  7757. var yyj6 int
  7758. var yyb6 bool
  7759. var yyhl6 bool = l >= 0
  7760. yyj6++
  7761. if yyhl6 {
  7762. yyb6 = yyj6 > l
  7763. } else {
  7764. yyb6 = r.CheckBreak()
  7765. }
  7766. if yyb6 {
  7767. z.DecReadArrayEnd()
  7768. return
  7769. }
  7770. z.DecReadArrayElem()
  7771. x.S = (string)(string(r.DecodeStringAsBytes()))
  7772. yyj6++
  7773. if yyhl6 {
  7774. yyb6 = yyj6 > l
  7775. } else {
  7776. yyb6 = r.CheckBreak()
  7777. }
  7778. if yyb6 {
  7779. z.DecReadArrayEnd()
  7780. return
  7781. }
  7782. z.DecReadArrayElem()
  7783. x.B = (bool)(r.DecodeBool())
  7784. for {
  7785. yyj6++
  7786. if yyhl6 {
  7787. yyb6 = yyj6 > l
  7788. } else {
  7789. yyb6 = r.CheckBreak()
  7790. }
  7791. if yyb6 {
  7792. break
  7793. }
  7794. z.DecReadArrayElem()
  7795. z.DecStructFieldNotFound(yyj6-1, "")
  7796. }
  7797. }
  7798. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  7799. var h codecSelfer19780
  7800. z, r := GenHelperEncoder(e)
  7801. _, _, _ = h, z, r
  7802. if x == nil {
  7803. r.EncodeNil()
  7804. } else {
  7805. yysep2 := !z.EncBinary()
  7806. yy2arr2 := z.EncBasicHandle().StructToArray
  7807. _, _ = yysep2, yy2arr2
  7808. const yyr2 bool = false // struct tag has 'toArray'
  7809. if yyr2 || yy2arr2 {
  7810. z.EncWriteArrayStart(4)
  7811. z.EncWriteArrayElem()
  7812. if z.EncBasicHandle().StringToRaw {
  7813. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7814. } else {
  7815. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7816. }
  7817. z.EncWriteArrayElem()
  7818. r.EncodeBool(bool(x.B))
  7819. z.EncWriteArrayElem()
  7820. r.EncodeFloat64(float64(x.F))
  7821. z.EncWriteArrayElem()
  7822. r.EncodeInt(int64(x.I))
  7823. z.EncWriteArrayEnd()
  7824. } else {
  7825. z.EncWriteMapStart(4)
  7826. z.EncWriteMapElemKey()
  7827. if z.IsJSONHandle() {
  7828. z.WriteStr("\"S\"")
  7829. } else {
  7830. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7831. }
  7832. z.EncWriteMapElemValue()
  7833. if z.EncBasicHandle().StringToRaw {
  7834. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7835. } else {
  7836. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7837. }
  7838. z.EncWriteMapElemKey()
  7839. if z.IsJSONHandle() {
  7840. z.WriteStr("\"B\"")
  7841. } else {
  7842. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7843. }
  7844. z.EncWriteMapElemValue()
  7845. r.EncodeBool(bool(x.B))
  7846. z.EncWriteMapElemKey()
  7847. if z.IsJSONHandle() {
  7848. z.WriteStr("\"F\"")
  7849. } else {
  7850. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  7851. }
  7852. z.EncWriteMapElemValue()
  7853. r.EncodeFloat64(float64(x.F))
  7854. z.EncWriteMapElemKey()
  7855. if z.IsJSONHandle() {
  7856. z.WriteStr("\"I\"")
  7857. } else {
  7858. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7859. }
  7860. z.EncWriteMapElemValue()
  7861. r.EncodeInt(int64(x.I))
  7862. z.EncWriteMapEnd()
  7863. }
  7864. }
  7865. }
  7866. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  7867. var h codecSelfer19780
  7868. z, r := GenHelperDecoder(d)
  7869. _, _, _ = h, z, r
  7870. yyct2 := r.ContainerType()
  7871. if yyct2 == codecSelferValueTypeNil19780 {
  7872. *(x) = missingFielderT2{}
  7873. } else if yyct2 == codecSelferValueTypeMap19780 {
  7874. yyl2 := z.DecReadMapStart()
  7875. if yyl2 == 0 {
  7876. } else {
  7877. x.codecDecodeSelfFromMap(yyl2, d)
  7878. }
  7879. z.DecReadMapEnd()
  7880. } else if yyct2 == codecSelferValueTypeArray19780 {
  7881. yyl2 := z.DecReadArrayStart()
  7882. if yyl2 != 0 {
  7883. x.codecDecodeSelfFromArray(yyl2, d)
  7884. }
  7885. z.DecReadArrayEnd()
  7886. } else {
  7887. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7888. }
  7889. }
  7890. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  7891. var h codecSelfer19780
  7892. z, r := GenHelperDecoder(d)
  7893. _, _, _ = h, z, r
  7894. var yyhl3 bool = l >= 0
  7895. for yyj3 := 0; ; yyj3++ {
  7896. if yyhl3 {
  7897. if yyj3 >= l {
  7898. break
  7899. }
  7900. } else {
  7901. if r.CheckBreak() {
  7902. break
  7903. }
  7904. }
  7905. z.DecReadMapElemKey()
  7906. yys3 := z.StringView(r.DecodeStringAsBytes())
  7907. z.DecReadMapElemValue()
  7908. switch yys3 {
  7909. case "S":
  7910. x.S = (string)(string(r.DecodeStringAsBytes()))
  7911. case "B":
  7912. x.B = (bool)(r.DecodeBool())
  7913. case "F":
  7914. x.F = (float64)(r.DecodeFloat64())
  7915. case "I":
  7916. x.I = (int64)(r.DecodeInt64())
  7917. default:
  7918. z.DecStructFieldNotFound(-1, yys3)
  7919. } // end switch yys3
  7920. } // end for yyj3
  7921. }
  7922. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  7923. var h codecSelfer19780
  7924. z, r := GenHelperDecoder(d)
  7925. _, _, _ = h, z, r
  7926. var yyj8 int
  7927. var yyb8 bool
  7928. var yyhl8 bool = l >= 0
  7929. yyj8++
  7930. if yyhl8 {
  7931. yyb8 = yyj8 > l
  7932. } else {
  7933. yyb8 = r.CheckBreak()
  7934. }
  7935. if yyb8 {
  7936. z.DecReadArrayEnd()
  7937. return
  7938. }
  7939. z.DecReadArrayElem()
  7940. x.S = (string)(string(r.DecodeStringAsBytes()))
  7941. yyj8++
  7942. if yyhl8 {
  7943. yyb8 = yyj8 > l
  7944. } else {
  7945. yyb8 = r.CheckBreak()
  7946. }
  7947. if yyb8 {
  7948. z.DecReadArrayEnd()
  7949. return
  7950. }
  7951. z.DecReadArrayElem()
  7952. x.B = (bool)(r.DecodeBool())
  7953. yyj8++
  7954. if yyhl8 {
  7955. yyb8 = yyj8 > l
  7956. } else {
  7957. yyb8 = r.CheckBreak()
  7958. }
  7959. if yyb8 {
  7960. z.DecReadArrayEnd()
  7961. return
  7962. }
  7963. z.DecReadArrayElem()
  7964. x.F = (float64)(r.DecodeFloat64())
  7965. yyj8++
  7966. if yyhl8 {
  7967. yyb8 = yyj8 > l
  7968. } else {
  7969. yyb8 = r.CheckBreak()
  7970. }
  7971. if yyb8 {
  7972. z.DecReadArrayEnd()
  7973. return
  7974. }
  7975. z.DecReadArrayElem()
  7976. x.I = (int64)(r.DecodeInt64())
  7977. for {
  7978. yyj8++
  7979. if yyhl8 {
  7980. yyb8 = yyj8 > l
  7981. } else {
  7982. yyb8 = r.CheckBreak()
  7983. }
  7984. if yyb8 {
  7985. break
  7986. }
  7987. z.DecReadArrayElem()
  7988. z.DecStructFieldNotFound(yyj8-1, "")
  7989. }
  7990. }
  7991. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  7992. var h codecSelfer19780
  7993. z, r := GenHelperEncoder(e)
  7994. _, _, _ = h, z, r
  7995. if x == nil {
  7996. r.EncodeNil()
  7997. } else {
  7998. yysep2 := !z.EncBinary()
  7999. yy2arr2 := z.EncBasicHandle().StructToArray
  8000. _, _ = yysep2, yy2arr2
  8001. const yyr2 bool = false // struct tag has 'toArray'
  8002. if yyr2 || yy2arr2 {
  8003. z.EncWriteArrayStart(3)
  8004. z.EncWriteArrayElem()
  8005. if z.EncBasicHandle().StringToRaw {
  8006. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8007. } else {
  8008. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8009. }
  8010. z.EncWriteArrayElem()
  8011. r.EncodeInt(int64(x.I))
  8012. z.EncWriteArrayElem()
  8013. r.EncodeBool(bool(x.B))
  8014. z.EncWriteArrayEnd()
  8015. } else {
  8016. z.EncWriteMapStart(3)
  8017. z.EncWriteMapElemKey()
  8018. if z.IsJSONHandle() {
  8019. z.WriteStr("\"S\"")
  8020. } else {
  8021. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8022. }
  8023. z.EncWriteMapElemValue()
  8024. if z.EncBasicHandle().StringToRaw {
  8025. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  8026. } else {
  8027. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  8028. }
  8029. z.EncWriteMapElemKey()
  8030. if z.IsJSONHandle() {
  8031. z.WriteStr("\"I\"")
  8032. } else {
  8033. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8034. }
  8035. z.EncWriteMapElemValue()
  8036. r.EncodeInt(int64(x.I))
  8037. z.EncWriteMapElemKey()
  8038. if z.IsJSONHandle() {
  8039. z.WriteStr("\"B\"")
  8040. } else {
  8041. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8042. }
  8043. z.EncWriteMapElemValue()
  8044. r.EncodeBool(bool(x.B))
  8045. z.EncWriteMapEnd()
  8046. }
  8047. }
  8048. }
  8049. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  8050. var h codecSelfer19780
  8051. z, r := GenHelperDecoder(d)
  8052. _, _, _ = h, z, r
  8053. yyct2 := r.ContainerType()
  8054. if yyct2 == codecSelferValueTypeNil19780 {
  8055. *(x) = testSelfExtHelper{}
  8056. } else if yyct2 == codecSelferValueTypeMap19780 {
  8057. yyl2 := z.DecReadMapStart()
  8058. if yyl2 == 0 {
  8059. } else {
  8060. x.codecDecodeSelfFromMap(yyl2, d)
  8061. }
  8062. z.DecReadMapEnd()
  8063. } else if yyct2 == codecSelferValueTypeArray19780 {
  8064. yyl2 := z.DecReadArrayStart()
  8065. if yyl2 != 0 {
  8066. x.codecDecodeSelfFromArray(yyl2, d)
  8067. }
  8068. z.DecReadArrayEnd()
  8069. } else {
  8070. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8071. }
  8072. }
  8073. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  8074. var h codecSelfer19780
  8075. z, r := GenHelperDecoder(d)
  8076. _, _, _ = h, z, r
  8077. var yyhl3 bool = l >= 0
  8078. for yyj3 := 0; ; yyj3++ {
  8079. if yyhl3 {
  8080. if yyj3 >= l {
  8081. break
  8082. }
  8083. } else {
  8084. if r.CheckBreak() {
  8085. break
  8086. }
  8087. }
  8088. z.DecReadMapElemKey()
  8089. yys3 := z.StringView(r.DecodeStringAsBytes())
  8090. z.DecReadMapElemValue()
  8091. switch yys3 {
  8092. case "S":
  8093. x.S = (string)(string(r.DecodeStringAsBytes()))
  8094. case "I":
  8095. x.I = (int64)(r.DecodeInt64())
  8096. case "B":
  8097. x.B = (bool)(r.DecodeBool())
  8098. default:
  8099. z.DecStructFieldNotFound(-1, yys3)
  8100. } // end switch yys3
  8101. } // end for yyj3
  8102. }
  8103. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  8104. var h codecSelfer19780
  8105. z, r := GenHelperDecoder(d)
  8106. _, _, _ = h, z, r
  8107. var yyj7 int
  8108. var yyb7 bool
  8109. var yyhl7 bool = l >= 0
  8110. yyj7++
  8111. if yyhl7 {
  8112. yyb7 = yyj7 > l
  8113. } else {
  8114. yyb7 = r.CheckBreak()
  8115. }
  8116. if yyb7 {
  8117. z.DecReadArrayEnd()
  8118. return
  8119. }
  8120. z.DecReadArrayElem()
  8121. x.S = (string)(string(r.DecodeStringAsBytes()))
  8122. yyj7++
  8123. if yyhl7 {
  8124. yyb7 = yyj7 > l
  8125. } else {
  8126. yyb7 = r.CheckBreak()
  8127. }
  8128. if yyb7 {
  8129. z.DecReadArrayEnd()
  8130. return
  8131. }
  8132. z.DecReadArrayElem()
  8133. x.I = (int64)(r.DecodeInt64())
  8134. yyj7++
  8135. if yyhl7 {
  8136. yyb7 = yyj7 > l
  8137. } else {
  8138. yyb7 = r.CheckBreak()
  8139. }
  8140. if yyb7 {
  8141. z.DecReadArrayEnd()
  8142. return
  8143. }
  8144. z.DecReadArrayElem()
  8145. x.B = (bool)(r.DecodeBool())
  8146. for {
  8147. yyj7++
  8148. if yyhl7 {
  8149. yyb7 = yyj7 > l
  8150. } else {
  8151. yyb7 = r.CheckBreak()
  8152. }
  8153. if yyb7 {
  8154. break
  8155. }
  8156. z.DecReadArrayElem()
  8157. z.DecStructFieldNotFound(yyj7-1, "")
  8158. }
  8159. }
  8160. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  8161. var h codecSelfer19780
  8162. z, r := GenHelperEncoder(e)
  8163. _, _, _ = h, z, r
  8164. if x == nil {
  8165. r.EncodeNil()
  8166. } else {
  8167. yysep2 := !z.EncBinary()
  8168. yy2arr2 := z.EncBasicHandle().StructToArray
  8169. _, _ = yysep2, yy2arr2
  8170. const yyr2 bool = false // struct tag has 'toArray'
  8171. if yyr2 || yy2arr2 {
  8172. z.EncWriteArrayStart(3)
  8173. z.EncWriteArrayElem()
  8174. if z.EncBasicHandle().StringToRaw {
  8175. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8176. } else {
  8177. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8178. }
  8179. z.EncWriteArrayElem()
  8180. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8181. z.EncWriteArrayElem()
  8182. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8183. z.EncWriteArrayEnd()
  8184. } else {
  8185. z.EncWriteMapStart(3)
  8186. z.EncWriteMapElemKey()
  8187. if z.IsJSONHandle() {
  8188. z.WriteStr("\"S\"")
  8189. } else {
  8190. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8191. }
  8192. z.EncWriteMapElemValue()
  8193. if z.EncBasicHandle().StringToRaw {
  8194. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  8195. } else {
  8196. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  8197. }
  8198. z.EncWriteMapElemKey()
  8199. if z.IsJSONHandle() {
  8200. z.WriteStr("\"I\"")
  8201. } else {
  8202. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  8203. }
  8204. z.EncWriteMapElemValue()
  8205. r.EncodeInt(int64(x.testSelfExtHelper.I))
  8206. z.EncWriteMapElemKey()
  8207. if z.IsJSONHandle() {
  8208. z.WriteStr("\"B\"")
  8209. } else {
  8210. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8211. }
  8212. z.EncWriteMapElemValue()
  8213. r.EncodeBool(bool(x.testSelfExtHelper.B))
  8214. z.EncWriteMapEnd()
  8215. }
  8216. }
  8217. }
  8218. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  8219. var h codecSelfer19780
  8220. z, r := GenHelperDecoder(d)
  8221. _, _, _ = h, z, r
  8222. yyct2 := r.ContainerType()
  8223. if yyct2 == codecSelferValueTypeNil19780 {
  8224. *(x) = TestSelfExtImpl{}
  8225. } else if yyct2 == codecSelferValueTypeMap19780 {
  8226. yyl2 := z.DecReadMapStart()
  8227. if yyl2 == 0 {
  8228. } else {
  8229. x.codecDecodeSelfFromMap(yyl2, d)
  8230. }
  8231. z.DecReadMapEnd()
  8232. } else if yyct2 == codecSelferValueTypeArray19780 {
  8233. yyl2 := z.DecReadArrayStart()
  8234. if yyl2 != 0 {
  8235. x.codecDecodeSelfFromArray(yyl2, d)
  8236. }
  8237. z.DecReadArrayEnd()
  8238. } else {
  8239. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8240. }
  8241. }
  8242. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  8243. var h codecSelfer19780
  8244. z, r := GenHelperDecoder(d)
  8245. _, _, _ = h, z, r
  8246. var yyhl3 bool = l >= 0
  8247. for yyj3 := 0; ; yyj3++ {
  8248. if yyhl3 {
  8249. if yyj3 >= l {
  8250. break
  8251. }
  8252. } else {
  8253. if r.CheckBreak() {
  8254. break
  8255. }
  8256. }
  8257. z.DecReadMapElemKey()
  8258. yys3 := z.StringView(r.DecodeStringAsBytes())
  8259. z.DecReadMapElemValue()
  8260. switch yys3 {
  8261. case "S":
  8262. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8263. case "I":
  8264. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8265. case "B":
  8266. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8267. default:
  8268. z.DecStructFieldNotFound(-1, yys3)
  8269. } // end switch yys3
  8270. } // end for yyj3
  8271. }
  8272. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  8273. var h codecSelfer19780
  8274. z, r := GenHelperDecoder(d)
  8275. _, _, _ = h, z, r
  8276. var yyj7 int
  8277. var yyb7 bool
  8278. var yyhl7 bool = l >= 0
  8279. yyj7++
  8280. if yyhl7 {
  8281. yyb7 = yyj7 > l
  8282. } else {
  8283. yyb7 = r.CheckBreak()
  8284. }
  8285. if yyb7 {
  8286. z.DecReadArrayEnd()
  8287. return
  8288. }
  8289. z.DecReadArrayElem()
  8290. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  8291. yyj7++
  8292. if yyhl7 {
  8293. yyb7 = yyj7 > l
  8294. } else {
  8295. yyb7 = r.CheckBreak()
  8296. }
  8297. if yyb7 {
  8298. z.DecReadArrayEnd()
  8299. return
  8300. }
  8301. z.DecReadArrayElem()
  8302. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  8303. yyj7++
  8304. if yyhl7 {
  8305. yyb7 = yyj7 > l
  8306. } else {
  8307. yyb7 = r.CheckBreak()
  8308. }
  8309. if yyb7 {
  8310. z.DecReadArrayEnd()
  8311. return
  8312. }
  8313. z.DecReadArrayElem()
  8314. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  8315. for {
  8316. yyj7++
  8317. if yyhl7 {
  8318. yyb7 = yyj7 > l
  8319. } else {
  8320. yyb7 = r.CheckBreak()
  8321. }
  8322. if yyb7 {
  8323. break
  8324. }
  8325. z.DecReadArrayElem()
  8326. z.DecStructFieldNotFound(yyj7-1, "")
  8327. }
  8328. }
  8329. func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
  8330. var h codecSelfer19780
  8331. z, r := GenHelperEncoder(e)
  8332. _, _, _ = h, z, r
  8333. if x == nil {
  8334. r.EncodeNil()
  8335. } else {
  8336. yysep2 := !z.EncBinary()
  8337. yy2arr2 := z.EncBasicHandle().StructToArray
  8338. _, _ = yysep2, yy2arr2
  8339. const yyr2 bool = false // struct tag has 'toArray'
  8340. if yyr2 || yy2arr2 {
  8341. z.EncWriteArrayStart(2)
  8342. z.EncWriteArrayElem()
  8343. if z.EncBasicHandle().StringToRaw {
  8344. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8345. } else {
  8346. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8347. }
  8348. z.EncWriteArrayElem()
  8349. r.EncodeBool(bool(x.O))
  8350. z.EncWriteArrayEnd()
  8351. } else {
  8352. z.EncWriteMapStart(2)
  8353. z.EncWriteMapElemKey()
  8354. if z.IsJSONHandle() {
  8355. z.WriteStr("\"M\"")
  8356. } else {
  8357. r.EncodeStringEnc(codecSelferCcUTF819780, `M`)
  8358. }
  8359. z.EncWriteMapElemValue()
  8360. if z.EncBasicHandle().StringToRaw {
  8361. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  8362. } else {
  8363. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  8364. }
  8365. z.EncWriteMapElemKey()
  8366. if z.IsJSONHandle() {
  8367. z.WriteStr("\"O\"")
  8368. } else {
  8369. r.EncodeStringEnc(codecSelferCcUTF819780, `O`)
  8370. }
  8371. z.EncWriteMapElemValue()
  8372. r.EncodeBool(bool(x.O))
  8373. z.EncWriteMapEnd()
  8374. }
  8375. }
  8376. }
  8377. func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
  8378. var h codecSelfer19780
  8379. z, r := GenHelperDecoder(d)
  8380. _, _, _ = h, z, r
  8381. yyct2 := r.ContainerType()
  8382. if yyct2 == codecSelferValueTypeNil19780 {
  8383. *(x) = TestSelfExtImpl2{}
  8384. } else if yyct2 == codecSelferValueTypeMap19780 {
  8385. yyl2 := z.DecReadMapStart()
  8386. if yyl2 == 0 {
  8387. } else {
  8388. x.codecDecodeSelfFromMap(yyl2, d)
  8389. }
  8390. z.DecReadMapEnd()
  8391. } else if yyct2 == codecSelferValueTypeArray19780 {
  8392. yyl2 := z.DecReadArrayStart()
  8393. if yyl2 != 0 {
  8394. x.codecDecodeSelfFromArray(yyl2, d)
  8395. }
  8396. z.DecReadArrayEnd()
  8397. } else {
  8398. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8399. }
  8400. }
  8401. func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
  8402. var h codecSelfer19780
  8403. z, r := GenHelperDecoder(d)
  8404. _, _, _ = h, z, r
  8405. var yyhl3 bool = l >= 0
  8406. for yyj3 := 0; ; yyj3++ {
  8407. if yyhl3 {
  8408. if yyj3 >= l {
  8409. break
  8410. }
  8411. } else {
  8412. if r.CheckBreak() {
  8413. break
  8414. }
  8415. }
  8416. z.DecReadMapElemKey()
  8417. yys3 := z.StringView(r.DecodeStringAsBytes())
  8418. z.DecReadMapElemValue()
  8419. switch yys3 {
  8420. case "M":
  8421. x.M = (string)(string(r.DecodeStringAsBytes()))
  8422. case "O":
  8423. x.O = (bool)(r.DecodeBool())
  8424. default:
  8425. z.DecStructFieldNotFound(-1, yys3)
  8426. } // end switch yys3
  8427. } // end for yyj3
  8428. }
  8429. func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
  8430. var h codecSelfer19780
  8431. z, r := GenHelperDecoder(d)
  8432. _, _, _ = h, z, r
  8433. var yyj6 int
  8434. var yyb6 bool
  8435. var yyhl6 bool = l >= 0
  8436. yyj6++
  8437. if yyhl6 {
  8438. yyb6 = yyj6 > l
  8439. } else {
  8440. yyb6 = r.CheckBreak()
  8441. }
  8442. if yyb6 {
  8443. z.DecReadArrayEnd()
  8444. return
  8445. }
  8446. z.DecReadArrayElem()
  8447. x.M = (string)(string(r.DecodeStringAsBytes()))
  8448. yyj6++
  8449. if yyhl6 {
  8450. yyb6 = yyj6 > l
  8451. } else {
  8452. yyb6 = r.CheckBreak()
  8453. }
  8454. if yyb6 {
  8455. z.DecReadArrayEnd()
  8456. return
  8457. }
  8458. z.DecReadArrayElem()
  8459. x.O = (bool)(r.DecodeBool())
  8460. for {
  8461. yyj6++
  8462. if yyhl6 {
  8463. yyb6 = yyj6 > l
  8464. } else {
  8465. yyb6 = r.CheckBreak()
  8466. }
  8467. if yyb6 {
  8468. break
  8469. }
  8470. z.DecReadArrayElem()
  8471. z.DecStructFieldNotFound(yyj6-1, "")
  8472. }
  8473. }
  8474. func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
  8475. var h codecSelfer19780
  8476. z, r := GenHelperEncoder(e)
  8477. _, _, _ = h, z, r
  8478. if x == nil {
  8479. r.EncodeNil()
  8480. } else {
  8481. yysep2 := !z.EncBinary()
  8482. yy2arr2 := z.EncBasicHandle().StructToArray
  8483. _, _ = yysep2, yy2arr2
  8484. const yyr2 bool = false // struct tag has 'toArray'
  8485. if yyr2 || yy2arr2 {
  8486. z.EncWriteArrayStart(2)
  8487. z.EncWriteArrayElem()
  8488. z.EncFallback(x.A)
  8489. z.EncWriteArrayElem()
  8490. z.EncFallback(x.B)
  8491. z.EncWriteArrayEnd()
  8492. } else {
  8493. z.EncWriteMapStart(2)
  8494. z.EncWriteMapElemKey()
  8495. if z.IsJSONHandle() {
  8496. z.WriteStr("\"A\"")
  8497. } else {
  8498. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  8499. }
  8500. z.EncWriteMapElemValue()
  8501. z.EncFallback(x.A)
  8502. z.EncWriteMapElemKey()
  8503. if z.IsJSONHandle() {
  8504. z.WriteStr("\"B\"")
  8505. } else {
  8506. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  8507. }
  8508. z.EncWriteMapElemValue()
  8509. z.EncFallback(x.B)
  8510. z.EncWriteMapEnd()
  8511. }
  8512. }
  8513. }
  8514. func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
  8515. var h codecSelfer19780
  8516. z, r := GenHelperDecoder(d)
  8517. _, _, _ = h, z, r
  8518. yyct2 := r.ContainerType()
  8519. if yyct2 == codecSelferValueTypeNil19780 {
  8520. *(x) = TestTwoNakedInterfaces{}
  8521. } else if yyct2 == codecSelferValueTypeMap19780 {
  8522. yyl2 := z.DecReadMapStart()
  8523. if yyl2 == 0 {
  8524. } else {
  8525. x.codecDecodeSelfFromMap(yyl2, d)
  8526. }
  8527. z.DecReadMapEnd()
  8528. } else if yyct2 == codecSelferValueTypeArray19780 {
  8529. yyl2 := z.DecReadArrayStart()
  8530. if yyl2 != 0 {
  8531. x.codecDecodeSelfFromArray(yyl2, d)
  8532. }
  8533. z.DecReadArrayEnd()
  8534. } else {
  8535. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  8536. }
  8537. }
  8538. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
  8539. var h codecSelfer19780
  8540. z, r := GenHelperDecoder(d)
  8541. _, _, _ = h, z, r
  8542. var yyhl3 bool = l >= 0
  8543. for yyj3 := 0; ; yyj3++ {
  8544. if yyhl3 {
  8545. if yyj3 >= l {
  8546. break
  8547. }
  8548. } else {
  8549. if r.CheckBreak() {
  8550. break
  8551. }
  8552. }
  8553. z.DecReadMapElemKey()
  8554. yys3 := z.StringView(r.DecodeStringAsBytes())
  8555. z.DecReadMapElemValue()
  8556. switch yys3 {
  8557. case "A":
  8558. z.DecFallback(&x.A, true)
  8559. case "B":
  8560. z.DecFallback(&x.B, true)
  8561. default:
  8562. z.DecStructFieldNotFound(-1, yys3)
  8563. } // end switch yys3
  8564. } // end for yyj3
  8565. }
  8566. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
  8567. var h codecSelfer19780
  8568. z, r := GenHelperDecoder(d)
  8569. _, _, _ = h, z, r
  8570. var yyj8 int
  8571. var yyb8 bool
  8572. var yyhl8 bool = l >= 0
  8573. yyj8++
  8574. if yyhl8 {
  8575. yyb8 = yyj8 > l
  8576. } else {
  8577. yyb8 = r.CheckBreak()
  8578. }
  8579. if yyb8 {
  8580. z.DecReadArrayEnd()
  8581. return
  8582. }
  8583. z.DecReadArrayElem()
  8584. z.DecFallback(&x.A, true)
  8585. yyj8++
  8586. if yyhl8 {
  8587. yyb8 = yyj8 > l
  8588. } else {
  8589. yyb8 = r.CheckBreak()
  8590. }
  8591. if yyb8 {
  8592. z.DecReadArrayEnd()
  8593. return
  8594. }
  8595. z.DecReadArrayElem()
  8596. z.DecFallback(&x.B, true)
  8597. for {
  8598. yyj8++
  8599. if yyhl8 {
  8600. yyb8 = yyj8 > l
  8601. } else {
  8602. yyb8 = r.CheckBreak()
  8603. }
  8604. if yyb8 {
  8605. break
  8606. }
  8607. z.DecReadArrayElem()
  8608. z.DecStructFieldNotFound(yyj8-1, "")
  8609. }
  8610. }
  8611. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  8612. var h codecSelfer19780
  8613. z, r := GenHelperEncoder(e)
  8614. _, _, _ = h, z, r
  8615. if x == nil {
  8616. r.EncodeNil()
  8617. } else {
  8618. yysep2 := !z.EncBinary()
  8619. yy2arr2 := z.EncBasicHandle().StructToArray
  8620. _, _ = yysep2, yy2arr2
  8621. const yyr2 bool = false // struct tag has 'toArray'
  8622. var yyq2 = [77]bool{ // should field at this index be written?
  8623. x.S != "", // S
  8624. x.I64 != 0, // I64
  8625. x.I32 != 0, // I32
  8626. x.I16 != 0, // I16
  8627. x.I8 != 0, // I8
  8628. x.I64n != 0, // I64n
  8629. x.I32n != 0, // I32n
  8630. x.I16n != 0, // I16n
  8631. x.I8n != 0, // I8n
  8632. x.Ui64 != 0, // Ui64
  8633. x.Ui32 != 0, // Ui32
  8634. x.Ui16 != 0, // Ui16
  8635. x.Ui8 != 0, // Ui8
  8636. x.F64 != 0, // F64
  8637. x.F32 != 0, // F32
  8638. x.B, // B
  8639. x.By != 0, // By
  8640. len(x.Sslice) != 0, // Sslice
  8641. len(x.I64slice) != 0, // I64slice
  8642. len(x.I16slice) != 0, // I16slice
  8643. len(x.Ui64slice) != 0, // Ui64slice
  8644. len(x.Ui8slice) != 0, // Ui8slice
  8645. len(x.Bslice) != 0, // Bslice
  8646. len(x.Byslice) != 0, // Byslice
  8647. len(x.BytesSlice) != 0, // BytesSlice
  8648. len(x.Iptrslice) != 0, // Iptrslice
  8649. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  8650. len(x.WrapSliceString) != 0, // WrapSliceString
  8651. len(x.Msi64) != 0, // Msi64
  8652. len(x.Msbytes) != 0, // Msbytes
  8653. 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
  8654. len(x.SstrUi64T) != 0, // SstrUi64T
  8655. len(x.MstrUi64T) != 0, // MstrUi64T
  8656. x.AS != "", // AS
  8657. x.AI64 != 0, // AI64
  8658. x.AI16 != 0, // AI16
  8659. x.AUi64 != 0, // AUi64
  8660. len(x.ASslice) != 0, // ASslice
  8661. len(x.AI64slice) != 0, // AI64slice
  8662. len(x.AUi64slice) != 0, // AUi64slice
  8663. len(x.AF64slice) != 0, // AF64slice
  8664. len(x.AF32slice) != 0, // AF32slice
  8665. len(x.AMSU16) != 0, // AMSU16
  8666. len(x.AI64arr0) != 0, // AI64arr0
  8667. len(x.AI64slice0) != 0, // AI64slice0
  8668. len(x.AUi64sliceN) != 0, // AUi64sliceN
  8669. len(x.AMSU16N) != 0, // AMSU16N
  8670. len(x.AMSU16E) != 0, // AMSU16E
  8671. false || x.NotAnon.AS != "" || x.NotAnon.AI64 != 0 || x.NotAnon.AI16 != 0 || x.NotAnon.AUi64 != 0 || len(x.NotAnon.ASslice) != 0 || len(x.NotAnon.AI64slice) != 0 || len(x.NotAnon.AUi64slice) != 0 || len(x.NotAnon.AF64slice) != 0 || len(x.NotAnon.AF32slice) != 0 || len(x.NotAnon.AMSU16) != 0 || len(x.NotAnon.AI64arr0) != 0 || len(x.NotAnon.AI64slice0) != 0 || len(x.NotAnon.AUi64sliceN) != 0 || len(x.NotAnon.AMSU16N) != 0 || len(x.NotAnon.AMSU16E) != 0, // NotAnon
  8672. len(x.Nmap) != 0, // Nmap
  8673. len(x.Nslice) != 0, // Nslice
  8674. x.Nint64 != nil, // Nint64
  8675. len(x.Chstr) != 0, // Chstr
  8676. len(x.Mis) != 0, // Mis
  8677. len(x.Mbu64) != 0, // Mbu64
  8678. len(x.Miwu64s) != 0, // Miwu64s
  8679. len(x.Mfwss) != 0, // Mfwss
  8680. len(x.Mf32wss) != 0, // Mf32wss
  8681. len(x.Mui2wss) != 0, // Mui2wss
  8682. len(x.Msu2wss) != 0, // Msu2wss
  8683. x.Ci64 != 0, // Ci64
  8684. len(x.Swrapbytes) != 0, // Swrapbytes
  8685. len(x.Swrapuint8) != 0, // Swrapuint8
  8686. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  8687. len(x.Ui64array) != 0, // Ui64array
  8688. len(x.Ui64slicearray) != 0, // Ui64slicearray
  8689. len(x.SintfAarray) != 0, // SintfAarray
  8690. len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
  8691. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  8692. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  8693. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  8694. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  8695. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  8696. len(x.Mtsptr) != 0, // Mtsptr
  8697. len(x.Mts) != 0, // Mts
  8698. len(x.Its) != 0, // Its
  8699. x.Nteststruc != nil, // Nteststruc
  8700. }
  8701. _ = yyq2
  8702. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  8703. var yyn71 bool = x.AnonInTestStrucIntf == nil
  8704. var yyn72 bool = x.AnonInTestStrucIntf == nil
  8705. var yyn73 bool = x.AnonInTestStrucIntf == nil
  8706. var yyn74 bool = x.AnonInTestStrucIntf == nil
  8707. var yyn75 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  8708. var yyn79 bool = x.Nteststruc == nil
  8709. if yyr2 || yy2arr2 {
  8710. z.EncWriteArrayStart(77)
  8711. z.EncWriteArrayElem()
  8712. if yyq2[0] {
  8713. if z.EncBasicHandle().StringToRaw {
  8714. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  8715. } else {
  8716. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  8717. }
  8718. } else {
  8719. if z.EncBasicHandle().StringToRaw {
  8720. r.EncodeStringBytesRaw([]byte{})
  8721. } else {
  8722. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8723. }
  8724. }
  8725. z.EncWriteArrayElem()
  8726. if yyq2[1] {
  8727. r.EncodeInt(int64(x.TestStrucCommon.I64))
  8728. } else {
  8729. r.EncodeInt(0)
  8730. }
  8731. z.EncWriteArrayElem()
  8732. if yyq2[2] {
  8733. r.EncodeInt(int64(x.TestStrucCommon.I32))
  8734. } else {
  8735. r.EncodeInt(0)
  8736. }
  8737. z.EncWriteArrayElem()
  8738. if yyq2[3] {
  8739. r.EncodeInt(int64(x.TestStrucCommon.I16))
  8740. } else {
  8741. r.EncodeInt(0)
  8742. }
  8743. z.EncWriteArrayElem()
  8744. if yyq2[4] {
  8745. r.EncodeInt(int64(x.TestStrucCommon.I8))
  8746. } else {
  8747. r.EncodeInt(0)
  8748. }
  8749. z.EncWriteArrayElem()
  8750. if yyq2[5] {
  8751. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  8752. } else {
  8753. r.EncodeInt(0)
  8754. }
  8755. z.EncWriteArrayElem()
  8756. if yyq2[6] {
  8757. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  8758. } else {
  8759. r.EncodeInt(0)
  8760. }
  8761. z.EncWriteArrayElem()
  8762. if yyq2[7] {
  8763. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  8764. } else {
  8765. r.EncodeInt(0)
  8766. }
  8767. z.EncWriteArrayElem()
  8768. if yyq2[8] {
  8769. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  8770. } else {
  8771. r.EncodeInt(0)
  8772. }
  8773. z.EncWriteArrayElem()
  8774. if yyq2[9] {
  8775. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  8776. } else {
  8777. r.EncodeUint(0)
  8778. }
  8779. z.EncWriteArrayElem()
  8780. if yyq2[10] {
  8781. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  8782. } else {
  8783. r.EncodeUint(0)
  8784. }
  8785. z.EncWriteArrayElem()
  8786. if yyq2[11] {
  8787. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  8788. } else {
  8789. r.EncodeUint(0)
  8790. }
  8791. z.EncWriteArrayElem()
  8792. if yyq2[12] {
  8793. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  8794. } else {
  8795. r.EncodeUint(0)
  8796. }
  8797. z.EncWriteArrayElem()
  8798. if yyq2[13] {
  8799. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  8800. } else {
  8801. r.EncodeFloat64(0)
  8802. }
  8803. z.EncWriteArrayElem()
  8804. if yyq2[14] {
  8805. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  8806. } else {
  8807. r.EncodeFloat32(0)
  8808. }
  8809. z.EncWriteArrayElem()
  8810. if yyq2[15] {
  8811. r.EncodeBool(bool(x.TestStrucCommon.B))
  8812. } else {
  8813. r.EncodeBool(false)
  8814. }
  8815. z.EncWriteArrayElem()
  8816. if yyq2[16] {
  8817. r.EncodeUint(uint64(x.TestStrucCommon.By))
  8818. } else {
  8819. r.EncodeUint(0)
  8820. }
  8821. z.EncWriteArrayElem()
  8822. if yyq2[17] {
  8823. if x.TestStrucCommon.Sslice == nil {
  8824. r.EncodeNil()
  8825. } else {
  8826. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  8827. } // end block: if x.TestStrucCommon.Sslice slice == nil
  8828. } else {
  8829. r.EncodeNil()
  8830. }
  8831. z.EncWriteArrayElem()
  8832. if yyq2[18] {
  8833. if x.TestStrucCommon.I64slice == nil {
  8834. r.EncodeNil()
  8835. } else {
  8836. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  8837. } // end block: if x.TestStrucCommon.I64slice slice == nil
  8838. } else {
  8839. r.EncodeNil()
  8840. }
  8841. z.EncWriteArrayElem()
  8842. if yyq2[19] {
  8843. if x.TestStrucCommon.I16slice == nil {
  8844. r.EncodeNil()
  8845. } else {
  8846. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  8847. } // end block: if x.TestStrucCommon.I16slice slice == nil
  8848. } else {
  8849. r.EncodeNil()
  8850. }
  8851. z.EncWriteArrayElem()
  8852. if yyq2[20] {
  8853. if x.TestStrucCommon.Ui64slice == nil {
  8854. r.EncodeNil()
  8855. } else {
  8856. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  8857. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  8858. } else {
  8859. r.EncodeNil()
  8860. }
  8861. z.EncWriteArrayElem()
  8862. if yyq2[21] {
  8863. if x.TestStrucCommon.Ui8slice == nil {
  8864. r.EncodeNil()
  8865. } else {
  8866. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  8867. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  8868. } else {
  8869. r.EncodeNil()
  8870. }
  8871. z.EncWriteArrayElem()
  8872. if yyq2[22] {
  8873. if x.TestStrucCommon.Bslice == nil {
  8874. r.EncodeNil()
  8875. } else {
  8876. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  8877. } // end block: if x.TestStrucCommon.Bslice slice == nil
  8878. } else {
  8879. r.EncodeNil()
  8880. }
  8881. z.EncWriteArrayElem()
  8882. if yyq2[23] {
  8883. if x.TestStrucCommon.Byslice == nil {
  8884. r.EncodeNil()
  8885. } else {
  8886. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  8887. } // end block: if x.TestStrucCommon.Byslice slice == nil
  8888. } else {
  8889. r.EncodeNil()
  8890. }
  8891. z.EncWriteArrayElem()
  8892. if yyq2[24] {
  8893. if x.TestStrucCommon.BytesSlice == nil {
  8894. r.EncodeNil()
  8895. } else {
  8896. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  8897. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  8898. } else {
  8899. r.EncodeNil()
  8900. }
  8901. z.EncWriteArrayElem()
  8902. if yyq2[25] {
  8903. if x.TestStrucCommon.Iptrslice == nil {
  8904. r.EncodeNil()
  8905. } else {
  8906. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  8907. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  8908. } else {
  8909. r.EncodeNil()
  8910. }
  8911. z.EncWriteArrayElem()
  8912. if yyq2[26] {
  8913. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  8914. } else {
  8915. r.EncodeNil()
  8916. }
  8917. z.EncWriteArrayElem()
  8918. if yyq2[27] {
  8919. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  8920. } else {
  8921. r.EncodeNil()
  8922. }
  8923. z.EncWriteArrayElem()
  8924. if yyq2[28] {
  8925. if x.TestStrucCommon.Msi64 == nil {
  8926. r.EncodeNil()
  8927. } else {
  8928. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  8929. } // end block: if x.TestStrucCommon.Msi64 map == nil
  8930. } else {
  8931. r.EncodeNil()
  8932. }
  8933. z.EncWriteArrayElem()
  8934. if yyq2[29] {
  8935. if x.TestStrucCommon.Msbytes == nil {
  8936. r.EncodeNil()
  8937. } else {
  8938. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  8939. } // end block: if x.TestStrucCommon.Msbytes map == nil
  8940. } else {
  8941. r.EncodeNil()
  8942. }
  8943. z.EncWriteArrayElem()
  8944. if yyq2[30] {
  8945. yy110 := &x.TestStrucCommon.Simplef
  8946. yy110.CodecEncodeSelf(e)
  8947. } else {
  8948. r.EncodeNil()
  8949. }
  8950. z.EncWriteArrayElem()
  8951. if yyq2[31] {
  8952. if x.TestStrucCommon.SstrUi64T == nil {
  8953. r.EncodeNil()
  8954. } else {
  8955. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  8956. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  8957. } else {
  8958. r.EncodeNil()
  8959. }
  8960. z.EncWriteArrayElem()
  8961. if yyq2[32] {
  8962. if x.TestStrucCommon.MstrUi64T == nil {
  8963. r.EncodeNil()
  8964. } else {
  8965. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  8966. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  8967. } else {
  8968. r.EncodeNil()
  8969. }
  8970. z.EncWriteArrayElem()
  8971. if yyq2[33] {
  8972. if z.EncBasicHandle().StringToRaw {
  8973. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  8974. } else {
  8975. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  8976. }
  8977. } else {
  8978. if z.EncBasicHandle().StringToRaw {
  8979. r.EncodeStringBytesRaw([]byte{})
  8980. } else {
  8981. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8982. }
  8983. }
  8984. z.EncWriteArrayElem()
  8985. if yyq2[34] {
  8986. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  8987. } else {
  8988. r.EncodeInt(0)
  8989. }
  8990. z.EncWriteArrayElem()
  8991. if yyq2[35] {
  8992. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  8993. } else {
  8994. r.EncodeInt(0)
  8995. }
  8996. z.EncWriteArrayElem()
  8997. if yyq2[36] {
  8998. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  8999. } else {
  9000. r.EncodeUint(0)
  9001. }
  9002. z.EncWriteArrayElem()
  9003. if yyq2[37] {
  9004. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9005. r.EncodeNil()
  9006. } else {
  9007. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9008. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9009. } else {
  9010. r.EncodeNil()
  9011. }
  9012. z.EncWriteArrayElem()
  9013. if yyq2[38] {
  9014. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9015. r.EncodeNil()
  9016. } else {
  9017. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9018. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9019. } else {
  9020. r.EncodeNil()
  9021. }
  9022. z.EncWriteArrayElem()
  9023. if yyq2[39] {
  9024. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9025. r.EncodeNil()
  9026. } else {
  9027. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9028. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9029. } else {
  9030. r.EncodeNil()
  9031. }
  9032. z.EncWriteArrayElem()
  9033. if yyq2[40] {
  9034. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9035. r.EncodeNil()
  9036. } else {
  9037. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9038. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9039. } else {
  9040. r.EncodeNil()
  9041. }
  9042. z.EncWriteArrayElem()
  9043. if yyq2[41] {
  9044. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9045. r.EncodeNil()
  9046. } else {
  9047. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9048. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9049. } else {
  9050. r.EncodeNil()
  9051. }
  9052. z.EncWriteArrayElem()
  9053. if yyq2[42] {
  9054. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9055. r.EncodeNil()
  9056. } else {
  9057. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9058. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9059. } else {
  9060. r.EncodeNil()
  9061. }
  9062. z.EncWriteArrayElem()
  9063. if yyq2[43] {
  9064. yy124 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9065. h.encArray0int64((*[0]int64)(yy124), e)
  9066. } else {
  9067. r.EncodeNil()
  9068. }
  9069. z.EncWriteArrayElem()
  9070. if yyq2[44] {
  9071. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9072. r.EncodeNil()
  9073. } else {
  9074. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9075. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9076. } else {
  9077. r.EncodeNil()
  9078. }
  9079. z.EncWriteArrayElem()
  9080. if yyq2[45] {
  9081. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9082. r.EncodeNil()
  9083. } else {
  9084. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9085. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9086. } else {
  9087. r.EncodeNil()
  9088. }
  9089. z.EncWriteArrayElem()
  9090. if yyq2[46] {
  9091. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9092. r.EncodeNil()
  9093. } else {
  9094. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9095. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9096. } else {
  9097. r.EncodeNil()
  9098. }
  9099. z.EncWriteArrayElem()
  9100. if yyq2[47] {
  9101. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  9102. r.EncodeNil()
  9103. } else {
  9104. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9105. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  9106. } else {
  9107. r.EncodeNil()
  9108. }
  9109. z.EncWriteArrayElem()
  9110. if yyq2[48] {
  9111. yy130 := &x.TestStrucCommon.NotAnon
  9112. yy130.CodecEncodeSelf(e)
  9113. } else {
  9114. r.EncodeNil()
  9115. }
  9116. z.EncWriteArrayElem()
  9117. if yyq2[49] {
  9118. if x.TestStrucCommon.Nmap == nil {
  9119. r.EncodeNil()
  9120. } else {
  9121. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9122. } // end block: if x.TestStrucCommon.Nmap map == nil
  9123. } else {
  9124. r.EncodeNil()
  9125. }
  9126. z.EncWriteArrayElem()
  9127. if yyq2[50] {
  9128. if x.TestStrucCommon.Nslice == nil {
  9129. r.EncodeNil()
  9130. } else {
  9131. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9132. } // end block: if x.TestStrucCommon.Nslice slice == nil
  9133. } else {
  9134. r.EncodeNil()
  9135. }
  9136. if yyn54 {
  9137. z.EncWriteArrayElem()
  9138. r.EncodeNil()
  9139. } else {
  9140. z.EncWriteArrayElem()
  9141. if yyq2[51] {
  9142. yy134 := *x.TestStrucCommon.Nint64
  9143. r.EncodeInt(int64(yy134))
  9144. } else {
  9145. r.EncodeNil()
  9146. }
  9147. }
  9148. z.EncWriteArrayElem()
  9149. if yyq2[52] {
  9150. h.encChanstring((chan string)(x.Chstr), e)
  9151. } else {
  9152. r.EncodeNil()
  9153. }
  9154. z.EncWriteArrayElem()
  9155. if yyq2[53] {
  9156. if x.Mis == nil {
  9157. r.EncodeNil()
  9158. } else {
  9159. z.F.EncMapIntStringV(x.Mis, e)
  9160. } // end block: if x.Mis map == nil
  9161. } else {
  9162. r.EncodeNil()
  9163. }
  9164. z.EncWriteArrayElem()
  9165. if yyq2[54] {
  9166. if x.Mbu64 == nil {
  9167. r.EncodeNil()
  9168. } else {
  9169. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9170. } // end block: if x.Mbu64 map == nil
  9171. } else {
  9172. r.EncodeNil()
  9173. }
  9174. z.EncWriteArrayElem()
  9175. if yyq2[55] {
  9176. if x.Miwu64s == nil {
  9177. r.EncodeNil()
  9178. } else {
  9179. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  9180. } // end block: if x.Miwu64s map == nil
  9181. } else {
  9182. r.EncodeNil()
  9183. }
  9184. z.EncWriteArrayElem()
  9185. if yyq2[56] {
  9186. if x.Mfwss == nil {
  9187. r.EncodeNil()
  9188. } else {
  9189. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  9190. } // end block: if x.Mfwss map == nil
  9191. } else {
  9192. r.EncodeNil()
  9193. }
  9194. z.EncWriteArrayElem()
  9195. if yyq2[57] {
  9196. if x.Mf32wss == nil {
  9197. r.EncodeNil()
  9198. } else {
  9199. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9200. } // end block: if x.Mf32wss map == nil
  9201. } else {
  9202. r.EncodeNil()
  9203. }
  9204. z.EncWriteArrayElem()
  9205. if yyq2[58] {
  9206. if x.Mui2wss == nil {
  9207. r.EncodeNil()
  9208. } else {
  9209. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9210. } // end block: if x.Mui2wss map == nil
  9211. } else {
  9212. r.EncodeNil()
  9213. }
  9214. z.EncWriteArrayElem()
  9215. if yyq2[59] {
  9216. if x.Msu2wss == nil {
  9217. r.EncodeNil()
  9218. } else {
  9219. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9220. } // end block: if x.Msu2wss map == nil
  9221. } else {
  9222. r.EncodeNil()
  9223. }
  9224. z.EncWriteArrayElem()
  9225. if yyq2[60] {
  9226. x.Ci64.CodecEncodeSelf(e)
  9227. } else {
  9228. r.EncodeInt(0)
  9229. }
  9230. z.EncWriteArrayElem()
  9231. if yyq2[61] {
  9232. if x.Swrapbytes == nil {
  9233. r.EncodeNil()
  9234. } else {
  9235. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9236. } // end block: if x.Swrapbytes slice == nil
  9237. } else {
  9238. r.EncodeNil()
  9239. }
  9240. z.EncWriteArrayElem()
  9241. if yyq2[62] {
  9242. if x.Swrapuint8 == nil {
  9243. r.EncodeNil()
  9244. } else {
  9245. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9246. } // end block: if x.Swrapuint8 slice == nil
  9247. } else {
  9248. r.EncodeNil()
  9249. }
  9250. z.EncWriteArrayElem()
  9251. if yyq2[63] {
  9252. yy147 := &x.ArrStrUi64T
  9253. h.encArray4stringUint64T((*[4]stringUint64T)(yy147), e)
  9254. } else {
  9255. r.EncodeNil()
  9256. }
  9257. z.EncWriteArrayElem()
  9258. if yyq2[64] {
  9259. yy149 := &x.Ui64array
  9260. h.encArray4uint64((*[4]uint64)(yy149), e)
  9261. } else {
  9262. r.EncodeNil()
  9263. }
  9264. z.EncWriteArrayElem()
  9265. if yyq2[65] {
  9266. if x.Ui64slicearray == nil {
  9267. r.EncodeNil()
  9268. } else {
  9269. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9270. } // end block: if x.Ui64slicearray slice == nil
  9271. } else {
  9272. r.EncodeNil()
  9273. }
  9274. z.EncWriteArrayElem()
  9275. if yyq2[66] {
  9276. if x.SintfAarray == nil {
  9277. r.EncodeNil()
  9278. } else {
  9279. z.F.EncSliceIntfV(x.SintfAarray, e)
  9280. } // end block: if x.SintfAarray slice == nil
  9281. } else {
  9282. r.EncodeNil()
  9283. }
  9284. z.EncWriteArrayElem()
  9285. if yyq2[67] {
  9286. if x.MstrUi64TSelf == nil {
  9287. r.EncodeNil()
  9288. } else {
  9289. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  9290. } // end block: if x.MstrUi64TSelf map == nil
  9291. } else {
  9292. r.EncodeNil()
  9293. }
  9294. if yyn71 {
  9295. z.EncWriteArrayElem()
  9296. r.EncodeNil()
  9297. } else {
  9298. z.EncWriteArrayElem()
  9299. if yyq2[68] {
  9300. if x.AnonInTestStrucIntf.Islice == nil {
  9301. r.EncodeNil()
  9302. } else {
  9303. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9304. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  9305. } else {
  9306. r.EncodeNil()
  9307. }
  9308. }
  9309. if yyn72 {
  9310. z.EncWriteArrayElem()
  9311. r.EncodeNil()
  9312. } else {
  9313. z.EncWriteArrayElem()
  9314. if yyq2[69] {
  9315. if x.AnonInTestStrucIntf.Ms == nil {
  9316. r.EncodeNil()
  9317. } else {
  9318. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9319. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  9320. } else {
  9321. r.EncodeNil()
  9322. }
  9323. }
  9324. if yyn73 {
  9325. z.EncWriteArrayElem()
  9326. r.EncodeNil()
  9327. } else {
  9328. z.EncWriteArrayElem()
  9329. if yyq2[70] {
  9330. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9331. } else {
  9332. r.EncodeNil()
  9333. }
  9334. }
  9335. if yyn74 {
  9336. z.EncWriteArrayElem()
  9337. r.EncodeNil()
  9338. } else {
  9339. z.EncWriteArrayElem()
  9340. if yyq2[71] {
  9341. if !z.EncBasicHandle().TimeNotBuiltin {
  9342. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9343. } else if yyxt157 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt157 != nil {
  9344. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt157)
  9345. } else if z.EncBinary() {
  9346. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9347. } else if !z.EncBinary() && z.IsJSONHandle() {
  9348. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9349. } else {
  9350. z.EncFallback(x.AnonInTestStrucIntf.T)
  9351. }
  9352. } else {
  9353. r.EncodeNil()
  9354. }
  9355. }
  9356. if yyn75 {
  9357. z.EncWriteArrayElem()
  9358. r.EncodeNil()
  9359. } else {
  9360. z.EncWriteArrayElem()
  9361. if yyq2[72] {
  9362. yy158 := *x.AnonInTestStrucIntf.Tptr
  9363. if !z.EncBasicHandle().TimeNotBuiltin {
  9364. r.EncodeTime(yy158)
  9365. } else if yyxt159 := z.Extension(z.I2Rtid(yy158)); yyxt159 != nil {
  9366. z.EncExtension(yy158, yyxt159)
  9367. } else if z.EncBinary() {
  9368. z.EncBinaryMarshal(yy158)
  9369. } else if !z.EncBinary() && z.IsJSONHandle() {
  9370. z.EncJSONMarshal(yy158)
  9371. } else {
  9372. z.EncFallback(yy158)
  9373. }
  9374. } else {
  9375. r.EncodeNil()
  9376. }
  9377. }
  9378. z.EncWriteArrayElem()
  9379. if yyq2[73] {
  9380. if x.Mtsptr == nil {
  9381. r.EncodeNil()
  9382. } else {
  9383. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9384. } // end block: if x.Mtsptr map == nil
  9385. } else {
  9386. r.EncodeNil()
  9387. }
  9388. z.EncWriteArrayElem()
  9389. if yyq2[74] {
  9390. if x.Mts == nil {
  9391. r.EncodeNil()
  9392. } else {
  9393. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9394. } // end block: if x.Mts map == nil
  9395. } else {
  9396. r.EncodeNil()
  9397. }
  9398. z.EncWriteArrayElem()
  9399. if yyq2[75] {
  9400. if x.Its == nil {
  9401. r.EncodeNil()
  9402. } else {
  9403. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9404. } // end block: if x.Its slice == nil
  9405. } else {
  9406. r.EncodeNil()
  9407. }
  9408. if yyn79 {
  9409. z.EncWriteArrayElem()
  9410. r.EncodeNil()
  9411. } else {
  9412. z.EncWriteArrayElem()
  9413. if yyq2[76] {
  9414. x.Nteststruc.CodecEncodeSelf(e)
  9415. } else {
  9416. r.EncodeNil()
  9417. }
  9418. }
  9419. z.EncWriteArrayEnd()
  9420. } else {
  9421. var yynn2 int
  9422. for _, b := range yyq2 {
  9423. if b {
  9424. yynn2++
  9425. }
  9426. }
  9427. z.EncWriteMapStart(yynn2)
  9428. yynn2 = 0
  9429. if yyq2[0] {
  9430. z.EncWriteMapElemKey()
  9431. if z.IsJSONHandle() {
  9432. z.WriteStr("\"S\"")
  9433. } else {
  9434. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  9435. }
  9436. z.EncWriteMapElemValue()
  9437. if z.EncBasicHandle().StringToRaw {
  9438. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  9439. } else {
  9440. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  9441. }
  9442. }
  9443. if yyq2[1] {
  9444. z.EncWriteMapElemKey()
  9445. if z.IsJSONHandle() {
  9446. z.WriteStr("\"I64\"")
  9447. } else {
  9448. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  9449. }
  9450. z.EncWriteMapElemValue()
  9451. r.EncodeInt(int64(x.TestStrucCommon.I64))
  9452. }
  9453. if yyq2[2] {
  9454. z.EncWriteMapElemKey()
  9455. if z.IsJSONHandle() {
  9456. z.WriteStr("\"I32\"")
  9457. } else {
  9458. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  9459. }
  9460. z.EncWriteMapElemValue()
  9461. r.EncodeInt(int64(x.TestStrucCommon.I32))
  9462. }
  9463. if yyq2[3] {
  9464. z.EncWriteMapElemKey()
  9465. if z.IsJSONHandle() {
  9466. z.WriteStr("\"I16\"")
  9467. } else {
  9468. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  9469. }
  9470. z.EncWriteMapElemValue()
  9471. r.EncodeInt(int64(x.TestStrucCommon.I16))
  9472. }
  9473. if yyq2[4] {
  9474. z.EncWriteMapElemKey()
  9475. if z.IsJSONHandle() {
  9476. z.WriteStr("\"I8\"")
  9477. } else {
  9478. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  9479. }
  9480. z.EncWriteMapElemValue()
  9481. r.EncodeInt(int64(x.TestStrucCommon.I8))
  9482. }
  9483. if yyq2[5] {
  9484. z.EncWriteMapElemKey()
  9485. if z.IsJSONHandle() {
  9486. z.WriteStr("\"I64n\"")
  9487. } else {
  9488. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  9489. }
  9490. z.EncWriteMapElemValue()
  9491. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  9492. }
  9493. if yyq2[6] {
  9494. z.EncWriteMapElemKey()
  9495. if z.IsJSONHandle() {
  9496. z.WriteStr("\"I32n\"")
  9497. } else {
  9498. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  9499. }
  9500. z.EncWriteMapElemValue()
  9501. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  9502. }
  9503. if yyq2[7] {
  9504. z.EncWriteMapElemKey()
  9505. if z.IsJSONHandle() {
  9506. z.WriteStr("\"I16n\"")
  9507. } else {
  9508. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  9509. }
  9510. z.EncWriteMapElemValue()
  9511. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  9512. }
  9513. if yyq2[8] {
  9514. z.EncWriteMapElemKey()
  9515. if z.IsJSONHandle() {
  9516. z.WriteStr("\"I8n\"")
  9517. } else {
  9518. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  9519. }
  9520. z.EncWriteMapElemValue()
  9521. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  9522. }
  9523. if yyq2[9] {
  9524. z.EncWriteMapElemKey()
  9525. if z.IsJSONHandle() {
  9526. z.WriteStr("\"Ui64\"")
  9527. } else {
  9528. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  9529. }
  9530. z.EncWriteMapElemValue()
  9531. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  9532. }
  9533. if yyq2[10] {
  9534. z.EncWriteMapElemKey()
  9535. if z.IsJSONHandle() {
  9536. z.WriteStr("\"Ui32\"")
  9537. } else {
  9538. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  9539. }
  9540. z.EncWriteMapElemValue()
  9541. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  9542. }
  9543. if yyq2[11] {
  9544. z.EncWriteMapElemKey()
  9545. if z.IsJSONHandle() {
  9546. z.WriteStr("\"Ui16\"")
  9547. } else {
  9548. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  9549. }
  9550. z.EncWriteMapElemValue()
  9551. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  9552. }
  9553. if yyq2[12] {
  9554. z.EncWriteMapElemKey()
  9555. if z.IsJSONHandle() {
  9556. z.WriteStr("\"Ui8\"")
  9557. } else {
  9558. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9559. }
  9560. z.EncWriteMapElemValue()
  9561. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9562. }
  9563. if yyq2[13] {
  9564. z.EncWriteMapElemKey()
  9565. if z.IsJSONHandle() {
  9566. z.WriteStr("\"F64\"")
  9567. } else {
  9568. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  9569. }
  9570. z.EncWriteMapElemValue()
  9571. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9572. }
  9573. if yyq2[14] {
  9574. z.EncWriteMapElemKey()
  9575. if z.IsJSONHandle() {
  9576. z.WriteStr("\"F32\"")
  9577. } else {
  9578. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  9579. }
  9580. z.EncWriteMapElemValue()
  9581. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9582. }
  9583. if yyq2[15] {
  9584. z.EncWriteMapElemKey()
  9585. if z.IsJSONHandle() {
  9586. z.WriteStr("\"B\"")
  9587. } else {
  9588. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9589. }
  9590. z.EncWriteMapElemValue()
  9591. r.EncodeBool(bool(x.TestStrucCommon.B))
  9592. }
  9593. if yyq2[16] {
  9594. z.EncWriteMapElemKey()
  9595. if z.IsJSONHandle() {
  9596. z.WriteStr("\"By\"")
  9597. } else {
  9598. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  9599. }
  9600. z.EncWriteMapElemValue()
  9601. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9602. }
  9603. if yyq2[17] {
  9604. z.EncWriteMapElemKey()
  9605. if z.IsJSONHandle() {
  9606. z.WriteStr("\"Sslice\"")
  9607. } else {
  9608. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  9609. }
  9610. z.EncWriteMapElemValue()
  9611. if x.TestStrucCommon.Sslice == nil {
  9612. r.EncodeNil()
  9613. } else {
  9614. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9615. } // end block: if x.TestStrucCommon.Sslice slice == nil
  9616. }
  9617. if yyq2[18] {
  9618. z.EncWriteMapElemKey()
  9619. if z.IsJSONHandle() {
  9620. z.WriteStr("\"I64slice\"")
  9621. } else {
  9622. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  9623. }
  9624. z.EncWriteMapElemValue()
  9625. if x.TestStrucCommon.I64slice == nil {
  9626. r.EncodeNil()
  9627. } else {
  9628. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9629. } // end block: if x.TestStrucCommon.I64slice slice == nil
  9630. }
  9631. if yyq2[19] {
  9632. z.EncWriteMapElemKey()
  9633. if z.IsJSONHandle() {
  9634. z.WriteStr("\"I16slice\"")
  9635. } else {
  9636. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  9637. }
  9638. z.EncWriteMapElemValue()
  9639. if x.TestStrucCommon.I16slice == nil {
  9640. r.EncodeNil()
  9641. } else {
  9642. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9643. } // end block: if x.TestStrucCommon.I16slice slice == nil
  9644. }
  9645. if yyq2[20] {
  9646. z.EncWriteMapElemKey()
  9647. if z.IsJSONHandle() {
  9648. z.WriteStr("\"Ui64slice\"")
  9649. } else {
  9650. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  9651. }
  9652. z.EncWriteMapElemValue()
  9653. if x.TestStrucCommon.Ui64slice == nil {
  9654. r.EncodeNil()
  9655. } else {
  9656. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9657. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  9658. }
  9659. if yyq2[21] {
  9660. z.EncWriteMapElemKey()
  9661. if z.IsJSONHandle() {
  9662. z.WriteStr("\"Ui8slice\"")
  9663. } else {
  9664. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  9665. }
  9666. z.EncWriteMapElemValue()
  9667. if x.TestStrucCommon.Ui8slice == nil {
  9668. r.EncodeNil()
  9669. } else {
  9670. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9671. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  9672. }
  9673. if yyq2[22] {
  9674. z.EncWriteMapElemKey()
  9675. if z.IsJSONHandle() {
  9676. z.WriteStr("\"Bslice\"")
  9677. } else {
  9678. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  9679. }
  9680. z.EncWriteMapElemValue()
  9681. if x.TestStrucCommon.Bslice == nil {
  9682. r.EncodeNil()
  9683. } else {
  9684. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9685. } // end block: if x.TestStrucCommon.Bslice slice == nil
  9686. }
  9687. if yyq2[23] {
  9688. z.EncWriteMapElemKey()
  9689. if z.IsJSONHandle() {
  9690. z.WriteStr("\"Byslice\"")
  9691. } else {
  9692. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  9693. }
  9694. z.EncWriteMapElemValue()
  9695. if x.TestStrucCommon.Byslice == nil {
  9696. r.EncodeNil()
  9697. } else {
  9698. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9699. } // end block: if x.TestStrucCommon.Byslice slice == nil
  9700. }
  9701. if yyq2[24] {
  9702. z.EncWriteMapElemKey()
  9703. if z.IsJSONHandle() {
  9704. z.WriteStr("\"BytesSlice\"")
  9705. } else {
  9706. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  9707. }
  9708. z.EncWriteMapElemValue()
  9709. if x.TestStrucCommon.BytesSlice == nil {
  9710. r.EncodeNil()
  9711. } else {
  9712. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9713. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  9714. }
  9715. if yyq2[25] {
  9716. z.EncWriteMapElemKey()
  9717. if z.IsJSONHandle() {
  9718. z.WriteStr("\"Iptrslice\"")
  9719. } else {
  9720. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  9721. }
  9722. z.EncWriteMapElemValue()
  9723. if x.TestStrucCommon.Iptrslice == nil {
  9724. r.EncodeNil()
  9725. } else {
  9726. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9727. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  9728. }
  9729. if yyq2[26] {
  9730. z.EncWriteMapElemKey()
  9731. if z.IsJSONHandle() {
  9732. z.WriteStr("\"WrapSliceInt64\"")
  9733. } else {
  9734. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  9735. }
  9736. z.EncWriteMapElemValue()
  9737. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9738. }
  9739. if yyq2[27] {
  9740. z.EncWriteMapElemKey()
  9741. if z.IsJSONHandle() {
  9742. z.WriteStr("\"WrapSliceString\"")
  9743. } else {
  9744. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  9745. }
  9746. z.EncWriteMapElemValue()
  9747. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9748. }
  9749. if yyq2[28] {
  9750. z.EncWriteMapElemKey()
  9751. if z.IsJSONHandle() {
  9752. z.WriteStr("\"Msi64\"")
  9753. } else {
  9754. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  9755. }
  9756. z.EncWriteMapElemValue()
  9757. if x.TestStrucCommon.Msi64 == nil {
  9758. r.EncodeNil()
  9759. } else {
  9760. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9761. } // end block: if x.TestStrucCommon.Msi64 map == nil
  9762. }
  9763. if yyq2[29] {
  9764. z.EncWriteMapElemKey()
  9765. if z.IsJSONHandle() {
  9766. z.WriteStr("\"Msbytes\"")
  9767. } else {
  9768. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  9769. }
  9770. z.EncWriteMapElemValue()
  9771. if x.TestStrucCommon.Msbytes == nil {
  9772. r.EncodeNil()
  9773. } else {
  9774. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9775. } // end block: if x.TestStrucCommon.Msbytes map == nil
  9776. }
  9777. if yyq2[30] {
  9778. z.EncWriteMapElemKey()
  9779. if z.IsJSONHandle() {
  9780. z.WriteStr("\"Simplef\"")
  9781. } else {
  9782. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  9783. }
  9784. z.EncWriteMapElemValue()
  9785. yy194 := &x.TestStrucCommon.Simplef
  9786. yy194.CodecEncodeSelf(e)
  9787. }
  9788. if yyq2[31] {
  9789. z.EncWriteMapElemKey()
  9790. if z.IsJSONHandle() {
  9791. z.WriteStr("\"SstrUi64T\"")
  9792. } else {
  9793. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  9794. }
  9795. z.EncWriteMapElemValue()
  9796. if x.TestStrucCommon.SstrUi64T == nil {
  9797. r.EncodeNil()
  9798. } else {
  9799. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9800. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  9801. }
  9802. if yyq2[32] {
  9803. z.EncWriteMapElemKey()
  9804. if z.IsJSONHandle() {
  9805. z.WriteStr("\"MstrUi64T\"")
  9806. } else {
  9807. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  9808. }
  9809. z.EncWriteMapElemValue()
  9810. if x.TestStrucCommon.MstrUi64T == nil {
  9811. r.EncodeNil()
  9812. } else {
  9813. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9814. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  9815. }
  9816. if yyq2[33] {
  9817. z.EncWriteMapElemKey()
  9818. if z.IsJSONHandle() {
  9819. z.WriteStr("\"AS\"")
  9820. } else {
  9821. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  9822. }
  9823. z.EncWriteMapElemValue()
  9824. if z.EncBasicHandle().StringToRaw {
  9825. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9826. } else {
  9827. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9828. }
  9829. }
  9830. if yyq2[34] {
  9831. z.EncWriteMapElemKey()
  9832. if z.IsJSONHandle() {
  9833. z.WriteStr("\"AI64\"")
  9834. } else {
  9835. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  9836. }
  9837. z.EncWriteMapElemValue()
  9838. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9839. }
  9840. if yyq2[35] {
  9841. z.EncWriteMapElemKey()
  9842. if z.IsJSONHandle() {
  9843. z.WriteStr("\"AI16\"")
  9844. } else {
  9845. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  9846. }
  9847. z.EncWriteMapElemValue()
  9848. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9849. }
  9850. if yyq2[36] {
  9851. z.EncWriteMapElemKey()
  9852. if z.IsJSONHandle() {
  9853. z.WriteStr("\"AUi64\"")
  9854. } else {
  9855. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  9856. }
  9857. z.EncWriteMapElemValue()
  9858. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9859. }
  9860. if yyq2[37] {
  9861. z.EncWriteMapElemKey()
  9862. if z.IsJSONHandle() {
  9863. z.WriteStr("\"ASslice\"")
  9864. } else {
  9865. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  9866. }
  9867. z.EncWriteMapElemValue()
  9868. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9869. r.EncodeNil()
  9870. } else {
  9871. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9872. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9873. }
  9874. if yyq2[38] {
  9875. z.EncWriteMapElemKey()
  9876. if z.IsJSONHandle() {
  9877. z.WriteStr("\"AI64slice\"")
  9878. } else {
  9879. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  9880. }
  9881. z.EncWriteMapElemValue()
  9882. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9883. r.EncodeNil()
  9884. } else {
  9885. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9886. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9887. }
  9888. if yyq2[39] {
  9889. z.EncWriteMapElemKey()
  9890. if z.IsJSONHandle() {
  9891. z.WriteStr("\"AUi64slice\"")
  9892. } else {
  9893. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  9894. }
  9895. z.EncWriteMapElemValue()
  9896. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9897. r.EncodeNil()
  9898. } else {
  9899. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9900. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9901. }
  9902. if yyq2[40] {
  9903. z.EncWriteMapElemKey()
  9904. if z.IsJSONHandle() {
  9905. z.WriteStr("\"AF64slice\"")
  9906. } else {
  9907. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  9908. }
  9909. z.EncWriteMapElemValue()
  9910. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9911. r.EncodeNil()
  9912. } else {
  9913. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9914. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9915. }
  9916. if yyq2[41] {
  9917. z.EncWriteMapElemKey()
  9918. if z.IsJSONHandle() {
  9919. z.WriteStr("\"AF32slice\"")
  9920. } else {
  9921. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  9922. }
  9923. z.EncWriteMapElemValue()
  9924. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9925. r.EncodeNil()
  9926. } else {
  9927. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9928. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9929. }
  9930. if yyq2[42] {
  9931. z.EncWriteMapElemKey()
  9932. if z.IsJSONHandle() {
  9933. z.WriteStr("\"AMSU16\"")
  9934. } else {
  9935. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  9936. }
  9937. z.EncWriteMapElemValue()
  9938. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9939. r.EncodeNil()
  9940. } else {
  9941. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9942. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9943. }
  9944. if yyq2[43] {
  9945. z.EncWriteMapElemKey()
  9946. if z.IsJSONHandle() {
  9947. z.WriteStr("\"AI64arr0\"")
  9948. } else {
  9949. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  9950. }
  9951. z.EncWriteMapElemValue()
  9952. yy208 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9953. h.encArray0int64((*[0]int64)(yy208), e)
  9954. }
  9955. if yyq2[44] {
  9956. z.EncWriteMapElemKey()
  9957. if z.IsJSONHandle() {
  9958. z.WriteStr("\"AI64slice0\"")
  9959. } else {
  9960. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  9961. }
  9962. z.EncWriteMapElemValue()
  9963. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9964. r.EncodeNil()
  9965. } else {
  9966. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9967. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9968. }
  9969. if yyq2[45] {
  9970. z.EncWriteMapElemKey()
  9971. if z.IsJSONHandle() {
  9972. z.WriteStr("\"AUi64sliceN\"")
  9973. } else {
  9974. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  9975. }
  9976. z.EncWriteMapElemValue()
  9977. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9978. r.EncodeNil()
  9979. } else {
  9980. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9981. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9982. }
  9983. if yyq2[46] {
  9984. z.EncWriteMapElemKey()
  9985. if z.IsJSONHandle() {
  9986. z.WriteStr("\"AMSU16N\"")
  9987. } else {
  9988. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  9989. }
  9990. z.EncWriteMapElemValue()
  9991. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9992. r.EncodeNil()
  9993. } else {
  9994. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9995. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9996. }
  9997. if yyq2[47] {
  9998. z.EncWriteMapElemKey()
  9999. if z.IsJSONHandle() {
  10000. z.WriteStr("\"AMSU16E\"")
  10001. } else {
  10002. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  10003. }
  10004. z.EncWriteMapElemValue()
  10005. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  10006. r.EncodeNil()
  10007. } else {
  10008. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  10009. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  10010. }
  10011. if yyq2[48] {
  10012. z.EncWriteMapElemKey()
  10013. if z.IsJSONHandle() {
  10014. z.WriteStr("\"NotAnon\"")
  10015. } else {
  10016. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  10017. }
  10018. z.EncWriteMapElemValue()
  10019. yy214 := &x.TestStrucCommon.NotAnon
  10020. yy214.CodecEncodeSelf(e)
  10021. }
  10022. if yyq2[49] {
  10023. z.EncWriteMapElemKey()
  10024. if z.IsJSONHandle() {
  10025. z.WriteStr("\"Nmap\"")
  10026. } else {
  10027. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  10028. }
  10029. z.EncWriteMapElemValue()
  10030. if x.TestStrucCommon.Nmap == nil {
  10031. r.EncodeNil()
  10032. } else {
  10033. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  10034. } // end block: if x.TestStrucCommon.Nmap map == nil
  10035. }
  10036. if yyq2[50] {
  10037. z.EncWriteMapElemKey()
  10038. if z.IsJSONHandle() {
  10039. z.WriteStr("\"Nslice\"")
  10040. } else {
  10041. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  10042. }
  10043. z.EncWriteMapElemValue()
  10044. if x.TestStrucCommon.Nslice == nil {
  10045. r.EncodeNil()
  10046. } else {
  10047. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  10048. } // end block: if x.TestStrucCommon.Nslice slice == nil
  10049. }
  10050. if yyq2[51] {
  10051. z.EncWriteMapElemKey()
  10052. if z.IsJSONHandle() {
  10053. z.WriteStr("\"Nint64\"")
  10054. } else {
  10055. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  10056. }
  10057. z.EncWriteMapElemValue()
  10058. if yyn54 {
  10059. r.EncodeNil()
  10060. } else {
  10061. yy218 := *x.TestStrucCommon.Nint64
  10062. r.EncodeInt(int64(yy218))
  10063. }
  10064. }
  10065. if yyq2[52] {
  10066. z.EncWriteMapElemKey()
  10067. if z.IsJSONHandle() {
  10068. z.WriteStr("\"Chstr\"")
  10069. } else {
  10070. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  10071. }
  10072. z.EncWriteMapElemValue()
  10073. h.encChanstring((chan string)(x.Chstr), e)
  10074. }
  10075. if yyq2[53] {
  10076. z.EncWriteMapElemKey()
  10077. if z.IsJSONHandle() {
  10078. z.WriteStr("\"Mis\"")
  10079. } else {
  10080. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  10081. }
  10082. z.EncWriteMapElemValue()
  10083. if x.Mis == nil {
  10084. r.EncodeNil()
  10085. } else {
  10086. z.F.EncMapIntStringV(x.Mis, e)
  10087. } // end block: if x.Mis map == nil
  10088. }
  10089. if yyq2[54] {
  10090. z.EncWriteMapElemKey()
  10091. if z.IsJSONHandle() {
  10092. z.WriteStr("\"Mbu64\"")
  10093. } else {
  10094. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  10095. }
  10096. z.EncWriteMapElemValue()
  10097. if x.Mbu64 == nil {
  10098. r.EncodeNil()
  10099. } else {
  10100. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  10101. } // end block: if x.Mbu64 map == nil
  10102. }
  10103. if yyq2[55] {
  10104. z.EncWriteMapElemKey()
  10105. if z.IsJSONHandle() {
  10106. z.WriteStr("\"Miwu64s\"")
  10107. } else {
  10108. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  10109. }
  10110. z.EncWriteMapElemValue()
  10111. if x.Miwu64s == nil {
  10112. r.EncodeNil()
  10113. } else {
  10114. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  10115. } // end block: if x.Miwu64s map == nil
  10116. }
  10117. if yyq2[56] {
  10118. z.EncWriteMapElemKey()
  10119. if z.IsJSONHandle() {
  10120. z.WriteStr("\"Mfwss\"")
  10121. } else {
  10122. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  10123. }
  10124. z.EncWriteMapElemValue()
  10125. if x.Mfwss == nil {
  10126. r.EncodeNil()
  10127. } else {
  10128. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  10129. } // end block: if x.Mfwss map == nil
  10130. }
  10131. if yyq2[57] {
  10132. z.EncWriteMapElemKey()
  10133. if z.IsJSONHandle() {
  10134. z.WriteStr("\"Mf32wss\"")
  10135. } else {
  10136. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  10137. }
  10138. z.EncWriteMapElemValue()
  10139. if x.Mf32wss == nil {
  10140. r.EncodeNil()
  10141. } else {
  10142. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  10143. } // end block: if x.Mf32wss map == nil
  10144. }
  10145. if yyq2[58] {
  10146. z.EncWriteMapElemKey()
  10147. if z.IsJSONHandle() {
  10148. z.WriteStr("\"Mui2wss\"")
  10149. } else {
  10150. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  10151. }
  10152. z.EncWriteMapElemValue()
  10153. if x.Mui2wss == nil {
  10154. r.EncodeNil()
  10155. } else {
  10156. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  10157. } // end block: if x.Mui2wss map == nil
  10158. }
  10159. if yyq2[59] {
  10160. z.EncWriteMapElemKey()
  10161. if z.IsJSONHandle() {
  10162. z.WriteStr("\"Msu2wss\"")
  10163. } else {
  10164. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  10165. }
  10166. z.EncWriteMapElemValue()
  10167. if x.Msu2wss == nil {
  10168. r.EncodeNil()
  10169. } else {
  10170. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  10171. } // end block: if x.Msu2wss map == nil
  10172. }
  10173. if yyq2[60] {
  10174. z.EncWriteMapElemKey()
  10175. if z.IsJSONHandle() {
  10176. z.WriteStr("\"Ci64\"")
  10177. } else {
  10178. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  10179. }
  10180. z.EncWriteMapElemValue()
  10181. x.Ci64.CodecEncodeSelf(e)
  10182. }
  10183. if yyq2[61] {
  10184. z.EncWriteMapElemKey()
  10185. if z.IsJSONHandle() {
  10186. z.WriteStr("\"Swrapbytes\"")
  10187. } else {
  10188. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  10189. }
  10190. z.EncWriteMapElemValue()
  10191. if x.Swrapbytes == nil {
  10192. r.EncodeNil()
  10193. } else {
  10194. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  10195. } // end block: if x.Swrapbytes slice == nil
  10196. }
  10197. if yyq2[62] {
  10198. z.EncWriteMapElemKey()
  10199. if z.IsJSONHandle() {
  10200. z.WriteStr("\"Swrapuint8\"")
  10201. } else {
  10202. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  10203. }
  10204. z.EncWriteMapElemValue()
  10205. if x.Swrapuint8 == nil {
  10206. r.EncodeNil()
  10207. } else {
  10208. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  10209. } // end block: if x.Swrapuint8 slice == nil
  10210. }
  10211. if yyq2[63] {
  10212. z.EncWriteMapElemKey()
  10213. if z.IsJSONHandle() {
  10214. z.WriteStr("\"ArrStrUi64T\"")
  10215. } else {
  10216. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  10217. }
  10218. z.EncWriteMapElemValue()
  10219. yy231 := &x.ArrStrUi64T
  10220. h.encArray4stringUint64T((*[4]stringUint64T)(yy231), e)
  10221. }
  10222. if yyq2[64] {
  10223. z.EncWriteMapElemKey()
  10224. if z.IsJSONHandle() {
  10225. z.WriteStr("\"Ui64array\"")
  10226. } else {
  10227. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  10228. }
  10229. z.EncWriteMapElemValue()
  10230. yy233 := &x.Ui64array
  10231. h.encArray4uint64((*[4]uint64)(yy233), e)
  10232. }
  10233. if yyq2[65] {
  10234. z.EncWriteMapElemKey()
  10235. if z.IsJSONHandle() {
  10236. z.WriteStr("\"Ui64slicearray\"")
  10237. } else {
  10238. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  10239. }
  10240. z.EncWriteMapElemValue()
  10241. if x.Ui64slicearray == nil {
  10242. r.EncodeNil()
  10243. } else {
  10244. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  10245. } // end block: if x.Ui64slicearray slice == nil
  10246. }
  10247. if yyq2[66] {
  10248. z.EncWriteMapElemKey()
  10249. if z.IsJSONHandle() {
  10250. z.WriteStr("\"SintfAarray\"")
  10251. } else {
  10252. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  10253. }
  10254. z.EncWriteMapElemValue()
  10255. if x.SintfAarray == nil {
  10256. r.EncodeNil()
  10257. } else {
  10258. z.F.EncSliceIntfV(x.SintfAarray, e)
  10259. } // end block: if x.SintfAarray slice == nil
  10260. }
  10261. if yyq2[67] {
  10262. z.EncWriteMapElemKey()
  10263. if z.IsJSONHandle() {
  10264. z.WriteStr("\"MstrUi64TSelf\"")
  10265. } else {
  10266. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64TSelf`)
  10267. }
  10268. z.EncWriteMapElemValue()
  10269. if x.MstrUi64TSelf == nil {
  10270. r.EncodeNil()
  10271. } else {
  10272. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  10273. } // end block: if x.MstrUi64TSelf map == nil
  10274. }
  10275. if yyq2[68] {
  10276. z.EncWriteMapElemKey()
  10277. if z.IsJSONHandle() {
  10278. z.WriteStr("\"Islice\"")
  10279. } else {
  10280. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  10281. }
  10282. z.EncWriteMapElemValue()
  10283. if yyn71 {
  10284. r.EncodeNil()
  10285. } else {
  10286. if x.AnonInTestStrucIntf.Islice == nil {
  10287. r.EncodeNil()
  10288. } else {
  10289. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  10290. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  10291. }
  10292. }
  10293. if yyq2[69] {
  10294. z.EncWriteMapElemKey()
  10295. if z.IsJSONHandle() {
  10296. z.WriteStr("\"Ms\"")
  10297. } else {
  10298. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  10299. }
  10300. z.EncWriteMapElemValue()
  10301. if yyn72 {
  10302. r.EncodeNil()
  10303. } else {
  10304. if x.AnonInTestStrucIntf.Ms == nil {
  10305. r.EncodeNil()
  10306. } else {
  10307. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  10308. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  10309. }
  10310. }
  10311. if yyq2[70] {
  10312. z.EncWriteMapElemKey()
  10313. if z.IsJSONHandle() {
  10314. z.WriteStr("\"Nintf\"")
  10315. } else {
  10316. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  10317. }
  10318. z.EncWriteMapElemValue()
  10319. if yyn73 {
  10320. r.EncodeNil()
  10321. } else {
  10322. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  10323. }
  10324. }
  10325. if yyq2[71] {
  10326. z.EncWriteMapElemKey()
  10327. if z.IsJSONHandle() {
  10328. z.WriteStr("\"T\"")
  10329. } else {
  10330. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  10331. }
  10332. z.EncWriteMapElemValue()
  10333. if yyn74 {
  10334. r.EncodeNil()
  10335. } else {
  10336. if !z.EncBasicHandle().TimeNotBuiltin {
  10337. r.EncodeTime(x.AnonInTestStrucIntf.T)
  10338. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  10339. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt241)
  10340. } else if z.EncBinary() {
  10341. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  10342. } else if !z.EncBinary() && z.IsJSONHandle() {
  10343. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  10344. } else {
  10345. z.EncFallback(x.AnonInTestStrucIntf.T)
  10346. }
  10347. }
  10348. }
  10349. if yyq2[72] {
  10350. z.EncWriteMapElemKey()
  10351. if z.IsJSONHandle() {
  10352. z.WriteStr("\"Tptr\"")
  10353. } else {
  10354. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  10355. }
  10356. z.EncWriteMapElemValue()
  10357. if yyn75 {
  10358. r.EncodeNil()
  10359. } else {
  10360. yy242 := *x.AnonInTestStrucIntf.Tptr
  10361. if !z.EncBasicHandle().TimeNotBuiltin {
  10362. r.EncodeTime(yy242)
  10363. } else if yyxt243 := z.Extension(z.I2Rtid(yy242)); yyxt243 != nil {
  10364. z.EncExtension(yy242, yyxt243)
  10365. } else if z.EncBinary() {
  10366. z.EncBinaryMarshal(yy242)
  10367. } else if !z.EncBinary() && z.IsJSONHandle() {
  10368. z.EncJSONMarshal(yy242)
  10369. } else {
  10370. z.EncFallback(yy242)
  10371. }
  10372. }
  10373. }
  10374. if yyq2[73] {
  10375. z.EncWriteMapElemKey()
  10376. if z.IsJSONHandle() {
  10377. z.WriteStr("\"Mtsptr\"")
  10378. } else {
  10379. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  10380. }
  10381. z.EncWriteMapElemValue()
  10382. if x.Mtsptr == nil {
  10383. r.EncodeNil()
  10384. } else {
  10385. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  10386. } // end block: if x.Mtsptr map == nil
  10387. }
  10388. if yyq2[74] {
  10389. z.EncWriteMapElemKey()
  10390. if z.IsJSONHandle() {
  10391. z.WriteStr("\"Mts\"")
  10392. } else {
  10393. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  10394. }
  10395. z.EncWriteMapElemValue()
  10396. if x.Mts == nil {
  10397. r.EncodeNil()
  10398. } else {
  10399. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  10400. } // end block: if x.Mts map == nil
  10401. }
  10402. if yyq2[75] {
  10403. z.EncWriteMapElemKey()
  10404. if z.IsJSONHandle() {
  10405. z.WriteStr("\"Its\"")
  10406. } else {
  10407. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  10408. }
  10409. z.EncWriteMapElemValue()
  10410. if x.Its == nil {
  10411. r.EncodeNil()
  10412. } else {
  10413. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  10414. } // end block: if x.Its slice == nil
  10415. }
  10416. if yyq2[76] {
  10417. z.EncWriteMapElemKey()
  10418. if z.IsJSONHandle() {
  10419. z.WriteStr("\"Nteststruc\"")
  10420. } else {
  10421. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  10422. }
  10423. z.EncWriteMapElemValue()
  10424. if yyn79 {
  10425. r.EncodeNil()
  10426. } else {
  10427. x.Nteststruc.CodecEncodeSelf(e)
  10428. }
  10429. }
  10430. z.EncWriteMapEnd()
  10431. }
  10432. }
  10433. }
  10434. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  10435. var h codecSelfer19780
  10436. z, r := GenHelperDecoder(d)
  10437. _, _, _ = h, z, r
  10438. yyct2 := r.ContainerType()
  10439. if yyct2 == codecSelferValueTypeNil19780 {
  10440. *(x) = TestStrucFlex{}
  10441. } else if yyct2 == codecSelferValueTypeMap19780 {
  10442. yyl2 := z.DecReadMapStart()
  10443. if yyl2 == 0 {
  10444. } else {
  10445. x.codecDecodeSelfFromMap(yyl2, d)
  10446. }
  10447. z.DecReadMapEnd()
  10448. } else if yyct2 == codecSelferValueTypeArray19780 {
  10449. yyl2 := z.DecReadArrayStart()
  10450. if yyl2 != 0 {
  10451. x.codecDecodeSelfFromArray(yyl2, d)
  10452. }
  10453. z.DecReadArrayEnd()
  10454. } else {
  10455. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  10456. }
  10457. }
  10458. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  10459. var h codecSelfer19780
  10460. z, r := GenHelperDecoder(d)
  10461. _, _, _ = h, z, r
  10462. var yyhl3 bool = l >= 0
  10463. for yyj3 := 0; ; yyj3++ {
  10464. if yyhl3 {
  10465. if yyj3 >= l {
  10466. break
  10467. }
  10468. } else {
  10469. if r.CheckBreak() {
  10470. break
  10471. }
  10472. }
  10473. z.DecReadMapElemKey()
  10474. yys3 := z.StringView(r.DecodeStringAsBytes())
  10475. z.DecReadMapElemValue()
  10476. switch yys3 {
  10477. case "S":
  10478. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10479. case "I64":
  10480. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10481. case "I32":
  10482. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10483. case "I16":
  10484. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10485. case "I8":
  10486. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10487. case "I64n":
  10488. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10489. case "I32n":
  10490. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10491. case "I16n":
  10492. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10493. case "I8n":
  10494. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10495. case "Ui64":
  10496. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10497. case "Ui32":
  10498. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10499. case "Ui16":
  10500. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10501. case "Ui8":
  10502. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10503. case "F64":
  10504. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10505. case "F32":
  10506. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10507. case "B":
  10508. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10509. case "By":
  10510. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10511. case "Sslice":
  10512. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10513. case "I64slice":
  10514. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10515. case "I16slice":
  10516. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10517. case "Ui64slice":
  10518. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10519. case "Ui8slice":
  10520. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10521. case "Bslice":
  10522. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10523. case "Byslice":
  10524. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10525. case "BytesSlice":
  10526. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10527. case "Iptrslice":
  10528. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10529. case "WrapSliceInt64":
  10530. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10531. case "WrapSliceString":
  10532. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  10533. case "Msi64":
  10534. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  10535. case "Msbytes":
  10536. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  10537. case "Simplef":
  10538. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  10539. case "SstrUi64T":
  10540. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  10541. case "MstrUi64T":
  10542. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  10543. case "AS":
  10544. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  10545. case "AI64":
  10546. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  10547. case "AI16":
  10548. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10549. case "AUi64":
  10550. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  10551. case "ASslice":
  10552. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10553. case "AI64slice":
  10554. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10555. case "AUi64slice":
  10556. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10557. case "AF64slice":
  10558. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10559. case "AF32slice":
  10560. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10561. case "AMSU16":
  10562. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10563. case "AI64arr0":
  10564. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10565. case "AI64slice0":
  10566. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  10567. case "AUi64sliceN":
  10568. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10569. case "AMSU16N":
  10570. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10571. case "AMSU16E":
  10572. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10573. case "NotAnon":
  10574. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10575. case "Nmap":
  10576. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10577. case "Nslice":
  10578. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10579. case "Nint64":
  10580. if r.TryNil() {
  10581. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10582. x.TestStrucCommon.Nint64 = nil
  10583. }
  10584. } else {
  10585. if x.TestStrucCommon.Nint64 == nil {
  10586. x.TestStrucCommon.Nint64 = new(int64)
  10587. }
  10588. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10589. }
  10590. case "Chstr":
  10591. h.decChanstring((*chan string)(&x.Chstr), d)
  10592. case "Mis":
  10593. z.F.DecMapIntStringX(&x.Mis, d)
  10594. case "Mbu64":
  10595. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10596. case "Miwu64s":
  10597. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10598. case "Mfwss":
  10599. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10600. case "Mf32wss":
  10601. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10602. case "Mui2wss":
  10603. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10604. case "Msu2wss":
  10605. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10606. case "Ci64":
  10607. x.Ci64.CodecDecodeSelf(d)
  10608. case "Swrapbytes":
  10609. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10610. case "Swrapuint8":
  10611. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10612. case "ArrStrUi64T":
  10613. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10614. case "Ui64array":
  10615. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10616. case "Ui64slicearray":
  10617. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10618. case "SintfAarray":
  10619. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10620. case "MstrUi64TSelf":
  10621. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  10622. case "Islice":
  10623. if r.TryNil() {
  10624. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10625. x.AnonInTestStrucIntf.Islice = nil
  10626. }
  10627. } else {
  10628. if x.AnonInTestStrucIntf == nil {
  10629. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10630. }
  10631. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  10632. }
  10633. case "Ms":
  10634. if r.TryNil() {
  10635. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10636. x.AnonInTestStrucIntf.Ms = nil
  10637. }
  10638. } else {
  10639. if x.AnonInTestStrucIntf == nil {
  10640. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10641. }
  10642. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  10643. }
  10644. case "Nintf":
  10645. if r.TryNil() {
  10646. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10647. x.AnonInTestStrucIntf.Nintf = nil
  10648. }
  10649. } else {
  10650. if x.AnonInTestStrucIntf == nil {
  10651. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10652. }
  10653. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  10654. }
  10655. case "T":
  10656. if r.TryNil() {
  10657. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10658. x.AnonInTestStrucIntf.T = time.Time{}
  10659. }
  10660. } else {
  10661. if x.AnonInTestStrucIntf == nil {
  10662. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10663. }
  10664. if !z.DecBasicHandle().TimeNotBuiltin {
  10665. x.AnonInTestStrucIntf.T = r.DecodeTime()
  10666. } else if yyxt121 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt121 != nil {
  10667. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt121)
  10668. } else if z.DecBinary() {
  10669. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  10670. } else if !z.DecBinary() && z.IsJSONHandle() {
  10671. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  10672. } else {
  10673. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  10674. }
  10675. }
  10676. case "Tptr":
  10677. if r.TryNil() {
  10678. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  10679. x.AnonInTestStrucIntf.Tptr = nil
  10680. }
  10681. } else {
  10682. if x.AnonInTestStrucIntf == nil {
  10683. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10684. }
  10685. if x.AnonInTestStrucIntf.Tptr == nil {
  10686. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  10687. }
  10688. if !z.DecBasicHandle().TimeNotBuiltin {
  10689. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  10690. } else if yyxt123 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt123 != nil {
  10691. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt123)
  10692. } else if z.DecBinary() {
  10693. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10694. } else if !z.DecBinary() && z.IsJSONHandle() {
  10695. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10696. } else {
  10697. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  10698. }
  10699. }
  10700. case "Mtsptr":
  10701. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  10702. case "Mts":
  10703. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  10704. case "Its":
  10705. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  10706. case "Nteststruc":
  10707. if r.TryNil() {
  10708. if x.Nteststruc != nil { // remove the if-true
  10709. x.Nteststruc = nil
  10710. }
  10711. } else {
  10712. if x.Nteststruc == nil {
  10713. x.Nteststruc = new(TestStrucFlex)
  10714. }
  10715. x.Nteststruc.CodecDecodeSelf(d)
  10716. }
  10717. default:
  10718. z.DecStructFieldNotFound(-1, yys3)
  10719. } // end switch yys3
  10720. } // end for yyj3
  10721. }
  10722. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  10723. var h codecSelfer19780
  10724. z, r := GenHelperDecoder(d)
  10725. _, _, _ = h, z, r
  10726. var yyj131 int
  10727. var yyb131 bool
  10728. var yyhl131 bool = l >= 0
  10729. yyj131++
  10730. if yyhl131 {
  10731. yyb131 = yyj131 > l
  10732. } else {
  10733. yyb131 = r.CheckBreak()
  10734. }
  10735. if yyb131 {
  10736. z.DecReadArrayEnd()
  10737. return
  10738. }
  10739. z.DecReadArrayElem()
  10740. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10741. yyj131++
  10742. if yyhl131 {
  10743. yyb131 = yyj131 > l
  10744. } else {
  10745. yyb131 = r.CheckBreak()
  10746. }
  10747. if yyb131 {
  10748. z.DecReadArrayEnd()
  10749. return
  10750. }
  10751. z.DecReadArrayElem()
  10752. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10753. yyj131++
  10754. if yyhl131 {
  10755. yyb131 = yyj131 > l
  10756. } else {
  10757. yyb131 = r.CheckBreak()
  10758. }
  10759. if yyb131 {
  10760. z.DecReadArrayEnd()
  10761. return
  10762. }
  10763. z.DecReadArrayElem()
  10764. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10765. yyj131++
  10766. if yyhl131 {
  10767. yyb131 = yyj131 > l
  10768. } else {
  10769. yyb131 = r.CheckBreak()
  10770. }
  10771. if yyb131 {
  10772. z.DecReadArrayEnd()
  10773. return
  10774. }
  10775. z.DecReadArrayElem()
  10776. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10777. yyj131++
  10778. if yyhl131 {
  10779. yyb131 = yyj131 > l
  10780. } else {
  10781. yyb131 = r.CheckBreak()
  10782. }
  10783. if yyb131 {
  10784. z.DecReadArrayEnd()
  10785. return
  10786. }
  10787. z.DecReadArrayElem()
  10788. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10789. yyj131++
  10790. if yyhl131 {
  10791. yyb131 = yyj131 > l
  10792. } else {
  10793. yyb131 = r.CheckBreak()
  10794. }
  10795. if yyb131 {
  10796. z.DecReadArrayEnd()
  10797. return
  10798. }
  10799. z.DecReadArrayElem()
  10800. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10801. yyj131++
  10802. if yyhl131 {
  10803. yyb131 = yyj131 > l
  10804. } else {
  10805. yyb131 = r.CheckBreak()
  10806. }
  10807. if yyb131 {
  10808. z.DecReadArrayEnd()
  10809. return
  10810. }
  10811. z.DecReadArrayElem()
  10812. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10813. yyj131++
  10814. if yyhl131 {
  10815. yyb131 = yyj131 > l
  10816. } else {
  10817. yyb131 = r.CheckBreak()
  10818. }
  10819. if yyb131 {
  10820. z.DecReadArrayEnd()
  10821. return
  10822. }
  10823. z.DecReadArrayElem()
  10824. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10825. yyj131++
  10826. if yyhl131 {
  10827. yyb131 = yyj131 > l
  10828. } else {
  10829. yyb131 = r.CheckBreak()
  10830. }
  10831. if yyb131 {
  10832. z.DecReadArrayEnd()
  10833. return
  10834. }
  10835. z.DecReadArrayElem()
  10836. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10837. yyj131++
  10838. if yyhl131 {
  10839. yyb131 = yyj131 > l
  10840. } else {
  10841. yyb131 = r.CheckBreak()
  10842. }
  10843. if yyb131 {
  10844. z.DecReadArrayEnd()
  10845. return
  10846. }
  10847. z.DecReadArrayElem()
  10848. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10849. yyj131++
  10850. if yyhl131 {
  10851. yyb131 = yyj131 > l
  10852. } else {
  10853. yyb131 = r.CheckBreak()
  10854. }
  10855. if yyb131 {
  10856. z.DecReadArrayEnd()
  10857. return
  10858. }
  10859. z.DecReadArrayElem()
  10860. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10861. yyj131++
  10862. if yyhl131 {
  10863. yyb131 = yyj131 > l
  10864. } else {
  10865. yyb131 = r.CheckBreak()
  10866. }
  10867. if yyb131 {
  10868. z.DecReadArrayEnd()
  10869. return
  10870. }
  10871. z.DecReadArrayElem()
  10872. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10873. yyj131++
  10874. if yyhl131 {
  10875. yyb131 = yyj131 > l
  10876. } else {
  10877. yyb131 = r.CheckBreak()
  10878. }
  10879. if yyb131 {
  10880. z.DecReadArrayEnd()
  10881. return
  10882. }
  10883. z.DecReadArrayElem()
  10884. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10885. yyj131++
  10886. if yyhl131 {
  10887. yyb131 = yyj131 > l
  10888. } else {
  10889. yyb131 = r.CheckBreak()
  10890. }
  10891. if yyb131 {
  10892. z.DecReadArrayEnd()
  10893. return
  10894. }
  10895. z.DecReadArrayElem()
  10896. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10897. yyj131++
  10898. if yyhl131 {
  10899. yyb131 = yyj131 > l
  10900. } else {
  10901. yyb131 = r.CheckBreak()
  10902. }
  10903. if yyb131 {
  10904. z.DecReadArrayEnd()
  10905. return
  10906. }
  10907. z.DecReadArrayElem()
  10908. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10909. yyj131++
  10910. if yyhl131 {
  10911. yyb131 = yyj131 > l
  10912. } else {
  10913. yyb131 = r.CheckBreak()
  10914. }
  10915. if yyb131 {
  10916. z.DecReadArrayEnd()
  10917. return
  10918. }
  10919. z.DecReadArrayElem()
  10920. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10921. yyj131++
  10922. if yyhl131 {
  10923. yyb131 = yyj131 > l
  10924. } else {
  10925. yyb131 = r.CheckBreak()
  10926. }
  10927. if yyb131 {
  10928. z.DecReadArrayEnd()
  10929. return
  10930. }
  10931. z.DecReadArrayElem()
  10932. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10933. yyj131++
  10934. if yyhl131 {
  10935. yyb131 = yyj131 > l
  10936. } else {
  10937. yyb131 = r.CheckBreak()
  10938. }
  10939. if yyb131 {
  10940. z.DecReadArrayEnd()
  10941. return
  10942. }
  10943. z.DecReadArrayElem()
  10944. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10945. yyj131++
  10946. if yyhl131 {
  10947. yyb131 = yyj131 > l
  10948. } else {
  10949. yyb131 = r.CheckBreak()
  10950. }
  10951. if yyb131 {
  10952. z.DecReadArrayEnd()
  10953. return
  10954. }
  10955. z.DecReadArrayElem()
  10956. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10957. yyj131++
  10958. if yyhl131 {
  10959. yyb131 = yyj131 > l
  10960. } else {
  10961. yyb131 = r.CheckBreak()
  10962. }
  10963. if yyb131 {
  10964. z.DecReadArrayEnd()
  10965. return
  10966. }
  10967. z.DecReadArrayElem()
  10968. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10969. yyj131++
  10970. if yyhl131 {
  10971. yyb131 = yyj131 > l
  10972. } else {
  10973. yyb131 = r.CheckBreak()
  10974. }
  10975. if yyb131 {
  10976. z.DecReadArrayEnd()
  10977. return
  10978. }
  10979. z.DecReadArrayElem()
  10980. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10981. yyj131++
  10982. if yyhl131 {
  10983. yyb131 = yyj131 > l
  10984. } else {
  10985. yyb131 = r.CheckBreak()
  10986. }
  10987. if yyb131 {
  10988. z.DecReadArrayEnd()
  10989. return
  10990. }
  10991. z.DecReadArrayElem()
  10992. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10993. yyj131++
  10994. if yyhl131 {
  10995. yyb131 = yyj131 > l
  10996. } else {
  10997. yyb131 = r.CheckBreak()
  10998. }
  10999. if yyb131 {
  11000. z.DecReadArrayEnd()
  11001. return
  11002. }
  11003. z.DecReadArrayElem()
  11004. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  11005. yyj131++
  11006. if yyhl131 {
  11007. yyb131 = yyj131 > l
  11008. } else {
  11009. yyb131 = r.CheckBreak()
  11010. }
  11011. if yyb131 {
  11012. z.DecReadArrayEnd()
  11013. return
  11014. }
  11015. z.DecReadArrayElem()
  11016. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  11017. yyj131++
  11018. if yyhl131 {
  11019. yyb131 = yyj131 > l
  11020. } else {
  11021. yyb131 = r.CheckBreak()
  11022. }
  11023. if yyb131 {
  11024. z.DecReadArrayEnd()
  11025. return
  11026. }
  11027. z.DecReadArrayElem()
  11028. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  11029. yyj131++
  11030. if yyhl131 {
  11031. yyb131 = yyj131 > l
  11032. } else {
  11033. yyb131 = r.CheckBreak()
  11034. }
  11035. if yyb131 {
  11036. z.DecReadArrayEnd()
  11037. return
  11038. }
  11039. z.DecReadArrayElem()
  11040. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  11041. yyj131++
  11042. if yyhl131 {
  11043. yyb131 = yyj131 > l
  11044. } else {
  11045. yyb131 = r.CheckBreak()
  11046. }
  11047. if yyb131 {
  11048. z.DecReadArrayEnd()
  11049. return
  11050. }
  11051. z.DecReadArrayElem()
  11052. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  11053. yyj131++
  11054. if yyhl131 {
  11055. yyb131 = yyj131 > l
  11056. } else {
  11057. yyb131 = r.CheckBreak()
  11058. }
  11059. if yyb131 {
  11060. z.DecReadArrayEnd()
  11061. return
  11062. }
  11063. z.DecReadArrayElem()
  11064. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  11065. yyj131++
  11066. if yyhl131 {
  11067. yyb131 = yyj131 > l
  11068. } else {
  11069. yyb131 = r.CheckBreak()
  11070. }
  11071. if yyb131 {
  11072. z.DecReadArrayEnd()
  11073. return
  11074. }
  11075. z.DecReadArrayElem()
  11076. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  11077. yyj131++
  11078. if yyhl131 {
  11079. yyb131 = yyj131 > l
  11080. } else {
  11081. yyb131 = r.CheckBreak()
  11082. }
  11083. if yyb131 {
  11084. z.DecReadArrayEnd()
  11085. return
  11086. }
  11087. z.DecReadArrayElem()
  11088. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  11089. yyj131++
  11090. if yyhl131 {
  11091. yyb131 = yyj131 > l
  11092. } else {
  11093. yyb131 = r.CheckBreak()
  11094. }
  11095. if yyb131 {
  11096. z.DecReadArrayEnd()
  11097. return
  11098. }
  11099. z.DecReadArrayElem()
  11100. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  11101. yyj131++
  11102. if yyhl131 {
  11103. yyb131 = yyj131 > l
  11104. } else {
  11105. yyb131 = r.CheckBreak()
  11106. }
  11107. if yyb131 {
  11108. z.DecReadArrayEnd()
  11109. return
  11110. }
  11111. z.DecReadArrayElem()
  11112. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  11113. yyj131++
  11114. if yyhl131 {
  11115. yyb131 = yyj131 > l
  11116. } else {
  11117. yyb131 = r.CheckBreak()
  11118. }
  11119. if yyb131 {
  11120. z.DecReadArrayEnd()
  11121. return
  11122. }
  11123. z.DecReadArrayElem()
  11124. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  11125. yyj131++
  11126. if yyhl131 {
  11127. yyb131 = yyj131 > l
  11128. } else {
  11129. yyb131 = r.CheckBreak()
  11130. }
  11131. if yyb131 {
  11132. z.DecReadArrayEnd()
  11133. return
  11134. }
  11135. z.DecReadArrayElem()
  11136. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  11137. yyj131++
  11138. if yyhl131 {
  11139. yyb131 = yyj131 > l
  11140. } else {
  11141. yyb131 = r.CheckBreak()
  11142. }
  11143. if yyb131 {
  11144. z.DecReadArrayEnd()
  11145. return
  11146. }
  11147. z.DecReadArrayElem()
  11148. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  11149. yyj131++
  11150. if yyhl131 {
  11151. yyb131 = yyj131 > l
  11152. } else {
  11153. yyb131 = r.CheckBreak()
  11154. }
  11155. if yyb131 {
  11156. z.DecReadArrayEnd()
  11157. return
  11158. }
  11159. z.DecReadArrayElem()
  11160. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  11161. yyj131++
  11162. if yyhl131 {
  11163. yyb131 = yyj131 > l
  11164. } else {
  11165. yyb131 = r.CheckBreak()
  11166. }
  11167. if yyb131 {
  11168. z.DecReadArrayEnd()
  11169. return
  11170. }
  11171. z.DecReadArrayElem()
  11172. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  11173. yyj131++
  11174. if yyhl131 {
  11175. yyb131 = yyj131 > l
  11176. } else {
  11177. yyb131 = r.CheckBreak()
  11178. }
  11179. if yyb131 {
  11180. z.DecReadArrayEnd()
  11181. return
  11182. }
  11183. z.DecReadArrayElem()
  11184. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  11185. yyj131++
  11186. if yyhl131 {
  11187. yyb131 = yyj131 > l
  11188. } else {
  11189. yyb131 = r.CheckBreak()
  11190. }
  11191. if yyb131 {
  11192. z.DecReadArrayEnd()
  11193. return
  11194. }
  11195. z.DecReadArrayElem()
  11196. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  11197. yyj131++
  11198. if yyhl131 {
  11199. yyb131 = yyj131 > l
  11200. } else {
  11201. yyb131 = r.CheckBreak()
  11202. }
  11203. if yyb131 {
  11204. z.DecReadArrayEnd()
  11205. return
  11206. }
  11207. z.DecReadArrayElem()
  11208. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  11209. yyj131++
  11210. if yyhl131 {
  11211. yyb131 = yyj131 > l
  11212. } else {
  11213. yyb131 = r.CheckBreak()
  11214. }
  11215. if yyb131 {
  11216. z.DecReadArrayEnd()
  11217. return
  11218. }
  11219. z.DecReadArrayElem()
  11220. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  11221. yyj131++
  11222. if yyhl131 {
  11223. yyb131 = yyj131 > l
  11224. } else {
  11225. yyb131 = r.CheckBreak()
  11226. }
  11227. if yyb131 {
  11228. z.DecReadArrayEnd()
  11229. return
  11230. }
  11231. z.DecReadArrayElem()
  11232. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  11233. yyj131++
  11234. if yyhl131 {
  11235. yyb131 = yyj131 > l
  11236. } else {
  11237. yyb131 = r.CheckBreak()
  11238. }
  11239. if yyb131 {
  11240. z.DecReadArrayEnd()
  11241. return
  11242. }
  11243. z.DecReadArrayElem()
  11244. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  11245. yyj131++
  11246. if yyhl131 {
  11247. yyb131 = yyj131 > l
  11248. } else {
  11249. yyb131 = r.CheckBreak()
  11250. }
  11251. if yyb131 {
  11252. z.DecReadArrayEnd()
  11253. return
  11254. }
  11255. z.DecReadArrayElem()
  11256. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  11257. yyj131++
  11258. if yyhl131 {
  11259. yyb131 = yyj131 > l
  11260. } else {
  11261. yyb131 = r.CheckBreak()
  11262. }
  11263. if yyb131 {
  11264. z.DecReadArrayEnd()
  11265. return
  11266. }
  11267. z.DecReadArrayElem()
  11268. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  11269. yyj131++
  11270. if yyhl131 {
  11271. yyb131 = yyj131 > l
  11272. } else {
  11273. yyb131 = r.CheckBreak()
  11274. }
  11275. if yyb131 {
  11276. z.DecReadArrayEnd()
  11277. return
  11278. }
  11279. z.DecReadArrayElem()
  11280. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  11281. yyj131++
  11282. if yyhl131 {
  11283. yyb131 = yyj131 > l
  11284. } else {
  11285. yyb131 = r.CheckBreak()
  11286. }
  11287. if yyb131 {
  11288. z.DecReadArrayEnd()
  11289. return
  11290. }
  11291. z.DecReadArrayElem()
  11292. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  11293. yyj131++
  11294. if yyhl131 {
  11295. yyb131 = yyj131 > l
  11296. } else {
  11297. yyb131 = r.CheckBreak()
  11298. }
  11299. if yyb131 {
  11300. z.DecReadArrayEnd()
  11301. return
  11302. }
  11303. z.DecReadArrayElem()
  11304. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  11305. yyj131++
  11306. if yyhl131 {
  11307. yyb131 = yyj131 > l
  11308. } else {
  11309. yyb131 = r.CheckBreak()
  11310. }
  11311. if yyb131 {
  11312. z.DecReadArrayEnd()
  11313. return
  11314. }
  11315. z.DecReadArrayElem()
  11316. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  11317. yyj131++
  11318. if yyhl131 {
  11319. yyb131 = yyj131 > l
  11320. } else {
  11321. yyb131 = r.CheckBreak()
  11322. }
  11323. if yyb131 {
  11324. z.DecReadArrayEnd()
  11325. return
  11326. }
  11327. z.DecReadArrayElem()
  11328. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  11329. yyj131++
  11330. if yyhl131 {
  11331. yyb131 = yyj131 > l
  11332. } else {
  11333. yyb131 = r.CheckBreak()
  11334. }
  11335. if yyb131 {
  11336. z.DecReadArrayEnd()
  11337. return
  11338. }
  11339. z.DecReadArrayElem()
  11340. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  11341. yyj131++
  11342. if yyhl131 {
  11343. yyb131 = yyj131 > l
  11344. } else {
  11345. yyb131 = r.CheckBreak()
  11346. }
  11347. if yyb131 {
  11348. z.DecReadArrayEnd()
  11349. return
  11350. }
  11351. z.DecReadArrayElem()
  11352. if r.TryNil() {
  11353. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  11354. x.TestStrucCommon.Nint64 = nil
  11355. }
  11356. } else {
  11357. if x.TestStrucCommon.Nint64 == nil {
  11358. x.TestStrucCommon.Nint64 = new(int64)
  11359. }
  11360. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  11361. }
  11362. yyj131++
  11363. if yyhl131 {
  11364. yyb131 = yyj131 > l
  11365. } else {
  11366. yyb131 = r.CheckBreak()
  11367. }
  11368. if yyb131 {
  11369. z.DecReadArrayEnd()
  11370. return
  11371. }
  11372. z.DecReadArrayElem()
  11373. h.decChanstring((*chan string)(&x.Chstr), d)
  11374. yyj131++
  11375. if yyhl131 {
  11376. yyb131 = yyj131 > l
  11377. } else {
  11378. yyb131 = r.CheckBreak()
  11379. }
  11380. if yyb131 {
  11381. z.DecReadArrayEnd()
  11382. return
  11383. }
  11384. z.DecReadArrayElem()
  11385. z.F.DecMapIntStringX(&x.Mis, d)
  11386. yyj131++
  11387. if yyhl131 {
  11388. yyb131 = yyj131 > l
  11389. } else {
  11390. yyb131 = r.CheckBreak()
  11391. }
  11392. if yyb131 {
  11393. z.DecReadArrayEnd()
  11394. return
  11395. }
  11396. z.DecReadArrayElem()
  11397. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  11398. yyj131++
  11399. if yyhl131 {
  11400. yyb131 = yyj131 > l
  11401. } else {
  11402. yyb131 = r.CheckBreak()
  11403. }
  11404. if yyb131 {
  11405. z.DecReadArrayEnd()
  11406. return
  11407. }
  11408. z.DecReadArrayElem()
  11409. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  11410. yyj131++
  11411. if yyhl131 {
  11412. yyb131 = yyj131 > l
  11413. } else {
  11414. yyb131 = r.CheckBreak()
  11415. }
  11416. if yyb131 {
  11417. z.DecReadArrayEnd()
  11418. return
  11419. }
  11420. z.DecReadArrayElem()
  11421. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  11422. yyj131++
  11423. if yyhl131 {
  11424. yyb131 = yyj131 > l
  11425. } else {
  11426. yyb131 = r.CheckBreak()
  11427. }
  11428. if yyb131 {
  11429. z.DecReadArrayEnd()
  11430. return
  11431. }
  11432. z.DecReadArrayElem()
  11433. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  11434. yyj131++
  11435. if yyhl131 {
  11436. yyb131 = yyj131 > l
  11437. } else {
  11438. yyb131 = r.CheckBreak()
  11439. }
  11440. if yyb131 {
  11441. z.DecReadArrayEnd()
  11442. return
  11443. }
  11444. z.DecReadArrayElem()
  11445. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  11446. yyj131++
  11447. if yyhl131 {
  11448. yyb131 = yyj131 > l
  11449. } else {
  11450. yyb131 = r.CheckBreak()
  11451. }
  11452. if yyb131 {
  11453. z.DecReadArrayEnd()
  11454. return
  11455. }
  11456. z.DecReadArrayElem()
  11457. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  11458. yyj131++
  11459. if yyhl131 {
  11460. yyb131 = yyj131 > l
  11461. } else {
  11462. yyb131 = r.CheckBreak()
  11463. }
  11464. if yyb131 {
  11465. z.DecReadArrayEnd()
  11466. return
  11467. }
  11468. z.DecReadArrayElem()
  11469. x.Ci64.CodecDecodeSelf(d)
  11470. yyj131++
  11471. if yyhl131 {
  11472. yyb131 = yyj131 > l
  11473. } else {
  11474. yyb131 = r.CheckBreak()
  11475. }
  11476. if yyb131 {
  11477. z.DecReadArrayEnd()
  11478. return
  11479. }
  11480. z.DecReadArrayElem()
  11481. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  11482. yyj131++
  11483. if yyhl131 {
  11484. yyb131 = yyj131 > l
  11485. } else {
  11486. yyb131 = r.CheckBreak()
  11487. }
  11488. if yyb131 {
  11489. z.DecReadArrayEnd()
  11490. return
  11491. }
  11492. z.DecReadArrayElem()
  11493. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  11494. yyj131++
  11495. if yyhl131 {
  11496. yyb131 = yyj131 > l
  11497. } else {
  11498. yyb131 = r.CheckBreak()
  11499. }
  11500. if yyb131 {
  11501. z.DecReadArrayEnd()
  11502. return
  11503. }
  11504. z.DecReadArrayElem()
  11505. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  11506. yyj131++
  11507. if yyhl131 {
  11508. yyb131 = yyj131 > l
  11509. } else {
  11510. yyb131 = r.CheckBreak()
  11511. }
  11512. if yyb131 {
  11513. z.DecReadArrayEnd()
  11514. return
  11515. }
  11516. z.DecReadArrayElem()
  11517. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  11518. yyj131++
  11519. if yyhl131 {
  11520. yyb131 = yyj131 > l
  11521. } else {
  11522. yyb131 = r.CheckBreak()
  11523. }
  11524. if yyb131 {
  11525. z.DecReadArrayEnd()
  11526. return
  11527. }
  11528. z.DecReadArrayElem()
  11529. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  11530. yyj131++
  11531. if yyhl131 {
  11532. yyb131 = yyj131 > l
  11533. } else {
  11534. yyb131 = r.CheckBreak()
  11535. }
  11536. if yyb131 {
  11537. z.DecReadArrayEnd()
  11538. return
  11539. }
  11540. z.DecReadArrayElem()
  11541. z.F.DecSliceIntfX(&x.SintfAarray, d)
  11542. yyj131++
  11543. if yyhl131 {
  11544. yyb131 = yyj131 > l
  11545. } else {
  11546. yyb131 = r.CheckBreak()
  11547. }
  11548. if yyb131 {
  11549. z.DecReadArrayEnd()
  11550. return
  11551. }
  11552. z.DecReadArrayElem()
  11553. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  11554. yyj131++
  11555. if yyhl131 {
  11556. yyb131 = yyj131 > l
  11557. } else {
  11558. yyb131 = r.CheckBreak()
  11559. }
  11560. if yyb131 {
  11561. z.DecReadArrayEnd()
  11562. return
  11563. }
  11564. z.DecReadArrayElem()
  11565. if r.TryNil() {
  11566. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11567. x.AnonInTestStrucIntf.Islice = nil
  11568. }
  11569. } else {
  11570. if x.AnonInTestStrucIntf == nil {
  11571. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11572. }
  11573. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  11574. }
  11575. yyj131++
  11576. if yyhl131 {
  11577. yyb131 = yyj131 > l
  11578. } else {
  11579. yyb131 = r.CheckBreak()
  11580. }
  11581. if yyb131 {
  11582. z.DecReadArrayEnd()
  11583. return
  11584. }
  11585. z.DecReadArrayElem()
  11586. if r.TryNil() {
  11587. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11588. x.AnonInTestStrucIntf.Ms = nil
  11589. }
  11590. } else {
  11591. if x.AnonInTestStrucIntf == nil {
  11592. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11593. }
  11594. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  11595. }
  11596. yyj131++
  11597. if yyhl131 {
  11598. yyb131 = yyj131 > l
  11599. } else {
  11600. yyb131 = r.CheckBreak()
  11601. }
  11602. if yyb131 {
  11603. z.DecReadArrayEnd()
  11604. return
  11605. }
  11606. z.DecReadArrayElem()
  11607. if r.TryNil() {
  11608. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11609. x.AnonInTestStrucIntf.Nintf = nil
  11610. }
  11611. } else {
  11612. if x.AnonInTestStrucIntf == nil {
  11613. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11614. }
  11615. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  11616. }
  11617. yyj131++
  11618. if yyhl131 {
  11619. yyb131 = yyj131 > l
  11620. } else {
  11621. yyb131 = r.CheckBreak()
  11622. }
  11623. if yyb131 {
  11624. z.DecReadArrayEnd()
  11625. return
  11626. }
  11627. z.DecReadArrayElem()
  11628. if r.TryNil() {
  11629. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11630. x.AnonInTestStrucIntf.T = time.Time{}
  11631. }
  11632. } else {
  11633. if x.AnonInTestStrucIntf == nil {
  11634. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11635. }
  11636. if !z.DecBasicHandle().TimeNotBuiltin {
  11637. x.AnonInTestStrucIntf.T = r.DecodeTime()
  11638. } else if yyxt249 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt249 != nil {
  11639. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt249)
  11640. } else if z.DecBinary() {
  11641. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  11642. } else if !z.DecBinary() && z.IsJSONHandle() {
  11643. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  11644. } else {
  11645. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  11646. }
  11647. }
  11648. yyj131++
  11649. if yyhl131 {
  11650. yyb131 = yyj131 > l
  11651. } else {
  11652. yyb131 = r.CheckBreak()
  11653. }
  11654. if yyb131 {
  11655. z.DecReadArrayEnd()
  11656. return
  11657. }
  11658. z.DecReadArrayElem()
  11659. if r.TryNil() {
  11660. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  11661. x.AnonInTestStrucIntf.Tptr = nil
  11662. }
  11663. } else {
  11664. if x.AnonInTestStrucIntf == nil {
  11665. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11666. }
  11667. if x.AnonInTestStrucIntf.Tptr == nil {
  11668. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  11669. }
  11670. if !z.DecBasicHandle().TimeNotBuiltin {
  11671. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  11672. } else if yyxt251 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt251 != nil {
  11673. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt251)
  11674. } else if z.DecBinary() {
  11675. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11676. } else if !z.DecBinary() && z.IsJSONHandle() {
  11677. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11678. } else {
  11679. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  11680. }
  11681. }
  11682. yyj131++
  11683. if yyhl131 {
  11684. yyb131 = yyj131 > l
  11685. } else {
  11686. yyb131 = r.CheckBreak()
  11687. }
  11688. if yyb131 {
  11689. z.DecReadArrayEnd()
  11690. return
  11691. }
  11692. z.DecReadArrayElem()
  11693. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  11694. yyj131++
  11695. if yyhl131 {
  11696. yyb131 = yyj131 > l
  11697. } else {
  11698. yyb131 = r.CheckBreak()
  11699. }
  11700. if yyb131 {
  11701. z.DecReadArrayEnd()
  11702. return
  11703. }
  11704. z.DecReadArrayElem()
  11705. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  11706. yyj131++
  11707. if yyhl131 {
  11708. yyb131 = yyj131 > l
  11709. } else {
  11710. yyb131 = r.CheckBreak()
  11711. }
  11712. if yyb131 {
  11713. z.DecReadArrayEnd()
  11714. return
  11715. }
  11716. z.DecReadArrayElem()
  11717. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  11718. yyj131++
  11719. if yyhl131 {
  11720. yyb131 = yyj131 > l
  11721. } else {
  11722. yyb131 = r.CheckBreak()
  11723. }
  11724. if yyb131 {
  11725. z.DecReadArrayEnd()
  11726. return
  11727. }
  11728. z.DecReadArrayElem()
  11729. if r.TryNil() {
  11730. if x.Nteststruc != nil { // remove the if-true
  11731. x.Nteststruc = nil
  11732. }
  11733. } else {
  11734. if x.Nteststruc == nil {
  11735. x.Nteststruc = new(TestStrucFlex)
  11736. }
  11737. x.Nteststruc.CodecDecodeSelf(d)
  11738. }
  11739. for {
  11740. yyj131++
  11741. if yyhl131 {
  11742. yyb131 = yyj131 > l
  11743. } else {
  11744. yyb131 = r.CheckBreak()
  11745. }
  11746. if yyb131 {
  11747. break
  11748. }
  11749. z.DecReadArrayElem()
  11750. z.DecStructFieldNotFound(yyj131-1, "")
  11751. }
  11752. }
  11753. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  11754. var h codecSelfer19780
  11755. z, r := GenHelperEncoder(e)
  11756. _, _, _ = h, z, r
  11757. if v == nil {
  11758. r.EncodeNil()
  11759. return
  11760. }
  11761. z.EncWriteArrayStart(len(v))
  11762. for _, yyv1 := range v {
  11763. z.EncWriteArrayElem()
  11764. r.EncodeUint(uint64(yyv1))
  11765. }
  11766. z.EncWriteArrayEnd()
  11767. }
  11768. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  11769. var h codecSelfer19780
  11770. z, r := GenHelperDecoder(d)
  11771. _, _, _ = h, z, r
  11772. yyv1 := *v
  11773. yyh1, yyl1 := z.DecSliceHelperStart()
  11774. var yyc1 bool
  11775. _ = yyc1
  11776. if yyh1.IsNil {
  11777. if yyv1 != nil {
  11778. yyv1 = nil
  11779. yyc1 = true
  11780. }
  11781. } else if yyl1 == 0 {
  11782. if yyv1 == nil {
  11783. yyv1 = []uint64{}
  11784. yyc1 = true
  11785. } else if len(yyv1) != 0 {
  11786. yyv1 = yyv1[:0]
  11787. yyc1 = true
  11788. }
  11789. } else {
  11790. yyhl1 := yyl1 > 0
  11791. var yyrl1 int
  11792. _ = yyrl1
  11793. if yyhl1 {
  11794. if yyl1 > cap(yyv1) {
  11795. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11796. if yyrl1 <= cap(yyv1) {
  11797. yyv1 = yyv1[:yyrl1]
  11798. } else {
  11799. yyv1 = make([]uint64, yyrl1)
  11800. }
  11801. yyc1 = true
  11802. } else if yyl1 != len(yyv1) {
  11803. yyv1 = yyv1[:yyl1]
  11804. yyc1 = true
  11805. }
  11806. }
  11807. var yyj1 int
  11808. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11809. if yyj1 == 0 && yyv1 == nil {
  11810. if yyhl1 {
  11811. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11812. } else {
  11813. yyrl1 = 8
  11814. }
  11815. yyv1 = make([]uint64, yyrl1)
  11816. yyc1 = true
  11817. }
  11818. yyh1.ElemContainerState(yyj1)
  11819. var yydb1 bool
  11820. if yyj1 >= len(yyv1) {
  11821. yyv1 = append(yyv1, 0)
  11822. yyc1 = true
  11823. }
  11824. if yydb1 {
  11825. z.DecSwallow()
  11826. } else {
  11827. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  11828. }
  11829. }
  11830. if yyj1 < len(yyv1) {
  11831. yyv1 = yyv1[:yyj1]
  11832. yyc1 = true
  11833. } else if yyj1 == 0 && yyv1 == nil {
  11834. yyv1 = make([]uint64, 0)
  11835. yyc1 = true
  11836. }
  11837. }
  11838. yyh1.End()
  11839. if yyc1 {
  11840. *v = yyv1
  11841. }
  11842. }
  11843. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  11844. var h codecSelfer19780
  11845. z, r := GenHelperEncoder(e)
  11846. _, _, _ = h, z, r
  11847. if v == nil {
  11848. r.EncodeNil()
  11849. return
  11850. }
  11851. z.EncWriteArrayStart(len(v))
  11852. for _, yyv1 := range v {
  11853. z.EncWriteArrayElem()
  11854. if z.EncBasicHandle().StringToRaw {
  11855. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  11856. } else {
  11857. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  11858. }
  11859. }
  11860. z.EncWriteArrayEnd()
  11861. }
  11862. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  11863. var h codecSelfer19780
  11864. z, r := GenHelperDecoder(d)
  11865. _, _, _ = h, z, r
  11866. yyv1 := *v
  11867. yyh1, yyl1 := z.DecSliceHelperStart()
  11868. var yyc1 bool
  11869. _ = yyc1
  11870. if yyh1.IsNil {
  11871. if yyv1 != nil {
  11872. yyv1 = nil
  11873. yyc1 = true
  11874. }
  11875. } else if yyl1 == 0 {
  11876. if yyv1 == nil {
  11877. yyv1 = []string{}
  11878. yyc1 = true
  11879. } else if len(yyv1) != 0 {
  11880. yyv1 = yyv1[:0]
  11881. yyc1 = true
  11882. }
  11883. } else {
  11884. yyhl1 := yyl1 > 0
  11885. var yyrl1 int
  11886. _ = yyrl1
  11887. if yyhl1 {
  11888. if yyl1 > cap(yyv1) {
  11889. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11890. if yyrl1 <= cap(yyv1) {
  11891. yyv1 = yyv1[:yyrl1]
  11892. } else {
  11893. yyv1 = make([]string, yyrl1)
  11894. }
  11895. yyc1 = true
  11896. } else if yyl1 != len(yyv1) {
  11897. yyv1 = yyv1[:yyl1]
  11898. yyc1 = true
  11899. }
  11900. }
  11901. var yyj1 int
  11902. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11903. if yyj1 == 0 && yyv1 == nil {
  11904. if yyhl1 {
  11905. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11906. } else {
  11907. yyrl1 = 8
  11908. }
  11909. yyv1 = make([]string, yyrl1)
  11910. yyc1 = true
  11911. }
  11912. yyh1.ElemContainerState(yyj1)
  11913. var yydb1 bool
  11914. if yyj1 >= len(yyv1) {
  11915. yyv1 = append(yyv1, "")
  11916. yyc1 = true
  11917. }
  11918. if yydb1 {
  11919. z.DecSwallow()
  11920. } else {
  11921. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  11922. }
  11923. }
  11924. if yyj1 < len(yyv1) {
  11925. yyv1 = yyv1[:yyj1]
  11926. yyc1 = true
  11927. } else if yyj1 == 0 && yyv1 == nil {
  11928. yyv1 = make([]string, 0)
  11929. yyc1 = true
  11930. }
  11931. }
  11932. yyh1.End()
  11933. if yyc1 {
  11934. *v = yyv1
  11935. }
  11936. }
  11937. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  11938. var h codecSelfer19780
  11939. z, r := GenHelperEncoder(e)
  11940. _, _, _ = h, z, r
  11941. if v == nil {
  11942. r.EncodeNil()
  11943. return
  11944. }
  11945. z.EncWriteArrayStart(len(v))
  11946. for _, yyv1 := range v {
  11947. z.EncWriteArrayElem()
  11948. yyv1.CodecEncodeSelf(e)
  11949. }
  11950. z.EncWriteArrayEnd()
  11951. }
  11952. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  11953. var h codecSelfer19780
  11954. z, r := GenHelperDecoder(d)
  11955. _, _, _ = h, z, r
  11956. yyv1 := *v
  11957. yyh1, yyl1 := z.DecSliceHelperStart()
  11958. var yyc1 bool
  11959. _ = yyc1
  11960. if yyh1.IsNil {
  11961. if yyv1 != nil {
  11962. yyv1 = nil
  11963. yyc1 = true
  11964. }
  11965. } else if yyl1 == 0 {
  11966. if yyv1 == nil {
  11967. yyv1 = []wrapUint64{}
  11968. yyc1 = true
  11969. } else if len(yyv1) != 0 {
  11970. yyv1 = yyv1[:0]
  11971. yyc1 = true
  11972. }
  11973. } else {
  11974. yyhl1 := yyl1 > 0
  11975. var yyrl1 int
  11976. _ = yyrl1
  11977. if yyhl1 {
  11978. if yyl1 > cap(yyv1) {
  11979. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11980. if yyrl1 <= cap(yyv1) {
  11981. yyv1 = yyv1[:yyrl1]
  11982. } else {
  11983. yyv1 = make([]wrapUint64, yyrl1)
  11984. }
  11985. yyc1 = true
  11986. } else if yyl1 != len(yyv1) {
  11987. yyv1 = yyv1[:yyl1]
  11988. yyc1 = true
  11989. }
  11990. }
  11991. var yyj1 int
  11992. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11993. if yyj1 == 0 && yyv1 == nil {
  11994. if yyhl1 {
  11995. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11996. } else {
  11997. yyrl1 = 8
  11998. }
  11999. yyv1 = make([]wrapUint64, yyrl1)
  12000. yyc1 = true
  12001. }
  12002. yyh1.ElemContainerState(yyj1)
  12003. var yydb1 bool
  12004. if yyj1 >= len(yyv1) {
  12005. yyv1 = append(yyv1, 0)
  12006. yyc1 = true
  12007. }
  12008. if yydb1 {
  12009. z.DecSwallow()
  12010. } else {
  12011. yyv1[yyj1].CodecDecodeSelf(d)
  12012. }
  12013. }
  12014. if yyj1 < len(yyv1) {
  12015. yyv1 = yyv1[:yyj1]
  12016. yyc1 = true
  12017. } else if yyj1 == 0 && yyv1 == nil {
  12018. yyv1 = make([]wrapUint64, 0)
  12019. yyc1 = true
  12020. }
  12021. }
  12022. yyh1.End()
  12023. if yyc1 {
  12024. *v = yyv1
  12025. }
  12026. }
  12027. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  12028. var h codecSelfer19780
  12029. z, r := GenHelperEncoder(e)
  12030. _, _, _ = h, z, r
  12031. if v == nil {
  12032. r.EncodeNil()
  12033. return
  12034. }
  12035. z.EncWriteArrayStart(len(v))
  12036. for _, yyv1 := range v {
  12037. z.EncWriteArrayElem()
  12038. yyv1.CodecEncodeSelf(e)
  12039. }
  12040. z.EncWriteArrayEnd()
  12041. }
  12042. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  12043. var h codecSelfer19780
  12044. z, r := GenHelperDecoder(d)
  12045. _, _, _ = h, z, r
  12046. yyv1 := *v
  12047. yyh1, yyl1 := z.DecSliceHelperStart()
  12048. var yyc1 bool
  12049. _ = yyc1
  12050. if yyh1.IsNil {
  12051. if yyv1 != nil {
  12052. yyv1 = nil
  12053. yyc1 = true
  12054. }
  12055. } else if yyl1 == 0 {
  12056. if yyv1 == nil {
  12057. yyv1 = []wrapString{}
  12058. yyc1 = true
  12059. } else if len(yyv1) != 0 {
  12060. yyv1 = yyv1[:0]
  12061. yyc1 = true
  12062. }
  12063. } else {
  12064. yyhl1 := yyl1 > 0
  12065. var yyrl1 int
  12066. _ = yyrl1
  12067. if yyhl1 {
  12068. if yyl1 > cap(yyv1) {
  12069. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12070. if yyrl1 <= cap(yyv1) {
  12071. yyv1 = yyv1[:yyrl1]
  12072. } else {
  12073. yyv1 = make([]wrapString, yyrl1)
  12074. }
  12075. yyc1 = true
  12076. } else if yyl1 != len(yyv1) {
  12077. yyv1 = yyv1[:yyl1]
  12078. yyc1 = true
  12079. }
  12080. }
  12081. var yyj1 int
  12082. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12083. if yyj1 == 0 && yyv1 == nil {
  12084. if yyhl1 {
  12085. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12086. } else {
  12087. yyrl1 = 8
  12088. }
  12089. yyv1 = make([]wrapString, yyrl1)
  12090. yyc1 = true
  12091. }
  12092. yyh1.ElemContainerState(yyj1)
  12093. var yydb1 bool
  12094. if yyj1 >= len(yyv1) {
  12095. yyv1 = append(yyv1, "")
  12096. yyc1 = true
  12097. }
  12098. if yydb1 {
  12099. z.DecSwallow()
  12100. } else {
  12101. yyv1[yyj1].CodecDecodeSelf(d)
  12102. }
  12103. }
  12104. if yyj1 < len(yyv1) {
  12105. yyv1 = yyv1[:yyj1]
  12106. yyc1 = true
  12107. } else if yyj1 == 0 && yyv1 == nil {
  12108. yyv1 = make([]wrapString, 0)
  12109. yyc1 = true
  12110. }
  12111. }
  12112. yyh1.End()
  12113. if yyc1 {
  12114. *v = yyv1
  12115. }
  12116. }
  12117. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  12118. var h codecSelfer19780
  12119. z, r := GenHelperEncoder(e)
  12120. _, _, _ = h, z, r
  12121. if v == nil {
  12122. r.EncodeNil()
  12123. return
  12124. }
  12125. z.EncWriteMapStart(len(v))
  12126. for yyk1, yyv1 := range v {
  12127. z.EncWriteMapElemKey()
  12128. if z.EncBasicHandle().StringToRaw {
  12129. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12130. } else {
  12131. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12132. }
  12133. z.EncWriteMapElemValue()
  12134. r.EncodeUint(uint64(yyv1))
  12135. }
  12136. z.EncWriteMapEnd()
  12137. }
  12138. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  12139. var h codecSelfer19780
  12140. z, r := GenHelperDecoder(d)
  12141. _, _, _ = h, z, r
  12142. yyv1 := *v
  12143. yyl1 := z.DecReadMapStart()
  12144. if yyl1 == codecSelferDecContainerLenNil19780 {
  12145. *v = nil
  12146. } else {
  12147. if yyv1 == nil {
  12148. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 18)
  12149. yyv1 = make(map[string]uint16, yyrl1)
  12150. *v = yyv1
  12151. }
  12152. var yymk1 string
  12153. var yymv1 uint16
  12154. var yymg1, yymdn1 bool
  12155. if z.DecBasicHandle().MapValueReset {
  12156. }
  12157. if yyl1 != 0 {
  12158. yyhl1 := yyl1 > 0
  12159. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12160. z.DecReadMapElemKey()
  12161. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12162. if yymg1 {
  12163. yymv1 = yyv1[yymk1]
  12164. }
  12165. z.DecReadMapElemValue()
  12166. yymdn1 = false
  12167. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  12168. if yymdn1 {
  12169. if z.DecBasicHandle().DeleteOnNilMapValue {
  12170. delete(yyv1, yymk1)
  12171. } else {
  12172. yyv1[yymk1] = 0
  12173. }
  12174. } else if yyv1 != nil {
  12175. yyv1[yymk1] = yymv1
  12176. }
  12177. }
  12178. } // else len==0: TODO: Should we clear map entries?
  12179. z.DecReadMapEnd()
  12180. }
  12181. }
  12182. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  12183. var h codecSelfer19780
  12184. z, r := GenHelperEncoder(e)
  12185. _, _, _ = h, z, r
  12186. if v == nil {
  12187. r.EncodeNil()
  12188. return
  12189. }
  12190. z.EncWriteArrayStart(len(v))
  12191. for _, yyv1 := range v {
  12192. z.EncWriteArrayElem()
  12193. r.EncodeInt(int64(yyv1))
  12194. }
  12195. z.EncWriteArrayEnd()
  12196. }
  12197. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  12198. var h codecSelfer19780
  12199. z, r := GenHelperDecoder(d)
  12200. _, _, _ = h, z, r
  12201. yyv1 := v
  12202. yyh1, yyl1 := z.DecSliceHelperStart()
  12203. if yyl1 == 0 {
  12204. } else {
  12205. yyhl1 := yyl1 > 0
  12206. var yyrl1 int
  12207. _ = yyrl1
  12208. var yyj1 int
  12209. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12210. yyh1.ElemContainerState(yyj1)
  12211. var yydb1 bool
  12212. if yyj1 >= len(yyv1) {
  12213. z.DecArrayCannotExpand(len(v), yyj1+1)
  12214. yydb1 = true
  12215. }
  12216. if yydb1 {
  12217. z.DecSwallow()
  12218. } else {
  12219. yyv1[yyj1] = (int64)(r.DecodeInt64())
  12220. }
  12221. }
  12222. }
  12223. yyh1.End()
  12224. }
  12225. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  12226. var h codecSelfer19780
  12227. z, r := GenHelperEncoder(e)
  12228. _, _, _ = h, z, r
  12229. if v == nil {
  12230. r.EncodeNil()
  12231. return
  12232. }
  12233. z.EncWriteArrayStart(len(v))
  12234. for _, yyv1 := range v {
  12235. z.EncWriteArrayElem()
  12236. if yyv1 == nil {
  12237. r.EncodeNil()
  12238. } else {
  12239. yy2 := *yyv1
  12240. r.EncodeInt(int64(yy2))
  12241. }
  12242. }
  12243. z.EncWriteArrayEnd()
  12244. }
  12245. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  12246. var h codecSelfer19780
  12247. z, r := GenHelperDecoder(d)
  12248. _, _, _ = h, z, r
  12249. yyv1 := *v
  12250. yyh1, yyl1 := z.DecSliceHelperStart()
  12251. var yyc1 bool
  12252. _ = yyc1
  12253. if yyh1.IsNil {
  12254. if yyv1 != nil {
  12255. yyv1 = nil
  12256. yyc1 = true
  12257. }
  12258. } else if yyl1 == 0 {
  12259. if yyv1 == nil {
  12260. yyv1 = []*int64{}
  12261. yyc1 = true
  12262. } else if len(yyv1) != 0 {
  12263. yyv1 = yyv1[:0]
  12264. yyc1 = true
  12265. }
  12266. } else {
  12267. yyhl1 := yyl1 > 0
  12268. var yyrl1 int
  12269. _ = yyrl1
  12270. if yyhl1 {
  12271. if yyl1 > cap(yyv1) {
  12272. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12273. if yyrl1 <= cap(yyv1) {
  12274. yyv1 = yyv1[:yyrl1]
  12275. } else {
  12276. yyv1 = make([]*int64, yyrl1)
  12277. }
  12278. yyc1 = true
  12279. } else if yyl1 != len(yyv1) {
  12280. yyv1 = yyv1[:yyl1]
  12281. yyc1 = true
  12282. }
  12283. }
  12284. var yyj1 int
  12285. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12286. if yyj1 == 0 && yyv1 == nil {
  12287. if yyhl1 {
  12288. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12289. } else {
  12290. yyrl1 = 8
  12291. }
  12292. yyv1 = make([]*int64, yyrl1)
  12293. yyc1 = true
  12294. }
  12295. yyh1.ElemContainerState(yyj1)
  12296. var yydb1 bool
  12297. if yyj1 >= len(yyv1) {
  12298. yyv1 = append(yyv1, nil)
  12299. yyc1 = true
  12300. }
  12301. if yydb1 {
  12302. z.DecSwallow()
  12303. } else {
  12304. if r.TryNil() {
  12305. yyv1[yyj1] = nil
  12306. } else {
  12307. if yyv1[yyj1] == nil {
  12308. yyv1[yyj1] = new(int64)
  12309. }
  12310. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  12311. }
  12312. }
  12313. }
  12314. if yyj1 < len(yyv1) {
  12315. yyv1 = yyv1[:yyj1]
  12316. yyc1 = true
  12317. } else if yyj1 == 0 && yyv1 == nil {
  12318. yyv1 = make([]*int64, 0)
  12319. yyc1 = true
  12320. }
  12321. }
  12322. yyh1.End()
  12323. if yyc1 {
  12324. *v = yyv1
  12325. }
  12326. }
  12327. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  12328. var h codecSelfer19780
  12329. z, r := GenHelperEncoder(e)
  12330. _, _, _ = h, z, r
  12331. if v == nil {
  12332. r.EncodeNil()
  12333. return
  12334. }
  12335. z.EncWriteArrayStart(len(v))
  12336. for _, yyv1 := range v {
  12337. z.EncWriteArrayElem()
  12338. yy2 := &yyv1
  12339. yy2.CodecEncodeSelf(e)
  12340. }
  12341. z.EncWriteArrayEnd()
  12342. }
  12343. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  12344. var h codecSelfer19780
  12345. z, r := GenHelperDecoder(d)
  12346. _, _, _ = h, z, r
  12347. yyv1 := *v
  12348. yyh1, yyl1 := z.DecSliceHelperStart()
  12349. var yyc1 bool
  12350. _ = yyc1
  12351. if yyh1.IsNil {
  12352. if yyv1 != nil {
  12353. yyv1 = nil
  12354. yyc1 = true
  12355. }
  12356. } else if yyl1 == 0 {
  12357. if yyv1 == nil {
  12358. yyv1 = []stringUint64T{}
  12359. yyc1 = true
  12360. } else if len(yyv1) != 0 {
  12361. yyv1 = yyv1[:0]
  12362. yyc1 = true
  12363. }
  12364. } else {
  12365. yyhl1 := yyl1 > 0
  12366. var yyrl1 int
  12367. _ = yyrl1
  12368. if yyhl1 {
  12369. if yyl1 > cap(yyv1) {
  12370. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12371. if yyrl1 <= cap(yyv1) {
  12372. yyv1 = yyv1[:yyrl1]
  12373. } else {
  12374. yyv1 = make([]stringUint64T, yyrl1)
  12375. }
  12376. yyc1 = true
  12377. } else if yyl1 != len(yyv1) {
  12378. yyv1 = yyv1[:yyl1]
  12379. yyc1 = true
  12380. }
  12381. }
  12382. var yyj1 int
  12383. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12384. if yyj1 == 0 && yyv1 == nil {
  12385. if yyhl1 {
  12386. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12387. } else {
  12388. yyrl1 = 8
  12389. }
  12390. yyv1 = make([]stringUint64T, yyrl1)
  12391. yyc1 = true
  12392. }
  12393. yyh1.ElemContainerState(yyj1)
  12394. var yydb1 bool
  12395. if yyj1 >= len(yyv1) {
  12396. yyv1 = append(yyv1, stringUint64T{})
  12397. yyc1 = true
  12398. }
  12399. if yydb1 {
  12400. z.DecSwallow()
  12401. } else {
  12402. yyv1[yyj1].CodecDecodeSelf(d)
  12403. }
  12404. }
  12405. if yyj1 < len(yyv1) {
  12406. yyv1 = yyv1[:yyj1]
  12407. yyc1 = true
  12408. } else if yyj1 == 0 && yyv1 == nil {
  12409. yyv1 = make([]stringUint64T, 0)
  12410. yyc1 = true
  12411. }
  12412. }
  12413. yyh1.End()
  12414. if yyc1 {
  12415. *v = yyv1
  12416. }
  12417. }
  12418. func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
  12419. var h codecSelfer19780
  12420. z, r := GenHelperEncoder(e)
  12421. _, _, _ = h, z, r
  12422. if v == nil {
  12423. r.EncodeNil()
  12424. return
  12425. }
  12426. z.EncWriteMapStart(len(v))
  12427. for yyk1, yyv1 := range v {
  12428. z.EncWriteMapElemKey()
  12429. if z.EncBasicHandle().StringToRaw {
  12430. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12431. } else {
  12432. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12433. }
  12434. z.EncWriteMapElemValue()
  12435. if yyv1 == nil {
  12436. r.EncodeNil()
  12437. } else {
  12438. yyv1.CodecEncodeSelf(e)
  12439. }
  12440. }
  12441. z.EncWriteMapEnd()
  12442. }
  12443. func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
  12444. var h codecSelfer19780
  12445. z, r := GenHelperDecoder(d)
  12446. _, _, _ = h, z, r
  12447. yyv1 := *v
  12448. yyl1 := z.DecReadMapStart()
  12449. if yyl1 == codecSelferDecContainerLenNil19780 {
  12450. *v = nil
  12451. } else {
  12452. if yyv1 == nil {
  12453. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12454. yyv1 = make(map[string]*stringUint64T, yyrl1)
  12455. *v = yyv1
  12456. }
  12457. var yymk1 string
  12458. var yymv1 *stringUint64T
  12459. var yymg1, yymdn1, yyms1, yymok1 bool
  12460. if z.DecBasicHandle().MapValueReset {
  12461. yymg1 = true
  12462. }
  12463. if yyl1 != 0 {
  12464. yyhl1 := yyl1 > 0
  12465. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12466. z.DecReadMapElemKey()
  12467. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12468. yyms1 = true
  12469. if yymg1 {
  12470. yymv1, yymok1 = yyv1[yymk1]
  12471. if yymok1 {
  12472. yyms1 = false
  12473. }
  12474. } else {
  12475. yymv1 = nil
  12476. }
  12477. z.DecReadMapElemValue()
  12478. yymdn1 = false
  12479. if r.TryNil() {
  12480. yymdn1 = true
  12481. } else {
  12482. if yymv1 == nil {
  12483. yymv1 = new(stringUint64T)
  12484. }
  12485. yymv1.CodecDecodeSelf(d)
  12486. }
  12487. if yymdn1 {
  12488. if z.DecBasicHandle().DeleteOnNilMapValue {
  12489. delete(yyv1, yymk1)
  12490. } else {
  12491. yyv1[yymk1] = nil
  12492. }
  12493. } else if yyms1 && yyv1 != nil {
  12494. yyv1[yymk1] = yymv1
  12495. }
  12496. }
  12497. } // else len==0: TODO: Should we clear map entries?
  12498. z.DecReadMapEnd()
  12499. }
  12500. }
  12501. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  12502. var h codecSelfer19780
  12503. z, r := GenHelperEncoder(e)
  12504. _, _, _ = h, z, r
  12505. if v == nil {
  12506. r.EncodeNil()
  12507. return
  12508. }
  12509. z.EncWriteMapStart(len(v))
  12510. for yyk1, yyv1 := range v {
  12511. z.EncWriteMapElemKey()
  12512. if z.EncBasicHandle().StringToRaw {
  12513. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12514. } else {
  12515. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12516. }
  12517. z.EncWriteMapElemValue()
  12518. if yyv1 == nil {
  12519. r.EncodeNil()
  12520. } else {
  12521. yyv1.CodecEncodeSelf(e)
  12522. }
  12523. }
  12524. z.EncWriteMapEnd()
  12525. }
  12526. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  12527. var h codecSelfer19780
  12528. z, r := GenHelperDecoder(d)
  12529. _, _, _ = h, z, r
  12530. yyv1 := *v
  12531. yyl1 := z.DecReadMapStart()
  12532. if yyl1 == codecSelferDecContainerLenNil19780 {
  12533. *v = nil
  12534. } else {
  12535. if yyv1 == nil {
  12536. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12537. yyv1 = make(map[string]*TestStruc, yyrl1)
  12538. *v = yyv1
  12539. }
  12540. var yymk1 string
  12541. var yymv1 *TestStruc
  12542. var yymg1, yymdn1, yyms1, yymok1 bool
  12543. if z.DecBasicHandle().MapValueReset {
  12544. yymg1 = true
  12545. }
  12546. if yyl1 != 0 {
  12547. yyhl1 := yyl1 > 0
  12548. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12549. z.DecReadMapElemKey()
  12550. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12551. yyms1 = true
  12552. if yymg1 {
  12553. yymv1, yymok1 = yyv1[yymk1]
  12554. if yymok1 {
  12555. yyms1 = false
  12556. }
  12557. } else {
  12558. yymv1 = nil
  12559. }
  12560. z.DecReadMapElemValue()
  12561. yymdn1 = false
  12562. if r.TryNil() {
  12563. yymdn1 = true
  12564. } else {
  12565. if yymv1 == nil {
  12566. yymv1 = new(TestStruc)
  12567. }
  12568. yymv1.CodecDecodeSelf(d)
  12569. }
  12570. if yymdn1 {
  12571. if z.DecBasicHandle().DeleteOnNilMapValue {
  12572. delete(yyv1, yymk1)
  12573. } else {
  12574. yyv1[yymk1] = nil
  12575. }
  12576. } else if yyms1 && yyv1 != nil {
  12577. yyv1[yymk1] = yymv1
  12578. }
  12579. }
  12580. } // else len==0: TODO: Should we clear map entries?
  12581. z.DecReadMapEnd()
  12582. }
  12583. }
  12584. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  12585. var h codecSelfer19780
  12586. z, r := GenHelperEncoder(e)
  12587. _, _, _ = h, z, r
  12588. if v == nil {
  12589. r.EncodeNil()
  12590. return
  12591. }
  12592. z.EncWriteMapStart(len(v))
  12593. for yyk1, yyv1 := range v {
  12594. z.EncWriteMapElemKey()
  12595. if z.EncBasicHandle().StringToRaw {
  12596. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12597. } else {
  12598. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12599. }
  12600. z.EncWriteMapElemValue()
  12601. yy3 := &yyv1
  12602. yy3.CodecEncodeSelf(e)
  12603. }
  12604. z.EncWriteMapEnd()
  12605. }
  12606. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  12607. var h codecSelfer19780
  12608. z, r := GenHelperDecoder(d)
  12609. _, _, _ = h, z, r
  12610. yyv1 := *v
  12611. yyl1 := z.DecReadMapStart()
  12612. if yyl1 == codecSelferDecContainerLenNil19780 {
  12613. *v = nil
  12614. } else {
  12615. if yyv1 == nil {
  12616. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1224)
  12617. yyv1 = make(map[string]TestStruc, yyrl1)
  12618. *v = yyv1
  12619. }
  12620. var yymk1 string
  12621. var yymv1 TestStruc
  12622. var yymg1, yymdn1 bool
  12623. if z.DecBasicHandle().MapValueReset {
  12624. yymg1 = true
  12625. }
  12626. if yyl1 != 0 {
  12627. yyhl1 := yyl1 > 0
  12628. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12629. z.DecReadMapElemKey()
  12630. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12631. if yymg1 {
  12632. yymv1 = yyv1[yymk1]
  12633. } else {
  12634. yymv1 = TestStruc{}
  12635. }
  12636. z.DecReadMapElemValue()
  12637. yymdn1 = false
  12638. yymv1.CodecDecodeSelf(d)
  12639. if yymdn1 {
  12640. if z.DecBasicHandle().DeleteOnNilMapValue {
  12641. delete(yyv1, yymk1)
  12642. } else {
  12643. yyv1[yymk1] = TestStruc{}
  12644. }
  12645. } else if yyv1 != nil {
  12646. yyv1[yymk1] = yymv1
  12647. }
  12648. }
  12649. } // else len==0: TODO: Should we clear map entries?
  12650. z.DecReadMapEnd()
  12651. }
  12652. }
  12653. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  12654. var h codecSelfer19780
  12655. z, r := GenHelperEncoder(e)
  12656. _, _, _ = h, z, r
  12657. if v == nil {
  12658. r.EncodeNil()
  12659. return
  12660. }
  12661. z.EncWriteArrayStart(len(v))
  12662. for _, yyv1 := range v {
  12663. z.EncWriteArrayElem()
  12664. if yyv1 == nil {
  12665. r.EncodeNil()
  12666. } else {
  12667. yyv1.CodecEncodeSelf(e)
  12668. }
  12669. }
  12670. z.EncWriteArrayEnd()
  12671. }
  12672. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  12673. var h codecSelfer19780
  12674. z, r := GenHelperDecoder(d)
  12675. _, _, _ = h, z, r
  12676. yyv1 := *v
  12677. yyh1, yyl1 := z.DecSliceHelperStart()
  12678. var yyc1 bool
  12679. _ = yyc1
  12680. if yyh1.IsNil {
  12681. if yyv1 != nil {
  12682. yyv1 = nil
  12683. yyc1 = true
  12684. }
  12685. } else if yyl1 == 0 {
  12686. if yyv1 == nil {
  12687. yyv1 = []*TestStruc{}
  12688. yyc1 = true
  12689. } else if len(yyv1) != 0 {
  12690. yyv1 = yyv1[:0]
  12691. yyc1 = true
  12692. }
  12693. } else {
  12694. yyhl1 := yyl1 > 0
  12695. var yyrl1 int
  12696. _ = yyrl1
  12697. if yyhl1 {
  12698. if yyl1 > cap(yyv1) {
  12699. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12700. if yyrl1 <= cap(yyv1) {
  12701. yyv1 = yyv1[:yyrl1]
  12702. } else {
  12703. yyv1 = make([]*TestStruc, yyrl1)
  12704. }
  12705. yyc1 = true
  12706. } else if yyl1 != len(yyv1) {
  12707. yyv1 = yyv1[:yyl1]
  12708. yyc1 = true
  12709. }
  12710. }
  12711. var yyj1 int
  12712. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12713. if yyj1 == 0 && yyv1 == nil {
  12714. if yyhl1 {
  12715. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12716. } else {
  12717. yyrl1 = 8
  12718. }
  12719. yyv1 = make([]*TestStruc, yyrl1)
  12720. yyc1 = true
  12721. }
  12722. yyh1.ElemContainerState(yyj1)
  12723. var yydb1 bool
  12724. if yyj1 >= len(yyv1) {
  12725. yyv1 = append(yyv1, nil)
  12726. yyc1 = true
  12727. }
  12728. if yydb1 {
  12729. z.DecSwallow()
  12730. } else {
  12731. if r.TryNil() {
  12732. yyv1[yyj1] = nil
  12733. } else {
  12734. if yyv1[yyj1] == nil {
  12735. yyv1[yyj1] = new(TestStruc)
  12736. }
  12737. yyv1[yyj1].CodecDecodeSelf(d)
  12738. }
  12739. }
  12740. }
  12741. if yyj1 < len(yyv1) {
  12742. yyv1 = yyv1[:yyj1]
  12743. yyc1 = true
  12744. } else if yyj1 == 0 && yyv1 == nil {
  12745. yyv1 = make([]*TestStruc, 0)
  12746. yyc1 = true
  12747. }
  12748. }
  12749. yyh1.End()
  12750. if yyc1 {
  12751. *v = yyv1
  12752. }
  12753. }
  12754. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  12755. var h codecSelfer19780
  12756. z, r := GenHelperEncoder(e)
  12757. _, _, _ = h, z, r
  12758. if v == nil {
  12759. r.EncodeNil()
  12760. return
  12761. }
  12762. z.EncWriteArrayStart(len(v))
  12763. for _, yyv1 := range v {
  12764. z.EncWriteArrayElem()
  12765. if z.EncBasicHandle().StringToRaw {
  12766. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12767. } else {
  12768. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12769. }
  12770. }
  12771. z.EncWriteArrayEnd()
  12772. }
  12773. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  12774. var h codecSelfer19780
  12775. z, r := GenHelperDecoder(d)
  12776. _, _, _ = h, z, r
  12777. yyv1 := v
  12778. yyh1, yyl1 := z.DecSliceHelperStart()
  12779. if yyl1 == 0 {
  12780. } else {
  12781. yyhl1 := yyl1 > 0
  12782. var yyrl1 int
  12783. _ = yyrl1
  12784. var yyj1 int
  12785. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12786. yyh1.ElemContainerState(yyj1)
  12787. var yydb1 bool
  12788. if yyj1 >= len(yyv1) {
  12789. z.DecArrayCannotExpand(len(v), yyj1+1)
  12790. yydb1 = true
  12791. }
  12792. if yydb1 {
  12793. z.DecSwallow()
  12794. } else {
  12795. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  12796. }
  12797. }
  12798. }
  12799. yyh1.End()
  12800. }
  12801. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  12802. var h codecSelfer19780
  12803. z, r := GenHelperEncoder(e)
  12804. _, _, _ = h, z, r
  12805. if v == nil {
  12806. r.EncodeNil()
  12807. return
  12808. }
  12809. r.EncodeStringBytesRaw([]byte(v))
  12810. }
  12811. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  12812. var h codecSelfer19780
  12813. z, r := GenHelperDecoder(d)
  12814. _, _, _ = h, z, r
  12815. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  12816. }
  12817. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  12818. var h codecSelfer19780
  12819. z, r := GenHelperEncoder(e)
  12820. _, _, _ = h, z, r
  12821. if v == nil {
  12822. r.EncodeNil()
  12823. return
  12824. }
  12825. if v == nil {
  12826. r.EncodeNil()
  12827. } else {
  12828. var sch1 []string
  12829. Lsch1:
  12830. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  12831. case timeout1 == 0: // only consume available
  12832. for {
  12833. select {
  12834. case b1 := <-v:
  12835. sch1 = append(sch1, b1)
  12836. default:
  12837. break Lsch1
  12838. }
  12839. }
  12840. case timeout1 > 0: // consume until timeout
  12841. tt1 := time.NewTimer(timeout1)
  12842. for {
  12843. select {
  12844. case b1 := <-v:
  12845. sch1 = append(sch1, b1)
  12846. case <-tt1.C:
  12847. // close(tt.C)
  12848. break Lsch1
  12849. }
  12850. }
  12851. default: // consume until close
  12852. for b1 := range v {
  12853. sch1 = append(sch1, b1)
  12854. }
  12855. }
  12856. z.EncWriteArrayStart(len(sch1))
  12857. for _, yyv1 := range sch1 {
  12858. z.EncWriteArrayElem()
  12859. if z.EncBasicHandle().StringToRaw {
  12860. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12861. } else {
  12862. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12863. }
  12864. }
  12865. z.EncWriteArrayEnd()
  12866. }
  12867. }
  12868. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  12869. var h codecSelfer19780
  12870. z, r := GenHelperDecoder(d)
  12871. _, _, _ = h, z, r
  12872. yyv1 := *v
  12873. yyh1, yyl1 := z.DecSliceHelperStart()
  12874. var yyc1 bool
  12875. _ = yyc1
  12876. if yyh1.IsNil {
  12877. if yyv1 != nil {
  12878. yyv1 = nil
  12879. yyc1 = true
  12880. }
  12881. } else if yyl1 == 0 {
  12882. if yyv1 == nil {
  12883. yyv1 = make(chan string, 0)
  12884. yyc1 = true
  12885. }
  12886. } else {
  12887. yyhl1 := yyl1 > 0
  12888. var yyrl1 int
  12889. _ = yyrl1
  12890. var yyj1 int
  12891. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12892. if yyj1 == 0 && yyv1 == nil {
  12893. if yyhl1 {
  12894. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12895. } else {
  12896. yyrl1 = 64
  12897. }
  12898. yyv1 = make(chan string, yyrl1)
  12899. yyc1 = true
  12900. }
  12901. yyh1.ElemContainerState(yyj1)
  12902. var yyvcx1 string
  12903. yyvcx1 = (string)(string(r.DecodeStringAsBytes()))
  12904. yyv1 <- yyvcx1
  12905. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  12906. }
  12907. }
  12908. yyh1.End()
  12909. if yyc1 {
  12910. *v = yyv1
  12911. }
  12912. }
  12913. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  12914. var h codecSelfer19780
  12915. z, r := GenHelperEncoder(e)
  12916. _, _, _ = h, z, r
  12917. if v == nil {
  12918. r.EncodeNil()
  12919. return
  12920. }
  12921. z.EncWriteMapStart(len(v))
  12922. for yyk1, yyv1 := range v {
  12923. z.EncWriteMapElemKey()
  12924. r.EncodeBool(bool(yyk1))
  12925. z.EncWriteMapElemValue()
  12926. yy3 := &yyv1
  12927. z.EncFallback(yy3)
  12928. }
  12929. z.EncWriteMapEnd()
  12930. }
  12931. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  12932. var h codecSelfer19780
  12933. z, r := GenHelperDecoder(d)
  12934. _, _, _ = h, z, r
  12935. yyv1 := *v
  12936. yyl1 := z.DecReadMapStart()
  12937. if yyl1 == codecSelferDecContainerLenNil19780 {
  12938. *v = nil
  12939. } else {
  12940. if yyv1 == nil {
  12941. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  12942. yyv1 = make(map[bool]struct{}, yyrl1)
  12943. *v = yyv1
  12944. }
  12945. var yymk1 bool
  12946. var yymv1 struct{}
  12947. var yymg1, yymdn1 bool
  12948. if z.DecBasicHandle().MapValueReset {
  12949. yymg1 = true
  12950. }
  12951. if yyl1 != 0 {
  12952. yyhl1 := yyl1 > 0
  12953. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12954. z.DecReadMapElemKey()
  12955. yymk1 = (bool)(r.DecodeBool())
  12956. if yymg1 {
  12957. yymv1 = yyv1[yymk1]
  12958. } else {
  12959. yymv1 = struct{}{}
  12960. }
  12961. z.DecReadMapElemValue()
  12962. yymdn1 = false
  12963. z.DecFallback(&yymv1, false)
  12964. if yymdn1 {
  12965. if z.DecBasicHandle().DeleteOnNilMapValue {
  12966. delete(yyv1, yymk1)
  12967. } else {
  12968. yyv1[yymk1] = struct{}{}
  12969. }
  12970. } else if yyv1 != nil {
  12971. yyv1[yymk1] = yymv1
  12972. }
  12973. }
  12974. } // else len==0: TODO: Should we clear map entries?
  12975. z.DecReadMapEnd()
  12976. }
  12977. }
  12978. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  12979. var h codecSelfer19780
  12980. z, r := GenHelperEncoder(e)
  12981. _, _, _ = h, z, r
  12982. if v == nil {
  12983. r.EncodeNil()
  12984. return
  12985. }
  12986. z.EncWriteMapStart(len(v))
  12987. for yyk1, yyv1 := range v {
  12988. z.EncWriteMapElemKey()
  12989. r.EncodeInt(int64(yyk1))
  12990. z.EncWriteMapElemValue()
  12991. yyv1.CodecEncodeSelf(e)
  12992. }
  12993. z.EncWriteMapEnd()
  12994. }
  12995. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  12996. var h codecSelfer19780
  12997. z, r := GenHelperDecoder(d)
  12998. _, _, _ = h, z, r
  12999. yyv1 := *v
  13000. yyl1 := z.DecReadMapStart()
  13001. if yyl1 == codecSelferDecContainerLenNil19780 {
  13002. *v = nil
  13003. } else {
  13004. if yyv1 == nil {
  13005. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13006. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  13007. *v = yyv1
  13008. }
  13009. var yymk1 int
  13010. var yymv1 wrapUint64Slice
  13011. var yymg1, yymdn1 bool
  13012. if z.DecBasicHandle().MapValueReset {
  13013. yymg1 = true
  13014. }
  13015. if yyl1 != 0 {
  13016. yyhl1 := yyl1 > 0
  13017. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13018. z.DecReadMapElemKey()
  13019. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  13020. if yymg1 {
  13021. yymv1 = yyv1[yymk1]
  13022. } else {
  13023. yymv1 = nil
  13024. }
  13025. z.DecReadMapElemValue()
  13026. yymdn1 = false
  13027. yymv1.CodecDecodeSelf(d)
  13028. if yymdn1 {
  13029. if z.DecBasicHandle().DeleteOnNilMapValue {
  13030. delete(yyv1, yymk1)
  13031. } else {
  13032. yyv1[yymk1] = nil
  13033. }
  13034. } else if yyv1 != nil {
  13035. yyv1[yymk1] = yymv1
  13036. }
  13037. }
  13038. } // else len==0: TODO: Should we clear map entries?
  13039. z.DecReadMapEnd()
  13040. }
  13041. }
  13042. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  13043. var h codecSelfer19780
  13044. z, r := GenHelperEncoder(e)
  13045. _, _, _ = h, z, r
  13046. if v == nil {
  13047. r.EncodeNil()
  13048. return
  13049. }
  13050. z.EncWriteMapStart(len(v))
  13051. for yyk1, yyv1 := range v {
  13052. z.EncWriteMapElemKey()
  13053. r.EncodeFloat64(float64(yyk1))
  13054. z.EncWriteMapElemValue()
  13055. yyv1.CodecEncodeSelf(e)
  13056. }
  13057. z.EncWriteMapEnd()
  13058. }
  13059. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  13060. var h codecSelfer19780
  13061. z, r := GenHelperDecoder(d)
  13062. _, _, _ = h, z, r
  13063. yyv1 := *v
  13064. yyl1 := z.DecReadMapStart()
  13065. if yyl1 == codecSelferDecContainerLenNil19780 {
  13066. *v = nil
  13067. } else {
  13068. if yyv1 == nil {
  13069. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13070. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  13071. *v = yyv1
  13072. }
  13073. var yymk1 float64
  13074. var yymv1 wrapStringSlice
  13075. var yymg1, yymdn1 bool
  13076. if z.DecBasicHandle().MapValueReset {
  13077. yymg1 = true
  13078. }
  13079. if yyl1 != 0 {
  13080. yyhl1 := yyl1 > 0
  13081. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13082. z.DecReadMapElemKey()
  13083. yymk1 = (float64)(r.DecodeFloat64())
  13084. if yymg1 {
  13085. yymv1 = yyv1[yymk1]
  13086. } else {
  13087. yymv1 = nil
  13088. }
  13089. z.DecReadMapElemValue()
  13090. yymdn1 = false
  13091. yymv1.CodecDecodeSelf(d)
  13092. if yymdn1 {
  13093. if z.DecBasicHandle().DeleteOnNilMapValue {
  13094. delete(yyv1, yymk1)
  13095. } else {
  13096. yyv1[yymk1] = nil
  13097. }
  13098. } else if yyv1 != nil {
  13099. yyv1[yymk1] = yymv1
  13100. }
  13101. }
  13102. } // else len==0: TODO: Should we clear map entries?
  13103. z.DecReadMapEnd()
  13104. }
  13105. }
  13106. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  13107. var h codecSelfer19780
  13108. z, r := GenHelperEncoder(e)
  13109. _, _, _ = h, z, r
  13110. if v == nil {
  13111. r.EncodeNil()
  13112. return
  13113. }
  13114. z.EncWriteMapStart(len(v))
  13115. for yyk1, yyv1 := range v {
  13116. z.EncWriteMapElemKey()
  13117. r.EncodeFloat32(float32(yyk1))
  13118. z.EncWriteMapElemValue()
  13119. yyv1.CodecEncodeSelf(e)
  13120. }
  13121. z.EncWriteMapEnd()
  13122. }
  13123. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  13124. var h codecSelfer19780
  13125. z, r := GenHelperDecoder(d)
  13126. _, _, _ = h, z, r
  13127. yyv1 := *v
  13128. yyl1 := z.DecReadMapStart()
  13129. if yyl1 == codecSelferDecContainerLenNil19780 {
  13130. *v = nil
  13131. } else {
  13132. if yyv1 == nil {
  13133. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 28)
  13134. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  13135. *v = yyv1
  13136. }
  13137. var yymk1 float32
  13138. var yymv1 wrapStringSlice
  13139. var yymg1, yymdn1 bool
  13140. if z.DecBasicHandle().MapValueReset {
  13141. yymg1 = true
  13142. }
  13143. if yyl1 != 0 {
  13144. yyhl1 := yyl1 > 0
  13145. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13146. z.DecReadMapElemKey()
  13147. yymk1 = (float32)(z.DecDecodeFloat32())
  13148. if yymg1 {
  13149. yymv1 = yyv1[yymk1]
  13150. } else {
  13151. yymv1 = nil
  13152. }
  13153. z.DecReadMapElemValue()
  13154. yymdn1 = false
  13155. yymv1.CodecDecodeSelf(d)
  13156. if yymdn1 {
  13157. if z.DecBasicHandle().DeleteOnNilMapValue {
  13158. delete(yyv1, yymk1)
  13159. } else {
  13160. yyv1[yymk1] = nil
  13161. }
  13162. } else if yyv1 != nil {
  13163. yyv1[yymk1] = yymv1
  13164. }
  13165. }
  13166. } // else len==0: TODO: Should we clear map entries?
  13167. z.DecReadMapEnd()
  13168. }
  13169. }
  13170. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  13171. var h codecSelfer19780
  13172. z, r := GenHelperEncoder(e)
  13173. _, _, _ = h, z, r
  13174. if v == nil {
  13175. r.EncodeNil()
  13176. return
  13177. }
  13178. z.EncWriteMapStart(len(v))
  13179. for yyk1, yyv1 := range v {
  13180. z.EncWriteMapElemKey()
  13181. r.EncodeUint(uint64(yyk1))
  13182. z.EncWriteMapElemValue()
  13183. yyv1.CodecEncodeSelf(e)
  13184. }
  13185. z.EncWriteMapEnd()
  13186. }
  13187. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  13188. var h codecSelfer19780
  13189. z, r := GenHelperDecoder(d)
  13190. _, _, _ = h, z, r
  13191. yyv1 := *v
  13192. yyl1 := z.DecReadMapStart()
  13193. if yyl1 == codecSelferDecContainerLenNil19780 {
  13194. *v = nil
  13195. } else {
  13196. if yyv1 == nil {
  13197. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13198. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  13199. *v = yyv1
  13200. }
  13201. var yymk1 uint64
  13202. var yymv1 wrapStringSlice
  13203. var yymg1, yymdn1 bool
  13204. if z.DecBasicHandle().MapValueReset {
  13205. yymg1 = true
  13206. }
  13207. if yyl1 != 0 {
  13208. yyhl1 := yyl1 > 0
  13209. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13210. z.DecReadMapElemKey()
  13211. yymk1 = (uint64)(r.DecodeUint64())
  13212. if yymg1 {
  13213. yymv1 = yyv1[yymk1]
  13214. } else {
  13215. yymv1 = nil
  13216. }
  13217. z.DecReadMapElemValue()
  13218. yymdn1 = false
  13219. yymv1.CodecDecodeSelf(d)
  13220. if yymdn1 {
  13221. if z.DecBasicHandle().DeleteOnNilMapValue {
  13222. delete(yyv1, yymk1)
  13223. } else {
  13224. yyv1[yymk1] = nil
  13225. }
  13226. } else if yyv1 != nil {
  13227. yyv1[yymk1] = yymv1
  13228. }
  13229. }
  13230. } // else len==0: TODO: Should we clear map entries?
  13231. z.DecReadMapEnd()
  13232. }
  13233. }
  13234. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  13235. var h codecSelfer19780
  13236. z, r := GenHelperEncoder(e)
  13237. _, _, _ = h, z, r
  13238. if v == nil {
  13239. r.EncodeNil()
  13240. return
  13241. }
  13242. z.EncWriteMapStart(len(v))
  13243. for yyk1, yyv1 := range v {
  13244. z.EncWriteMapElemKey()
  13245. yy2 := &yyk1
  13246. yy2.CodecEncodeSelf(e)
  13247. z.EncWriteMapElemValue()
  13248. yyv1.CodecEncodeSelf(e)
  13249. }
  13250. z.EncWriteMapEnd()
  13251. }
  13252. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  13253. var h codecSelfer19780
  13254. z, r := GenHelperDecoder(d)
  13255. _, _, _ = h, z, r
  13256. yyv1 := *v
  13257. yyl1 := z.DecReadMapStart()
  13258. if yyl1 == codecSelferDecContainerLenNil19780 {
  13259. *v = nil
  13260. } else {
  13261. if yyv1 == nil {
  13262. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
  13263. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  13264. *v = yyv1
  13265. }
  13266. var yymk1 stringUint64T
  13267. var yymv1 wrapStringSlice
  13268. var yymg1, yymdn1 bool
  13269. if z.DecBasicHandle().MapValueReset {
  13270. yymg1 = true
  13271. }
  13272. if yyl1 != 0 {
  13273. yyhl1 := yyl1 > 0
  13274. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13275. z.DecReadMapElemKey()
  13276. yymk1.CodecDecodeSelf(d)
  13277. if yymg1 {
  13278. yymv1 = yyv1[yymk1]
  13279. } else {
  13280. yymv1 = nil
  13281. }
  13282. z.DecReadMapElemValue()
  13283. yymdn1 = false
  13284. yymv1.CodecDecodeSelf(d)
  13285. if yymdn1 {
  13286. if z.DecBasicHandle().DeleteOnNilMapValue {
  13287. delete(yyv1, yymk1)
  13288. } else {
  13289. yyv1[yymk1] = nil
  13290. }
  13291. } else if yyv1 != nil {
  13292. yyv1[yymk1] = yymv1
  13293. }
  13294. }
  13295. } // else len==0: TODO: Should we clear map entries?
  13296. z.DecReadMapEnd()
  13297. }
  13298. }
  13299. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  13300. var h codecSelfer19780
  13301. z, r := GenHelperEncoder(e)
  13302. _, _, _ = h, z, r
  13303. if v == nil {
  13304. r.EncodeNil()
  13305. return
  13306. }
  13307. z.EncWriteArrayStart(len(v))
  13308. for _, yyv1 := range v {
  13309. z.EncWriteArrayElem()
  13310. yyv1.CodecEncodeSelf(e)
  13311. }
  13312. z.EncWriteArrayEnd()
  13313. }
  13314. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  13315. var h codecSelfer19780
  13316. z, r := GenHelperDecoder(d)
  13317. _, _, _ = h, z, r
  13318. yyv1 := *v
  13319. yyh1, yyl1 := z.DecSliceHelperStart()
  13320. var yyc1 bool
  13321. _ = yyc1
  13322. if yyh1.IsNil {
  13323. if yyv1 != nil {
  13324. yyv1 = nil
  13325. yyc1 = true
  13326. }
  13327. } else if yyl1 == 0 {
  13328. if yyv1 == nil {
  13329. yyv1 = []wrapBytes{}
  13330. yyc1 = true
  13331. } else if len(yyv1) != 0 {
  13332. yyv1 = yyv1[:0]
  13333. yyc1 = true
  13334. }
  13335. } else {
  13336. yyhl1 := yyl1 > 0
  13337. var yyrl1 int
  13338. _ = yyrl1
  13339. if yyhl1 {
  13340. if yyl1 > cap(yyv1) {
  13341. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13342. if yyrl1 <= cap(yyv1) {
  13343. yyv1 = yyv1[:yyrl1]
  13344. } else {
  13345. yyv1 = make([]wrapBytes, yyrl1)
  13346. }
  13347. yyc1 = true
  13348. } else if yyl1 != len(yyv1) {
  13349. yyv1 = yyv1[:yyl1]
  13350. yyc1 = true
  13351. }
  13352. }
  13353. var yyj1 int
  13354. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13355. if yyj1 == 0 && yyv1 == nil {
  13356. if yyhl1 {
  13357. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13358. } else {
  13359. yyrl1 = 8
  13360. }
  13361. yyv1 = make([]wrapBytes, yyrl1)
  13362. yyc1 = true
  13363. }
  13364. yyh1.ElemContainerState(yyj1)
  13365. var yydb1 bool
  13366. if yyj1 >= len(yyv1) {
  13367. yyv1 = append(yyv1, nil)
  13368. yyc1 = true
  13369. }
  13370. if yydb1 {
  13371. z.DecSwallow()
  13372. } else {
  13373. yyv1[yyj1].CodecDecodeSelf(d)
  13374. }
  13375. }
  13376. if yyj1 < len(yyv1) {
  13377. yyv1 = yyv1[:yyj1]
  13378. yyc1 = true
  13379. } else if yyj1 == 0 && yyv1 == nil {
  13380. yyv1 = make([]wrapBytes, 0)
  13381. yyc1 = true
  13382. }
  13383. }
  13384. yyh1.End()
  13385. if yyc1 {
  13386. *v = yyv1
  13387. }
  13388. }
  13389. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  13390. var h codecSelfer19780
  13391. z, r := GenHelperEncoder(e)
  13392. _, _, _ = h, z, r
  13393. if v == nil {
  13394. r.EncodeNil()
  13395. return
  13396. }
  13397. z.EncWriteArrayStart(len(v))
  13398. for _, yyv1 := range v {
  13399. z.EncWriteArrayElem()
  13400. yyv1.CodecEncodeSelf(e)
  13401. }
  13402. z.EncWriteArrayEnd()
  13403. }
  13404. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  13405. var h codecSelfer19780
  13406. z, r := GenHelperDecoder(d)
  13407. _, _, _ = h, z, r
  13408. yyv1 := *v
  13409. yyh1, yyl1 := z.DecSliceHelperStart()
  13410. var yyc1 bool
  13411. _ = yyc1
  13412. if yyh1.IsNil {
  13413. if yyv1 != nil {
  13414. yyv1 = nil
  13415. yyc1 = true
  13416. }
  13417. } else if yyl1 == 0 {
  13418. if yyv1 == nil {
  13419. yyv1 = []wrapUint8{}
  13420. yyc1 = true
  13421. } else if len(yyv1) != 0 {
  13422. yyv1 = yyv1[:0]
  13423. yyc1 = true
  13424. }
  13425. } else {
  13426. yyhl1 := yyl1 > 0
  13427. var yyrl1 int
  13428. _ = yyrl1
  13429. if yyhl1 {
  13430. if yyl1 > cap(yyv1) {
  13431. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13432. if yyrl1 <= cap(yyv1) {
  13433. yyv1 = yyv1[:yyrl1]
  13434. } else {
  13435. yyv1 = make([]wrapUint8, yyrl1)
  13436. }
  13437. yyc1 = true
  13438. } else if yyl1 != len(yyv1) {
  13439. yyv1 = yyv1[:yyl1]
  13440. yyc1 = true
  13441. }
  13442. }
  13443. var yyj1 int
  13444. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13445. if yyj1 == 0 && yyv1 == nil {
  13446. if yyhl1 {
  13447. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  13448. } else {
  13449. yyrl1 = 8
  13450. }
  13451. yyv1 = make([]wrapUint8, yyrl1)
  13452. yyc1 = true
  13453. }
  13454. yyh1.ElemContainerState(yyj1)
  13455. var yydb1 bool
  13456. if yyj1 >= len(yyv1) {
  13457. yyv1 = append(yyv1, 0)
  13458. yyc1 = true
  13459. }
  13460. if yydb1 {
  13461. z.DecSwallow()
  13462. } else {
  13463. yyv1[yyj1].CodecDecodeSelf(d)
  13464. }
  13465. }
  13466. if yyj1 < len(yyv1) {
  13467. yyv1 = yyv1[:yyj1]
  13468. yyc1 = true
  13469. } else if yyj1 == 0 && yyv1 == nil {
  13470. yyv1 = make([]wrapUint8, 0)
  13471. yyc1 = true
  13472. }
  13473. }
  13474. yyh1.End()
  13475. if yyc1 {
  13476. *v = yyv1
  13477. }
  13478. }
  13479. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  13480. var h codecSelfer19780
  13481. z, r := GenHelperEncoder(e)
  13482. _, _, _ = h, z, r
  13483. if v == nil {
  13484. r.EncodeNil()
  13485. return
  13486. }
  13487. z.EncWriteArrayStart(len(v))
  13488. for _, yyv1 := range v {
  13489. z.EncWriteArrayElem()
  13490. yy2 := &yyv1
  13491. yy2.CodecEncodeSelf(e)
  13492. }
  13493. z.EncWriteArrayEnd()
  13494. }
  13495. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  13496. var h codecSelfer19780
  13497. z, r := GenHelperDecoder(d)
  13498. _, _, _ = h, z, r
  13499. yyv1 := v
  13500. yyh1, yyl1 := z.DecSliceHelperStart()
  13501. if yyl1 == 0 {
  13502. } else {
  13503. yyhl1 := yyl1 > 0
  13504. var yyrl1 int
  13505. _ = yyrl1
  13506. var yyj1 int
  13507. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13508. yyh1.ElemContainerState(yyj1)
  13509. var yydb1 bool
  13510. if yyj1 >= len(yyv1) {
  13511. z.DecArrayCannotExpand(len(v), yyj1+1)
  13512. yydb1 = true
  13513. }
  13514. if yydb1 {
  13515. z.DecSwallow()
  13516. } else {
  13517. yyv1[yyj1].CodecDecodeSelf(d)
  13518. }
  13519. }
  13520. }
  13521. yyh1.End()
  13522. }
  13523. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  13524. var h codecSelfer19780
  13525. z, r := GenHelperEncoder(e)
  13526. _, _, _ = h, z, r
  13527. if v == nil {
  13528. r.EncodeNil()
  13529. return
  13530. }
  13531. z.EncWriteArrayStart(len(v))
  13532. for _, yyv1 := range v {
  13533. z.EncWriteArrayElem()
  13534. r.EncodeUint(uint64(yyv1))
  13535. }
  13536. z.EncWriteArrayEnd()
  13537. }
  13538. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  13539. var h codecSelfer19780
  13540. z, r := GenHelperDecoder(d)
  13541. _, _, _ = h, z, r
  13542. yyv1 := v
  13543. yyh1, yyl1 := z.DecSliceHelperStart()
  13544. if yyl1 == 0 {
  13545. } else {
  13546. yyhl1 := yyl1 > 0
  13547. var yyrl1 int
  13548. _ = yyrl1
  13549. var yyj1 int
  13550. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13551. yyh1.ElemContainerState(yyj1)
  13552. var yydb1 bool
  13553. if yyj1 >= len(yyv1) {
  13554. z.DecArrayCannotExpand(len(v), yyj1+1)
  13555. yydb1 = true
  13556. }
  13557. if yydb1 {
  13558. z.DecSwallow()
  13559. } else {
  13560. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  13561. }
  13562. }
  13563. }
  13564. yyh1.End()
  13565. }
  13566. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  13567. var h codecSelfer19780
  13568. z, r := GenHelperEncoder(e)
  13569. _, _, _ = h, z, r
  13570. if v == nil {
  13571. r.EncodeNil()
  13572. return
  13573. }
  13574. z.EncWriteArrayStart(len(v))
  13575. for _, yyv1 := range v {
  13576. z.EncWriteArrayElem()
  13577. if yyv1 == nil {
  13578. r.EncodeNil()
  13579. } else {
  13580. h.encArray4uint64((*[4]uint64)(yyv1), e)
  13581. }
  13582. }
  13583. z.EncWriteArrayEnd()
  13584. }
  13585. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  13586. var h codecSelfer19780
  13587. z, r := GenHelperDecoder(d)
  13588. _, _, _ = h, z, r
  13589. yyv1 := *v
  13590. yyh1, yyl1 := z.DecSliceHelperStart()
  13591. var yyc1 bool
  13592. _ = yyc1
  13593. if yyh1.IsNil {
  13594. if yyv1 != nil {
  13595. yyv1 = nil
  13596. yyc1 = true
  13597. }
  13598. } else if yyl1 == 0 {
  13599. if yyv1 == nil {
  13600. yyv1 = []*[4]uint64{}
  13601. yyc1 = true
  13602. } else if len(yyv1) != 0 {
  13603. yyv1 = yyv1[:0]
  13604. yyc1 = true
  13605. }
  13606. } else {
  13607. yyhl1 := yyl1 > 0
  13608. var yyrl1 int
  13609. _ = yyrl1
  13610. if yyhl1 {
  13611. if yyl1 > cap(yyv1) {
  13612. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13613. if yyrl1 <= cap(yyv1) {
  13614. yyv1 = yyv1[:yyrl1]
  13615. } else {
  13616. yyv1 = make([]*[4]uint64, yyrl1)
  13617. }
  13618. yyc1 = true
  13619. } else if yyl1 != len(yyv1) {
  13620. yyv1 = yyv1[:yyl1]
  13621. yyc1 = true
  13622. }
  13623. }
  13624. var yyj1 int
  13625. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13626. if yyj1 == 0 && yyv1 == nil {
  13627. if yyhl1 {
  13628. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13629. } else {
  13630. yyrl1 = 8
  13631. }
  13632. yyv1 = make([]*[4]uint64, yyrl1)
  13633. yyc1 = true
  13634. }
  13635. yyh1.ElemContainerState(yyj1)
  13636. var yydb1 bool
  13637. if yyj1 >= len(yyv1) {
  13638. yyv1 = append(yyv1, nil)
  13639. yyc1 = true
  13640. }
  13641. if yydb1 {
  13642. z.DecSwallow()
  13643. } else {
  13644. if r.TryNil() {
  13645. yyv1[yyj1] = nil
  13646. } else {
  13647. if yyv1[yyj1] == nil {
  13648. yyv1[yyj1] = new([4]uint64)
  13649. }
  13650. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  13651. }
  13652. }
  13653. }
  13654. if yyj1 < len(yyv1) {
  13655. yyv1 = yyv1[:yyj1]
  13656. yyc1 = true
  13657. } else if yyj1 == 0 && yyv1 == nil {
  13658. yyv1 = make([]*[4]uint64, 0)
  13659. yyc1 = true
  13660. }
  13661. }
  13662. yyh1.End()
  13663. if yyc1 {
  13664. *v = yyv1
  13665. }
  13666. }
  13667. func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
  13668. var h codecSelfer19780
  13669. z, r := GenHelperEncoder(e)
  13670. _, _, _ = h, z, r
  13671. if v == nil {
  13672. r.EncodeNil()
  13673. return
  13674. }
  13675. z.EncWriteMapStart(len(v))
  13676. for yyk1, yyv1 := range v {
  13677. z.EncWriteMapElemKey()
  13678. yy2 := &yyk1
  13679. yy2.CodecEncodeSelf(e)
  13680. z.EncWriteMapElemValue()
  13681. if yyv1 == nil {
  13682. r.EncodeNil()
  13683. } else {
  13684. yyv1.CodecEncodeSelf(e)
  13685. }
  13686. }
  13687. z.EncWriteMapEnd()
  13688. }
  13689. func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
  13690. var h codecSelfer19780
  13691. z, r := GenHelperDecoder(d)
  13692. _, _, _ = h, z, r
  13693. yyv1 := *v
  13694. yyl1 := z.DecReadMapStart()
  13695. if yyl1 == codecSelferDecContainerLenNil19780 {
  13696. *v = nil
  13697. } else {
  13698. if yyv1 == nil {
  13699. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13700. yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
  13701. *v = yyv1
  13702. }
  13703. var yymk1 stringUint64T
  13704. var yymv1 *stringUint64T
  13705. var yymg1, yymdn1, yyms1, yymok1 bool
  13706. if z.DecBasicHandle().MapValueReset {
  13707. yymg1 = true
  13708. }
  13709. if yyl1 != 0 {
  13710. yyhl1 := yyl1 > 0
  13711. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13712. z.DecReadMapElemKey()
  13713. yymk1.CodecDecodeSelf(d)
  13714. yyms1 = true
  13715. if yymg1 {
  13716. yymv1, yymok1 = yyv1[yymk1]
  13717. if yymok1 {
  13718. yyms1 = false
  13719. }
  13720. } else {
  13721. yymv1 = nil
  13722. }
  13723. z.DecReadMapElemValue()
  13724. yymdn1 = false
  13725. if r.TryNil() {
  13726. yymdn1 = true
  13727. } else {
  13728. if yymv1 == nil {
  13729. yymv1 = new(stringUint64T)
  13730. }
  13731. yymv1.CodecDecodeSelf(d)
  13732. }
  13733. if yymdn1 {
  13734. if z.DecBasicHandle().DeleteOnNilMapValue {
  13735. delete(yyv1, yymk1)
  13736. } else {
  13737. yyv1[yymk1] = nil
  13738. }
  13739. } else if yyms1 && yyv1 != nil {
  13740. yyv1[yymk1] = yymv1
  13741. }
  13742. }
  13743. } // else len==0: TODO: Should we clear map entries?
  13744. z.DecReadMapEnd()
  13745. }
  13746. }
  13747. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  13748. var h codecSelfer19780
  13749. z, r := GenHelperEncoder(e)
  13750. _, _, _ = h, z, r
  13751. if v == nil {
  13752. r.EncodeNil()
  13753. return
  13754. }
  13755. z.EncWriteMapStart(len(v))
  13756. for yyk1, yyv1 := range v {
  13757. z.EncWriteMapElemKey()
  13758. if z.EncBasicHandle().StringToRaw {
  13759. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13760. } else {
  13761. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13762. }
  13763. z.EncWriteMapElemValue()
  13764. if yyv1 == nil {
  13765. r.EncodeNil()
  13766. } else {
  13767. yyv1.CodecEncodeSelf(e)
  13768. }
  13769. }
  13770. z.EncWriteMapEnd()
  13771. }
  13772. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  13773. var h codecSelfer19780
  13774. z, r := GenHelperDecoder(d)
  13775. _, _, _ = h, z, r
  13776. yyv1 := *v
  13777. yyl1 := z.DecReadMapStart()
  13778. if yyl1 == codecSelferDecContainerLenNil19780 {
  13779. *v = nil
  13780. } else {
  13781. if yyv1 == nil {
  13782. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13783. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  13784. *v = yyv1
  13785. }
  13786. var yymk1 string
  13787. var yymv1 *TestStrucFlex
  13788. var yymg1, yymdn1, yyms1, yymok1 bool
  13789. if z.DecBasicHandle().MapValueReset {
  13790. yymg1 = true
  13791. }
  13792. if yyl1 != 0 {
  13793. yyhl1 := yyl1 > 0
  13794. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13795. z.DecReadMapElemKey()
  13796. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13797. yyms1 = true
  13798. if yymg1 {
  13799. yymv1, yymok1 = yyv1[yymk1]
  13800. if yymok1 {
  13801. yyms1 = false
  13802. }
  13803. } else {
  13804. yymv1 = nil
  13805. }
  13806. z.DecReadMapElemValue()
  13807. yymdn1 = false
  13808. if r.TryNil() {
  13809. yymdn1 = true
  13810. } else {
  13811. if yymv1 == nil {
  13812. yymv1 = new(TestStrucFlex)
  13813. }
  13814. yymv1.CodecDecodeSelf(d)
  13815. }
  13816. if yymdn1 {
  13817. if z.DecBasicHandle().DeleteOnNilMapValue {
  13818. delete(yyv1, yymk1)
  13819. } else {
  13820. yyv1[yymk1] = nil
  13821. }
  13822. } else if yyms1 && yyv1 != nil {
  13823. yyv1[yymk1] = yymv1
  13824. }
  13825. }
  13826. } // else len==0: TODO: Should we clear map entries?
  13827. z.DecReadMapEnd()
  13828. }
  13829. }
  13830. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  13831. var h codecSelfer19780
  13832. z, r := GenHelperEncoder(e)
  13833. _, _, _ = h, z, r
  13834. if v == nil {
  13835. r.EncodeNil()
  13836. return
  13837. }
  13838. z.EncWriteMapStart(len(v))
  13839. for yyk1, yyv1 := range v {
  13840. z.EncWriteMapElemKey()
  13841. if z.EncBasicHandle().StringToRaw {
  13842. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13843. } else {
  13844. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13845. }
  13846. z.EncWriteMapElemValue()
  13847. yy3 := &yyv1
  13848. yy3.CodecEncodeSelf(e)
  13849. }
  13850. z.EncWriteMapEnd()
  13851. }
  13852. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  13853. var h codecSelfer19780
  13854. z, r := GenHelperDecoder(d)
  13855. _, _, _ = h, z, r
  13856. yyv1 := *v
  13857. yyl1 := z.DecReadMapStart()
  13858. if yyl1 == codecSelferDecContainerLenNil19780 {
  13859. *v = nil
  13860. } else {
  13861. if yyv1 == nil {
  13862. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1536)
  13863. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  13864. *v = yyv1
  13865. }
  13866. var yymk1 string
  13867. var yymv1 TestStrucFlex
  13868. var yymg1, yymdn1 bool
  13869. if z.DecBasicHandle().MapValueReset {
  13870. yymg1 = true
  13871. }
  13872. if yyl1 != 0 {
  13873. yyhl1 := yyl1 > 0
  13874. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13875. z.DecReadMapElemKey()
  13876. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13877. if yymg1 {
  13878. yymv1 = yyv1[yymk1]
  13879. } else {
  13880. yymv1 = TestStrucFlex{}
  13881. }
  13882. z.DecReadMapElemValue()
  13883. yymdn1 = false
  13884. yymv1.CodecDecodeSelf(d)
  13885. if yymdn1 {
  13886. if z.DecBasicHandle().DeleteOnNilMapValue {
  13887. delete(yyv1, yymk1)
  13888. } else {
  13889. yyv1[yymk1] = TestStrucFlex{}
  13890. }
  13891. } else if yyv1 != nil {
  13892. yyv1[yymk1] = yymv1
  13893. }
  13894. }
  13895. } // else len==0: TODO: Should we clear map entries?
  13896. z.DecReadMapEnd()
  13897. }
  13898. }
  13899. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  13900. var h codecSelfer19780
  13901. z, r := GenHelperEncoder(e)
  13902. _, _, _ = h, z, r
  13903. if v == nil {
  13904. r.EncodeNil()
  13905. return
  13906. }
  13907. z.EncWriteArrayStart(len(v))
  13908. for _, yyv1 := range v {
  13909. z.EncWriteArrayElem()
  13910. if yyv1 == nil {
  13911. r.EncodeNil()
  13912. } else {
  13913. yyv1.CodecEncodeSelf(e)
  13914. }
  13915. }
  13916. z.EncWriteArrayEnd()
  13917. }
  13918. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  13919. var h codecSelfer19780
  13920. z, r := GenHelperDecoder(d)
  13921. _, _, _ = h, z, r
  13922. yyv1 := *v
  13923. yyh1, yyl1 := z.DecSliceHelperStart()
  13924. var yyc1 bool
  13925. _ = yyc1
  13926. if yyh1.IsNil {
  13927. if yyv1 != nil {
  13928. yyv1 = nil
  13929. yyc1 = true
  13930. }
  13931. } else if yyl1 == 0 {
  13932. if yyv1 == nil {
  13933. yyv1 = []*TestStrucFlex{}
  13934. yyc1 = true
  13935. } else if len(yyv1) != 0 {
  13936. yyv1 = yyv1[:0]
  13937. yyc1 = true
  13938. }
  13939. } else {
  13940. yyhl1 := yyl1 > 0
  13941. var yyrl1 int
  13942. _ = yyrl1
  13943. if yyhl1 {
  13944. if yyl1 > cap(yyv1) {
  13945. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13946. if yyrl1 <= cap(yyv1) {
  13947. yyv1 = yyv1[:yyrl1]
  13948. } else {
  13949. yyv1 = make([]*TestStrucFlex, yyrl1)
  13950. }
  13951. yyc1 = true
  13952. } else if yyl1 != len(yyv1) {
  13953. yyv1 = yyv1[:yyl1]
  13954. yyc1 = true
  13955. }
  13956. }
  13957. var yyj1 int
  13958. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13959. if yyj1 == 0 && yyv1 == nil {
  13960. if yyhl1 {
  13961. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13962. } else {
  13963. yyrl1 = 8
  13964. }
  13965. yyv1 = make([]*TestStrucFlex, yyrl1)
  13966. yyc1 = true
  13967. }
  13968. yyh1.ElemContainerState(yyj1)
  13969. var yydb1 bool
  13970. if yyj1 >= len(yyv1) {
  13971. yyv1 = append(yyv1, nil)
  13972. yyc1 = true
  13973. }
  13974. if yydb1 {
  13975. z.DecSwallow()
  13976. } else {
  13977. if r.TryNil() {
  13978. yyv1[yyj1] = nil
  13979. } else {
  13980. if yyv1[yyj1] == nil {
  13981. yyv1[yyj1] = new(TestStrucFlex)
  13982. }
  13983. yyv1[yyj1].CodecDecodeSelf(d)
  13984. }
  13985. }
  13986. }
  13987. if yyj1 < len(yyv1) {
  13988. yyv1 = yyv1[:yyj1]
  13989. yyc1 = true
  13990. } else if yyj1 == 0 && yyv1 == nil {
  13991. yyv1 = make([]*TestStrucFlex, 0)
  13992. yyc1 = true
  13993. }
  13994. }
  13995. yyh1.End()
  13996. if yyc1 {
  13997. *v = yyv1
  13998. }
  13999. }