values_codecgen_generated_test.go 315 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672
  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 Bbool) CodecEncodeSelf(e *Encoder) {
  5838. var h codecSelfer19780
  5839. z, r := GenHelperEncoder(e)
  5840. _, _, _ = h, z, r
  5841. r.EncodeBool(bool(x))
  5842. }
  5843. func (x *Bbool) CodecDecodeSelf(d *Decoder) {
  5844. var h codecSelfer19780
  5845. z, r := GenHelperDecoder(d)
  5846. _, _, _ = h, z, r
  5847. *x = (Bbool)(r.DecodeBool())
  5848. }
  5849. func (x *Aarray) CodecEncodeSelf(e *Encoder) {
  5850. var h codecSelfer19780
  5851. z, r := GenHelperEncoder(e)
  5852. _, _, _ = h, z, r
  5853. if x == nil {
  5854. r.EncodeNil()
  5855. } else {
  5856. h.encAarray((*Aarray)(x), e)
  5857. }
  5858. }
  5859. func (x *Aarray) CodecDecodeSelf(d *Decoder) {
  5860. var h codecSelfer19780
  5861. z, r := GenHelperDecoder(d)
  5862. _, _, _ = h, z, r
  5863. h.decAarray((*Aarray)(x), d)
  5864. }
  5865. func (x Sstring) CodecEncodeSelf(e *Encoder) {
  5866. var h codecSelfer19780
  5867. z, r := GenHelperEncoder(e)
  5868. _, _, _ = h, z, r
  5869. if z.EncBasicHandle().StringToRaw {
  5870. r.EncodeStringBytesRaw(z.BytesView(string(x)))
  5871. } else {
  5872. r.EncodeStringEnc(codecSelferCcUTF819780, string(x))
  5873. }
  5874. }
  5875. func (x *Sstring) CodecDecodeSelf(d *Decoder) {
  5876. var h codecSelfer19780
  5877. z, r := GenHelperDecoder(d)
  5878. _, _, _ = h, z, r
  5879. *x = (Sstring)(string(r.DecodeStringAsBytes()))
  5880. }
  5881. func (x *Sstructsmall) CodecEncodeSelf(e *Encoder) {
  5882. var h codecSelfer19780
  5883. z, r := GenHelperEncoder(e)
  5884. _, _, _ = h, z, r
  5885. if x == nil {
  5886. r.EncodeNil()
  5887. } else {
  5888. yysep2 := !z.EncBinary()
  5889. yy2arr2 := z.EncBasicHandle().StructToArray
  5890. _, _ = yysep2, yy2arr2
  5891. const yyr2 bool = false // struct tag has 'toArray'
  5892. if yyr2 || yy2arr2 {
  5893. z.EncWriteArrayStart(1)
  5894. z.EncWriteArrayElem()
  5895. r.EncodeInt(int64(x.A))
  5896. z.EncWriteArrayEnd()
  5897. } else {
  5898. z.EncWriteMapStart(1)
  5899. z.EncWriteMapElemKey()
  5900. if z.IsJSONHandle() {
  5901. z.WriteStr("\"A\"")
  5902. } else {
  5903. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  5904. }
  5905. z.EncWriteMapElemValue()
  5906. r.EncodeInt(int64(x.A))
  5907. z.EncWriteMapEnd()
  5908. }
  5909. }
  5910. }
  5911. func (x *Sstructsmall) CodecDecodeSelf(d *Decoder) {
  5912. var h codecSelfer19780
  5913. z, r := GenHelperDecoder(d)
  5914. _, _, _ = h, z, r
  5915. yyct2 := r.ContainerType()
  5916. if yyct2 == codecSelferValueTypeNil19780 {
  5917. *(x) = Sstructsmall{}
  5918. } else if yyct2 == codecSelferValueTypeMap19780 {
  5919. yyl2 := z.DecReadMapStart()
  5920. if yyl2 == 0 {
  5921. } else {
  5922. x.codecDecodeSelfFromMap(yyl2, d)
  5923. }
  5924. z.DecReadMapEnd()
  5925. } else if yyct2 == codecSelferValueTypeArray19780 {
  5926. yyl2 := z.DecReadArrayStart()
  5927. if yyl2 != 0 {
  5928. x.codecDecodeSelfFromArray(yyl2, d)
  5929. }
  5930. z.DecReadArrayEnd()
  5931. } else {
  5932. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  5933. }
  5934. }
  5935. func (x *Sstructsmall) codecDecodeSelfFromMap(l int, d *Decoder) {
  5936. var h codecSelfer19780
  5937. z, r := GenHelperDecoder(d)
  5938. _, _, _ = h, z, r
  5939. var yyhl3 bool = l >= 0
  5940. for yyj3 := 0; ; yyj3++ {
  5941. if yyhl3 {
  5942. if yyj3 >= l {
  5943. break
  5944. }
  5945. } else {
  5946. if r.CheckBreak() {
  5947. break
  5948. }
  5949. }
  5950. z.DecReadMapElemKey()
  5951. yys3 := z.StringView(r.DecodeStringAsBytes())
  5952. z.DecReadMapElemValue()
  5953. switch yys3 {
  5954. case "A":
  5955. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5956. default:
  5957. z.DecStructFieldNotFound(-1, yys3)
  5958. } // end switch yys3
  5959. } // end for yyj3
  5960. }
  5961. func (x *Sstructsmall) codecDecodeSelfFromArray(l int, d *Decoder) {
  5962. var h codecSelfer19780
  5963. z, r := GenHelperDecoder(d)
  5964. _, _, _ = h, z, r
  5965. var yyj5 int
  5966. var yyb5 bool
  5967. var yyhl5 bool = l >= 0
  5968. yyj5++
  5969. if yyhl5 {
  5970. yyb5 = yyj5 > l
  5971. } else {
  5972. yyb5 = r.CheckBreak()
  5973. }
  5974. if yyb5 {
  5975. z.DecReadArrayEnd()
  5976. return
  5977. }
  5978. z.DecReadArrayElem()
  5979. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  5980. for {
  5981. yyj5++
  5982. if yyhl5 {
  5983. yyb5 = yyj5 > l
  5984. } else {
  5985. yyb5 = r.CheckBreak()
  5986. }
  5987. if yyb5 {
  5988. break
  5989. }
  5990. z.DecReadArrayElem()
  5991. z.DecStructFieldNotFound(yyj5-1, "")
  5992. }
  5993. }
  5994. func (x *Sstructbig) CodecEncodeSelf(e *Encoder) {
  5995. var h codecSelfer19780
  5996. z, r := GenHelperEncoder(e)
  5997. _, _, _ = h, z, r
  5998. if x == nil {
  5999. r.EncodeNil()
  6000. } else {
  6001. yysep2 := !z.EncBinary()
  6002. yy2arr2 := z.EncBasicHandle().StructToArray
  6003. _, _ = yysep2, yy2arr2
  6004. const yyr2 bool = false // struct tag has 'toArray'
  6005. var yyn5 bool = x.Ssmallptr == nil
  6006. var yyn6 bool = x.Ssmall == nil
  6007. var yyn7 bool = x.Sptr == nil
  6008. if yyr2 || yy2arr2 {
  6009. z.EncWriteArrayStart(5)
  6010. z.EncWriteArrayElem()
  6011. r.EncodeInt(int64(x.A))
  6012. z.EncWriteArrayElem()
  6013. r.EncodeBool(bool(x.B))
  6014. if yyn5 {
  6015. z.EncWriteArrayElem()
  6016. r.EncodeNil()
  6017. } else {
  6018. z.EncWriteArrayElem()
  6019. x.Ssmallptr.CodecEncodeSelf(e)
  6020. }
  6021. if yyn6 {
  6022. z.EncWriteArrayElem()
  6023. r.EncodeNil()
  6024. } else {
  6025. z.EncWriteArrayElem()
  6026. x.Ssmall.CodecEncodeSelf(e)
  6027. }
  6028. if yyn7 {
  6029. z.EncWriteArrayElem()
  6030. r.EncodeNil()
  6031. } else {
  6032. z.EncWriteArrayElem()
  6033. x.Sptr.CodecEncodeSelf(e)
  6034. }
  6035. z.EncWriteArrayEnd()
  6036. } else {
  6037. z.EncWriteMapStart(5)
  6038. z.EncWriteMapElemKey()
  6039. if z.IsJSONHandle() {
  6040. z.WriteStr("\"A\"")
  6041. } else {
  6042. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6043. }
  6044. z.EncWriteMapElemValue()
  6045. r.EncodeInt(int64(x.A))
  6046. z.EncWriteMapElemKey()
  6047. if z.IsJSONHandle() {
  6048. z.WriteStr("\"B\"")
  6049. } else {
  6050. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6051. }
  6052. z.EncWriteMapElemValue()
  6053. r.EncodeBool(bool(x.B))
  6054. z.EncWriteMapElemKey()
  6055. if z.IsJSONHandle() {
  6056. z.WriteStr("\"Ssmallptr\"")
  6057. } else {
  6058. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6059. }
  6060. z.EncWriteMapElemValue()
  6061. if yyn5 {
  6062. r.EncodeNil()
  6063. } else {
  6064. x.Ssmallptr.CodecEncodeSelf(e)
  6065. }
  6066. z.EncWriteMapElemKey()
  6067. if z.IsJSONHandle() {
  6068. z.WriteStr("\"Ssmall\"")
  6069. } else {
  6070. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6071. }
  6072. z.EncWriteMapElemValue()
  6073. if yyn6 {
  6074. r.EncodeNil()
  6075. } else {
  6076. x.Ssmall.CodecEncodeSelf(e)
  6077. }
  6078. z.EncWriteMapElemKey()
  6079. if z.IsJSONHandle() {
  6080. z.WriteStr("\"Sptr\"")
  6081. } else {
  6082. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6083. }
  6084. z.EncWriteMapElemValue()
  6085. if yyn7 {
  6086. r.EncodeNil()
  6087. } else {
  6088. x.Sptr.CodecEncodeSelf(e)
  6089. }
  6090. z.EncWriteMapEnd()
  6091. }
  6092. }
  6093. }
  6094. func (x *Sstructbig) CodecDecodeSelf(d *Decoder) {
  6095. var h codecSelfer19780
  6096. z, r := GenHelperDecoder(d)
  6097. _, _, _ = h, z, r
  6098. yyct2 := r.ContainerType()
  6099. if yyct2 == codecSelferValueTypeNil19780 {
  6100. *(x) = Sstructbig{}
  6101. } else if yyct2 == codecSelferValueTypeMap19780 {
  6102. yyl2 := z.DecReadMapStart()
  6103. if yyl2 == 0 {
  6104. } else {
  6105. x.codecDecodeSelfFromMap(yyl2, d)
  6106. }
  6107. z.DecReadMapEnd()
  6108. } else if yyct2 == codecSelferValueTypeArray19780 {
  6109. yyl2 := z.DecReadArrayStart()
  6110. if yyl2 != 0 {
  6111. x.codecDecodeSelfFromArray(yyl2, d)
  6112. }
  6113. z.DecReadArrayEnd()
  6114. } else {
  6115. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6116. }
  6117. }
  6118. func (x *Sstructbig) codecDecodeSelfFromMap(l int, d *Decoder) {
  6119. var h codecSelfer19780
  6120. z, r := GenHelperDecoder(d)
  6121. _, _, _ = h, z, r
  6122. var yyhl3 bool = l >= 0
  6123. for yyj3 := 0; ; yyj3++ {
  6124. if yyhl3 {
  6125. if yyj3 >= l {
  6126. break
  6127. }
  6128. } else {
  6129. if r.CheckBreak() {
  6130. break
  6131. }
  6132. }
  6133. z.DecReadMapElemKey()
  6134. yys3 := z.StringView(r.DecodeStringAsBytes())
  6135. z.DecReadMapElemValue()
  6136. switch yys3 {
  6137. case "A":
  6138. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6139. case "B":
  6140. x.B = (bool)(r.DecodeBool())
  6141. case "Ssmallptr":
  6142. if r.TryNil() {
  6143. if x.Ssmallptr != nil { // remove the if-true
  6144. x.Ssmallptr = nil
  6145. }
  6146. } else {
  6147. if x.Ssmallptr == nil {
  6148. x.Ssmallptr = new(Sstructsmall)
  6149. }
  6150. x.Ssmallptr.CodecDecodeSelf(d)
  6151. }
  6152. case "Ssmall":
  6153. if r.TryNil() {
  6154. if x.Ssmall != nil { // remove the if-true
  6155. x.Ssmall = nil
  6156. }
  6157. } else {
  6158. if x.Ssmall == nil {
  6159. x.Ssmall = new(Sstructsmall)
  6160. }
  6161. x.Ssmall.CodecDecodeSelf(d)
  6162. }
  6163. case "Sptr":
  6164. if r.TryNil() {
  6165. if x.Sptr != nil { // remove the if-true
  6166. x.Sptr = nil
  6167. }
  6168. } else {
  6169. if x.Sptr == nil {
  6170. x.Sptr = new(Sstructbig)
  6171. }
  6172. x.Sptr.CodecDecodeSelf(d)
  6173. }
  6174. default:
  6175. z.DecStructFieldNotFound(-1, yys3)
  6176. } // end switch yys3
  6177. } // end for yyj3
  6178. }
  6179. func (x *Sstructbig) codecDecodeSelfFromArray(l int, d *Decoder) {
  6180. var h codecSelfer19780
  6181. z, r := GenHelperDecoder(d)
  6182. _, _, _ = h, z, r
  6183. var yyj9 int
  6184. var yyb9 bool
  6185. var yyhl9 bool = l >= 0
  6186. yyj9++
  6187. if yyhl9 {
  6188. yyb9 = yyj9 > l
  6189. } else {
  6190. yyb9 = r.CheckBreak()
  6191. }
  6192. if yyb9 {
  6193. z.DecReadArrayEnd()
  6194. return
  6195. }
  6196. z.DecReadArrayElem()
  6197. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6198. yyj9++
  6199. if yyhl9 {
  6200. yyb9 = yyj9 > l
  6201. } else {
  6202. yyb9 = r.CheckBreak()
  6203. }
  6204. if yyb9 {
  6205. z.DecReadArrayEnd()
  6206. return
  6207. }
  6208. z.DecReadArrayElem()
  6209. x.B = (bool)(r.DecodeBool())
  6210. yyj9++
  6211. if yyhl9 {
  6212. yyb9 = yyj9 > l
  6213. } else {
  6214. yyb9 = r.CheckBreak()
  6215. }
  6216. if yyb9 {
  6217. z.DecReadArrayEnd()
  6218. return
  6219. }
  6220. z.DecReadArrayElem()
  6221. if r.TryNil() {
  6222. if x.Ssmallptr != nil { // remove the if-true
  6223. x.Ssmallptr = nil
  6224. }
  6225. } else {
  6226. if x.Ssmallptr == nil {
  6227. x.Ssmallptr = new(Sstructsmall)
  6228. }
  6229. x.Ssmallptr.CodecDecodeSelf(d)
  6230. }
  6231. yyj9++
  6232. if yyhl9 {
  6233. yyb9 = yyj9 > l
  6234. } else {
  6235. yyb9 = r.CheckBreak()
  6236. }
  6237. if yyb9 {
  6238. z.DecReadArrayEnd()
  6239. return
  6240. }
  6241. z.DecReadArrayElem()
  6242. if r.TryNil() {
  6243. if x.Ssmall != nil { // remove the if-true
  6244. x.Ssmall = nil
  6245. }
  6246. } else {
  6247. if x.Ssmall == nil {
  6248. x.Ssmall = new(Sstructsmall)
  6249. }
  6250. x.Ssmall.CodecDecodeSelf(d)
  6251. }
  6252. yyj9++
  6253. if yyhl9 {
  6254. yyb9 = yyj9 > l
  6255. } else {
  6256. yyb9 = r.CheckBreak()
  6257. }
  6258. if yyb9 {
  6259. z.DecReadArrayEnd()
  6260. return
  6261. }
  6262. z.DecReadArrayElem()
  6263. if r.TryNil() {
  6264. if x.Sptr != nil { // remove the if-true
  6265. x.Sptr = nil
  6266. }
  6267. } else {
  6268. if x.Sptr == nil {
  6269. x.Sptr = new(Sstructbig)
  6270. }
  6271. x.Sptr.CodecDecodeSelf(d)
  6272. }
  6273. for {
  6274. yyj9++
  6275. if yyhl9 {
  6276. yyb9 = yyj9 > l
  6277. } else {
  6278. yyb9 = r.CheckBreak()
  6279. }
  6280. if yyb9 {
  6281. break
  6282. }
  6283. z.DecReadArrayElem()
  6284. z.DecStructFieldNotFound(yyj9-1, "")
  6285. }
  6286. }
  6287. func (x *SstructbigMapBySlice) CodecEncodeSelf(e *Encoder) {
  6288. var h codecSelfer19780
  6289. z, r := GenHelperEncoder(e)
  6290. _, _, _ = h, z, r
  6291. if x == nil {
  6292. r.EncodeNil()
  6293. } else {
  6294. yysep2 := !z.EncBinary()
  6295. yy2arr2 := z.EncBasicHandle().StructToArray
  6296. _, _ = yysep2, yy2arr2
  6297. const yyr2 bool = true // struct tag has 'toArray'
  6298. var yyn5 bool = x.Ssmallptr == nil
  6299. var yyn6 bool = x.Ssmall == nil
  6300. var yyn7 bool = x.Sptr == nil
  6301. if yyr2 || yy2arr2 {
  6302. z.EncWriteArrayStart(5)
  6303. z.EncWriteArrayElem()
  6304. r.EncodeInt(int64(x.A))
  6305. z.EncWriteArrayElem()
  6306. r.EncodeBool(bool(x.B))
  6307. if yyn5 {
  6308. z.EncWriteArrayElem()
  6309. r.EncodeNil()
  6310. } else {
  6311. z.EncWriteArrayElem()
  6312. x.Ssmallptr.CodecEncodeSelf(e)
  6313. }
  6314. if yyn6 {
  6315. z.EncWriteArrayElem()
  6316. r.EncodeNil()
  6317. } else {
  6318. z.EncWriteArrayElem()
  6319. x.Ssmall.CodecEncodeSelf(e)
  6320. }
  6321. if yyn7 {
  6322. z.EncWriteArrayElem()
  6323. r.EncodeNil()
  6324. } else {
  6325. z.EncWriteArrayElem()
  6326. x.Sptr.CodecEncodeSelf(e)
  6327. }
  6328. z.EncWriteArrayEnd()
  6329. } else {
  6330. z.EncWriteMapStart(5)
  6331. z.EncWriteMapElemKey()
  6332. if z.IsJSONHandle() {
  6333. z.WriteStr("\"A\"")
  6334. } else {
  6335. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  6336. }
  6337. z.EncWriteMapElemValue()
  6338. r.EncodeInt(int64(x.A))
  6339. z.EncWriteMapElemKey()
  6340. if z.IsJSONHandle() {
  6341. z.WriteStr("\"B\"")
  6342. } else {
  6343. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  6344. }
  6345. z.EncWriteMapElemValue()
  6346. r.EncodeBool(bool(x.B))
  6347. z.EncWriteMapElemKey()
  6348. if z.IsJSONHandle() {
  6349. z.WriteStr("\"Ssmallptr\"")
  6350. } else {
  6351. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmallptr`)
  6352. }
  6353. z.EncWriteMapElemValue()
  6354. if yyn5 {
  6355. r.EncodeNil()
  6356. } else {
  6357. x.Ssmallptr.CodecEncodeSelf(e)
  6358. }
  6359. z.EncWriteMapElemKey()
  6360. if z.IsJSONHandle() {
  6361. z.WriteStr("\"Ssmall\"")
  6362. } else {
  6363. r.EncodeStringEnc(codecSelferCcUTF819780, `Ssmall`)
  6364. }
  6365. z.EncWriteMapElemValue()
  6366. if yyn6 {
  6367. r.EncodeNil()
  6368. } else {
  6369. x.Ssmall.CodecEncodeSelf(e)
  6370. }
  6371. z.EncWriteMapElemKey()
  6372. if z.IsJSONHandle() {
  6373. z.WriteStr("\"Sptr\"")
  6374. } else {
  6375. r.EncodeStringEnc(codecSelferCcUTF819780, `Sptr`)
  6376. }
  6377. z.EncWriteMapElemValue()
  6378. if yyn7 {
  6379. r.EncodeNil()
  6380. } else {
  6381. x.Sptr.CodecEncodeSelf(e)
  6382. }
  6383. z.EncWriteMapEnd()
  6384. }
  6385. }
  6386. }
  6387. func (x *SstructbigMapBySlice) CodecDecodeSelf(d *Decoder) {
  6388. var h codecSelfer19780
  6389. z, r := GenHelperDecoder(d)
  6390. _, _, _ = h, z, r
  6391. yyct2 := r.ContainerType()
  6392. if yyct2 == codecSelferValueTypeNil19780 {
  6393. *(x) = SstructbigMapBySlice{}
  6394. } else if yyct2 == codecSelferValueTypeMap19780 {
  6395. yyl2 := z.DecReadMapStart()
  6396. if yyl2 == 0 {
  6397. } else {
  6398. x.codecDecodeSelfFromMap(yyl2, d)
  6399. }
  6400. z.DecReadMapEnd()
  6401. } else if yyct2 == codecSelferValueTypeArray19780 {
  6402. yyl2 := z.DecReadArrayStart()
  6403. if yyl2 != 0 {
  6404. x.codecDecodeSelfFromArray(yyl2, d)
  6405. }
  6406. z.DecReadArrayEnd()
  6407. } else {
  6408. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6409. }
  6410. }
  6411. func (x *SstructbigMapBySlice) codecDecodeSelfFromMap(l int, d *Decoder) {
  6412. var h codecSelfer19780
  6413. z, r := GenHelperDecoder(d)
  6414. _, _, _ = h, z, r
  6415. var yyhl3 bool = l >= 0
  6416. for yyj3 := 0; ; yyj3++ {
  6417. if yyhl3 {
  6418. if yyj3 >= l {
  6419. break
  6420. }
  6421. } else {
  6422. if r.CheckBreak() {
  6423. break
  6424. }
  6425. }
  6426. z.DecReadMapElemKey()
  6427. yys3 := z.StringView(r.DecodeStringAsBytes())
  6428. z.DecReadMapElemValue()
  6429. switch yys3 {
  6430. case "A":
  6431. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6432. case "B":
  6433. x.B = (bool)(r.DecodeBool())
  6434. case "Ssmallptr":
  6435. if r.TryNil() {
  6436. if x.Ssmallptr != nil { // remove the if-true
  6437. x.Ssmallptr = nil
  6438. }
  6439. } else {
  6440. if x.Ssmallptr == nil {
  6441. x.Ssmallptr = new(Sstructsmall)
  6442. }
  6443. x.Ssmallptr.CodecDecodeSelf(d)
  6444. }
  6445. case "Ssmall":
  6446. if r.TryNil() {
  6447. if x.Ssmall != nil { // remove the if-true
  6448. x.Ssmall = nil
  6449. }
  6450. } else {
  6451. if x.Ssmall == nil {
  6452. x.Ssmall = new(Sstructsmall)
  6453. }
  6454. x.Ssmall.CodecDecodeSelf(d)
  6455. }
  6456. case "Sptr":
  6457. if r.TryNil() {
  6458. if x.Sptr != nil { // remove the if-true
  6459. x.Sptr = nil
  6460. }
  6461. } else {
  6462. if x.Sptr == nil {
  6463. x.Sptr = new(Sstructbig)
  6464. }
  6465. x.Sptr.CodecDecodeSelf(d)
  6466. }
  6467. default:
  6468. z.DecStructFieldNotFound(-1, yys3)
  6469. } // end switch yys3
  6470. } // end for yyj3
  6471. }
  6472. func (x *SstructbigMapBySlice) codecDecodeSelfFromArray(l int, d *Decoder) {
  6473. var h codecSelfer19780
  6474. z, r := GenHelperDecoder(d)
  6475. _, _, _ = h, z, r
  6476. var yyj9 int
  6477. var yyb9 bool
  6478. var yyhl9 bool = l >= 0
  6479. yyj9++
  6480. if yyhl9 {
  6481. yyb9 = yyj9 > l
  6482. } else {
  6483. yyb9 = r.CheckBreak()
  6484. }
  6485. if yyb9 {
  6486. z.DecReadArrayEnd()
  6487. return
  6488. }
  6489. z.DecReadArrayElem()
  6490. x.A = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6491. yyj9++
  6492. if yyhl9 {
  6493. yyb9 = yyj9 > l
  6494. } else {
  6495. yyb9 = r.CheckBreak()
  6496. }
  6497. if yyb9 {
  6498. z.DecReadArrayEnd()
  6499. return
  6500. }
  6501. z.DecReadArrayElem()
  6502. x.B = (bool)(r.DecodeBool())
  6503. yyj9++
  6504. if yyhl9 {
  6505. yyb9 = yyj9 > l
  6506. } else {
  6507. yyb9 = r.CheckBreak()
  6508. }
  6509. if yyb9 {
  6510. z.DecReadArrayEnd()
  6511. return
  6512. }
  6513. z.DecReadArrayElem()
  6514. if r.TryNil() {
  6515. if x.Ssmallptr != nil { // remove the if-true
  6516. x.Ssmallptr = nil
  6517. }
  6518. } else {
  6519. if x.Ssmallptr == nil {
  6520. x.Ssmallptr = new(Sstructsmall)
  6521. }
  6522. x.Ssmallptr.CodecDecodeSelf(d)
  6523. }
  6524. yyj9++
  6525. if yyhl9 {
  6526. yyb9 = yyj9 > l
  6527. } else {
  6528. yyb9 = r.CheckBreak()
  6529. }
  6530. if yyb9 {
  6531. z.DecReadArrayEnd()
  6532. return
  6533. }
  6534. z.DecReadArrayElem()
  6535. if r.TryNil() {
  6536. if x.Ssmall != nil { // remove the if-true
  6537. x.Ssmall = nil
  6538. }
  6539. } else {
  6540. if x.Ssmall == nil {
  6541. x.Ssmall = new(Sstructsmall)
  6542. }
  6543. x.Ssmall.CodecDecodeSelf(d)
  6544. }
  6545. yyj9++
  6546. if yyhl9 {
  6547. yyb9 = yyj9 > l
  6548. } else {
  6549. yyb9 = r.CheckBreak()
  6550. }
  6551. if yyb9 {
  6552. z.DecReadArrayEnd()
  6553. return
  6554. }
  6555. z.DecReadArrayElem()
  6556. if r.TryNil() {
  6557. if x.Sptr != nil { // remove the if-true
  6558. x.Sptr = nil
  6559. }
  6560. } else {
  6561. if x.Sptr == nil {
  6562. x.Sptr = new(Sstructbig)
  6563. }
  6564. x.Sptr.CodecDecodeSelf(d)
  6565. }
  6566. for {
  6567. yyj9++
  6568. if yyhl9 {
  6569. yyb9 = yyj9 > l
  6570. } else {
  6571. yyb9 = r.CheckBreak()
  6572. }
  6573. if yyb9 {
  6574. break
  6575. }
  6576. z.DecReadArrayElem()
  6577. z.DecStructFieldNotFound(yyj9-1, "")
  6578. }
  6579. }
  6580. func (x *tLowerFirstLetter) CodecEncodeSelf(e *Encoder) {
  6581. var h codecSelfer19780
  6582. z, r := GenHelperEncoder(e)
  6583. _, _, _ = h, z, r
  6584. if x == nil {
  6585. r.EncodeNil()
  6586. } else {
  6587. yysep2 := !z.EncBinary()
  6588. yy2arr2 := z.EncBasicHandle().StructToArray
  6589. _, _ = yysep2, yy2arr2
  6590. const yyr2 bool = false // struct tag has 'toArray'
  6591. if yyr2 || yy2arr2 {
  6592. z.EncWriteArrayStart(2)
  6593. z.EncWriteArrayElem()
  6594. r.EncodeInt(int64(x.I))
  6595. z.EncWriteArrayElem()
  6596. if z.EncBasicHandle().StringToRaw {
  6597. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  6598. } else {
  6599. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  6600. }
  6601. z.EncWriteArrayEnd()
  6602. } else {
  6603. z.EncWriteMapStart(2)
  6604. z.EncWriteMapElemKey()
  6605. if z.IsJSONHandle() {
  6606. z.WriteStr("\"I\"")
  6607. } else {
  6608. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  6609. }
  6610. z.EncWriteMapElemValue()
  6611. r.EncodeInt(int64(x.I))
  6612. z.EncWriteMapElemKey()
  6613. if z.IsJSONHandle() {
  6614. z.WriteStr("\"S\"")
  6615. } else {
  6616. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  6617. }
  6618. z.EncWriteMapElemValue()
  6619. if z.EncBasicHandle().StringToRaw {
  6620. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  6621. } else {
  6622. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  6623. }
  6624. z.EncWriteMapEnd()
  6625. }
  6626. }
  6627. }
  6628. func (x *tLowerFirstLetter) CodecDecodeSelf(d *Decoder) {
  6629. var h codecSelfer19780
  6630. z, r := GenHelperDecoder(d)
  6631. _, _, _ = h, z, r
  6632. yyct2 := r.ContainerType()
  6633. if yyct2 == codecSelferValueTypeNil19780 {
  6634. *(x) = tLowerFirstLetter{}
  6635. } else if yyct2 == codecSelferValueTypeMap19780 {
  6636. yyl2 := z.DecReadMapStart()
  6637. if yyl2 == 0 {
  6638. } else {
  6639. x.codecDecodeSelfFromMap(yyl2, d)
  6640. }
  6641. z.DecReadMapEnd()
  6642. } else if yyct2 == codecSelferValueTypeArray19780 {
  6643. yyl2 := z.DecReadArrayStart()
  6644. if yyl2 != 0 {
  6645. x.codecDecodeSelfFromArray(yyl2, d)
  6646. }
  6647. z.DecReadArrayEnd()
  6648. } else {
  6649. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6650. }
  6651. }
  6652. func (x *tLowerFirstLetter) codecDecodeSelfFromMap(l int, d *Decoder) {
  6653. var h codecSelfer19780
  6654. z, r := GenHelperDecoder(d)
  6655. _, _, _ = h, z, r
  6656. var yyhl3 bool = l >= 0
  6657. for yyj3 := 0; ; yyj3++ {
  6658. if yyhl3 {
  6659. if yyj3 >= l {
  6660. break
  6661. }
  6662. } else {
  6663. if r.CheckBreak() {
  6664. break
  6665. }
  6666. }
  6667. z.DecReadMapElemKey()
  6668. yys3 := z.StringView(r.DecodeStringAsBytes())
  6669. z.DecReadMapElemValue()
  6670. switch yys3 {
  6671. case "I":
  6672. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6673. case "S":
  6674. x.S = (string)(string(r.DecodeStringAsBytes()))
  6675. default:
  6676. z.DecStructFieldNotFound(-1, yys3)
  6677. } // end switch yys3
  6678. } // end for yyj3
  6679. }
  6680. func (x *tLowerFirstLetter) codecDecodeSelfFromArray(l int, d *Decoder) {
  6681. var h codecSelfer19780
  6682. z, r := GenHelperDecoder(d)
  6683. _, _, _ = h, z, r
  6684. var yyj6 int
  6685. var yyb6 bool
  6686. var yyhl6 bool = l >= 0
  6687. yyj6++
  6688. if yyhl6 {
  6689. yyb6 = yyj6 > l
  6690. } else {
  6691. yyb6 = r.CheckBreak()
  6692. }
  6693. if yyb6 {
  6694. z.DecReadArrayEnd()
  6695. return
  6696. }
  6697. z.DecReadArrayElem()
  6698. x.I = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  6699. yyj6++
  6700. if yyhl6 {
  6701. yyb6 = yyj6 > l
  6702. } else {
  6703. yyb6 = r.CheckBreak()
  6704. }
  6705. if yyb6 {
  6706. z.DecReadArrayEnd()
  6707. return
  6708. }
  6709. z.DecReadArrayElem()
  6710. x.S = (string)(string(r.DecodeStringAsBytes()))
  6711. for {
  6712. yyj6++
  6713. if yyhl6 {
  6714. yyb6 = yyj6 > l
  6715. } else {
  6716. yyb6 = r.CheckBreak()
  6717. }
  6718. if yyb6 {
  6719. break
  6720. }
  6721. z.DecReadArrayElem()
  6722. z.DecStructFieldNotFound(yyj6-1, "")
  6723. }
  6724. }
  6725. func (x wrapInt64) CodecEncodeSelf(e *Encoder) {
  6726. var h codecSelfer19780
  6727. z, r := GenHelperEncoder(e)
  6728. _, _, _ = h, z, r
  6729. r.EncodeInt(int64(x))
  6730. }
  6731. func (x *wrapInt64) CodecDecodeSelf(d *Decoder) {
  6732. var h codecSelfer19780
  6733. z, r := GenHelperDecoder(d)
  6734. _, _, _ = h, z, r
  6735. *x = (wrapInt64)(r.DecodeInt64())
  6736. }
  6737. func (x wrapUint8) CodecEncodeSelf(e *Encoder) {
  6738. var h codecSelfer19780
  6739. z, r := GenHelperEncoder(e)
  6740. _, _, _ = h, z, r
  6741. r.EncodeUint(uint64(x))
  6742. }
  6743. func (x *wrapUint8) CodecDecodeSelf(d *Decoder) {
  6744. var h codecSelfer19780
  6745. z, r := GenHelperDecoder(d)
  6746. _, _, _ = h, z, r
  6747. *x = (wrapUint8)(z.C.UintV(r.DecodeUint64(), 8))
  6748. }
  6749. func (x wrapBytes) CodecEncodeSelf(e *Encoder) {
  6750. var h codecSelfer19780
  6751. z, r := GenHelperEncoder(e)
  6752. _, _, _ = h, z, r
  6753. if x == nil {
  6754. r.EncodeNil()
  6755. } else {
  6756. h.encwrapBytes((wrapBytes)(x), e)
  6757. } // end block: if x slice == nil
  6758. }
  6759. func (x *wrapBytes) CodecDecodeSelf(d *Decoder) {
  6760. var h codecSelfer19780
  6761. z, r := GenHelperDecoder(d)
  6762. _, _, _ = h, z, r
  6763. h.decwrapBytes((*wrapBytes)(x), d)
  6764. }
  6765. func (x *AnonInTestStrucIntf) CodecEncodeSelf(e *Encoder) {
  6766. var h codecSelfer19780
  6767. z, r := GenHelperEncoder(e)
  6768. _, _, _ = h, z, r
  6769. if x == nil {
  6770. r.EncodeNil()
  6771. } else {
  6772. yysep2 := !z.EncBinary()
  6773. yy2arr2 := z.EncBasicHandle().StructToArray
  6774. _, _ = yysep2, yy2arr2
  6775. const yyr2 bool = false // struct tag has 'toArray'
  6776. var yyn7 bool = x.Tptr == nil
  6777. if yyr2 || yy2arr2 {
  6778. z.EncWriteArrayStart(5)
  6779. z.EncWriteArrayElem()
  6780. if x.Islice == nil {
  6781. r.EncodeNil()
  6782. } else {
  6783. z.F.EncSliceIntfV(x.Islice, e)
  6784. } // end block: if x.Islice slice == nil
  6785. z.EncWriteArrayElem()
  6786. if x.Ms == nil {
  6787. r.EncodeNil()
  6788. } else {
  6789. z.F.EncMapStringIntfV(x.Ms, e)
  6790. } // end block: if x.Ms map == nil
  6791. z.EncWriteArrayElem()
  6792. z.EncFallback(x.Nintf)
  6793. z.EncWriteArrayElem()
  6794. if !z.EncBasicHandle().TimeNotBuiltin {
  6795. r.EncodeTime(x.T)
  6796. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  6797. z.EncExtension(x.T, yyxt11)
  6798. } else if z.EncBinary() {
  6799. z.EncBinaryMarshal(x.T)
  6800. } else if !z.EncBinary() && z.IsJSONHandle() {
  6801. z.EncJSONMarshal(x.T)
  6802. } else {
  6803. z.EncFallback(x.T)
  6804. }
  6805. if yyn7 {
  6806. z.EncWriteArrayElem()
  6807. r.EncodeNil()
  6808. } else {
  6809. z.EncWriteArrayElem()
  6810. yy12 := *x.Tptr
  6811. if !z.EncBasicHandle().TimeNotBuiltin {
  6812. r.EncodeTime(yy12)
  6813. } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
  6814. z.EncExtension(yy12, yyxt13)
  6815. } else if z.EncBinary() {
  6816. z.EncBinaryMarshal(yy12)
  6817. } else if !z.EncBinary() && z.IsJSONHandle() {
  6818. z.EncJSONMarshal(yy12)
  6819. } else {
  6820. z.EncFallback(yy12)
  6821. }
  6822. }
  6823. z.EncWriteArrayEnd()
  6824. } else {
  6825. z.EncWriteMapStart(5)
  6826. z.EncWriteMapElemKey()
  6827. if z.IsJSONHandle() {
  6828. z.WriteStr("\"Islice\"")
  6829. } else {
  6830. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  6831. }
  6832. z.EncWriteMapElemValue()
  6833. if x.Islice == nil {
  6834. r.EncodeNil()
  6835. } else {
  6836. z.F.EncSliceIntfV(x.Islice, e)
  6837. } // end block: if x.Islice slice == nil
  6838. z.EncWriteMapElemKey()
  6839. if z.IsJSONHandle() {
  6840. z.WriteStr("\"Ms\"")
  6841. } else {
  6842. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  6843. }
  6844. z.EncWriteMapElemValue()
  6845. if x.Ms == nil {
  6846. r.EncodeNil()
  6847. } else {
  6848. z.F.EncMapStringIntfV(x.Ms, e)
  6849. } // end block: if x.Ms map == nil
  6850. z.EncWriteMapElemKey()
  6851. if z.IsJSONHandle() {
  6852. z.WriteStr("\"Nintf\"")
  6853. } else {
  6854. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  6855. }
  6856. z.EncWriteMapElemValue()
  6857. z.EncFallback(x.Nintf)
  6858. z.EncWriteMapElemKey()
  6859. if z.IsJSONHandle() {
  6860. z.WriteStr("\"T\"")
  6861. } else {
  6862. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  6863. }
  6864. z.EncWriteMapElemValue()
  6865. if !z.EncBasicHandle().TimeNotBuiltin {
  6866. r.EncodeTime(x.T)
  6867. } else if yyxt17 := z.Extension(z.I2Rtid(x.T)); yyxt17 != nil {
  6868. z.EncExtension(x.T, yyxt17)
  6869. } else if z.EncBinary() {
  6870. z.EncBinaryMarshal(x.T)
  6871. } else if !z.EncBinary() && z.IsJSONHandle() {
  6872. z.EncJSONMarshal(x.T)
  6873. } else {
  6874. z.EncFallback(x.T)
  6875. }
  6876. z.EncWriteMapElemKey()
  6877. if z.IsJSONHandle() {
  6878. z.WriteStr("\"Tptr\"")
  6879. } else {
  6880. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  6881. }
  6882. z.EncWriteMapElemValue()
  6883. if yyn7 {
  6884. r.EncodeNil()
  6885. } else {
  6886. yy18 := *x.Tptr
  6887. if !z.EncBasicHandle().TimeNotBuiltin {
  6888. r.EncodeTime(yy18)
  6889. } else if yyxt19 := z.Extension(z.I2Rtid(yy18)); yyxt19 != nil {
  6890. z.EncExtension(yy18, yyxt19)
  6891. } else if z.EncBinary() {
  6892. z.EncBinaryMarshal(yy18)
  6893. } else if !z.EncBinary() && z.IsJSONHandle() {
  6894. z.EncJSONMarshal(yy18)
  6895. } else {
  6896. z.EncFallback(yy18)
  6897. }
  6898. }
  6899. z.EncWriteMapEnd()
  6900. }
  6901. }
  6902. }
  6903. func (x *AnonInTestStrucIntf) CodecDecodeSelf(d *Decoder) {
  6904. var h codecSelfer19780
  6905. z, r := GenHelperDecoder(d)
  6906. _, _, _ = h, z, r
  6907. yyct2 := r.ContainerType()
  6908. if yyct2 == codecSelferValueTypeNil19780 {
  6909. *(x) = AnonInTestStrucIntf{}
  6910. } else if yyct2 == codecSelferValueTypeMap19780 {
  6911. yyl2 := z.DecReadMapStart()
  6912. if yyl2 == 0 {
  6913. } else {
  6914. x.codecDecodeSelfFromMap(yyl2, d)
  6915. }
  6916. z.DecReadMapEnd()
  6917. } else if yyct2 == codecSelferValueTypeArray19780 {
  6918. yyl2 := z.DecReadArrayStart()
  6919. if yyl2 != 0 {
  6920. x.codecDecodeSelfFromArray(yyl2, d)
  6921. }
  6922. z.DecReadArrayEnd()
  6923. } else {
  6924. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  6925. }
  6926. }
  6927. func (x *AnonInTestStrucIntf) codecDecodeSelfFromMap(l int, d *Decoder) {
  6928. var h codecSelfer19780
  6929. z, r := GenHelperDecoder(d)
  6930. _, _, _ = h, z, r
  6931. var yyhl3 bool = l >= 0
  6932. for yyj3 := 0; ; yyj3++ {
  6933. if yyhl3 {
  6934. if yyj3 >= l {
  6935. break
  6936. }
  6937. } else {
  6938. if r.CheckBreak() {
  6939. break
  6940. }
  6941. }
  6942. z.DecReadMapElemKey()
  6943. yys3 := z.StringView(r.DecodeStringAsBytes())
  6944. z.DecReadMapElemValue()
  6945. switch yys3 {
  6946. case "Islice":
  6947. z.F.DecSliceIntfX(&x.Islice, d)
  6948. case "Ms":
  6949. z.F.DecMapStringIntfX(&x.Ms, d)
  6950. case "Nintf":
  6951. z.DecFallback(&x.Nintf, true)
  6952. case "T":
  6953. if !z.DecBasicHandle().TimeNotBuiltin {
  6954. x.T = r.DecodeTime()
  6955. } else if yyxt11 := z.Extension(z.I2Rtid(x.T)); yyxt11 != nil {
  6956. z.DecExtension(x.T, yyxt11)
  6957. } else if z.DecBinary() {
  6958. z.DecBinaryUnmarshal(&x.T)
  6959. } else if !z.DecBinary() && z.IsJSONHandle() {
  6960. z.DecJSONUnmarshal(&x.T)
  6961. } else {
  6962. z.DecFallback(&x.T, false)
  6963. }
  6964. case "Tptr":
  6965. if r.TryNil() {
  6966. if x.Tptr != nil { // remove the if-true
  6967. x.Tptr = nil
  6968. }
  6969. } else {
  6970. if x.Tptr == nil {
  6971. x.Tptr = new(time.Time)
  6972. }
  6973. if !z.DecBasicHandle().TimeNotBuiltin {
  6974. *x.Tptr = r.DecodeTime()
  6975. } else if yyxt13 := z.Extension(z.I2Rtid(x.Tptr)); yyxt13 != nil {
  6976. z.DecExtension(x.Tptr, yyxt13)
  6977. } else if z.DecBinary() {
  6978. z.DecBinaryUnmarshal(x.Tptr)
  6979. } else if !z.DecBinary() && z.IsJSONHandle() {
  6980. z.DecJSONUnmarshal(x.Tptr)
  6981. } else {
  6982. z.DecFallback(x.Tptr, false)
  6983. }
  6984. }
  6985. default:
  6986. z.DecStructFieldNotFound(-1, yys3)
  6987. } // end switch yys3
  6988. } // end for yyj3
  6989. }
  6990. func (x *AnonInTestStrucIntf) codecDecodeSelfFromArray(l int, d *Decoder) {
  6991. var h codecSelfer19780
  6992. z, r := GenHelperDecoder(d)
  6993. _, _, _ = h, z, r
  6994. var yyj14 int
  6995. var yyb14 bool
  6996. var yyhl14 bool = l >= 0
  6997. yyj14++
  6998. if yyhl14 {
  6999. yyb14 = yyj14 > l
  7000. } else {
  7001. yyb14 = r.CheckBreak()
  7002. }
  7003. if yyb14 {
  7004. z.DecReadArrayEnd()
  7005. return
  7006. }
  7007. z.DecReadArrayElem()
  7008. z.F.DecSliceIntfX(&x.Islice, d)
  7009. yyj14++
  7010. if yyhl14 {
  7011. yyb14 = yyj14 > l
  7012. } else {
  7013. yyb14 = r.CheckBreak()
  7014. }
  7015. if yyb14 {
  7016. z.DecReadArrayEnd()
  7017. return
  7018. }
  7019. z.DecReadArrayElem()
  7020. z.F.DecMapStringIntfX(&x.Ms, d)
  7021. yyj14++
  7022. if yyhl14 {
  7023. yyb14 = yyj14 > l
  7024. } else {
  7025. yyb14 = r.CheckBreak()
  7026. }
  7027. if yyb14 {
  7028. z.DecReadArrayEnd()
  7029. return
  7030. }
  7031. z.DecReadArrayElem()
  7032. z.DecFallback(&x.Nintf, true)
  7033. yyj14++
  7034. if yyhl14 {
  7035. yyb14 = yyj14 > l
  7036. } else {
  7037. yyb14 = r.CheckBreak()
  7038. }
  7039. if yyb14 {
  7040. z.DecReadArrayEnd()
  7041. return
  7042. }
  7043. z.DecReadArrayElem()
  7044. if !z.DecBasicHandle().TimeNotBuiltin {
  7045. x.T = r.DecodeTime()
  7046. } else if yyxt22 := z.Extension(z.I2Rtid(x.T)); yyxt22 != nil {
  7047. z.DecExtension(x.T, yyxt22)
  7048. } else if z.DecBinary() {
  7049. z.DecBinaryUnmarshal(&x.T)
  7050. } else if !z.DecBinary() && z.IsJSONHandle() {
  7051. z.DecJSONUnmarshal(&x.T)
  7052. } else {
  7053. z.DecFallback(&x.T, false)
  7054. }
  7055. yyj14++
  7056. if yyhl14 {
  7057. yyb14 = yyj14 > l
  7058. } else {
  7059. yyb14 = r.CheckBreak()
  7060. }
  7061. if yyb14 {
  7062. z.DecReadArrayEnd()
  7063. return
  7064. }
  7065. z.DecReadArrayElem()
  7066. if r.TryNil() {
  7067. if x.Tptr != nil { // remove the if-true
  7068. x.Tptr = nil
  7069. }
  7070. } else {
  7071. if x.Tptr == nil {
  7072. x.Tptr = new(time.Time)
  7073. }
  7074. if !z.DecBasicHandle().TimeNotBuiltin {
  7075. *x.Tptr = r.DecodeTime()
  7076. } else if yyxt24 := z.Extension(z.I2Rtid(x.Tptr)); yyxt24 != nil {
  7077. z.DecExtension(x.Tptr, yyxt24)
  7078. } else if z.DecBinary() {
  7079. z.DecBinaryUnmarshal(x.Tptr)
  7080. } else if !z.DecBinary() && z.IsJSONHandle() {
  7081. z.DecJSONUnmarshal(x.Tptr)
  7082. } else {
  7083. z.DecFallback(x.Tptr, false)
  7084. }
  7085. }
  7086. for {
  7087. yyj14++
  7088. if yyhl14 {
  7089. yyb14 = yyj14 > l
  7090. } else {
  7091. yyb14 = r.CheckBreak()
  7092. }
  7093. if yyb14 {
  7094. break
  7095. }
  7096. z.DecReadArrayElem()
  7097. z.DecStructFieldNotFound(yyj14-1, "")
  7098. }
  7099. }
  7100. func (x *missingFielderT1) CodecEncodeSelf(e *Encoder) {
  7101. var h codecSelfer19780
  7102. z, r := GenHelperEncoder(e)
  7103. _, _, _ = h, z, r
  7104. if x == nil {
  7105. r.EncodeNil()
  7106. } else {
  7107. yysep2 := !z.EncBinary()
  7108. yy2arr2 := z.EncBasicHandle().StructToArray
  7109. _, _ = yysep2, yy2arr2
  7110. const yyr2 bool = false // struct tag has 'toArray'
  7111. if yyr2 || yy2arr2 {
  7112. z.EncWriteArrayStart(2)
  7113. z.EncWriteArrayElem()
  7114. if z.EncBasicHandle().StringToRaw {
  7115. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7116. } else {
  7117. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7118. }
  7119. z.EncWriteArrayElem()
  7120. r.EncodeBool(bool(x.B))
  7121. z.EncWriteArrayEnd()
  7122. } else {
  7123. z.EncWriteMapStart(2)
  7124. z.EncWriteMapElemKey()
  7125. if z.IsJSONHandle() {
  7126. z.WriteStr("\"S\"")
  7127. } else {
  7128. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7129. }
  7130. z.EncWriteMapElemValue()
  7131. if z.EncBasicHandle().StringToRaw {
  7132. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7133. } else {
  7134. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7135. }
  7136. z.EncWriteMapElemKey()
  7137. if z.IsJSONHandle() {
  7138. z.WriteStr("\"B\"")
  7139. } else {
  7140. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7141. }
  7142. z.EncWriteMapElemValue()
  7143. r.EncodeBool(bool(x.B))
  7144. z.EncWriteMapEnd()
  7145. }
  7146. }
  7147. }
  7148. func (x *missingFielderT1) CodecDecodeSelf(d *Decoder) {
  7149. var h codecSelfer19780
  7150. z, r := GenHelperDecoder(d)
  7151. _, _, _ = h, z, r
  7152. yyct2 := r.ContainerType()
  7153. if yyct2 == codecSelferValueTypeNil19780 {
  7154. *(x) = missingFielderT1{}
  7155. } else if yyct2 == codecSelferValueTypeMap19780 {
  7156. yyl2 := z.DecReadMapStart()
  7157. if yyl2 == 0 {
  7158. } else {
  7159. x.codecDecodeSelfFromMap(yyl2, d)
  7160. }
  7161. z.DecReadMapEnd()
  7162. } else if yyct2 == codecSelferValueTypeArray19780 {
  7163. yyl2 := z.DecReadArrayStart()
  7164. if yyl2 != 0 {
  7165. x.codecDecodeSelfFromArray(yyl2, d)
  7166. }
  7167. z.DecReadArrayEnd()
  7168. } else {
  7169. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7170. }
  7171. }
  7172. func (x *missingFielderT1) codecDecodeSelfFromMap(l int, d *Decoder) {
  7173. var h codecSelfer19780
  7174. z, r := GenHelperDecoder(d)
  7175. _, _, _ = h, z, r
  7176. var yyhl3 bool = l >= 0
  7177. for yyj3 := 0; ; yyj3++ {
  7178. if yyhl3 {
  7179. if yyj3 >= l {
  7180. break
  7181. }
  7182. } else {
  7183. if r.CheckBreak() {
  7184. break
  7185. }
  7186. }
  7187. z.DecReadMapElemKey()
  7188. yys3 := z.StringView(r.DecodeStringAsBytes())
  7189. z.DecReadMapElemValue()
  7190. switch yys3 {
  7191. case "S":
  7192. x.S = (string)(string(r.DecodeStringAsBytes()))
  7193. case "B":
  7194. x.B = (bool)(r.DecodeBool())
  7195. default:
  7196. z.DecStructFieldNotFound(-1, yys3)
  7197. } // end switch yys3
  7198. } // end for yyj3
  7199. }
  7200. func (x *missingFielderT1) codecDecodeSelfFromArray(l int, d *Decoder) {
  7201. var h codecSelfer19780
  7202. z, r := GenHelperDecoder(d)
  7203. _, _, _ = h, z, r
  7204. var yyj6 int
  7205. var yyb6 bool
  7206. var yyhl6 bool = l >= 0
  7207. yyj6++
  7208. if yyhl6 {
  7209. yyb6 = yyj6 > l
  7210. } else {
  7211. yyb6 = r.CheckBreak()
  7212. }
  7213. if yyb6 {
  7214. z.DecReadArrayEnd()
  7215. return
  7216. }
  7217. z.DecReadArrayElem()
  7218. x.S = (string)(string(r.DecodeStringAsBytes()))
  7219. yyj6++
  7220. if yyhl6 {
  7221. yyb6 = yyj6 > l
  7222. } else {
  7223. yyb6 = r.CheckBreak()
  7224. }
  7225. if yyb6 {
  7226. z.DecReadArrayEnd()
  7227. return
  7228. }
  7229. z.DecReadArrayElem()
  7230. x.B = (bool)(r.DecodeBool())
  7231. for {
  7232. yyj6++
  7233. if yyhl6 {
  7234. yyb6 = yyj6 > l
  7235. } else {
  7236. yyb6 = r.CheckBreak()
  7237. }
  7238. if yyb6 {
  7239. break
  7240. }
  7241. z.DecReadArrayElem()
  7242. z.DecStructFieldNotFound(yyj6-1, "")
  7243. }
  7244. }
  7245. func (x *missingFielderT2) CodecEncodeSelf(e *Encoder) {
  7246. var h codecSelfer19780
  7247. z, r := GenHelperEncoder(e)
  7248. _, _, _ = h, z, r
  7249. if x == nil {
  7250. r.EncodeNil()
  7251. } else {
  7252. yysep2 := !z.EncBinary()
  7253. yy2arr2 := z.EncBasicHandle().StructToArray
  7254. _, _ = yysep2, yy2arr2
  7255. const yyr2 bool = false // struct tag has 'toArray'
  7256. if yyr2 || yy2arr2 {
  7257. z.EncWriteArrayStart(4)
  7258. z.EncWriteArrayElem()
  7259. if z.EncBasicHandle().StringToRaw {
  7260. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7261. } else {
  7262. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7263. }
  7264. z.EncWriteArrayElem()
  7265. r.EncodeBool(bool(x.B))
  7266. z.EncWriteArrayElem()
  7267. r.EncodeFloat64(float64(x.F))
  7268. z.EncWriteArrayElem()
  7269. r.EncodeInt(int64(x.I))
  7270. z.EncWriteArrayEnd()
  7271. } else {
  7272. z.EncWriteMapStart(4)
  7273. z.EncWriteMapElemKey()
  7274. if z.IsJSONHandle() {
  7275. z.WriteStr("\"S\"")
  7276. } else {
  7277. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7278. }
  7279. z.EncWriteMapElemValue()
  7280. if z.EncBasicHandle().StringToRaw {
  7281. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7282. } else {
  7283. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7284. }
  7285. z.EncWriteMapElemKey()
  7286. if z.IsJSONHandle() {
  7287. z.WriteStr("\"B\"")
  7288. } else {
  7289. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7290. }
  7291. z.EncWriteMapElemValue()
  7292. r.EncodeBool(bool(x.B))
  7293. z.EncWriteMapElemKey()
  7294. if z.IsJSONHandle() {
  7295. z.WriteStr("\"F\"")
  7296. } else {
  7297. r.EncodeStringEnc(codecSelferCcUTF819780, `F`)
  7298. }
  7299. z.EncWriteMapElemValue()
  7300. r.EncodeFloat64(float64(x.F))
  7301. z.EncWriteMapElemKey()
  7302. if z.IsJSONHandle() {
  7303. z.WriteStr("\"I\"")
  7304. } else {
  7305. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7306. }
  7307. z.EncWriteMapElemValue()
  7308. r.EncodeInt(int64(x.I))
  7309. z.EncWriteMapEnd()
  7310. }
  7311. }
  7312. }
  7313. func (x *missingFielderT2) CodecDecodeSelf(d *Decoder) {
  7314. var h codecSelfer19780
  7315. z, r := GenHelperDecoder(d)
  7316. _, _, _ = h, z, r
  7317. yyct2 := r.ContainerType()
  7318. if yyct2 == codecSelferValueTypeNil19780 {
  7319. *(x) = missingFielderT2{}
  7320. } else if yyct2 == codecSelferValueTypeMap19780 {
  7321. yyl2 := z.DecReadMapStart()
  7322. if yyl2 == 0 {
  7323. } else {
  7324. x.codecDecodeSelfFromMap(yyl2, d)
  7325. }
  7326. z.DecReadMapEnd()
  7327. } else if yyct2 == codecSelferValueTypeArray19780 {
  7328. yyl2 := z.DecReadArrayStart()
  7329. if yyl2 != 0 {
  7330. x.codecDecodeSelfFromArray(yyl2, d)
  7331. }
  7332. z.DecReadArrayEnd()
  7333. } else {
  7334. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7335. }
  7336. }
  7337. func (x *missingFielderT2) codecDecodeSelfFromMap(l int, d *Decoder) {
  7338. var h codecSelfer19780
  7339. z, r := GenHelperDecoder(d)
  7340. _, _, _ = h, z, r
  7341. var yyhl3 bool = l >= 0
  7342. for yyj3 := 0; ; yyj3++ {
  7343. if yyhl3 {
  7344. if yyj3 >= l {
  7345. break
  7346. }
  7347. } else {
  7348. if r.CheckBreak() {
  7349. break
  7350. }
  7351. }
  7352. z.DecReadMapElemKey()
  7353. yys3 := z.StringView(r.DecodeStringAsBytes())
  7354. z.DecReadMapElemValue()
  7355. switch yys3 {
  7356. case "S":
  7357. x.S = (string)(string(r.DecodeStringAsBytes()))
  7358. case "B":
  7359. x.B = (bool)(r.DecodeBool())
  7360. case "F":
  7361. x.F = (float64)(r.DecodeFloat64())
  7362. case "I":
  7363. x.I = (int64)(r.DecodeInt64())
  7364. default:
  7365. z.DecStructFieldNotFound(-1, yys3)
  7366. } // end switch yys3
  7367. } // end for yyj3
  7368. }
  7369. func (x *missingFielderT2) codecDecodeSelfFromArray(l int, d *Decoder) {
  7370. var h codecSelfer19780
  7371. z, r := GenHelperDecoder(d)
  7372. _, _, _ = h, z, r
  7373. var yyj8 int
  7374. var yyb8 bool
  7375. var yyhl8 bool = l >= 0
  7376. yyj8++
  7377. if yyhl8 {
  7378. yyb8 = yyj8 > l
  7379. } else {
  7380. yyb8 = r.CheckBreak()
  7381. }
  7382. if yyb8 {
  7383. z.DecReadArrayEnd()
  7384. return
  7385. }
  7386. z.DecReadArrayElem()
  7387. x.S = (string)(string(r.DecodeStringAsBytes()))
  7388. yyj8++
  7389. if yyhl8 {
  7390. yyb8 = yyj8 > l
  7391. } else {
  7392. yyb8 = r.CheckBreak()
  7393. }
  7394. if yyb8 {
  7395. z.DecReadArrayEnd()
  7396. return
  7397. }
  7398. z.DecReadArrayElem()
  7399. x.B = (bool)(r.DecodeBool())
  7400. yyj8++
  7401. if yyhl8 {
  7402. yyb8 = yyj8 > l
  7403. } else {
  7404. yyb8 = r.CheckBreak()
  7405. }
  7406. if yyb8 {
  7407. z.DecReadArrayEnd()
  7408. return
  7409. }
  7410. z.DecReadArrayElem()
  7411. x.F = (float64)(r.DecodeFloat64())
  7412. yyj8++
  7413. if yyhl8 {
  7414. yyb8 = yyj8 > l
  7415. } else {
  7416. yyb8 = r.CheckBreak()
  7417. }
  7418. if yyb8 {
  7419. z.DecReadArrayEnd()
  7420. return
  7421. }
  7422. z.DecReadArrayElem()
  7423. x.I = (int64)(r.DecodeInt64())
  7424. for {
  7425. yyj8++
  7426. if yyhl8 {
  7427. yyb8 = yyj8 > l
  7428. } else {
  7429. yyb8 = r.CheckBreak()
  7430. }
  7431. if yyb8 {
  7432. break
  7433. }
  7434. z.DecReadArrayElem()
  7435. z.DecStructFieldNotFound(yyj8-1, "")
  7436. }
  7437. }
  7438. func (x *testSelfExtHelper) CodecEncodeSelf(e *Encoder) {
  7439. var h codecSelfer19780
  7440. z, r := GenHelperEncoder(e)
  7441. _, _, _ = h, z, r
  7442. if x == nil {
  7443. r.EncodeNil()
  7444. } else {
  7445. yysep2 := !z.EncBinary()
  7446. yy2arr2 := z.EncBasicHandle().StructToArray
  7447. _, _ = yysep2, yy2arr2
  7448. const yyr2 bool = false // struct tag has 'toArray'
  7449. if yyr2 || yy2arr2 {
  7450. z.EncWriteArrayStart(3)
  7451. z.EncWriteArrayElem()
  7452. if z.EncBasicHandle().StringToRaw {
  7453. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7454. } else {
  7455. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7456. }
  7457. z.EncWriteArrayElem()
  7458. r.EncodeInt(int64(x.I))
  7459. z.EncWriteArrayElem()
  7460. r.EncodeBool(bool(x.B))
  7461. z.EncWriteArrayEnd()
  7462. } else {
  7463. z.EncWriteMapStart(3)
  7464. z.EncWriteMapElemKey()
  7465. if z.IsJSONHandle() {
  7466. z.WriteStr("\"S\"")
  7467. } else {
  7468. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7469. }
  7470. z.EncWriteMapElemValue()
  7471. if z.EncBasicHandle().StringToRaw {
  7472. r.EncodeStringBytesRaw(z.BytesView(string(x.S)))
  7473. } else {
  7474. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.S))
  7475. }
  7476. z.EncWriteMapElemKey()
  7477. if z.IsJSONHandle() {
  7478. z.WriteStr("\"I\"")
  7479. } else {
  7480. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7481. }
  7482. z.EncWriteMapElemValue()
  7483. r.EncodeInt(int64(x.I))
  7484. z.EncWriteMapElemKey()
  7485. if z.IsJSONHandle() {
  7486. z.WriteStr("\"B\"")
  7487. } else {
  7488. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7489. }
  7490. z.EncWriteMapElemValue()
  7491. r.EncodeBool(bool(x.B))
  7492. z.EncWriteMapEnd()
  7493. }
  7494. }
  7495. }
  7496. func (x *testSelfExtHelper) CodecDecodeSelf(d *Decoder) {
  7497. var h codecSelfer19780
  7498. z, r := GenHelperDecoder(d)
  7499. _, _, _ = h, z, r
  7500. yyct2 := r.ContainerType()
  7501. if yyct2 == codecSelferValueTypeNil19780 {
  7502. *(x) = testSelfExtHelper{}
  7503. } else if yyct2 == codecSelferValueTypeMap19780 {
  7504. yyl2 := z.DecReadMapStart()
  7505. if yyl2 == 0 {
  7506. } else {
  7507. x.codecDecodeSelfFromMap(yyl2, d)
  7508. }
  7509. z.DecReadMapEnd()
  7510. } else if yyct2 == codecSelferValueTypeArray19780 {
  7511. yyl2 := z.DecReadArrayStart()
  7512. if yyl2 != 0 {
  7513. x.codecDecodeSelfFromArray(yyl2, d)
  7514. }
  7515. z.DecReadArrayEnd()
  7516. } else {
  7517. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7518. }
  7519. }
  7520. func (x *testSelfExtHelper) codecDecodeSelfFromMap(l int, d *Decoder) {
  7521. var h codecSelfer19780
  7522. z, r := GenHelperDecoder(d)
  7523. _, _, _ = h, z, r
  7524. var yyhl3 bool = l >= 0
  7525. for yyj3 := 0; ; yyj3++ {
  7526. if yyhl3 {
  7527. if yyj3 >= l {
  7528. break
  7529. }
  7530. } else {
  7531. if r.CheckBreak() {
  7532. break
  7533. }
  7534. }
  7535. z.DecReadMapElemKey()
  7536. yys3 := z.StringView(r.DecodeStringAsBytes())
  7537. z.DecReadMapElemValue()
  7538. switch yys3 {
  7539. case "S":
  7540. x.S = (string)(string(r.DecodeStringAsBytes()))
  7541. case "I":
  7542. x.I = (int64)(r.DecodeInt64())
  7543. case "B":
  7544. x.B = (bool)(r.DecodeBool())
  7545. default:
  7546. z.DecStructFieldNotFound(-1, yys3)
  7547. } // end switch yys3
  7548. } // end for yyj3
  7549. }
  7550. func (x *testSelfExtHelper) codecDecodeSelfFromArray(l int, d *Decoder) {
  7551. var h codecSelfer19780
  7552. z, r := GenHelperDecoder(d)
  7553. _, _, _ = h, z, r
  7554. var yyj7 int
  7555. var yyb7 bool
  7556. var yyhl7 bool = l >= 0
  7557. yyj7++
  7558. if yyhl7 {
  7559. yyb7 = yyj7 > l
  7560. } else {
  7561. yyb7 = r.CheckBreak()
  7562. }
  7563. if yyb7 {
  7564. z.DecReadArrayEnd()
  7565. return
  7566. }
  7567. z.DecReadArrayElem()
  7568. x.S = (string)(string(r.DecodeStringAsBytes()))
  7569. yyj7++
  7570. if yyhl7 {
  7571. yyb7 = yyj7 > l
  7572. } else {
  7573. yyb7 = r.CheckBreak()
  7574. }
  7575. if yyb7 {
  7576. z.DecReadArrayEnd()
  7577. return
  7578. }
  7579. z.DecReadArrayElem()
  7580. x.I = (int64)(r.DecodeInt64())
  7581. yyj7++
  7582. if yyhl7 {
  7583. yyb7 = yyj7 > l
  7584. } else {
  7585. yyb7 = r.CheckBreak()
  7586. }
  7587. if yyb7 {
  7588. z.DecReadArrayEnd()
  7589. return
  7590. }
  7591. z.DecReadArrayElem()
  7592. x.B = (bool)(r.DecodeBool())
  7593. for {
  7594. yyj7++
  7595. if yyhl7 {
  7596. yyb7 = yyj7 > l
  7597. } else {
  7598. yyb7 = r.CheckBreak()
  7599. }
  7600. if yyb7 {
  7601. break
  7602. }
  7603. z.DecReadArrayElem()
  7604. z.DecStructFieldNotFound(yyj7-1, "")
  7605. }
  7606. }
  7607. func (x *TestSelfExtImpl) CodecEncodeSelf(e *Encoder) {
  7608. var h codecSelfer19780
  7609. z, r := GenHelperEncoder(e)
  7610. _, _, _ = h, z, r
  7611. if x == nil {
  7612. r.EncodeNil()
  7613. } else {
  7614. yysep2 := !z.EncBinary()
  7615. yy2arr2 := z.EncBasicHandle().StructToArray
  7616. _, _ = yysep2, yy2arr2
  7617. const yyr2 bool = false // struct tag has 'toArray'
  7618. if yyr2 || yy2arr2 {
  7619. z.EncWriteArrayStart(3)
  7620. z.EncWriteArrayElem()
  7621. if z.EncBasicHandle().StringToRaw {
  7622. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  7623. } else {
  7624. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  7625. }
  7626. z.EncWriteArrayElem()
  7627. r.EncodeInt(int64(x.testSelfExtHelper.I))
  7628. z.EncWriteArrayElem()
  7629. r.EncodeBool(bool(x.testSelfExtHelper.B))
  7630. z.EncWriteArrayEnd()
  7631. } else {
  7632. z.EncWriteMapStart(3)
  7633. z.EncWriteMapElemKey()
  7634. if z.IsJSONHandle() {
  7635. z.WriteStr("\"S\"")
  7636. } else {
  7637. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  7638. }
  7639. z.EncWriteMapElemValue()
  7640. if z.EncBasicHandle().StringToRaw {
  7641. r.EncodeStringBytesRaw(z.BytesView(string(x.testSelfExtHelper.S)))
  7642. } else {
  7643. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.testSelfExtHelper.S))
  7644. }
  7645. z.EncWriteMapElemKey()
  7646. if z.IsJSONHandle() {
  7647. z.WriteStr("\"I\"")
  7648. } else {
  7649. r.EncodeStringEnc(codecSelferCcUTF819780, `I`)
  7650. }
  7651. z.EncWriteMapElemValue()
  7652. r.EncodeInt(int64(x.testSelfExtHelper.I))
  7653. z.EncWriteMapElemKey()
  7654. if z.IsJSONHandle() {
  7655. z.WriteStr("\"B\"")
  7656. } else {
  7657. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7658. }
  7659. z.EncWriteMapElemValue()
  7660. r.EncodeBool(bool(x.testSelfExtHelper.B))
  7661. z.EncWriteMapEnd()
  7662. }
  7663. }
  7664. }
  7665. func (x *TestSelfExtImpl) CodecDecodeSelf(d *Decoder) {
  7666. var h codecSelfer19780
  7667. z, r := GenHelperDecoder(d)
  7668. _, _, _ = h, z, r
  7669. yyct2 := r.ContainerType()
  7670. if yyct2 == codecSelferValueTypeNil19780 {
  7671. *(x) = TestSelfExtImpl{}
  7672. } else if yyct2 == codecSelferValueTypeMap19780 {
  7673. yyl2 := z.DecReadMapStart()
  7674. if yyl2 == 0 {
  7675. } else {
  7676. x.codecDecodeSelfFromMap(yyl2, d)
  7677. }
  7678. z.DecReadMapEnd()
  7679. } else if yyct2 == codecSelferValueTypeArray19780 {
  7680. yyl2 := z.DecReadArrayStart()
  7681. if yyl2 != 0 {
  7682. x.codecDecodeSelfFromArray(yyl2, d)
  7683. }
  7684. z.DecReadArrayEnd()
  7685. } else {
  7686. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7687. }
  7688. }
  7689. func (x *TestSelfExtImpl) codecDecodeSelfFromMap(l int, d *Decoder) {
  7690. var h codecSelfer19780
  7691. z, r := GenHelperDecoder(d)
  7692. _, _, _ = h, z, r
  7693. var yyhl3 bool = l >= 0
  7694. for yyj3 := 0; ; yyj3++ {
  7695. if yyhl3 {
  7696. if yyj3 >= l {
  7697. break
  7698. }
  7699. } else {
  7700. if r.CheckBreak() {
  7701. break
  7702. }
  7703. }
  7704. z.DecReadMapElemKey()
  7705. yys3 := z.StringView(r.DecodeStringAsBytes())
  7706. z.DecReadMapElemValue()
  7707. switch yys3 {
  7708. case "S":
  7709. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  7710. case "I":
  7711. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  7712. case "B":
  7713. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  7714. default:
  7715. z.DecStructFieldNotFound(-1, yys3)
  7716. } // end switch yys3
  7717. } // end for yyj3
  7718. }
  7719. func (x *TestSelfExtImpl) codecDecodeSelfFromArray(l int, d *Decoder) {
  7720. var h codecSelfer19780
  7721. z, r := GenHelperDecoder(d)
  7722. _, _, _ = h, z, r
  7723. var yyj7 int
  7724. var yyb7 bool
  7725. var yyhl7 bool = l >= 0
  7726. yyj7++
  7727. if yyhl7 {
  7728. yyb7 = yyj7 > l
  7729. } else {
  7730. yyb7 = r.CheckBreak()
  7731. }
  7732. if yyb7 {
  7733. z.DecReadArrayEnd()
  7734. return
  7735. }
  7736. z.DecReadArrayElem()
  7737. x.testSelfExtHelper.S = (string)(string(r.DecodeStringAsBytes()))
  7738. yyj7++
  7739. if yyhl7 {
  7740. yyb7 = yyj7 > l
  7741. } else {
  7742. yyb7 = r.CheckBreak()
  7743. }
  7744. if yyb7 {
  7745. z.DecReadArrayEnd()
  7746. return
  7747. }
  7748. z.DecReadArrayElem()
  7749. x.testSelfExtHelper.I = (int64)(r.DecodeInt64())
  7750. yyj7++
  7751. if yyhl7 {
  7752. yyb7 = yyj7 > l
  7753. } else {
  7754. yyb7 = r.CheckBreak()
  7755. }
  7756. if yyb7 {
  7757. z.DecReadArrayEnd()
  7758. return
  7759. }
  7760. z.DecReadArrayElem()
  7761. x.testSelfExtHelper.B = (bool)(r.DecodeBool())
  7762. for {
  7763. yyj7++
  7764. if yyhl7 {
  7765. yyb7 = yyj7 > l
  7766. } else {
  7767. yyb7 = r.CheckBreak()
  7768. }
  7769. if yyb7 {
  7770. break
  7771. }
  7772. z.DecReadArrayElem()
  7773. z.DecStructFieldNotFound(yyj7-1, "")
  7774. }
  7775. }
  7776. func (x *TestSelfExtImpl2) CodecEncodeSelf(e *Encoder) {
  7777. var h codecSelfer19780
  7778. z, r := GenHelperEncoder(e)
  7779. _, _, _ = h, z, r
  7780. if x == nil {
  7781. r.EncodeNil()
  7782. } else {
  7783. yysep2 := !z.EncBinary()
  7784. yy2arr2 := z.EncBasicHandle().StructToArray
  7785. _, _ = yysep2, yy2arr2
  7786. const yyr2 bool = false // struct tag has 'toArray'
  7787. if yyr2 || yy2arr2 {
  7788. z.EncWriteArrayStart(2)
  7789. z.EncWriteArrayElem()
  7790. if z.EncBasicHandle().StringToRaw {
  7791. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  7792. } else {
  7793. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  7794. }
  7795. z.EncWriteArrayElem()
  7796. r.EncodeBool(bool(x.O))
  7797. z.EncWriteArrayEnd()
  7798. } else {
  7799. z.EncWriteMapStart(2)
  7800. z.EncWriteMapElemKey()
  7801. if z.IsJSONHandle() {
  7802. z.WriteStr("\"M\"")
  7803. } else {
  7804. r.EncodeStringEnc(codecSelferCcUTF819780, `M`)
  7805. }
  7806. z.EncWriteMapElemValue()
  7807. if z.EncBasicHandle().StringToRaw {
  7808. r.EncodeStringBytesRaw(z.BytesView(string(x.M)))
  7809. } else {
  7810. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.M))
  7811. }
  7812. z.EncWriteMapElemKey()
  7813. if z.IsJSONHandle() {
  7814. z.WriteStr("\"O\"")
  7815. } else {
  7816. r.EncodeStringEnc(codecSelferCcUTF819780, `O`)
  7817. }
  7818. z.EncWriteMapElemValue()
  7819. r.EncodeBool(bool(x.O))
  7820. z.EncWriteMapEnd()
  7821. }
  7822. }
  7823. }
  7824. func (x *TestSelfExtImpl2) CodecDecodeSelf(d *Decoder) {
  7825. var h codecSelfer19780
  7826. z, r := GenHelperDecoder(d)
  7827. _, _, _ = h, z, r
  7828. yyct2 := r.ContainerType()
  7829. if yyct2 == codecSelferValueTypeNil19780 {
  7830. *(x) = TestSelfExtImpl2{}
  7831. } else if yyct2 == codecSelferValueTypeMap19780 {
  7832. yyl2 := z.DecReadMapStart()
  7833. if yyl2 == 0 {
  7834. } else {
  7835. x.codecDecodeSelfFromMap(yyl2, d)
  7836. }
  7837. z.DecReadMapEnd()
  7838. } else if yyct2 == codecSelferValueTypeArray19780 {
  7839. yyl2 := z.DecReadArrayStart()
  7840. if yyl2 != 0 {
  7841. x.codecDecodeSelfFromArray(yyl2, d)
  7842. }
  7843. z.DecReadArrayEnd()
  7844. } else {
  7845. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7846. }
  7847. }
  7848. func (x *TestSelfExtImpl2) codecDecodeSelfFromMap(l int, d *Decoder) {
  7849. var h codecSelfer19780
  7850. z, r := GenHelperDecoder(d)
  7851. _, _, _ = h, z, r
  7852. var yyhl3 bool = l >= 0
  7853. for yyj3 := 0; ; yyj3++ {
  7854. if yyhl3 {
  7855. if yyj3 >= l {
  7856. break
  7857. }
  7858. } else {
  7859. if r.CheckBreak() {
  7860. break
  7861. }
  7862. }
  7863. z.DecReadMapElemKey()
  7864. yys3 := z.StringView(r.DecodeStringAsBytes())
  7865. z.DecReadMapElemValue()
  7866. switch yys3 {
  7867. case "M":
  7868. x.M = (string)(string(r.DecodeStringAsBytes()))
  7869. case "O":
  7870. x.O = (bool)(r.DecodeBool())
  7871. default:
  7872. z.DecStructFieldNotFound(-1, yys3)
  7873. } // end switch yys3
  7874. } // end for yyj3
  7875. }
  7876. func (x *TestSelfExtImpl2) codecDecodeSelfFromArray(l int, d *Decoder) {
  7877. var h codecSelfer19780
  7878. z, r := GenHelperDecoder(d)
  7879. _, _, _ = h, z, r
  7880. var yyj6 int
  7881. var yyb6 bool
  7882. var yyhl6 bool = l >= 0
  7883. yyj6++
  7884. if yyhl6 {
  7885. yyb6 = yyj6 > l
  7886. } else {
  7887. yyb6 = r.CheckBreak()
  7888. }
  7889. if yyb6 {
  7890. z.DecReadArrayEnd()
  7891. return
  7892. }
  7893. z.DecReadArrayElem()
  7894. x.M = (string)(string(r.DecodeStringAsBytes()))
  7895. yyj6++
  7896. if yyhl6 {
  7897. yyb6 = yyj6 > l
  7898. } else {
  7899. yyb6 = r.CheckBreak()
  7900. }
  7901. if yyb6 {
  7902. z.DecReadArrayEnd()
  7903. return
  7904. }
  7905. z.DecReadArrayElem()
  7906. x.O = (bool)(r.DecodeBool())
  7907. for {
  7908. yyj6++
  7909. if yyhl6 {
  7910. yyb6 = yyj6 > l
  7911. } else {
  7912. yyb6 = r.CheckBreak()
  7913. }
  7914. if yyb6 {
  7915. break
  7916. }
  7917. z.DecReadArrayElem()
  7918. z.DecStructFieldNotFound(yyj6-1, "")
  7919. }
  7920. }
  7921. func (x *TestTwoNakedInterfaces) CodecEncodeSelf(e *Encoder) {
  7922. var h codecSelfer19780
  7923. z, r := GenHelperEncoder(e)
  7924. _, _, _ = h, z, r
  7925. if x == nil {
  7926. r.EncodeNil()
  7927. } else {
  7928. yysep2 := !z.EncBinary()
  7929. yy2arr2 := z.EncBasicHandle().StructToArray
  7930. _, _ = yysep2, yy2arr2
  7931. const yyr2 bool = false // struct tag has 'toArray'
  7932. if yyr2 || yy2arr2 {
  7933. z.EncWriteArrayStart(2)
  7934. z.EncWriteArrayElem()
  7935. z.EncFallback(x.A)
  7936. z.EncWriteArrayElem()
  7937. z.EncFallback(x.B)
  7938. z.EncWriteArrayEnd()
  7939. } else {
  7940. z.EncWriteMapStart(2)
  7941. z.EncWriteMapElemKey()
  7942. if z.IsJSONHandle() {
  7943. z.WriteStr("\"A\"")
  7944. } else {
  7945. r.EncodeStringEnc(codecSelferCcUTF819780, `A`)
  7946. }
  7947. z.EncWriteMapElemValue()
  7948. z.EncFallback(x.A)
  7949. z.EncWriteMapElemKey()
  7950. if z.IsJSONHandle() {
  7951. z.WriteStr("\"B\"")
  7952. } else {
  7953. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  7954. }
  7955. z.EncWriteMapElemValue()
  7956. z.EncFallback(x.B)
  7957. z.EncWriteMapEnd()
  7958. }
  7959. }
  7960. }
  7961. func (x *TestTwoNakedInterfaces) CodecDecodeSelf(d *Decoder) {
  7962. var h codecSelfer19780
  7963. z, r := GenHelperDecoder(d)
  7964. _, _, _ = h, z, r
  7965. yyct2 := r.ContainerType()
  7966. if yyct2 == codecSelferValueTypeNil19780 {
  7967. *(x) = TestTwoNakedInterfaces{}
  7968. } else if yyct2 == codecSelferValueTypeMap19780 {
  7969. yyl2 := z.DecReadMapStart()
  7970. if yyl2 == 0 {
  7971. } else {
  7972. x.codecDecodeSelfFromMap(yyl2, d)
  7973. }
  7974. z.DecReadMapEnd()
  7975. } else if yyct2 == codecSelferValueTypeArray19780 {
  7976. yyl2 := z.DecReadArrayStart()
  7977. if yyl2 != 0 {
  7978. x.codecDecodeSelfFromArray(yyl2, d)
  7979. }
  7980. z.DecReadArrayEnd()
  7981. } else {
  7982. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  7983. }
  7984. }
  7985. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromMap(l int, d *Decoder) {
  7986. var h codecSelfer19780
  7987. z, r := GenHelperDecoder(d)
  7988. _, _, _ = h, z, r
  7989. var yyhl3 bool = l >= 0
  7990. for yyj3 := 0; ; yyj3++ {
  7991. if yyhl3 {
  7992. if yyj3 >= l {
  7993. break
  7994. }
  7995. } else {
  7996. if r.CheckBreak() {
  7997. break
  7998. }
  7999. }
  8000. z.DecReadMapElemKey()
  8001. yys3 := z.StringView(r.DecodeStringAsBytes())
  8002. z.DecReadMapElemValue()
  8003. switch yys3 {
  8004. case "A":
  8005. z.DecFallback(&x.A, true)
  8006. case "B":
  8007. z.DecFallback(&x.B, true)
  8008. default:
  8009. z.DecStructFieldNotFound(-1, yys3)
  8010. } // end switch yys3
  8011. } // end for yyj3
  8012. }
  8013. func (x *TestTwoNakedInterfaces) codecDecodeSelfFromArray(l int, d *Decoder) {
  8014. var h codecSelfer19780
  8015. z, r := GenHelperDecoder(d)
  8016. _, _, _ = h, z, r
  8017. var yyj8 int
  8018. var yyb8 bool
  8019. var yyhl8 bool = l >= 0
  8020. yyj8++
  8021. if yyhl8 {
  8022. yyb8 = yyj8 > l
  8023. } else {
  8024. yyb8 = r.CheckBreak()
  8025. }
  8026. if yyb8 {
  8027. z.DecReadArrayEnd()
  8028. return
  8029. }
  8030. z.DecReadArrayElem()
  8031. z.DecFallback(&x.A, true)
  8032. yyj8++
  8033. if yyhl8 {
  8034. yyb8 = yyj8 > l
  8035. } else {
  8036. yyb8 = r.CheckBreak()
  8037. }
  8038. if yyb8 {
  8039. z.DecReadArrayEnd()
  8040. return
  8041. }
  8042. z.DecReadArrayElem()
  8043. z.DecFallback(&x.B, true)
  8044. for {
  8045. yyj8++
  8046. if yyhl8 {
  8047. yyb8 = yyj8 > l
  8048. } else {
  8049. yyb8 = r.CheckBreak()
  8050. }
  8051. if yyb8 {
  8052. break
  8053. }
  8054. z.DecReadArrayElem()
  8055. z.DecStructFieldNotFound(yyj8-1, "")
  8056. }
  8057. }
  8058. func (x *TestStrucFlex) CodecEncodeSelf(e *Encoder) {
  8059. var h codecSelfer19780
  8060. z, r := GenHelperEncoder(e)
  8061. _, _, _ = h, z, r
  8062. if x == nil {
  8063. r.EncodeNil()
  8064. } else {
  8065. yysep2 := !z.EncBinary()
  8066. yy2arr2 := z.EncBasicHandle().StructToArray
  8067. _, _ = yysep2, yy2arr2
  8068. const yyr2 bool = false // struct tag has 'toArray'
  8069. var yyq2 = [77]bool{ // should field at this index be written?
  8070. x.S != "", // S
  8071. x.I64 != 0, // I64
  8072. x.I32 != 0, // I32
  8073. x.I16 != 0, // I16
  8074. x.I8 != 0, // I8
  8075. x.I64n != 0, // I64n
  8076. x.I32n != 0, // I32n
  8077. x.I16n != 0, // I16n
  8078. x.I8n != 0, // I8n
  8079. x.Ui64 != 0, // Ui64
  8080. x.Ui32 != 0, // Ui32
  8081. x.Ui16 != 0, // Ui16
  8082. x.Ui8 != 0, // Ui8
  8083. x.F64 != 0, // F64
  8084. x.F32 != 0, // F32
  8085. x.B, // B
  8086. x.By != 0, // By
  8087. len(x.Sslice) != 0, // Sslice
  8088. len(x.I64slice) != 0, // I64slice
  8089. len(x.I16slice) != 0, // I16slice
  8090. len(x.Ui64slice) != 0, // Ui64slice
  8091. len(x.Ui8slice) != 0, // Ui8slice
  8092. len(x.Bslice) != 0, // Bslice
  8093. len(x.Byslice) != 0, // Byslice
  8094. len(x.BytesSlice) != 0, // BytesSlice
  8095. len(x.Iptrslice) != 0, // Iptrslice
  8096. len(x.WrapSliceInt64) != 0, // WrapSliceInt64
  8097. len(x.WrapSliceString) != 0, // WrapSliceString
  8098. len(x.Msi64) != 0, // Msi64
  8099. len(x.Msbytes) != 0, // Msbytes
  8100. 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
  8101. len(x.SstrUi64T) != 0, // SstrUi64T
  8102. len(x.MstrUi64T) != 0, // MstrUi64T
  8103. x.AS != "", // AS
  8104. x.AI64 != 0, // AI64
  8105. x.AI16 != 0, // AI16
  8106. x.AUi64 != 0, // AUi64
  8107. len(x.ASslice) != 0, // ASslice
  8108. len(x.AI64slice) != 0, // AI64slice
  8109. len(x.AUi64slice) != 0, // AUi64slice
  8110. len(x.AF64slice) != 0, // AF64slice
  8111. len(x.AF32slice) != 0, // AF32slice
  8112. len(x.AMSU16) != 0, // AMSU16
  8113. len(x.AI64arr0) != 0, // AI64arr0
  8114. len(x.AI64slice0) != 0, // AI64slice0
  8115. len(x.AUi64sliceN) != 0, // AUi64sliceN
  8116. len(x.AMSU16N) != 0, // AMSU16N
  8117. len(x.AMSU16E) != 0, // AMSU16E
  8118. 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
  8119. len(x.Nmap) != 0, // Nmap
  8120. len(x.Nslice) != 0, // Nslice
  8121. x.Nint64 != nil, // Nint64
  8122. len(x.Chstr) != 0, // Chstr
  8123. len(x.Mis) != 0, // Mis
  8124. len(x.Mbu64) != 0, // Mbu64
  8125. len(x.Miwu64s) != 0, // Miwu64s
  8126. len(x.Mfwss) != 0, // Mfwss
  8127. len(x.Mf32wss) != 0, // Mf32wss
  8128. len(x.Mui2wss) != 0, // Mui2wss
  8129. len(x.Msu2wss) != 0, // Msu2wss
  8130. x.Ci64 != 0, // Ci64
  8131. len(x.Swrapbytes) != 0, // Swrapbytes
  8132. len(x.Swrapuint8) != 0, // Swrapuint8
  8133. len(x.ArrStrUi64T) != 0, // ArrStrUi64T
  8134. len(x.Ui64array) != 0, // Ui64array
  8135. len(x.Ui64slicearray) != 0, // Ui64slicearray
  8136. len(x.SintfAarray) != 0, // SintfAarray
  8137. len(x.MstrUi64TSelf) != 0, // MstrUi64TSelf
  8138. x.AnonInTestStrucIntf != nil && len(x.Islice) != 0, // Islice
  8139. x.AnonInTestStrucIntf != nil && len(x.Ms) != 0, // Ms
  8140. x.AnonInTestStrucIntf != nil && x.Nintf != nil, // Nintf
  8141. x.AnonInTestStrucIntf != nil && !(x.T.IsZero()), // T
  8142. x.AnonInTestStrucIntf != nil && x.Tptr != nil, // Tptr
  8143. len(x.Mtsptr) != 0, // Mtsptr
  8144. len(x.Mts) != 0, // Mts
  8145. len(x.Its) != 0, // Its
  8146. x.Nteststruc != nil, // Nteststruc
  8147. }
  8148. _ = yyq2
  8149. var yyn54 bool = x.TestStrucCommon.Nint64 == nil
  8150. var yyn71 bool = x.AnonInTestStrucIntf == nil
  8151. var yyn72 bool = x.AnonInTestStrucIntf == nil
  8152. var yyn73 bool = x.AnonInTestStrucIntf == nil
  8153. var yyn74 bool = x.AnonInTestStrucIntf == nil
  8154. var yyn75 bool = x.AnonInTestStrucIntf == nil || x.AnonInTestStrucIntf.Tptr == nil
  8155. var yyn79 bool = x.Nteststruc == nil
  8156. if yyr2 || yy2arr2 {
  8157. z.EncWriteArrayStart(77)
  8158. z.EncWriteArrayElem()
  8159. if yyq2[0] {
  8160. if z.EncBasicHandle().StringToRaw {
  8161. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  8162. } else {
  8163. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  8164. }
  8165. } else {
  8166. if z.EncBasicHandle().StringToRaw {
  8167. r.EncodeStringBytesRaw([]byte{})
  8168. } else {
  8169. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8170. }
  8171. }
  8172. z.EncWriteArrayElem()
  8173. if yyq2[1] {
  8174. r.EncodeInt(int64(x.TestStrucCommon.I64))
  8175. } else {
  8176. r.EncodeInt(0)
  8177. }
  8178. z.EncWriteArrayElem()
  8179. if yyq2[2] {
  8180. r.EncodeInt(int64(x.TestStrucCommon.I32))
  8181. } else {
  8182. r.EncodeInt(0)
  8183. }
  8184. z.EncWriteArrayElem()
  8185. if yyq2[3] {
  8186. r.EncodeInt(int64(x.TestStrucCommon.I16))
  8187. } else {
  8188. r.EncodeInt(0)
  8189. }
  8190. z.EncWriteArrayElem()
  8191. if yyq2[4] {
  8192. r.EncodeInt(int64(x.TestStrucCommon.I8))
  8193. } else {
  8194. r.EncodeInt(0)
  8195. }
  8196. z.EncWriteArrayElem()
  8197. if yyq2[5] {
  8198. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  8199. } else {
  8200. r.EncodeInt(0)
  8201. }
  8202. z.EncWriteArrayElem()
  8203. if yyq2[6] {
  8204. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  8205. } else {
  8206. r.EncodeInt(0)
  8207. }
  8208. z.EncWriteArrayElem()
  8209. if yyq2[7] {
  8210. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  8211. } else {
  8212. r.EncodeInt(0)
  8213. }
  8214. z.EncWriteArrayElem()
  8215. if yyq2[8] {
  8216. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  8217. } else {
  8218. r.EncodeInt(0)
  8219. }
  8220. z.EncWriteArrayElem()
  8221. if yyq2[9] {
  8222. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  8223. } else {
  8224. r.EncodeUint(0)
  8225. }
  8226. z.EncWriteArrayElem()
  8227. if yyq2[10] {
  8228. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  8229. } else {
  8230. r.EncodeUint(0)
  8231. }
  8232. z.EncWriteArrayElem()
  8233. if yyq2[11] {
  8234. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  8235. } else {
  8236. r.EncodeUint(0)
  8237. }
  8238. z.EncWriteArrayElem()
  8239. if yyq2[12] {
  8240. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  8241. } else {
  8242. r.EncodeUint(0)
  8243. }
  8244. z.EncWriteArrayElem()
  8245. if yyq2[13] {
  8246. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  8247. } else {
  8248. r.EncodeFloat64(0)
  8249. }
  8250. z.EncWriteArrayElem()
  8251. if yyq2[14] {
  8252. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  8253. } else {
  8254. r.EncodeFloat32(0)
  8255. }
  8256. z.EncWriteArrayElem()
  8257. if yyq2[15] {
  8258. r.EncodeBool(bool(x.TestStrucCommon.B))
  8259. } else {
  8260. r.EncodeBool(false)
  8261. }
  8262. z.EncWriteArrayElem()
  8263. if yyq2[16] {
  8264. r.EncodeUint(uint64(x.TestStrucCommon.By))
  8265. } else {
  8266. r.EncodeUint(0)
  8267. }
  8268. z.EncWriteArrayElem()
  8269. if yyq2[17] {
  8270. if x.TestStrucCommon.Sslice == nil {
  8271. r.EncodeNil()
  8272. } else {
  8273. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  8274. } // end block: if x.TestStrucCommon.Sslice slice == nil
  8275. } else {
  8276. r.EncodeNil()
  8277. }
  8278. z.EncWriteArrayElem()
  8279. if yyq2[18] {
  8280. if x.TestStrucCommon.I64slice == nil {
  8281. r.EncodeNil()
  8282. } else {
  8283. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  8284. } // end block: if x.TestStrucCommon.I64slice slice == nil
  8285. } else {
  8286. r.EncodeNil()
  8287. }
  8288. z.EncWriteArrayElem()
  8289. if yyq2[19] {
  8290. if x.TestStrucCommon.I16slice == nil {
  8291. r.EncodeNil()
  8292. } else {
  8293. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  8294. } // end block: if x.TestStrucCommon.I16slice slice == nil
  8295. } else {
  8296. r.EncodeNil()
  8297. }
  8298. z.EncWriteArrayElem()
  8299. if yyq2[20] {
  8300. if x.TestStrucCommon.Ui64slice == nil {
  8301. r.EncodeNil()
  8302. } else {
  8303. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  8304. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  8305. } else {
  8306. r.EncodeNil()
  8307. }
  8308. z.EncWriteArrayElem()
  8309. if yyq2[21] {
  8310. if x.TestStrucCommon.Ui8slice == nil {
  8311. r.EncodeNil()
  8312. } else {
  8313. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  8314. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  8315. } else {
  8316. r.EncodeNil()
  8317. }
  8318. z.EncWriteArrayElem()
  8319. if yyq2[22] {
  8320. if x.TestStrucCommon.Bslice == nil {
  8321. r.EncodeNil()
  8322. } else {
  8323. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  8324. } // end block: if x.TestStrucCommon.Bslice slice == nil
  8325. } else {
  8326. r.EncodeNil()
  8327. }
  8328. z.EncWriteArrayElem()
  8329. if yyq2[23] {
  8330. if x.TestStrucCommon.Byslice == nil {
  8331. r.EncodeNil()
  8332. } else {
  8333. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  8334. } // end block: if x.TestStrucCommon.Byslice slice == nil
  8335. } else {
  8336. r.EncodeNil()
  8337. }
  8338. z.EncWriteArrayElem()
  8339. if yyq2[24] {
  8340. if x.TestStrucCommon.BytesSlice == nil {
  8341. r.EncodeNil()
  8342. } else {
  8343. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  8344. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  8345. } else {
  8346. r.EncodeNil()
  8347. }
  8348. z.EncWriteArrayElem()
  8349. if yyq2[25] {
  8350. if x.TestStrucCommon.Iptrslice == nil {
  8351. r.EncodeNil()
  8352. } else {
  8353. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  8354. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  8355. } else {
  8356. r.EncodeNil()
  8357. }
  8358. z.EncWriteArrayElem()
  8359. if yyq2[26] {
  8360. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  8361. } else {
  8362. r.EncodeNil()
  8363. }
  8364. z.EncWriteArrayElem()
  8365. if yyq2[27] {
  8366. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  8367. } else {
  8368. r.EncodeNil()
  8369. }
  8370. z.EncWriteArrayElem()
  8371. if yyq2[28] {
  8372. if x.TestStrucCommon.Msi64 == nil {
  8373. r.EncodeNil()
  8374. } else {
  8375. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  8376. } // end block: if x.TestStrucCommon.Msi64 map == nil
  8377. } else {
  8378. r.EncodeNil()
  8379. }
  8380. z.EncWriteArrayElem()
  8381. if yyq2[29] {
  8382. if x.TestStrucCommon.Msbytes == nil {
  8383. r.EncodeNil()
  8384. } else {
  8385. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  8386. } // end block: if x.TestStrucCommon.Msbytes map == nil
  8387. } else {
  8388. r.EncodeNil()
  8389. }
  8390. z.EncWriteArrayElem()
  8391. if yyq2[30] {
  8392. yy110 := &x.TestStrucCommon.Simplef
  8393. yy110.CodecEncodeSelf(e)
  8394. } else {
  8395. r.EncodeNil()
  8396. }
  8397. z.EncWriteArrayElem()
  8398. if yyq2[31] {
  8399. if x.TestStrucCommon.SstrUi64T == nil {
  8400. r.EncodeNil()
  8401. } else {
  8402. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  8403. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  8404. } else {
  8405. r.EncodeNil()
  8406. }
  8407. z.EncWriteArrayElem()
  8408. if yyq2[32] {
  8409. if x.TestStrucCommon.MstrUi64T == nil {
  8410. r.EncodeNil()
  8411. } else {
  8412. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  8413. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  8414. } else {
  8415. r.EncodeNil()
  8416. }
  8417. z.EncWriteArrayElem()
  8418. if yyq2[33] {
  8419. if z.EncBasicHandle().StringToRaw {
  8420. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  8421. } else {
  8422. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  8423. }
  8424. } else {
  8425. if z.EncBasicHandle().StringToRaw {
  8426. r.EncodeStringBytesRaw([]byte{})
  8427. } else {
  8428. r.EncodeStringEnc(codecSelferCcUTF819780, "")
  8429. }
  8430. }
  8431. z.EncWriteArrayElem()
  8432. if yyq2[34] {
  8433. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  8434. } else {
  8435. r.EncodeInt(0)
  8436. }
  8437. z.EncWriteArrayElem()
  8438. if yyq2[35] {
  8439. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  8440. } else {
  8441. r.EncodeInt(0)
  8442. }
  8443. z.EncWriteArrayElem()
  8444. if yyq2[36] {
  8445. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  8446. } else {
  8447. r.EncodeUint(0)
  8448. }
  8449. z.EncWriteArrayElem()
  8450. if yyq2[37] {
  8451. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  8452. r.EncodeNil()
  8453. } else {
  8454. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  8455. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  8456. } else {
  8457. r.EncodeNil()
  8458. }
  8459. z.EncWriteArrayElem()
  8460. if yyq2[38] {
  8461. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  8462. r.EncodeNil()
  8463. } else {
  8464. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  8465. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  8466. } else {
  8467. r.EncodeNil()
  8468. }
  8469. z.EncWriteArrayElem()
  8470. if yyq2[39] {
  8471. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  8472. r.EncodeNil()
  8473. } else {
  8474. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  8475. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  8476. } else {
  8477. r.EncodeNil()
  8478. }
  8479. z.EncWriteArrayElem()
  8480. if yyq2[40] {
  8481. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  8482. r.EncodeNil()
  8483. } else {
  8484. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  8485. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  8486. } else {
  8487. r.EncodeNil()
  8488. }
  8489. z.EncWriteArrayElem()
  8490. if yyq2[41] {
  8491. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  8492. r.EncodeNil()
  8493. } else {
  8494. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  8495. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  8496. } else {
  8497. r.EncodeNil()
  8498. }
  8499. z.EncWriteArrayElem()
  8500. if yyq2[42] {
  8501. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  8502. r.EncodeNil()
  8503. } else {
  8504. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  8505. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  8506. } else {
  8507. r.EncodeNil()
  8508. }
  8509. z.EncWriteArrayElem()
  8510. if yyq2[43] {
  8511. yy124 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  8512. h.encArray0int64((*[0]int64)(yy124), e)
  8513. } else {
  8514. r.EncodeNil()
  8515. }
  8516. z.EncWriteArrayElem()
  8517. if yyq2[44] {
  8518. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  8519. r.EncodeNil()
  8520. } else {
  8521. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  8522. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  8523. } else {
  8524. r.EncodeNil()
  8525. }
  8526. z.EncWriteArrayElem()
  8527. if yyq2[45] {
  8528. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  8529. r.EncodeNil()
  8530. } else {
  8531. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  8532. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  8533. } else {
  8534. r.EncodeNil()
  8535. }
  8536. z.EncWriteArrayElem()
  8537. if yyq2[46] {
  8538. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  8539. r.EncodeNil()
  8540. } else {
  8541. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  8542. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  8543. } else {
  8544. r.EncodeNil()
  8545. }
  8546. z.EncWriteArrayElem()
  8547. if yyq2[47] {
  8548. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  8549. r.EncodeNil()
  8550. } else {
  8551. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  8552. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  8553. } else {
  8554. r.EncodeNil()
  8555. }
  8556. z.EncWriteArrayElem()
  8557. if yyq2[48] {
  8558. yy130 := &x.TestStrucCommon.NotAnon
  8559. yy130.CodecEncodeSelf(e)
  8560. } else {
  8561. r.EncodeNil()
  8562. }
  8563. z.EncWriteArrayElem()
  8564. if yyq2[49] {
  8565. if x.TestStrucCommon.Nmap == nil {
  8566. r.EncodeNil()
  8567. } else {
  8568. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  8569. } // end block: if x.TestStrucCommon.Nmap map == nil
  8570. } else {
  8571. r.EncodeNil()
  8572. }
  8573. z.EncWriteArrayElem()
  8574. if yyq2[50] {
  8575. if x.TestStrucCommon.Nslice == nil {
  8576. r.EncodeNil()
  8577. } else {
  8578. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  8579. } // end block: if x.TestStrucCommon.Nslice slice == nil
  8580. } else {
  8581. r.EncodeNil()
  8582. }
  8583. if yyn54 {
  8584. z.EncWriteArrayElem()
  8585. r.EncodeNil()
  8586. } else {
  8587. z.EncWriteArrayElem()
  8588. if yyq2[51] {
  8589. yy134 := *x.TestStrucCommon.Nint64
  8590. r.EncodeInt(int64(yy134))
  8591. } else {
  8592. r.EncodeNil()
  8593. }
  8594. }
  8595. z.EncWriteArrayElem()
  8596. if yyq2[52] {
  8597. h.encChanstring((chan string)(x.Chstr), e)
  8598. } else {
  8599. r.EncodeNil()
  8600. }
  8601. z.EncWriteArrayElem()
  8602. if yyq2[53] {
  8603. if x.Mis == nil {
  8604. r.EncodeNil()
  8605. } else {
  8606. z.F.EncMapIntStringV(x.Mis, e)
  8607. } // end block: if x.Mis map == nil
  8608. } else {
  8609. r.EncodeNil()
  8610. }
  8611. z.EncWriteArrayElem()
  8612. if yyq2[54] {
  8613. if x.Mbu64 == nil {
  8614. r.EncodeNil()
  8615. } else {
  8616. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  8617. } // end block: if x.Mbu64 map == nil
  8618. } else {
  8619. r.EncodeNil()
  8620. }
  8621. z.EncWriteArrayElem()
  8622. if yyq2[55] {
  8623. if x.Miwu64s == nil {
  8624. r.EncodeNil()
  8625. } else {
  8626. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  8627. } // end block: if x.Miwu64s map == nil
  8628. } else {
  8629. r.EncodeNil()
  8630. }
  8631. z.EncWriteArrayElem()
  8632. if yyq2[56] {
  8633. if x.Mfwss == nil {
  8634. r.EncodeNil()
  8635. } else {
  8636. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  8637. } // end block: if x.Mfwss map == nil
  8638. } else {
  8639. r.EncodeNil()
  8640. }
  8641. z.EncWriteArrayElem()
  8642. if yyq2[57] {
  8643. if x.Mf32wss == nil {
  8644. r.EncodeNil()
  8645. } else {
  8646. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  8647. } // end block: if x.Mf32wss map == nil
  8648. } else {
  8649. r.EncodeNil()
  8650. }
  8651. z.EncWriteArrayElem()
  8652. if yyq2[58] {
  8653. if x.Mui2wss == nil {
  8654. r.EncodeNil()
  8655. } else {
  8656. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  8657. } // end block: if x.Mui2wss map == nil
  8658. } else {
  8659. r.EncodeNil()
  8660. }
  8661. z.EncWriteArrayElem()
  8662. if yyq2[59] {
  8663. if x.Msu2wss == nil {
  8664. r.EncodeNil()
  8665. } else {
  8666. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  8667. } // end block: if x.Msu2wss map == nil
  8668. } else {
  8669. r.EncodeNil()
  8670. }
  8671. z.EncWriteArrayElem()
  8672. if yyq2[60] {
  8673. x.Ci64.CodecEncodeSelf(e)
  8674. } else {
  8675. r.EncodeInt(0)
  8676. }
  8677. z.EncWriteArrayElem()
  8678. if yyq2[61] {
  8679. if x.Swrapbytes == nil {
  8680. r.EncodeNil()
  8681. } else {
  8682. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  8683. } // end block: if x.Swrapbytes slice == nil
  8684. } else {
  8685. r.EncodeNil()
  8686. }
  8687. z.EncWriteArrayElem()
  8688. if yyq2[62] {
  8689. if x.Swrapuint8 == nil {
  8690. r.EncodeNil()
  8691. } else {
  8692. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  8693. } // end block: if x.Swrapuint8 slice == nil
  8694. } else {
  8695. r.EncodeNil()
  8696. }
  8697. z.EncWriteArrayElem()
  8698. if yyq2[63] {
  8699. yy147 := &x.ArrStrUi64T
  8700. h.encArray4stringUint64T((*[4]stringUint64T)(yy147), e)
  8701. } else {
  8702. r.EncodeNil()
  8703. }
  8704. z.EncWriteArrayElem()
  8705. if yyq2[64] {
  8706. yy149 := &x.Ui64array
  8707. h.encArray4uint64((*[4]uint64)(yy149), e)
  8708. } else {
  8709. r.EncodeNil()
  8710. }
  8711. z.EncWriteArrayElem()
  8712. if yyq2[65] {
  8713. if x.Ui64slicearray == nil {
  8714. r.EncodeNil()
  8715. } else {
  8716. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  8717. } // end block: if x.Ui64slicearray slice == nil
  8718. } else {
  8719. r.EncodeNil()
  8720. }
  8721. z.EncWriteArrayElem()
  8722. if yyq2[66] {
  8723. if x.SintfAarray == nil {
  8724. r.EncodeNil()
  8725. } else {
  8726. z.F.EncSliceIntfV(x.SintfAarray, e)
  8727. } // end block: if x.SintfAarray slice == nil
  8728. } else {
  8729. r.EncodeNil()
  8730. }
  8731. z.EncWriteArrayElem()
  8732. if yyq2[67] {
  8733. if x.MstrUi64TSelf == nil {
  8734. r.EncodeNil()
  8735. } else {
  8736. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  8737. } // end block: if x.MstrUi64TSelf map == nil
  8738. } else {
  8739. r.EncodeNil()
  8740. }
  8741. if yyn71 {
  8742. z.EncWriteArrayElem()
  8743. r.EncodeNil()
  8744. } else {
  8745. z.EncWriteArrayElem()
  8746. if yyq2[68] {
  8747. if x.AnonInTestStrucIntf.Islice == nil {
  8748. r.EncodeNil()
  8749. } else {
  8750. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  8751. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  8752. } else {
  8753. r.EncodeNil()
  8754. }
  8755. }
  8756. if yyn72 {
  8757. z.EncWriteArrayElem()
  8758. r.EncodeNil()
  8759. } else {
  8760. z.EncWriteArrayElem()
  8761. if yyq2[69] {
  8762. if x.AnonInTestStrucIntf.Ms == nil {
  8763. r.EncodeNil()
  8764. } else {
  8765. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  8766. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  8767. } else {
  8768. r.EncodeNil()
  8769. }
  8770. }
  8771. if yyn73 {
  8772. z.EncWriteArrayElem()
  8773. r.EncodeNil()
  8774. } else {
  8775. z.EncWriteArrayElem()
  8776. if yyq2[70] {
  8777. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  8778. } else {
  8779. r.EncodeNil()
  8780. }
  8781. }
  8782. if yyn74 {
  8783. z.EncWriteArrayElem()
  8784. r.EncodeNil()
  8785. } else {
  8786. z.EncWriteArrayElem()
  8787. if yyq2[71] {
  8788. if !z.EncBasicHandle().TimeNotBuiltin {
  8789. r.EncodeTime(x.AnonInTestStrucIntf.T)
  8790. } else if yyxt157 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt157 != nil {
  8791. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt157)
  8792. } else if z.EncBinary() {
  8793. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  8794. } else if !z.EncBinary() && z.IsJSONHandle() {
  8795. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  8796. } else {
  8797. z.EncFallback(x.AnonInTestStrucIntf.T)
  8798. }
  8799. } else {
  8800. r.EncodeNil()
  8801. }
  8802. }
  8803. if yyn75 {
  8804. z.EncWriteArrayElem()
  8805. r.EncodeNil()
  8806. } else {
  8807. z.EncWriteArrayElem()
  8808. if yyq2[72] {
  8809. yy158 := *x.AnonInTestStrucIntf.Tptr
  8810. if !z.EncBasicHandle().TimeNotBuiltin {
  8811. r.EncodeTime(yy158)
  8812. } else if yyxt159 := z.Extension(z.I2Rtid(yy158)); yyxt159 != nil {
  8813. z.EncExtension(yy158, yyxt159)
  8814. } else if z.EncBinary() {
  8815. z.EncBinaryMarshal(yy158)
  8816. } else if !z.EncBinary() && z.IsJSONHandle() {
  8817. z.EncJSONMarshal(yy158)
  8818. } else {
  8819. z.EncFallback(yy158)
  8820. }
  8821. } else {
  8822. r.EncodeNil()
  8823. }
  8824. }
  8825. z.EncWriteArrayElem()
  8826. if yyq2[73] {
  8827. if x.Mtsptr == nil {
  8828. r.EncodeNil()
  8829. } else {
  8830. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  8831. } // end block: if x.Mtsptr map == nil
  8832. } else {
  8833. r.EncodeNil()
  8834. }
  8835. z.EncWriteArrayElem()
  8836. if yyq2[74] {
  8837. if x.Mts == nil {
  8838. r.EncodeNil()
  8839. } else {
  8840. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  8841. } // end block: if x.Mts map == nil
  8842. } else {
  8843. r.EncodeNil()
  8844. }
  8845. z.EncWriteArrayElem()
  8846. if yyq2[75] {
  8847. if x.Its == nil {
  8848. r.EncodeNil()
  8849. } else {
  8850. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  8851. } // end block: if x.Its slice == nil
  8852. } else {
  8853. r.EncodeNil()
  8854. }
  8855. if yyn79 {
  8856. z.EncWriteArrayElem()
  8857. r.EncodeNil()
  8858. } else {
  8859. z.EncWriteArrayElem()
  8860. if yyq2[76] {
  8861. x.Nteststruc.CodecEncodeSelf(e)
  8862. } else {
  8863. r.EncodeNil()
  8864. }
  8865. }
  8866. z.EncWriteArrayEnd()
  8867. } else {
  8868. var yynn2 int
  8869. for _, b := range yyq2 {
  8870. if b {
  8871. yynn2++
  8872. }
  8873. }
  8874. z.EncWriteMapStart(yynn2)
  8875. yynn2 = 0
  8876. if yyq2[0] {
  8877. z.EncWriteMapElemKey()
  8878. if z.IsJSONHandle() {
  8879. z.WriteStr("\"S\"")
  8880. } else {
  8881. r.EncodeStringEnc(codecSelferCcUTF819780, `S`)
  8882. }
  8883. z.EncWriteMapElemValue()
  8884. if z.EncBasicHandle().StringToRaw {
  8885. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.S)))
  8886. } else {
  8887. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.S))
  8888. }
  8889. }
  8890. if yyq2[1] {
  8891. z.EncWriteMapElemKey()
  8892. if z.IsJSONHandle() {
  8893. z.WriteStr("\"I64\"")
  8894. } else {
  8895. r.EncodeStringEnc(codecSelferCcUTF819780, `I64`)
  8896. }
  8897. z.EncWriteMapElemValue()
  8898. r.EncodeInt(int64(x.TestStrucCommon.I64))
  8899. }
  8900. if yyq2[2] {
  8901. z.EncWriteMapElemKey()
  8902. if z.IsJSONHandle() {
  8903. z.WriteStr("\"I32\"")
  8904. } else {
  8905. r.EncodeStringEnc(codecSelferCcUTF819780, `I32`)
  8906. }
  8907. z.EncWriteMapElemValue()
  8908. r.EncodeInt(int64(x.TestStrucCommon.I32))
  8909. }
  8910. if yyq2[3] {
  8911. z.EncWriteMapElemKey()
  8912. if z.IsJSONHandle() {
  8913. z.WriteStr("\"I16\"")
  8914. } else {
  8915. r.EncodeStringEnc(codecSelferCcUTF819780, `I16`)
  8916. }
  8917. z.EncWriteMapElemValue()
  8918. r.EncodeInt(int64(x.TestStrucCommon.I16))
  8919. }
  8920. if yyq2[4] {
  8921. z.EncWriteMapElemKey()
  8922. if z.IsJSONHandle() {
  8923. z.WriteStr("\"I8\"")
  8924. } else {
  8925. r.EncodeStringEnc(codecSelferCcUTF819780, `I8`)
  8926. }
  8927. z.EncWriteMapElemValue()
  8928. r.EncodeInt(int64(x.TestStrucCommon.I8))
  8929. }
  8930. if yyq2[5] {
  8931. z.EncWriteMapElemKey()
  8932. if z.IsJSONHandle() {
  8933. z.WriteStr("\"I64n\"")
  8934. } else {
  8935. r.EncodeStringEnc(codecSelferCcUTF819780, `I64n`)
  8936. }
  8937. z.EncWriteMapElemValue()
  8938. r.EncodeInt(int64(x.TestStrucCommon.I64n))
  8939. }
  8940. if yyq2[6] {
  8941. z.EncWriteMapElemKey()
  8942. if z.IsJSONHandle() {
  8943. z.WriteStr("\"I32n\"")
  8944. } else {
  8945. r.EncodeStringEnc(codecSelferCcUTF819780, `I32n`)
  8946. }
  8947. z.EncWriteMapElemValue()
  8948. r.EncodeInt(int64(x.TestStrucCommon.I32n))
  8949. }
  8950. if yyq2[7] {
  8951. z.EncWriteMapElemKey()
  8952. if z.IsJSONHandle() {
  8953. z.WriteStr("\"I16n\"")
  8954. } else {
  8955. r.EncodeStringEnc(codecSelferCcUTF819780, `I16n`)
  8956. }
  8957. z.EncWriteMapElemValue()
  8958. r.EncodeInt(int64(x.TestStrucCommon.I16n))
  8959. }
  8960. if yyq2[8] {
  8961. z.EncWriteMapElemKey()
  8962. if z.IsJSONHandle() {
  8963. z.WriteStr("\"I8n\"")
  8964. } else {
  8965. r.EncodeStringEnc(codecSelferCcUTF819780, `I8n`)
  8966. }
  8967. z.EncWriteMapElemValue()
  8968. r.EncodeInt(int64(x.TestStrucCommon.I8n))
  8969. }
  8970. if yyq2[9] {
  8971. z.EncWriteMapElemKey()
  8972. if z.IsJSONHandle() {
  8973. z.WriteStr("\"Ui64\"")
  8974. } else {
  8975. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64`)
  8976. }
  8977. z.EncWriteMapElemValue()
  8978. r.EncodeUint(uint64(x.TestStrucCommon.Ui64))
  8979. }
  8980. if yyq2[10] {
  8981. z.EncWriteMapElemKey()
  8982. if z.IsJSONHandle() {
  8983. z.WriteStr("\"Ui32\"")
  8984. } else {
  8985. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui32`)
  8986. }
  8987. z.EncWriteMapElemValue()
  8988. r.EncodeUint(uint64(x.TestStrucCommon.Ui32))
  8989. }
  8990. if yyq2[11] {
  8991. z.EncWriteMapElemKey()
  8992. if z.IsJSONHandle() {
  8993. z.WriteStr("\"Ui16\"")
  8994. } else {
  8995. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui16`)
  8996. }
  8997. z.EncWriteMapElemValue()
  8998. r.EncodeUint(uint64(x.TestStrucCommon.Ui16))
  8999. }
  9000. if yyq2[12] {
  9001. z.EncWriteMapElemKey()
  9002. if z.IsJSONHandle() {
  9003. z.WriteStr("\"Ui8\"")
  9004. } else {
  9005. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8`)
  9006. }
  9007. z.EncWriteMapElemValue()
  9008. r.EncodeUint(uint64(x.TestStrucCommon.Ui8))
  9009. }
  9010. if yyq2[13] {
  9011. z.EncWriteMapElemKey()
  9012. if z.IsJSONHandle() {
  9013. z.WriteStr("\"F64\"")
  9014. } else {
  9015. r.EncodeStringEnc(codecSelferCcUTF819780, `F64`)
  9016. }
  9017. z.EncWriteMapElemValue()
  9018. r.EncodeFloat64(float64(x.TestStrucCommon.F64))
  9019. }
  9020. if yyq2[14] {
  9021. z.EncWriteMapElemKey()
  9022. if z.IsJSONHandle() {
  9023. z.WriteStr("\"F32\"")
  9024. } else {
  9025. r.EncodeStringEnc(codecSelferCcUTF819780, `F32`)
  9026. }
  9027. z.EncWriteMapElemValue()
  9028. r.EncodeFloat32(float32(x.TestStrucCommon.F32))
  9029. }
  9030. if yyq2[15] {
  9031. z.EncWriteMapElemKey()
  9032. if z.IsJSONHandle() {
  9033. z.WriteStr("\"B\"")
  9034. } else {
  9035. r.EncodeStringEnc(codecSelferCcUTF819780, `B`)
  9036. }
  9037. z.EncWriteMapElemValue()
  9038. r.EncodeBool(bool(x.TestStrucCommon.B))
  9039. }
  9040. if yyq2[16] {
  9041. z.EncWriteMapElemKey()
  9042. if z.IsJSONHandle() {
  9043. z.WriteStr("\"By\"")
  9044. } else {
  9045. r.EncodeStringEnc(codecSelferCcUTF819780, `By`)
  9046. }
  9047. z.EncWriteMapElemValue()
  9048. r.EncodeUint(uint64(x.TestStrucCommon.By))
  9049. }
  9050. if yyq2[17] {
  9051. z.EncWriteMapElemKey()
  9052. if z.IsJSONHandle() {
  9053. z.WriteStr("\"Sslice\"")
  9054. } else {
  9055. r.EncodeStringEnc(codecSelferCcUTF819780, `Sslice`)
  9056. }
  9057. z.EncWriteMapElemValue()
  9058. if x.TestStrucCommon.Sslice == nil {
  9059. r.EncodeNil()
  9060. } else {
  9061. z.F.EncSliceStringV(x.TestStrucCommon.Sslice, e)
  9062. } // end block: if x.TestStrucCommon.Sslice slice == nil
  9063. }
  9064. if yyq2[18] {
  9065. z.EncWriteMapElemKey()
  9066. if z.IsJSONHandle() {
  9067. z.WriteStr("\"I64slice\"")
  9068. } else {
  9069. r.EncodeStringEnc(codecSelferCcUTF819780, `I64slice`)
  9070. }
  9071. z.EncWriteMapElemValue()
  9072. if x.TestStrucCommon.I64slice == nil {
  9073. r.EncodeNil()
  9074. } else {
  9075. z.F.EncSliceInt64V(x.TestStrucCommon.I64slice, e)
  9076. } // end block: if x.TestStrucCommon.I64slice slice == nil
  9077. }
  9078. if yyq2[19] {
  9079. z.EncWriteMapElemKey()
  9080. if z.IsJSONHandle() {
  9081. z.WriteStr("\"I16slice\"")
  9082. } else {
  9083. r.EncodeStringEnc(codecSelferCcUTF819780, `I16slice`)
  9084. }
  9085. z.EncWriteMapElemValue()
  9086. if x.TestStrucCommon.I16slice == nil {
  9087. r.EncodeNil()
  9088. } else {
  9089. z.F.EncSliceInt16V(x.TestStrucCommon.I16slice, e)
  9090. } // end block: if x.TestStrucCommon.I16slice slice == nil
  9091. }
  9092. if yyq2[20] {
  9093. z.EncWriteMapElemKey()
  9094. if z.IsJSONHandle() {
  9095. z.WriteStr("\"Ui64slice\"")
  9096. } else {
  9097. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slice`)
  9098. }
  9099. z.EncWriteMapElemValue()
  9100. if x.TestStrucCommon.Ui64slice == nil {
  9101. r.EncodeNil()
  9102. } else {
  9103. z.F.EncSliceUint64V(x.TestStrucCommon.Ui64slice, e)
  9104. } // end block: if x.TestStrucCommon.Ui64slice slice == nil
  9105. }
  9106. if yyq2[21] {
  9107. z.EncWriteMapElemKey()
  9108. if z.IsJSONHandle() {
  9109. z.WriteStr("\"Ui8slice\"")
  9110. } else {
  9111. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui8slice`)
  9112. }
  9113. z.EncWriteMapElemValue()
  9114. if x.TestStrucCommon.Ui8slice == nil {
  9115. r.EncodeNil()
  9116. } else {
  9117. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Ui8slice))
  9118. } // end block: if x.TestStrucCommon.Ui8slice slice == nil
  9119. }
  9120. if yyq2[22] {
  9121. z.EncWriteMapElemKey()
  9122. if z.IsJSONHandle() {
  9123. z.WriteStr("\"Bslice\"")
  9124. } else {
  9125. r.EncodeStringEnc(codecSelferCcUTF819780, `Bslice`)
  9126. }
  9127. z.EncWriteMapElemValue()
  9128. if x.TestStrucCommon.Bslice == nil {
  9129. r.EncodeNil()
  9130. } else {
  9131. z.F.EncSliceBoolV(x.TestStrucCommon.Bslice, e)
  9132. } // end block: if x.TestStrucCommon.Bslice slice == nil
  9133. }
  9134. if yyq2[23] {
  9135. z.EncWriteMapElemKey()
  9136. if z.IsJSONHandle() {
  9137. z.WriteStr("\"Byslice\"")
  9138. } else {
  9139. r.EncodeStringEnc(codecSelferCcUTF819780, `Byslice`)
  9140. }
  9141. z.EncWriteMapElemValue()
  9142. if x.TestStrucCommon.Byslice == nil {
  9143. r.EncodeNil()
  9144. } else {
  9145. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Byslice))
  9146. } // end block: if x.TestStrucCommon.Byslice slice == nil
  9147. }
  9148. if yyq2[24] {
  9149. z.EncWriteMapElemKey()
  9150. if z.IsJSONHandle() {
  9151. z.WriteStr("\"BytesSlice\"")
  9152. } else {
  9153. r.EncodeStringEnc(codecSelferCcUTF819780, `BytesSlice`)
  9154. }
  9155. z.EncWriteMapElemValue()
  9156. if x.TestStrucCommon.BytesSlice == nil {
  9157. r.EncodeNil()
  9158. } else {
  9159. z.F.EncSliceBytesV(x.TestStrucCommon.BytesSlice, e)
  9160. } // end block: if x.TestStrucCommon.BytesSlice slice == nil
  9161. }
  9162. if yyq2[25] {
  9163. z.EncWriteMapElemKey()
  9164. if z.IsJSONHandle() {
  9165. z.WriteStr("\"Iptrslice\"")
  9166. } else {
  9167. r.EncodeStringEnc(codecSelferCcUTF819780, `Iptrslice`)
  9168. }
  9169. z.EncWriteMapElemValue()
  9170. if x.TestStrucCommon.Iptrslice == nil {
  9171. r.EncodeNil()
  9172. } else {
  9173. h.encSlicePtrtoint64(([]*int64)(x.TestStrucCommon.Iptrslice), e)
  9174. } // end block: if x.TestStrucCommon.Iptrslice slice == nil
  9175. }
  9176. if yyq2[26] {
  9177. z.EncWriteMapElemKey()
  9178. if z.IsJSONHandle() {
  9179. z.WriteStr("\"WrapSliceInt64\"")
  9180. } else {
  9181. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceInt64`)
  9182. }
  9183. z.EncWriteMapElemValue()
  9184. x.TestStrucCommon.WrapSliceInt64.CodecEncodeSelf(e)
  9185. }
  9186. if yyq2[27] {
  9187. z.EncWriteMapElemKey()
  9188. if z.IsJSONHandle() {
  9189. z.WriteStr("\"WrapSliceString\"")
  9190. } else {
  9191. r.EncodeStringEnc(codecSelferCcUTF819780, `WrapSliceString`)
  9192. }
  9193. z.EncWriteMapElemValue()
  9194. x.TestStrucCommon.WrapSliceString.CodecEncodeSelf(e)
  9195. }
  9196. if yyq2[28] {
  9197. z.EncWriteMapElemKey()
  9198. if z.IsJSONHandle() {
  9199. z.WriteStr("\"Msi64\"")
  9200. } else {
  9201. r.EncodeStringEnc(codecSelferCcUTF819780, `Msi64`)
  9202. }
  9203. z.EncWriteMapElemValue()
  9204. if x.TestStrucCommon.Msi64 == nil {
  9205. r.EncodeNil()
  9206. } else {
  9207. z.F.EncMapStringInt64V(x.TestStrucCommon.Msi64, e)
  9208. } // end block: if x.TestStrucCommon.Msi64 map == nil
  9209. }
  9210. if yyq2[29] {
  9211. z.EncWriteMapElemKey()
  9212. if z.IsJSONHandle() {
  9213. z.WriteStr("\"Msbytes\"")
  9214. } else {
  9215. r.EncodeStringEnc(codecSelferCcUTF819780, `Msbytes`)
  9216. }
  9217. z.EncWriteMapElemValue()
  9218. if x.TestStrucCommon.Msbytes == nil {
  9219. r.EncodeNil()
  9220. } else {
  9221. z.F.EncMapStringBytesV(x.TestStrucCommon.Msbytes, e)
  9222. } // end block: if x.TestStrucCommon.Msbytes map == nil
  9223. }
  9224. if yyq2[30] {
  9225. z.EncWriteMapElemKey()
  9226. if z.IsJSONHandle() {
  9227. z.WriteStr("\"Simplef\"")
  9228. } else {
  9229. r.EncodeStringEnc(codecSelferCcUTF819780, `Simplef`)
  9230. }
  9231. z.EncWriteMapElemValue()
  9232. yy194 := &x.TestStrucCommon.Simplef
  9233. yy194.CodecEncodeSelf(e)
  9234. }
  9235. if yyq2[31] {
  9236. z.EncWriteMapElemKey()
  9237. if z.IsJSONHandle() {
  9238. z.WriteStr("\"SstrUi64T\"")
  9239. } else {
  9240. r.EncodeStringEnc(codecSelferCcUTF819780, `SstrUi64T`)
  9241. }
  9242. z.EncWriteMapElemValue()
  9243. if x.TestStrucCommon.SstrUi64T == nil {
  9244. r.EncodeNil()
  9245. } else {
  9246. h.encSlicestringUint64T(([]stringUint64T)(x.TestStrucCommon.SstrUi64T), e)
  9247. } // end block: if x.TestStrucCommon.SstrUi64T slice == nil
  9248. }
  9249. if yyq2[32] {
  9250. z.EncWriteMapElemKey()
  9251. if z.IsJSONHandle() {
  9252. z.WriteStr("\"MstrUi64T\"")
  9253. } else {
  9254. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64T`)
  9255. }
  9256. z.EncWriteMapElemValue()
  9257. if x.TestStrucCommon.MstrUi64T == nil {
  9258. r.EncodeNil()
  9259. } else {
  9260. h.encMapstringPtrtostringUint64T((map[string]*stringUint64T)(x.TestStrucCommon.MstrUi64T), e)
  9261. } // end block: if x.TestStrucCommon.MstrUi64T map == nil
  9262. }
  9263. if yyq2[33] {
  9264. z.EncWriteMapElemKey()
  9265. if z.IsJSONHandle() {
  9266. z.WriteStr("\"AS\"")
  9267. } else {
  9268. r.EncodeStringEnc(codecSelferCcUTF819780, `AS`)
  9269. }
  9270. z.EncWriteMapElemValue()
  9271. if z.EncBasicHandle().StringToRaw {
  9272. r.EncodeStringBytesRaw(z.BytesView(string(x.TestStrucCommon.AnonInTestStruc.AS)))
  9273. } else {
  9274. r.EncodeStringEnc(codecSelferCcUTF819780, string(x.TestStrucCommon.AnonInTestStruc.AS))
  9275. }
  9276. }
  9277. if yyq2[34] {
  9278. z.EncWriteMapElemKey()
  9279. if z.IsJSONHandle() {
  9280. z.WriteStr("\"AI64\"")
  9281. } else {
  9282. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64`)
  9283. }
  9284. z.EncWriteMapElemValue()
  9285. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI64))
  9286. }
  9287. if yyq2[35] {
  9288. z.EncWriteMapElemKey()
  9289. if z.IsJSONHandle() {
  9290. z.WriteStr("\"AI16\"")
  9291. } else {
  9292. r.EncodeStringEnc(codecSelferCcUTF819780, `AI16`)
  9293. }
  9294. z.EncWriteMapElemValue()
  9295. r.EncodeInt(int64(x.TestStrucCommon.AnonInTestStruc.AI16))
  9296. }
  9297. if yyq2[36] {
  9298. z.EncWriteMapElemKey()
  9299. if z.IsJSONHandle() {
  9300. z.WriteStr("\"AUi64\"")
  9301. } else {
  9302. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64`)
  9303. }
  9304. z.EncWriteMapElemValue()
  9305. r.EncodeUint(uint64(x.TestStrucCommon.AnonInTestStruc.AUi64))
  9306. }
  9307. if yyq2[37] {
  9308. z.EncWriteMapElemKey()
  9309. if z.IsJSONHandle() {
  9310. z.WriteStr("\"ASslice\"")
  9311. } else {
  9312. r.EncodeStringEnc(codecSelferCcUTF819780, `ASslice`)
  9313. }
  9314. z.EncWriteMapElemValue()
  9315. if x.TestStrucCommon.AnonInTestStruc.ASslice == nil {
  9316. r.EncodeNil()
  9317. } else {
  9318. z.F.EncSliceStringV(x.TestStrucCommon.AnonInTestStruc.ASslice, e)
  9319. } // end block: if x.TestStrucCommon.AnonInTestStruc.ASslice slice == nil
  9320. }
  9321. if yyq2[38] {
  9322. z.EncWriteMapElemKey()
  9323. if z.IsJSONHandle() {
  9324. z.WriteStr("\"AI64slice\"")
  9325. } else {
  9326. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice`)
  9327. }
  9328. z.EncWriteMapElemValue()
  9329. if x.TestStrucCommon.AnonInTestStruc.AI64slice == nil {
  9330. r.EncodeNil()
  9331. } else {
  9332. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice, e)
  9333. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice slice == nil
  9334. }
  9335. if yyq2[39] {
  9336. z.EncWriteMapElemKey()
  9337. if z.IsJSONHandle() {
  9338. z.WriteStr("\"AUi64slice\"")
  9339. } else {
  9340. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64slice`)
  9341. }
  9342. z.EncWriteMapElemValue()
  9343. if x.TestStrucCommon.AnonInTestStruc.AUi64slice == nil {
  9344. r.EncodeNil()
  9345. } else {
  9346. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64slice, e)
  9347. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64slice slice == nil
  9348. }
  9349. if yyq2[40] {
  9350. z.EncWriteMapElemKey()
  9351. if z.IsJSONHandle() {
  9352. z.WriteStr("\"AF64slice\"")
  9353. } else {
  9354. r.EncodeStringEnc(codecSelferCcUTF819780, `AF64slice`)
  9355. }
  9356. z.EncWriteMapElemValue()
  9357. if x.TestStrucCommon.AnonInTestStruc.AF64slice == nil {
  9358. r.EncodeNil()
  9359. } else {
  9360. z.F.EncSliceFloat64V(x.TestStrucCommon.AnonInTestStruc.AF64slice, e)
  9361. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF64slice slice == nil
  9362. }
  9363. if yyq2[41] {
  9364. z.EncWriteMapElemKey()
  9365. if z.IsJSONHandle() {
  9366. z.WriteStr("\"AF32slice\"")
  9367. } else {
  9368. r.EncodeStringEnc(codecSelferCcUTF819780, `AF32slice`)
  9369. }
  9370. z.EncWriteMapElemValue()
  9371. if x.TestStrucCommon.AnonInTestStruc.AF32slice == nil {
  9372. r.EncodeNil()
  9373. } else {
  9374. z.F.EncSliceFloat32V(x.TestStrucCommon.AnonInTestStruc.AF32slice, e)
  9375. } // end block: if x.TestStrucCommon.AnonInTestStruc.AF32slice slice == nil
  9376. }
  9377. if yyq2[42] {
  9378. z.EncWriteMapElemKey()
  9379. if z.IsJSONHandle() {
  9380. z.WriteStr("\"AMSU16\"")
  9381. } else {
  9382. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16`)
  9383. }
  9384. z.EncWriteMapElemValue()
  9385. if x.TestStrucCommon.AnonInTestStruc.AMSU16 == nil {
  9386. r.EncodeNil()
  9387. } else {
  9388. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16), e)
  9389. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16 map == nil
  9390. }
  9391. if yyq2[43] {
  9392. z.EncWriteMapElemKey()
  9393. if z.IsJSONHandle() {
  9394. z.WriteStr("\"AI64arr0\"")
  9395. } else {
  9396. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64arr0`)
  9397. }
  9398. z.EncWriteMapElemValue()
  9399. yy208 := &x.TestStrucCommon.AnonInTestStruc.AI64arr0
  9400. h.encArray0int64((*[0]int64)(yy208), e)
  9401. }
  9402. if yyq2[44] {
  9403. z.EncWriteMapElemKey()
  9404. if z.IsJSONHandle() {
  9405. z.WriteStr("\"AI64slice0\"")
  9406. } else {
  9407. r.EncodeStringEnc(codecSelferCcUTF819780, `AI64slice0`)
  9408. }
  9409. z.EncWriteMapElemValue()
  9410. if x.TestStrucCommon.AnonInTestStruc.AI64slice0 == nil {
  9411. r.EncodeNil()
  9412. } else {
  9413. z.F.EncSliceInt64V(x.TestStrucCommon.AnonInTestStruc.AI64slice0, e)
  9414. } // end block: if x.TestStrucCommon.AnonInTestStruc.AI64slice0 slice == nil
  9415. }
  9416. if yyq2[45] {
  9417. z.EncWriteMapElemKey()
  9418. if z.IsJSONHandle() {
  9419. z.WriteStr("\"AUi64sliceN\"")
  9420. } else {
  9421. r.EncodeStringEnc(codecSelferCcUTF819780, `AUi64sliceN`)
  9422. }
  9423. z.EncWriteMapElemValue()
  9424. if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN == nil {
  9425. r.EncodeNil()
  9426. } else {
  9427. z.F.EncSliceUint64V(x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, e)
  9428. } // end block: if x.TestStrucCommon.AnonInTestStruc.AUi64sliceN slice == nil
  9429. }
  9430. if yyq2[46] {
  9431. z.EncWriteMapElemKey()
  9432. if z.IsJSONHandle() {
  9433. z.WriteStr("\"AMSU16N\"")
  9434. } else {
  9435. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16N`)
  9436. }
  9437. z.EncWriteMapElemValue()
  9438. if x.TestStrucCommon.AnonInTestStruc.AMSU16N == nil {
  9439. r.EncodeNil()
  9440. } else {
  9441. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16N), e)
  9442. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16N map == nil
  9443. }
  9444. if yyq2[47] {
  9445. z.EncWriteMapElemKey()
  9446. if z.IsJSONHandle() {
  9447. z.WriteStr("\"AMSU16E\"")
  9448. } else {
  9449. r.EncodeStringEnc(codecSelferCcUTF819780, `AMSU16E`)
  9450. }
  9451. z.EncWriteMapElemValue()
  9452. if x.TestStrucCommon.AnonInTestStruc.AMSU16E == nil {
  9453. r.EncodeNil()
  9454. } else {
  9455. h.encMapstringuint16((map[string]uint16)(x.TestStrucCommon.AnonInTestStruc.AMSU16E), e)
  9456. } // end block: if x.TestStrucCommon.AnonInTestStruc.AMSU16E map == nil
  9457. }
  9458. if yyq2[48] {
  9459. z.EncWriteMapElemKey()
  9460. if z.IsJSONHandle() {
  9461. z.WriteStr("\"NotAnon\"")
  9462. } else {
  9463. r.EncodeStringEnc(codecSelferCcUTF819780, `NotAnon`)
  9464. }
  9465. z.EncWriteMapElemValue()
  9466. yy214 := &x.TestStrucCommon.NotAnon
  9467. yy214.CodecEncodeSelf(e)
  9468. }
  9469. if yyq2[49] {
  9470. z.EncWriteMapElemKey()
  9471. if z.IsJSONHandle() {
  9472. z.WriteStr("\"Nmap\"")
  9473. } else {
  9474. r.EncodeStringEnc(codecSelferCcUTF819780, `Nmap`)
  9475. }
  9476. z.EncWriteMapElemValue()
  9477. if x.TestStrucCommon.Nmap == nil {
  9478. r.EncodeNil()
  9479. } else {
  9480. z.F.EncMapStringBoolV(x.TestStrucCommon.Nmap, e)
  9481. } // end block: if x.TestStrucCommon.Nmap map == nil
  9482. }
  9483. if yyq2[50] {
  9484. z.EncWriteMapElemKey()
  9485. if z.IsJSONHandle() {
  9486. z.WriteStr("\"Nslice\"")
  9487. } else {
  9488. r.EncodeStringEnc(codecSelferCcUTF819780, `Nslice`)
  9489. }
  9490. z.EncWriteMapElemValue()
  9491. if x.TestStrucCommon.Nslice == nil {
  9492. r.EncodeNil()
  9493. } else {
  9494. r.EncodeStringBytesRaw([]byte(x.TestStrucCommon.Nslice))
  9495. } // end block: if x.TestStrucCommon.Nslice slice == nil
  9496. }
  9497. if yyq2[51] {
  9498. z.EncWriteMapElemKey()
  9499. if z.IsJSONHandle() {
  9500. z.WriteStr("\"Nint64\"")
  9501. } else {
  9502. r.EncodeStringEnc(codecSelferCcUTF819780, `Nint64`)
  9503. }
  9504. z.EncWriteMapElemValue()
  9505. if yyn54 {
  9506. r.EncodeNil()
  9507. } else {
  9508. yy218 := *x.TestStrucCommon.Nint64
  9509. r.EncodeInt(int64(yy218))
  9510. }
  9511. }
  9512. if yyq2[52] {
  9513. z.EncWriteMapElemKey()
  9514. if z.IsJSONHandle() {
  9515. z.WriteStr("\"Chstr\"")
  9516. } else {
  9517. r.EncodeStringEnc(codecSelferCcUTF819780, `Chstr`)
  9518. }
  9519. z.EncWriteMapElemValue()
  9520. h.encChanstring((chan string)(x.Chstr), e)
  9521. }
  9522. if yyq2[53] {
  9523. z.EncWriteMapElemKey()
  9524. if z.IsJSONHandle() {
  9525. z.WriteStr("\"Mis\"")
  9526. } else {
  9527. r.EncodeStringEnc(codecSelferCcUTF819780, `Mis`)
  9528. }
  9529. z.EncWriteMapElemValue()
  9530. if x.Mis == nil {
  9531. r.EncodeNil()
  9532. } else {
  9533. z.F.EncMapIntStringV(x.Mis, e)
  9534. } // end block: if x.Mis map == nil
  9535. }
  9536. if yyq2[54] {
  9537. z.EncWriteMapElemKey()
  9538. if z.IsJSONHandle() {
  9539. z.WriteStr("\"Mbu64\"")
  9540. } else {
  9541. r.EncodeStringEnc(codecSelferCcUTF819780, `Mbu64`)
  9542. }
  9543. z.EncWriteMapElemValue()
  9544. if x.Mbu64 == nil {
  9545. r.EncodeNil()
  9546. } else {
  9547. h.encMapboolc3RydWN0IHt9((map[bool]struct{})(x.Mbu64), e)
  9548. } // end block: if x.Mbu64 map == nil
  9549. }
  9550. if yyq2[55] {
  9551. z.EncWriteMapElemKey()
  9552. if z.IsJSONHandle() {
  9553. z.WriteStr("\"Miwu64s\"")
  9554. } else {
  9555. r.EncodeStringEnc(codecSelferCcUTF819780, `Miwu64s`)
  9556. }
  9557. z.EncWriteMapElemValue()
  9558. if x.Miwu64s == nil {
  9559. r.EncodeNil()
  9560. } else {
  9561. h.encMapintwrapUint64Slice((map[int]wrapUint64Slice)(x.Miwu64s), e)
  9562. } // end block: if x.Miwu64s map == nil
  9563. }
  9564. if yyq2[56] {
  9565. z.EncWriteMapElemKey()
  9566. if z.IsJSONHandle() {
  9567. z.WriteStr("\"Mfwss\"")
  9568. } else {
  9569. r.EncodeStringEnc(codecSelferCcUTF819780, `Mfwss`)
  9570. }
  9571. z.EncWriteMapElemValue()
  9572. if x.Mfwss == nil {
  9573. r.EncodeNil()
  9574. } else {
  9575. h.encMapfloat64wrapStringSlice((map[float64]wrapStringSlice)(x.Mfwss), e)
  9576. } // end block: if x.Mfwss map == nil
  9577. }
  9578. if yyq2[57] {
  9579. z.EncWriteMapElemKey()
  9580. if z.IsJSONHandle() {
  9581. z.WriteStr("\"Mf32wss\"")
  9582. } else {
  9583. r.EncodeStringEnc(codecSelferCcUTF819780, `Mf32wss`)
  9584. }
  9585. z.EncWriteMapElemValue()
  9586. if x.Mf32wss == nil {
  9587. r.EncodeNil()
  9588. } else {
  9589. h.encMapfloat32wrapStringSlice((map[float32]wrapStringSlice)(x.Mf32wss), e)
  9590. } // end block: if x.Mf32wss map == nil
  9591. }
  9592. if yyq2[58] {
  9593. z.EncWriteMapElemKey()
  9594. if z.IsJSONHandle() {
  9595. z.WriteStr("\"Mui2wss\"")
  9596. } else {
  9597. r.EncodeStringEnc(codecSelferCcUTF819780, `Mui2wss`)
  9598. }
  9599. z.EncWriteMapElemValue()
  9600. if x.Mui2wss == nil {
  9601. r.EncodeNil()
  9602. } else {
  9603. h.encMapuint64wrapStringSlice((map[uint64]wrapStringSlice)(x.Mui2wss), e)
  9604. } // end block: if x.Mui2wss map == nil
  9605. }
  9606. if yyq2[59] {
  9607. z.EncWriteMapElemKey()
  9608. if z.IsJSONHandle() {
  9609. z.WriteStr("\"Msu2wss\"")
  9610. } else {
  9611. r.EncodeStringEnc(codecSelferCcUTF819780, `Msu2wss`)
  9612. }
  9613. z.EncWriteMapElemValue()
  9614. if x.Msu2wss == nil {
  9615. r.EncodeNil()
  9616. } else {
  9617. h.encMapstringUint64TwrapStringSlice((map[stringUint64T]wrapStringSlice)(x.Msu2wss), e)
  9618. } // end block: if x.Msu2wss map == nil
  9619. }
  9620. if yyq2[60] {
  9621. z.EncWriteMapElemKey()
  9622. if z.IsJSONHandle() {
  9623. z.WriteStr("\"Ci64\"")
  9624. } else {
  9625. r.EncodeStringEnc(codecSelferCcUTF819780, `Ci64`)
  9626. }
  9627. z.EncWriteMapElemValue()
  9628. x.Ci64.CodecEncodeSelf(e)
  9629. }
  9630. if yyq2[61] {
  9631. z.EncWriteMapElemKey()
  9632. if z.IsJSONHandle() {
  9633. z.WriteStr("\"Swrapbytes\"")
  9634. } else {
  9635. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapbytes`)
  9636. }
  9637. z.EncWriteMapElemValue()
  9638. if x.Swrapbytes == nil {
  9639. r.EncodeNil()
  9640. } else {
  9641. h.encSlicewrapBytes(([]wrapBytes)(x.Swrapbytes), e)
  9642. } // end block: if x.Swrapbytes slice == nil
  9643. }
  9644. if yyq2[62] {
  9645. z.EncWriteMapElemKey()
  9646. if z.IsJSONHandle() {
  9647. z.WriteStr("\"Swrapuint8\"")
  9648. } else {
  9649. r.EncodeStringEnc(codecSelferCcUTF819780, `Swrapuint8`)
  9650. }
  9651. z.EncWriteMapElemValue()
  9652. if x.Swrapuint8 == nil {
  9653. r.EncodeNil()
  9654. } else {
  9655. h.encSlicewrapUint8(([]wrapUint8)(x.Swrapuint8), e)
  9656. } // end block: if x.Swrapuint8 slice == nil
  9657. }
  9658. if yyq2[63] {
  9659. z.EncWriteMapElemKey()
  9660. if z.IsJSONHandle() {
  9661. z.WriteStr("\"ArrStrUi64T\"")
  9662. } else {
  9663. r.EncodeStringEnc(codecSelferCcUTF819780, `ArrStrUi64T`)
  9664. }
  9665. z.EncWriteMapElemValue()
  9666. yy231 := &x.ArrStrUi64T
  9667. h.encArray4stringUint64T((*[4]stringUint64T)(yy231), e)
  9668. }
  9669. if yyq2[64] {
  9670. z.EncWriteMapElemKey()
  9671. if z.IsJSONHandle() {
  9672. z.WriteStr("\"Ui64array\"")
  9673. } else {
  9674. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64array`)
  9675. }
  9676. z.EncWriteMapElemValue()
  9677. yy233 := &x.Ui64array
  9678. h.encArray4uint64((*[4]uint64)(yy233), e)
  9679. }
  9680. if yyq2[65] {
  9681. z.EncWriteMapElemKey()
  9682. if z.IsJSONHandle() {
  9683. z.WriteStr("\"Ui64slicearray\"")
  9684. } else {
  9685. r.EncodeStringEnc(codecSelferCcUTF819780, `Ui64slicearray`)
  9686. }
  9687. z.EncWriteMapElemValue()
  9688. if x.Ui64slicearray == nil {
  9689. r.EncodeNil()
  9690. } else {
  9691. h.encSlicePtrtoArray4uint64(([]*[4]uint64)(x.Ui64slicearray), e)
  9692. } // end block: if x.Ui64slicearray slice == nil
  9693. }
  9694. if yyq2[66] {
  9695. z.EncWriteMapElemKey()
  9696. if z.IsJSONHandle() {
  9697. z.WriteStr("\"SintfAarray\"")
  9698. } else {
  9699. r.EncodeStringEnc(codecSelferCcUTF819780, `SintfAarray`)
  9700. }
  9701. z.EncWriteMapElemValue()
  9702. if x.SintfAarray == nil {
  9703. r.EncodeNil()
  9704. } else {
  9705. z.F.EncSliceIntfV(x.SintfAarray, e)
  9706. } // end block: if x.SintfAarray slice == nil
  9707. }
  9708. if yyq2[67] {
  9709. z.EncWriteMapElemKey()
  9710. if z.IsJSONHandle() {
  9711. z.WriteStr("\"MstrUi64TSelf\"")
  9712. } else {
  9713. r.EncodeStringEnc(codecSelferCcUTF819780, `MstrUi64TSelf`)
  9714. }
  9715. z.EncWriteMapElemValue()
  9716. if x.MstrUi64TSelf == nil {
  9717. r.EncodeNil()
  9718. } else {
  9719. h.encMapstringUint64TPtrtostringUint64T((map[stringUint64T]*stringUint64T)(x.MstrUi64TSelf), e)
  9720. } // end block: if x.MstrUi64TSelf map == nil
  9721. }
  9722. if yyq2[68] {
  9723. z.EncWriteMapElemKey()
  9724. if z.IsJSONHandle() {
  9725. z.WriteStr("\"Islice\"")
  9726. } else {
  9727. r.EncodeStringEnc(codecSelferCcUTF819780, `Islice`)
  9728. }
  9729. z.EncWriteMapElemValue()
  9730. if yyn71 {
  9731. r.EncodeNil()
  9732. } else {
  9733. if x.AnonInTestStrucIntf.Islice == nil {
  9734. r.EncodeNil()
  9735. } else {
  9736. z.F.EncSliceIntfV(x.AnonInTestStrucIntf.Islice, e)
  9737. } // end block: if x.AnonInTestStrucIntf.Islice slice == nil
  9738. }
  9739. }
  9740. if yyq2[69] {
  9741. z.EncWriteMapElemKey()
  9742. if z.IsJSONHandle() {
  9743. z.WriteStr("\"Ms\"")
  9744. } else {
  9745. r.EncodeStringEnc(codecSelferCcUTF819780, `Ms`)
  9746. }
  9747. z.EncWriteMapElemValue()
  9748. if yyn72 {
  9749. r.EncodeNil()
  9750. } else {
  9751. if x.AnonInTestStrucIntf.Ms == nil {
  9752. r.EncodeNil()
  9753. } else {
  9754. z.F.EncMapStringIntfV(x.AnonInTestStrucIntf.Ms, e)
  9755. } // end block: if x.AnonInTestStrucIntf.Ms map == nil
  9756. }
  9757. }
  9758. if yyq2[70] {
  9759. z.EncWriteMapElemKey()
  9760. if z.IsJSONHandle() {
  9761. z.WriteStr("\"Nintf\"")
  9762. } else {
  9763. r.EncodeStringEnc(codecSelferCcUTF819780, `Nintf`)
  9764. }
  9765. z.EncWriteMapElemValue()
  9766. if yyn73 {
  9767. r.EncodeNil()
  9768. } else {
  9769. z.EncFallback(x.AnonInTestStrucIntf.Nintf)
  9770. }
  9771. }
  9772. if yyq2[71] {
  9773. z.EncWriteMapElemKey()
  9774. if z.IsJSONHandle() {
  9775. z.WriteStr("\"T\"")
  9776. } else {
  9777. r.EncodeStringEnc(codecSelferCcUTF819780, `T`)
  9778. }
  9779. z.EncWriteMapElemValue()
  9780. if yyn74 {
  9781. r.EncodeNil()
  9782. } else {
  9783. if !z.EncBasicHandle().TimeNotBuiltin {
  9784. r.EncodeTime(x.AnonInTestStrucIntf.T)
  9785. } else if yyxt241 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt241 != nil {
  9786. z.EncExtension(x.AnonInTestStrucIntf.T, yyxt241)
  9787. } else if z.EncBinary() {
  9788. z.EncBinaryMarshal(x.AnonInTestStrucIntf.T)
  9789. } else if !z.EncBinary() && z.IsJSONHandle() {
  9790. z.EncJSONMarshal(x.AnonInTestStrucIntf.T)
  9791. } else {
  9792. z.EncFallback(x.AnonInTestStrucIntf.T)
  9793. }
  9794. }
  9795. }
  9796. if yyq2[72] {
  9797. z.EncWriteMapElemKey()
  9798. if z.IsJSONHandle() {
  9799. z.WriteStr("\"Tptr\"")
  9800. } else {
  9801. r.EncodeStringEnc(codecSelferCcUTF819780, `Tptr`)
  9802. }
  9803. z.EncWriteMapElemValue()
  9804. if yyn75 {
  9805. r.EncodeNil()
  9806. } else {
  9807. yy242 := *x.AnonInTestStrucIntf.Tptr
  9808. if !z.EncBasicHandle().TimeNotBuiltin {
  9809. r.EncodeTime(yy242)
  9810. } else if yyxt243 := z.Extension(z.I2Rtid(yy242)); yyxt243 != nil {
  9811. z.EncExtension(yy242, yyxt243)
  9812. } else if z.EncBinary() {
  9813. z.EncBinaryMarshal(yy242)
  9814. } else if !z.EncBinary() && z.IsJSONHandle() {
  9815. z.EncJSONMarshal(yy242)
  9816. } else {
  9817. z.EncFallback(yy242)
  9818. }
  9819. }
  9820. }
  9821. if yyq2[73] {
  9822. z.EncWriteMapElemKey()
  9823. if z.IsJSONHandle() {
  9824. z.WriteStr("\"Mtsptr\"")
  9825. } else {
  9826. r.EncodeStringEnc(codecSelferCcUTF819780, `Mtsptr`)
  9827. }
  9828. z.EncWriteMapElemValue()
  9829. if x.Mtsptr == nil {
  9830. r.EncodeNil()
  9831. } else {
  9832. h.encMapstringPtrtoTestStrucFlex((map[string]*TestStrucFlex)(x.Mtsptr), e)
  9833. } // end block: if x.Mtsptr map == nil
  9834. }
  9835. if yyq2[74] {
  9836. z.EncWriteMapElemKey()
  9837. if z.IsJSONHandle() {
  9838. z.WriteStr("\"Mts\"")
  9839. } else {
  9840. r.EncodeStringEnc(codecSelferCcUTF819780, `Mts`)
  9841. }
  9842. z.EncWriteMapElemValue()
  9843. if x.Mts == nil {
  9844. r.EncodeNil()
  9845. } else {
  9846. h.encMapstringTestStrucFlex((map[string]TestStrucFlex)(x.Mts), e)
  9847. } // end block: if x.Mts map == nil
  9848. }
  9849. if yyq2[75] {
  9850. z.EncWriteMapElemKey()
  9851. if z.IsJSONHandle() {
  9852. z.WriteStr("\"Its\"")
  9853. } else {
  9854. r.EncodeStringEnc(codecSelferCcUTF819780, `Its`)
  9855. }
  9856. z.EncWriteMapElemValue()
  9857. if x.Its == nil {
  9858. r.EncodeNil()
  9859. } else {
  9860. h.encSlicePtrtoTestStrucFlex(([]*TestStrucFlex)(x.Its), e)
  9861. } // end block: if x.Its slice == nil
  9862. }
  9863. if yyq2[76] {
  9864. z.EncWriteMapElemKey()
  9865. if z.IsJSONHandle() {
  9866. z.WriteStr("\"Nteststruc\"")
  9867. } else {
  9868. r.EncodeStringEnc(codecSelferCcUTF819780, `Nteststruc`)
  9869. }
  9870. z.EncWriteMapElemValue()
  9871. if yyn79 {
  9872. r.EncodeNil()
  9873. } else {
  9874. x.Nteststruc.CodecEncodeSelf(e)
  9875. }
  9876. }
  9877. z.EncWriteMapEnd()
  9878. }
  9879. }
  9880. }
  9881. func (x *TestStrucFlex) CodecDecodeSelf(d *Decoder) {
  9882. var h codecSelfer19780
  9883. z, r := GenHelperDecoder(d)
  9884. _, _, _ = h, z, r
  9885. yyct2 := r.ContainerType()
  9886. if yyct2 == codecSelferValueTypeNil19780 {
  9887. *(x) = TestStrucFlex{}
  9888. } else if yyct2 == codecSelferValueTypeMap19780 {
  9889. yyl2 := z.DecReadMapStart()
  9890. if yyl2 == 0 {
  9891. } else {
  9892. x.codecDecodeSelfFromMap(yyl2, d)
  9893. }
  9894. z.DecReadMapEnd()
  9895. } else if yyct2 == codecSelferValueTypeArray19780 {
  9896. yyl2 := z.DecReadArrayStart()
  9897. if yyl2 != 0 {
  9898. x.codecDecodeSelfFromArray(yyl2, d)
  9899. }
  9900. z.DecReadArrayEnd()
  9901. } else {
  9902. panic(errCodecSelferOnlyMapOrArrayEncodeToStruct19780)
  9903. }
  9904. }
  9905. func (x *TestStrucFlex) codecDecodeSelfFromMap(l int, d *Decoder) {
  9906. var h codecSelfer19780
  9907. z, r := GenHelperDecoder(d)
  9908. _, _, _ = h, z, r
  9909. var yyhl3 bool = l >= 0
  9910. for yyj3 := 0; ; yyj3++ {
  9911. if yyhl3 {
  9912. if yyj3 >= l {
  9913. break
  9914. }
  9915. } else {
  9916. if r.CheckBreak() {
  9917. break
  9918. }
  9919. }
  9920. z.DecReadMapElemKey()
  9921. yys3 := z.StringView(r.DecodeStringAsBytes())
  9922. z.DecReadMapElemValue()
  9923. switch yys3 {
  9924. case "S":
  9925. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  9926. case "I64":
  9927. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  9928. case "I32":
  9929. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  9930. case "I16":
  9931. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  9932. case "I8":
  9933. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  9934. case "I64n":
  9935. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  9936. case "I32n":
  9937. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  9938. case "I16n":
  9939. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  9940. case "I8n":
  9941. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  9942. case "Ui64":
  9943. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  9944. case "Ui32":
  9945. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  9946. case "Ui16":
  9947. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  9948. case "Ui8":
  9949. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  9950. case "F64":
  9951. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  9952. case "F32":
  9953. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  9954. case "B":
  9955. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  9956. case "By":
  9957. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  9958. case "Sslice":
  9959. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  9960. case "I64slice":
  9961. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  9962. case "I16slice":
  9963. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  9964. case "Ui64slice":
  9965. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  9966. case "Ui8slice":
  9967. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  9968. case "Bslice":
  9969. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  9970. case "Byslice":
  9971. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  9972. case "BytesSlice":
  9973. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  9974. case "Iptrslice":
  9975. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  9976. case "WrapSliceInt64":
  9977. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  9978. case "WrapSliceString":
  9979. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  9980. case "Msi64":
  9981. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  9982. case "Msbytes":
  9983. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  9984. case "Simplef":
  9985. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  9986. case "SstrUi64T":
  9987. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  9988. case "MstrUi64T":
  9989. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  9990. case "AS":
  9991. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  9992. case "AI64":
  9993. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  9994. case "AI16":
  9995. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  9996. case "AUi64":
  9997. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  9998. case "ASslice":
  9999. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10000. case "AI64slice":
  10001. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10002. case "AUi64slice":
  10003. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10004. case "AF64slice":
  10005. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10006. case "AF32slice":
  10007. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10008. case "AMSU16":
  10009. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10010. case "AI64arr0":
  10011. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10012. case "AI64slice0":
  10013. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  10014. case "AUi64sliceN":
  10015. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10016. case "AMSU16N":
  10017. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10018. case "AMSU16E":
  10019. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10020. case "NotAnon":
  10021. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10022. case "Nmap":
  10023. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10024. case "Nslice":
  10025. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10026. case "Nint64":
  10027. if r.TryNil() {
  10028. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10029. x.TestStrucCommon.Nint64 = nil
  10030. }
  10031. } else {
  10032. if x.TestStrucCommon.Nint64 == nil {
  10033. x.TestStrucCommon.Nint64 = new(int64)
  10034. }
  10035. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10036. }
  10037. case "Chstr":
  10038. h.decChanstring((*chan string)(&x.Chstr), d)
  10039. case "Mis":
  10040. z.F.DecMapIntStringX(&x.Mis, d)
  10041. case "Mbu64":
  10042. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10043. case "Miwu64s":
  10044. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10045. case "Mfwss":
  10046. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10047. case "Mf32wss":
  10048. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10049. case "Mui2wss":
  10050. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10051. case "Msu2wss":
  10052. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10053. case "Ci64":
  10054. x.Ci64.CodecDecodeSelf(d)
  10055. case "Swrapbytes":
  10056. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10057. case "Swrapuint8":
  10058. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10059. case "ArrStrUi64T":
  10060. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10061. case "Ui64array":
  10062. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10063. case "Ui64slicearray":
  10064. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10065. case "SintfAarray":
  10066. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10067. case "MstrUi64TSelf":
  10068. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  10069. case "Islice":
  10070. if r.TryNil() {
  10071. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10072. x.AnonInTestStrucIntf.Islice = nil
  10073. }
  10074. } else {
  10075. if x.AnonInTestStrucIntf == nil {
  10076. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10077. }
  10078. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  10079. }
  10080. case "Ms":
  10081. if r.TryNil() {
  10082. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10083. x.AnonInTestStrucIntf.Ms = nil
  10084. }
  10085. } else {
  10086. if x.AnonInTestStrucIntf == nil {
  10087. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10088. }
  10089. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  10090. }
  10091. case "Nintf":
  10092. if r.TryNil() {
  10093. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10094. x.AnonInTestStrucIntf.Nintf = nil
  10095. }
  10096. } else {
  10097. if x.AnonInTestStrucIntf == nil {
  10098. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10099. }
  10100. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  10101. }
  10102. case "T":
  10103. if r.TryNil() {
  10104. if x.AnonInTestStrucIntf != nil { // remove the if-true
  10105. x.AnonInTestStrucIntf.T = time.Time{}
  10106. }
  10107. } else {
  10108. if x.AnonInTestStrucIntf == nil {
  10109. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10110. }
  10111. if !z.DecBasicHandle().TimeNotBuiltin {
  10112. x.AnonInTestStrucIntf.T = r.DecodeTime()
  10113. } else if yyxt121 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt121 != nil {
  10114. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt121)
  10115. } else if z.DecBinary() {
  10116. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  10117. } else if !z.DecBinary() && z.IsJSONHandle() {
  10118. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  10119. } else {
  10120. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  10121. }
  10122. }
  10123. case "Tptr":
  10124. if r.TryNil() {
  10125. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  10126. x.AnonInTestStrucIntf.Tptr = nil
  10127. }
  10128. } else {
  10129. if x.AnonInTestStrucIntf == nil {
  10130. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  10131. }
  10132. if x.AnonInTestStrucIntf.Tptr == nil {
  10133. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  10134. }
  10135. if !z.DecBasicHandle().TimeNotBuiltin {
  10136. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  10137. } else if yyxt123 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt123 != nil {
  10138. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt123)
  10139. } else if z.DecBinary() {
  10140. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10141. } else if !z.DecBinary() && z.IsJSONHandle() {
  10142. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  10143. } else {
  10144. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  10145. }
  10146. }
  10147. case "Mtsptr":
  10148. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  10149. case "Mts":
  10150. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  10151. case "Its":
  10152. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  10153. case "Nteststruc":
  10154. if r.TryNil() {
  10155. if x.Nteststruc != nil { // remove the if-true
  10156. x.Nteststruc = nil
  10157. }
  10158. } else {
  10159. if x.Nteststruc == nil {
  10160. x.Nteststruc = new(TestStrucFlex)
  10161. }
  10162. x.Nteststruc.CodecDecodeSelf(d)
  10163. }
  10164. default:
  10165. z.DecStructFieldNotFound(-1, yys3)
  10166. } // end switch yys3
  10167. } // end for yyj3
  10168. }
  10169. func (x *TestStrucFlex) codecDecodeSelfFromArray(l int, d *Decoder) {
  10170. var h codecSelfer19780
  10171. z, r := GenHelperDecoder(d)
  10172. _, _, _ = h, z, r
  10173. var yyj131 int
  10174. var yyb131 bool
  10175. var yyhl131 bool = l >= 0
  10176. yyj131++
  10177. if yyhl131 {
  10178. yyb131 = yyj131 > l
  10179. } else {
  10180. yyb131 = r.CheckBreak()
  10181. }
  10182. if yyb131 {
  10183. z.DecReadArrayEnd()
  10184. return
  10185. }
  10186. z.DecReadArrayElem()
  10187. x.TestStrucCommon.S = (string)(string(r.DecodeStringAsBytes()))
  10188. yyj131++
  10189. if yyhl131 {
  10190. yyb131 = yyj131 > l
  10191. } else {
  10192. yyb131 = r.CheckBreak()
  10193. }
  10194. if yyb131 {
  10195. z.DecReadArrayEnd()
  10196. return
  10197. }
  10198. z.DecReadArrayElem()
  10199. x.TestStrucCommon.I64 = (int64)(r.DecodeInt64())
  10200. yyj131++
  10201. if yyhl131 {
  10202. yyb131 = yyj131 > l
  10203. } else {
  10204. yyb131 = r.CheckBreak()
  10205. }
  10206. if yyb131 {
  10207. z.DecReadArrayEnd()
  10208. return
  10209. }
  10210. z.DecReadArrayElem()
  10211. x.TestStrucCommon.I32 = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10212. yyj131++
  10213. if yyhl131 {
  10214. yyb131 = yyj131 > l
  10215. } else {
  10216. yyb131 = r.CheckBreak()
  10217. }
  10218. if yyb131 {
  10219. z.DecReadArrayEnd()
  10220. return
  10221. }
  10222. z.DecReadArrayElem()
  10223. x.TestStrucCommon.I16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10224. yyj131++
  10225. if yyhl131 {
  10226. yyb131 = yyj131 > l
  10227. } else {
  10228. yyb131 = r.CheckBreak()
  10229. }
  10230. if yyb131 {
  10231. z.DecReadArrayEnd()
  10232. return
  10233. }
  10234. z.DecReadArrayElem()
  10235. x.TestStrucCommon.I8 = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10236. yyj131++
  10237. if yyhl131 {
  10238. yyb131 = yyj131 > l
  10239. } else {
  10240. yyb131 = r.CheckBreak()
  10241. }
  10242. if yyb131 {
  10243. z.DecReadArrayEnd()
  10244. return
  10245. }
  10246. z.DecReadArrayElem()
  10247. x.TestStrucCommon.I64n = (int64)(r.DecodeInt64())
  10248. yyj131++
  10249. if yyhl131 {
  10250. yyb131 = yyj131 > l
  10251. } else {
  10252. yyb131 = r.CheckBreak()
  10253. }
  10254. if yyb131 {
  10255. z.DecReadArrayEnd()
  10256. return
  10257. }
  10258. z.DecReadArrayElem()
  10259. x.TestStrucCommon.I32n = (int32)(z.C.IntV(r.DecodeInt64(), 32))
  10260. yyj131++
  10261. if yyhl131 {
  10262. yyb131 = yyj131 > l
  10263. } else {
  10264. yyb131 = r.CheckBreak()
  10265. }
  10266. if yyb131 {
  10267. z.DecReadArrayEnd()
  10268. return
  10269. }
  10270. z.DecReadArrayElem()
  10271. x.TestStrucCommon.I16n = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10272. yyj131++
  10273. if yyhl131 {
  10274. yyb131 = yyj131 > l
  10275. } else {
  10276. yyb131 = r.CheckBreak()
  10277. }
  10278. if yyb131 {
  10279. z.DecReadArrayEnd()
  10280. return
  10281. }
  10282. z.DecReadArrayElem()
  10283. x.TestStrucCommon.I8n = (int8)(z.C.IntV(r.DecodeInt64(), 8))
  10284. yyj131++
  10285. if yyhl131 {
  10286. yyb131 = yyj131 > l
  10287. } else {
  10288. yyb131 = r.CheckBreak()
  10289. }
  10290. if yyb131 {
  10291. z.DecReadArrayEnd()
  10292. return
  10293. }
  10294. z.DecReadArrayElem()
  10295. x.TestStrucCommon.Ui64 = (uint64)(r.DecodeUint64())
  10296. yyj131++
  10297. if yyhl131 {
  10298. yyb131 = yyj131 > l
  10299. } else {
  10300. yyb131 = r.CheckBreak()
  10301. }
  10302. if yyb131 {
  10303. z.DecReadArrayEnd()
  10304. return
  10305. }
  10306. z.DecReadArrayElem()
  10307. x.TestStrucCommon.Ui32 = (uint32)(z.C.UintV(r.DecodeUint64(), 32))
  10308. yyj131++
  10309. if yyhl131 {
  10310. yyb131 = yyj131 > l
  10311. } else {
  10312. yyb131 = r.CheckBreak()
  10313. }
  10314. if yyb131 {
  10315. z.DecReadArrayEnd()
  10316. return
  10317. }
  10318. z.DecReadArrayElem()
  10319. x.TestStrucCommon.Ui16 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  10320. yyj131++
  10321. if yyhl131 {
  10322. yyb131 = yyj131 > l
  10323. } else {
  10324. yyb131 = r.CheckBreak()
  10325. }
  10326. if yyb131 {
  10327. z.DecReadArrayEnd()
  10328. return
  10329. }
  10330. z.DecReadArrayElem()
  10331. x.TestStrucCommon.Ui8 = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10332. yyj131++
  10333. if yyhl131 {
  10334. yyb131 = yyj131 > l
  10335. } else {
  10336. yyb131 = r.CheckBreak()
  10337. }
  10338. if yyb131 {
  10339. z.DecReadArrayEnd()
  10340. return
  10341. }
  10342. z.DecReadArrayElem()
  10343. x.TestStrucCommon.F64 = (float64)(r.DecodeFloat64())
  10344. yyj131++
  10345. if yyhl131 {
  10346. yyb131 = yyj131 > l
  10347. } else {
  10348. yyb131 = r.CheckBreak()
  10349. }
  10350. if yyb131 {
  10351. z.DecReadArrayEnd()
  10352. return
  10353. }
  10354. z.DecReadArrayElem()
  10355. x.TestStrucCommon.F32 = (float32)(z.DecDecodeFloat32())
  10356. yyj131++
  10357. if yyhl131 {
  10358. yyb131 = yyj131 > l
  10359. } else {
  10360. yyb131 = r.CheckBreak()
  10361. }
  10362. if yyb131 {
  10363. z.DecReadArrayEnd()
  10364. return
  10365. }
  10366. z.DecReadArrayElem()
  10367. x.TestStrucCommon.B = (bool)(r.DecodeBool())
  10368. yyj131++
  10369. if yyhl131 {
  10370. yyb131 = yyj131 > l
  10371. } else {
  10372. yyb131 = r.CheckBreak()
  10373. }
  10374. if yyb131 {
  10375. z.DecReadArrayEnd()
  10376. return
  10377. }
  10378. z.DecReadArrayElem()
  10379. x.TestStrucCommon.By = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
  10380. yyj131++
  10381. if yyhl131 {
  10382. yyb131 = yyj131 > l
  10383. } else {
  10384. yyb131 = r.CheckBreak()
  10385. }
  10386. if yyb131 {
  10387. z.DecReadArrayEnd()
  10388. return
  10389. }
  10390. z.DecReadArrayElem()
  10391. z.F.DecSliceStringX(&x.TestStrucCommon.Sslice, d)
  10392. yyj131++
  10393. if yyhl131 {
  10394. yyb131 = yyj131 > l
  10395. } else {
  10396. yyb131 = r.CheckBreak()
  10397. }
  10398. if yyb131 {
  10399. z.DecReadArrayEnd()
  10400. return
  10401. }
  10402. z.DecReadArrayElem()
  10403. z.F.DecSliceInt64X(&x.TestStrucCommon.I64slice, d)
  10404. yyj131++
  10405. if yyhl131 {
  10406. yyb131 = yyj131 > l
  10407. } else {
  10408. yyb131 = r.CheckBreak()
  10409. }
  10410. if yyb131 {
  10411. z.DecReadArrayEnd()
  10412. return
  10413. }
  10414. z.DecReadArrayElem()
  10415. z.F.DecSliceInt16X(&x.TestStrucCommon.I16slice, d)
  10416. yyj131++
  10417. if yyhl131 {
  10418. yyb131 = yyj131 > l
  10419. } else {
  10420. yyb131 = r.CheckBreak()
  10421. }
  10422. if yyb131 {
  10423. z.DecReadArrayEnd()
  10424. return
  10425. }
  10426. z.DecReadArrayElem()
  10427. z.F.DecSliceUint64X(&x.TestStrucCommon.Ui64slice, d)
  10428. yyj131++
  10429. if yyhl131 {
  10430. yyb131 = yyj131 > l
  10431. } else {
  10432. yyb131 = r.CheckBreak()
  10433. }
  10434. if yyb131 {
  10435. z.DecReadArrayEnd()
  10436. return
  10437. }
  10438. z.DecReadArrayElem()
  10439. x.TestStrucCommon.Ui8slice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Ui8slice), false)
  10440. yyj131++
  10441. if yyhl131 {
  10442. yyb131 = yyj131 > l
  10443. } else {
  10444. yyb131 = r.CheckBreak()
  10445. }
  10446. if yyb131 {
  10447. z.DecReadArrayEnd()
  10448. return
  10449. }
  10450. z.DecReadArrayElem()
  10451. z.F.DecSliceBoolX(&x.TestStrucCommon.Bslice, d)
  10452. yyj131++
  10453. if yyhl131 {
  10454. yyb131 = yyj131 > l
  10455. } else {
  10456. yyb131 = r.CheckBreak()
  10457. }
  10458. if yyb131 {
  10459. z.DecReadArrayEnd()
  10460. return
  10461. }
  10462. z.DecReadArrayElem()
  10463. x.TestStrucCommon.Byslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Byslice), false)
  10464. yyj131++
  10465. if yyhl131 {
  10466. yyb131 = yyj131 > l
  10467. } else {
  10468. yyb131 = r.CheckBreak()
  10469. }
  10470. if yyb131 {
  10471. z.DecReadArrayEnd()
  10472. return
  10473. }
  10474. z.DecReadArrayElem()
  10475. z.F.DecSliceBytesX(&x.TestStrucCommon.BytesSlice, d)
  10476. yyj131++
  10477. if yyhl131 {
  10478. yyb131 = yyj131 > l
  10479. } else {
  10480. yyb131 = r.CheckBreak()
  10481. }
  10482. if yyb131 {
  10483. z.DecReadArrayEnd()
  10484. return
  10485. }
  10486. z.DecReadArrayElem()
  10487. h.decSlicePtrtoint64((*[]*int64)(&x.TestStrucCommon.Iptrslice), d)
  10488. yyj131++
  10489. if yyhl131 {
  10490. yyb131 = yyj131 > l
  10491. } else {
  10492. yyb131 = r.CheckBreak()
  10493. }
  10494. if yyb131 {
  10495. z.DecReadArrayEnd()
  10496. return
  10497. }
  10498. z.DecReadArrayElem()
  10499. x.TestStrucCommon.WrapSliceInt64.CodecDecodeSelf(d)
  10500. yyj131++
  10501. if yyhl131 {
  10502. yyb131 = yyj131 > l
  10503. } else {
  10504. yyb131 = r.CheckBreak()
  10505. }
  10506. if yyb131 {
  10507. z.DecReadArrayEnd()
  10508. return
  10509. }
  10510. z.DecReadArrayElem()
  10511. x.TestStrucCommon.WrapSliceString.CodecDecodeSelf(d)
  10512. yyj131++
  10513. if yyhl131 {
  10514. yyb131 = yyj131 > l
  10515. } else {
  10516. yyb131 = r.CheckBreak()
  10517. }
  10518. if yyb131 {
  10519. z.DecReadArrayEnd()
  10520. return
  10521. }
  10522. z.DecReadArrayElem()
  10523. z.F.DecMapStringInt64X(&x.TestStrucCommon.Msi64, d)
  10524. yyj131++
  10525. if yyhl131 {
  10526. yyb131 = yyj131 > l
  10527. } else {
  10528. yyb131 = r.CheckBreak()
  10529. }
  10530. if yyb131 {
  10531. z.DecReadArrayEnd()
  10532. return
  10533. }
  10534. z.DecReadArrayElem()
  10535. z.F.DecMapStringBytesX(&x.TestStrucCommon.Msbytes, d)
  10536. yyj131++
  10537. if yyhl131 {
  10538. yyb131 = yyj131 > l
  10539. } else {
  10540. yyb131 = r.CheckBreak()
  10541. }
  10542. if yyb131 {
  10543. z.DecReadArrayEnd()
  10544. return
  10545. }
  10546. z.DecReadArrayElem()
  10547. x.TestStrucCommon.Simplef.CodecDecodeSelf(d)
  10548. yyj131++
  10549. if yyhl131 {
  10550. yyb131 = yyj131 > l
  10551. } else {
  10552. yyb131 = r.CheckBreak()
  10553. }
  10554. if yyb131 {
  10555. z.DecReadArrayEnd()
  10556. return
  10557. }
  10558. z.DecReadArrayElem()
  10559. h.decSlicestringUint64T((*[]stringUint64T)(&x.TestStrucCommon.SstrUi64T), d)
  10560. yyj131++
  10561. if yyhl131 {
  10562. yyb131 = yyj131 > l
  10563. } else {
  10564. yyb131 = r.CheckBreak()
  10565. }
  10566. if yyb131 {
  10567. z.DecReadArrayEnd()
  10568. return
  10569. }
  10570. z.DecReadArrayElem()
  10571. h.decMapstringPtrtostringUint64T((*map[string]*stringUint64T)(&x.TestStrucCommon.MstrUi64T), d)
  10572. yyj131++
  10573. if yyhl131 {
  10574. yyb131 = yyj131 > l
  10575. } else {
  10576. yyb131 = r.CheckBreak()
  10577. }
  10578. if yyb131 {
  10579. z.DecReadArrayEnd()
  10580. return
  10581. }
  10582. z.DecReadArrayElem()
  10583. x.TestStrucCommon.AnonInTestStruc.AS = (string)(string(r.DecodeStringAsBytes()))
  10584. yyj131++
  10585. if yyhl131 {
  10586. yyb131 = yyj131 > l
  10587. } else {
  10588. yyb131 = r.CheckBreak()
  10589. }
  10590. if yyb131 {
  10591. z.DecReadArrayEnd()
  10592. return
  10593. }
  10594. z.DecReadArrayElem()
  10595. x.TestStrucCommon.AnonInTestStruc.AI64 = (int64)(r.DecodeInt64())
  10596. yyj131++
  10597. if yyhl131 {
  10598. yyb131 = yyj131 > l
  10599. } else {
  10600. yyb131 = r.CheckBreak()
  10601. }
  10602. if yyb131 {
  10603. z.DecReadArrayEnd()
  10604. return
  10605. }
  10606. z.DecReadArrayElem()
  10607. x.TestStrucCommon.AnonInTestStruc.AI16 = (int16)(z.C.IntV(r.DecodeInt64(), 16))
  10608. yyj131++
  10609. if yyhl131 {
  10610. yyb131 = yyj131 > l
  10611. } else {
  10612. yyb131 = r.CheckBreak()
  10613. }
  10614. if yyb131 {
  10615. z.DecReadArrayEnd()
  10616. return
  10617. }
  10618. z.DecReadArrayElem()
  10619. x.TestStrucCommon.AnonInTestStruc.AUi64 = (uint64)(r.DecodeUint64())
  10620. yyj131++
  10621. if yyhl131 {
  10622. yyb131 = yyj131 > l
  10623. } else {
  10624. yyb131 = r.CheckBreak()
  10625. }
  10626. if yyb131 {
  10627. z.DecReadArrayEnd()
  10628. return
  10629. }
  10630. z.DecReadArrayElem()
  10631. z.F.DecSliceStringX(&x.TestStrucCommon.AnonInTestStruc.ASslice, d)
  10632. yyj131++
  10633. if yyhl131 {
  10634. yyb131 = yyj131 > l
  10635. } else {
  10636. yyb131 = r.CheckBreak()
  10637. }
  10638. if yyb131 {
  10639. z.DecReadArrayEnd()
  10640. return
  10641. }
  10642. z.DecReadArrayElem()
  10643. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice, d)
  10644. yyj131++
  10645. if yyhl131 {
  10646. yyb131 = yyj131 > l
  10647. } else {
  10648. yyb131 = r.CheckBreak()
  10649. }
  10650. if yyb131 {
  10651. z.DecReadArrayEnd()
  10652. return
  10653. }
  10654. z.DecReadArrayElem()
  10655. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64slice, d)
  10656. yyj131++
  10657. if yyhl131 {
  10658. yyb131 = yyj131 > l
  10659. } else {
  10660. yyb131 = r.CheckBreak()
  10661. }
  10662. if yyb131 {
  10663. z.DecReadArrayEnd()
  10664. return
  10665. }
  10666. z.DecReadArrayElem()
  10667. z.F.DecSliceFloat64X(&x.TestStrucCommon.AnonInTestStruc.AF64slice, d)
  10668. yyj131++
  10669. if yyhl131 {
  10670. yyb131 = yyj131 > l
  10671. } else {
  10672. yyb131 = r.CheckBreak()
  10673. }
  10674. if yyb131 {
  10675. z.DecReadArrayEnd()
  10676. return
  10677. }
  10678. z.DecReadArrayElem()
  10679. z.F.DecSliceFloat32X(&x.TestStrucCommon.AnonInTestStruc.AF32slice, d)
  10680. yyj131++
  10681. if yyhl131 {
  10682. yyb131 = yyj131 > l
  10683. } else {
  10684. yyb131 = r.CheckBreak()
  10685. }
  10686. if yyb131 {
  10687. z.DecReadArrayEnd()
  10688. return
  10689. }
  10690. z.DecReadArrayElem()
  10691. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16), d)
  10692. yyj131++
  10693. if yyhl131 {
  10694. yyb131 = yyj131 > l
  10695. } else {
  10696. yyb131 = r.CheckBreak()
  10697. }
  10698. if yyb131 {
  10699. z.DecReadArrayEnd()
  10700. return
  10701. }
  10702. z.DecReadArrayElem()
  10703. h.decArray0int64((*[0]int64)(&x.TestStrucCommon.AnonInTestStruc.AI64arr0), d)
  10704. yyj131++
  10705. if yyhl131 {
  10706. yyb131 = yyj131 > l
  10707. } else {
  10708. yyb131 = r.CheckBreak()
  10709. }
  10710. if yyb131 {
  10711. z.DecReadArrayEnd()
  10712. return
  10713. }
  10714. z.DecReadArrayElem()
  10715. z.F.DecSliceInt64X(&x.TestStrucCommon.AnonInTestStruc.AI64slice0, d)
  10716. yyj131++
  10717. if yyhl131 {
  10718. yyb131 = yyj131 > l
  10719. } else {
  10720. yyb131 = r.CheckBreak()
  10721. }
  10722. if yyb131 {
  10723. z.DecReadArrayEnd()
  10724. return
  10725. }
  10726. z.DecReadArrayElem()
  10727. z.F.DecSliceUint64X(&x.TestStrucCommon.AnonInTestStruc.AUi64sliceN, d)
  10728. yyj131++
  10729. if yyhl131 {
  10730. yyb131 = yyj131 > l
  10731. } else {
  10732. yyb131 = r.CheckBreak()
  10733. }
  10734. if yyb131 {
  10735. z.DecReadArrayEnd()
  10736. return
  10737. }
  10738. z.DecReadArrayElem()
  10739. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16N), d)
  10740. yyj131++
  10741. if yyhl131 {
  10742. yyb131 = yyj131 > l
  10743. } else {
  10744. yyb131 = r.CheckBreak()
  10745. }
  10746. if yyb131 {
  10747. z.DecReadArrayEnd()
  10748. return
  10749. }
  10750. z.DecReadArrayElem()
  10751. h.decMapstringuint16((*map[string]uint16)(&x.TestStrucCommon.AnonInTestStruc.AMSU16E), d)
  10752. yyj131++
  10753. if yyhl131 {
  10754. yyb131 = yyj131 > l
  10755. } else {
  10756. yyb131 = r.CheckBreak()
  10757. }
  10758. if yyb131 {
  10759. z.DecReadArrayEnd()
  10760. return
  10761. }
  10762. z.DecReadArrayElem()
  10763. x.TestStrucCommon.NotAnon.CodecDecodeSelf(d)
  10764. yyj131++
  10765. if yyhl131 {
  10766. yyb131 = yyj131 > l
  10767. } else {
  10768. yyb131 = r.CheckBreak()
  10769. }
  10770. if yyb131 {
  10771. z.DecReadArrayEnd()
  10772. return
  10773. }
  10774. z.DecReadArrayElem()
  10775. z.F.DecMapStringBoolX(&x.TestStrucCommon.Nmap, d)
  10776. yyj131++
  10777. if yyhl131 {
  10778. yyb131 = yyj131 > l
  10779. } else {
  10780. yyb131 = r.CheckBreak()
  10781. }
  10782. if yyb131 {
  10783. z.DecReadArrayEnd()
  10784. return
  10785. }
  10786. z.DecReadArrayElem()
  10787. x.TestStrucCommon.Nslice = r.DecodeBytes(([]byte)(x.TestStrucCommon.Nslice), false)
  10788. yyj131++
  10789. if yyhl131 {
  10790. yyb131 = yyj131 > l
  10791. } else {
  10792. yyb131 = r.CheckBreak()
  10793. }
  10794. if yyb131 {
  10795. z.DecReadArrayEnd()
  10796. return
  10797. }
  10798. z.DecReadArrayElem()
  10799. if r.TryNil() {
  10800. if x.TestStrucCommon.Nint64 != nil { // remove the if-true
  10801. x.TestStrucCommon.Nint64 = nil
  10802. }
  10803. } else {
  10804. if x.TestStrucCommon.Nint64 == nil {
  10805. x.TestStrucCommon.Nint64 = new(int64)
  10806. }
  10807. *x.TestStrucCommon.Nint64 = (int64)(r.DecodeInt64())
  10808. }
  10809. yyj131++
  10810. if yyhl131 {
  10811. yyb131 = yyj131 > l
  10812. } else {
  10813. yyb131 = r.CheckBreak()
  10814. }
  10815. if yyb131 {
  10816. z.DecReadArrayEnd()
  10817. return
  10818. }
  10819. z.DecReadArrayElem()
  10820. h.decChanstring((*chan string)(&x.Chstr), d)
  10821. yyj131++
  10822. if yyhl131 {
  10823. yyb131 = yyj131 > l
  10824. } else {
  10825. yyb131 = r.CheckBreak()
  10826. }
  10827. if yyb131 {
  10828. z.DecReadArrayEnd()
  10829. return
  10830. }
  10831. z.DecReadArrayElem()
  10832. z.F.DecMapIntStringX(&x.Mis, d)
  10833. yyj131++
  10834. if yyhl131 {
  10835. yyb131 = yyj131 > l
  10836. } else {
  10837. yyb131 = r.CheckBreak()
  10838. }
  10839. if yyb131 {
  10840. z.DecReadArrayEnd()
  10841. return
  10842. }
  10843. z.DecReadArrayElem()
  10844. h.decMapboolc3RydWN0IHt9((*map[bool]struct{})(&x.Mbu64), d)
  10845. yyj131++
  10846. if yyhl131 {
  10847. yyb131 = yyj131 > l
  10848. } else {
  10849. yyb131 = r.CheckBreak()
  10850. }
  10851. if yyb131 {
  10852. z.DecReadArrayEnd()
  10853. return
  10854. }
  10855. z.DecReadArrayElem()
  10856. h.decMapintwrapUint64Slice((*map[int]wrapUint64Slice)(&x.Miwu64s), d)
  10857. yyj131++
  10858. if yyhl131 {
  10859. yyb131 = yyj131 > l
  10860. } else {
  10861. yyb131 = r.CheckBreak()
  10862. }
  10863. if yyb131 {
  10864. z.DecReadArrayEnd()
  10865. return
  10866. }
  10867. z.DecReadArrayElem()
  10868. h.decMapfloat64wrapStringSlice((*map[float64]wrapStringSlice)(&x.Mfwss), d)
  10869. yyj131++
  10870. if yyhl131 {
  10871. yyb131 = yyj131 > l
  10872. } else {
  10873. yyb131 = r.CheckBreak()
  10874. }
  10875. if yyb131 {
  10876. z.DecReadArrayEnd()
  10877. return
  10878. }
  10879. z.DecReadArrayElem()
  10880. h.decMapfloat32wrapStringSlice((*map[float32]wrapStringSlice)(&x.Mf32wss), d)
  10881. yyj131++
  10882. if yyhl131 {
  10883. yyb131 = yyj131 > l
  10884. } else {
  10885. yyb131 = r.CheckBreak()
  10886. }
  10887. if yyb131 {
  10888. z.DecReadArrayEnd()
  10889. return
  10890. }
  10891. z.DecReadArrayElem()
  10892. h.decMapuint64wrapStringSlice((*map[uint64]wrapStringSlice)(&x.Mui2wss), d)
  10893. yyj131++
  10894. if yyhl131 {
  10895. yyb131 = yyj131 > l
  10896. } else {
  10897. yyb131 = r.CheckBreak()
  10898. }
  10899. if yyb131 {
  10900. z.DecReadArrayEnd()
  10901. return
  10902. }
  10903. z.DecReadArrayElem()
  10904. h.decMapstringUint64TwrapStringSlice((*map[stringUint64T]wrapStringSlice)(&x.Msu2wss), d)
  10905. yyj131++
  10906. if yyhl131 {
  10907. yyb131 = yyj131 > l
  10908. } else {
  10909. yyb131 = r.CheckBreak()
  10910. }
  10911. if yyb131 {
  10912. z.DecReadArrayEnd()
  10913. return
  10914. }
  10915. z.DecReadArrayElem()
  10916. x.Ci64.CodecDecodeSelf(d)
  10917. yyj131++
  10918. if yyhl131 {
  10919. yyb131 = yyj131 > l
  10920. } else {
  10921. yyb131 = r.CheckBreak()
  10922. }
  10923. if yyb131 {
  10924. z.DecReadArrayEnd()
  10925. return
  10926. }
  10927. z.DecReadArrayElem()
  10928. h.decSlicewrapBytes((*[]wrapBytes)(&x.Swrapbytes), d)
  10929. yyj131++
  10930. if yyhl131 {
  10931. yyb131 = yyj131 > l
  10932. } else {
  10933. yyb131 = r.CheckBreak()
  10934. }
  10935. if yyb131 {
  10936. z.DecReadArrayEnd()
  10937. return
  10938. }
  10939. z.DecReadArrayElem()
  10940. h.decSlicewrapUint8((*[]wrapUint8)(&x.Swrapuint8), d)
  10941. yyj131++
  10942. if yyhl131 {
  10943. yyb131 = yyj131 > l
  10944. } else {
  10945. yyb131 = r.CheckBreak()
  10946. }
  10947. if yyb131 {
  10948. z.DecReadArrayEnd()
  10949. return
  10950. }
  10951. z.DecReadArrayElem()
  10952. h.decArray4stringUint64T((*[4]stringUint64T)(&x.ArrStrUi64T), d)
  10953. yyj131++
  10954. if yyhl131 {
  10955. yyb131 = yyj131 > l
  10956. } else {
  10957. yyb131 = r.CheckBreak()
  10958. }
  10959. if yyb131 {
  10960. z.DecReadArrayEnd()
  10961. return
  10962. }
  10963. z.DecReadArrayElem()
  10964. h.decArray4uint64((*[4]uint64)(&x.Ui64array), d)
  10965. yyj131++
  10966. if yyhl131 {
  10967. yyb131 = yyj131 > l
  10968. } else {
  10969. yyb131 = r.CheckBreak()
  10970. }
  10971. if yyb131 {
  10972. z.DecReadArrayEnd()
  10973. return
  10974. }
  10975. z.DecReadArrayElem()
  10976. h.decSlicePtrtoArray4uint64((*[]*[4]uint64)(&x.Ui64slicearray), d)
  10977. yyj131++
  10978. if yyhl131 {
  10979. yyb131 = yyj131 > l
  10980. } else {
  10981. yyb131 = r.CheckBreak()
  10982. }
  10983. if yyb131 {
  10984. z.DecReadArrayEnd()
  10985. return
  10986. }
  10987. z.DecReadArrayElem()
  10988. z.F.DecSliceIntfX(&x.SintfAarray, d)
  10989. yyj131++
  10990. if yyhl131 {
  10991. yyb131 = yyj131 > l
  10992. } else {
  10993. yyb131 = r.CheckBreak()
  10994. }
  10995. if yyb131 {
  10996. z.DecReadArrayEnd()
  10997. return
  10998. }
  10999. z.DecReadArrayElem()
  11000. h.decMapstringUint64TPtrtostringUint64T((*map[stringUint64T]*stringUint64T)(&x.MstrUi64TSelf), d)
  11001. yyj131++
  11002. if yyhl131 {
  11003. yyb131 = yyj131 > l
  11004. } else {
  11005. yyb131 = r.CheckBreak()
  11006. }
  11007. if yyb131 {
  11008. z.DecReadArrayEnd()
  11009. return
  11010. }
  11011. z.DecReadArrayElem()
  11012. if r.TryNil() {
  11013. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11014. x.AnonInTestStrucIntf.Islice = nil
  11015. }
  11016. } else {
  11017. if x.AnonInTestStrucIntf == nil {
  11018. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11019. }
  11020. z.F.DecSliceIntfX(&x.AnonInTestStrucIntf.Islice, d)
  11021. }
  11022. yyj131++
  11023. if yyhl131 {
  11024. yyb131 = yyj131 > l
  11025. } else {
  11026. yyb131 = r.CheckBreak()
  11027. }
  11028. if yyb131 {
  11029. z.DecReadArrayEnd()
  11030. return
  11031. }
  11032. z.DecReadArrayElem()
  11033. if r.TryNil() {
  11034. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11035. x.AnonInTestStrucIntf.Ms = nil
  11036. }
  11037. } else {
  11038. if x.AnonInTestStrucIntf == nil {
  11039. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11040. }
  11041. z.F.DecMapStringIntfX(&x.AnonInTestStrucIntf.Ms, d)
  11042. }
  11043. yyj131++
  11044. if yyhl131 {
  11045. yyb131 = yyj131 > l
  11046. } else {
  11047. yyb131 = r.CheckBreak()
  11048. }
  11049. if yyb131 {
  11050. z.DecReadArrayEnd()
  11051. return
  11052. }
  11053. z.DecReadArrayElem()
  11054. if r.TryNil() {
  11055. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11056. x.AnonInTestStrucIntf.Nintf = nil
  11057. }
  11058. } else {
  11059. if x.AnonInTestStrucIntf == nil {
  11060. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11061. }
  11062. z.DecFallback(&x.AnonInTestStrucIntf.Nintf, true)
  11063. }
  11064. yyj131++
  11065. if yyhl131 {
  11066. yyb131 = yyj131 > l
  11067. } else {
  11068. yyb131 = r.CheckBreak()
  11069. }
  11070. if yyb131 {
  11071. z.DecReadArrayEnd()
  11072. return
  11073. }
  11074. z.DecReadArrayElem()
  11075. if r.TryNil() {
  11076. if x.AnonInTestStrucIntf != nil { // remove the if-true
  11077. x.AnonInTestStrucIntf.T = time.Time{}
  11078. }
  11079. } else {
  11080. if x.AnonInTestStrucIntf == nil {
  11081. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11082. }
  11083. if !z.DecBasicHandle().TimeNotBuiltin {
  11084. x.AnonInTestStrucIntf.T = r.DecodeTime()
  11085. } else if yyxt249 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.T)); yyxt249 != nil {
  11086. z.DecExtension(x.AnonInTestStrucIntf.T, yyxt249)
  11087. } else if z.DecBinary() {
  11088. z.DecBinaryUnmarshal(&x.AnonInTestStrucIntf.T)
  11089. } else if !z.DecBinary() && z.IsJSONHandle() {
  11090. z.DecJSONUnmarshal(&x.AnonInTestStrucIntf.T)
  11091. } else {
  11092. z.DecFallback(&x.AnonInTestStrucIntf.T, false)
  11093. }
  11094. }
  11095. yyj131++
  11096. if yyhl131 {
  11097. yyb131 = yyj131 > l
  11098. } else {
  11099. yyb131 = r.CheckBreak()
  11100. }
  11101. if yyb131 {
  11102. z.DecReadArrayEnd()
  11103. return
  11104. }
  11105. z.DecReadArrayElem()
  11106. if r.TryNil() {
  11107. if x.AnonInTestStrucIntf != nil && x.AnonInTestStrucIntf.Tptr != nil { // remove the if-true
  11108. x.AnonInTestStrucIntf.Tptr = nil
  11109. }
  11110. } else {
  11111. if x.AnonInTestStrucIntf == nil {
  11112. x.AnonInTestStrucIntf = new(AnonInTestStrucIntf)
  11113. }
  11114. if x.AnonInTestStrucIntf.Tptr == nil {
  11115. x.AnonInTestStrucIntf.Tptr = new(time.Time)
  11116. }
  11117. if !z.DecBasicHandle().TimeNotBuiltin {
  11118. *x.AnonInTestStrucIntf.Tptr = r.DecodeTime()
  11119. } else if yyxt251 := z.Extension(z.I2Rtid(x.AnonInTestStrucIntf.Tptr)); yyxt251 != nil {
  11120. z.DecExtension(x.AnonInTestStrucIntf.Tptr, yyxt251)
  11121. } else if z.DecBinary() {
  11122. z.DecBinaryUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11123. } else if !z.DecBinary() && z.IsJSONHandle() {
  11124. z.DecJSONUnmarshal(x.AnonInTestStrucIntf.Tptr)
  11125. } else {
  11126. z.DecFallback(x.AnonInTestStrucIntf.Tptr, false)
  11127. }
  11128. }
  11129. yyj131++
  11130. if yyhl131 {
  11131. yyb131 = yyj131 > l
  11132. } else {
  11133. yyb131 = r.CheckBreak()
  11134. }
  11135. if yyb131 {
  11136. z.DecReadArrayEnd()
  11137. return
  11138. }
  11139. z.DecReadArrayElem()
  11140. h.decMapstringPtrtoTestStrucFlex((*map[string]*TestStrucFlex)(&x.Mtsptr), d)
  11141. yyj131++
  11142. if yyhl131 {
  11143. yyb131 = yyj131 > l
  11144. } else {
  11145. yyb131 = r.CheckBreak()
  11146. }
  11147. if yyb131 {
  11148. z.DecReadArrayEnd()
  11149. return
  11150. }
  11151. z.DecReadArrayElem()
  11152. h.decMapstringTestStrucFlex((*map[string]TestStrucFlex)(&x.Mts), d)
  11153. yyj131++
  11154. if yyhl131 {
  11155. yyb131 = yyj131 > l
  11156. } else {
  11157. yyb131 = r.CheckBreak()
  11158. }
  11159. if yyb131 {
  11160. z.DecReadArrayEnd()
  11161. return
  11162. }
  11163. z.DecReadArrayElem()
  11164. h.decSlicePtrtoTestStrucFlex((*[]*TestStrucFlex)(&x.Its), d)
  11165. yyj131++
  11166. if yyhl131 {
  11167. yyb131 = yyj131 > l
  11168. } else {
  11169. yyb131 = r.CheckBreak()
  11170. }
  11171. if yyb131 {
  11172. z.DecReadArrayEnd()
  11173. return
  11174. }
  11175. z.DecReadArrayElem()
  11176. if r.TryNil() {
  11177. if x.Nteststruc != nil { // remove the if-true
  11178. x.Nteststruc = nil
  11179. }
  11180. } else {
  11181. if x.Nteststruc == nil {
  11182. x.Nteststruc = new(TestStrucFlex)
  11183. }
  11184. x.Nteststruc.CodecDecodeSelf(d)
  11185. }
  11186. for {
  11187. yyj131++
  11188. if yyhl131 {
  11189. yyb131 = yyj131 > l
  11190. } else {
  11191. yyb131 = r.CheckBreak()
  11192. }
  11193. if yyb131 {
  11194. break
  11195. }
  11196. z.DecReadArrayElem()
  11197. z.DecStructFieldNotFound(yyj131-1, "")
  11198. }
  11199. }
  11200. func (x codecSelfer19780) encwrapSliceUint64(v wrapSliceUint64, e *Encoder) {
  11201. var h codecSelfer19780
  11202. z, r := GenHelperEncoder(e)
  11203. _, _, _ = h, z, r
  11204. if v == nil {
  11205. r.EncodeNil()
  11206. return
  11207. }
  11208. z.EncWriteArrayStart(len(v))
  11209. for _, yyv1 := range v {
  11210. z.EncWriteArrayElem()
  11211. r.EncodeUint(uint64(yyv1))
  11212. }
  11213. z.EncWriteArrayEnd()
  11214. }
  11215. func (x codecSelfer19780) decwrapSliceUint64(v *wrapSliceUint64, d *Decoder) {
  11216. var h codecSelfer19780
  11217. z, r := GenHelperDecoder(d)
  11218. _, _, _ = h, z, r
  11219. yyv1 := *v
  11220. yyh1, yyl1 := z.DecSliceHelperStart()
  11221. var yyc1 bool
  11222. _ = yyc1
  11223. if yyh1.IsNil {
  11224. if yyv1 != nil {
  11225. yyv1 = nil
  11226. yyc1 = true
  11227. }
  11228. } else if yyl1 == 0 {
  11229. if yyv1 == nil {
  11230. yyv1 = []uint64{}
  11231. yyc1 = true
  11232. } else if len(yyv1) != 0 {
  11233. yyv1 = yyv1[:0]
  11234. yyc1 = true
  11235. }
  11236. } else {
  11237. yyhl1 := yyl1 > 0
  11238. var yyrl1 int
  11239. _ = yyrl1
  11240. if yyhl1 {
  11241. if yyl1 > cap(yyv1) {
  11242. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11243. if yyrl1 <= cap(yyv1) {
  11244. yyv1 = yyv1[:yyrl1]
  11245. } else {
  11246. yyv1 = make([]uint64, yyrl1)
  11247. }
  11248. yyc1 = true
  11249. } else if yyl1 != len(yyv1) {
  11250. yyv1 = yyv1[:yyl1]
  11251. yyc1 = true
  11252. }
  11253. }
  11254. var yyj1 int
  11255. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11256. if yyj1 == 0 && yyv1 == nil {
  11257. if yyhl1 {
  11258. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11259. } else {
  11260. yyrl1 = 8
  11261. }
  11262. yyv1 = make([]uint64, yyrl1)
  11263. yyc1 = true
  11264. }
  11265. yyh1.ElemContainerState(yyj1)
  11266. var yydb1 bool
  11267. if yyj1 >= len(yyv1) {
  11268. yyv1 = append(yyv1, 0)
  11269. yyc1 = true
  11270. }
  11271. if yydb1 {
  11272. z.DecSwallow()
  11273. } else {
  11274. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  11275. }
  11276. }
  11277. if yyj1 < len(yyv1) {
  11278. yyv1 = yyv1[:yyj1]
  11279. yyc1 = true
  11280. } else if yyj1 == 0 && yyv1 == nil {
  11281. yyv1 = make([]uint64, 0)
  11282. yyc1 = true
  11283. }
  11284. }
  11285. yyh1.End()
  11286. if yyc1 {
  11287. *v = yyv1
  11288. }
  11289. }
  11290. func (x codecSelfer19780) encwrapSliceString(v wrapSliceString, e *Encoder) {
  11291. var h codecSelfer19780
  11292. z, r := GenHelperEncoder(e)
  11293. _, _, _ = h, z, r
  11294. if v == nil {
  11295. r.EncodeNil()
  11296. return
  11297. }
  11298. z.EncWriteArrayStart(len(v))
  11299. for _, yyv1 := range v {
  11300. z.EncWriteArrayElem()
  11301. if z.EncBasicHandle().StringToRaw {
  11302. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  11303. } else {
  11304. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  11305. }
  11306. }
  11307. z.EncWriteArrayEnd()
  11308. }
  11309. func (x codecSelfer19780) decwrapSliceString(v *wrapSliceString, d *Decoder) {
  11310. var h codecSelfer19780
  11311. z, r := GenHelperDecoder(d)
  11312. _, _, _ = h, z, r
  11313. yyv1 := *v
  11314. yyh1, yyl1 := z.DecSliceHelperStart()
  11315. var yyc1 bool
  11316. _ = yyc1
  11317. if yyh1.IsNil {
  11318. if yyv1 != nil {
  11319. yyv1 = nil
  11320. yyc1 = true
  11321. }
  11322. } else if yyl1 == 0 {
  11323. if yyv1 == nil {
  11324. yyv1 = []string{}
  11325. yyc1 = true
  11326. } else if len(yyv1) != 0 {
  11327. yyv1 = yyv1[:0]
  11328. yyc1 = true
  11329. }
  11330. } else {
  11331. yyhl1 := yyl1 > 0
  11332. var yyrl1 int
  11333. _ = yyrl1
  11334. if yyhl1 {
  11335. if yyl1 > cap(yyv1) {
  11336. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11337. if yyrl1 <= cap(yyv1) {
  11338. yyv1 = yyv1[:yyrl1]
  11339. } else {
  11340. yyv1 = make([]string, yyrl1)
  11341. }
  11342. yyc1 = true
  11343. } else if yyl1 != len(yyv1) {
  11344. yyv1 = yyv1[:yyl1]
  11345. yyc1 = true
  11346. }
  11347. }
  11348. var yyj1 int
  11349. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11350. if yyj1 == 0 && yyv1 == nil {
  11351. if yyhl1 {
  11352. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11353. } else {
  11354. yyrl1 = 8
  11355. }
  11356. yyv1 = make([]string, yyrl1)
  11357. yyc1 = true
  11358. }
  11359. yyh1.ElemContainerState(yyj1)
  11360. var yydb1 bool
  11361. if yyj1 >= len(yyv1) {
  11362. yyv1 = append(yyv1, "")
  11363. yyc1 = true
  11364. }
  11365. if yydb1 {
  11366. z.DecSwallow()
  11367. } else {
  11368. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  11369. }
  11370. }
  11371. if yyj1 < len(yyv1) {
  11372. yyv1 = yyv1[:yyj1]
  11373. yyc1 = true
  11374. } else if yyj1 == 0 && yyv1 == nil {
  11375. yyv1 = make([]string, 0)
  11376. yyc1 = true
  11377. }
  11378. }
  11379. yyh1.End()
  11380. if yyc1 {
  11381. *v = yyv1
  11382. }
  11383. }
  11384. func (x codecSelfer19780) encwrapUint64Slice(v wrapUint64Slice, e *Encoder) {
  11385. var h codecSelfer19780
  11386. z, r := GenHelperEncoder(e)
  11387. _, _, _ = h, z, r
  11388. if v == nil {
  11389. r.EncodeNil()
  11390. return
  11391. }
  11392. z.EncWriteArrayStart(len(v))
  11393. for _, yyv1 := range v {
  11394. z.EncWriteArrayElem()
  11395. yyv1.CodecEncodeSelf(e)
  11396. }
  11397. z.EncWriteArrayEnd()
  11398. }
  11399. func (x codecSelfer19780) decwrapUint64Slice(v *wrapUint64Slice, d *Decoder) {
  11400. var h codecSelfer19780
  11401. z, r := GenHelperDecoder(d)
  11402. _, _, _ = h, z, r
  11403. yyv1 := *v
  11404. yyh1, yyl1 := z.DecSliceHelperStart()
  11405. var yyc1 bool
  11406. _ = yyc1
  11407. if yyh1.IsNil {
  11408. if yyv1 != nil {
  11409. yyv1 = nil
  11410. yyc1 = true
  11411. }
  11412. } else if yyl1 == 0 {
  11413. if yyv1 == nil {
  11414. yyv1 = []wrapUint64{}
  11415. yyc1 = true
  11416. } else if len(yyv1) != 0 {
  11417. yyv1 = yyv1[:0]
  11418. yyc1 = true
  11419. }
  11420. } else {
  11421. yyhl1 := yyl1 > 0
  11422. var yyrl1 int
  11423. _ = yyrl1
  11424. if yyhl1 {
  11425. if yyl1 > cap(yyv1) {
  11426. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11427. if yyrl1 <= cap(yyv1) {
  11428. yyv1 = yyv1[:yyrl1]
  11429. } else {
  11430. yyv1 = make([]wrapUint64, yyrl1)
  11431. }
  11432. yyc1 = true
  11433. } else if yyl1 != len(yyv1) {
  11434. yyv1 = yyv1[:yyl1]
  11435. yyc1 = true
  11436. }
  11437. }
  11438. var yyj1 int
  11439. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11440. if yyj1 == 0 && yyv1 == nil {
  11441. if yyhl1 {
  11442. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11443. } else {
  11444. yyrl1 = 8
  11445. }
  11446. yyv1 = make([]wrapUint64, yyrl1)
  11447. yyc1 = true
  11448. }
  11449. yyh1.ElemContainerState(yyj1)
  11450. var yydb1 bool
  11451. if yyj1 >= len(yyv1) {
  11452. yyv1 = append(yyv1, 0)
  11453. yyc1 = true
  11454. }
  11455. if yydb1 {
  11456. z.DecSwallow()
  11457. } else {
  11458. yyv1[yyj1].CodecDecodeSelf(d)
  11459. }
  11460. }
  11461. if yyj1 < len(yyv1) {
  11462. yyv1 = yyv1[:yyj1]
  11463. yyc1 = true
  11464. } else if yyj1 == 0 && yyv1 == nil {
  11465. yyv1 = make([]wrapUint64, 0)
  11466. yyc1 = true
  11467. }
  11468. }
  11469. yyh1.End()
  11470. if yyc1 {
  11471. *v = yyv1
  11472. }
  11473. }
  11474. func (x codecSelfer19780) encwrapStringSlice(v wrapStringSlice, e *Encoder) {
  11475. var h codecSelfer19780
  11476. z, r := GenHelperEncoder(e)
  11477. _, _, _ = h, z, r
  11478. if v == nil {
  11479. r.EncodeNil()
  11480. return
  11481. }
  11482. z.EncWriteArrayStart(len(v))
  11483. for _, yyv1 := range v {
  11484. z.EncWriteArrayElem()
  11485. yyv1.CodecEncodeSelf(e)
  11486. }
  11487. z.EncWriteArrayEnd()
  11488. }
  11489. func (x codecSelfer19780) decwrapStringSlice(v *wrapStringSlice, d *Decoder) {
  11490. var h codecSelfer19780
  11491. z, r := GenHelperDecoder(d)
  11492. _, _, _ = h, z, r
  11493. yyv1 := *v
  11494. yyh1, yyl1 := z.DecSliceHelperStart()
  11495. var yyc1 bool
  11496. _ = yyc1
  11497. if yyh1.IsNil {
  11498. if yyv1 != nil {
  11499. yyv1 = nil
  11500. yyc1 = true
  11501. }
  11502. } else if yyl1 == 0 {
  11503. if yyv1 == nil {
  11504. yyv1 = []wrapString{}
  11505. yyc1 = true
  11506. } else if len(yyv1) != 0 {
  11507. yyv1 = yyv1[:0]
  11508. yyc1 = true
  11509. }
  11510. } else {
  11511. yyhl1 := yyl1 > 0
  11512. var yyrl1 int
  11513. _ = yyrl1
  11514. if yyhl1 {
  11515. if yyl1 > cap(yyv1) {
  11516. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11517. if yyrl1 <= cap(yyv1) {
  11518. yyv1 = yyv1[:yyrl1]
  11519. } else {
  11520. yyv1 = make([]wrapString, yyrl1)
  11521. }
  11522. yyc1 = true
  11523. } else if yyl1 != len(yyv1) {
  11524. yyv1 = yyv1[:yyl1]
  11525. yyc1 = true
  11526. }
  11527. }
  11528. var yyj1 int
  11529. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11530. if yyj1 == 0 && yyv1 == nil {
  11531. if yyhl1 {
  11532. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  11533. } else {
  11534. yyrl1 = 8
  11535. }
  11536. yyv1 = make([]wrapString, yyrl1)
  11537. yyc1 = true
  11538. }
  11539. yyh1.ElemContainerState(yyj1)
  11540. var yydb1 bool
  11541. if yyj1 >= len(yyv1) {
  11542. yyv1 = append(yyv1, "")
  11543. yyc1 = true
  11544. }
  11545. if yydb1 {
  11546. z.DecSwallow()
  11547. } else {
  11548. yyv1[yyj1].CodecDecodeSelf(d)
  11549. }
  11550. }
  11551. if yyj1 < len(yyv1) {
  11552. yyv1 = yyv1[:yyj1]
  11553. yyc1 = true
  11554. } else if yyj1 == 0 && yyv1 == nil {
  11555. yyv1 = make([]wrapString, 0)
  11556. yyc1 = true
  11557. }
  11558. }
  11559. yyh1.End()
  11560. if yyc1 {
  11561. *v = yyv1
  11562. }
  11563. }
  11564. func (x codecSelfer19780) encMapstringuint16(v map[string]uint16, e *Encoder) {
  11565. var h codecSelfer19780
  11566. z, r := GenHelperEncoder(e)
  11567. _, _, _ = h, z, r
  11568. if v == nil {
  11569. r.EncodeNil()
  11570. return
  11571. }
  11572. z.EncWriteMapStart(len(v))
  11573. for yyk1, yyv1 := range v {
  11574. z.EncWriteMapElemKey()
  11575. if z.EncBasicHandle().StringToRaw {
  11576. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  11577. } else {
  11578. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  11579. }
  11580. z.EncWriteMapElemValue()
  11581. r.EncodeUint(uint64(yyv1))
  11582. }
  11583. z.EncWriteMapEnd()
  11584. }
  11585. func (x codecSelfer19780) decMapstringuint16(v *map[string]uint16, d *Decoder) {
  11586. var h codecSelfer19780
  11587. z, r := GenHelperDecoder(d)
  11588. _, _, _ = h, z, r
  11589. yyv1 := *v
  11590. yyl1 := z.DecReadMapStart()
  11591. if yyl1 == codecSelferDecContainerLenNil19780 {
  11592. *v = nil
  11593. } else {
  11594. if yyv1 == nil {
  11595. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 18)
  11596. yyv1 = make(map[string]uint16, yyrl1)
  11597. *v = yyv1
  11598. }
  11599. var yymk1 string
  11600. var yymv1 uint16
  11601. var yymg1, yymdn1 bool
  11602. if z.DecBasicHandle().MapValueReset {
  11603. }
  11604. if yyl1 != 0 {
  11605. yyhl1 := yyl1 > 0
  11606. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  11607. z.DecReadMapElemKey()
  11608. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  11609. if yymg1 {
  11610. yymv1 = yyv1[yymk1]
  11611. }
  11612. z.DecReadMapElemValue()
  11613. yymdn1 = false
  11614. yymv1 = (uint16)(z.C.UintV(r.DecodeUint64(), 16))
  11615. if yymdn1 {
  11616. if z.DecBasicHandle().DeleteOnNilMapValue {
  11617. delete(yyv1, yymk1)
  11618. } else {
  11619. yyv1[yymk1] = 0
  11620. }
  11621. } else if yyv1 != nil {
  11622. yyv1[yymk1] = yymv1
  11623. }
  11624. }
  11625. } // else len==0: TODO: Should we clear map entries?
  11626. z.DecReadMapEnd()
  11627. }
  11628. }
  11629. func (x codecSelfer19780) encArray0int64(v *[0]int64, e *Encoder) {
  11630. var h codecSelfer19780
  11631. z, r := GenHelperEncoder(e)
  11632. _, _, _ = h, z, r
  11633. if v == nil {
  11634. r.EncodeNil()
  11635. return
  11636. }
  11637. z.EncWriteArrayStart(len(v))
  11638. for _, yyv1 := range v {
  11639. z.EncWriteArrayElem()
  11640. r.EncodeInt(int64(yyv1))
  11641. }
  11642. z.EncWriteArrayEnd()
  11643. }
  11644. func (x codecSelfer19780) decArray0int64(v *[0]int64, d *Decoder) {
  11645. var h codecSelfer19780
  11646. z, r := GenHelperDecoder(d)
  11647. _, _, _ = h, z, r
  11648. yyv1 := v
  11649. yyh1, yyl1 := z.DecSliceHelperStart()
  11650. if yyl1 == 0 {
  11651. } else {
  11652. yyhl1 := yyl1 > 0
  11653. var yyrl1 int
  11654. _ = yyrl1
  11655. var yyj1 int
  11656. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11657. yyh1.ElemContainerState(yyj1)
  11658. var yydb1 bool
  11659. if yyj1 >= len(yyv1) {
  11660. z.DecArrayCannotExpand(len(v), yyj1+1)
  11661. yydb1 = true
  11662. }
  11663. if yydb1 {
  11664. z.DecSwallow()
  11665. } else {
  11666. yyv1[yyj1] = (int64)(r.DecodeInt64())
  11667. }
  11668. }
  11669. }
  11670. yyh1.End()
  11671. }
  11672. func (x codecSelfer19780) encSlicePtrtoint64(v []*int64, e *Encoder) {
  11673. var h codecSelfer19780
  11674. z, r := GenHelperEncoder(e)
  11675. _, _, _ = h, z, r
  11676. if v == nil {
  11677. r.EncodeNil()
  11678. return
  11679. }
  11680. z.EncWriteArrayStart(len(v))
  11681. for _, yyv1 := range v {
  11682. z.EncWriteArrayElem()
  11683. if yyv1 == nil {
  11684. r.EncodeNil()
  11685. } else {
  11686. yy2 := *yyv1
  11687. r.EncodeInt(int64(yy2))
  11688. }
  11689. }
  11690. z.EncWriteArrayEnd()
  11691. }
  11692. func (x codecSelfer19780) decSlicePtrtoint64(v *[]*int64, d *Decoder) {
  11693. var h codecSelfer19780
  11694. z, r := GenHelperDecoder(d)
  11695. _, _, _ = h, z, r
  11696. yyv1 := *v
  11697. yyh1, yyl1 := z.DecSliceHelperStart()
  11698. var yyc1 bool
  11699. _ = yyc1
  11700. if yyh1.IsNil {
  11701. if yyv1 != nil {
  11702. yyv1 = nil
  11703. yyc1 = true
  11704. }
  11705. } else if yyl1 == 0 {
  11706. if yyv1 == nil {
  11707. yyv1 = []*int64{}
  11708. yyc1 = true
  11709. } else if len(yyv1) != 0 {
  11710. yyv1 = yyv1[:0]
  11711. yyc1 = true
  11712. }
  11713. } else {
  11714. yyhl1 := yyl1 > 0
  11715. var yyrl1 int
  11716. _ = yyrl1
  11717. if yyhl1 {
  11718. if yyl1 > cap(yyv1) {
  11719. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11720. if yyrl1 <= cap(yyv1) {
  11721. yyv1 = yyv1[:yyrl1]
  11722. } else {
  11723. yyv1 = make([]*int64, yyrl1)
  11724. }
  11725. yyc1 = true
  11726. } else if yyl1 != len(yyv1) {
  11727. yyv1 = yyv1[:yyl1]
  11728. yyc1 = true
  11729. }
  11730. }
  11731. var yyj1 int
  11732. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11733. if yyj1 == 0 && yyv1 == nil {
  11734. if yyhl1 {
  11735. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  11736. } else {
  11737. yyrl1 = 8
  11738. }
  11739. yyv1 = make([]*int64, yyrl1)
  11740. yyc1 = true
  11741. }
  11742. yyh1.ElemContainerState(yyj1)
  11743. var yydb1 bool
  11744. if yyj1 >= len(yyv1) {
  11745. yyv1 = append(yyv1, nil)
  11746. yyc1 = true
  11747. }
  11748. if yydb1 {
  11749. z.DecSwallow()
  11750. } else {
  11751. if r.TryNil() {
  11752. yyv1[yyj1] = nil
  11753. } else {
  11754. if yyv1[yyj1] == nil {
  11755. yyv1[yyj1] = new(int64)
  11756. }
  11757. *yyv1[yyj1] = (int64)(r.DecodeInt64())
  11758. }
  11759. }
  11760. }
  11761. if yyj1 < len(yyv1) {
  11762. yyv1 = yyv1[:yyj1]
  11763. yyc1 = true
  11764. } else if yyj1 == 0 && yyv1 == nil {
  11765. yyv1 = make([]*int64, 0)
  11766. yyc1 = true
  11767. }
  11768. }
  11769. yyh1.End()
  11770. if yyc1 {
  11771. *v = yyv1
  11772. }
  11773. }
  11774. func (x codecSelfer19780) encSlicestringUint64T(v []stringUint64T, e *Encoder) {
  11775. var h codecSelfer19780
  11776. z, r := GenHelperEncoder(e)
  11777. _, _, _ = h, z, r
  11778. if v == nil {
  11779. r.EncodeNil()
  11780. return
  11781. }
  11782. z.EncWriteArrayStart(len(v))
  11783. for _, yyv1 := range v {
  11784. z.EncWriteArrayElem()
  11785. yy2 := &yyv1
  11786. yy2.CodecEncodeSelf(e)
  11787. }
  11788. z.EncWriteArrayEnd()
  11789. }
  11790. func (x codecSelfer19780) decSlicestringUint64T(v *[]stringUint64T, d *Decoder) {
  11791. var h codecSelfer19780
  11792. z, r := GenHelperDecoder(d)
  11793. _, _, _ = h, z, r
  11794. yyv1 := *v
  11795. yyh1, yyl1 := z.DecSliceHelperStart()
  11796. var yyc1 bool
  11797. _ = yyc1
  11798. if yyh1.IsNil {
  11799. if yyv1 != nil {
  11800. yyv1 = nil
  11801. yyc1 = true
  11802. }
  11803. } else if yyl1 == 0 {
  11804. if yyv1 == nil {
  11805. yyv1 = []stringUint64T{}
  11806. yyc1 = true
  11807. } else if len(yyv1) != 0 {
  11808. yyv1 = yyv1[:0]
  11809. yyc1 = true
  11810. }
  11811. } else {
  11812. yyhl1 := yyl1 > 0
  11813. var yyrl1 int
  11814. _ = yyrl1
  11815. if yyhl1 {
  11816. if yyl1 > cap(yyv1) {
  11817. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  11818. if yyrl1 <= cap(yyv1) {
  11819. yyv1 = yyv1[:yyrl1]
  11820. } else {
  11821. yyv1 = make([]stringUint64T, yyrl1)
  11822. }
  11823. yyc1 = true
  11824. } else if yyl1 != len(yyv1) {
  11825. yyv1 = yyv1[:yyl1]
  11826. yyc1 = true
  11827. }
  11828. }
  11829. var yyj1 int
  11830. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  11831. if yyj1 == 0 && yyv1 == nil {
  11832. if yyhl1 {
  11833. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  11834. } else {
  11835. yyrl1 = 8
  11836. }
  11837. yyv1 = make([]stringUint64T, yyrl1)
  11838. yyc1 = true
  11839. }
  11840. yyh1.ElemContainerState(yyj1)
  11841. var yydb1 bool
  11842. if yyj1 >= len(yyv1) {
  11843. yyv1 = append(yyv1, stringUint64T{})
  11844. yyc1 = true
  11845. }
  11846. if yydb1 {
  11847. z.DecSwallow()
  11848. } else {
  11849. yyv1[yyj1].CodecDecodeSelf(d)
  11850. }
  11851. }
  11852. if yyj1 < len(yyv1) {
  11853. yyv1 = yyv1[:yyj1]
  11854. yyc1 = true
  11855. } else if yyj1 == 0 && yyv1 == nil {
  11856. yyv1 = make([]stringUint64T, 0)
  11857. yyc1 = true
  11858. }
  11859. }
  11860. yyh1.End()
  11861. if yyc1 {
  11862. *v = yyv1
  11863. }
  11864. }
  11865. func (x codecSelfer19780) encMapstringPtrtostringUint64T(v map[string]*stringUint64T, e *Encoder) {
  11866. var h codecSelfer19780
  11867. z, r := GenHelperEncoder(e)
  11868. _, _, _ = h, z, r
  11869. if v == nil {
  11870. r.EncodeNil()
  11871. return
  11872. }
  11873. z.EncWriteMapStart(len(v))
  11874. for yyk1, yyv1 := range v {
  11875. z.EncWriteMapElemKey()
  11876. if z.EncBasicHandle().StringToRaw {
  11877. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  11878. } else {
  11879. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  11880. }
  11881. z.EncWriteMapElemValue()
  11882. if yyv1 == nil {
  11883. r.EncodeNil()
  11884. } else {
  11885. yyv1.CodecEncodeSelf(e)
  11886. }
  11887. }
  11888. z.EncWriteMapEnd()
  11889. }
  11890. func (x codecSelfer19780) decMapstringPtrtostringUint64T(v *map[string]*stringUint64T, d *Decoder) {
  11891. var h codecSelfer19780
  11892. z, r := GenHelperDecoder(d)
  11893. _, _, _ = h, z, r
  11894. yyv1 := *v
  11895. yyl1 := z.DecReadMapStart()
  11896. if yyl1 == codecSelferDecContainerLenNil19780 {
  11897. *v = nil
  11898. } else {
  11899. if yyv1 == nil {
  11900. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  11901. yyv1 = make(map[string]*stringUint64T, yyrl1)
  11902. *v = yyv1
  11903. }
  11904. var yymk1 string
  11905. var yymv1 *stringUint64T
  11906. var yymg1, yymdn1, yyms1, yymok1 bool
  11907. if z.DecBasicHandle().MapValueReset {
  11908. yymg1 = true
  11909. }
  11910. if yyl1 != 0 {
  11911. yyhl1 := yyl1 > 0
  11912. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  11913. z.DecReadMapElemKey()
  11914. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  11915. yyms1 = true
  11916. if yymg1 {
  11917. yymv1, yymok1 = yyv1[yymk1]
  11918. if yymok1 {
  11919. yyms1 = false
  11920. }
  11921. } else {
  11922. yymv1 = nil
  11923. }
  11924. z.DecReadMapElemValue()
  11925. yymdn1 = false
  11926. if r.TryNil() {
  11927. yymdn1 = true
  11928. } else {
  11929. if yymv1 == nil {
  11930. yymv1 = new(stringUint64T)
  11931. }
  11932. yymv1.CodecDecodeSelf(d)
  11933. }
  11934. if yymdn1 {
  11935. if z.DecBasicHandle().DeleteOnNilMapValue {
  11936. delete(yyv1, yymk1)
  11937. } else {
  11938. yyv1[yymk1] = nil
  11939. }
  11940. } else if yyms1 && yyv1 != nil {
  11941. yyv1[yymk1] = yymv1
  11942. }
  11943. }
  11944. } // else len==0: TODO: Should we clear map entries?
  11945. z.DecReadMapEnd()
  11946. }
  11947. }
  11948. func (x codecSelfer19780) encMapstringPtrtoTestStruc(v map[string]*TestStruc, e *Encoder) {
  11949. var h codecSelfer19780
  11950. z, r := GenHelperEncoder(e)
  11951. _, _, _ = h, z, r
  11952. if v == nil {
  11953. r.EncodeNil()
  11954. return
  11955. }
  11956. z.EncWriteMapStart(len(v))
  11957. for yyk1, yyv1 := range v {
  11958. z.EncWriteMapElemKey()
  11959. if z.EncBasicHandle().StringToRaw {
  11960. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  11961. } else {
  11962. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  11963. }
  11964. z.EncWriteMapElemValue()
  11965. if yyv1 == nil {
  11966. r.EncodeNil()
  11967. } else {
  11968. yyv1.CodecEncodeSelf(e)
  11969. }
  11970. }
  11971. z.EncWriteMapEnd()
  11972. }
  11973. func (x codecSelfer19780) decMapstringPtrtoTestStruc(v *map[string]*TestStruc, d *Decoder) {
  11974. var h codecSelfer19780
  11975. z, r := GenHelperDecoder(d)
  11976. _, _, _ = h, z, r
  11977. yyv1 := *v
  11978. yyl1 := z.DecReadMapStart()
  11979. if yyl1 == codecSelferDecContainerLenNil19780 {
  11980. *v = nil
  11981. } else {
  11982. if yyv1 == nil {
  11983. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  11984. yyv1 = make(map[string]*TestStruc, yyrl1)
  11985. *v = yyv1
  11986. }
  11987. var yymk1 string
  11988. var yymv1 *TestStruc
  11989. var yymg1, yymdn1, yyms1, yymok1 bool
  11990. if z.DecBasicHandle().MapValueReset {
  11991. yymg1 = true
  11992. }
  11993. if yyl1 != 0 {
  11994. yyhl1 := yyl1 > 0
  11995. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  11996. z.DecReadMapElemKey()
  11997. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  11998. yyms1 = true
  11999. if yymg1 {
  12000. yymv1, yymok1 = yyv1[yymk1]
  12001. if yymok1 {
  12002. yyms1 = false
  12003. }
  12004. } else {
  12005. yymv1 = nil
  12006. }
  12007. z.DecReadMapElemValue()
  12008. yymdn1 = false
  12009. if r.TryNil() {
  12010. yymdn1 = true
  12011. } else {
  12012. if yymv1 == nil {
  12013. yymv1 = new(TestStruc)
  12014. }
  12015. yymv1.CodecDecodeSelf(d)
  12016. }
  12017. if yymdn1 {
  12018. if z.DecBasicHandle().DeleteOnNilMapValue {
  12019. delete(yyv1, yymk1)
  12020. } else {
  12021. yyv1[yymk1] = nil
  12022. }
  12023. } else if yyms1 && yyv1 != nil {
  12024. yyv1[yymk1] = yymv1
  12025. }
  12026. }
  12027. } // else len==0: TODO: Should we clear map entries?
  12028. z.DecReadMapEnd()
  12029. }
  12030. }
  12031. func (x codecSelfer19780) encMapstringTestStruc(v map[string]TestStruc, e *Encoder) {
  12032. var h codecSelfer19780
  12033. z, r := GenHelperEncoder(e)
  12034. _, _, _ = h, z, r
  12035. if v == nil {
  12036. r.EncodeNil()
  12037. return
  12038. }
  12039. z.EncWriteMapStart(len(v))
  12040. for yyk1, yyv1 := range v {
  12041. z.EncWriteMapElemKey()
  12042. if z.EncBasicHandle().StringToRaw {
  12043. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  12044. } else {
  12045. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  12046. }
  12047. z.EncWriteMapElemValue()
  12048. yy3 := &yyv1
  12049. yy3.CodecEncodeSelf(e)
  12050. }
  12051. z.EncWriteMapEnd()
  12052. }
  12053. func (x codecSelfer19780) decMapstringTestStruc(v *map[string]TestStruc, d *Decoder) {
  12054. var h codecSelfer19780
  12055. z, r := GenHelperDecoder(d)
  12056. _, _, _ = h, z, r
  12057. yyv1 := *v
  12058. yyl1 := z.DecReadMapStart()
  12059. if yyl1 == codecSelferDecContainerLenNil19780 {
  12060. *v = nil
  12061. } else {
  12062. if yyv1 == nil {
  12063. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1224)
  12064. yyv1 = make(map[string]TestStruc, yyrl1)
  12065. *v = yyv1
  12066. }
  12067. var yymk1 string
  12068. var yymv1 TestStruc
  12069. var yymg1, yymdn1 bool
  12070. if z.DecBasicHandle().MapValueReset {
  12071. yymg1 = true
  12072. }
  12073. if yyl1 != 0 {
  12074. yyhl1 := yyl1 > 0
  12075. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12076. z.DecReadMapElemKey()
  12077. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  12078. if yymg1 {
  12079. yymv1 = yyv1[yymk1]
  12080. } else {
  12081. yymv1 = TestStruc{}
  12082. }
  12083. z.DecReadMapElemValue()
  12084. yymdn1 = false
  12085. yymv1.CodecDecodeSelf(d)
  12086. if yymdn1 {
  12087. if z.DecBasicHandle().DeleteOnNilMapValue {
  12088. delete(yyv1, yymk1)
  12089. } else {
  12090. yyv1[yymk1] = TestStruc{}
  12091. }
  12092. } else if yyv1 != nil {
  12093. yyv1[yymk1] = yymv1
  12094. }
  12095. }
  12096. } // else len==0: TODO: Should we clear map entries?
  12097. z.DecReadMapEnd()
  12098. }
  12099. }
  12100. func (x codecSelfer19780) encSlicePtrtoTestStruc(v []*TestStruc, e *Encoder) {
  12101. var h codecSelfer19780
  12102. z, r := GenHelperEncoder(e)
  12103. _, _, _ = h, z, r
  12104. if v == nil {
  12105. r.EncodeNil()
  12106. return
  12107. }
  12108. z.EncWriteArrayStart(len(v))
  12109. for _, yyv1 := range v {
  12110. z.EncWriteArrayElem()
  12111. if yyv1 == nil {
  12112. r.EncodeNil()
  12113. } else {
  12114. yyv1.CodecEncodeSelf(e)
  12115. }
  12116. }
  12117. z.EncWriteArrayEnd()
  12118. }
  12119. func (x codecSelfer19780) decSlicePtrtoTestStruc(v *[]*TestStruc, d *Decoder) {
  12120. var h codecSelfer19780
  12121. z, r := GenHelperDecoder(d)
  12122. _, _, _ = h, z, r
  12123. yyv1 := *v
  12124. yyh1, yyl1 := z.DecSliceHelperStart()
  12125. var yyc1 bool
  12126. _ = yyc1
  12127. if yyh1.IsNil {
  12128. if yyv1 != nil {
  12129. yyv1 = nil
  12130. yyc1 = true
  12131. }
  12132. } else if yyl1 == 0 {
  12133. if yyv1 == nil {
  12134. yyv1 = []*TestStruc{}
  12135. yyc1 = true
  12136. } else if len(yyv1) != 0 {
  12137. yyv1 = yyv1[:0]
  12138. yyc1 = true
  12139. }
  12140. } else {
  12141. yyhl1 := yyl1 > 0
  12142. var yyrl1 int
  12143. _ = yyrl1
  12144. if yyhl1 {
  12145. if yyl1 > cap(yyv1) {
  12146. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12147. if yyrl1 <= cap(yyv1) {
  12148. yyv1 = yyv1[:yyrl1]
  12149. } else {
  12150. yyv1 = make([]*TestStruc, yyrl1)
  12151. }
  12152. yyc1 = true
  12153. } else if yyl1 != len(yyv1) {
  12154. yyv1 = yyv1[:yyl1]
  12155. yyc1 = true
  12156. }
  12157. }
  12158. var yyj1 int
  12159. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12160. if yyj1 == 0 && yyv1 == nil {
  12161. if yyhl1 {
  12162. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  12163. } else {
  12164. yyrl1 = 8
  12165. }
  12166. yyv1 = make([]*TestStruc, yyrl1)
  12167. yyc1 = true
  12168. }
  12169. yyh1.ElemContainerState(yyj1)
  12170. var yydb1 bool
  12171. if yyj1 >= len(yyv1) {
  12172. yyv1 = append(yyv1, nil)
  12173. yyc1 = true
  12174. }
  12175. if yydb1 {
  12176. z.DecSwallow()
  12177. } else {
  12178. if r.TryNil() {
  12179. yyv1[yyj1] = nil
  12180. } else {
  12181. if yyv1[yyj1] == nil {
  12182. yyv1[yyj1] = new(TestStruc)
  12183. }
  12184. yyv1[yyj1].CodecDecodeSelf(d)
  12185. }
  12186. }
  12187. }
  12188. if yyj1 < len(yyv1) {
  12189. yyv1 = yyv1[:yyj1]
  12190. yyc1 = true
  12191. } else if yyj1 == 0 && yyv1 == nil {
  12192. yyv1 = make([]*TestStruc, 0)
  12193. yyc1 = true
  12194. }
  12195. }
  12196. yyh1.End()
  12197. if yyc1 {
  12198. *v = yyv1
  12199. }
  12200. }
  12201. func (x codecSelfer19780) encAarray(v *Aarray, e *Encoder) {
  12202. var h codecSelfer19780
  12203. z, r := GenHelperEncoder(e)
  12204. _, _, _ = h, z, r
  12205. if v == nil {
  12206. r.EncodeNil()
  12207. return
  12208. }
  12209. z.EncWriteArrayStart(len(v))
  12210. for _, yyv1 := range v {
  12211. z.EncWriteArrayElem()
  12212. if z.EncBasicHandle().StringToRaw {
  12213. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12214. } else {
  12215. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12216. }
  12217. }
  12218. z.EncWriteArrayEnd()
  12219. }
  12220. func (x codecSelfer19780) decAarray(v *Aarray, d *Decoder) {
  12221. var h codecSelfer19780
  12222. z, r := GenHelperDecoder(d)
  12223. _, _, _ = h, z, r
  12224. yyv1 := v
  12225. yyh1, yyl1 := z.DecSliceHelperStart()
  12226. if yyl1 == 0 {
  12227. } else {
  12228. yyhl1 := yyl1 > 0
  12229. var yyrl1 int
  12230. _ = yyrl1
  12231. var yyj1 int
  12232. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12233. yyh1.ElemContainerState(yyj1)
  12234. var yydb1 bool
  12235. if yyj1 >= len(yyv1) {
  12236. z.DecArrayCannotExpand(len(v), yyj1+1)
  12237. yydb1 = true
  12238. }
  12239. if yydb1 {
  12240. z.DecSwallow()
  12241. } else {
  12242. yyv1[yyj1] = (string)(string(r.DecodeStringAsBytes()))
  12243. }
  12244. }
  12245. }
  12246. yyh1.End()
  12247. }
  12248. func (x codecSelfer19780) encwrapBytes(v wrapBytes, e *Encoder) {
  12249. var h codecSelfer19780
  12250. z, r := GenHelperEncoder(e)
  12251. _, _, _ = h, z, r
  12252. if v == nil {
  12253. r.EncodeNil()
  12254. return
  12255. }
  12256. r.EncodeStringBytesRaw([]byte(v))
  12257. }
  12258. func (x codecSelfer19780) decwrapBytes(v *wrapBytes, d *Decoder) {
  12259. var h codecSelfer19780
  12260. z, r := GenHelperDecoder(d)
  12261. _, _, _ = h, z, r
  12262. *v = r.DecodeBytes(*((*[]byte)(v)), false)
  12263. }
  12264. func (x codecSelfer19780) encChanstring(v chan string, e *Encoder) {
  12265. var h codecSelfer19780
  12266. z, r := GenHelperEncoder(e)
  12267. _, _, _ = h, z, r
  12268. if v == nil {
  12269. r.EncodeNil()
  12270. return
  12271. }
  12272. if v == nil {
  12273. r.EncodeNil()
  12274. } else {
  12275. var sch1 []string
  12276. Lsch1:
  12277. switch timeout1 := z.EncBasicHandle().ChanRecvTimeout; {
  12278. case timeout1 == 0: // only consume available
  12279. for {
  12280. select {
  12281. case b1 := <-v:
  12282. sch1 = append(sch1, b1)
  12283. default:
  12284. break Lsch1
  12285. }
  12286. }
  12287. case timeout1 > 0: // consume until timeout
  12288. tt1 := time.NewTimer(timeout1)
  12289. for {
  12290. select {
  12291. case b1 := <-v:
  12292. sch1 = append(sch1, b1)
  12293. case <-tt1.C:
  12294. // close(tt.C)
  12295. break Lsch1
  12296. }
  12297. }
  12298. default: // consume until close
  12299. for b1 := range v {
  12300. sch1 = append(sch1, b1)
  12301. }
  12302. }
  12303. z.EncWriteArrayStart(len(sch1))
  12304. for _, yyv1 := range sch1 {
  12305. z.EncWriteArrayElem()
  12306. if z.EncBasicHandle().StringToRaw {
  12307. r.EncodeStringBytesRaw(z.BytesView(string(yyv1)))
  12308. } else {
  12309. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyv1))
  12310. }
  12311. }
  12312. z.EncWriteArrayEnd()
  12313. }
  12314. }
  12315. func (x codecSelfer19780) decChanstring(v *chan string, d *Decoder) {
  12316. var h codecSelfer19780
  12317. z, r := GenHelperDecoder(d)
  12318. _, _, _ = h, z, r
  12319. yyv1 := *v
  12320. yyh1, yyl1 := z.DecSliceHelperStart()
  12321. var yyc1 bool
  12322. _ = yyc1
  12323. if yyh1.IsNil {
  12324. if yyv1 != nil {
  12325. yyv1 = nil
  12326. yyc1 = true
  12327. }
  12328. } else if yyl1 == 0 {
  12329. if yyv1 == nil {
  12330. yyv1 = make(chan string, 0)
  12331. yyc1 = true
  12332. }
  12333. } else {
  12334. yyhl1 := yyl1 > 0
  12335. var yyrl1 int
  12336. _ = yyrl1
  12337. var yyj1 int
  12338. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12339. if yyj1 == 0 && yyv1 == nil {
  12340. if yyhl1 {
  12341. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
  12342. } else {
  12343. yyrl1 = 64
  12344. }
  12345. yyv1 = make(chan string, yyrl1)
  12346. yyc1 = true
  12347. }
  12348. yyh1.ElemContainerState(yyj1)
  12349. var yyvcx1 string
  12350. yyvcx1 = (string)(string(r.DecodeStringAsBytes()))
  12351. yyv1 <- yyvcx1
  12352. // println(">>>> sending ", yyvcx1, " into ", yyv1) // TODO: remove this
  12353. }
  12354. }
  12355. yyh1.End()
  12356. if yyc1 {
  12357. *v = yyv1
  12358. }
  12359. }
  12360. func (x codecSelfer19780) encMapboolc3RydWN0IHt9(v map[bool]struct{}, e *Encoder) {
  12361. var h codecSelfer19780
  12362. z, r := GenHelperEncoder(e)
  12363. _, _, _ = h, z, r
  12364. if v == nil {
  12365. r.EncodeNil()
  12366. return
  12367. }
  12368. z.EncWriteMapStart(len(v))
  12369. for yyk1, yyv1 := range v {
  12370. z.EncWriteMapElemKey()
  12371. r.EncodeBool(bool(yyk1))
  12372. z.EncWriteMapElemValue()
  12373. yy3 := &yyv1
  12374. z.EncFallback(yy3)
  12375. }
  12376. z.EncWriteMapEnd()
  12377. }
  12378. func (x codecSelfer19780) decMapboolc3RydWN0IHt9(v *map[bool]struct{}, d *Decoder) {
  12379. var h codecSelfer19780
  12380. z, r := GenHelperDecoder(d)
  12381. _, _, _ = h, z, r
  12382. yyv1 := *v
  12383. yyl1 := z.DecReadMapStart()
  12384. if yyl1 == codecSelferDecContainerLenNil19780 {
  12385. *v = nil
  12386. } else {
  12387. if yyv1 == nil {
  12388. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  12389. yyv1 = make(map[bool]struct{}, yyrl1)
  12390. *v = yyv1
  12391. }
  12392. var yymk1 bool
  12393. var yymv1 struct{}
  12394. var yymg1, yymdn1 bool
  12395. if z.DecBasicHandle().MapValueReset {
  12396. yymg1 = true
  12397. }
  12398. if yyl1 != 0 {
  12399. yyhl1 := yyl1 > 0
  12400. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12401. z.DecReadMapElemKey()
  12402. yymk1 = (bool)(r.DecodeBool())
  12403. if yymg1 {
  12404. yymv1 = yyv1[yymk1]
  12405. } else {
  12406. yymv1 = struct{}{}
  12407. }
  12408. z.DecReadMapElemValue()
  12409. yymdn1 = false
  12410. z.DecFallback(&yymv1, false)
  12411. if yymdn1 {
  12412. if z.DecBasicHandle().DeleteOnNilMapValue {
  12413. delete(yyv1, yymk1)
  12414. } else {
  12415. yyv1[yymk1] = struct{}{}
  12416. }
  12417. } else if yyv1 != nil {
  12418. yyv1[yymk1] = yymv1
  12419. }
  12420. }
  12421. } // else len==0: TODO: Should we clear map entries?
  12422. z.DecReadMapEnd()
  12423. }
  12424. }
  12425. func (x codecSelfer19780) encMapintwrapUint64Slice(v map[int]wrapUint64Slice, e *Encoder) {
  12426. var h codecSelfer19780
  12427. z, r := GenHelperEncoder(e)
  12428. _, _, _ = h, z, r
  12429. if v == nil {
  12430. r.EncodeNil()
  12431. return
  12432. }
  12433. z.EncWriteMapStart(len(v))
  12434. for yyk1, yyv1 := range v {
  12435. z.EncWriteMapElemKey()
  12436. r.EncodeInt(int64(yyk1))
  12437. z.EncWriteMapElemValue()
  12438. yyv1.CodecEncodeSelf(e)
  12439. }
  12440. z.EncWriteMapEnd()
  12441. }
  12442. func (x codecSelfer19780) decMapintwrapUint64Slice(v *map[int]wrapUint64Slice, d *Decoder) {
  12443. var h codecSelfer19780
  12444. z, r := GenHelperDecoder(d)
  12445. _, _, _ = h, z, r
  12446. yyv1 := *v
  12447. yyl1 := z.DecReadMapStart()
  12448. if yyl1 == codecSelferDecContainerLenNil19780 {
  12449. *v = nil
  12450. } else {
  12451. if yyv1 == nil {
  12452. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  12453. yyv1 = make(map[int]wrapUint64Slice, yyrl1)
  12454. *v = yyv1
  12455. }
  12456. var yymk1 int
  12457. var yymv1 wrapUint64Slice
  12458. var yymg1, yymdn1 bool
  12459. if z.DecBasicHandle().MapValueReset {
  12460. yymg1 = true
  12461. }
  12462. if yyl1 != 0 {
  12463. yyhl1 := yyl1 > 0
  12464. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12465. z.DecReadMapElemKey()
  12466. yymk1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize19780))
  12467. if yymg1 {
  12468. yymv1 = yyv1[yymk1]
  12469. } else {
  12470. yymv1 = nil
  12471. }
  12472. z.DecReadMapElemValue()
  12473. yymdn1 = false
  12474. yymv1.CodecDecodeSelf(d)
  12475. if yymdn1 {
  12476. if z.DecBasicHandle().DeleteOnNilMapValue {
  12477. delete(yyv1, yymk1)
  12478. } else {
  12479. yyv1[yymk1] = nil
  12480. }
  12481. } else if yyv1 != nil {
  12482. yyv1[yymk1] = yymv1
  12483. }
  12484. }
  12485. } // else len==0: TODO: Should we clear map entries?
  12486. z.DecReadMapEnd()
  12487. }
  12488. }
  12489. func (x codecSelfer19780) encMapfloat64wrapStringSlice(v map[float64]wrapStringSlice, e *Encoder) {
  12490. var h codecSelfer19780
  12491. z, r := GenHelperEncoder(e)
  12492. _, _, _ = h, z, r
  12493. if v == nil {
  12494. r.EncodeNil()
  12495. return
  12496. }
  12497. z.EncWriteMapStart(len(v))
  12498. for yyk1, yyv1 := range v {
  12499. z.EncWriteMapElemKey()
  12500. r.EncodeFloat64(float64(yyk1))
  12501. z.EncWriteMapElemValue()
  12502. yyv1.CodecEncodeSelf(e)
  12503. }
  12504. z.EncWriteMapEnd()
  12505. }
  12506. func (x codecSelfer19780) decMapfloat64wrapStringSlice(v *map[float64]wrapStringSlice, d *Decoder) {
  12507. var h codecSelfer19780
  12508. z, r := GenHelperDecoder(d)
  12509. _, _, _ = h, z, r
  12510. yyv1 := *v
  12511. yyl1 := z.DecReadMapStart()
  12512. if yyl1 == codecSelferDecContainerLenNil19780 {
  12513. *v = nil
  12514. } else {
  12515. if yyv1 == nil {
  12516. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  12517. yyv1 = make(map[float64]wrapStringSlice, yyrl1)
  12518. *v = yyv1
  12519. }
  12520. var yymk1 float64
  12521. var yymv1 wrapStringSlice
  12522. var yymg1, yymdn1 bool
  12523. if z.DecBasicHandle().MapValueReset {
  12524. yymg1 = true
  12525. }
  12526. if yyl1 != 0 {
  12527. yyhl1 := yyl1 > 0
  12528. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12529. z.DecReadMapElemKey()
  12530. yymk1 = (float64)(r.DecodeFloat64())
  12531. if yymg1 {
  12532. yymv1 = yyv1[yymk1]
  12533. } else {
  12534. yymv1 = nil
  12535. }
  12536. z.DecReadMapElemValue()
  12537. yymdn1 = false
  12538. yymv1.CodecDecodeSelf(d)
  12539. if yymdn1 {
  12540. if z.DecBasicHandle().DeleteOnNilMapValue {
  12541. delete(yyv1, yymk1)
  12542. } else {
  12543. yyv1[yymk1] = nil
  12544. }
  12545. } else if yyv1 != nil {
  12546. yyv1[yymk1] = yymv1
  12547. }
  12548. }
  12549. } // else len==0: TODO: Should we clear map entries?
  12550. z.DecReadMapEnd()
  12551. }
  12552. }
  12553. func (x codecSelfer19780) encMapfloat32wrapStringSlice(v map[float32]wrapStringSlice, e *Encoder) {
  12554. var h codecSelfer19780
  12555. z, r := GenHelperEncoder(e)
  12556. _, _, _ = h, z, r
  12557. if v == nil {
  12558. r.EncodeNil()
  12559. return
  12560. }
  12561. z.EncWriteMapStart(len(v))
  12562. for yyk1, yyv1 := range v {
  12563. z.EncWriteMapElemKey()
  12564. r.EncodeFloat32(float32(yyk1))
  12565. z.EncWriteMapElemValue()
  12566. yyv1.CodecEncodeSelf(e)
  12567. }
  12568. z.EncWriteMapEnd()
  12569. }
  12570. func (x codecSelfer19780) decMapfloat32wrapStringSlice(v *map[float32]wrapStringSlice, d *Decoder) {
  12571. var h codecSelfer19780
  12572. z, r := GenHelperDecoder(d)
  12573. _, _, _ = h, z, r
  12574. yyv1 := *v
  12575. yyl1 := z.DecReadMapStart()
  12576. if yyl1 == codecSelferDecContainerLenNil19780 {
  12577. *v = nil
  12578. } else {
  12579. if yyv1 == nil {
  12580. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 28)
  12581. yyv1 = make(map[float32]wrapStringSlice, yyrl1)
  12582. *v = yyv1
  12583. }
  12584. var yymk1 float32
  12585. var yymv1 wrapStringSlice
  12586. var yymg1, yymdn1 bool
  12587. if z.DecBasicHandle().MapValueReset {
  12588. yymg1 = true
  12589. }
  12590. if yyl1 != 0 {
  12591. yyhl1 := yyl1 > 0
  12592. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12593. z.DecReadMapElemKey()
  12594. yymk1 = (float32)(z.DecDecodeFloat32())
  12595. if yymg1 {
  12596. yymv1 = yyv1[yymk1]
  12597. } else {
  12598. yymv1 = nil
  12599. }
  12600. z.DecReadMapElemValue()
  12601. yymdn1 = false
  12602. yymv1.CodecDecodeSelf(d)
  12603. if yymdn1 {
  12604. if z.DecBasicHandle().DeleteOnNilMapValue {
  12605. delete(yyv1, yymk1)
  12606. } else {
  12607. yyv1[yymk1] = nil
  12608. }
  12609. } else if yyv1 != nil {
  12610. yyv1[yymk1] = yymv1
  12611. }
  12612. }
  12613. } // else len==0: TODO: Should we clear map entries?
  12614. z.DecReadMapEnd()
  12615. }
  12616. }
  12617. func (x codecSelfer19780) encMapuint64wrapStringSlice(v map[uint64]wrapStringSlice, e *Encoder) {
  12618. var h codecSelfer19780
  12619. z, r := GenHelperEncoder(e)
  12620. _, _, _ = h, z, r
  12621. if v == nil {
  12622. r.EncodeNil()
  12623. return
  12624. }
  12625. z.EncWriteMapStart(len(v))
  12626. for yyk1, yyv1 := range v {
  12627. z.EncWriteMapElemKey()
  12628. r.EncodeUint(uint64(yyk1))
  12629. z.EncWriteMapElemValue()
  12630. yyv1.CodecEncodeSelf(e)
  12631. }
  12632. z.EncWriteMapEnd()
  12633. }
  12634. func (x codecSelfer19780) decMapuint64wrapStringSlice(v *map[uint64]wrapStringSlice, d *Decoder) {
  12635. var h codecSelfer19780
  12636. z, r := GenHelperDecoder(d)
  12637. _, _, _ = h, z, r
  12638. yyv1 := *v
  12639. yyl1 := z.DecReadMapStart()
  12640. if yyl1 == codecSelferDecContainerLenNil19780 {
  12641. *v = nil
  12642. } else {
  12643. if yyv1 == nil {
  12644. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  12645. yyv1 = make(map[uint64]wrapStringSlice, yyrl1)
  12646. *v = yyv1
  12647. }
  12648. var yymk1 uint64
  12649. var yymv1 wrapStringSlice
  12650. var yymg1, yymdn1 bool
  12651. if z.DecBasicHandle().MapValueReset {
  12652. yymg1 = true
  12653. }
  12654. if yyl1 != 0 {
  12655. yyhl1 := yyl1 > 0
  12656. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12657. z.DecReadMapElemKey()
  12658. yymk1 = (uint64)(r.DecodeUint64())
  12659. if yymg1 {
  12660. yymv1 = yyv1[yymk1]
  12661. } else {
  12662. yymv1 = nil
  12663. }
  12664. z.DecReadMapElemValue()
  12665. yymdn1 = false
  12666. yymv1.CodecDecodeSelf(d)
  12667. if yymdn1 {
  12668. if z.DecBasicHandle().DeleteOnNilMapValue {
  12669. delete(yyv1, yymk1)
  12670. } else {
  12671. yyv1[yymk1] = nil
  12672. }
  12673. } else if yyv1 != nil {
  12674. yyv1[yymk1] = yymv1
  12675. }
  12676. }
  12677. } // else len==0: TODO: Should we clear map entries?
  12678. z.DecReadMapEnd()
  12679. }
  12680. }
  12681. func (x codecSelfer19780) encMapstringUint64TwrapStringSlice(v map[stringUint64T]wrapStringSlice, e *Encoder) {
  12682. var h codecSelfer19780
  12683. z, r := GenHelperEncoder(e)
  12684. _, _, _ = h, z, r
  12685. if v == nil {
  12686. r.EncodeNil()
  12687. return
  12688. }
  12689. z.EncWriteMapStart(len(v))
  12690. for yyk1, yyv1 := range v {
  12691. z.EncWriteMapElemKey()
  12692. yy2 := &yyk1
  12693. yy2.CodecEncodeSelf(e)
  12694. z.EncWriteMapElemValue()
  12695. yyv1.CodecEncodeSelf(e)
  12696. }
  12697. z.EncWriteMapEnd()
  12698. }
  12699. func (x codecSelfer19780) decMapstringUint64TwrapStringSlice(v *map[stringUint64T]wrapStringSlice, d *Decoder) {
  12700. var h codecSelfer19780
  12701. z, r := GenHelperDecoder(d)
  12702. _, _, _ = h, z, r
  12703. yyv1 := *v
  12704. yyl1 := z.DecReadMapStart()
  12705. if yyl1 == codecSelferDecContainerLenNil19780 {
  12706. *v = nil
  12707. } else {
  12708. if yyv1 == nil {
  12709. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
  12710. yyv1 = make(map[stringUint64T]wrapStringSlice, yyrl1)
  12711. *v = yyv1
  12712. }
  12713. var yymk1 stringUint64T
  12714. var yymv1 wrapStringSlice
  12715. var yymg1, yymdn1 bool
  12716. if z.DecBasicHandle().MapValueReset {
  12717. yymg1 = true
  12718. }
  12719. if yyl1 != 0 {
  12720. yyhl1 := yyl1 > 0
  12721. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  12722. z.DecReadMapElemKey()
  12723. yymk1.CodecDecodeSelf(d)
  12724. if yymg1 {
  12725. yymv1 = yyv1[yymk1]
  12726. } else {
  12727. yymv1 = nil
  12728. }
  12729. z.DecReadMapElemValue()
  12730. yymdn1 = false
  12731. yymv1.CodecDecodeSelf(d)
  12732. if yymdn1 {
  12733. if z.DecBasicHandle().DeleteOnNilMapValue {
  12734. delete(yyv1, yymk1)
  12735. } else {
  12736. yyv1[yymk1] = nil
  12737. }
  12738. } else if yyv1 != nil {
  12739. yyv1[yymk1] = yymv1
  12740. }
  12741. }
  12742. } // else len==0: TODO: Should we clear map entries?
  12743. z.DecReadMapEnd()
  12744. }
  12745. }
  12746. func (x codecSelfer19780) encSlicewrapBytes(v []wrapBytes, e *Encoder) {
  12747. var h codecSelfer19780
  12748. z, r := GenHelperEncoder(e)
  12749. _, _, _ = h, z, r
  12750. if v == nil {
  12751. r.EncodeNil()
  12752. return
  12753. }
  12754. z.EncWriteArrayStart(len(v))
  12755. for _, yyv1 := range v {
  12756. z.EncWriteArrayElem()
  12757. yyv1.CodecEncodeSelf(e)
  12758. }
  12759. z.EncWriteArrayEnd()
  12760. }
  12761. func (x codecSelfer19780) decSlicewrapBytes(v *[]wrapBytes, d *Decoder) {
  12762. var h codecSelfer19780
  12763. z, r := GenHelperDecoder(d)
  12764. _, _, _ = h, z, r
  12765. yyv1 := *v
  12766. yyh1, yyl1 := z.DecSliceHelperStart()
  12767. var yyc1 bool
  12768. _ = yyc1
  12769. if yyh1.IsNil {
  12770. if yyv1 != nil {
  12771. yyv1 = nil
  12772. yyc1 = true
  12773. }
  12774. } else if yyl1 == 0 {
  12775. if yyv1 == nil {
  12776. yyv1 = []wrapBytes{}
  12777. yyc1 = true
  12778. } else if len(yyv1) != 0 {
  12779. yyv1 = yyv1[:0]
  12780. yyc1 = true
  12781. }
  12782. } else {
  12783. yyhl1 := yyl1 > 0
  12784. var yyrl1 int
  12785. _ = yyrl1
  12786. if yyhl1 {
  12787. if yyl1 > cap(yyv1) {
  12788. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12789. if yyrl1 <= cap(yyv1) {
  12790. yyv1 = yyv1[:yyrl1]
  12791. } else {
  12792. yyv1 = make([]wrapBytes, yyrl1)
  12793. }
  12794. yyc1 = true
  12795. } else if yyl1 != len(yyv1) {
  12796. yyv1 = yyv1[:yyl1]
  12797. yyc1 = true
  12798. }
  12799. }
  12800. var yyj1 int
  12801. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12802. if yyj1 == 0 && yyv1 == nil {
  12803. if yyhl1 {
  12804. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  12805. } else {
  12806. yyrl1 = 8
  12807. }
  12808. yyv1 = make([]wrapBytes, yyrl1)
  12809. yyc1 = true
  12810. }
  12811. yyh1.ElemContainerState(yyj1)
  12812. var yydb1 bool
  12813. if yyj1 >= len(yyv1) {
  12814. yyv1 = append(yyv1, nil)
  12815. yyc1 = true
  12816. }
  12817. if yydb1 {
  12818. z.DecSwallow()
  12819. } else {
  12820. yyv1[yyj1].CodecDecodeSelf(d)
  12821. }
  12822. }
  12823. if yyj1 < len(yyv1) {
  12824. yyv1 = yyv1[:yyj1]
  12825. yyc1 = true
  12826. } else if yyj1 == 0 && yyv1 == nil {
  12827. yyv1 = make([]wrapBytes, 0)
  12828. yyc1 = true
  12829. }
  12830. }
  12831. yyh1.End()
  12832. if yyc1 {
  12833. *v = yyv1
  12834. }
  12835. }
  12836. func (x codecSelfer19780) encSlicewrapUint8(v []wrapUint8, e *Encoder) {
  12837. var h codecSelfer19780
  12838. z, r := GenHelperEncoder(e)
  12839. _, _, _ = h, z, r
  12840. if v == nil {
  12841. r.EncodeNil()
  12842. return
  12843. }
  12844. z.EncWriteArrayStart(len(v))
  12845. for _, yyv1 := range v {
  12846. z.EncWriteArrayElem()
  12847. yyv1.CodecEncodeSelf(e)
  12848. }
  12849. z.EncWriteArrayEnd()
  12850. }
  12851. func (x codecSelfer19780) decSlicewrapUint8(v *[]wrapUint8, d *Decoder) {
  12852. var h codecSelfer19780
  12853. z, r := GenHelperDecoder(d)
  12854. _, _, _ = h, z, r
  12855. yyv1 := *v
  12856. yyh1, yyl1 := z.DecSliceHelperStart()
  12857. var yyc1 bool
  12858. _ = yyc1
  12859. if yyh1.IsNil {
  12860. if yyv1 != nil {
  12861. yyv1 = nil
  12862. yyc1 = true
  12863. }
  12864. } else if yyl1 == 0 {
  12865. if yyv1 == nil {
  12866. yyv1 = []wrapUint8{}
  12867. yyc1 = true
  12868. } else if len(yyv1) != 0 {
  12869. yyv1 = yyv1[:0]
  12870. yyc1 = true
  12871. }
  12872. } else {
  12873. yyhl1 := yyl1 > 0
  12874. var yyrl1 int
  12875. _ = yyrl1
  12876. if yyhl1 {
  12877. if yyl1 > cap(yyv1) {
  12878. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1)
  12879. if yyrl1 <= cap(yyv1) {
  12880. yyv1 = yyv1[:yyrl1]
  12881. } else {
  12882. yyv1 = make([]wrapUint8, yyrl1)
  12883. }
  12884. yyc1 = true
  12885. } else if yyl1 != len(yyv1) {
  12886. yyv1 = yyv1[:yyl1]
  12887. yyc1 = true
  12888. }
  12889. }
  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, 1)
  12895. } else {
  12896. yyrl1 = 8
  12897. }
  12898. yyv1 = make([]wrapUint8, yyrl1)
  12899. yyc1 = true
  12900. }
  12901. yyh1.ElemContainerState(yyj1)
  12902. var yydb1 bool
  12903. if yyj1 >= len(yyv1) {
  12904. yyv1 = append(yyv1, 0)
  12905. yyc1 = true
  12906. }
  12907. if yydb1 {
  12908. z.DecSwallow()
  12909. } else {
  12910. yyv1[yyj1].CodecDecodeSelf(d)
  12911. }
  12912. }
  12913. if yyj1 < len(yyv1) {
  12914. yyv1 = yyv1[:yyj1]
  12915. yyc1 = true
  12916. } else if yyj1 == 0 && yyv1 == nil {
  12917. yyv1 = make([]wrapUint8, 0)
  12918. yyc1 = true
  12919. }
  12920. }
  12921. yyh1.End()
  12922. if yyc1 {
  12923. *v = yyv1
  12924. }
  12925. }
  12926. func (x codecSelfer19780) encArray4stringUint64T(v *[4]stringUint64T, e *Encoder) {
  12927. var h codecSelfer19780
  12928. z, r := GenHelperEncoder(e)
  12929. _, _, _ = h, z, r
  12930. if v == nil {
  12931. r.EncodeNil()
  12932. return
  12933. }
  12934. z.EncWriteArrayStart(len(v))
  12935. for _, yyv1 := range v {
  12936. z.EncWriteArrayElem()
  12937. yy2 := &yyv1
  12938. yy2.CodecEncodeSelf(e)
  12939. }
  12940. z.EncWriteArrayEnd()
  12941. }
  12942. func (x codecSelfer19780) decArray4stringUint64T(v *[4]stringUint64T, d *Decoder) {
  12943. var h codecSelfer19780
  12944. z, r := GenHelperDecoder(d)
  12945. _, _, _ = h, z, r
  12946. yyv1 := v
  12947. yyh1, yyl1 := z.DecSliceHelperStart()
  12948. if yyl1 == 0 {
  12949. } else {
  12950. yyhl1 := yyl1 > 0
  12951. var yyrl1 int
  12952. _ = yyrl1
  12953. var yyj1 int
  12954. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12955. yyh1.ElemContainerState(yyj1)
  12956. var yydb1 bool
  12957. if yyj1 >= len(yyv1) {
  12958. z.DecArrayCannotExpand(len(v), yyj1+1)
  12959. yydb1 = true
  12960. }
  12961. if yydb1 {
  12962. z.DecSwallow()
  12963. } else {
  12964. yyv1[yyj1].CodecDecodeSelf(d)
  12965. }
  12966. }
  12967. }
  12968. yyh1.End()
  12969. }
  12970. func (x codecSelfer19780) encArray4uint64(v *[4]uint64, e *Encoder) {
  12971. var h codecSelfer19780
  12972. z, r := GenHelperEncoder(e)
  12973. _, _, _ = h, z, r
  12974. if v == nil {
  12975. r.EncodeNil()
  12976. return
  12977. }
  12978. z.EncWriteArrayStart(len(v))
  12979. for _, yyv1 := range v {
  12980. z.EncWriteArrayElem()
  12981. r.EncodeUint(uint64(yyv1))
  12982. }
  12983. z.EncWriteArrayEnd()
  12984. }
  12985. func (x codecSelfer19780) decArray4uint64(v *[4]uint64, d *Decoder) {
  12986. var h codecSelfer19780
  12987. z, r := GenHelperDecoder(d)
  12988. _, _, _ = h, z, r
  12989. yyv1 := v
  12990. yyh1, yyl1 := z.DecSliceHelperStart()
  12991. if yyl1 == 0 {
  12992. } else {
  12993. yyhl1 := yyl1 > 0
  12994. var yyrl1 int
  12995. _ = yyrl1
  12996. var yyj1 int
  12997. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  12998. yyh1.ElemContainerState(yyj1)
  12999. var yydb1 bool
  13000. if yyj1 >= len(yyv1) {
  13001. z.DecArrayCannotExpand(len(v), yyj1+1)
  13002. yydb1 = true
  13003. }
  13004. if yydb1 {
  13005. z.DecSwallow()
  13006. } else {
  13007. yyv1[yyj1] = (uint64)(r.DecodeUint64())
  13008. }
  13009. }
  13010. }
  13011. yyh1.End()
  13012. }
  13013. func (x codecSelfer19780) encSlicePtrtoArray4uint64(v []*[4]uint64, e *Encoder) {
  13014. var h codecSelfer19780
  13015. z, r := GenHelperEncoder(e)
  13016. _, _, _ = h, z, r
  13017. if v == nil {
  13018. r.EncodeNil()
  13019. return
  13020. }
  13021. z.EncWriteArrayStart(len(v))
  13022. for _, yyv1 := range v {
  13023. z.EncWriteArrayElem()
  13024. if yyv1 == nil {
  13025. r.EncodeNil()
  13026. } else {
  13027. h.encArray4uint64((*[4]uint64)(yyv1), e)
  13028. }
  13029. }
  13030. z.EncWriteArrayEnd()
  13031. }
  13032. func (x codecSelfer19780) decSlicePtrtoArray4uint64(v *[]*[4]uint64, d *Decoder) {
  13033. var h codecSelfer19780
  13034. z, r := GenHelperDecoder(d)
  13035. _, _, _ = h, z, r
  13036. yyv1 := *v
  13037. yyh1, yyl1 := z.DecSliceHelperStart()
  13038. var yyc1 bool
  13039. _ = yyc1
  13040. if yyh1.IsNil {
  13041. if yyv1 != nil {
  13042. yyv1 = nil
  13043. yyc1 = true
  13044. }
  13045. } else if yyl1 == 0 {
  13046. if yyv1 == nil {
  13047. yyv1 = []*[4]uint64{}
  13048. yyc1 = true
  13049. } else if len(yyv1) != 0 {
  13050. yyv1 = yyv1[:0]
  13051. yyc1 = true
  13052. }
  13053. } else {
  13054. yyhl1 := yyl1 > 0
  13055. var yyrl1 int
  13056. _ = yyrl1
  13057. if yyhl1 {
  13058. if yyl1 > cap(yyv1) {
  13059. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13060. if yyrl1 <= cap(yyv1) {
  13061. yyv1 = yyv1[:yyrl1]
  13062. } else {
  13063. yyv1 = make([]*[4]uint64, yyrl1)
  13064. }
  13065. yyc1 = true
  13066. } else if yyl1 != len(yyv1) {
  13067. yyv1 = yyv1[:yyl1]
  13068. yyc1 = true
  13069. }
  13070. }
  13071. var yyj1 int
  13072. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13073. if yyj1 == 0 && yyv1 == nil {
  13074. if yyhl1 {
  13075. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13076. } else {
  13077. yyrl1 = 8
  13078. }
  13079. yyv1 = make([]*[4]uint64, yyrl1)
  13080. yyc1 = true
  13081. }
  13082. yyh1.ElemContainerState(yyj1)
  13083. var yydb1 bool
  13084. if yyj1 >= len(yyv1) {
  13085. yyv1 = append(yyv1, nil)
  13086. yyc1 = true
  13087. }
  13088. if yydb1 {
  13089. z.DecSwallow()
  13090. } else {
  13091. if r.TryNil() {
  13092. yyv1[yyj1] = nil
  13093. } else {
  13094. if yyv1[yyj1] == nil {
  13095. yyv1[yyj1] = new([4]uint64)
  13096. }
  13097. h.decArray4uint64((*[4]uint64)(yyv1[yyj1]), d)
  13098. }
  13099. }
  13100. }
  13101. if yyj1 < len(yyv1) {
  13102. yyv1 = yyv1[:yyj1]
  13103. yyc1 = true
  13104. } else if yyj1 == 0 && yyv1 == nil {
  13105. yyv1 = make([]*[4]uint64, 0)
  13106. yyc1 = true
  13107. }
  13108. }
  13109. yyh1.End()
  13110. if yyc1 {
  13111. *v = yyv1
  13112. }
  13113. }
  13114. func (x codecSelfer19780) encMapstringUint64TPtrtostringUint64T(v map[stringUint64T]*stringUint64T, e *Encoder) {
  13115. var h codecSelfer19780
  13116. z, r := GenHelperEncoder(e)
  13117. _, _, _ = h, z, r
  13118. if v == nil {
  13119. r.EncodeNil()
  13120. return
  13121. }
  13122. z.EncWriteMapStart(len(v))
  13123. for yyk1, yyv1 := range v {
  13124. z.EncWriteMapElemKey()
  13125. yy2 := &yyk1
  13126. yy2.CodecEncodeSelf(e)
  13127. z.EncWriteMapElemValue()
  13128. if yyv1 == nil {
  13129. r.EncodeNil()
  13130. } else {
  13131. yyv1.CodecEncodeSelf(e)
  13132. }
  13133. }
  13134. z.EncWriteMapEnd()
  13135. }
  13136. func (x codecSelfer19780) decMapstringUint64TPtrtostringUint64T(v *map[stringUint64T]*stringUint64T, d *Decoder) {
  13137. var h codecSelfer19780
  13138. z, r := GenHelperDecoder(d)
  13139. _, _, _ = h, z, r
  13140. yyv1 := *v
  13141. yyl1 := z.DecReadMapStart()
  13142. if yyl1 == codecSelferDecContainerLenNil19780 {
  13143. *v = nil
  13144. } else {
  13145. if yyv1 == nil {
  13146. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
  13147. yyv1 = make(map[stringUint64T]*stringUint64T, yyrl1)
  13148. *v = yyv1
  13149. }
  13150. var yymk1 stringUint64T
  13151. var yymv1 *stringUint64T
  13152. var yymg1, yymdn1, yyms1, yymok1 bool
  13153. if z.DecBasicHandle().MapValueReset {
  13154. yymg1 = true
  13155. }
  13156. if yyl1 != 0 {
  13157. yyhl1 := yyl1 > 0
  13158. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13159. z.DecReadMapElemKey()
  13160. yymk1.CodecDecodeSelf(d)
  13161. yyms1 = true
  13162. if yymg1 {
  13163. yymv1, yymok1 = yyv1[yymk1]
  13164. if yymok1 {
  13165. yyms1 = false
  13166. }
  13167. } else {
  13168. yymv1 = nil
  13169. }
  13170. z.DecReadMapElemValue()
  13171. yymdn1 = false
  13172. if r.TryNil() {
  13173. yymdn1 = true
  13174. } else {
  13175. if yymv1 == nil {
  13176. yymv1 = new(stringUint64T)
  13177. }
  13178. yymv1.CodecDecodeSelf(d)
  13179. }
  13180. if yymdn1 {
  13181. if z.DecBasicHandle().DeleteOnNilMapValue {
  13182. delete(yyv1, yymk1)
  13183. } else {
  13184. yyv1[yymk1] = nil
  13185. }
  13186. } else if yyms1 && yyv1 != nil {
  13187. yyv1[yymk1] = yymv1
  13188. }
  13189. }
  13190. } // else len==0: TODO: Should we clear map entries?
  13191. z.DecReadMapEnd()
  13192. }
  13193. }
  13194. func (x codecSelfer19780) encMapstringPtrtoTestStrucFlex(v map[string]*TestStrucFlex, e *Encoder) {
  13195. var h codecSelfer19780
  13196. z, r := GenHelperEncoder(e)
  13197. _, _, _ = h, z, r
  13198. if v == nil {
  13199. r.EncodeNil()
  13200. return
  13201. }
  13202. z.EncWriteMapStart(len(v))
  13203. for yyk1, yyv1 := range v {
  13204. z.EncWriteMapElemKey()
  13205. if z.EncBasicHandle().StringToRaw {
  13206. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13207. } else {
  13208. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13209. }
  13210. z.EncWriteMapElemValue()
  13211. if yyv1 == nil {
  13212. r.EncodeNil()
  13213. } else {
  13214. yyv1.CodecEncodeSelf(e)
  13215. }
  13216. }
  13217. z.EncWriteMapEnd()
  13218. }
  13219. func (x codecSelfer19780) decMapstringPtrtoTestStrucFlex(v *map[string]*TestStrucFlex, d *Decoder) {
  13220. var h codecSelfer19780
  13221. z, r := GenHelperDecoder(d)
  13222. _, _, _ = h, z, r
  13223. yyv1 := *v
  13224. yyl1 := z.DecReadMapStart()
  13225. if yyl1 == codecSelferDecContainerLenNil19780 {
  13226. *v = nil
  13227. } else {
  13228. if yyv1 == nil {
  13229. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
  13230. yyv1 = make(map[string]*TestStrucFlex, yyrl1)
  13231. *v = yyv1
  13232. }
  13233. var yymk1 string
  13234. var yymv1 *TestStrucFlex
  13235. var yymg1, yymdn1, yyms1, yymok1 bool
  13236. if z.DecBasicHandle().MapValueReset {
  13237. yymg1 = true
  13238. }
  13239. if yyl1 != 0 {
  13240. yyhl1 := yyl1 > 0
  13241. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13242. z.DecReadMapElemKey()
  13243. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13244. yyms1 = true
  13245. if yymg1 {
  13246. yymv1, yymok1 = yyv1[yymk1]
  13247. if yymok1 {
  13248. yyms1 = false
  13249. }
  13250. } else {
  13251. yymv1 = nil
  13252. }
  13253. z.DecReadMapElemValue()
  13254. yymdn1 = false
  13255. if r.TryNil() {
  13256. yymdn1 = true
  13257. } else {
  13258. if yymv1 == nil {
  13259. yymv1 = new(TestStrucFlex)
  13260. }
  13261. yymv1.CodecDecodeSelf(d)
  13262. }
  13263. if yymdn1 {
  13264. if z.DecBasicHandle().DeleteOnNilMapValue {
  13265. delete(yyv1, yymk1)
  13266. } else {
  13267. yyv1[yymk1] = nil
  13268. }
  13269. } else if yyms1 && yyv1 != nil {
  13270. yyv1[yymk1] = yymv1
  13271. }
  13272. }
  13273. } // else len==0: TODO: Should we clear map entries?
  13274. z.DecReadMapEnd()
  13275. }
  13276. }
  13277. func (x codecSelfer19780) encMapstringTestStrucFlex(v map[string]TestStrucFlex, e *Encoder) {
  13278. var h codecSelfer19780
  13279. z, r := GenHelperEncoder(e)
  13280. _, _, _ = h, z, r
  13281. if v == nil {
  13282. r.EncodeNil()
  13283. return
  13284. }
  13285. z.EncWriteMapStart(len(v))
  13286. for yyk1, yyv1 := range v {
  13287. z.EncWriteMapElemKey()
  13288. if z.EncBasicHandle().StringToRaw {
  13289. r.EncodeStringBytesRaw(z.BytesView(string(yyk1)))
  13290. } else {
  13291. r.EncodeStringEnc(codecSelferCcUTF819780, string(yyk1))
  13292. }
  13293. z.EncWriteMapElemValue()
  13294. yy3 := &yyv1
  13295. yy3.CodecEncodeSelf(e)
  13296. }
  13297. z.EncWriteMapEnd()
  13298. }
  13299. func (x codecSelfer19780) decMapstringTestStrucFlex(v *map[string]TestStrucFlex, d *Decoder) {
  13300. var h codecSelfer19780
  13301. z, r := GenHelperDecoder(d)
  13302. _, _, _ = h, z, r
  13303. yyv1 := *v
  13304. yyl1 := z.DecReadMapStart()
  13305. if yyl1 == codecSelferDecContainerLenNil19780 {
  13306. *v = nil
  13307. } else {
  13308. if yyv1 == nil {
  13309. yyrl1 := z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 1536)
  13310. yyv1 = make(map[string]TestStrucFlex, yyrl1)
  13311. *v = yyv1
  13312. }
  13313. var yymk1 string
  13314. var yymv1 TestStrucFlex
  13315. var yymg1, yymdn1 bool
  13316. if z.DecBasicHandle().MapValueReset {
  13317. yymg1 = true
  13318. }
  13319. if yyl1 != 0 {
  13320. yyhl1 := yyl1 > 0
  13321. for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
  13322. z.DecReadMapElemKey()
  13323. yymk1 = (string)(string(r.DecodeStringAsBytes()))
  13324. if yymg1 {
  13325. yymv1 = yyv1[yymk1]
  13326. } else {
  13327. yymv1 = TestStrucFlex{}
  13328. }
  13329. z.DecReadMapElemValue()
  13330. yymdn1 = false
  13331. yymv1.CodecDecodeSelf(d)
  13332. if yymdn1 {
  13333. if z.DecBasicHandle().DeleteOnNilMapValue {
  13334. delete(yyv1, yymk1)
  13335. } else {
  13336. yyv1[yymk1] = TestStrucFlex{}
  13337. }
  13338. } else if yyv1 != nil {
  13339. yyv1[yymk1] = yymv1
  13340. }
  13341. }
  13342. } // else len==0: TODO: Should we clear map entries?
  13343. z.DecReadMapEnd()
  13344. }
  13345. }
  13346. func (x codecSelfer19780) encSlicePtrtoTestStrucFlex(v []*TestStrucFlex, e *Encoder) {
  13347. var h codecSelfer19780
  13348. z, r := GenHelperEncoder(e)
  13349. _, _, _ = h, z, r
  13350. if v == nil {
  13351. r.EncodeNil()
  13352. return
  13353. }
  13354. z.EncWriteArrayStart(len(v))
  13355. for _, yyv1 := range v {
  13356. z.EncWriteArrayElem()
  13357. if yyv1 == nil {
  13358. r.EncodeNil()
  13359. } else {
  13360. yyv1.CodecEncodeSelf(e)
  13361. }
  13362. }
  13363. z.EncWriteArrayEnd()
  13364. }
  13365. func (x codecSelfer19780) decSlicePtrtoTestStrucFlex(v *[]*TestStrucFlex, d *Decoder) {
  13366. var h codecSelfer19780
  13367. z, r := GenHelperDecoder(d)
  13368. _, _, _ = h, z, r
  13369. yyv1 := *v
  13370. yyh1, yyl1 := z.DecSliceHelperStart()
  13371. var yyc1 bool
  13372. _ = yyc1
  13373. if yyh1.IsNil {
  13374. if yyv1 != nil {
  13375. yyv1 = nil
  13376. yyc1 = true
  13377. }
  13378. } else if yyl1 == 0 {
  13379. if yyv1 == nil {
  13380. yyv1 = []*TestStrucFlex{}
  13381. yyc1 = true
  13382. } else if len(yyv1) != 0 {
  13383. yyv1 = yyv1[:0]
  13384. yyc1 = true
  13385. }
  13386. } else {
  13387. yyhl1 := yyl1 > 0
  13388. var yyrl1 int
  13389. _ = yyrl1
  13390. if yyhl1 {
  13391. if yyl1 > cap(yyv1) {
  13392. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13393. if yyrl1 <= cap(yyv1) {
  13394. yyv1 = yyv1[:yyrl1]
  13395. } else {
  13396. yyv1 = make([]*TestStrucFlex, yyrl1)
  13397. }
  13398. yyc1 = true
  13399. } else if yyl1 != len(yyv1) {
  13400. yyv1 = yyv1[:yyl1]
  13401. yyc1 = true
  13402. }
  13403. }
  13404. var yyj1 int
  13405. for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination
  13406. if yyj1 == 0 && yyv1 == nil {
  13407. if yyhl1 {
  13408. yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  13409. } else {
  13410. yyrl1 = 8
  13411. }
  13412. yyv1 = make([]*TestStrucFlex, yyrl1)
  13413. yyc1 = true
  13414. }
  13415. yyh1.ElemContainerState(yyj1)
  13416. var yydb1 bool
  13417. if yyj1 >= len(yyv1) {
  13418. yyv1 = append(yyv1, nil)
  13419. yyc1 = true
  13420. }
  13421. if yydb1 {
  13422. z.DecSwallow()
  13423. } else {
  13424. if r.TryNil() {
  13425. yyv1[yyj1] = nil
  13426. } else {
  13427. if yyv1[yyj1] == nil {
  13428. yyv1[yyj1] = new(TestStrucFlex)
  13429. }
  13430. yyv1[yyj1].CodecDecodeSelf(d)
  13431. }
  13432. }
  13433. }
  13434. if yyj1 < len(yyv1) {
  13435. yyv1 = yyv1[:yyj1]
  13436. yyc1 = true
  13437. } else if yyj1 == 0 && yyv1 == nil {
  13438. yyv1 = make([]*TestStrucFlex, 0)
  13439. yyc1 = true
  13440. }
  13441. }
  13442. yyh1.End()
  13443. if yyc1 {
  13444. *v = yyv1
  13445. }
  13446. }